/* ==========================================================================
   NataCosmetic — дизайн-система (Mobile First), версия 4: «компактная сетка»
   Палитра и шрифты утверждены и не меняются. Шрифты: assets/css/fonts.css

   ЕДИНАЯ СИСТЕМА (всё ниже строится только из этих токенов):
   • Брейкпоинты: 600 (крупный телефон / планшет), 900 (две колонки),
     1200 (широкий экран). Исключение — меню-навигация с 1000 px (ей нужна ширина).
   • Контейнер: контент не шире 1200 px; поля --gutter 16 → 24 → 32 → 40.
   • Вертикальный ритм: --space (секции) 40 → 56 → 64 → 72;
     --space-s (лёгкие секции) 28 → 36 → 40 → 48.
   • Интервалы сеток: --gap 12 → 16 → 20 → 24; --gap-l (колонки) 24 → 32 → 48 → 64.
   • Типографика: плавная шкала clamp() между 390 и 1440 px, без скачков.
   • Поверхности-карточки: --c-card + --r-lg + тонкая тень — для блоков,
     которые должны читаться как отдельные смысловые единицы.
   ========================================================================== */

:root {
  /* утверждённая палитра */
  --c-bg: #F7F1E8;
  --c-bg-2: #ECE2D3;
  --c-card: #FBF7F0;
  --c-olive: #5C632F;
  --c-olive-hover: #4A5025;
  --c-olive-dark: #696443;
  --c-sage: #DBD5BE;
  --c-sage-2: #CAC6A9;
  --c-stone: #CFBBA4;
  --c-caramel: #AF957A;
  --c-heading: #313013;
  --c-text: #3E352B;
  --c-muted: #6E6656;
  /* служебные детали */
  --c-line: #DCCFBD;
  --c-gold: #B39867;
  --c-on-olive: #FBF7F0;
  --c-error: #A65D4B;

  --f-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* типографская шкала: min @390 → max @1440 */
  --fs-display: clamp(30px, 2.1vw + 21.8px, 52px);   /* заголовок первого экрана и статьи */
  --fs-h1: clamp(28px, 1.72vw + 21.3px, 46px);
  --fs-h2: clamp(24px, 1.33vw + 18.8px, 38px);
  --fs-h3: clamp(18px, .38vw + 16.5px, 22px);
  --fs-lead: clamp(16px, .19vw + 15.3px, 18px);
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-xs: 12px;
  --fs-label: 11px;                                   /* подписи-капитель */

  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
  --shadow: 0 6px 22px rgba(49, 48, 19, .06);
  --shadow-lg: 0 16px 44px rgba(49, 48, 19, .10);

  --content: 1200px;
  --gutter: 16px;
  --space: 40px;
  --space-s: 28px;
  --gap: 12px;
  --gap-l: 24px;
  --pad-card: 20px;
  --header-h: 60px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
@media (min-width: 600px)  { :root { --gutter: 24px; --space: 56px; --space-s: 36px; --gap: 16px; --gap-l: 32px; --pad-card: 24px; } }
@media (min-width: 900px)  { :root { --gutter: 32px; --space: 64px; --space-s: 40px; --gap: 20px; --gap-l: 48px; --pad-card: 32px; } }
@media (min-width: 1000px) { :root { --header-h: 72px; } }
@media (min-width: 1200px) { :root { --gutter: 40px; --space: 72px; --space-s: 48px; --gap: 24px; --gap-l: 64px; --pad-card: 40px; } }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--c-bg); }
body { margin: 0; background: var(--c-bg); color: var(--c-text); font: 400 var(--fs-body)/1.6 var(--f-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-wrap: break-word; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--c-olive); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-olive-hover); }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-serif); color: var(--c-heading); font-weight: 500; line-height: 1.15; margin: 0 0 .45em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; }
:focus-visible { outline: 2px solid var(--c-olive); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--c-sage); color: var(--c-heading); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--c-olive); color: var(--c-on-olive); padding: 10px 16px; border-radius: var(--r-pill); }
.skip-link:focus { top: 12px; color: var(--c-on-olive); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Раскладка ---------- */
.container { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--mid { max-width: calc(960px + 2 * var(--gutter)); }
.container--narrow { max-width: calc(720px + 2 * var(--gutter)); }
.block { padding-block: var(--space-s); position: relative; }
.block--space { padding-block: var(--space); }
.block--tint { background: var(--c-bg-2); --c-muted: var(--c-text); }   /* мелкий текст на бежевом — основным цветом ради контраста */
.block--sage { background: linear-gradient(180deg, #EAE6D6, #E1DCC6); --c-muted: var(--c-text); }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 36px; }
@media (min-width: 900px) { .mt-m { margin-top: 28px; } .mt-l { margin-top: 44px; } }
.muted { color: var(--c-muted); }
.small { font-size: var(--fs-small); }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
/* Поверхность-карточка: отдельный смысловой блок */
.surface { background: var(--c-card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: var(--pad-card); }

/* ---------- Фирменные приёмы ---------- */
.mark { font-style: italic; position: relative; z-index: 0; display: inline-block; max-width: 100%; padding: 0 .2em .04em; }
.mark::before { content: ""; position: absolute; z-index: -1; inset: .16em -.04em .02em; background: var(--c-sage); border-radius: 44% 56% 42% 58% / 64% 46% 54% 36%; transform: rotate(-1.2deg); opacity: .9; }
.ital { font-style: italic; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 10px; font: 600 var(--fs-label)/1.3 var(--f-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--c-olive); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--c-gold); }
.eyebrow--plain::before { display: none; }
.lead { font-size: var(--fs-lead); line-height: 1.6; max-width: 36em; color: var(--c-text); }
.lead--center { margin-inline: auto; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--r-pill); background: rgba(219, 213, 190, .7); color: var(--c-heading); font: 500 13px/1.25 var(--f-serif); }
.pill i { width: 4px; height: 4px; border-radius: 50%; background: var(--c-olive); }
.flourish { display: block; width: 140px; height: 26px; color: var(--c-gold); margin: 4px 0 14px; }
.flourish--center { margin-inline: auto; }
.illus-note { position: absolute; z-index: 3; right: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 3px 9px; border-radius: var(--r-pill); background: rgba(251, 247, 240, .9); color: var(--c-muted); font: 500 var(--fs-label)/1.3 var(--f-sans); letter-spacing: .04em; pointer-events: none; }
.tag-demo { display: inline-block; padding: 3px 9px; border-radius: var(--r-pill); background: rgba(175, 149, 122, .18); color: #6E5A46; font: 600 var(--fs-label)/1.35 var(--f-sans); letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
.note { display: flex; gap: 10px; align-items: baseline; color: var(--c-muted); font-size: var(--fs-small); line-height: 1.55; }
.note::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--c-caramel); transform: translateY(-1px); }
.note strong { color: var(--c-heading); font-weight: 600; }
.placeholder-quote { font: italic 500 clamp(19px, .67vw + 16.4px, 26px)/1.4 var(--f-serif); color: var(--c-heading); margin: 0; }
.placeholder-quote small { display: block; margin-top: 10px; font: 500 var(--fs-label)/1.4 var(--f-sans); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--c-caramel); }

/* ---------- Кнопки ----------
   Текст кнопки может переноситься на две строки — кнопка никогда не шире контейнера. */
.btn { --bg: var(--c-olive); --fg: var(--c-on-olive);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; max-width: 100%; min-height: 46px; padding: 10px 22px; border-radius: var(--r-pill);
  background: var(--bg); color: var(--fg); border: 1px solid var(--bg); font: 600 14.5px/1.25 var(--f-sans); letter-spacing: .01em; text-decoration: none; cursor: pointer; text-align: center; white-space: normal;
  transition: background .25s var(--ease), color .25s var(--ease), transform .2s var(--ease), border-color .25s; }
.btn:hover { --bg: var(--c-olive-hover); color: var(--fg); }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--ghost { background: transparent; color: var(--c-olive); border-color: rgba(92, 99, 47, .55); }
.btn--ghost:hover { background: rgba(219, 213, 190, .55); color: var(--c-olive-hover); border-color: var(--c-olive); }
.btn--ghost[aria-pressed="true"] { background: rgba(219, 213, 190, .7); border-color: var(--c-olive); }
.btn--light { --bg: var(--c-card); --fg: var(--c-heading); }
.btn--light:hover { --bg: #fff; --fg: var(--c-heading); }
.btn--line-light { background: transparent; color: var(--c-on-olive); border-color: rgba(251, 247, 240, .5); }
.btn--line-light:hover { background: rgba(251, 247, 240, .1); color: #fff; }
.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 6px 16px; font-size: 13.5px; }
/* Ряд кнопок: на телефоне кнопки растягиваются и переносятся целиком, с 600 px — по ширине текста */
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row > .btn { flex: 1 1 auto; }
@media (min-width: 600px) { .btn-row > .btn { flex: 0 1 auto; } }
.btn-row--center { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; font-size: 14.5px; }
.link-arrow svg { width: 17px; height: 17px; flex: none; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; color: var(--c-heading); cursor: pointer; position: relative; text-decoration: none; }
.icon-btn:hover { background: rgba(92, 99, 47, .08); color: var(--c-heading); }

/* Чипы: всегда переносятся по строкам — ни один не уходит за край экрана */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: var(--r-pill); background: transparent; color: var(--c-heading); border: 1px solid var(--c-line); font: 500 var(--fs-small)/1 var(--f-sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--c-olive); color: var(--c-heading); }
.chip[aria-pressed="true"] { background: var(--c-olive); border-color: var(--c-olive); color: var(--c-on-olive); }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 40; background: rgba(247, 241, 232, .9); -webkit-backdrop-filter: saturate(1.2) blur(14px); backdrop-filter: saturate(1.2) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.header.is-scrolled { border-color: rgba(220, 207, 189, .7); }
.header__inner { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.header__burger { justify-self: start; margin-left: -10px; }
.header__actions { justify-self: end; display: flex; align-items: center; margin-right: -10px; }
.header__search { display: none !important; }
.nav { display: none; }
.logo { display: inline-flex; flex-direction: column; align-items: center; color: var(--c-heading); text-decoration: none; line-height: 1; }
.logo:hover { color: var(--c-olive); }
.logo__word { font: 500 21px/1 var(--f-serif); letter-spacing: .005em; }
.logo__tag { font: 600 9px/1 var(--f-sans); letter-spacing: .26em; text-transform: uppercase; color: var(--c-olive); margin-top: 4px; padding-left: .26em; }
.count-badge { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--c-olive); color: var(--c-on-olive); font: 600 11px/18px var(--f-sans); text-align: center; }
.count-badge.bump { animation: bump .4s var(--ease); }
@keyframes bump { 50% { transform: scale(1.35); } }
@media (min-width: 1000px) {
  .header__inner { grid-template-columns: auto 1fr auto; gap: 24px; }
  .header__burger { display: none; }
  .header__search { display: inline-grid !important; }
  .nav { display: block; justify-self: center; }
  .nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
  .nav__link { display: block; padding: 8px 12px; color: var(--c-heading); text-decoration: none; font-size: 14.5px; font-weight: 500; border-radius: var(--r-pill); white-space: nowrap; }
  .nav__link:hover { background: rgba(92, 99, 47, .07); color: var(--c-heading); }
  .nav__link[aria-current="page"] { color: var(--c-olive); box-shadow: inset 0 -1px 0 var(--c-gold); border-radius: 0; }
  .logo { align-items: flex-start; }
  .logo__word { font-size: 24px; }
}

/* Мобильное меню */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 60; }
.drawer__backdrop { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(49, 48, 19, .3); opacity: 0; transition: opacity .3s; }
.drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 380px); background: var(--c-bg); padding: 8px var(--gutter) 24px; overflow-y: auto; overflow-x: hidden; transform: translateX(-100%); transition: transform .35s var(--ease); display: flex; flex-direction: column; gap: 18px; }
.drawer__panel::after { content: ""; position: absolute; right: -60px; bottom: -20px; width: 240px; height: 150px; background: url("../img/decor/branch-small.svg") no-repeat center/contain; opacity: .5; pointer-events: none; transform: rotate(-12deg); }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
.drawer__top .logo { align-items: flex-start; }
.drawer__list { list-style: none; margin: 0; padding: 0; }
.drawer__link { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid rgba(220, 207, 189, .7); font: 500 20px/1.25 var(--f-serif); color: var(--c-heading); text-decoration: none; }
.drawer__link[aria-current="page"] { color: var(--c-olive); font-style: italic; }
.drawer__link .count-inline { font: 600 13px/1 var(--f-sans); color: var(--c-olive); }
.drawer__foot { margin-top: auto; position: relative; z-index: 1; }
.drawer__foot a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; }
body.no-scroll { overflow: hidden; }

