/* ============================================================================
   По лапам — стили шаблона
   Источник вёрстки: Figma «Pet Uber», страница «Лендинг», фрейм 900:18611
   (1440×2966). Размеры и цвета сняты из API Figma, не подбирались на глаз.
   ========================================================================== */

/* ----------------------------------------------------------------------------
   0. Шрифт макета — M PLUS Rounded 1c, самохостинг (без Google Fonts)
   Файлы выгружены из Google Fonts, подмножества cyrillic и latin.
   ---------------------------------------------------------------------------- */

@font-face {
  font-family: "Mplus Rounded 1c";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/mplusrounded1c-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Mplus Rounded 1c";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/mplusrounded1c-400-latin.woff2") format("woff2");
  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: "Mplus Rounded 1c";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/mplusrounded1c-500-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Mplus Rounded 1c";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/mplusrounded1c-500-latin.woff2") format("woff2");
  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: "Mplus Rounded 1c";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/mplusrounded1c-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Mplus Rounded 1c";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/mplusrounded1c-700-latin.woff2") format("woff2");
  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: "Mplus Rounded 1c";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/mplusrounded1c-800-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Mplus Rounded 1c";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/mplusrounded1c-800-latin.woff2") format("woff2");
  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;
}

/* ----------------------------------------------------------------------------
   1. Токены
   -------------------------------------------------------------------------- */

:root {
  /* цвета из макета */
  --cream:      #F6F2E9;   /* фон hero и подвала */
  --orange:     #FFA300;   /* секция «для питомца» + акцент */
  --blue:       #3664E8;   /* H1 + секция «для профи» + акцент */
  --pink:       #F34374;   /* подзаголовок hero, «наша миссия» */
  --ink:        #0057A7;   /* текст hero и миссии */
  --paw:        #FF8894;   /* декоративные следы лап */
  --line:       #DFCCB2;   /* разделители */
  --badge-pink: #E8A5B8;   /* круг-логотип в hero */
  --white:      #fff;

  /* геометрия макета */
  --panel-r: 32px;   /* радиус секций 1360×744 */
  --btn-r:   12px;   /* радиус кнопок 298×56 */
  --card-r:  24px;   /* радиус карточек 620×72 и 390×112 */
  --shell:   1440px; /* ширина макета */
  --gutter:  40px;   /* боковой отступ секций */

  /* Шрифт макета — M PLUS Rounded 1c, лежит локально в /fonts.
     Внешней загрузки нет, поэтому и запасного Nunito в стеке не нужно. */
  --font: "Mplus Rounded 1c", "M PLUS Rounded 1c", system-ui,
          -apple-system, "Segoe UI", sans-serif;
}

/* ----------------------------------------------------------------------------
   2. Сброс и база
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: #000;
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; }

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

/* Ссылка для клавиатуры и скринридеров */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 0 0 12px 12px;
  background: var(--blue);
  color: var(--white);
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Якоря одностраничника. Липкая шапка перекрывает начало секции,
   поэтому секция должна «отступить» на высоту шапки. JS в main.js
   делает то же самое — это запасной вариант при отключённом JS. */
main [id] { scroll-margin-top: 92px; }

/* ----------------------------------------------------------------------------
   3. Логотип и кнопки
   -------------------------------------------------------------------------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.logo__mark {
  width: 36px;
  height: 36px;
  fill: var(--blue);
  transition: fill .2s ease;
}
.logo__text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--blue);
}
.logo:hover .logo__mark { fill: var(--orange); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  min-width: 298px;
  height: 56px;
  padding: 12px 16px 12px 24px;
  border: 0;
  border-radius: var(--btn-r);
  font-size: 16px;
  font-weight: 800;
  line-height: 20px;
  color: var(--white);
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
/* Пиксельная иконка 32×32 r8 в правом конце кнопки — как в макете */
.btn__ico {
  width: 32px;
  height: 32px;
  flex: none;
  margin-left: auto;
  border-radius: 8px;
}
.btn--orange {
  background: var(--orange);
  box-shadow: 0 10px 24px rgba(255, 163, 0, .32);
}
.btn--blue {
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(54, 100, 232, .32);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, .6);
}
.btn--sm { min-width: 0; height: 44px; padding: 0 22px; font-size: 15px; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.04); }
.btn:active { transform: translateY(0); }

