/* Основа стилей (этап 2.2). Токены — ТП, раздел 5. Вёрстка секций — отдельно, этап 2.3 */

/* Шрифт Golos Text: статичные woff2 по весам и подмножествам, assets/fonts/ (лицензия OFL.txt рядом) */
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-400-cyrillic.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-500-cyrillic.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-600-cyrillic.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-700-cyrillic.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-800-cyrillic.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-800-latin.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Запасной шрифт с метриками Golos Text (подобраны замером): текст не прыгает при подмене шрифта.
   Работает там, где есть Arial или метрически равный ему Liberation Sans / Arimo; на остальных системах берётся system-ui */
@font-face {
  font-family: "Golos Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Arimo");
  font-weight: 400 500;
  size-adjust: 107%;
  ascent-override: 91.6%;
  descent-override: 20.6%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Golos Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Arimo Bold");
  font-weight: 600 800;
  size-adjust: 102.5%;
  ascent-override: 95.6%;
  descent-override: 21.5%;
  line-gap-override: 0%;
}

:root {
  /* Цвета */
  --c-navy: #0B2545;
  --c-navy-deep: #071B33;
  --c-blue: #134074;
  --c-teal: #2EC4B6;
  --c-teal-dark: #0F7A72;
  --c-teal-light: #7FE0D6;
  --c-bg: #F4F7FA;
  --c-surface: #FFFFFF;
  --c-muted: #4A6180;
  --c-on-dark: #C9D8E8;
  --c-on-photo: #DCE6F2;
  --c-footnote: #8FA6C0;
  --c-border: #D6DFEA;
  --c-border-strong: #9DB0C6;
  --c-border-input: #8596A8; /* рамка полей формы: 3,03 : 1 к белому (WCAG 1.4.11); --c-border-strong даёт 2,2 : 1 */
  --c-error: #B42318;

  /* Шрифт */
  --font-base: "Golos Text", "Golos Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Размеры текста: плавно от значений макета 390 к значениям макета 1440 */
  --fs-h1: clamp(36px, 26.34px + 2.476vw, 62px);
  --fs-h2: clamp(30px, 24.8px + 1.333vw, 44px);
  --fs-h2-small: clamp(24px, 21.2px + 0.762vw, 30px);
  --fs-h3-large: clamp(22px, 19.77px + 0.571vw, 28px);
  --fs-h3: clamp(18px, 17.26px + 0.19vw, 20px);
  --fs-lead: clamp(17px, 15.51px + 0.381vw, 21px);
  --fs-body: clamp(16px, 15.26px + 0.19vw, 18px);
  --fs-small: clamp(14px, 13.63px + 0.095vw, 15px);
  --fs-label: 13px;

  /* Радиусы */
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-card: 18px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* Сетка и отступы */
  --container-max: 1200px;
  --container-wide: 1340px;
  --gutter: 20px;
  --section-y: 56px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;

  /* Тени */
  --shadow-popup: 0 8px 32px rgba(11, 37, 69, .18);

  /* Слои */
  --z-header: 10;
  --z-cookie: 100;
}

@media (min-width: 768px) {
  :root {
    --gutter: 40px;
    --section-y: 88px;
  }
}

/* Reset */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }

ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

img, svg, video { display: block; max-width: 100%; height: auto; }
/* picture не создаёт блок: размеры и позиционирование img задают родители */
picture { display: contents; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

[hidden] { display: none !important; }

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

/* База */
body {
  min-height: 100vh;
  font-family: var(--font-base);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--c-navy);
  background: var(--c-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--c-blue); }

:focus-visible {
  outline: 3px solid var(--c-teal-dark);
  outline-offset: 2px;
}

/* Ссылка «Перейти к содержанию» (ТП 14): первая по Tab, видна только в фокусе */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: var(--c-navy);
  color: var(--c-surface);
  font-weight: 700;
  transform: translateY(-200%);
}
::placeholder { color: var(--c-muted); opacity: 1; } /* Firefox по умолчанию ослабляет цвет подсказки ниже 4,5 : 1 */
.skip-link:focus { transform: none; }
/* Кольцо фокуса на тёмном фоне: --c-teal-dark на navy даёт 2,97 : 1 (нужно ≥ 3 : 1, WCAG 1.4.11) */
.skip-link:focus-visible,
.hero :focus-visible,
.order__info :focus-visible,
.footer :focus-visible { outline-color: var(--c-teal-light); }
main:focus { outline: none; }

/* Типографика */
h1, h2, h3 { font-weight: 800; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); line-height: 1.25; font-weight: 700; }

/* Контейнер */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: var(--container-wide); }