/* ---------- Изображения и декор ---------- */
.media { position: relative; overflow: hidden; background: var(--c-bg-2); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.shape-arch { border-radius: 999px 999px var(--r-lg) var(--r-lg); }
.shape-soft { border-radius: var(--r-lg); }
.shape-leaf { border-radius: 46% 54% 40% 60% / 40% 38% 62% 60%; }
.shape-oval { border-radius: 50%; }
.decor { position: absolute; z-index: 2; pointer-events: none; }
.decor img { width: 100%; }

/* Заголовок секции: подпись + заголовок + (необязательно) ссылка справа */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 8px 24px; }

/* ---------- 1. Первый экран ----------
   Высота фото считается от высоты экрана, чтобы заголовок, текст и обе кнопки
   помещались в первый экран на телефоне, планшете и компьютере. */
.hero { position: relative; padding: 0 0 var(--space-s); overflow: hidden; }
.hero__media { position: relative; margin: 0 calc(var(--gutter) * -1); }
.hero__photo { height: clamp(190px, 30vh, 340px); height: clamp(190px, 30svh, 340px); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.hero__photo img { object-position: 50% 45%; }
.hero__branch { width: 62%; left: -6%; bottom: -16%; transform: rotate(-4deg); }
.hero__text { position: relative; z-index: 3; padding-top: 18px; }
.hero__title { margin: 12px 0 0; font-size: var(--fs-display); }
.hero__title .mark { margin-top: 2px; }
.hero__text .flourish { margin: 2px 0 10px; width: 120px; height: 22px; }
.hero__lead { margin-bottom: 18px; }
/* Невысокие телефоны (iPhone SE и т.п.): фото ниже, кнопки в один ряд с переносом текста —
   чтобы основные действия первого экрана были видны без прокрутки */
@media (max-width: 599px) and (max-height: 700px) {
  .hero__photo { height: 22vh; height: 22svh; min-height: 120px; }
  .hero__text { padding-top: 12px; }
  .hero__title { margin-top: 8px; }
  .hero__text .flourish { margin: 0 0 6px; height: 18px; }
  .hero__lead { font-size: 15px; line-height: 1.5; margin-bottom: 14px; }
  .hero .btn-row { flex-wrap: nowrap; }
  .hero .btn-row > .btn { flex: 1 1 0; min-width: 0; padding-inline: 12px; font-size: 13.5px; }
}
@media (min-width: 600px) {
  .hero__media { margin: 12px 0 0; }
  .hero__photo { border-radius: var(--r-lg); }
  .hero__branch { width: 40%; bottom: -12%; }
}
@media (min-width: 900px) {
  .hero { padding: 20px 0 var(--space-s); }
  .hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap-l); align-items: center; }
  .hero__text { order: -1; padding-top: 0; }
  .hero__media { margin: 0; }
  .hero__photo { height: clamp(380px, calc(100vh - var(--header-h) - 72px), 600px); height: clamp(380px, calc(100svh - var(--header-h) - 72px), 600px); border-radius: 999px 999px var(--r-lg) var(--r-lg); box-shadow: var(--shadow-lg); }
  .hero__branch { width: 44%; left: -10%; bottom: -4%; }
}