/* ----------------------------------------------------------------------------
   4. Шапка
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 242, 233, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck {
  border-bottom-color: rgba(0, 0, 0, .06);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 76px;
}

.site-nav { margin-inline: auto; }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 30px;
}
.site-nav__list a {
  position: relative;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  padding: 6px 0;
}
.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.site-nav__list a:hover::after { transform: scaleX(1); }

.site-nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.site-nav__burger span {
  display: block;
  width: 24px;
  height: 2.5px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .22s ease, opacity .22s ease;
}
.site-nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.site-nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: none;
}
.site-header__phone {
  font-size: 16px;
  font-weight: 800;
  color: var(--blue);
  white-space: nowrap;
}
.site-header__phone:hover { color: var(--orange); }

/* Переключатель языка в шапке: RU / EN, активный — сплошной. */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .06em;
  white-space: nowrap;
}
.lang-switch__item {
  color: rgba(0, 87, 167, .4);
  transition: color .18s ease;
}
.lang-switch__item.is-active { color: var(--ink); }
a.lang-switch__item:hover { color: var(--orange); }
.lang-switch__sep {
  font-weight: 400;
  color: rgba(0, 0, 0, .25);
}

/* ----------------------------------------------------------------------------
   5. Hero — 1440×800, кремовый
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  width: 100%;
  min-height: 800px;
  overflow: hidden;
  background: var(--cream);
}

/* Россыпь следов лап — выгружена из Figma как единый слой 1440×800.
   На узких экранах слой не повторяется, а масштабируется по ширине,
   иначе следы «обрезаются» по правому краю. */
.paw-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("../images/paw-pattern.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 1440px 800px;
}
@media (max-width: 1440px) {
  .paw-field { background-size: 100% auto; }
}

/* Два круга-логотипа 208×208 r80 (розовый + чёрный) по центру, y=96.
   Выгружены из макета единым слоем 367×208. */
.hero__logo {
  position: absolute;
  top: 96px;
  left: 50%;
  width: 367px;
  height: 208px;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1050px;
  margin-inline: auto;
  padding-top: 304px;                    /* y=304 в макете */
  text-align: center;
}
/* «по лапам» — 120/178, w800, трекинг −2.4px, ПРОПИСНЫМИ (textCase UPPER) */
.hero__title {
  font-size: 120px;
  line-height: 178px;
  font-weight: 800;
  letter-spacing: -.02em;               /* −2.4px при 120px */
  text-transform: uppercase;
  color: var(--blue);
}
.hero__lead {
  margin-top: -8px;                     /* в макете блоки наезжают друг на друга */
  font-size: 32px;
  line-height: 44px;
  font-weight: 800;
  letter-spacing: -.02em;               /* −0.64px */
  text-transform: uppercase;
  color: var(--pink);
}
.hero__sub {
  margin-top: 6px;                      /* y=524 в макете */
  font-size: 24px;
  line-height: 33px;
  font-weight: 500;
  letter-spacing: -.02em;               /* −0.48px */
  color: var(--ink);
}
.hero__actions {
  margin-top: 115px;                    /* y=672 в макете */
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ----------------------------------------------------------------------------
   6. Секции-панели — 1360×744, r32
   -------------------------------------------------------------------------- */

main { padding-top: 72px; }            /* hero 800 → разделитель миссии y=872 */

/* ----------------------------------------------------------------------------
   6. «Наша миссия» — разделитель 298+942, колонки 298/298/620, y=872…1136
   В макете этой секции не было, в прототипе она тоже пропущена.
   -------------------------------------------------------------------------- */

.mission { padding-bottom: 68px; }     /* низ секции 1136 → панель y=1204 */

.mission__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 88px;                /* сетка макета: 88…1352 */
}