/* Юридические страницы и cookie-баннер (этап 2.6) */
.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px var(--gutter) 64px;
  color: var(--c-navy);
}
.legal h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; margin: 0 0 var(--space-2); }
.legal__subtitle { color: var(--c-muted); margin: 0 0 var(--space-5); }
.legal h2 { font-size: clamp(22px, 3vw, 28px); margin: var(--space-6) 0 var(--space-3); }
.legal h3 { font-size: 20px; margin: var(--space-5) 0 var(--space-2); }
.legal p { margin: 0 0 var(--space-3); }
.legal ul { margin: 0 0 var(--space-3); padding-left: var(--space-5); }

/* Страница 404 (этап 2.7) */
.notfound {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px var(--gutter) 96px;
  color: var(--c-navy);
}
.notfound h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; margin: 0 0 var(--space-3); }
.notfound p { margin: 0 0 var(--space-5); color: var(--c-muted); }
.notfound .btn { display: inline-flex; }

.cookie-banner {
  position: fixed;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: var(--z-cookie);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-5);
  background: var(--c-surface);
  color: var(--c-navy);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-popup);
}
.cookie-banner p { flex: 1 1 360px; font-size: var(--fs-small); line-height: 1.45; }
.cookie-banner a { color: var(--c-blue); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.cookie-banner button {
  min-height: 44px;
  padding: 0 var(--space-4);
  font-weight: 700;
  color: var(--c-navy);
  background: transparent;
  border: 2px solid var(--c-navy);
  border-radius: var(--radius-sm);
}
.cookie-banner button[data-cookie-choice="accepted"] {
  background: var(--c-teal);
  border-color: var(--c-teal);
}

/* Тексты, которые в макете различаются на десктопе и мобильном */
.desktop-only { display: none; }
@media (min-width: 768px) {
  .desktop-only { display: inline; }
  .mobile-only { display: none; }
}

/* Кнопки и чипы (этап 2.3a) */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 var(--space-6);
  border-radius: var(--radius-md);
  font-size: clamp(18px, 17.6px + .1vw, 19px);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.btn--primary { background: var(--c-teal); color: var(--c-navy); }
.btn--outline { border: 1.5px solid rgba(201, 216, 232, .5); color: var(--c-surface); }
.btn:hover { filter: brightness(1.08); }
.btn--outline:hover { border-color: var(--c-on-dark); filter: none; }

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .08);
  color: var(--c-surface);
  font-size: var(--fs-small);
  text-decoration: none;
}
.chip:hover { background: rgba(255, 255, 255, .14); }
.chip img, .chip svg { flex: none; }
.chip img { width: 20px; height: 20px; }

/* Шапка */
.header {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-block: 10px;
}
.header__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-navy);
  text-decoration: none;
}
.header__logo img { width: auto; height: 39px; }
.header__brand { display: flex; flex-direction: column; line-height: 1.1; }
.header__name { font-weight: 800; font-size: 16px; letter-spacing: .02em; }
.header__tagline { font-size: 10px; color: var(--c-muted); }
/* 12 px (порог Lighthouse) с 390 px; на более узких экранах подпись при 12 px вытесняет бургер на вторую строку */
@media (min-width: 390px) {
  .header__tagline { font-size: 12px; }
}
/* Без JS бургер не показываем, пункты меню стоят отдельной строкой */
.header__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  width: 100%;
  font-weight: 500;
}
.header__nav a { color: var(--c-navy); text-decoration: none; }
.header__extra { display: none; }
.header__burger {
  display: none;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 46px;
  height: 46px;
  color: var(--c-navy);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
}

/* Мобильное меню (ТП 7.2): выпадающая панель под шапкой, открытое состояние в макете не нарисовано */
@media (max-width: 767.98px) {
  .header { position: relative; z-index: var(--z-header); }
  .header--js .header__burger { display: flex; }
  .header--js .header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    padding: var(--space-2) var(--gutter) var(--space-5);
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow-popup);
  }
  .header--js.is-open .header__nav { display: flex; }
  .header--js .header__nav > a {
    display: flex;
    align-items: center;
    min-height: 56px;
    border-bottom: 1px solid var(--c-border);
    font-size: 20px;
    font-weight: 600;
  }
  .header--js .header__extra {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-top: var(--space-5);
  }
  .header__phone { align-self: flex-start; padding-block: 8px; font-size: 22px; font-weight: 700; }
  .header--js .header__extra .btn { min-height: 54px; }
}

