/* ==========================================================================
   ЭК «МАСТЕР-ДОМ» — базовый слой дизайн-системы
   Токены, сброс, типографика, сетка, шапка, подвал, секции
   ========================================================================== */

/* ---------- Токены ---------- */
:root {
  /* Палитра — фирменные цвета «ЭК «Мастер-Дом» (#007342 / #FECC00) */
  --brand-950: #04231A;
  --brand-900: #063526;
  --brand-800: #064A33;
  --brand-700: #00603A;   /* тёмно-зелёный для текста и ссылок */
  --brand-600: #007342;   /* фирменный зелёный из логотипа */
  --brand-500: #12905A;
  --brand-400: #4FB183;
  --brand-200: #B3DFC9;
  --brand-100: #DCF0E7;
  --brand-50:  #F1F9F5;

  /* Жёлтый из логотипа: для кнопок — тёмный текст, для текста — accent-700 */
  --accent-700: #7A6000;
  --accent-600: #E8BA00;
  --accent:     #FECC00;
  --accent-400: #FFDD4D;
  --accent-100: #FFF6D6;
  --accent-ink: #06281C;

  --teal-600: #0e9384;
  --teal:     #12b3a0;
  --teal-100: #d7f5f1;

  --danger:   #dc2626;
  --danger-100: #fee2e2;
  --success:  #16a34a;
  --success-100: #dcfce7;
  --warning:  #E5A000;

  /* Нейтральные */
  --ink:       #0C2118;
  --ink-2:     #294036;
  --muted:     #5E7A6D;
  --muted-2:   #8BA398;
  --line:      #E1EBE5;
  --line-2:    #EFF5F1;
  --surface:   #ffffff;
  --surface-2: #F6FAF7;
  --surface-3: #EBF3EE;

  /* Геометрия */
  --container: 1200px;
  --container-narrow: 880px;
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Тени */
  --sh-xs: 0 1px 2px rgba(12, 33, 24, .05);
  --sh-sm: 0 1px 2px rgba(12, 33, 24, .05), 0 4px 14px rgba(12, 33, 24, .06);
  --sh-md: 0 2px 4px rgba(12, 33, 24, .04), 0 12px 32px rgba(12, 33, 24, .09);
  --sh-lg: 0 18px 48px rgba(4, 35, 26, .16);
  --sh-xl: 0 32px 80px rgba(4, 35, 26, .22);
  --sh-accent: 0 12px 32px rgba(254, 204, 0, .35);
  --sh-brand: 0 12px 32px rgba(0, 115, 66, .26);

  /* Прочее */
  --header-h: 78px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, .05, .36, 1);
  --grad-brand: linear-gradient(135deg, var(--brand-800) 0%, var(--brand-600) 55%, var(--brand-500) 100%);
  --grad-accent: linear-gradient(135deg, var(--accent-600) 0%, var(--accent-400) 100%);
  --grad-dark: linear-gradient(160deg, #04231A 0%, #063526 45%, #064A33 100%);
  --font: "Inter", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text",
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Manrope", "Inter", "Segoe UI Variable Display", "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  overflow-x: clip;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100%;
}

body.is-locked { overflow: hidden; }

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

a { color: var(--brand-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent-600); }

ul, ol { padding: 0; }
li { list-style: none; }

