/* ══════════════════════════════════════════════════════════════════════════
   Mymarket — лендинг mymarket-boutique.ru

   Регистр — БОРДО-ПЕРВЫЙ: фон бордовый, текст ванильный (BRANDBOOK §9 —
   «набор для носителей и промо-страниц»). Это не противоречит белому фону
   приложения и дашборда: там бордо — акцент 10%, здесь страница сама
   является носителем, как визитка или ролл-ап.

   Ванильные секции — не «светлая тема», а второй санкционированный вариант
   носителя (§4, §8: «Белое + бордо + та же клубника, но бордовой линией»).
   Отсюда чередование полей и разворот клубники по цвету.

   Палитра — КОПИЯ, а не источник правды. Синхронизировать вручную с
   BRANDBOOK.md §9, mobile/lib/src/theme/app_colors.dart и deploy/legal/style.css.
   ══════════════════════════════════════════════════════════════════════════ */

/* — Steppe. Четыре веса, только woff2: этого хватает всем целевым браузерам,
     а woff удвоил бы вес папки впустую. Так же сделано в deploy/legal/style.css. */
@font-face {
  font-family: "Steppe";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Steppe-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Steppe";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Steppe-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Steppe";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Steppe-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Steppe";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Steppe-ExtraBold.woff2") format("woff2");
}

:root {
  --brand-bordo: #8A2541;      /* Гранатовый бархат */
  --brand-bordo-deep: #6E1D34; /* тёмный бордо: глубина, hover */
  --brand-bordo-soft: #A64A62; /* осветлённый бордо: границы на тёмном */
  --brand-vanilla: #FFFCE8;    /* Ванильное облако */
  --brand-cream: #F4E8D0;      /* крем линии паттерна (BRANDBOOK стр. 24) */
  --brand-ink: #231F20;        /* чернила: «market» на светлом (§3) */

  /* Поле по умолчанию — бордо (регистр носителя). */
  --bg: var(--brand-bordo);
  --text: var(--brand-vanilla);
  --text-dim: rgba(255, 252, 232, .72);
  --line: rgba(255, 252, 232, .28);
  --line-soft: rgba(255, 252, 232, .16);

  --font: "Steppe", "Manrope", "Inter", system-ui, sans-serif;

  --radius-card: 20px;
  --radius-control: 16px;
  --radius-sm: 12px;

  /* 8-point grid. */
  --gap-xs: 8px;
  --gap-sm: 16px;
  --gap-md: 24px;
  --gap-lg: 40px;
  --gap-xl: 64px;

  --shell: 1200px;
  --header-h: 88px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Якорь не должен уезжать под липкую шапку. */
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* графика уходит в вылет за край (§6) */
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.01em;
}

p { margin: 0; }

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

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

.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--brand-vanilla);
  color: var(--brand-bordo);
  font-weight: 700;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus-visible { top: 16px; }

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

/* ── Фирменная графика ─────────────────────────────────────────────────────
   Паттерн, клубника и слоган — готовые ассеты из брендбука; их ставят, а не
   перерисовывают (§6). Через mask-image, а не <img>: цвет тогда задаёт CSS
   (`background`), и один файл обслуживает и бордовое поле, и ванильное.

   ⚠️ Приглушённость в печати даёт ТОЛЩИНА волосяной линии, а не прозрачность
   (§6). На экране линия такой толщины физически исчезает, поэтому здесь взят
   санкционированный экранный эквивалент: ваниль/бордо с прозрачностью 8–20%.
   Это оговорено самим брендбуком, а не наша вольность. */
.pattern-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: currentColor;
  color: var(--brand-vanilla);
  opacity: .06;
  -webkit-mask-image: url("/assets/pattern-screen.svg");
  mask-image: url("/assets/pattern-screen.svg");
  /* Тайл = 2×2 мотива, поэтому сама ягода вдвое мельче значения ниже.
     96px даёт мотив ~48px — решётка читается фактурой, а не рисунком поверх текста. */
  -webkit-mask-size: 96px auto;
  mask-size: 96px auto;
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
}