@media (min-width: 768px) {
  .header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: rgba(244, 247, 250, .92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  /* Шапка ~88 px вместо 129 по макету (-32%, решение заказчика) */
  .header__inner { flex-wrap: wrap; gap: var(--space-5); padding-block: 10px; }
  .header__logo { gap: var(--space-3); margin-right: auto; height: 66px; }
  .header__logo img { height: 52px; }
  .header__name { font-size: 17px; line-height: 1.15; }
  .header__tagline { line-height: 1.15; }
  .header__nav { width: auto; gap: 28px; font-size: 16px; }
  .header__nav a:hover { color: var(--c-teal-dark); }
  .header__burger { display: none; }
  /* Якоря не прячутся под прилипшей шапкой */
  [id] { scroll-margin-top: 96px; }
}
/* Узкий планшет: меню переносится под логотип, шапка 135 px */
@media (min-width: 768px) and (max-width: 899.98px) {
  [id] { scroll-margin-top: 144px; }
}

/* Первый экран */
.hero {
  background: var(--c-navy);
  color: var(--c-surface);
  overflow: hidden;
}
.hero__main { position: relative; }
.hero__inner { position: relative; z-index: 1; padding-block: 28px 20px; }
.hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(127, 224, 214, .45);
  border-radius: var(--radius-pill);
  color: var(--c-teal-light);
  font-size: clamp(12px, 9.4px + .67vw, 15px);
  font-weight: 600;
  line-height: 1.3;
}
.hero__badge svg { flex: none; }
.hero__lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--c-on-dark); max-width: 560px; }
.hero__cta { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.hero__contacts { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.hero__contacts .chip { flex: 1 1 0; min-width: 0; }
.hero__contacts .chip--phone { flex-basis: 100%; }
.chip__phone-number { display: none; }

/* Фото «бык + ДНК»: чёрный фон растворяется на navy через screen; маски по краям — вложенные, чтобы работало без mask-composite */
.hero__photo {
  mix-blend-mode: screen;
  margin-top: 4px;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}
.hero__photo img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: 75% 40%;
}

.hero__stats .hero__stats-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 8px;
  padding-block: 22px 26px;
  list-style: none;
}
.hero__stats { position: relative; z-index: 1; }
.hero__stats-list li { min-width: 0; }
.hero__stat-value {
  display: block;
  font-size: clamp(38px, 34.6px + .87vw, 52px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--c-teal);
}
.hero__stat-label { display: block; margin-top: 6px; font-size: var(--fs-small); color: var(--c-on-dark); }

@media (max-width: 767px) {
  /* Линия над цифрами по ширине контента */
  .hero__stats .hero__stats-list { border-top: 1px solid rgba(201, 216, 232, .2); }
}

@media (min-width: 768px) {
  .hero__inner { padding-block: 72px 0; }
  .hero__text { gap: 28px; padding-bottom: 72px; }
  .hero__badge { padding: 8px 16px; gap: 10px; }
  .hero__cta { flex-direction: row; flex-wrap: wrap; gap: 14px; width: auto; }
  .btn { min-height: 60px; padding: 0 34px; }
  .hero__contacts { width: auto; gap: 10px; font-size: 16px; }
  .hero__contacts .chip, .hero__contacts .chip--phone { flex: none; padding: 0 14px; min-height: 44px; justify-content: flex-start; gap: 8px; font-size: 16px; }
  .hero__contacts .chip img { width: 22px; height: 22px; }
  .chip__phone-number { display: inline; }
  .chip__phone-label { display: none; }

  .hero__photo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60%;
    margin: 0;
    opacity: .9;
    -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 22%);
    mask-image: linear-gradient(to top, transparent 0%, #000 22%);
  }
  .hero__photo img {
    height: 100%;
    object-position: 70% 40%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 40%);
    mask-image: linear-gradient(to right, transparent 0%, #000 40%);
  }

  .hero__stats .hero__stats-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-6);
    margin-top: 0;
    padding-block: 36px;
  }
  .hero__stats-list li { flex: 1 1 200px; }
  .hero__stat-label { margin-top: 8px; font-size: 16px; }
  .hero__stats { border-top: 1px solid rgba(201, 216, 232, .2); }
}

/* Преимущества */
.advantages { background: var(--c-bg); }
.advantages__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-block: 48px;
}
.advantages h2 { max-width: 620px; }
.advantages__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  justify-content: center;
  list-style: none;
}
.adv-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-height: 260px;
  padding: 22px;
  background: var(--c-navy);
  border-radius: var(--radius-card);
}
.adv-card picture { display: block; position: absolute; inset: 0; z-index: -2; }
.adv-card__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.adv-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(11, 37, 69, .96) 0%, rgba(11, 37, 69, .88) 42%, rgba(11, 37, 69, .35) 100%);
}
.adv-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: var(--c-teal-light);
  background: rgba(11, 37, 69, .72);
  border: 1px solid rgba(127, 224, 214, .45);
  border-radius: var(--radius-lg);
}
.adv-card__icon svg { width: clamp(26px, 24.7px + .33vw, 30px); height: auto; }
.adv-card__body { display: flex; flex-direction: column; gap: 10px; }
.adv-card h3 { font-size: clamp(19px, 18.2px + .2vw, 21px); color: var(--c-surface); }
.adv-card p { font-size: clamp(15px, 14.6px + .1vw, 16px); color: var(--c-on-photo); }

@media (min-width: 721px) {
  .advantages__grid { grid-template-columns: repeat(2, 300px); }
  .adv-card { min-height: 380px; padding: 28px; }
}
@media (min-width: 768px) {
  .advantages__inner { gap: 40px; padding-block: var(--section-y); }
}
@media (min-width: 1340px) {
  .advantages__grid { grid-template-columns: repeat(4, 300px); }
}