/* ---------- 2. Пауза-фраза ---------- */
.breath { text-align: center; position: relative; }
.breath__text { font: italic 400 clamp(19px, .86vw + 15.6px, 28px)/1.45 var(--f-serif); color: var(--c-heading); max-width: 760px; margin: 0 auto; text-wrap: balance; }
.breath__rose { width: 64px; margin: 0 auto 10px; }

/* ---------- 3. Категории: мозаика ----------
   Телефон — сетка 2 колонки (первая плитка во всю ширину);
   с 600 px — 3 колонки, первая плитка на 2 ряда. Без горизонтальной прокрутки. */
.mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.mosaic > :first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.mosaic > :first-child img { object-position: 50% 40%; }
.tile { position: relative; display: block; min-width: 0; border-radius: var(--r-md); overflow: hidden; text-decoration: none; color: var(--c-heading); aspect-ratio: 1 / 1; background: var(--c-bg-2); isolation: isolate; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile__label { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill); background: rgba(251, 247, 240, .92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tile__name { font: 500 17px/1.15 var(--f-serif); min-width: 0; }
.tile__label svg { width: 16px; height: 16px; flex: none; color: var(--c-olive); transition: transform .25s var(--ease); }
.tile:hover .tile__label svg { transform: translateX(4px); }
.tile:hover { color: var(--c-heading); }
.mosaic-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; margin-top: 14px; }
@media (min-width: 600px) {
  .mosaic { grid-template-columns: 1.3fr 1fr 1fr; }
  .mosaic > :first-child { grid-column: auto; grid-row: span 2; aspect-ratio: auto; }
  .mosaic > :nth-child(n+2) { aspect-ratio: 4 / 3; }
  .mosaic > :nth-child(n+2) img { object-position: 50% 60%; }
}
@media (min-width: 1200px) { .tile__name { font-size: 19px; } }

/* ---------- 4. Средства ---------- */
/* Избранное средство — карточка-разворот */
.feature { display: grid; gap: var(--gap-l); align-items: center; background: var(--c-card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 12px 12px var(--pad-card); }
.feature__media { aspect-ratio: 4 / 3; border-radius: var(--r-md); }
.feature__body { padding-inline: 8px; }
.feature__body .eyebrow { margin-bottom: 6px; }
.feature__body h3 { font-size: clamp(22px, .95vw + 18.3px, 32px); font-weight: 500; margin-bottom: 8px; }
.feature__body .lead { font-size: var(--fs-body); }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; padding: 16px; gap: var(--gap-l); }
  .feature__media { aspect-ratio: 5 / 4; border-radius: calc(var(--r-lg) - 6px); }
  .feature__body { padding: 0 var(--pad-card) 0 0; }
}
.feature__media.shape-arch { border-radius: var(--r-md); }
@media (min-width: 900px) { .feature__media.shape-arch { border-radius: 999px 999px var(--r-md) var(--r-md); aspect-ratio: 1 / 1; max-height: 440px; } }