/* Крупная одиночная клубника в вылет за край — на носителях это ОСНОВНАЯ
   подача фирменной графики (§6, §8). */
.berry-bleed {
  position: absolute;
  pointer-events: none;
  aspect-ratio: 48.117 / 56.656;
  background: currentColor;
  -webkit-mask-image: url("/assets/mymarket-strawberry-line.svg");
  mask-image: url("/assets/mymarket-strawberry-line.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.berry-bleed--hero {
  right: -12%;
  bottom: -18%;
  width: clamp(260px, 34vw, 520px);
  color: var(--brand-vanilla);
  opacity: .14;
}

/* Ванильное поле + бордовая линия — второй вариант носителя (§8). */
.berry-bleed--occasions {
  left: -9%;
  top: 8%;
  width: clamp(220px, 26vw, 420px);
  color: var(--brand-bordo);
  opacity: .13;
}

/* Ботаническая иллюстрация — цветной ассет (контент, как фотография, §6),
   поэтому <img>-подобная подача без маски и только на бордовом поле, как
   в брендбуке. Уходит в вылет от края — по центру она выглядит обрезанной. */
.illustration-bleed {
  position: absolute;
  right: -6%;
  bottom: -14%;
  width: clamp(220px, 30vw, 460px);
  aspect-ratio: 21.023 / 31.367;
  background: url("/assets/mymarket-illustration.svg") right bottom / contain no-repeat;
  opacity: .9;
  pointer-events: none;
}

/* Слоган в фирменной подаче — ассет со стр. 29 (Vasek Italic). Набирать его
   другим курсивом запрещено (§5), поэтому здесь именно ассет-маска. */
.slogan-mark {
  display: block;
  width: clamp(260px, 32vw, 430px);
  aspect-ratio: 41.19 / 5.755;
  background: currentColor;
  -webkit-mask-image: url("/assets/mymarket-slogan.svg");
  mask-image: url("/assets/mymarket-slogan.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* ── Шапка ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--brand-bordo) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--brand-bordo-deep) 94%, transparent);
  border-bottom-color: var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  min-height: var(--header-h);
}

/* Охранное поле логотипа = высота буквы «а» локапа (BRANDBOOK стр. 17).
   При высоте локапа 44px это ~10px, поэтому 16px берём с запасом. */
.header-brand {
  flex: none;
  display: inline-flex;
  padding-right: 16px;
}
.header-brand img { height: 44px; width: auto; }

.header-nav {
  display: flex;
  gap: clamp(14px, 2vw, 30px);
  margin-inline-start: auto;
  font-size: 15px;
  font-weight: 500;
}
.header-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--text-dim);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.header-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--brand-vanilla);
  transition: right .25s var(--ease);
}
.header-nav a:hover { color: var(--text); }
.header-nav a:hover::after { right: 0; }