/* Услуга, процесс, соответствие (этап 2.3b). Размеры шрифтов: clamp от значения макета 390 к значению макета 1440 */
.lead { font-size: clamp(16px, 14.89px + .286vw, 19px); color: var(--c-muted); }

.service {
  background: var(--c-surface);
  border-block: 1px solid var(--c-border);
}
.service__inner {
  --service-gap: 26px;
  display: flex;
  flex-direction: column;
  gap: var(--service-gap);
  padding-block: 48px;
}

.tabs { display: flex; gap: 8px; }
.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  color: var(--c-muted);
  font-size: clamp(15px, 14.6px + .1vw, 16px);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.tab:hover { color: var(--c-navy); border-color: var(--c-border-strong); }
.tab[aria-selected="true"] {
  border: 0;
  background: var(--c-navy);
  color: var(--c-surface);
  font-weight: 700;
}

.service__panel { display: flex; flex-direction: column; gap: var(--service-gap); }
.service__row { display: flex; flex-wrap: wrap; gap: 26px; }
.service__text,
.service__points { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.service__text { flex-basis: 480px; gap: 26px; }
.service__points { flex-basis: 360px; gap: 10px; }

/* Подпись вкладки: видна, пока нет JS (панели друг под другом) */
.service__kind {
  margin-bottom: -12px;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-teal-dark);
}

.service--tabs .service__kind { display: none; }

.accordion {
  padding: 16px 18px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
}
.accordion summary {
  /* Область нажатия 44 px без смены раскладки: padding добавляет высоту, отрицательный margin забирает её обратно */
  padding-block: 10px;
  margin-block: -10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: clamp(16px, 15.63px + .095vw, 17px);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion__icon {
  flex: none;
  color: var(--c-teal-dark);
  font-size: 22px;
  line-height: 1;
  transition: transform .2s;
}
/* «+» поворачивается в «×» (ТП 5.4, 7.4) */
.accordion[open] .accordion__icon { transform: rotate(45deg); }

/* Плавное раскрытие там, где браузер умеет ::details-content и interpolate-size; в остальных мгновенно */
@supports (interpolate-size: allow-keywords) and selector(::details-content) {
  .accordion { interpolate-size: allow-keywords; }
  .accordion::details-content {
    block-size: 0;
    overflow: clip;
    opacity: 0;
    transition: block-size .25s, opacity .25s, content-visibility .25s allow-discrete;
  }
  .accordion[open]::details-content { block-size: auto; opacity: 1; }
}
.accordion p {
  margin-top: 12px;
  font-size: clamp(15px, 14.63px + .095vw, 16px);
  color: var(--c-muted);
}

.service__points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--c-bg);
  border-radius: var(--radius-md);
}
.service__points svg {
  flex: none;
  width: clamp(20px, 18.51px + .381vw, 24px);
  margin-top: 2px;
  color: var(--c-teal-dark);
}
.service__points span {
  font-size: clamp(15px, 14.26px + .19vw, 17px);
  font-weight: 600;
}

.loci {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--c-border);
  border-radius: 16px;
}
.loci__head { display: flex; flex-direction: column; gap: 16px; }
.loci h3 { font-size: clamp(20px, 17.77px + .571vw, 26px); line-height: 1.5; }
.legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: clamp(13px, 12.26px + .19vw, 15px);
  color: var(--c-muted);
}
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend__swatch { flex: none; width: 12px; height: 12px; border-radius: 3px; }
.legend__swatch--isag { background: var(--c-teal); }
.legend__swatch--fao { background: var(--c-navy); }

.loci__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.locus {
  padding: 10px 4px;
  border: 1px solid var(--c-teal);
  border-radius: 8px;
  background: rgba(46, 196, 182, .16);
  text-align: center;
  font-size: clamp(13px, 12.26px + .19vw, 15px);
  font-weight: 600;
}
.locus--fao { background: var(--c-bg); border-color: var(--c-navy); }

.receipt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--c-navy);
  color: var(--c-surface);
  border-radius: 16px;
}
.receipt__text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.receipt h3 { font-size: clamp(24px, 21.77px + .571vw, 30px); line-height: 1.2; }
.receipt__text p { font-size: clamp(16px, 15.26px + .19vw, 18px); color: var(--c-on-dark); }
.receipt__card {
  flex: 1 1 300px;
  min-width: 0;
  padding: 18px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(127, 224, 214, .3);
  border-radius: var(--radius-md);
}
.receipt__label {
  font-size: clamp(12px, 11.26px + .19vw, 13px);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-teal-light);
}
.receipt__rows {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 14px;
  font-size: clamp(14px, 13.63px + .095vw, 15px);
}
.receipt__rows > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(201, 216, 232, .2);
}
.receipt__rows dt { color: var(--c-on-dark); }
.receipt__rows dd { margin: 0; font-weight: 600; text-align: right; }
.receipt__rows .receipt__verdict { padding-bottom: 0; border-bottom: 0; }
.receipt__verdict dd { font-weight: 700; color: var(--c-teal); }