/* Разделитель из двух отрезков: 298px и 942px, между ними 24px */
.mission__rule { display: flex; gap: 24px; }
.mission__rule span {
  display: block;
  height: 1px;
  border-radius: 8px;
  background: var(--line);
}
.mission__rule span:first-child { width: 298px; flex: none; }
.mission__rule span:last-child  { flex: 1; }

.mission__grid {
  margin-top: 24px;                    /* y=897 */
  display: grid;
  grid-template-columns: 298px 298px 620px;
  gap: 24px;
  align-items: start;
}

.mission__label {
  font-size: 24px;
  line-height: 33px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--pink);
}

.mission__photo {
  width: 298px;
  height: 239px;
  border-radius: 8px;
  object-fit: cover;
}

.mission__text {
  font-size: 24px;
  line-height: 33px;
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--ink);
}

/* ----------------------------------------------------------------------------
   7. Панели 1360×744 r32 — колонки 620 и 513, поля 48
   -------------------------------------------------------------------------- */

.panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 513px);
  justify-content: space-between;      /* промежуток 131px, как в макете */
  align-items: start;
  width: calc(100% - (var(--gutter) * 2));
  max-width: 1360px;
  min-height: 744px;
  margin: 0 auto 72px;
  padding: 48px;
  border-radius: var(--panel-r);
  overflow: hidden;
}
.panel--orange { background: var(--orange); --accent: var(--orange); }
.panel--blue   { background: var(--blue);   --accent: var(--blue); }

.panel__title {
  font-size: 24px;
  line-height: 33px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--white);
}

/* min-width: 0 обязателен для грид-колонок: без него длинный
   неразбиваемый текст распирает сетку по горизонтали. */
.panel__copy { min-width: 0; }

.features {
  margin-top: 48px;                    /* y=1333 при панели y=1204 */
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Карточка 620×72 r24: поля 16, шапка 40, между блоками 12 */
.feature {
  padding: 16px;
  border-radius: var(--card-r);
  background: var(--cream);
}

/* <summary> — раскрывающаяся шапка карточки. Маркер списка не нужен. */
.feature__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  min-height: 40px;
  margin: 0;
  list-style: none;
  cursor: pointer;
}
.feature__head::-webkit-details-marker { display: none; }
.feature__head::marker { content: ""; }
.feature__head:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 8px;
}
.feature__head h3 {
  font-size: 24px;
  line-height: 29px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--accent);
}

/* Все восемь иконок в макете — один и тот же шеврон 12×6, обводка 2.
   Круг-подложка 40×40 в макете скрыта (visible: false), поэтому черновим
   только бокс 40×40 для выравнивания и сам шеврон внутри.
   В раскрытой карточке шеврон разворачивается вверх — это и есть
   видимый признак того, что текст выпадает. */
.feature__ico {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.feature__ico svg {
  width: 12px;
  height: 6px;
  transition: transform .25s ease;
}
.feature__details[open] .feature__ico svg { transform: rotate(180deg); }

/* Выпадающая часть: отступ 12 от шапки (head→text), как в макете.
   padding, а не margin-top у p — иначе отступ схлопнется при
   заворачивании в <details>. */
.feature__body {
  padding-top: 12px;
  animation: feature-drop .22s ease-out;
}
@keyframes feature-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.feature__text {
  margin-top: 0;
  max-width: 588px;
  font-size: 16px;
  line-height: 19px;
  font-weight: 400;
  color: #000;
}

/* Где браузер умеет анимировать внутреннюю высоту <details>,
   заменяем сдвиг на настоящее выпадание по высоте.
   content-visibility с allow-discrete — чтобы содержимое не пропадало
   мгновенно в момент закрытия, а скрывалось в конце анимации. */
:root { interpolate-size: allow-keywords; }
@supports selector(::details-content) {
  .feature__details::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size .25s ease, content-visibility .25s ease allow-discrete;
  }
  .feature__details[open]::details-content { block-size: auto; }
  .feature__details[open] .feature__body { animation: none; }
}