.header-phone {
  flex: none;
  display: grid;
  gap: 2px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  text-decoration: none;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.header-phone:hover {
  background: rgba(255, 252, 232, .08);
  border-color: var(--brand-vanilla);
}
.header-phone__label {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.header-phone__value { font-size: 15px; font-weight: 700; white-space: nowrap; }

.burger {
  display: none;
  flex: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: none;
  color: inherit;
  cursor: pointer;
}
.burger__box { display: block; position: relative; height: 12px; }
.burger__line,
.burger__line::before,
.burger__line::after {
  position: absolute;
  left: 50%;
  width: 20px; height: 2px;
  margin-left: -10px;
  background: var(--brand-vanilla);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.burger__line { top: 5px; }
.burger__line::before { content: ""; top: -6px; }
.burger__line::after { content: ""; top: 6px; }
.burger[aria-expanded="true"] .burger__line { transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__line::before { opacity: 0; }
.burger[aria-expanded="true"] .burger__line::after { transform: rotate(-90deg) translateX(6px); }

/* ── Секции ────────────────────────────────────────────────────────────── */
.section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 9vw, 128px);
}
.section--bordo { background: var(--brand-bordo); color: var(--brand-vanilla); }
.section--deep { background: var(--brand-bordo-deep); color: var(--brand-vanilla); }

/* Ванильное поле: заголовки бордо, текст — чернила (§3, светлая подложка). */
.section--vanilla {
  background: var(--brand-vanilla);
  color: var(--brand-ink);
  --text-dim: rgba(35, 31, 32, .68);
  --line: rgba(138, 37, 65, .22);
  --line-soft: rgba(138, 37, 65, .12);
}
.section--vanilla .section-title,
.section--vanilla h3 { color: var(--brand-bordo); }
.section--vanilla .section-index { color: var(--brand-bordo); }

.section-index {
  margin-bottom: var(--gap-md);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.section-title {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  text-transform: uppercase;
  letter-spacing: -.02em;
}

.section-lead {
  max-width: 56ch;
  margin-top: var(--gap-md);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--text-dim);
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 104px) clamp(64px, 9vw, 128px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Потолок кегля держит самое длинное слово («ЭКЗОТИЧЕСКИХ», 12 знаков) внутри
   своей колонки: на 5.4rem оно перелезало под фотографию. */
.hero-title {
  margin-top: var(--gap-md);
  font-size: clamp(2.3rem, 5vw, 4.3rem);
  text-transform: uppercase;
  letter-spacing: -.03em;
  line-height: .96;
}

.hero-slogan { margin-top: clamp(20px, 3vw, 32px); }

.hero-lead {
  max-width: 46ch;
  margin-top: var(--gap-md);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: var(--text-dim);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  margin-top: clamp(28px, 4vw, 40px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s var(--ease), background-color .2s var(--ease),
              border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--brand-vanilla); color: var(--brand-bordo); }
.btn--primary:hover { background: #fff; }

.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--brand-vanilla); background: rgba(255, 252, 232, .08); }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 48px);
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--line-soft);
}
.hero-facts li { display: grid; gap: 2px; }
.hero-facts b {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.hero-facts span {
  font-size: 13px;
  color: var(--text-dim);
  max-width: 18ch;
}

.hero-figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.hero-figure img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  /* Композиция в кадре сидит ниже центра — иначе в рамку лезет пустой фон. */
  object-position: center 62%;
}