.process { background: var(--c-bg); }
.process__inner { display: flex; flex-direction: column; gap: 22px; padding-block: 48px; }
.process__head { display: flex; flex-direction: column; gap: 8px; }
.process__steps { display: flex; flex-direction: column; gap: 14px; }
.step { display: flex; align-items: flex-start; gap: 14px; }
.step__num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-teal);
  color: var(--c-navy);
  font-size: 17px;
  font-weight: 800;
}
.step__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.step h3 { font-size: var(--fs-h3); line-height: 1.5; }
.step__body p { font-size: clamp(15px, 14.63px + .095vw, 16px); color: var(--c-muted); }
.step__link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: -3px;
  color: var(--c-teal-dark);
  font-size: clamp(15px, 14.6px + .1vw, 16px);
  font-weight: 700;
  text-decoration: none;
}
.step__link svg { width: 16px; }
.step__link:hover { text-decoration: underline; }
.step--final {
  padding: 18px;
  background: var(--c-navy);
  border-radius: var(--radius-lg);
  color: var(--c-surface);
}
.step--final .step__body p { color: var(--c-on-dark); }

.compliance {
  background: var(--c-surface);
  border-block: 1px solid var(--c-border);
}
.compliance__inner { display: flex; flex-direction: column; gap: 20px; padding-block: 36px; }
.compliance h2 {
  font-size: clamp(22px, 19.03px + .762vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}
.compliance__items { display: flex; flex-direction: column; gap: 16px; }
.compliance__name { font-size: clamp(16px, 15.63px + .095vw, 17px); font-weight: 700; }
.compliance__text {
  margin-top: 4px;
  font-size: clamp(14px, 13.63px + .095vw, 15px);
  color: var(--c-muted);
}

@media (min-width: 768px) {
  .service__inner { --service-gap: 44px; padding-block: var(--section-y); }
  .tabs { flex-wrap: wrap; gap: 12px; }
  .tab { flex: none; min-height: 48px; padding-inline: 24px; }
  .service__row { gap: 56px; }
  .service__text { gap: 20px; }
  .service__kind { margin-bottom: -8px; }
  .service__points { gap: 14px; }
  .accordion { padding: 18px 20px; }
  .accordion summary { gap: 16px; }
  .accordion p { margin-top: 14px; }
  .service__points li { gap: 14px; padding: 20px; border-radius: var(--radius-lg); }

  .loci { gap: 22px; padding: 32px; border-radius: var(--radius-xl); }
  .loci__head { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; }
  .legend { flex-direction: row; flex-wrap: wrap; gap: 20px; }
  .legend__swatch { width: 14px; height: 14px; border-radius: 4px; }
  .loci__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .locus { padding: 12px 8px; border-radius: var(--radius-sm); }

  .receipt { gap: 40px; padding: 40px; border-radius: var(--radius-xl); }
  .receipt__text { gap: 14px; }
  .receipt__card { padding: 24px; border-radius: var(--radius-lg); }
  .receipt__rows { gap: 10px; margin-top: 16px; }
  .receipt__rows > div { gap: 12px; padding-bottom: 10px; }
  .receipt__rows .receipt__verdict { padding-top: 4px; }

  .process__inner { gap: 44px; padding-block: var(--section-y); }
  .process__head { gap: 12px; }
  .process__steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .step {
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-card);
  }
  .step__num { width: 44px; height: 44px; font-size: 19px; }
  .step__body { gap: 12px; align-self: stretch; }
  .step__link { gap: 8px; margin-top: auto; }
  .step__link svg { width: 18px; }
  .step--final { background: var(--c-navy); border-color: var(--c-navy); border-radius: var(--radius-card); }

  .compliance__inner { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 40px; padding-block: 56px; }
  .compliance h2 { flex: 1 1 320px; min-width: 0; }
  .compliance__items { flex: 2 1 480px; min-width: 0; flex-direction: row; flex-wrap: wrap; gap: 32px; }
  .compliance__items li { flex: 1 1 200px; min-width: 0; }
  .compliance__text { margin-top: 6px; }
}