/* Декор 513×437 и мокап телефона 275×502 — обе картинки из Figma
   (экспорт 2×, поэтому в CSS ширина вдвое меньше размера файла). */
.panel__visual {
  position: relative;
  width: 513px;
  height: 566px;
  margin-top: 68px;                    /* телефон y=1320 при панели y=1204 */
}
.panel__deco {
  position: absolute;
  top: 65px;
  left: 0;
  width: 513px;
  height: 437px;
  object-fit: contain;
}
.phone-img {
  position: absolute;
  top: 0;
  left: 120px;                        /* телефон x=959, декор x=839 */
  width: 275px;
  height: auto;
}

/* ----------------------------------------------------------------------------
   7. Форма заявки
   -------------------------------------------------------------------------- */

.leadform {
  width: calc(100% - (var(--gutter) * 2));
  max-width: 1360px;
  margin: 0 auto 72px;
  padding: 56px 48px;
  border-radius: var(--panel-r);
  background: var(--white);
}
.leadform__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 48px;
  align-items: start;
}
.leadform__aside { min-width: 0; }
.leadform__title {
  font-size: 32px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--blue);
}
.leadform__text {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  color: rgba(0, 0, 0, .72);
}

.leadform__form { display: flex; flex-direction: column; gap: 18px; }

/* Кнопка отправки — во всю ширину колонки и по центру,
   в отличие от кнопок-ссылок в hero (там min-width 298px, текст слева). */
.leadform__form .btn {
  min-width: 0;
  width: 100%;
  height: 60px;
  justify-content: center;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}
.field__req { color: var(--pink); }
.field input {
  height: 52px;
  padding: 0 16px;
  border: 2px solid rgba(0, 0, 0, .12);
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  background: var(--white);
  transition: border-color .2s ease;
}
.field input:focus {
  border-color: var(--blue);
  outline: none;
}
.field input[aria-invalid="true"] { border-color: var(--pink); }

/* Чекбокс согласия. Обязателен: без согласия на обработку ПД
   форму отправлять нельзя (ст. 9 З РФ о ПД). */
.consent { display: flex; flex-direction: column; gap: 10px; }
.consent__item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 2px solid rgba(0, 0, 0, .12);
  border-radius: 12px;
  background: rgba(246, 242, 233, .6);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  color: rgba(0, 0, 0, .8);
  cursor: pointer;
}
.consent__item input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--blue);
  cursor: pointer;
}
.consent__item a { color: var(--blue); text-decoration: underline; }
.consent__item a:hover { color: var(--orange); }

.leadform__note {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
  color: rgba(0, 0, 0, .55);
}

/* Honeypot: скрыт от людей, виден ботам */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Сообщения Bitrix */
#messages, .bx-messages { margin-bottom: 20px; }
.bx-messages__item { font-size: 14px; font-weight: 400; line-height: 1.5; }

/* ----------------------------------------------------------------------------
   8. Подвал
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: 0;                      /* отступ уже задан панели/форме */
  padding-top: 0;
  background: var(--cream);
}
/* Разделитель 1264×1 из макета (y=2836): та же сетка, что у секции
   «наша миссия» — 88…1352. Поэтому у .shell подвала свои отступы. */
.site-footer .shell { padding-inline: 88px; }
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
}
.site-footer__brand { min-width: 0; }
.site-footer .logo__mark { width: 32px; height: 32px; }
.site-footer .logo__text { font-size: 22px; }
.site-footer__tagline {
  margin-top: 16px;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  color: rgba(0, 0, 0, .65);
}
.site-footer__contacts {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-footer__contact {
  font-size: 15px;
  font-weight: 800;
  color: var(--blue);
}
.site-footer__contact:hover { color: var(--orange); }

.site-footer__col-title {
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}
.site-footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer__col a {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
  color: rgba(0, 0, 0, .65);
}
.site-footer__col a:hover { color: var(--blue); text-decoration: underline; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
}
.site-footer__legal-name,
.site-footer__address {
  font-size: 13px;
  font-weight: 400;
  color: rgba(0, 0, 0, .55);
}

/* Сброс решения по cookie — точка, где пользователь может его изменить.
   Оформлена как ссылка, но это button: действие клика, а не переход. */
.site-footer__cookie-reset {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
  color: rgba(0, 0, 0, .65);
}
.site-footer__cookie-reset:hover {
  color: var(--blue);
  text-decoration: underline;
}

/* Ссылки на юридические документы в подвале */
.site-footer__docs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.site-footer__docs a {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
  color: rgba(0, 0, 0, .65);
}
.site-footer__docs a:hover {
  color: var(--blue);
  text-decoration: underline;
}

/* ----------------------------------------------------------------------------
   9. Cookie-баннер
   -------------------------------------------------------------------------- */

.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--white);
  border-top: 2px solid var(--line);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .12);
}
.cookie[hidden] { display: none; }