hr { border: 0; border-top: 1px solid var(--line); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: #fff; }

/* ---------- Типографика ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.022em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.15rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.6rem); line-height: 1.25; }
h4 { font-size: 1.12rem; line-height: 1.35; }
h5 { font-size: 1rem; line-height: 1.4; }

p { text-wrap: pretty; }
p + p { margin-top: 1em; }

.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--muted); line-height: 1.7; }

strong, b { font-weight: 700; color: var(--ink); }

/* ---------- Сетка / контейнер ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: 1400px; }

.section { padding-block: clamp(56px, 6vw, 104px); position: relative; }
.section--tight { padding-block: clamp(40px, 4.4vw, 72px); }
.section--soft { background: var(--surface-2); }
.section--brand { background: var(--grad-dark); color: #c7d7e6; }
.section--brand h1, .section--brand h2, .section--brand h3, .section--brand h4 { color: #fff; }
.section--brand .lead, .section--brand .muted { color: #9fb6cb; }
.section--line { border-top: 1px solid var(--line); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-auto-lg { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split--rev > *:first-child { order: 2; }

/* ---------- Утилиты ---------- */
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .8125rem; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.nowrap { white-space: nowrap; }
.only-mobile { display: none !important; }
.flow > * + * { margin-top: var(--flow, 20px); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: 10px; left: 10px; z-index: 999;
  transform: translateY(-200%);
  background: var(--accent); color: #fff; padding: 10px 18px;
  border-radius: var(--r-sm); font-weight: 700;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); color: #fff; }

/* ---------- Заголовок секции ---------- */
.sec-head { max-width: 760px; margin-bottom: clamp(28px, 3.5vw, 52px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head .lead { margin-top: 14px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-600);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  padding: 7px 15px; border-radius: var(--r-pill);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(254, 204, 0, .22);
}
.eyebrow--light {
  color: #FFE79A; background: rgba(254, 204, 0, .14);
  border-color: rgba(254, 204, 0, .35);
}
.eyebrow--accent { color: var(--accent-700); background: var(--accent-100); border-color: #ffd6bf; }
.eyebrow--accent::before { background: var(--accent-700); box-shadow: 0 0 0 4px rgba(209, 74, 5, .14); }

/* ---------- Кнопки ---------- */
.btn {
  --btn-bg: var(--brand-700);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700; font-size: .97rem; line-height: 1;
  padding: 15px 26px; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              background-color .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
  white-space: nowrap; text-align: center; cursor: pointer;
  box-shadow: var(--sh-sm);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Жёлтая кнопка — тёмный текст: белый на жёлтом нечитаем */
.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); box-shadow: var(--sh-accent); }
.btn--accent:hover { --btn-bg: var(--accent-600); --btn-fg: var(--accent-ink); }
.btn--brand { box-shadow: var(--sh-brand); }
.btn--brand:hover { --btn-bg: var(--brand-600); }
.btn--danger { --btn-bg: var(--danger); box-shadow: 0 12px 32px rgba(220, 38, 38, .28); }
.btn--danger:hover { --btn-bg: #b91c1c; }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: var(--line); box-shadow: none;
}
.btn--ghost:hover { --btn-fg: var(--brand-700); border-color: var(--brand-400); background: var(--brand-50); box-shadow: var(--sh-xs); }
.btn--light {
  --btn-bg: rgba(255, 255, 255, .1); --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(8px); box-shadow: none;
}
.btn--light:hover { --btn-bg: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .5); }
.btn--white { --btn-bg: #fff; --btn-fg: var(--brand-800); box-shadow: var(--sh-md); }
.btn--white:hover { --btn-fg: var(--brand-800); background: var(--brand-50); }
.btn--lg { padding: 18px 34px; font-size: 1.05rem; }
.btn--sm { padding: 11px 20px; font-size: .875rem; }
.btn--block { width: 100%; }
.btn--link {
  --btn-bg: transparent; --btn-fg: var(--brand-600);
  padding: 4px 0; box-shadow: none; border-radius: 0;
}
.btn--link:hover { --btn-fg: var(--accent-600); transform: none; box-shadow: none; }
.btn--link svg { transition: transform .22s var(--ease); }
.btn--link:hover svg { transform: translateX(4px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Ссылка-стрелка ---------- */
.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: .93rem;
  color: var(--brand-600);
}
.arrow-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.arrow-link:hover svg { transform: translateX(5px); }

/* ---------- Бейджи / чипы ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
  padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--brand-50); color: var(--brand-700);
  border: 1px solid var(--brand-100);
}
.badge--accent { background: var(--accent-100); color: var(--accent-700); border-color: #ffd6bf; }
.badge--teal { background: var(--teal-100); color: #0a7265; border-color: #b6ece5; }
.badge--danger { background: var(--danger-100); color: #991b1b; border-color: #fecaca; }
.badge--success { background: var(--success-100); color: #166534; border-color: #bbf7d0; }
.badge--muted { background: var(--surface-3); color: var(--muted); border-color: var(--line); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: .82rem; font-weight: 600; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line);
  padding: 7px 14px; border-radius: var(--r-pill);
}
.chip--on { background: var(--brand-700); color: #fff; border-color: var(--brand-700); }

/* ==========================================================================
   Шапка
   ========================================================================== */
.topbar {
  background: var(--brand-950);
  color: #93a9c0;
  font-size: .82rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.topbar__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 40px; flex-wrap: wrap;
}
.topbar a { color: #cfdcea; font-weight: 600; }
.topbar a:hover { color: var(--accent-400); }
.topbar__group { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__item svg { width: 15px; height: 15px; color: var(--brand-400); }
.topbar__sos {
  display: inline-flex; align-items: center; gap: 7px;
  color: #fff; font-weight: 700;
  background: rgba(220, 38, 38, .16);
  border: 1px solid rgba(220, 38, 38, .45);
  padding: 4px 12px; border-radius: var(--r-pill);
}
.topbar__sos:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.topbar__dot {
  width: 7px; height: 7px; border-radius: 50%; background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, .7);
  animation: pulse-dot 2.2s infinite;
}
@keyframes pulse-dot {
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.header.is-stuck { box-shadow: 0 6px 26px rgba(27, 24, 48, .09); background: rgba(255, 255, 255, .95); }
.header__in {
  display: flex; align-items: center; gap: 26px;
  min-height: var(--header-h);
}

/* Логотип — готовый локап «ЭК «Мастер-Дом» */
.logo { display: inline-flex; align-items: center; flex: none; }
.logo__img { display: block; height: 46px; width: auto; }

/* Навигация */
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 650; font-size: .93rem;
  color: var(--ink-2); padding: 10px 14px; border-radius: var(--r-sm);
  white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__link:hover { color: var(--brand-700); background: var(--brand-50); }
.nav__link svg { width: 13px; height: 13px; transition: transform .25s var(--ease); }
.nav__item:hover > .nav__link svg { transform: rotate(180deg); }
.nav__link.is-active { color: var(--brand-700); background: var(--brand-50); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--accent);
}

/* Мега-меню */
.mega {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translate(-50%, 10px);
  width: min(760px, calc(100vw - 40px));
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  padding: 22px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px;
}
.nav__item:hover > .mega,
.nav__item:focus-within > .mega {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0);
}
.mega__list { display: grid; gap: 4px; }
.mega__link {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 11px 13px; border-radius: var(--r-sm);
  transition: background-color .2s var(--ease);
}
.mega__link:hover { background: var(--brand-50); }
.mega__ico {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  background: var(--brand-100); color: var(--brand-600);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.mega__link:hover .mega__ico { background: var(--accent); color: #fff; }
.mega__ico svg { width: 20px; height: 20px; }
.mega__t { font-family: var(--font-display); font-weight: 700; font-size: .92rem; color: var(--ink); }
.mega__d { font-size: .8rem; color: var(--muted); line-height: 1.45; }
.mega__aside {
  background: var(--grad-dark); border-radius: var(--r-md);
  padding: 22px; color: #b7cadc; display: flex; flex-direction: column;
}
.mega__aside h4 { color: #fff; margin-bottom: 8px; font-size: 1rem; }
.mega__aside p { font-size: .84rem; line-height: 1.55; }
.mega__aside .btn { margin-top: auto; }

/* Кнопки шапки */
.header__actions { display: flex; align-items: center; gap: 12px; flex: none; }
.header__phone {
  display: flex; flex-direction: column; line-height: 1.15; text-align: right;
}
.header__phone b {
  font-family: var(--font-display); font-size: .98rem; color: var(--ink);
  letter-spacing: -.01em; white-space: nowrap;
}
.header__phone span { font-size: .72rem; color: var(--muted-2); }

/* Бургер */
.burger {
  display: none; width: 46px; height: 46px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: #fff;
  place-items: center; flex: none;
}
.burger span {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--ink); position: relative;
  transition: transform .3s var(--ease), background-color .2s;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px;
  border-radius: 2px; background: var(--ink);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { top: 0; transform: rotate(45deg); }
.burger.is-open span::after { top: 0; transform: rotate(-45deg); }

/* Мобильное меню */
.mobile-nav {
  position: fixed; inset: 0 0 0 auto; width: min(420px, 100%);
  background: #fff; z-index: 200;
  transform: translateX(102%); transition: transform .38s var(--ease);
  display: flex; flex-direction: column;
  box-shadow: var(--sh-xl); overflow-y: auto; overscroll-behavior: contain;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav__top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: #fff; z-index: 2;
}
.mobile-nav__close {
  width: 42px; height: 42px; border-radius: var(--r-sm);
  border: 1px solid var(--line); display: grid; place-items: center;
}
.mobile-nav__close svg { width: 18px; height: 18px; }
.mobile-nav__body { padding: 14px 12px 28px; }
.mobile-nav__list { display: grid; gap: 2px; }
.mobile-nav__link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: var(--font-display); font-weight: 650; font-size: 1rem;
  color: var(--ink); padding: 14px 14px; border-radius: var(--r-sm);
}
.mobile-nav__link:hover, .mobile-nav__link.is-active { background: var(--brand-50); color: var(--brand-700); }
.mobile-nav__link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); color: var(--muted-2); }
.mobile-nav__link.is-open svg { transform: rotate(180deg); }
.mobile-nav__sub { display: grid; overflow: hidden; max-height: 0; transition: max-height .35s var(--ease); }
.mobile-nav__sub.is-open { max-height: 640px; }
.mobile-nav__sub a {
  display: block; padding: 11px 14px 11px 26px; font-size: .91rem;
  color: var(--muted); border-left: 2px solid var(--line); margin-left: 14px;
}
.mobile-nav__sub a:hover { color: var(--brand-700); border-color: var(--accent); }
.mobile-nav__cta { margin-top: 22px; padding: 0 6px; display: grid; gap: 10px; }
.mobile-nav__info {
  margin-top: 22px; padding: 18px; border-radius: var(--r-md);
  background: var(--surface-2); font-size: .87rem;
}
.mobile-nav__info a { font-weight: 700; }

.scrim {
  position: fixed; inset: 0; background: rgba(4, 16, 31, .55);
  backdrop-filter: blur(3px); opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s; z-index: 190;
}
.scrim.is-open { opacity: 1; visibility: visible; }

/* ==========================================================================
   Подвал
   ========================================================================== */
.footer { background: var(--grad-dark); color: #93a9c0; padding-top: clamp(48px, 5vw, 76px); font-size: .9rem; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; font-weight: 800; }
.footer a { color: #b9cbdb; }
.footer a:hover { color: var(--accent-400); }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px 32px; padding-bottom: 44px;
}
.footer__about p { margin-top: 18px; line-height: 1.7; max-width: 34ch; }
.footer__list { display: grid; gap: 11px; }
.footer__list a { display: inline-flex; align-items: center; gap: 8px; }
.footer__list a::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--brand-400); flex: none;
}
.footer__contact { display: grid; gap: 16px; }
.footer__contact-item { display: flex; gap: 12px; align-items: flex-start; }
.footer__contact-item svg { width: 18px; height: 18px; color: var(--accent-400); flex: none; margin-top: 3px; }
.footer__contact-item b { color: #fff; display: block; font-family: var(--font-display); }
.footer__contact-item span { display: block; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding-block: 22px 28px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: .82rem; color: #7b90a6;
}
.footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__sos {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  justify-content: space-between;
  background: rgba(220, 38, 38, .1);
  border: 1px solid rgba(220, 38, 38, .3);
  border-radius: var(--r-md); padding: 20px 24px; margin-bottom: 44px;
}
.footer__sos b { color: #fff; font-family: var(--font-display); font-size: 1.05rem; }
.footer__sos p { font-size: .86rem; }

/* ==========================================================================
   Всплывающие элементы
   ========================================================================== */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--brand-700); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--sh-md);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: all .3s var(--ease);
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); color: #fff; }
.to-top svg { width: 20px; height: 20px; }

.call-fab {
  position: fixed; right: 24px; bottom: 86px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff;
  padding: 13px 20px 13px 15px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  box-shadow: var(--sh-accent);
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.call-fab:hover { color: #fff; background: var(--accent-600); transform: translateY(-2px); }
.call-fab svg { width: 18px; height: 18px; }

/* ==========================================================================
   Анимации появления
   ========================================================================== */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal--left { transform: translateX(-30px); }
.reveal--right { transform: translateX(30px); }
.reveal--scale { transform: scale(.96); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1120px) {
  .nav, .header__phone { display: none; }
  .burger { display: grid; }
  .header__in { justify-content: space-between; }
}

@media (max-width: 980px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split--rev > *:first-child { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  :root { --header-h: 68px; }
  body { font-size: 15.5px; }
  .container { padding-inline: 18px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .hide-mobile { display: none !important; }
  .topbar__in > .topbar__group:first-child { display: none; }
  .topbar__in { justify-content: center; }
  .only-mobile { display: block !important; }
  .only-mobile--flex { display: flex !important; }
  .only-mobile--inline { display: inline-flex !important; }
  .btn { width: 100%; }
  .btn-row .btn { width: 100%; }
  .btn--auto-mobile { width: auto; }
  .header__actions { gap: 8px; }
  .header__actions .btn {
    width: 46px; height: 46px; padding: 0; border-radius: 50%;
    font-size: 0; gap: 0; flex: none;
  }
  .header__actions .btn svg { width: 19px; height: 19px; }
  .logo__img { height: 38px; }
  .cta-band__actions .btn { width: 100%; }
  .vacancy__foot .btn { width: 100%; }
  .eyebrow { font-size: .7rem; padding: 6px 12px; letter-spacing: .1em; }
  .call-fab span { display: none; }
  .call-fab { padding: 15px; border-radius: 50%; right: 16px; bottom: 78px; }
  .to-top { right: 16px; bottom: 16px; }
}

@media (max-width: 420px) {
  .logo__img { height: 32px; }
}