@media (min-width: 1024px) {
  .loci__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .process__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Документы, заявка, контакты, подвал (этап 2.3c) */
.docs {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
}
.docs__inner { display: flex; flex-direction: column; gap: 20px; padding-block: 48px; }
.docs__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.doc-card {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  color: var(--c-navy);
  text-decoration: none;
}
.doc-card { position: relative; }
.doc-card:has(.doc-card__link:hover) { border-color: var(--c-border-strong); }
/* Вся карточка кликабельна через ссылку в заголовке */
.doc-card__link { color: inherit; text-decoration: none; }
.doc-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.doc-card__thumb {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--c-bg);
  border-radius: 8px;
}
.doc-card__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.doc-card__body { display: block; min-width: 0; }
.doc-card__title { display: block; font-size: clamp(17px, 16.63px + .095vw, 18px); font-weight: 700; }
.doc-card__text {
  display: block;
  margin-top: 4px;
  font-size: clamp(14px, 13.63px + .095vw, 15px);
  color: var(--c-muted);
}
.doc-card--accreditation .doc-card__thumb { background: var(--c-navy); color: var(--c-teal-light); }
.doc-card--accreditation svg { width: 30px; height: 30px; stroke-width: 1.8; }
.doc-card__reg-label, .doc-card__reg-number { display: none; }