/* Сетка товаров: ровные ряды, 2 → 3 → 4 колонки */
.grid-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px var(--gap); }
@media (min-width: 600px) { .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px var(--gap); } }
@media (min-width: 900px) { .grid-products--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.p-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.p-card__media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--c-bg-2); }
.p-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.p-card:hover .p-card__media img { transform: scale(1.04); }
.p-card__flag { position: absolute; top: 10px; left: 10px; right: 56px; z-index: 2; width: fit-content; padding: 3px 9px; border-radius: var(--r-pill); background: rgba(251, 247, 240, .92); color: var(--c-muted); font: 600 var(--fs-label)/1.3 var(--f-sans); letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.p-card__flag--off { color: #6E5A46; }
.fav-btn { position: absolute; right: 8px; top: 8px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(251, 247, 240, .92); color: var(--c-olive); display: grid; place-items: center; cursor: pointer; transition: transform .2s var(--ease), background .2s; }
.fav-btn:hover { transform: scale(1.07); background: #fff; }
.fav-btn svg { width: 19px; height: 19px; }
.fav-btn .i-on { display: none; }
.fav-btn[aria-pressed="true"] .i-on { display: block; }
.fav-btn[aria-pressed="true"] .i-off { display: none; }
.p-card__body { padding: 10px 2px 0; display: flex; flex-direction: column; gap: 2px; }
.p-card__cat { font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); }
.p-card__name { font: 500 17px/1.25 var(--f-serif); color: var(--c-heading); margin: 0; }
.p-card__name a { color: inherit; text-decoration: none; }
.p-card__name a::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; }
.p-card__price { margin: 2px 0 0; font-size: 13.5px; color: var(--c-muted); }
@media (min-width: 1200px) { .p-card__name { font-size: 18px; } }

/* ---------- 5. Визуальная пауза ---------- */
.band { position: relative; height: clamp(150px, 20vw, 300px); overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; }
.band--contained { width: 100%; max-width: 1170px; height: clamp(160px, 24vw, 360px); margin-inline: auto; border-radius: var(--r-lg); }   /* исходник 1170 px */

/* ---------- 6. Наталья ---------- */
.natalia { display: grid; gap: calc(var(--gap-l) + 12px); align-items: center; }
.natalia__portrait { position: relative; max-width: 340px; width: 100%; justify-self: center; }
.natalia__photo { aspect-ratio: 4 / 5; }
.natalia__slot { position: absolute; top: 18px; left: 0; right: 0; z-index: 3; text-align: center; padding-inline: 12px; }
.natalia__slot span { display: inline-block; padding: 6px 14px; border-radius: var(--r-pill); background: rgba(251, 247, 240, .92); color: var(--c-heading); font-size: 13px; }
.natalia__small { position: absolute; z-index: 4; right: -8px; bottom: -24px; width: 44%; aspect-ratio: 4 / 3; border: 5px solid var(--c-bg); box-shadow: var(--shadow); border-radius: var(--r-md); }
.natalia__text h2 { margin-bottom: 0; }
.natalia__text .placeholder-quote { margin: 4px 0 18px; }
@media (min-width: 900px) { .natalia { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-l); } .natalia__portrait { justify-self: start; max-width: 380px; } }