.cookie__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-block: 24px;
}
.cookie__body { flex: 1; min-width: 0; }
.cookie__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--blue);
}
.cookie__text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 400;
  color: rgba(0, 0, 0, .75);
}
.cookie__text a {
  color: var(--blue);
  text-decoration: underline;
}
.cookie__text a:hover { color: var(--orange); }

.cookie__details {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 400;
}
.cookie__details summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}
.cookie__details ul {
  margin-top: 8px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: disc;
}

.cookie__actions {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 260px;
}
.cookie__actions .btn {
  min-width: 0;
  width: 100%;
  height: 48px;
}

/* ----------------------------------------------------------------------------
   10. Внутренние страницы: крошки, документы, разделы
   -------------------------------------------------------------------------- */

.pagebody { padding-top: 32px; padding-bottom: 72px; }

.breadcrumbs { margin-bottom: 24px; }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
}
.breadcrumbs li { color: rgba(0, 0, 0, .5); }
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(0, 0, 0, .3);
}
.breadcrumbs a { color: var(--blue); }
.breadcrumbs a:hover { text-decoration: underline; }

.legal {
  max-width: 860px;
  margin-inline: auto;
  padding: 40px 48px;
  border-radius: 24px;
  background: var(--white);
}
.legal__content {
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  color: rgba(0, 0, 0, .82);
}
.legal__content h1 { font-size: 32px; font-weight: 800; color: var(--blue); margin-bottom: 8px; }
.legal__content h2 {
  margin: 32px 0 12px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}
.legal__content h3 { margin: 24px 0 8px; font-size: 17px; font-weight: 800; }
.legal__content p  { margin-bottom: 14px; }
.legal__content ul,
.legal__content ol { margin: 0 0 14px 22px; list-style: disc; }
.legal__content ol { list-style: decimal; }
.legal__content li { margin-bottom: 6px; }
.legal__content a  { color: var(--blue); text-decoration: underline; }
.legal__content a:hover { color: var(--orange); }
/* Примечание об актуальной редакции в начале документа (из docx) */
.legal__content blockquote {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  background: rgba(246, 242, 233, .65);
  color: rgba(0, 0, 0, .65);
  font-size: 14px;
}
.legal__content blockquote p { margin-bottom: 0; }
.legal__content table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.legal__content th,
.legal__content td {
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, .12);
  text-align: left;
  font-size: 14px;
}
.legal__content th { background: rgba(246, 242, 233, .8); font-weight: 800; }

.sectionhead { margin-bottom: 32px; }
.sectionhead__title { font-size: 34px; font-weight: 800; color: var(--blue); }
.sectionhead__text   { margin-top: 12px; font-size: 16px; font-weight: 400; color: rgba(0, 0, 0, .7); }

.empty {
  padding: 56px 32px;
  border: 2px dashed rgba(0, 0, 0, .15);
  border-radius: 24px;
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  color: rgba(0, 0, 0, .5);
}