@media (min-width: 768px) {
  .docs__inner { gap: 36px; padding-block: var(--section-y); }
  .docs__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-card { flex-direction: column; align-items: stretch; gap: 16px; padding: 24px; border-radius: var(--radius-card); }
  .doc-card__thumb { width: auto; border-radius: var(--radius-sm); }
  .doc-card--accreditation .doc-card__thumb { gap: 18px; padding: 24px; text-align: center; }
  .doc-card--accreditation svg { width: 56px; height: 56px; stroke-width: 1.6; }
  .doc-card__reg-label {
    display: block;
    font-size: var(--fs-label);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .doc-card__reg-number { display: block; font-size: 26px; font-weight: 800; letter-spacing: .02em; color: var(--c-surface); }
  .doc-card__text--number { display: none; }
}
@media (min-width: 1024px) {
  .docs__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Заявка. На мобильном порядок: заголовок, текст, спираль, форма, контакты */
.order { background: var(--c-navy); color: var(--c-surface); }
.order__inner { display: flex; flex-direction: column; gap: 20px; padding-block: 48px; }
.order__info { display: contents; }
.order h2 { order: 0; }
.order__lead { order: 0; font-size: var(--fs-lead); color: var(--c-on-dark); }
.order__dna { order: 1; width: 100%; max-width: 300px; height: auto; }
.order-form { order: 2; }
.order__contacts {
  order: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: clamp(16px, 15.63px + .095vw, 17px);
}
.order__contacts a { text-decoration: none; }
.order__phone { color: var(--c-surface); font-weight: 700; font-size: clamp(20px, 19.26px + .19vw, 22px); }
.order__email { color: var(--c-teal-light); }
.order__contacts span { color: var(--c-on-dark); }

.order-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  background: var(--c-surface);
  color: var(--c-navy);
  border-radius: 16px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; }
.field label span { color: var(--c-muted); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--c-border-input);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  color: var(--c-navy);
  font-size: 16px;
}
.field input { height: 52px; padding: 0 14px; }
.field textarea { padding: 12px 14px; resize: vertical; }
.consent { display: flex; align-items: center; gap: 10px; }
.consent input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--c-navy); }
.consent label { font-size: 13px; color: var(--c-muted); }
.consent__note { margin: -2px 0 0 32px; font-size: 13px; color: var(--c-muted); }
.order-form .btn { border: 0; }
.order-form .btn:disabled { opacity: .6; cursor: progress; }
.field__error { margin: 0; font-size: 14px; color: var(--c-error); }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--c-error); }
.form-status { padding: 12px 14px; border-radius: var(--radius-sm); background: #E6F6F4; color: var(--c-navy); font-weight: 600; }
.form-status--error,
.order-form:not(.is-sent) .form-status:not([hidden]) { background: #FDECEA; color: var(--c-error); }
.order-form.is-sent .form-status { font-size: 18px; }
.order-form.is-sent > :not(.form-status) { display: none; }
.order-form { position: relative; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 767px) {
  .order-form .btn { min-height: 56px; border-radius: var(--radius-sm); font-size: 17px; }
}

@media (min-width: 768px) {
  .order__inner { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 56px; padding-block: var(--section-y); }
  .order__info { display: flex; flex: 1 1 400px; min-width: 0; flex-direction: column; gap: 18px; }
  .order__lead { font-size: clamp(16px, 14.89px + .286vw, 19px); }
  .order__contacts { order: 0; margin-top: 8px; gap: 10px; }
  .order__dna { order: 0; max-width: 440px; margin-top: 36px; }
  .order-form { flex: 1 1 440px; min-width: 0; gap: 20px; padding: 36px; border-radius: var(--radius-xl); }
  .field { gap: 8px; }
  .field label { font-size: 15px; }
  .field input, .field textarea { border-radius: var(--radius-md); font-size: 17px; }
  .field input { height: 54px; padding: 0 16px; }
  .field textarea { padding: 14px 16px; }
  .consent { gap: 12px; }
  .consent label { font-size: 15px; }
  .consent__note { margin-left: 34px; font-size: 14px; }
}

/* Спираль ДНК (ТП 5.4): только transform и opacity */
@keyframes dna-spin { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(-1); } }
@keyframes dna-blink { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
.dna-spin { transform-box: fill-box; transform-origin: center; animation: dna-spin 7s ease-in-out infinite; }
.dna-dots circle { animation: dna-blink 2.4s ease-in-out infinite; }
.dna-dots circle:nth-child(3n+1) { animation-delay: -.8s; }
.dna-dots circle:nth-child(3n+2) { animation-delay: -1.6s; }

/* Контакты */
.contacts { background: var(--c-surface); }
.contacts__inner { display: flex; flex-direction: column; gap: 24px; padding-block: 48px; }
.contacts__row { display: flex; flex-wrap: wrap; gap: 24px; }
.contacts__info { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-self: flex-start; margin: 0; }
.contacts__info dt {
  font-size: clamp(12px, 11.26px + .19vw, 13px);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.contacts__info dd {
  margin: 6px 0 0;
  font-size: clamp(17px, 16.26px + .19vw, 19px);
  font-weight: 600;
}
.contacts__info a { text-decoration: none; }
.contacts__info a:hover { text-decoration: underline; }
.contacts__phone { font-weight: 700; }
.contacts__pair { display: flex; flex-wrap: wrap; gap: 24px; }

.map {
  flex: 1 1 420px;
  min-width: 0;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
}
.map__stage { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; }
.map__frame { flex: 1 1 auto; width: 100%; min-height: 240px; border: 0; }
/* Снимок карты: метка с подписью держится выше плашки с адресом на любой ширине */
.map__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 75%; }
/* До 559px в <picture> свой, более крупный кадр: метка в его верхней трети */
@media (max-width: 559px) {
  .map__img { object-position: 50% 20%; }
}
.map__copyright {
  position: absolute;
  top: 8px;
  right: 8px;
  margin: 0;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .85);
  font-size: 12px;
  line-height: 1.4;
  color: var(--c-muted);
}
.map__caption {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 12px;
  padding: 12px 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
}
.map__address { margin: 0; font-weight: 600; }
.map__open {
  min-height: 44px;
  padding: 0 20px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--c-teal);
  color: var(--c-navy);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.map__open:hover { filter: brightness(1.08); }
.map__link {
  padding: 12px 16px;
  background: var(--c-surface);
  font-size: clamp(14px, 13.63px + .095vw, 15px);
  color: var(--c-blue);
  text-align: center;
}

@media (min-width: 768px) {
  .contacts__inner { gap: 40px; padding-block: var(--section-y); }
  .contacts__row { gap: 40px; }
  .contacts__info { gap: 28px; }
  .contacts__info dd { margin-top: 8px; }
  .map { min-height: 340px; }
}
@media (min-width: 1024px) {
  .map { min-height: 462px; }
}

/* Подвал */
.footer { background: var(--c-navy-deep); color: var(--c-on-dark); font-size: clamp(15px, 14.63px + .095vw, 16px); }
.footer a { color: var(--c-on-dark); text-decoration: none; }
.footer a:hover, .footer__cookie:hover { color: var(--c-surface); text-decoration: underline; }
.footer__top { display: flex; flex-direction: column; gap: 20px; padding-block: 36px 20px; }
.footer__company { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.footer__company p { line-height: 1.6; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; letter-spacing: .02em; color: var(--c-surface); }
.footer__brand img { width: auto; height: 39px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.footer__col .footer__phone { color: var(--c-surface); font-weight: 600; }
.footer__extra { display: none; }
.footer__social { display: flex; gap: 12px; margin-top: 4px; }
.footer__social a { display: inline-flex; padding-inline: 6px; margin-inline: -6px; }
.footer__social img { width: 36px; height: 36px; display: block; }
.footer__social a:hover img { opacity: .85; }
.footer__cookie {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
}
.footer__bottom { padding-block: 0 100px; font-size: 13px; color: var(--c-footnote); }
.footer__bottom p { padding-top: 16px; border-top: 1px solid rgba(201, 216, 232, .15); }

@media (min-width: 768px) {
  .footer__top { flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-block: 56px 32px; }
  .footer__company { flex: 1 1 280px; }
  .footer__brand { gap: 12px; font-size: 19px; }
  .footer__brand img { height: 44px; }
  .footer__col { flex: 1 1 220px; gap: 10px; }
  .footer__col:last-child { flex-basis: 200px; }
  .footer__extra { display: inline; }
  .footer__bottom { padding-block: 20px 40px; font-size: 14px; border-top: 1px solid rgba(201, 216, 232, .15); }
  .footer__bottom p { padding-top: 0; border-top: 0; }
}

/* Страница приказа: два скана друг под другом */
.scans { max-width: 900px; margin: 0 auto; padding: 40px var(--gutter) 64px; }
.scans h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; margin-bottom: var(--space-5); }
.scans figure { margin-top: var(--space-5); }
.scans img { width: 100%; height: auto; border: 1px solid var(--c-border); background: var(--c-surface); }
.scans figcaption { margin-bottom: var(--space-2); font-weight: 700; }

/* Окно «Как устроено исследование» (этап 2.4, ТП 7.7). Без JS — обычный блок под процессом */
.method {
  position: static;
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 var(--section-y);
  border: 0;
  background: transparent;
  color: var(--c-navy);
  overflow: visible;
}
.method:not([open]) { display: none; }
.method__box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: calc(var(--container-max) - 2 * var(--gutter));
  margin-inline: var(--gutter);
  padding: 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
}
.method__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); }
.method__titles { display: flex; flex-direction: column; gap: 6px; }
.method__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-teal-dark);
}
.method h2 { font-size: 24px; line-height: 1.15; }
.method__lead { font-size: 15px; color: var(--c-muted); }
.method__close {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--c-navy);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
}
.method__close:hover { background: var(--c-bg); }
.method__steps { display: flex; flex-direction: column; gap: 16px; }
.method__step { display: flex; align-items: flex-start; gap: 12px; }
.method__num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-teal);
  color: var(--c-navy);
  font-size: 15px;
  font-weight: 800;
}
.method__step--final .method__num { background: var(--c-navy); color: var(--c-surface); }
.method__step h3 { font-size: 16px; }
.method__step p { margin-top: 2px; font-size: 14px; color: var(--c-muted); }
.method__foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--c-border);
}
.method__foot p { font-size: 14px; color: var(--c-muted); }
.method__foot .btn { min-height: 54px; font-size: 17px; }