/* ---------- 7. Обучение: оливковая карточка внутри контейнера ---------- */
.training { position: relative; color: var(--c-on-olive); --c-muted: #E2DFC9; padding-block: var(--space-s); }
.training__grid { position: relative; overflow: hidden; width: auto; max-width: var(--content); margin-inline: max(var(--gutter), calc((100% - var(--content)) / 2)); padding: var(--pad-card); background: var(--c-olive); border-radius: var(--r-lg); display: grid; gap: var(--gap-l); align-items: center; }
.training h2, .training h3 { color: #FBF7F0; }
.training .eyebrow { color: #E6D8B4; }
.training .lead { color: #EDE9DA; }
.training__media { position: relative; width: min(100%, 240px); justify-self: center; }
.training__img { aspect-ratio: 1; box-shadow: 0 20px 44px rgba(0, 0, 0, .18); }
.training__ring { position: absolute; top: -10px; right: -10px; bottom: -10px; left: -10px; border: 1px solid rgba(230, 216, 180, .45); border-radius: 50%; pointer-events: none; }
.training__list { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; border-top: 1px solid rgba(251, 247, 240, .2); }
.training__list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(251, 247, 240, .2); font: 500 16.5px/1.3 var(--f-serif); }
.training__list li span { font: 600 var(--fs-label)/1.3 var(--f-sans); letter-spacing: .08em; text-transform: uppercase; color: #D8D2B4; align-self: center; white-space: nowrap; }
.training__sprig { width: 110px; right: -24px; top: -8px; opacity: .5; transform: rotate(20deg); }
@media (min-width: 900px) { .training__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .training__media { order: 2; width: min(100%, 320px); } }

/* ---------- 8. Компоненты: карточка ---------- */
.components { display: grid; gap: var(--gap-l); align-items: center; background: var(--c-card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 12px 12px var(--pad-card); }
.components__media { aspect-ratio: 16 / 10; border-radius: var(--r-md); }
.components__body { max-width: 560px; padding-inline: 8px; }
@media (min-width: 900px) { .components { padding: 16px; } .components__body { padding: 0 var(--pad-card) 0 0; } }
.components__groups { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.components__groups span { padding: 6px 12px; border-radius: var(--r-pill); border: 1px dashed var(--c-sage-2); font-size: 13px; color: var(--c-muted); }
@media (min-width: 900px) { .components { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .components__media { aspect-ratio: 5 / 4; max-height: 420px; } }

/* ---------- 9. Журнал ---------- */
.edition { display: grid; gap: var(--gap-l); }
.story { position: relative; background: var(--c-card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 10px 10px var(--pad-card); }
.story__media { aspect-ratio: 4 / 3; border-radius: calc(var(--r-lg) - 6px); }
.story__media img { object-position: 50% 30%; }
.story > :not(.story__media) { margin-inline: 10px; }
.story__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 14px 0 6px; font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--c-olive); font-weight: 600; }
.story__meta span + span::before { content: "·"; margin-right: 12px; color: var(--c-gold); }
.story__title { font-size: clamp(21px, .76vw + 18px, 29px); font-weight: 500; margin: 0 0 6px; }
.story__title a { color: var(--c-heading); text-decoration: none; }
.story__title a::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.story__title a:hover { color: var(--c-olive); }
.story__lead { color: var(--c-muted); margin: 0; max-width: 36em; font-size: 15px; }
.side-stories { list-style: none; padding: 0; margin: 0; counter-reset: st; display: grid; gap: var(--gap); }
.side-story { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) 72px; gap: 12px; align-items: center; padding: 12px 12px 12px 14px; background: var(--c-card); border-radius: var(--r-md); counter-increment: st; }
.side-story::before { content: counter(st, decimal-leading-zero); font: italic 500 18px/1 var(--f-serif); color: var(--c-gold); }
.side-story h3 { font-size: 17px; font-weight: 500; margin: 3px 0 0; }
.side-story h3 a { color: var(--c-heading); text-decoration: none; }
.side-story h3 a::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.side-story h3 a:hover { color: var(--c-olive); }
.side-story .story__meta { margin: 0; }
.side-story__img { width: 72px; aspect-ratio: 1; border-radius: var(--r-sm); }
.side-story--soon { background: transparent; border: 1px dashed var(--c-sage-2); }
.side-story--soon h3 { color: var(--c-muted); font-style: italic; }
.side-story--soon .side-story__img { display: grid; place-items: center; background: var(--c-bg-2); }
.side-story--soon .side-story__img img { width: 64%; height: auto; object-fit: contain; }
@media (min-width: 900px) {
  .edition { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
  .side-story { grid-template-columns: 36px minmax(0, 1fr) 88px; padding: 14px 14px 14px 18px; }
  .side-story__img { width: 88px; }
  .side-story h3 { font-size: 18.5px; }
}

/* ---------- 10. Как заказать: шаги-карточки ---------- */
.order { display: grid; gap: var(--gap-l); }
.order__steps { list-style: none; padding: 0; display: grid; gap: var(--gap); counter-reset: s; }
.order__steps li { counter-increment: s; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 18px; background: var(--c-card); border-radius: var(--r-md); box-shadow: var(--shadow); }
.order__steps li::before { content: counter(s, decimal-leading-zero); font: italic 500 24px/1 var(--f-serif); color: var(--c-gold); }
.order__steps h3 { font-size: 18px; margin-bottom: 4px; }
.order__steps p { margin: 0; color: var(--c-muted); font-size: var(--fs-small); }
@media (min-width: 600px) { .order__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } .order__steps li { grid-template-columns: 1fr; gap: 8px; } }
@media (min-width: 900px) { .order { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: center; } }

/* ---------- 11. Instagram ---------- */
.insta-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; text-align: center; }
.insta-line img { width: 52px; height: 52px; border-radius: 50%; box-shadow: var(--shadow); }
.insta-line p { margin: 0; font: 500 18px/1.35 var(--f-serif); color: var(--c-heading); }
.insta-line p a { font-style: italic; }

/* ---------- Подвал ---------- */
.footer { position: relative; overflow: hidden; background: var(--c-bg-2); padding: var(--space) 0 22px; --c-muted: var(--c-text); }
.footer__branch { width: 280px; right: -110px; top: -40px; opacity: .4; transform: rotate(180deg); }
.footer__brand { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 28px; position: relative; z-index: 1; }
.footer__logo { width: 72px; height: 72px; border-radius: 50%; box-shadow: var(--shadow); margin-bottom: 10px; }
.footer__tagline { margin: 0; font: italic 400 16px/1.4 var(--f-serif); color: var(--c-text); }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; position: relative; z-index: 1; }
.footer__contact { grid-column: 1 / -1; }
.footer__title { font: 600 var(--fs-label)/1.2 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--c-olive); margin: 0 0 10px; }
.footer__list { list-style: none; padding: 0; display: grid; gap: 6px; }
.footer__list a, .footer__list span { color: var(--c-text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-small); min-height: 28px; }
.footer__list a:hover { color: var(--c-olive); text-decoration: underline; }
.footer__legal { text-align: center; font-size: var(--fs-xs); color: var(--c-text); margin: 32px 0 0; padding-top: 18px; border-top: 1px solid var(--c-line); position: relative; z-index: 1; }
@media (min-width: 900px) {
  .footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: var(--gap-l); }
  .footer__brand { align-items: flex-start; text-align: left; margin: 0; }
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__contact { grid-column: auto; }
}

/* ---------- Внутренние страницы: шапка страницы ---------- */
.page-hero { position: relative; overflow: hidden; padding: 18px 0 var(--space-s); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 10px; }
.page-hero .lead { margin: 0; }
.page-hero__decor { z-index: 0; width: 170px; right: -60px; top: -36px; opacity: .7; }
@media (min-width: 900px) { .page-hero { padding-top: 32px; } .page-hero__decor { width: 320px; right: -30px; top: -24px; opacity: .85; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 12px; padding: 0; font-size: 13px; color: var(--c-muted); }
.crumbs li + li::before { content: "·"; margin-right: 6px; color: var(--c-gold); }
.crumbs a { color: var(--c-muted); text-decoration: none; }
.crumbs a:hover { color: var(--c-olive); text-decoration: underline; }
/* Шапка страницы с фотографией: текст + фото в колонках */
.page-hero__grid { display: grid; gap: 18px; }
.page-hero__photo { aspect-ratio: 16 / 9; border-radius: var(--r-lg); }
.page-hero__photo--blend { background: var(--c-bg); max-width: 725px; }   /* исходник 725 px — не растягиваем */
.page-hero__photo--blend img { mix-blend-mode: multiply; }                  /* белый фон снимка сливается с фоном страницы */
@media (min-width: 600px) {
  .page-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 40%); gap: var(--gap-l); align-items: center; }
  .page-hero__photo { aspect-ratio: 4 / 3; }
}
@media (min-width: 900px) {
  .page-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); }
  .page-hero__photo { aspect-ratio: 3 / 2; }
}

