/* ============================================================
   RC South — Contacts Page Styles
   Loaded only on the contacts page (template: contacts).
   Builds on top of blades.min.css / theme.css / custom.css.
   ============================================================ */

/* ---------- Hero ---------- */
.contacts-hero {
  position: relative;
  background: linear-gradient(160deg, var(--rc-navy) 0%, var(--rc-navy-light) 55%, var(--rc-navy) 100%);
  color: var(--rc-white);
  padding: 4.5rem 0 4rem;
  margin: 1rem clamp(0.5rem, 2vw, 1.5rem) 0;
  border-radius: 24px;
  overflow: hidden;
  text-align: center;
}

.contacts-hero__glow {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 62, 4, 0.30) 0%, transparent 62%);
  top: -220px;
  right: -120px;
  filter: blur(48px);
  pointer-events: none;
}

.contacts-hero__inner {
  position: relative;
  z-index: 1;
}

.contacts-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rc-orange);
}

.contacts-hero__kicker::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--rc-orange);
}

.contacts-hero .contacts-hero__title {
  /* (0,2,0) — beats blades' `p + h1 { margin-top: 1.75em }`, which would
     shove the title down when a kicker paragraph precedes it */
  margin: 0.5em auto 0.9rem;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--rc-white);
}

.contacts-hero__subtitle {
  margin: 0 auto;
  max-width: 620px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.74);
}

/* ---------- Contact cards ---------- */
.contacts-cards {
  margin-top: 2.5rem;
}

.contacts-cards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
}

.contacts-card {
  background: var(--rc-white);
  border: 1px solid var(--rc-light-grey);
  border-radius: var(--q2-radius-md);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--q2-shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.contacts-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--q2-shadow-raised);
}

.contacts-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(253, 62, 4, 0.10);
  color: var(--rc-orange);
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
}

.contacts-card__title {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}

.contacts-card__line {
  margin: 0.15rem 0;
  font-size: 0.9rem;
  color: var(--rc-dark);
  line-height: 1.5;
}

.contacts-card__line a {
  color: var(--rc-dark);
  font-weight: 600;
}
.contacts-card__line a:hover {
  color: var(--rc-orange);
}

/* ---------- Administration ---------- */
.contacts-admin {
  margin-top: 2.5rem;
}

.contacts-admin__card {
  background: var(--rc-white);
  border: 1px solid var(--rc-light-grey);
  border-radius: var(--q2-radius-lg);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--q2-shadow-card);
}

.contacts-admin__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.contacts-admin__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 6, 85, 0.08);
  color: var(--rc-navy);
  font-size: 1.3rem;
  flex: 0 0 auto;
}

.contacts-admin__title {
  margin: 0;
  font-size: 1.2rem;
}

.contacts-admin__hint {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--rc-grey);
}

.contacts-admin__table {
  margin: 0 0 1.2rem;
  max-width: 560px;
}

/* ---------- Как добраться (markdown content) ---------- */
.contacts-getting {
  margin-top: 2rem;
}

.contacts-section-title {
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

.contacts-getting__body h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.02rem;
  margin: 1rem 0 0.3rem;
}

.contacts-getting__body h3::before {
  content: '';
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--rc-orange);
  flex: 0 0 auto;
}

.contacts-getting__body p {
  max-width: 640px;
  margin: 0 0 1rem;
  color: var(--rc-dark);
  line-height: 1.6;
}

/* ---------- Yandex map ---------- */
.contacts-map {
  margin-top: 2.5rem;
}

.contacts-map__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--q2-radius-lg);
  border: 1px solid var(--rc-light-grey);
  box-shadow: var(--q2-shadow-card);
  line-height: 0;
}

.contacts-map__frame iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

/* ---------- Dark mode ---------- */
:root[data-theme='dark'] .contacts-card,
:root[data-theme='dark'] .contacts-admin__card {
  background: var(--rc-white);
  border-color: var(--rc-light-grey);
}

:root[data-theme='dark'] .contacts-card__line {
  color: #d0d0d0;
}
:root[data-theme='dark'] .contacts-card__line a {
  color: #e0e0e0;
}

:root[data-theme='dark'] .contacts-admin__icon {
  background: rgba(255, 255, 255, 0.08);
  color: #e0e0e0;
}

:root[data-theme='dark'] .contacts-admin__hint {
  color: #9a9aa0;
}

:root[data-theme='dark'] .contacts-getting__body p {
  color: #d0d0d0;
}

:root[data-theme='dark'] .contacts-map__frame {
  border-color: var(--rc-light-grey);
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .contacts-hero {
    padding: 3.2rem 0 2.8rem;
  }
  .contacts-admin__card {
    padding: 1.2rem 1.1rem;
  }
  .contacts-map__frame iframe {
    height: 320px;
  }
}