/* ----------------------------------------------------------------------------
   11. Адаптив
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
  /* Колонка с телефоном сжимается пропорционально — декор и мокап
     позиционированы в процентах от ширины колонки. */
  .panel { grid-template-columns: minmax(0, 620px) minmax(0, 40%); padding: 40px; }
  .panel__visual { width: 100%; height: auto; aspect-ratio: 513 / 566; margin-top: 0; }
  .panel__deco { top: 11.5%; width: 100%; height: auto; }
  .phone-img { left: auto; right: 0; width: 53.6%; }

  .mission__inner { padding-inline: 40px; }
  .mission__grid { grid-template-columns: 298px minmax(0, 1fr); }
  .mission__text { grid-column: 1 / -1; }

  .site-footer .shell { padding-inline: 40px; }
  .site-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header__phone { display: none; }
}

@media (max-width: 900px) {
  .site-header__inner { min-height: 64px; gap: 16px; }

  .site-nav__burger { display: block; order: 3; }
  .site-nav {
    order: 4;
    width: 100%;
    margin: 0;
  }
  .site-nav__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .1);
    display: none;
  }
  .site-nav__list.is-open { display: flex; }
  .site-nav__list li { padding: 12px var(--gutter); }
  .site-nav__list a { font-size: 17px; }
  body.nav-open { overflow: hidden; }

  .site-header__actions { margin-left: auto; }
  .site-header__actions .btn { display: none; }

  .hero { min-height: auto; padding-bottom: 64px; }
  .hero__inner { padding-top: 140px; }
  .hero__title { font-size: 68px; line-height: 100px; }
  .hero__lead { margin-top: 8px; font-size: 22px; line-height: 30px; }
  .hero__sub  { margin-top: 8px; font-size: 17px; line-height: 24px; }
  .hero__actions { margin-top: 40px; }
  .hero__logo { top: 28px; width: 240px; height: auto; }

  main { padding-top: 40px; }
  .mission { padding-bottom: 40px; }
  .mission__inner { padding-inline: var(--gutter); }
  .mission__grid { grid-template-columns: minmax(0, 1fr); }
  .mission__label { grid-row: 1; }
  .mission__text { grid-column: auto; font-size: 18px; line-height: 27px; }
  .mission__photo { width: 100%; height: auto; }

  .panel {
    width: calc(100% - 32px);
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 24px 40px;
    min-height: 0;
    gap: 32px;
  }
  .panel__visual { width: min(100%, 420px); justify-self: center; order: 2; }
  .features { margin-top: 32px; }
  .feature__head h3 { font-size: 20px; }

  .leadform { width: calc(100% - 32px); padding: 36px 24px; }
  .leadform__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .leadform__title { font-size: 26px; }

  .legal { padding: 28px 24px; }
  .legal__content h1 { font-size: 26px; }

  .cookie__inner { flex-direction: column; align-items: stretch; gap: 20px; }
  .cookie__actions { width: 100%; flex-direction: row; }
  .cookie__actions .btn { flex: 1; }
  .cookie__actions .btn--ghost { border-color: rgba(0, 0, 0, .2); color: var(--ink); }

  .site-footer .shell { padding-inline: var(--gutter); }
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 560px) {
  .btn { min-width: 0; width: 100%; }
  .hero__actions { gap: 12px; }
  .hero__title { font-size: 52px; line-height: 76px; }
  .feature__text { line-height: 22px; }
  .cookie__actions { flex-direction: column; }
  .site-footer__bottom { flex-direction: column; }
  .site-footer__cookie-reset { margin-top: 2px; }
}

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

/* --- Баннер результата отправки формы (см. header.php) --------------- */
.notice {
  border-bottom: 2px solid var(--blue);
  background: #fff;
  font-weight: 600;
  line-height: 1.45;
}
.notice .shell { padding-top: 14px; padding-bottom: 14px; }
.notice--ok { border-color: #2e9e5b; background: #eefaf2; color: #14512f; }
.notice--err { border-color: var(--pink); background: #fff1f5; color: #7d1232; }

@media print {
  /* Кнопка отправки лежит прямо в .leadform__form без обёртки,
     поэтому скрывается общим правилом для .btn. */
  .site-header, .cookie, .site-nav, .btn, .notice { display: none !important; }
  .panel, .legal, .leadform { border: 1px solid #999; box-shadow: none; }
}