/* Каталог */
.toolbar { position: sticky; top: var(--header-h); z-index: 20; background: rgba(247, 241, 232, .95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding: 10px 0; border-bottom: 1px solid rgba(220, 207, 189, .6); }
.toolbar__row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.search { position: relative; flex: 1; min-width: 0; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--c-muted); pointer-events: none; }
.input, .textarea { width: 100%; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--c-line); background: var(--c-card); font: 400 16px/1.3 var(--f-sans); color: var(--c-heading); transition: border-color .2s, box-shadow .2s; }
.textarea { border-radius: var(--r-md); padding: 12px 16px; min-height: 104px; resize: vertical; }
.search .input { padding-left: 40px; }
.input:focus, .textarea:focus { outline: none; border-color: var(--c-olive); box-shadow: 0 0 0 3px rgba(92, 99, 47, .14); }
.input::placeholder, .textarea::placeholder { color: #8A826F; }
.toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--c-line); background: var(--c-card); cursor: pointer; font-size: var(--fs-small); font-weight: 500; white-space: nowrap; color: var(--c-heading); flex: none; }
.toggle input { width: 18px; height: 18px; accent-color: var(--c-olive); margin: 0; }
@media (min-width: 900px) {
  .toolbar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
  .toolbar__row { margin-top: 0; flex: 0 1 460px; }
}
.catalog-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; margin: 0 0 16px; font-size: var(--fs-small); color: var(--c-muted); }
.catalog-meta button { border: 0; background: none; color: var(--c-olive); font-weight: 600; cursor: pointer; padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; }
.empty { text-align: center; padding: var(--space-s) 0 var(--space); color: var(--c-muted); }
.empty > img, .empty > svg { width: 120px; height: auto; margin: 0 auto 8px; }
.empty h2 { font-size: clamp(22px, .57vw + 19.8px, 28px); }