/* Модальное состояние: на мобильном лист снизу на весь экран */
.method:modal {
  position: fixed;
  inset: auto 0 0;
  width: 100%;
  max-width: 100%;
  height: calc(100dvh - 56px);
  max-height: none;
  padding: 0;
  animation: method-in .25s ease-out;
}
.method:modal::backdrop { background: rgba(7, 27, 51, .72); }
.method:modal .method__box {
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 12px 20px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.method:modal .method__box::before {
  content: "";
  flex: none;
  align-self: center;
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--c-border);
}
@keyframes method-in {
  from { opacity: 0; transform: translateY(24px); }
}

@media (min-width: 768px) {
  .method { padding-bottom: 0; }
  .method__box { margin-inline: auto; padding: 40px; gap: 28px; width: calc(100% - 2 * var(--gutter)); }
  .method h2 { font-size: 34px; }
  .method__lead { font-size: 17px; }
  .method__eyebrow { font-size: 13px; }
  .method__steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; }
  .method__step { gap: 14px; }
  .method__num { width: 36px; height: 36px; font-size: 16px; }
  .method__step h3 { font-size: 17px; }
  .method__step p { margin-top: 4px; font-size: 15px; }
  .method__foot { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; }
  .method__foot p { max-width: 460px; font-size: 15px; }
  .method__foot .btn { flex: none; min-height: 52px; padding: 0 28px; }
  .method:modal {
    inset: 0;
    width: 880px;
    max-width: calc(100% - 2 * var(--space-5));
    height: fit-content;
    max-height: calc(100dvh - 2 * var(--space-5));
    margin: auto;
  }
  .method:modal .method__box { height: auto; max-height: calc(100dvh - 2 * var(--space-5)); padding: 40px; border-radius: var(--radius-xl); }
  .method:modal .method__box::before { display: none; }
}

/* Блокировка прокрутки фона при открытом окне; gutter не даёт странице дёрнуться */
html.is-locked { overflow: hidden; scrollbar-gutter: stable; }

/* Нижняя панель на мобильном (ТП 7.6) */
.mobile-bar { display: none; }
@media (max-width: 767.98px) {
  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-header);
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3) var(--gutter) calc(var(--space-3) + env(safe-area-inset-bottom));
    background: var(--c-surface);
    border-top: 1px solid var(--c-border);
    box-shadow: 0 -4px 16px rgba(11, 37, 69, .08);
    transition: transform .2s, opacity .2s;
  }
  .mobile-bar.is-hidden { transform: translateY(100%); opacity: 0; visibility: hidden; }
  .mobile-bar a {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 52px;
    border-radius: var(--radius-md);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
  }
  .mobile-bar__call { color: var(--c-navy); border: 1.5px solid var(--c-navy); }
  .mobile-bar__order { background: var(--c-teal); color: var(--c-navy); }
  /* Cookie-баннер стоит над панелью, а не под ней */
  .cookie-banner { bottom: calc(var(--space-4) + 76px + env(safe-area-inset-bottom)); }
}

/* Область нажатия не меньше 48 px в контактах и подвале без изменения раскладки:
   padding добавляет высоту, отрицательный margin забирает её обратно (у строчных ссылок margin не действует, и не нужен) */
.contacts__info dd a,
.order__contacts a,
.footer a,
.footer__cookie {
  padding-block: 14px;
  margin-block: -14px;
}