/* ── О бутике ──────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}
.about-copy { display: grid; gap: var(--gap-sm); font-size: clamp(1rem, 1.4vw, 1.14rem); }
.about-copy p { color: var(--text-dim); }

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--gap-md);
  margin-top: clamp(40px, 6vw, 72px);
}
.values li {
  padding: var(--gap-md);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(138, 37, 65, .03);
}
.values h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.values p { margin-top: 10px; font-size: 15px; color: var(--text-dim); }

/* ── Витрина ───────────────────────────────────────────────────────────── */
.cards {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: var(--gap-md);
  margin-top: clamp(40px, 5vw, 64px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  background: rgba(255, 252, 232, .04);
  transition: transform .3s var(--ease), border-color .3s var(--ease),
              background-color .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  background: rgba(255, 252, 232, .07);
}

.card__media { overflow: hidden; }
.card__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.card:hover .card__media img { transform: scale(1.03); }

.card__body { padding: var(--gap-md); }
.card__body h3 {
  font-size: 1.22rem;
  text-transform: uppercase;
}
.card__body p { margin-top: 10px; font-size: 15px; color: var(--text-dim); }

/* Карточка без фото несёт фирменную графику — так носитель без фотографии
   решён и в брендбуке (блокнот, бейдж, визитка). */
.card--line { min-height: 220px; justify-content: flex-end; }
.card__berry {
  position: absolute;
  right: -14%;
  top: -12%;
  width: 62%;
  aspect-ratio: 48.117 / 56.656;
  background: currentColor;
  opacity: .16;
  pointer-events: none;
  -webkit-mask-image: url("/assets/mymarket-strawberry-line.svg");
  mask-image: url("/assets/mymarket-strawberry-line.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transition: transform .4s var(--ease);
}
.card--line:hover .card__berry { transform: translate(-6px, 6px); }

.cards-note {
  max-width: 62ch;
  margin-top: clamp(28px, 4vw, 40px);
  color: var(--text-dim);
}
.cards-note a {
  color: var(--brand-vanilla);
  text-underline-offset: 4px;
}

/* ── Поводы ────────────────────────────────────────────────────────────── */
.section--illustrated .shell { position: relative; z-index: 1; }

.occasions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(32px, 4vw, 48px);
}
.occasions li {
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.occasions li:hover { background: var(--brand-bordo); color: var(--brand-vanilla); }

/* ── Как заказать ──────────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap-md);
  margin-top: clamp(40px, 5vw, 64px);
  counter-reset: step;
}
.steps li {
  padding-top: var(--gap-md);
  border-top: 1px solid var(--line);
}
.steps__num {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--text-dim);
}
.steps h3 {
  margin-top: 14px;
  font-size: 1.16rem;
  text-transform: uppercase;
}
.steps p { margin-top: 10px; font-size: 15px; color: var(--text-dim); }

/* ── Приложение ────────────────────────────────────────────────────────── */
.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.app-note {
  margin-top: var(--gap-md);
  font-size: 14px;
  color: var(--text-dim);
}
.app-list { display: grid; gap: var(--gap-sm); }
.app-list li {
  padding: var(--gap-md);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.app-list h3 { font-size: 1.05rem; text-transform: uppercase; }
.app-list p { margin-top: 8px; font-size: 15px; color: var(--text-dim); }

/* ── Контакты ──────────────────────────────────────────────────────────── */
.contacts-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.contacts-list { display: grid; gap: 2px; }
.contacts-list li {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: var(--gap-sm);
  align-items: baseline;
  padding-block: 18px;
  border-bottom: 1px solid var(--line-soft);
}
.contacts-list__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.contacts-list a {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 5px;
  transition: text-decoration-color .2s var(--ease);
}
.contacts-list a:hover { text-decoration: underline; }

/* ── Подвал ────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--brand-bordo-deep);
  color: var(--brand-vanilla);
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(40px, 5vw, 64px);
}
.footer-inner {
  display: grid;
  gap: var(--gap-lg);
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
}
.footer-brand img { height: 40px; width: auto; }
.footer-brand p {
  margin-top: var(--gap-sm);
  max-width: 44ch;
  font-size: 14px;
  color: var(--text-dim);
}
.footer-links {
  display: grid;
  gap: 10px;
  justify-items: start;
  font-size: 14px;
}
.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color .2s var(--ease);
}
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.footer-copy {
  grid-column: 1 / -1;
  padding-top: var(--gap-md);
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--text-dim);
}

/* ── Появление при скролле ─────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ── Адаптив ───────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .about-grid,
  .app-grid,
  .contacts-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }

  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-figure { order: -1; }
  .hero-figure img { aspect-ratio: 4 / 3; }

  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .header-phone { display: none; }

  /* Мобильное меню: панель под шапкой. `visibility` в переходе — чтобы
     свёрнутые ссылки не ловили фокус табом. */
  .header-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    display: grid;
    gap: 4px;
    margin: 0;
    padding: var(--gap-sm) clamp(20px, 5vw, 48px) var(--gap-lg);
    background: var(--brand-bordo-deep);
    border-bottom: 1px solid var(--line-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .header-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .header-nav a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line-soft); }
  .header-nav a::after { content: none; }

  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .contacts-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .btn { width: 100%; }
  .illustration-bleed { display: none; } /* на узком экране она давит текст */
}

/* Уважаем системную настройку: анимации выключены, но контент виден. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Печать: бордовое поле в принтере превращается в лужу тонера — печатаем
   чернилами по белому, декоративные слои убираем. */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .pattern-layer, .berry-bleed,
  .illustration-bleed, .card__berry { display: none; }
  .section { padding-block: 24px; }
}