/* Товар */
.product { display: grid; gap: 22px; padding: 4px 0 var(--space-s); }
.gallery { position: relative; min-width: 0; }
.gallery__main { position: relative; margin-inline: calc(var(--gutter) * -1); }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { position: relative; flex: 0 0 100%; min-width: 0; scroll-snap-align: start; aspect-ratio: 1 / 1; background: var(--c-bg-2); }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__nav { position: absolute; top: 50%; z-index: 2; width: 40px; height: 40px; margin-top: -20px; border: 0; border-radius: 50%; background: rgba(251, 247, 240, .92); color: var(--c-heading); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.gallery__nav svg { width: 18px; height: 18px; }
.gallery__nav--prev { left: 10px; } .gallery__nav--prev svg { transform: scaleX(-1); }
.gallery__nav--next { right: 10px; }
.gallery__nav[disabled] { opacity: 0; pointer-events: none; }
.gallery__count { position: absolute; left: 12px; bottom: 12px; z-index: 2; padding: 3px 9px; border-radius: var(--r-pill); background: rgba(251, 247, 240, .92); font-size: var(--fs-xs); font-weight: 600; color: var(--c-heading); }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; }
.gallery__thumb { position: relative; width: 56px; aspect-ratio: 1; padding: 0; border: 1.5px solid transparent; border-radius: var(--r-sm); overflow: hidden; cursor: pointer; background: var(--c-bg-2); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb[aria-current="true"] { border-color: var(--c-olive); }
@media (min-width: 600px) { .gallery__main { margin: 0; border-radius: var(--r-lg); overflow: hidden; } .gallery { max-width: 560px; } }
@media (min-width: 900px) {
  .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap-l); align-items: start; padding-top: 8px; }
  .gallery { position: sticky; top: calc(var(--header-h) + 16px); max-width: none; }
  .gallery__slide { aspect-ratio: 4 / 5; max-height: calc(100vh - var(--header-h) - 120px); max-height: calc(100svh - var(--header-h) - 120px); }
  .gallery__thumb { width: 64px; }
}
.product__info h1 { margin-bottom: 8px; }
.product__info > p:first-child { margin-bottom: 10px; }
.product__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; color: var(--c-muted); font-size: var(--fs-small); margin-bottom: 10px; }
.product__meta .dot { display: inline-flex; align-items: center; gap: 6px; }
.product__meta .dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c-olive); }
.product__meta .dot--off::before { background: var(--c-caramel); }
.product__price { font: 400 17px/1.3 var(--f-sans); color: var(--c-muted); margin: 0 0 18px; }
.product__actions { display: grid; gap: 8px; margin-bottom: 12px; }
@media (min-width: 600px) { .product__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.product__note { font-size: var(--fs-small); color: var(--c-muted); margin: 0 0 18px; }
.accordion { border-top: 1px solid var(--c-line); }
.accordion details { border-bottom: 1px solid var(--c-line); }
.accordion summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; cursor: pointer; font: 500 18px/1.3 var(--f-serif); color: var(--c-heading); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; width: 9px; height: 9px; flex: none; border-right: 1.5px solid var(--c-olive); border-bottom: 1.5px solid var(--c-olive); transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--ease); }
.accordion details[open] summary::after { transform: rotate(-135deg); }
.accordion__body { padding: 0 0 16px; font-size: 15px; }
.sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); background: rgba(251, 247, 240, .97); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--c-line); transform: translateY(110%); transition: transform .35s var(--ease); }
.sticky-bar.is-visible { transform: none; }
.sticky-bar .btn { flex: 1; min-height: 44px; }
.sticky-bar .fav-btn { position: static; flex: none; border: 1px solid var(--c-line); }
@media (min-width: 900px) { .sticky-bar { display: none; } }

/* Статья */
.article-head { padding: 18px 0 4px; }
.article-head h1 { font-size: var(--fs-display); }
.article-cover { position: relative; margin: 20px auto 6px; max-width: 520px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.article-caption { font-size: 13px; color: var(--c-muted); margin: 10px 0 28px; text-align: center; }
.prose { font-size: 17px; line-height: 1.75; }
.prose > p:first-of-type::first-letter { float: left; font: 500 3.6em/.82 var(--f-serif); color: var(--c-olive); margin: .06em .12em 0 0; }
.prose h2 { font-size: clamp(22px, .76vw + 19px, 30px); margin: 1.5em 0 .5em; }
.prose blockquote { margin: 1.6em 0; padding: 16px 20px; border-left: 2px solid var(--c-gold); background: var(--c-card); border-radius: 0 var(--r-md) var(--r-md) 0; font: italic 400 clamp(19px, .48vw + 17px, 24px)/1.45 var(--f-serif); color: var(--c-heading); }
.prose ol, .prose ul { padding-left: 1.3em; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--c-olive); font-weight: 600; }
.lines { display: grid; gap: 10px; margin: 0 0 1.2em; }
.lines span { display: block; height: 10px; border-radius: 6px; background: var(--c-bg-2); }
.lines span:nth-child(2) { width: 94%; } .lines span:nth-child(3) { width: 78%; }
.sprig-divider { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 36px auto 24px; max-width: 320px; }
.sprig-divider span { flex: 1; height: 1px; background: var(--c-line); }
.sprig-divider img { width: 60px; }

/* Информационные блоки: карточки в сетке */
.info-list { display: grid; gap: var(--gap); }
.info-item { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px; background: var(--c-card); border-radius: var(--r-md); box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
a.info-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
a.info-item:hover h3 { color: var(--c-olive); }
.info-item svg { width: 26px; height: 26px; color: var(--c-olive); margin-top: 2px; }
.info-item h3 { font-size: 18px; font-weight: 500; margin-bottom: 4px; }
.info-item p { margin: 0; color: var(--c-muted); font-size: var(--fs-small); }
@media (min-width: 600px) { .info-list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Формы */
.panel { position: relative; padding: var(--pad-card); border-radius: var(--r-lg); background: var(--c-card); box-shadow: var(--shadow); align-self: start; min-width: 0; }
.panel h2 { font-size: clamp(22px, .57vw + 19.8px, 28px); }
.panel h3 { font-size: 19px; font-weight: 500; }
.panel__divider { height: 1px; background: var(--c-line); margin: 20px 0; border: 0; }
.form { display: grid; gap: 14px; }
.field label, .field__label { display: block; font-size: var(--fs-small); font-weight: 500; margin-bottom: 6px; color: var(--c-heading); }
.field__error { font-size: 13px; color: var(--c-error); margin: 6px 0 0; }
.input[aria-invalid="true"] { border-color: var(--c-error); }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; top: 0; right: 0; bottom: 0; left: 0; margin: 0; cursor: pointer; }
.radio-pill span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--c-line); background: var(--c-card); font-size: var(--fs-small); font-weight: 500; }
.radio-pill input:checked + span { background: var(--c-olive); border-color: var(--c-olive); color: var(--c-on-olive); }
.radio-pill input:focus-visible + span { outline: 2px solid var(--c-olive); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-small); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--c-olive); flex: none; }
.form-result { padding: 14px 16px; border-radius: var(--r-md); background: var(--c-sage); color: var(--c-heading); }

/* Подборка и контакты: список + панель */
.wl-layout { display: grid; gap: var(--gap-l); padding-bottom: var(--space); }
.block .wl-layout { padding-bottom: 0; }
.wl-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.wl-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 14px 10px 10px; background: var(--c-card); border-radius: var(--r-md); box-shadow: var(--shadow); }
.wl-item__img { display: block; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--c-bg-2); }
.wl-item__img img { width: 100%; height: 100%; object-fit: cover; }
.wl-item__cat { font-size: var(--fs-label); letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); margin: 0 0 2px; }
.wl-item__name { font: 500 17px/1.25 var(--f-serif); margin: 0 0 2px; }
.wl-item__name a { color: var(--c-heading); text-decoration: none; }
.wl-item__name a:hover { text-decoration: underline; }
.wl-item__price { font-size: 13px; color: var(--c-muted); margin: 0; }
.wl-item__remove { border: 0; background: none; color: var(--c-muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 10px 0 10px 6px; min-height: 44px; }
.wl-item__remove:hover { color: var(--c-error); }
@media (min-width: 900px) { .wl-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .panel--sticky { position: sticky; top: calc(var(--header-h) + 16px); } }

/* Модальное окно */
.modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 90; display: grid; align-items: end; justify-items: center; }
.modal__backdrop { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(49, 48, 19, .34); opacity: 0; transition: opacity .25s; }
.modal__box { position: relative; width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto; padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom)); background: var(--c-bg); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--shadow-lg); transform: translateY(30px); opacity: 0; transition: transform .3s var(--ease), opacity .3s; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__box { transform: none; opacity: 1; }
.modal__close { position: absolute; top: 8px; right: 8px; }
.modal__box h2 { font-size: 24px; padding-right: 40px; }
.msg-preview { margin: 12px 0 16px; padding: 14px 16px; border-radius: 16px 16px 16px 4px; background: #E7EDD9; color: var(--c-heading); font-size: 14.5px; line-height: 1.55; white-space: pre-line; }
@media (min-width: 600px) { .modal { align-items: center; } .modal__box { border-radius: var(--r-lg); padding: 32px; } }

/* Уведомление */
.toast { position: fixed; left: 50%; bottom: 20px; z-index: 95; max-width: calc(100% - 32px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: var(--r-pill); background: var(--c-heading); color: var(--c-on-olive); font-size: var(--fs-small); box-shadow: var(--shadow-lg); transition: opacity .3s, transform .3s var(--ease); }
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--c-sage); margin-left: 8px; font-weight: 600; }
.has-sticky-bar .toast { bottom: 80px; }
@media (min-width: 900px) { .has-sticky-bar .toast { bottom: 20px; } }

/* 404 */
.not-found { min-height: 56vh; display: grid; place-items: center; text-align: center; }
.not-found__num { font: italic 500 clamp(80px, 5.7vw + 58px, 140px)/1 var(--f-serif); color: var(--c-sage-2); margin: 0 0 8px; }
