/* Евро Парфюм — «Белая витрина». Переменные дизайн-системы.
   Источник: ТЗ v4, раздел 03 (цвета утверждены 17.11.2026).
   Всё остальное (site.css, шаблоны) берёт значения только отсюда. */

:root {
  /* ── Цвет ─────────────────────────────────────────────── */
  --color-bg: #FFFFFF;            /* фон страницы */
  --color-surface: #F4F3F1;       /* светлый серый: чередование блоков, плитки, подложка фото */
  --color-surface-2: #EAE8E4;     /* шаг темнее: наведение на плитку, плашка под фото */
  --color-ink: #111111;           /* текст, тёмные блоки */
  --color-ink-soft: #2B2B2B;      /* наведение на чёрную кнопку */
  --color-muted: #6B6B6B;         /* второстепенный текст; 5,3:1 на белом, 4,8:1 на сером */
  --color-line: #E2E0DC;          /* линии: только поля форм и таблицы */
  --color-line-strong: #8A8884;   /* граница поля: 3,5:1 на белом */
  --color-line-mid: #C9C6C0;      /* 27.11: риски, кружки легенды, выключенный переключатель */
  --color-ink-2: #1C1C1C;         /* 27.11: тёмная поверхность внутри чёрного блока (подбор) */
  --beige: #E6D6B8;               /* тёплая нота: подложка под товар и форма (перенесено из blocks2.css) */
  --beige-2: #D9C39A;
  --c-max-1: #2D7BFF; --c-max-2: #8A3FFC; /* цвета мессенджеров — только на их значках */
  --c-whatsapp: #25D366;
  --c-telegram: #2AABEE;
  --c-rrp-gold: #B07A4A;          /* только плашка RRP в подвале */
  --color-on-dark: #FFFFFF;       /* текст на чёрном */
  --color-on-dark-muted: #B9B7B2; /* второстепенный текст на чёрном, 9,6:1 */

  /* Красный — только действие и точка в названии */
  --color-action: #D9141E;        /* кнопка; белый текст 5,0:1 */
  --color-action-hover: #C4111A;
  --color-action-active: #B00E17; /* нажатие */
  --color-on-action: #FFFFFF;

  /* Состояния формы. Ошибка — тем же красным: это «заметить и исправить» */
  --color-error: #B00E17;         /* текст ошибки, 7,2:1 на белом */
  --color-error-bg: #FBEDEE;
  --color-success: #1B6B3A;       /* 6,4:1 на белом */
  --color-success-bg: #EAF3EC;
  --color-focus: #111111;         /* кольцо фокуса на светлом */
  --color-focus-on-dark: #FFFFFF; /* кольцо фокуса на тёмном и на цвете марки */

  /* Цвет марки. Шаблон задаёт одну переменную --brand-c (поле color
     из файла марки) и класс; остальное выводится (см. «Цвет марки» ниже) */
  --brand-c: #111111;             /* цвет с упаковки производителя */
  --brand: var(--brand-c);        /* поле блока марки */
  --brand-ink: #FFFFFF;           /* текст на поле */
  --brand-ink-muted: rgba(255, 255, 255, 0.78); /* второстепенный текст на поле */
  --brand-line: var(--brand-c);   /* линия на карточках */
  --color-focus-brand: #FFFFFF;   /* кольцо фокуса на поле марки */

  /* ── Шрифт ────────────────────────────────────────────── */
  --font: "Onest", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-bold: 700;

  /* Пять кеглей — больше на странице нет */
  --text-display: clamp(2.25rem, 0.9rem + 4.1vw, 5.25rem); /* 36 → 84: H1 первого экрана */
  --text-title: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);    /* 28 → 48: заголовок блока */
  --text-figure: clamp(2rem, 1rem + 2.8vw, 3.75rem);    /* 32 → 60: крупные цифры (условия, факты) */
  --text-h3: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);   /* 22 → 28: заголовок внутри блока */
  --text-lead: clamp(1.1875rem, 1.1rem + 0.5vw, 1.5rem); /* 19 → 24: подзаголовок, название карточки */
  --text-body: 1.0625rem;                                 /* 17: основной текст */
  --text-small: 0.875rem;                                 /* 14: подписи, подвал, путь */

  --leading-display: 0.98;
  --leading-title: 1.06;
  --leading-lead: 1.3;
  --leading-body: 1.5;
  --tracking-display: -0.035em;
  --tracking-title: -0.025em;
  --measure: 62ch;                /* длина строки основного текста */

  /* ── Сетка ────────────────────────────────────────────── */
  --page-max: 1440px;             /* шире страница не растёт */
  --page-margin: clamp(16px, 4vw, 48px);
  --columns: 12;
  --gutter: clamp(12px, 1.6vw, 24px);
  --bp-tablet: 760px;             /* справочно: в @media переменные не работают */
  --bp-desktop: 1080px;

  /* ── Отступы, шаг 4 px ───────────────────────────────── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-section: clamp(64px, 9vw, 144px);  /* между блоками */
  --space-block-head: clamp(28px, 4vw, 56px); /* от заголовка блока до содержимого */

  /* ── Радиусы ──────────────────────────────────────────── */
  /* Витрина — прямые углы: кнопки, плитки, фото. Круг только у переключателей */
  --radius-0: 0px;
  --radius-control: 2px;          /* поля и галочки: чтобы не резали глаз */
  --radius-round: 999px;

  /* ── Тени ─────────────────────────────────────────────── */
  /* У лежащих элементов теней нет. Тень — только у того, что всплывает */
  --shadow-none: none;
  --shadow-float: 0 18px 48px rgba(17, 17, 17, 0.14); /* выпадающее меню «Марки» */
  --shadow-bar: 0 -1px 0 var(--color-line);            /* нижняя панель телефона */

  /* ── Размеры ──────────────────────────────────────────── */
  --tap: 48px;                    /* область нажатия; минимум по заданию — 44 */
  --tap-min: 44px;
  --header-h: 72px;
  --header-h-mobile: 60px;
  --tabbar-h: 64px;               /* нижняя панель телефона */
  --brand-line-w: 4px;            /* линия цвета марки на карточке */
  --brand-edge-w: 10px;           /* красная линия на чёрном блоке красной марки */

  /* ── Состояния и движение ─────────────────────────────── */
  --focus-ring: 3px solid var(--color-focus);
  --focus-offset: 3px;
  --disabled-opacity: 0.45;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 140ms;              /* наведение, нажатие */
  --dur: 280ms;                   /* раскрытие, смена */
  --dur-slow: 640ms;              /* появление блока */
  --press-shift: 1px;             /* кнопка «проседает» при нажатии */

  /* ── Слои ─────────────────────────────────────────────── */
  --z-header: 40;
  --z-menu: 50;
  --z-tabbar: 45;
  --z-drawer: 60;
}

/* ── Цвет марки ───────────────────────────────────────────
   На странице марки шаблон ставит на <body> (на карточке — на саму
   карточку) inline-стиль --brand-c и один из классов ниже.
   Класс выбирается по яркости цвета: яркость (299R+587G+114B)/1000
   больше 150 — brand--light, иначе brand--dark;
   для красных марок (color_is_red: true) — brand--red. */

.brand--dark,
.brand--light,
.brand--red    { --brand: var(--brand-c); --brand-line: var(--brand-c); }
.brand--dark   { --brand-ink: #FFFFFF; --brand-ink-muted: rgba(255, 255, 255, 0.78); --color-focus-brand: #FFFFFF; }
.brand--light  { --brand-ink: #111111; --brand-ink-muted: rgba(17, 17, 17, 0.72);  --color-focus-brand: #111111; }

/* Красная марка: поле чёрное, цвет марки уходит в линию слева.
   Так красная кнопка не спорит с красным полем. */
.brand--red {
  --brand: #111111;
  --brand-ink: #FFFFFF;
  --brand-ink-muted: rgba(255, 255, 255, 0.78);
  --color-focus-brand: #FFFFFF;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0ms; --dur: 0ms; --dur-slow: 0ms; --press-shift: 0px; }
}

/* Евро Парфюм — блоки «Белой витрины». Значения — только из tokens.css.
   Порядок: основа → кнопки → шапка → блоки главной → блоки марки →
   блоки направления → «Оптовикам» → форма → подвал → телефон. */

/* ── Основа ─────────────────────────────────────────────── */
*, *::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(--color-bg); color: var(--color-ink);
  font-family: var(--font); font-size: var(--text-body); line-height: var(--leading-body);
  font-weight: var(--weight-regular); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
::selection { background: var(--color-ink); color: var(--color-on-dark); }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--space-4); top: -100px; z-index: 100; background: var(--color-ink); color: var(--color-on-dark); padding: var(--space-3) var(--space-4); }
.skip:focus { top: var(--space-4); }

.wrap { width: 100%; max-width: var(--page-max); margin-inline: auto; padding-inline: var(--page-margin); }
.sec { padding-block: var(--space-section); }
.sec--alt { background: var(--color-surface); }
.sec--tight { padding-block: calc(var(--space-section) * 0.6); }
.sec__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-3) var(--space-6); margin-bottom: var(--space-block-head); }
.sec__note { color: var(--color-muted); max-width: 44ch; }

.t-display { font-size: var(--text-display); line-height: var(--leading-display); letter-spacing: var(--tracking-display); font-weight: var(--weight-bold); text-wrap: balance; }
.t-title { font-size: var(--text-title); line-height: var(--leading-title); letter-spacing: var(--tracking-title); font-weight: var(--weight-bold); text-wrap: balance; }
.t-lead { font-size: var(--text-lead); line-height: var(--leading-lead); letter-spacing: -0.01em; }
.t-small { font-size: var(--text-small); line-height: 1.45; }
.t-muted { color: var(--color-muted); }
.measure { max-width: var(--measure); }
.link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.link:hover { text-decoration-thickness: 2px; }
.arrow { display: inline-block; transition: transform var(--dur-fast) var(--ease); }
a:hover > .arrow, a:hover .arrow { transform: translateX(4px); }

/* ── Кнопки ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--tap); padding: 0 var(--space-5); border-radius: var(--radius-0);
  font-weight: var(--weight-medium); font-size: var(--text-body); line-height: 1.15; text-align: center;
  background: var(--color-action); color: var(--color-on-action); cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.btn:hover { background: var(--color-action-hover); }
.btn:active { background: var(--color-action-active); transform: translateY(var(--press-shift)); }
.btn--lg { min-height: 56px; padding-inline: var(--space-6); }
.btn--block { width: 100%; }
/* вторая кнопка: чёрный контур, без красного */
.btn--ghost { background: transparent; color: var(--color-ink); box-shadow: inset 0 0 0 2px var(--color-ink); }
.btn--ghost:hover { background: var(--color-ink); color: var(--color-on-dark); }
.btn--ghost:active { background: var(--color-ink-soft); }
.on-dark .btn--ghost, .btn--ghost.on-dark { color: var(--color-on-dark); box-shadow: inset 0 0 0 2px var(--color-on-dark); }
.on-dark .btn--ghost:hover { background: var(--color-on-dark); color: var(--color-ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: var(--disabled-opacity); pointer-events: none; }
.btn.is-loading { pointer-events: none; background: var(--color-action-active); }
.btn.is-loading::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: var(--color-bg); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--color-focus-on-dark); }

/* ── Название ───────────────────────────────────────────── */
.wordmark { font-weight: var(--weight-bold); font-size: var(--text-lead); letter-spacing: -0.03em; line-height: 1; white-space: nowrap; display: inline-flex; align-items: center; min-height: var(--tap-min); }
.header .btn { white-space: nowrap; }
.wordmark i { font-style: normal; color: var(--color-action); margin-inline: 0.04em; }

/* ── Шапка ──────────────────────────────────────────────── */
.header { position: sticky; top: 0; z-index: var(--z-header); background: var(--color-bg); transition: box-shadow var(--dur) var(--ease); }
.header.is-stuck { box-shadow: 0 1px 0 var(--color-line); }
.header__in { display: flex; align-items: center; gap: var(--space-5); min-height: var(--header-h); }
.nav { display: flex; align-items: center; gap: clamp(2px, 0.6vw, 10px); margin-left: clamp(8px, 2vw, 40px); margin-right: auto; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap-min); padding-inline: clamp(6px, 0.7vw, 12px); font-size: var(--text-body); white-space: nowrap; position: relative; }
.nav__link::after { content: ""; position: absolute; left: clamp(6px, 0.7vw, 12px); right: clamp(6px, 0.7vw, 12px); bottom: 8px; height: 2px; background: var(--color-ink); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after, .nav__link[aria-expanded="true"]::after { transform: scaleX(1); }
.nav__chev { width: 10px; height: 10px; transition: transform var(--dur) var(--ease); }
.nav__link[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }
.header__contact { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; white-space: nowrap; }
.header__tel { font-weight: var(--weight-medium); font-size: var(--text-body); min-height: 24px; display: inline-flex; align-items: center; }
.header__im { display: flex; gap: var(--space-3); font-size: var(--text-small); color: var(--color-muted); }
.header__im a { min-height: 24px; display: inline-flex; align-items: center; }
.header__im a:hover, .header__tel:hover { color: var(--color-ink); text-decoration: underline; text-underline-offset: 0.2em; }
.burger { display: none; width: var(--tap); height: var(--tap); align-items: center; justify-content: center; margin-right: calc(var(--space-3) * -1); }
.burger span { display: block; width: 24px; height: 2px; background: var(--color-ink); box-shadow: 0 7px 0 var(--color-ink), 0 -7px 0 var(--color-ink); transition: box-shadow var(--dur-fast) var(--ease), transform var(--dur) var(--ease); }
.burger[aria-expanded="true"] span { box-shadow: none; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { content: ""; display: block; width: 24px; height: 2px; background: var(--color-ink); transform: rotate(90deg); }

/* выпадающее «Марки» — по направлениям */
.mega { position: absolute; left: 0; right: 0; top: 100%; z-index: var(--z-menu); background: var(--color-bg); box-shadow: var(--shadow-float); padding-block: var(--space-7) var(--space-8); }
.mega__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-6) var(--gutter); }
.mega__dir { display: inline-flex; min-height: var(--tap-min); align-items: center; font-weight: var(--weight-bold); margin-bottom: var(--space-2); }
.mega__dir:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.mega li a { display: flex; align-items: center; min-height: 36px; color: var(--color-ink); }
.mega li a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* меню телефона */
.drawer { position: fixed; inset: var(--header-h-mobile) 0 0 0; z-index: var(--z-drawer); background: var(--color-bg); overflow-y: auto; padding: var(--space-4) var(--page-margin) calc(var(--tabbar-h) + var(--space-7)); }
.drawer__link, .drawer summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; font-size: var(--text-lead); font-weight: var(--weight-medium); letter-spacing: -0.01em; cursor: pointer; list-style: none; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary .nav__chev { width: 14px; height: 14px; }
.drawer details[open] summary .nav__chev { transform: rotate(180deg); }
.drawer__group { padding: var(--space-2) 0 var(--space-4); }
.drawer__group b { display: block; font-size: var(--text-small); color: var(--color-muted); font-weight: var(--weight-regular); padding-top: var(--space-3); }
.drawer__group a { display: flex; align-items: center; min-height: var(--tap-min); }
.drawer__contact { margin-top: var(--space-5); padding-top: var(--space-5); background: var(--color-surface); margin-inline: calc(var(--page-margin) * -1); padding-inline: var(--page-margin); padding-bottom: var(--space-5); display: grid; gap: var(--space-2); }
.drawer__contact a { min-height: var(--tap-min); display: inline-flex; align-items: center; }

/* ── Путь по сайту ──────────────────────────────────────── */
.crumbs { font-size: var(--text-small); color: var(--color-muted); padding-block: var(--space-2); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "›"; margin-inline: var(--space-2); }
.crumbs a { display: inline-flex; align-items: center; min-height: var(--tap-min); }
.crumbs a:hover { color: var(--color-ink); text-decoration: underline; text-underline-offset: 0.2em; }
.crumbs [aria-current] { color: var(--color-ink); }

/* ── Первый экран ───────────────────────────────────────── */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); max-width: var(--page-max); margin-inline: auto; }
.hero__text { padding: clamp(32px, 6vw, 96px) var(--gutter) clamp(40px, 5vw, 80px) var(--page-margin); display: flex; flex-direction: column; justify-content: center; }
.hero__kicker { color: var(--color-muted); margin-bottom: var(--space-4); }
.hero__sub { margin-top: var(--space-5); max-width: 36em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero__stage { position: relative; background: var(--color-surface); overflow: hidden; min-height: clamp(360px, 46vw, 680px); }
.hero__stage img { position: absolute; height: auto; max-width: none; }
/* главная: парфюмерия спереди, уход и мужская вода — за ней; правый край режет фото */
.hero__stage--home img:nth-child(1) { width: 108%; right: -24%; bottom: -4%; z-index: 3; }
.hero__stage--home img:nth-child(2) { width: 37%; left: 4%; bottom: 17%; z-index: 2; }
.hero__stage--home img:nth-child(3) { width: 50%; left: 33%; bottom: 47%; }
.hero__stage--dir img:nth-child(1) { width: 104%; right: -26%; bottom: -6%; z-index: 2; }
.hero__stage--dir img:nth-child(2) { width: 62%; left: -6%; bottom: -4%; z-index: 3; }
.hero--page .hero__stage { min-height: clamp(320px, 38vw, 560px); }
.hero--text { grid-template-columns: minmax(0, 1fr); }

.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); padding-block: clamp(28px, 4vw, 56px); }
.figures b { display: block; font-size: var(--text-title); line-height: 1; letter-spacing: var(--tracking-title); font-weight: var(--weight-bold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.figures span { display: block; margin-top: var(--space-2); color: var(--color-muted); }

/* ── Плитки направлений ─────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-2); }
.tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { position: relative; display: flex; flex-direction: column; min-height: clamp(220px, 24vw, 340px); padding: var(--space-5); background: var(--color-bg); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.sec:not(.sec--alt) .tile { background: var(--color-surface); }
.tile__count { font-size: var(--text-title); font-weight: var(--weight-bold); line-height: 1; letter-spacing: var(--tracking-title); font-variant-numeric: tabular-nums; }
.tile__count small { font-size: var(--text-body); font-weight: var(--weight-regular); letter-spacing: 0; margin-left: 0.3em; }
.tile__name { font-size: var(--text-lead); line-height: 1.15; font-weight: var(--weight-medium); letter-spacing: -0.015em; margin-top: auto; padding-top: var(--space-6); hyphens: manual; }
.tile__list { margin-top: var(--space-3); min-height: 4.35em; font-size: var(--text-small); line-height: 1.45; color: var(--color-muted); transition: color var(--dur) var(--ease); }
.tile__go { position: absolute; right: var(--space-5); top: var(--space-5); font-size: var(--text-h3); line-height: 1; transition: transform var(--dur) var(--ease); }
a.tile:hover, a.tile:focus-visible { background: var(--color-ink); color: var(--color-on-dark); }
a.tile:hover .tile__list, a.tile:focus-visible .tile__list { color: var(--color-on-dark-muted); }
a.tile:hover .tile__go { transform: translate(4px, -4px); }
a.tile:active { background: var(--color-ink-soft); }

/* ── Сетка марок с переключателем ───────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap-min); padding: 0 var(--space-4); background: var(--color-surface); border-radius: var(--radius-0); white-space: nowrap; cursor: pointer; transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.sec--alt .chip { background: var(--color-bg); }
.chip:hover { background: var(--color-surface-2); }
.chip sup { font-size: 0.75em; color: var(--color-muted); font-variant-numeric: tabular-nums; vertical-align: 0.35em; line-height: 0; }
.chip[aria-pressed="true"], .chip.is-on, input:checked + .chip { background: var(--color-ink); color: var(--color-on-dark); }
.chip[aria-pressed="true"] sup, input:checked + .chip sup { color: var(--color-on-dark-muted); }
input:focus-visible + .chip { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.chips--scroll { margin-bottom: var(--space-block-head); }

.brands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); }
.brands--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sec--alt .brand { background: var(--color-bg); }
.brand { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(112px, 11vw, 152px); padding: var(--space-4) var(--space-4) var(--space-4) calc(var(--space-4) + var(--brand-line-w)); background: var(--color-surface); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.brand::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--brand-line-w); background: var(--brand-line); transition: width var(--dur) var(--ease); }
.brand__name { font-size: var(--text-lead); font-weight: var(--weight-bold); letter-spacing: -0.02em; line-height: 1.1; }
.brand__meta { font-size: var(--text-small); color: var(--color-muted); margin-top: var(--space-1); transition: color var(--dur) var(--ease); }
.brand:hover, .brand:focus-visible { background: var(--color-ink); color: var(--color-on-dark); }
.brand:hover .brand__meta, .brand:focus-visible .brand__meta { color: var(--color-on-dark-muted); }
.brand:hover::before { width: calc(var(--brand-line-w) * 2); }
.brand.is-off { display: none; }
.brands__empty { color: var(--color-muted); }

/* ── Значки условий ─────────────────────────────────────── */
.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px) var(--gutter); }
.perks--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.perk { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.perk svg { width: 48px; height: 48px; stroke: var(--color-ink); fill: none; stroke-width: 1.75; stroke-linecap: square; stroke-linejoin: miter; }
.perk b { display: block; font-size: var(--text-lead); line-height: 1.2; letter-spacing: -0.015em; font-weight: var(--weight-bold); }
.perk span { display: block; margin-top: var(--space-1); color: var(--color-muted); }

/* ── Шаги ───────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6) var(--gutter); counter-reset: step; }
.step { counter-increment: step; display: flex; flex-direction: column; padding-top: var(--space-5); position: relative; }
/* толстая планка — «дорожка» шагов; у последнего шага она красит финиш в чёрный */
.step::after { content: ""; position: absolute; left: 0; right: calc(var(--gutter) * -1); top: 0; height: 4px; background: var(--color-surface-2); }
.sec--alt .step::after { background: var(--color-bg); }
.step:first-child::after, .steps:hover .step:hover::after { background: var(--color-ink); }
.step:last-child::after { right: 0; }
.step::before { content: counter(step); font-size: var(--text-display); font-weight: var(--weight-bold); line-height: 1; letter-spacing: var(--tracking-display); font-variant-numeric: tabular-nums; }
.step b { margin-top: var(--space-4); font-size: var(--text-lead); line-height: 1.2; letter-spacing: -0.015em; }
.step span { margin-top: var(--space-2); color: var(--color-muted); max-width: 22em; }

/* ── Полоса лид-магнита ─────────────────────────────────── */
.band { background: var(--color-ink); color: var(--color-on-dark); }
.band__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-6) var(--space-8); padding-block: clamp(40px, 6vw, 88px); }
.band__text { margin-top: var(--space-3); color: var(--color-on-dark-muted); max-width: 40em; }
.band__dots { display: flex; gap: var(--space-2); margin-top: var(--space-5); }
.band__dots li { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--space-3); font-size: var(--text-small); background: var(--color-ink-soft); color: var(--color-on-dark); white-space: nowrap; }
.band--light { background: var(--color-surface); color: var(--color-ink); }
.band--light .band__text { color: var(--color-muted); }
.band__pic { width: clamp(96px, 12vw, 168px); mix-blend-mode: multiply; }
.band--pic .band__in { grid-template-columns: auto minmax(0, 1fr) auto; }

/* ── Зоны доставки ──────────────────────────────────────── */
.zones { display: grid; grid-template-columns: 3fr 4fr 5fr; gap: var(--space-2); align-items: end; }
.zone { background: var(--color-bg); padding: var(--space-5); display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(200px, 20vw, 280px); }
.zone:nth-child(2) { min-height: clamp(240px, 26vw, 360px); }
.zone:nth-child(3) { min-height: clamp(280px, 32vw, 440px); }
.sec:not(.sec--alt) .zone { background: var(--color-surface); }
.zone b { font-size: var(--text-lead); line-height: 1.15; letter-spacing: -0.015em; font-weight: var(--weight-bold); }
.zone span { margin-top: var(--space-2); color: var(--color-muted); }
.zones__note { margin-top: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); align-items: baseline; }

/* ── О компании и плашка под фото ───────────────────────── */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-7) var(--gutter); align-items: center; }
.about__text > * + * { margin-top: var(--space-5); }
.plate { position: relative; background: var(--color-surface); aspect-ratio: 3 / 2; display: flex; align-items: flex-end; padding: var(--space-4); color: var(--color-muted); font-size: var(--text-small); overflow: hidden; }
.sec--alt .plate { background: var(--color-surface-2); }
.plate span { position: relative; background: var(--color-bg); padding: var(--space-1) var(--space-2); }
.plate--square { aspect-ratio: 1; }
.plate--portrait { aspect-ratio: 4 / 5; }
.plate--logo { aspect-ratio: auto; min-height: 64px; width: fit-content; min-width: 180px; padding: var(--space-3) var(--space-4); align-items: center; background: var(--color-bg); color: var(--color-ink); font-weight: var(--weight-bold); font-size: var(--text-lead); letter-spacing: 0.02em; }

/* ── Вопросы и ответы ───────────────────────────────────── */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-6) var(--gutter); align-items: start; }
.faq__list { display: grid; gap: var(--space-2); }
.faq__item { background: var(--color-surface); transition: background-color var(--dur) var(--ease); }
.sec--alt .faq__item { background: var(--color-bg); }
.faq__item summary { display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: var(--space-4); align-items: center; min-height: 64px; padding: var(--space-4) var(--space-5); font-size: var(--text-lead); line-height: 1.25; letter-spacing: -0.01em; font-weight: var(--weight-medium); cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; width: 12px; height: 12px; justify-self: center; border-right: 2px solid var(--color-ink); border-bottom: 2px solid var(--color-ink); transform: translateY(-3px) rotate(45deg); transition: transform var(--dur) var(--ease); }
.faq__item[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq__item summary:hover { background: var(--color-surface-2); }
.faq__a { padding: 0 var(--space-5) var(--space-5); max-width: var(--measure); }
.faq__a > * + * { margin-top: var(--space-3); }

/* ── Блок марки в цвете ─────────────────────────────────── */
.bhero { background: var(--brand); color: var(--brand-ink); position: relative; overflow: hidden; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.brand--red .bhero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--brand-edge-w); background: var(--brand-line); z-index: 3; }
.bhero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); max-width: var(--page-max); margin-inline: auto; }
.bhero__text { padding: clamp(28px, 5vw, 80px) var(--gutter) clamp(40px, 5vw, 80px) var(--page-margin); display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.brand--red .bhero__text { padding-left: calc(var(--page-margin) + var(--brand-edge-w)); }
.bhero__kicker { color: var(--brand-ink-muted); margin: var(--space-6) 0 var(--space-3); }
.bhero__sub { margin-top: var(--space-5); max-width: 32em; }
.bhero__cta { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.bhero :focus-visible { outline-color: var(--color-focus-brand); }
.bhero__stage { position: relative; min-height: clamp(340px, 44vw, 640px); }
.bhero__stage img { position: absolute; width: 128%; max-width: none; height: auto; right: -30%; bottom: -9%; }

/* четыре факта */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6) var(--gutter); }
.facts dt { color: var(--color-muted); }
.facts dd { margin-top: var(--space-2); font-size: var(--text-lead); line-height: 1.2; letter-spacing: -0.015em; font-weight: var(--weight-bold); text-wrap: balance; }

/* карточка линейки */
.lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.line { position: relative; background: var(--color-bg); display: grid; grid-template-rows: auto 1fr; }
.line::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: var(--brand-line-w); background: var(--brand-line); z-index: 1; }
.line__pic { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; padding: var(--space-5) var(--space-5) 0; }
.line__pic img { height: 100%; width: auto; object-fit: contain; transform: translateY(6%) scale(1.08); transition: transform var(--dur-slow) var(--ease); }
.line:hover .line__pic img { transform: translateY(3%) scale(1.13); }
.line__body { padding: var(--space-5); }
.line__body b { display: block; font-size: var(--text-lead); line-height: 1.2; letter-spacing: -0.015em; }
.line__body p { margin-top: var(--space-2); color: var(--color-muted); }
.line__body .line__fmt { color: var(--color-ink); margin-top: var(--space-3); }

/* карточка позиции */
.positions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6) var(--space-2); }
.pos__pic { background: var(--color-surface); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; padding: var(--space-5); }
.pos__pic img { max-height: 100%; width: auto; object-fit: contain; transition: transform var(--dur-slow) var(--ease); }
.pos:hover .pos__pic img { transform: scale(1.06); }
.pos b { display: block; margin-top: var(--space-3); font-size: var(--text-lead); line-height: 1.2; letter-spacing: -0.015em; }
.pos span { display: block; color: var(--color-muted); }

/* карточка марки в направлении */
.bcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.bcard { position: relative; background: var(--color-bg); display: flex; flex-direction: column; min-height: 100%; transition: background-color var(--dur) var(--ease); }
.bcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--brand-line-w); background: var(--brand-line); z-index: 1; transition: height var(--dur) var(--ease); }
.bcard:hover::before, .bcard:focus-visible::before { height: calc(var(--brand-line-w) * 2); }
.bcard { min-width: 0; }
.bcard__pic { aspect-ratio: 16 / 10; background: var(--color-surface-2); overflow: hidden; position: relative; }
.bcard__pic img { position: absolute; left: 50%; bottom: -12%; height: 118%; width: auto; max-width: none; transform: translateX(-50%); transition: transform var(--dur-slow) var(--ease); }
.bcard:hover .bcard__pic img { transform: translateX(-50%) translateY(-3%) scale(1.04); }
.bcard__pic .plate { position: absolute; inset: 0; aspect-ratio: auto; background: transparent; }
.bcard__body { padding: var(--space-5); display: flex; flex-direction: column; flex: 1; }
.bcard__name { font-size: var(--text-lead); font-weight: var(--weight-bold); letter-spacing: -0.02em; line-height: 1.15; }
.bcard__meta { color: var(--color-muted); margin-top: var(--space-1); }
.bcard__diff { margin-top: var(--space-3); }
.bcard__go { margin-top: auto; padding-top: var(--space-5); font-weight: var(--weight-medium); }
.bcard--wide { grid-column: span 2; display: grid; grid-template-columns: 1.1fr 1fr; }
.bcard--wide .bcard__pic { aspect-ratio: auto; min-height: 280px; }

/* таблица «что у кого» */
.matrix-scroll { overflow-x: auto; contain: layout paint; /* без contain мобильный Chrome растягивает страницу под ширину таблицы */ -webkit-overflow-scrolling: touch; margin-inline: calc(var(--page-margin) * -1); padding-inline: var(--page-margin); }
.matrix { width: 100%; min-width: 640px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.matrix th, .matrix td { text-align: left; padding: var(--space-4) var(--space-4); border-bottom: 1px solid var(--color-line); }
.matrix thead th { font-weight: var(--weight-regular); color: var(--color-muted); vertical-align: bottom; border-bottom: 2px solid var(--color-ink); }
.matrix tbody th { font-weight: var(--weight-bold); font-size: var(--text-lead); letter-spacing: -0.015em; white-space: nowrap; padding-left: 0; }
.matrix tbody th a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.matrix td { width: 15%; }
.matrix .yes { display: inline-block; width: 14px; height: 14px; background: var(--color-ink); }
.matrix .no { display: inline-block; width: 14px; height: 2px; background: var(--color-line); vertical-align: middle; }
.matrix tbody tr:hover { background: var(--color-surface); }
.matrix__hint { display: none; margin-top: var(--space-3); }

/* наборы под точку */
.sets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.set { background: var(--color-bg); padding: var(--space-5); display: flex; flex-direction: column; min-height: clamp(220px, 20vw, 300px); }
.set b { font-size: var(--text-lead); line-height: 1.15; letter-spacing: -0.015em; }
.set p { color: var(--color-muted); margin-top: var(--space-2); }
.set ul { margin-top: auto; padding-top: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); font-weight: var(--weight-medium); }
.set ul a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* ── «Оптовикам» ────────────────────────────────────────── */
.who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); }
.who li { background: var(--color-surface); padding: var(--space-5); min-height: clamp(160px, 15vw, 220px); display: flex; flex-direction: column; justify-content: flex-end; }
.who b { font-size: var(--text-lead); line-height: 1.15; letter-spacing: -0.015em; }
.who span { margin-top: var(--space-2); }
.terms { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-7) var(--gutter); align-items: start; }
.terms__big b { display: block; font-size: var(--text-display); line-height: var(--leading-display); letter-spacing: var(--tracking-display); white-space: nowrap; }
.terms__big span { display: block; margin-top: var(--space-3); color: var(--color-muted); }
.scale { width: 100%; border-collapse: collapse; }
.scale th, .scale td { text-align: left; padding: var(--space-4) 0; border-bottom: 1px solid var(--color-line); font-weight: var(--weight-regular); }
.scale thead th { color: var(--color-muted); border-bottom: 2px solid var(--color-ink); }
.scale td:last-child, .scale th:last-child { text-align: right; }
.scale tbody td { font-size: var(--text-lead); letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.scale tbody td:last-child { font-weight: var(--weight-bold); }
.terms__list { margin-top: var(--space-6); display: grid; gap: var(--space-4); }
.terms__list b { display: block; }
.terms__list span { color: var(--color-ink); }
.pack { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-7) var(--gutter); align-items: start; }
.pack__list { display: grid; gap: var(--space-2); counter-reset: pack; }
.pack__list li { background: var(--color-bg); padding: var(--space-5); display: grid; grid-template-columns: minmax(0, 14em) minmax(0, 1fr); gap: var(--space-2) var(--space-5); align-items: baseline; }
.sec:not(.sec--alt) .pack__list li { background: var(--color-surface); }
.pack__list b { font-size: var(--text-lead); line-height: 1.2; letter-spacing: -0.015em; }
.docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.doc { background: var(--color-surface); padding: var(--space-5) var(--space-5) var(--space-6); }
.doc b { font-size: var(--text-lead); letter-spacing: -0.015em; display: block; }
.doc p { color: var(--color-muted); margin-top: var(--space-2); max-width: 34em; }

/* ── Форма запроса прайса ───────────────────────────────── */
.ask { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-7) var(--gutter); align-items: start; }
.ask__side > * + * { margin-top: var(--space-5); }
.manager { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-4); align-items: center; margin-top: var(--space-6); }
.manager .plate { aspect-ratio: 1; padding: var(--space-2); }
.manager .plate span { display: none; }
.manager b { display: block; }
.manager span { color: var(--color-muted); font-size: var(--text-small); display: block; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--gutter); }
.form__full { grid-column: 1 / -1; }
.field { display: grid; gap: var(--space-2); align-content: start; }
.field label, .form legend { font-weight: var(--weight-medium); }
.field label i, .form legend i { font-style: normal; color: var(--color-muted); font-weight: var(--weight-regular); }
.input { width: 100%; min-height: 56px; padding: 0 var(--space-4); background: var(--color-bg); border: 1px solid var(--color-line-strong); border-radius: var(--radius-control); transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
textarea.input { padding-block: var(--space-3); min-height: 112px; resize: vertical; }
.input::placeholder { color: var(--color-muted); opacity: 1; }
.input:hover { border-color: var(--color-ink); }
.input:focus-visible { outline: none; border-color: var(--color-ink); box-shadow: 0 0 0 3px var(--color-ink); }
.field__hint { font-size: var(--text-small); color: var(--color-muted); }
.field__error { display: none; font-size: var(--text-small); color: var(--color-error); font-weight: var(--weight-medium); }
.field.is-error .input { border-color: var(--color-error); box-shadow: inset 0 0 0 1px var(--color-error); background: var(--color-error-bg); }
.field.is-error .field__error { display: block; }
.field.is-error .field__hint { display: none; }
.field.is-ok .input { border-color: var(--color-success); }
.checks { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.check { position: relative; display: inline-flex; }
.check input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.check .chip { background: var(--color-bg); box-shadow: inset 0 0 0 1px var(--color-line-strong); }
.check input:hover + .chip { box-shadow: inset 0 0 0 1px var(--color-ink); }
.check input:checked + .chip { background: var(--color-ink); color: var(--color-on-dark); box-shadow: none; }
.check input:checked + .chip::before { content: ""; width: 10px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(-45deg); }
.consent { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--space-3); align-items: start; font-size: var(--text-small); color: var(--color-muted); min-height: var(--tap-min); cursor: pointer; }
.consent input { appearance: none; width: 24px; height: 24px; margin: 0; border: 1px solid var(--color-line-strong); border-radius: var(--radius-control); background: var(--color-bg); cursor: pointer; display: grid; place-items: center; }
.consent input:checked { background: var(--color-ink); border-color: var(--color-ink); }
.consent input:checked::after { content: ""; width: 12px; height: 7px; border-left: 2px solid var(--color-bg); border-bottom: 2px solid var(--color-bg); transform: translateY(-2px) rotate(-45deg); }
.form__submit { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-5); align-items: center; }
.form__status { padding: var(--space-4) var(--space-5); font-weight: var(--weight-medium); }
.form__status--error { background: var(--color-error-bg); color: var(--color-error); }
.form__done { background: var(--color-success-bg); padding: clamp(24px, 4vw, 48px); }
.form__done h3 { color: var(--color-success); }
.form__done p { margin-top: var(--space-3); max-width: 38em; }
.form__done .btn { margin-top: var(--space-5); }

/* ── Подвал ─────────────────────────────────────────────── */
.footer { background: var(--color-ink); color: var(--color-on-dark); padding-top: clamp(48px, 7vw, 104px); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1.2fr; gap: var(--space-7) var(--gutter); }
.footer h2 { font-size: var(--text-small); font-weight: var(--weight-regular); color: var(--color-on-dark-muted); margin-bottom: var(--space-3); }
.footer li a, .footer__line a { display: inline-flex; align-items: center; min-height: 36px; }
.footer a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.footer__about p + p { margin-top: var(--space-3); }
.footer__muted { color: var(--color-on-dark-muted); }
.footer__im { display: flex; flex-wrap: wrap; gap: 0 var(--space-4); }
.footer__name { font-size: clamp(3rem, 13.2vw, 13rem); font-weight: var(--weight-bold); letter-spacing: -0.05em; line-height: 0.8; white-space: nowrap; margin-top: clamp(48px, 7vw, 104px); padding-bottom: 0.07em; overflow: hidden; }
.footer__name i { font-style: normal; color: var(--color-action); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-6); padding-block: var(--space-5); font-size: var(--text-small); color: var(--color-on-dark-muted); }
.footer__legal a { min-height: var(--tap-min); display: inline-flex; align-items: center; }

/* ── Нижняя панель телефона ─────────────────────────────── */
.tabbar { display: none; }
.sheet { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); z-index: var(--z-tabbar); background: var(--color-bg); box-shadow: var(--shadow-float); padding: var(--space-4) var(--page-margin) var(--space-4); display: grid; gap: var(--space-2); }
.sheet b { padding-bottom: var(--space-2); }
.sheet a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding-inline: var(--space-4); background: var(--color-surface); font-weight: var(--weight-medium); }

/* ── Появление ──────────────────────────────────────────── */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ── Планшет ────────────────────────────────────────────── */
@media (max-width: 1360px) {
  .header__in { gap: var(--space-4); }
  .nav { margin-left: var(--space-2); gap: 0; }
  .nav__link { font-size: var(--text-small); padding-inline: 7px; }
  .nav__link::after { left: 7px; right: 7px; }
  .header .btn { padding-inline: var(--space-4); font-size: var(--text-small); }
  .header__im { gap: var(--space-2); }
}
@media (max-width: 1180px) {
  .header__contact { display: none; }
}
@media (max-width: 1080px) {
  .tiles, .tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles > :first-child:nth-last-child(5) { grid-column: 1 / -1; }
  .brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .perks, .perks--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(2)::after { right: 0; }
  .facts, .who { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .positions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bcard--wide { grid-column: 1 / -1; }
  .faq, .ask, .terms, .pack { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── Телефон ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav, .header .btn { display: none; }
  .burger { display: inline-flex; margin-left: auto; }
  .header__in { min-height: var(--header-h-mobile); }
  html { scroll-padding-top: calc(var(--header-h-mobile) + 12px); }
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
  .tabbar { display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-tabbar); background: var(--color-bg); box-shadow: var(--shadow-bar); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .tabbar > * { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--tabbar-h); font-weight: var(--weight-medium); font-size: var(--text-small); line-height: 1.2; }
  .tabbar svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: square; }
  .tabbar > :active { background: var(--color-surface); }
  .tabbar .tabbar__main { background: var(--color-action); color: var(--color-on-action); }
  .tabbar .tabbar__main:active { background: var(--color-action-active); }
}
@media (min-width: 901px) { .drawer, .sheet { display: none !important; } }

@media (max-width: 760px) {
  .hero, .bhero__in { grid-template-columns: minmax(0, 1fr); }
  .hero__text, .bhero__text { padding-right: var(--page-margin); padding-top: var(--space-5); padding-bottom: var(--space-6); }
  .hero__stage, .hero--page .hero__stage { min-height: 84vw; }
  .bhero__stage { min-height: 88vw; }
  .hero__cta .btn, .bhero__cta .btn { flex: 1 1 100%; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--gutter); }
  .tiles, .tiles--4 { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 0; padding: var(--space-5) var(--space-4); }
  .tile__name { padding-top: var(--space-4); }
  .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand { min-height: 96px; padding: var(--space-3) var(--space-3) var(--space-3) calc(var(--space-3) + var(--brand-line-w)); }
  .brand__name { font-size: var(--text-body); hyphens: auto; }
  .perks, .perks--4 { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: var(--space-3); padding-top: var(--space-4); }
  .step::before { grid-row: 1 / 3; font-size: var(--text-title); }
  .step::after { right: 0; }
  .step b { margin: 0; }
  .band__in, .band--pic .band__in { grid-template-columns: minmax(0, 1fr); }
  .band .btn { width: 100%; }
  .band__dots { flex-wrap: wrap; }
  .band__pic { display: none; }
  .zones, .sets, .lines, .docs { grid-template-columns: minmax(0, 1fr); }
  .zone, .zone:nth-child(2), .zone:nth-child(3), .set { min-height: 0; padding: var(--space-5) var(--space-4); }
  .zone:nth-child(2) { padding-block: var(--space-6); }
  .zone:nth-child(3) { padding-block: var(--space-7); }
  .zones { align-items: stretch; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .faq__item summary { padding-inline: var(--space-4); }
  .faq__a { padding-inline: var(--space-4); }
  .facts { gap: var(--space-5) var(--gutter); }
  .positions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-2); }
  .pos__pic { padding: var(--space-3); }
  .pos b { font-size: var(--text-body); }
  .bcards { grid-template-columns: minmax(0, 1fr); }
  .bcard--wide { display: flex; }
  .bcard--wide .bcard__pic { aspect-ratio: 16 / 10; min-height: 0; }
  .matrix__hint { display: block; }
  .who { grid-template-columns: minmax(0, 1fr); }
  .who li { min-height: 0; padding: var(--space-4); }
  .pack__list li { grid-template-columns: minmax(0, 1fr); padding: var(--space-4); }
  .form { grid-template-columns: minmax(0, 1fr); }
  .form__submit .btn { width: 100%; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .footer li a, .footer__line a { min-height: var(--tap-min); }
  .mega__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ── Служебное: только для макетов, в шаблоны не переносить ─ */
.mock-bar { background: #FFF6B8; color: var(--color-ink); font-size: var(--text-small); padding: var(--space-2) var(--page-margin); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: center; }
.mock-bar button { min-height: var(--tap-min); padding: 0 var(--space-3); background: var(--color-bg); display: inline-flex; align-items: center; gap: var(--space-2); }
.mock-bar button[aria-pressed="true"] { background: var(--color-ink); color: var(--color-bg); }
.mock-bar button u { width: 14px; height: 14px; display: inline-block; background: var(--c); box-shadow: 0 0 0 1px rgba(0,0,0,.25); }

/* Главная к показу 20.11: первый экран (три варианта), полоса логотипов,
   направления с картинками, значки, схема доставки, «О компании», форма.
   Подключается после site.css только на glavnaya-*.html. */

/* ── Первый экран: общее ────────────────────────────────── */
.hx { position: relative; max-width: var(--page-max); margin-inline: auto; }
.h-title { max-width: 11em; }
.hx__text { padding: clamp(28px, 4.6vw, 72px) var(--gutter) clamp(28px, 3.4vw, 56px) var(--page-margin); display: flex; flex-direction: column; justify-content: center; }
.hx--a, .hx--b { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(520px, calc(100svh - var(--header-h) - 168px), 680px); }

/* сцена: флаконы стоят на одной полке, свет сверху */
.scene { position: relative; overflow: hidden; min-height: 440px; isolation: isolate; }
.scene__shelf { position: absolute; left: 0; right: 0; top: 0; bottom: 17%; }
.scene__b { position: absolute; bottom: 0; left: calc(var(--x) * 1%); z-index: var(--z); height: calc(var(--h) * 100%); transform-origin: 50% 100%; }
.scene__b img, .longshelf img { position: relative; z-index: 1; height: 100%; width: auto; max-width: none; }
/* тень флакона на полке: своя, одна на все фото */
.scene__b::after, .longshelf li::after { content: ""; position: absolute; left: -14%; right: -14%; bottom: -3.2%; height: 7%; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(17, 17, 17, 0.34), rgba(17, 17, 17, 0.12) 45%, rgba(17, 17, 17, 0) 72%); }
.longshelf li { position: relative; }
.scene--dark .scene__b::after { background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 70%); }
.scene__cap { position: absolute; left: var(--space-5); bottom: var(--space-4); z-index: 6; font-size: var(--text-small); color: var(--color-muted); }

.scene--light {
  background:
    radial-gradient(ellipse 46% 64% at 52% -6%, var(--color-bg) 0%, rgba(255, 255, 255, 0.85) 30%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface) 46%, var(--color-surface) 83%, var(--color-surface-2) 83%, var(--color-surface) 100%);
}
/* световое пятно на полке под центральным флаконом */
.scene--light::after { content: ""; position: absolute; left: 22%; right: 18%; bottom: 9%; height: 16%; z-index: -1; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 70%); }

.scene--dark {
  background:
    radial-gradient(ellipse 34% 58% at 46% 4%, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.06) 45%, rgba(255, 255, 255, 0) 75%),
    linear-gradient(180deg, #161616 0%, var(--color-ink) 83%, var(--color-ink-2) 83%, #141414 100%);
}
.scene--dark::after { content: ""; position: absolute; left: 14%; right: 18%; bottom: 8%; height: 18%; z-index: -1; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 70%); }
.scene--dark .scene__cap { color: var(--color-on-dark-muted); }
/* на тёмном поле нарисованная тень флакона не видна — даём отражение света */
.scene--dark .scene__b img { filter: drop-shadow(0 0 28px rgba(255, 255, 255, 0.07)); }

/* появление флаконов: по одному, снизу вверх */
@keyframes rise { from { opacity: 0; transform: translateY(28px) scale(0.98); } to { opacity: 1; transform: none; } }
.js .scene__b, .js .longshelf li { animation: rise 1.1s var(--ease) both; animation-delay: calc(var(--k, 0) * 110ms + 250ms); }

/* цифры крупно */
.facts-big { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5) var(--gutter); padding-block: clamp(28px, 3.2vw, 48px); }
.facts-big dd { margin: 0; }
.facts-big b { display: block; font-size: clamp(2.25rem, 1.2rem + 3.4vw, 4.5rem); line-height: 0.95; letter-spacing: -0.045em; font-weight: var(--weight-bold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.facts-big span { display: block; margin-top: var(--space-2); color: var(--color-muted); }

/* B: на тёмной сцене */
.hx--b .hx__text { padding-right: clamp(24px, 4vw, 64px); }

/* C: заголовок во всю ширину и длинная полка */
.hx--c .hx__top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-6) var(--gutter); align-items: end; padding-top: clamp(28px, 4vw, 64px); padding-bottom: clamp(24px, 3vw, 44px); }
.hx--c .h-title { font-size: clamp(2.5rem, 0.6rem + 6.4vw, 7rem); max-width: 9.5em; }
.hx--c .hero__sub { margin-top: 0; }
.longshelf {
  position: relative; height: clamp(240px, 25vw, 400px); overflow: hidden;
  background:
    radial-gradient(ellipse 40% 90% at 50% -10%, var(--color-bg) 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface) 50%, var(--color-surface) 84%, var(--color-surface-2) 84%, var(--color-surface) 100%);
}
.longshelf ul { position: absolute; left: 0; right: 0; top: 0; bottom: 14%; display: flex; justify-content: center; align-items: flex-end; gap: clamp(4px, 1.6vw, 28px); padding-inline: var(--page-margin); }
.longshelf li { height: calc(var(--h) * 100%); flex: none; }
.facts-big--c { padding-top: clamp(28px, 3vw, 44px); }

/* ── Полоса логотипов ───────────────────────────────────── */
.logos { padding-block: clamp(24px, 3vw, 40px) clamp(32px, 4vw, 56px); background: var(--color-bg); }
.logos__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-2) var(--space-5); margin-bottom: var(--space-4); color: var(--color-muted); }
.logos__head b { color: var(--color-ink); }
.logos__track { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.logos__row { display: flex; flex: none; animation: marquee 70s linear infinite; }
.logos__track:hover .logos__row, .logos__track:focus-within .logos__row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.lg { display: inline-flex; align-items: center; justify-content: center; height: 88px; padding-inline: clamp(20px, 2.4vw, 40px); flex: none; position: relative; }
.lg img { max-height: 44px; max-width: 150px; width: auto; filter: grayscale(1); opacity: 0.72; transition: filter var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.lg:hover img, .lg:focus-visible img { filter: none; opacity: 1; }
.lg__word { font-size: var(--text-lead); font-weight: var(--weight-bold); letter-spacing: -0.025em; color: var(--color-line-strong); white-space: nowrap; transition: color var(--dur) var(--ease); }
.lg::after { content: ""; position: absolute; left: 50%; bottom: 18px; width: 0; height: 3px; background: var(--brand-c); transform: translateX(-50%); transition: width var(--dur) var(--ease); }
.lg:hover .lg__word, .lg:focus-visible .lg__word { color: var(--color-ink); }
.lg:hover::after, .lg:focus-visible::after { width: 32px; }

/* ── Направления ────────────────────────────────────────── */
.dts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-2); }
.dt { position: relative; display: flex; flex-direction: column; background: var(--color-bg); overflow: hidden; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.dt__pic { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--color-surface-2); }
.dt__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; transition: transform 900ms var(--ease); }
.dt:hover .dt__pic img, .dt:focus-visible .dt__pic img { transform: scale(1.05); }
.dt__body { display: flex; flex-direction: column; flex: 1; padding: var(--space-5); position: relative; min-height: 200px; }
.dt:not(.dt--pic) .dt__body { min-height: clamp(260px, 26vw, 360px); }
.dt__count { font-size: var(--text-title); font-weight: var(--weight-bold); line-height: 1; letter-spacing: var(--tracking-title); }
.dt__count small { font-size: var(--text-body); font-weight: var(--weight-regular); letter-spacing: 0; }
.dt__name { margin-top: auto; padding-top: var(--space-5); font-size: var(--text-lead); line-height: 1.15; font-weight: var(--weight-medium); letter-spacing: -0.015em; }
.dt__list { margin-top: var(--space-2); font-size: var(--text-small); color: var(--color-muted); transition: color var(--dur) var(--ease); }
.dt__go { position: absolute; right: var(--space-5); top: var(--space-5); font-size: var(--text-h3); line-height: 1; transition: transform var(--dur) var(--ease); }
.dt:hover, .dt:focus-visible { background: var(--color-ink); color: var(--color-on-dark); }
.dt:hover .dt__list, .dt:focus-visible .dt__list { color: var(--color-on-dark-muted); }
.dt:hover .dt__go { transform: translateX(4px); }
.dt:focus-visible { outline-offset: 3px; }

/* ── 23 марки: логотипы ─────────────────────────────────── */
.brands--logo .brand { min-height: clamp(120px, 11vw, 156px); justify-content: space-between; }
.bl__logo { display: flex; align-items: center; height: 52px; }
.bl__logo img { max-height: 44px; max-width: 64%; width: auto; transition: filter var(--dur) var(--ease); }
.brand:hover .bl__logo img, .brand:focus-visible .bl__logo img { filter: grayscale(1) invert(1); }
.bl__word { font-size: var(--text-lead); font-weight: var(--weight-bold); letter-spacing: -0.02em; line-height: 1.1; }

/* ── Условия: значки ────────────────────────────────────── */
.pks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.pk { background: var(--color-bg); padding: var(--space-6) var(--space-5); display: flex; flex-direction: column; }
.pk__ic { width: 64px; height: 64px; display: grid; place-items: center; background: var(--color-surface); transition: background-color var(--dur) var(--ease); }
.pk__ic svg { width: 34px; height: 34px; fill: none; stroke: var(--color-ink); stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; transition: stroke var(--dur) var(--ease); }
.pk:hover .pk__ic { background: var(--color-ink); }
.pk:hover .pk__ic svg { stroke: var(--color-on-dark); }
.pk b { display: block; margin-top: var(--space-6); font-size: var(--text-lead); line-height: 1.2; letter-spacing: -0.015em; }
.pk span { display: block; margin-top: var(--space-2); color: var(--color-muted); }

/* ── Доставка: схема ────────────────────────────────────── */
.dl { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-7) var(--gutter); align-items: center; }
.map { display: block; width: 100%; height: auto; font-family: var(--font); }
.map--m { display: none; }
.m-bg { fill: var(--color-bg); }
.m-r3 { fill: var(--color-surface); }
.m-r2 { fill: var(--color-surface-2); }
.m-r1 { fill: var(--color-ink); }
.m-city { fill: var(--color-ink); }
.m-t { font-size: var(--fs); fill: var(--color-ink-soft); }
.m-t--b { font-weight: var(--weight-bold); fill: var(--color-ink); }
.m-t--inv { fill: var(--color-bg); }
.m-city--inv { fill: var(--color-bg); }
.m-t--home { font-weight: var(--weight-bold); fill: var(--color-bg); }
.m-home { fill: var(--color-ink); }
.m-pulse { fill: var(--color-ink); opacity: 0.35; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.5; } 100% { transform: scale(2.4); opacity: 0; } }
.m-arrow { fill: none; stroke: var(--color-ink); stroke-width: 2.5; }
.dl__zones { display: grid; gap: var(--space-2); }
.dl__zones li { background: var(--color-bg); padding: var(--space-5); display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: var(--space-4); }
.dl__zones b { font-size: var(--text-lead); line-height: 1.2; letter-spacing: -0.015em; }
.dl__zones span:last-child { grid-column: 2; margin-top: var(--space-2); color: var(--color-muted); }
.dl__dot { width: 20px; height: 20px; margin-top: 3px; grid-row: 1 / 3; }
.dl__dot--1 { background: var(--color-ink); }
.dl__dot--2 { background: var(--color-surface-2); box-shadow: inset 0 0 0 1px var(--color-line-mid); }
.dl__dot--3 { background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-line-mid); }

/* ── О компании ─────────────────────────────────────────── */
.ab { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-7) var(--gutter); align-items: center; }
.ab__text > * + * { margin-top: var(--space-5); }
.ab__facts { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); gap: var(--space-5); justify-content: start; }
.ab__facts dt { color: var(--color-muted); font-size: var(--text-small); }
.ab__facts dd { margin: var(--space-1) 0 0; font-size: var(--text-lead); font-weight: var(--weight-bold); letter-spacing: -0.015em; }
.ab__pic { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-surface); position: relative; }
.ab__pic img { width: 100%; height: 100%; object-fit: cover; }
.ab__pic--still { background: radial-gradient(ellipse 50% 70% at 45% 0%, var(--color-bg), rgba(255, 255, 255, 0) 70%), linear-gradient(180deg, var(--color-surface), var(--color-surface) 82%, var(--color-surface-2) 82%); }
.ab__pic--still .scene__b { bottom: 14%; height: calc(var(--h) * 86%); }

/* ── Форма ──────────────────────────────────────────────── */
.ask__when { color: var(--color-ink); }
/* фон блока формы: товар справа, форма на белой карточке слева */
.sec--askpic { position: relative; overflow: hidden; background: var(--color-surface); }
.ask__bg { position: absolute; inset: 0; }
.ask__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.sec--askpic .wrap { position: relative; }
.sec--askpic .ask { display: block; background: var(--color-bg); padding: clamp(24px, 3.4vw, 56px); max-width: 820px; }
.sec--askpic .ask__side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3) var(--space-6); align-items: end; margin-bottom: var(--space-6); }
.sec--askpic .ask__side > * + * { margin-top: 0; }
.sec--askpic .ask__side h2 { grid-column: 1 / -1; }

/* склад: широкая картинка под шагами */
.wide { margin: clamp(40px, 5vw, 72px) 0 0; position: relative; }
.wide img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.wide figcaption { margin-top: var(--space-3); color: var(--color-muted); max-width: 60ch; }

/* ── Планшет ────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .dts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl, .ab { grid-template-columns: minmax(0, 1fr); }
}

/* ── Телефон ────────────────────────────────────────────── */
@media (max-width: 760px) {
  /* телефон: товар сразу под заголовком, как на схеме ТЗ */
  .hx--a, .hx--b { display: flex; flex-direction: column; min-height: 0; }
  .hx--a .hx__text, .hx--b .hx__text { display: contents; }
  .hx--a .hero__kicker, .hx--b .hero__kicker { order: 1; padding: var(--space-5) var(--page-margin) 0; margin-bottom: var(--space-3); }
  .hx--a .h-title, .hx--b .h-title { order: 2; padding-inline: var(--page-margin); }
  .hx--a .scene, .hx--b .scene { order: 3; margin-top: var(--space-5); }
  .hx--a .hero__sub, .hx--b .hero__sub { order: 4; padding-inline: var(--page-margin); margin-top: var(--space-5); }
  .hx--a .hero__cta, .hx--b .hero__cta { order: 5; padding-inline: var(--page-margin); margin-top: var(--space-5); }
  .hx__text { padding: var(--space-5) var(--page-margin) var(--space-6); }
  .sec--askpic { background: var(--color-surface); padding-top: 0; }
  .ask__bg { position: relative; inset: auto; height: 56vw; margin-bottom: var(--space-5); }
  .sec--askpic .ask { padding: 0; background: transparent; }
  .sec--askpic .ask__side { grid-template-columns: minmax(0, 1fr); }
  .wide img { aspect-ratio: 4 / 3; }
  .hero__cta .btn { flex: 1 1 100%; }
  .scene { min-height: 0; height: 72vw; }
  .scene__cap { display: none; }
  .scene__cap { left: var(--page-margin); }
  .facts-big { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--gutter); }
  .hx--c { display: flex; flex-direction: column; }
  .hx--c .hx__top { display: contents; }
  .hx--c .hx__top > :first-child { order: 1; padding: var(--space-5) var(--page-margin) var(--space-5); }
  .hx--c .longshelf { order: 2; }
  .hx--c .hx__side { order: 3; padding: var(--space-5) var(--page-margin) 0; }
  .hx--c .hx__side .hero__cta { margin-top: var(--space-5); }
  .hx--c > .wrap { order: 4; }
  .hx--c .h-title { font-size: clamp(2.5rem, 11vw, 3.25rem); }
  .longshelf { height: 64vw; }
  .longshelf ul { justify-content: flex-start; padding-inline: 0; gap: 2vw; transform: translateX(-30%); width: 160%; }
  .lg { height: 72px; }
  .lg__word { font-size: var(--text-body); }
  .dts { grid-template-columns: minmax(0, 1fr); }
  .dt--pic { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
  .dt--pic .dt__pic { aspect-ratio: auto; height: 100%; }
  .dt__body, .dt:not(.dt--pic) .dt__body { min-height: 0; padding: var(--space-4); }
  .dt__go { right: var(--space-4); top: var(--space-4); }
  .pks { grid-template-columns: minmax(0, 1fr); }
  .pk { min-height: 0; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: var(--space-4); padding: var(--space-4); }
  .pk__ic { width: 56px; height: 56px; grid-row: 1 / 3; margin: 0; }
  .pk b { margin-top: 0; }
  .map { display: none; }
  .map--m { display: block; }
  .ab__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .logos__row, .m-pulse { animation: none; }
  .logos__track { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .logos__row[aria-hidden] { display: none; }
  .js .scene__b, .js .longshelf li { animation: none; }
}

/* светлые сцены: белый фон фото растворяется в поле, стекло становится прозрачным */
.scene--light .scene__b, .longshelf li, .ab__pic--still .scene__b { mix-blend-mode: multiply; }

/* Общее для glavnaya-v1 и v2 (25.11): движение, лента, шаги, фото. */

/* появление: плавнее и дальше, чем на старых страницах */
.js .rv { transform: translateY(36px); transition-duration: 900ms; }

/* шапка: тонкая линия появляется после прокрутки (site.js ставит is-stuck) */
.home .header { transition: box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease); }

/* лента логотипов: вторая строка едет навстречу */
.logos__h { font-size: var(--text-body); font-weight: var(--weight-regular); color: var(--color-muted); letter-spacing: 0; }
.logos__h b { color: var(--color-ink); }
.logos__track + .logos__track { margin-top: var(--space-2); }
.logos__track--rev .logos__row { animation-direction: reverse; animation-duration: 90s; }

/* шаги: линия заполняется при прокрутке (motion.js ставит --p от 0 до 1) */
.steps[data-progress] { position: relative; }
.steps[data-progress]::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: calc(var(--p, 0) * 100%); background: var(--color-ink); z-index: 1; transition: width 120ms linear; }
.steps[data-progress] .step:first-child::after { background: var(--color-surface-2); }

/* фото склада: медленное приближение при прокрутке */
.wide--zoom .wide__img { overflow: hidden; }
.wide--zoom img { transform: scale(calc(1.12 - var(--p, 0) * 0.12)); transform-origin: 50% 60%; will-change: transform; }

/* лид-магнит с флаконом */
.band--pic2 .band__in { grid-template-columns: minmax(0, 1fr) auto auto; }
.band__bottle { width: clamp(80px, 9vw, 130px); align-self: end; margin-bottom: calc(clamp(40px, 6vw, 88px) * -1); }
.band__bottle img { width: 100%; height: auto; filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.12)); }

/* схема доставки: кольца проявляются по очереди */
.js .map .m-r3, .js .map .m-r2, .js .map .m-r1 { transform-box: fill-box; transform-origin: center; transform: scale(0.6); opacity: 0; transition: transform 1.1s var(--ease), opacity 1.1s var(--ease); }
.js .map .m-r2 { transition-delay: 150ms; }
.js .map .m-r1 { transition-delay: 300ms; }
.js .map.is-in .m-r3, .js .map.is-in .m-r2, .js .map.is-in .m-r1 { transform: none; opacity: 1; }

/* фото «О компании»: лёгкий сдвиг при прокрутке */
[data-par] { will-change: transform; }

/* вопросы: плавное раскрытие */
.faq__a { animation: faqin 380ms var(--ease); }
@keyframes faqin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* цифры не прыгают при отсчёте */
[data-count] { font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .band--pic2 .band__in { grid-template-columns: minmax(0, 1fr); }
  .band__bottle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js .rv { transform: none; }
  .steps[data-progress]::before { width: 100%; transition: none; }
  .wide--zoom img, [data-par] { transform: none !important; }
  .js .map .m-r3, .js .map .m-r2, .js .map .m-r1 { transform: none; opacity: 1; transition: none; }
  .faq__a { animation: none; }
}

/* v1 «Сцена и лента»: заголовок во всю ширину, полка флаконов слоями,
   направления списком с меняющейся картинкой (Aesop), условия строками. */

/* ── Первый экран ── */
.v1h { padding-top: clamp(16px, 2vw, 32px); }
.v1h__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.v1h__kicker { grid-column: 1 / -1; color: var(--color-muted); margin-bottom: var(--space-4); }
.v1h__title { grid-column: 1 / -1; font-size: clamp(3rem, 1rem + 7vw, 9rem); line-height: 0.9; letter-spacing: -0.055em; font-weight: 800; }
.v1h__title .ln { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.v1h__title .ln > span { display: inline-block; }
.js .v1h__title .ln > span { animation: lnup 1.1s var(--ease) both; }
.js .v1h__title .ln:nth-child(2) > span { animation-delay: 120ms; }
.js .v1h__title .ln:nth-child(3) > span { animation-delay: 240ms; }
@keyframes lnup { from { transform: translateY(105%); } to { transform: none; } }
.v1h__side { grid-column: 6 / -1; margin-top: clamp(-7.6rem, -6.6vw, -3rem); padding-bottom: clamp(24px, 3vw, 48px); }
.v1h__lead { font-size: var(--text-body); line-height: 1.5; max-width: 36em; }
.v1h__side .hero__cta { margin-top: var(--space-5); }

.v1shelf {
  position: relative; height: clamp(280px, 30vw, 440px); overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse 42% 90% at 50% -12%, var(--color-bg) 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface) 50%, var(--color-surface) 85%, var(--color-surface-2) 85%, var(--color-surface) 100%);
}
.v1shelf ul { position: absolute; left: 0; right: 0; top: 0; bottom: 13%; display: flex; justify-content: center; align-items: flex-end; gap: clamp(6px, 1.8vw, 32px); padding-inline: var(--page-margin); }
.v1shelf li { position: relative; height: calc(var(--h) * 100%); flex: none; mix-blend-mode: multiply; }
.v1shelf li img { height: 100%; width: auto; max-width: none; }
.v1shelf li::after { content: ""; position: absolute; left: -14%; right: -14%; bottom: -3%; height: 7%; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(17, 17, 17, 0.34), rgba(17, 17, 17, 0) 72%); }
.js .v1shelf li img { animation: rise 1.2s var(--ease) both; animation-delay: calc(var(--k) * 90ms + 400ms); }

.v1figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5) var(--gutter); padding-block: clamp(32px, 4vw, 64px) clamp(16px, 2vw, 24px); }
.v1figs dd { margin: 0; }
.v1figs b { display: block; font-size: var(--text-figure); line-height: 0.95; letter-spacing: -0.05em; font-weight: 800; white-space: nowrap; }
.v1figs span:not([data-count]) { display: block; margin-top: var(--space-2); color: var(--color-muted); }

/* ── Направления: список и картинка ── */
.dirs1 { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-7) var(--gutter); align-items: start; }
.dirs1__list li + li { margin-top: var(--space-1); }
.dl1 { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-5); align-items: baseline; padding: var(--space-4) var(--space-5); background: var(--color-surface); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.dl1__n { font-size: var(--text-title); font-weight: var(--weight-bold); letter-spacing: -0.035em; line-height: 1.05; transition: transform var(--dur) var(--ease); }
.dl1__c { color: var(--color-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dl1__s { grid-column: 1 / -1; margin-top: var(--space-1); color: var(--color-muted); font-size: var(--text-small); }
.dl1__m { display: none; }
.dl1:hover, .dl1:focus-visible { background: var(--color-ink); color: var(--color-on-dark); }
.dl1:hover .dl1__n, .dl1:focus-visible .dl1__n { transform: translateX(10px); }
.dl1:hover .dl1__c, .dl1:hover .dl1__s, .dl1:focus-visible .dl1__c, .dl1:focus-visible .dl1__s { color: var(--color-on-dark-muted); }
.dirs1__pics { position: sticky; top: calc(var(--header-h) + 24px); aspect-ratio: 4 / 5; overflow: hidden; background: var(--color-surface-2); }
.dl1p { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.06); transition: opacity 700ms var(--ease), transform 1400ms var(--ease); }
.dl1p.is-on { opacity: 1; transform: none; }
.dl1p img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }

/* ── Условия строками ── */
.prs { display: grid; gap: var(--space-1); }
.pr { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr); gap: var(--space-2) var(--gutter); align-items: baseline; background: var(--color-bg); padding: var(--space-5) var(--space-6); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.pr__big { font-size: var(--text-figure); font-weight: 800; letter-spacing: -0.045em; line-height: 1; white-space: nowrap; }
.pr__t { font-size: var(--text-lead); font-weight: var(--weight-bold); letter-spacing: -0.015em; }
.pr__s { color: var(--color-muted); }
.pr:hover { background: var(--color-ink); color: var(--color-on-dark); }
.pr:hover .pr__s { color: var(--color-on-dark-muted); }

@media (max-width: 1080px) {
  .dirs1 { grid-template-columns: minmax(0, 1fr); }
  .dirs1__pics { display: none; }
  .dl1 { grid-template-columns: 96px minmax(0, 1fr) auto; }
  .dl1__m { display: block; grid-row: 1 / 3; width: 96px; height: 96px; overflow: hidden; }
  .dl1__m img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
  .dl1__s { grid-column: 2 / -1; }
}
@media (max-width: 760px) {
  .v1h__title { font-size: clamp(2.5rem, 11.6vw, 3.5rem); }
  .v1h { display: flex; flex-direction: column; }
  .v1h__top { display: contents; }
  .v1h__kicker { order: 1; padding-inline: var(--page-margin); margin-bottom: var(--space-3); }
  .v1h__title { order: 2; padding-inline: var(--page-margin); }
  .v1shelf { order: 3; height: 58vw; margin-top: var(--space-5); }
  .v1h__side { order: 4; margin-top: var(--space-5); padding-inline: var(--page-margin); padding-bottom: 0; }
  .v1h > .wrap { order: 5; }
  .v1shelf ul { justify-content: flex-start; gap: 2vw; width: 170%; transform: translateX(-28%); padding-inline: 0; }
  .v1figs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--gutter); }
  .dl1 { grid-template-columns: 72px minmax(0, 1fr); padding: var(--space-3); column-gap: var(--space-4); }
  .dl1__m { width: 72px; height: 72px; }
  .dl1__c { grid-column: 2; }
  .dl1__s { display: none; }
  .pr { grid-template-columns: minmax(0, 1fr); padding: var(--space-4); }
}
@media (prefers-reduced-motion: reduce) {
  .js .v1h__title .ln > span, .js .v1shelf li img { animation: none; }
  .dl1p { transition: none; }
}

/* Правки Кирилла 25.11 — общие блоки glavnaya-v1 и v2.
   Подключается последним. Бежевый --beige — подложка под товар (по образцу плитки Flavio Neri). */
/* --beige и --beige-2 перенесены в tokens.css (27.11) */

/* значки-линии */
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; stroke-linejoin: miter; }
.chip--ic { gap: var(--space-2); }

/* ── Первый экран: три условия над заголовком ── */
.v1h__kicker, .v2h__kicker { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); grid-column: 1 / -1; }
.v1h__kicker li, .v2h__kicker li { display: inline-flex; align-items: center; min-height: 34px; padding: 0 var(--space-3); background: var(--color-surface); font-size: var(--text-small); font-weight: var(--weight-medium); white-space: nowrap; }
.v1h__kicker li:last-child, .v2h__kicker li:last-child { background: var(--color-ink); color: var(--color-on-dark); }

/* ── v1: раскладка товаров ── */
.fl { position: relative; overflow: hidden; background: var(--color-surface); padding-block: clamp(10px, 1.4vw, 20px); display: grid; gap: clamp(10px, 1.4vw, 20px); isolation: isolate; }
.fl::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--color-surface) 0, rgba(244, 243, 241, 0) 7%, rgba(244, 243, 241, 0) 93%, var(--color-surface) 100%); z-index: 2; }
.fl__row { display: flex; width: max-content; animation: flrun 80s linear infinite; }
.fl__row--rev { animation-direction: reverse; animation-duration: 96s; }
.fl:hover .fl__row { animation-play-state: paused; }
@keyframes flrun { to { transform: translateX(-50%); } }
.fl__row ul { display: flex; flex: none; align-items: center; gap: clamp(18px, 2.6vw, 44px); padding-right: clamp(18px, 2.6vw, 44px); }
.fl__row li { flex: none; width: clamp(110px, 12.5vw, 190px); height: clamp(110px, 12.5vw, 190px); display: grid; place-items: center; }
.fl__row img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; rotate: var(--r, 0deg); filter: drop-shadow(0 10px 12px rgba(17, 17, 17, 0.14)); transition: scale var(--dur) var(--ease); }
.fl__row li:hover img { scale: 1.08; }

/* ── v1: направления ── */
.dirs1 { align-items: stretch; }
.dirs1__list { display: grid; gap: var(--space-1); grid-auto-rows: 1fr; }
.dirs1__list li + li { margin-top: 0; }
.dirs1__list li { display: flex; }
.dl1 { flex: 1; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; }
.dl1__ic { width: 40px; height: 40px; grid-row: 1 / 3; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.dl1__s { grid-column: 2 / -1; }
.dirs1__pics { position: relative; top: auto; aspect-ratio: auto; min-height: 420px; }
.dl1p figcaption { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, 0.94); padding: var(--space-4) var(--space-5); display: grid; gap: var(--space-1); transform: translateY(12px); opacity: 0; transition: transform 500ms var(--ease) 150ms, opacity 500ms var(--ease) 150ms; }
.dl1p.is-on figcaption { transform: none; opacity: 1; }
.dl1p figcaption b { font-size: var(--text-lead); letter-spacing: -0.015em; line-height: 1.2; }
.dl1p figcaption span { color: var(--color-ink); font-size: var(--text-body); line-height: 1.45; }

/* ── v2: направления ── */
.dc__pic { position: relative; }
.dc__over { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, 0.95); color: var(--color-ink); padding: var(--space-4); font-size: var(--text-small); line-height: 1.45; display: grid; gap: var(--space-1); transform: translateY(101%); transition: transform 450ms var(--ease); }
.dc__over b { font-size: var(--text-body); }
.dc a:hover .dc__over, .dc a:focus-visible .dc__over { transform: none; }
.dc__body { position: relative; }
.dc__ic { position: absolute; right: var(--space-5); top: var(--space-5); width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }

/* ── 23 марки ── */
.brands--logo .brand { overflow: hidden; }
.bl__top { display: flex; align-items: center; gap: var(--space-3); }
.bl__tag { font-weight: var(--weight-bold); font-size: var(--text-lead); letter-spacing: -0.02em; white-space: nowrap; }
.bl__over { position: absolute; inset: 0; background: var(--beige); color: var(--color-ink); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-4) var(--space-3) calc(var(--space-4) + var(--brand-line-w)); opacity: 0; transform: translateY(8px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.brand:hover .bl__over, .brand:focus-visible .bl__over { opacity: 1; transform: none; }
.brands--logo .brand:hover, .brands--logo .brand:focus-visible { background: var(--color-surface); color: var(--color-ink); }
.brands--logo .brand:hover .bl__logo img, .brands--logo .brand:focus-visible .bl__logo img { filter: none; }
.bl__shots { display: flex; align-items: flex-end; justify-content: center; gap: 6%; height: 100%; min-height: 0; }
.bl__shots img { max-height: 100%; max-width: 30%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(17, 17, 17, 0.18)); transform: translateY(14px); transition: transform 500ms var(--ease); }
.bl__shots img:nth-child(2) { transition-delay: 60ms; }
.bl__shots img:nth-child(3) { transition-delay: 120ms; }
.brand:hover .bl__shots img, .brand:focus-visible .bl__shots img { transform: none; }
.bl__shots--0 { display: none; }
.bl__over:has(.bl__shots--0) { grid-template-columns: minmax(0, 1fr); }
.bl__shots--1 img, .bl__shots--2 img { max-width: 44%; }
.bl__txt { display: grid; gap: 2px; font-size: var(--text-small); line-height: 1.35; }
.bl__txt b { font-size: var(--text-body); letter-spacing: -0.01em; }
.bl__txt i { font-style: normal; font-weight: var(--weight-medium); margin-top: var(--space-1); }

/* ── Условия: товар фоном за серым фильтром ── */
.sec--patt { position: relative; overflow: hidden; isolation: isolate; }
.patt { position: absolute; inset: 0; z-index: -1; display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(16px, 3vw, 48px); padding: clamp(16px, 3vw, 48px); align-content: space-around; opacity: 0.2; filter: grayscale(1) contrast(0.9); }
.patt span { display: grid; place-items: center; aspect-ratio: 1; }
.patt img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; rotate: var(--r, 0deg); }
.patt::after { content: ""; position: absolute; inset: 0; background: rgba(244, 243, 241, 0.55); }
.pr { grid-template-columns: minmax(0, 3.2fr) minmax(0, 3fr) minmax(0, 5.8fr); align-items: center; }
.pr__s { color: var(--color-ink); line-height: 1.45; }
.pb span:last-child { line-height: 1.45; }

/* ── Шаги ── */
.steps2 { position: relative; }
.track { position: relative; height: 4px; background: var(--color-surface-2); margin: 56px 0 var(--space-6); }
.track__fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); background: var(--color-ink); }
.run { position: absolute; top: 50%; left: clamp(28px, calc(var(--p, 0) * 100%), calc(100% - 28px)); width: 56px; height: 56px; margin: -28px 0 0 -28px; background: var(--color-ink); color: var(--color-on-dark); display: grid; place-items: center; transition: background-color var(--dur) var(--ease); }
.steps2.is-done .run { background: var(--color-ink); }
.run__ic { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(0.3) rotate(-30deg); transition: opacity 320ms var(--ease), transform 420ms var(--ease); }
.run__ic.is-on { opacity: 1; transform: none; }
.run__ic svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; }
/* в конце из коробки «выходит» товар */
.run__out { position: absolute; right: 0; bottom: 100%; width: 150px; height: 70px; display: flex; align-items: flex-end; justify-content: flex-end; gap: 8px; pointer-events: none; }
.run__out img { height: 0; width: auto; opacity: 0; transition: height 520ms var(--ease), opacity 320ms var(--ease); }
.run__out img:nth-child(2) { transition-delay: 90ms; }
.run__out img:nth-child(3) { transition-delay: 180ms; }
.steps2.is-done .run__out img { height: 52px; opacity: 1; }
.steps2.is-done .run__out img:nth-child(2) { height: 66px; }
.sts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); }
.st { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-4); align-items: start; padding: var(--space-5); transition: background-color 400ms var(--ease); }
.st.is-on { background: var(--color-surface); }
.st__n { font-size: clamp(4rem, 2rem + 6vw, 8.5rem); font-weight: 800; line-height: 0.82; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; color: var(--color-surface-2); transition: color 400ms var(--ease); }
.st.is-on .st__n, .st.is-past .st__n { color: var(--color-ink); }
.st b { display: block; font-size: var(--text-lead); letter-spacing: -0.02em; line-height: 1.15; font-size: var(--text-h3); }
.st p { margin-top: var(--space-2); line-height: 1.45; }

/* ── Склад: три фото ── */
.wh { position: relative; margin: clamp(40px, 5vw, 72px) 0 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: 1fr 1fr; gap: var(--space-2); }
.wh > div { overflow: hidden; background: var(--color-surface-2); }
.wh img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.wh > div:hover img { transform: scale(1.04); }
.wh__a { grid-row: 1 / 3; aspect-ratio: 5 / 6.2; }
.wh__cap { position: absolute; left: var(--space-4); bottom: var(--space-4); width: min(420px, 38%); background: rgba(244, 243, 241, 0.96); padding: var(--space-4) var(--space-5); font-size: var(--text-body); line-height: 1.45; }
.wh__cap b { display: block; font-size: var(--text-lead); letter-spacing: -0.015em; margin-bottom: var(--space-2); }

/* ── Подбор марок ── */
.quiz { padding-block: clamp(48px, 6vw, 96px); }
.quiz__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-6) var(--space-8); align-items: end; }
.quiz__pics { display: flex; align-items: flex-end; gap: clamp(8px, 1.2vw, 18px); height: clamp(110px, 12vw, 170px); }
.quiz__pics img { height: 100%; width: auto; max-width: 110px; object-fit: contain; filter: drop-shadow(0 0 26px rgba(255, 255, 255, 0.14)); }
.quiz__pics img:nth-child(2n) { height: 78%; }
.quiz__pics img:nth-child(3n) { height: 62%; }
.quiz__box { margin-top: clamp(24px, 3vw, 40px); background: var(--color-ink-2); padding: clamp(20px, 2.6vw, 40px); }
.quiz__steps { display: flex; flex-wrap: wrap; gap: var(--space-2); counter-reset: q; margin-bottom: var(--space-5); }
.quiz__steps li { counter-increment: q; display: inline-flex; align-items: center; gap: var(--space-2); min-height: 36px; padding: 0 var(--space-3); background: var(--color-ink-soft); color: var(--color-on-dark-muted); font-size: var(--text-small); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.quiz__steps li::before { content: counter(q); font-weight: var(--weight-bold); }
.quiz__steps li.is-on { background: var(--color-on-dark); color: var(--color-ink); }
.quiz__steps li.is-past { color: var(--color-on-dark); }
.quiz__t { font-size: var(--text-lead); font-weight: var(--weight-bold); letter-spacing: -0.015em; margin-bottom: var(--space-4); }
.quiz__q { animation: qin 420ms var(--ease); }
@keyframes qin { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.qts { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: var(--space-4) var(--space-2); }
/* круглые кнопки выбора — приём notino */
.qt { display: grid; justify-items: center; gap: var(--space-2); text-align: center; font-size: var(--text-small); line-height: 1.25; color: var(--color-on-dark); min-height: var(--tap-min); }
.qt svg { width: 84px; height: 84px; padding: 24px; border-radius: 50%; background: var(--color-ink-soft); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: square; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.qt:hover svg, .qt:focus-visible svg, .qt.is-on svg { background: var(--color-on-dark); color: var(--color-ink); transform: translateY(-3px); }
.qos { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.qo { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap); padding: 0 var(--space-4); background: var(--color-ink-soft); color: var(--color-on-dark); transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.qo:hover, .qo.is-on { background: var(--color-on-dark); color: var(--color-ink); }
.quiz__nav { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); align-items: center; }
.quiz__nav .btn--ghost { color: var(--color-on-dark); box-shadow: inset 0 0 0 2px var(--color-on-dark); }
.quiz__nav .btn--ghost:hover { background: var(--color-on-dark); color: var(--color-ink); }
.qres { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--space-2); }
.qres li { background: var(--color-bg); color: var(--color-ink); padding: var(--space-4); min-height: 104px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: inset 4px 0 0 var(--c); animation: qin 420ms var(--ease) both; animation-delay: calc(var(--k) * 60ms); }
.qres img { max-height: 34px; max-width: 70%; width: auto; height: auto; object-fit: contain; object-position: left; }
.qres b { font-size: var(--text-lead); letter-spacing: -0.02em; }
.qres span { font-size: var(--text-small); color: var(--color-muted); }
.quiz__note { color: var(--color-on-dark-muted); margin-top: var(--space-4); }

/* ── Доставка ── */
.dl__side { display: grid; gap: var(--space-2); }
.dl__free { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-2) var(--space-5); background: var(--color-ink); color: var(--color-on-dark); padding: var(--space-5); transition: background-color var(--dur) var(--ease); }
.dl__free b { font-size: var(--text-lead); letter-spacing: -0.015em; line-height: 1.2; }
.dl__free:hover { background: var(--color-ink-soft); }
.tks { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); align-items: center; }
.tks p { color: var(--color-muted); }
.tks ul { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tks li { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-4); background: var(--color-bg); font-weight: var(--weight-bold); letter-spacing: -0.01em; }
.tks .tks__more { background: transparent; font-weight: var(--weight-regular); color: var(--color-muted); padding-inline: var(--space-2); }

/* ── Вопросы ── */
.faq--2 { align-items: start; }
.faq__side { display: grid; gap: var(--space-6); position: sticky; top: calc(var(--header-h) + 24px); }
.faq__card { background: var(--beige); padding: var(--space-5); display: grid; gap: var(--space-3); }
.faq__shots { display: flex; align-items: flex-end; justify-content: center; gap: 8%; height: clamp(110px, 12vw, 170px); margin-bottom: var(--space-2); }
.faq__shots img { max-height: 100%; max-width: 28%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(17, 17, 17, 0.18)); }
.faq__card b { display: block; font-size: var(--text-lead); letter-spacing: -0.015em; margin-bottom: var(--space-1); }
.faq__tel { font-size: var(--text-title); font-weight: 800; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; }
.faq__card .btn { justify-self: start; }
.faq--2 .faq__a { max-width: none; padding-right: 72px; overflow: hidden; }
.faq--2 .faq__a p { line-height: 1.55; }
.faq--2 .faq__item summary { font-weight: var(--weight-bold); }

/* ── Форма: товар вместо фоновой картинки ── */
.sec--askprod { background: var(--beige); }
.sec--askprod .ask__bg { display: none; }
.ask__prod { position: absolute; right: 0; top: 0; bottom: 0; width: 46%; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: clamp(12px, 2vw, 32px); padding: clamp(16px, 3vw, 56px); }
.ask__prod span { width: 27%; aspect-ratio: 1; display: grid; place-items: center; }
.ask__prod img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(17, 17, 17, 0.2)); rotate: calc((var(--k) - 3) * 4deg); }
.check .chip--ic .ico { width: 20px; height: 20px; }
.check input:checked + .chip--ic::before { display: none; }

/* ── Окно политики ── */
.dlg { border: 0; padding: 0; width: min(860px, calc(100vw - 32px)); max-height: min(86vh, 900px); background: var(--color-bg); color: var(--color-ink); box-shadow: var(--shadow-float); }
.dlg::backdrop { background: rgba(17, 17, 17, 0.6); }
.dlg[open] { display: flex; flex-direction: column; animation: dlgin 320ms var(--ease); }
@keyframes dlgin { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.dlg__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-5); background: var(--color-surface); }
.dlg__bar h2 { font-size: var(--text-lead); letter-spacing: -0.015em; line-height: 1.2; }
.dlg__x { width: var(--tap); height: var(--tap); font-size: var(--text-h3); line-height: 1; flex: none; }
.dlg__x:hover { background: var(--color-ink); color: var(--color-on-dark); }
.dlg__body { overflow-y: auto; padding: var(--space-5) clamp(20px, 4vw, 48px) var(--space-7); }
.dlg__body h3 { font-size: var(--text-lead); letter-spacing: -0.015em; margin: var(--space-6) 0 var(--space-3); }
.dlg__body h3:first-child { margin-top: 0; }
.dlg__body p, .dlg__body li { line-height: 1.55; }
.dlg__body p + p { margin-top: var(--space-3); }
.dlg__body ul { list-style: disc; padding-left: 1.3em; margin: var(--space-2) 0 var(--space-3); }

/* ── Планшет и телефон ── */
@media (max-width: 1080px) {
  .dirs1__pics { display: none; }
  .dl1 { grid-template-columns: 96px minmax(0, 1fr) auto; }
  .dl1__ic { display: none; }
  .sts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq__side { position: static; }
  .ask__prod { display: none; }
  .quiz__head { grid-template-columns: minmax(0, 1fr); }
  .pr { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
  .pr__s { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .fl__row li { width: 27vw; height: 27vw; }
  .dl1 { grid-template-columns: 72px minmax(0, 1fr); }
  .bl__over { grid-template-columns: minmax(0, 1fr); padding: var(--space-3) var(--space-3) var(--space-3) calc(var(--space-3) + var(--brand-line-w)); }
  .bl__shots { display: none; }
  .bl__tag { font-size: var(--text-body); }
  .patt { grid-template-columns: repeat(4, 1fr); }
  .pr { grid-template-columns: minmax(0, 1fr); }
  .track { margin-top: 48px; }
  .run { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
  .sts { grid-template-columns: minmax(0, 1fr); }
  .st { padding: var(--space-4); }
  .st__n { font-size: 4rem; min-width: 0.7em; }
  /* телефон: два горизонтальных фото, подпись под ними */
  .wh { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .wh__a { display: none; }
  .wh__b, .wh__c { aspect-ratio: 16 / 9; }
  .wh__cap { position: static; width: auto; background: var(--color-surface); padding: var(--space-4); }
  .quiz__pics { height: 88px; }
  .qts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qt svg { width: 68px; height: 68px; padding: 19px; }
  .qres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quiz__nav .btn { flex: 1 1 100%; }
  .faq--2 .faq__a { padding-right: var(--space-4); }
  .faq__tel { font-size: var(--text-h3); }
  .sec--askprod { background: var(--color-surface); }
  .dlg__bar { padding: var(--space-3) var(--space-4); }
}
@media (prefers-reduced-motion: reduce) {
  .fl__row { animation: none; }
  .fl { overflow-x: auto; }
  .fl__row ul[aria-hidden] { display: none; }
  .run__ic, .run__out img, .quiz__q, .qres li, .dlg[open] { transition: none; animation: none; }
  .bl__over, .bl__shots img, .dl1p figcaption, .dc__over { transition: none; }
}

.form__picked { background: var(--beige); padding: var(--space-3) var(--space-4); }

/* ── поправки по снимкам ── */
.fl { gap: clamp(22px, 3vw, 48px); padding-block: clamp(22px, 3vw, 48px); }
.fl__row img { max-width: 86%; max-height: 86%; }
.bl__top .bl__logo { flex: 0 1 auto; min-width: 0; }
.bl__top .bl__logo img { max-width: 100%; }
.bl__top:not(:has(.bl__tag)) .bl__logo { width: 64%; }
.st__n { font-size: clamp(3.5rem, 1.5rem + 4.6vw, 7rem); }
.faq--2 { grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); }
.faq__side > * { min-width: 0; }
.faq__tel { font-size: var(--text-h3); }
.ask__prod { left: min(920px, 66%); width: auto; right: 0; padding: clamp(16px, 2.4vw, 40px); }
.ask__prod span { width: 40%; }
@media (max-width: 1080px) { .faq--2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .st__n { font-size: 3.5rem; } .fl { gap: 16px; padding-block: 16px; } }
.track { margin-top: 84px; }
@media (max-width: 760px) {
  .v1h .fl { order: 3; margin-top: var(--space-5); }
  .v1h__kicker { padding-top: var(--space-4); }
  .track { margin-top: 76px; }
}

/* ── Карта регионов ── */
.dl--map { grid-template-columns: minmax(0, 7.4fr) minmax(0, 4.6fr); align-items: stretch; }
.rmap { display: grid; gap: var(--space-2); height: 100%; grid-template-rows: 1fr auto; }
.rmap__view { position: relative; background: var(--color-bg); overflow: hidden; min-height: 460px; cursor: grab; touch-action: pan-y; user-select: none; }
.rmap__view.is-drag { cursor: grabbing; }
.rmap__view svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rg { fill: var(--color-surface-2); stroke: var(--color-bg); stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill 160ms var(--ease); cursor: pointer; }
.rg--own { fill: var(--color-line-mid); }
.rg:hover { fill: var(--color-muted); }
.rg.is-on { fill: var(--color-ink); }
.rmap__route { stroke: var(--color-ink); stroke-width: 2.5; stroke-dasharray: 2 7; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.rmap__dest circle { fill: var(--color-bg); stroke: var(--color-ink); stroke-width: 3; vector-effect: non-scaling-stroke; }
.rmap__truck path, .rmap__truck circle { fill: var(--color-bg); stroke: var(--color-ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.rmap__truck circle { fill: var(--color-ink); stroke: var(--color-bg); stroke-width: 1.5; }
.rmap__pin path { fill: var(--color-ink); stroke: var(--color-bg); stroke-width: 2; vector-effect: non-scaling-stroke; }
.rmap__pin circle { fill: var(--color-bg); }
.rmap__pin, .rmap__truck, .rmap__dest { pointer-events: none; }
.rmap__pinin { animation: pinin 900ms var(--ease) both 400ms; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes pinin { from { transform: translateY(-40px) scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.rmap__tip { position: absolute; z-index: 3; pointer-events: none; background: var(--color-ink); color: var(--color-on-dark); padding: var(--space-2) var(--space-3); font-size: var(--text-small); line-height: 1.3; white-space: nowrap; transform: translate(12px, 12px); }
.rmap__tip b { display: block; }
.rmap__ctl { position: absolute; right: var(--space-3); top: var(--space-3); display: flex; gap: 4px; z-index: 2; }
.rmap__ctl button { min-width: var(--tap-min); height: var(--tap-min); padding: 0 var(--space-3); background: var(--color-surface); font-weight: var(--weight-bold); transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.rmap__ctl button:hover { background: var(--color-ink); color: var(--color-on-dark); }
.rmap__toast { position: absolute; left: var(--space-3); right: var(--space-3); bottom: var(--space-3); z-index: 2; background: rgba(255, 255, 255, 0.96); box-shadow: inset 4px 0 0 var(--color-ink); padding: var(--space-3) var(--space-4); line-height: 1.45; }
.rmap__toast.is-new { animation: qin 420ms var(--ease); }
.rmap__pick { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--space-3); background: var(--color-bg); padding: var(--space-2) var(--space-4); }
.rmap__pick span { font-weight: var(--weight-medium); white-space: nowrap; }
.rmap__pick select { min-height: var(--tap); border: 0; background: var(--color-surface); padding: 0 var(--space-3); font: inherit; width: 100%; }
@media (max-width: 1080px) { .dl--map { grid-template-columns: minmax(0, 1fr); } .rmap__view { min-height: 0; aspect-ratio: 16 / 11; } }
@media (max-width: 760px) { .rmap__view { aspect-ratio: 1 / 1.05; } .rmap__ctl button[data-zoom="0"] { display: none; } .rmap__toast { font-size: var(--text-small); } }
@media (prefers-reduced-motion: reduce) { .rmap__pinin, .rmap__toast.is-new { animation: none; } }
/* вырезки с прозрачным фоном — без затемнения */
.bt__bottles img { mix-blend-mode: normal; max-width: 34%; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(17, 17, 17, 0.2)); }

/* картинки направлений из настоящих товаров: товар стоит внизу кадра, подпись — в свободном верху */
.dl1p img, .dc__pic img, .bt--photo img, .dl1__m img { object-position: 50% 100%; }
.dl1p figcaption { bottom: auto; top: 0; transform: translateY(-12px); }
.dc__over { bottom: auto; top: 0; transform: translateY(-101%); }
.bt--photo .bt__cap { bottom: auto; top: var(--space-4); }

/* Правки Кирилла 26.11. Подключается последним на glavnaya-v1 и v2.
   Главное правило вёрстки: между блоками — один отступ, без «дыр». */

/* ── Отступы между блоками: было до 144 px с каждой стороны, стало вдвое меньше ── */
.home .sec { padding-block: clamp(48px, 5.4vw, 88px); }
.home .sec__head { margin-bottom: clamp(20px, 2.6vw, 36px); }
.home .logos { padding-block: clamp(20px, 2.4vw, 32px); }

/* ── v1: первый экран — раскладка товаров на весь экран, текст в белом блоке ── */
.v1x { position: relative; height: calc(100svh - var(--header-h)); min-height: 560px; max-height: 1100px; overflow: hidden; background: var(--color-surface); display: flex; align-items: center; isolation: isolate; }
.fl--full { position: absolute; inset: 0; z-index: -1; display: grid; grid-template-rows: repeat(4, 1fr); gap: 0; padding-block: clamp(8px, 1.2vh, 16px); }
.fl--full::after { display: none; }
.fl--full .fl__row { align-items: center; height: 100%; }
.fl--full .fl__row ul { gap: clamp(20px, 3vw, 56px); padding-right: clamp(20px, 3vw, 56px); height: 100%; }
.fl--full .fl__row li { height: 86%; width: auto; aspect-ratio: 1; }
.fl--full .fl__row img { max-width: 92%; max-height: 92%; }
.v1x__in { position: relative; }
.v1x__card { background: var(--color-bg); width: min(720px, 100%); padding: clamp(24px, 3vw, 48px); box-shadow: 0 30px 80px rgba(17, 17, 17, 0.14); }
.v1x__title { font-size: var(--text-display); line-height: 0.94; letter-spacing: -0.05em; font-weight: 800; }
.v1x__lead { margin-top: var(--space-4); font-size: var(--text-body); line-height: 1.5; max-width: 36em; }
.v1x__card .hero__cta { margin-top: var(--space-5); }
.figs { background: var(--color-bg); }
.figs .v1figs { padding-block: clamp(28px, 3.4vw, 56px) clamp(12px, 1.6vw, 24px); }

/* ── Товары на полке: единый масштаб, без коробок ── */
.stg { position: absolute; left: 6%; right: 6%; top: 30%; bottom: 13%; display: flex; align-items: flex-end; justify-content: center; gap: 2.2%; }
.stg img { height: calc(var(--h) * 100%); width: auto; max-width: 20%; object-fit: contain; object-position: 50% 100%; flex: 0 1 auto; min-width: 0; filter: drop-shadow(0 14px 12px rgba(17, 17, 17, 0.16)); }

/* ── v1: «5 направлений» в рамке, картинка и подпись не обрезаются ── */
.sec--frame { padding-block: clamp(28px, 3.4vw, 56px) !important; }
.frame { background: var(--color-surface); padding: clamp(20px, 2.8vw, 44px); }
.d5 { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-2); align-items: stretch; }
.d5__list { display: grid; gap: var(--space-1); grid-auto-rows: 1fr; }
.d5__list li { display: flex; }
.d5r { flex: 1; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; column-gap: var(--space-4); align-items: center; padding: var(--space-3) var(--space-5); background: var(--color-bg); position: relative; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.d5r__ic { width: 32px; height: 32px; grid-row: 1 / 3; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.d5r__n { font-size: var(--text-h3); font-weight: var(--weight-bold); letter-spacing: -0.03em; line-height: 1.08; }
.d5r__c { color: var(--color-muted); white-space: nowrap; font-variant-numeric: tabular-nums; grid-row: 1 / 3; grid-column: 3; padding-right: 36px; }
.d5r__s { grid-column: 2; color: var(--color-muted); font-size: var(--text-small); margin-top: 2px; }
.d5r__go { position: absolute; right: var(--space-5); top: 50%; translate: 0 -50%; font-size: var(--text-lead); opacity: 0; transition: opacity var(--dur) var(--ease), translate var(--dur) var(--ease); }
.d5r.is-on, .d5r:hover, .d5r:focus-visible { background: var(--color-ink); color: var(--color-on-dark); }
.d5r.is-on .d5r__c, .d5r.is-on .d5r__s, .d5r:hover .d5r__c, .d5r:hover .d5r__s, .d5r:focus-visible .d5r__c, .d5r:focus-visible .d5r__s { color: var(--color-on-dark-muted); }
.d5r.is-on .d5r__go, .d5r:hover .d5r__go { opacity: 1; }
.d5__view { position: relative; background: var(--color-bg); min-height: clamp(380px, 34vw, 520px); overflow: hidden; }
.d5p { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 500ms var(--ease), visibility 0s 500ms; }
.d5p.is-on { opacity: 1; visibility: visible; transition: opacity 500ms var(--ease); }
.d5p figcaption { position: absolute; left: 0; right: 0; top: 0; padding: var(--space-4) var(--space-5); display: grid; gap: 4px; }
.d5p figcaption b { font-size: var(--text-lead); letter-spacing: -0.015em; line-height: 1.2; }
.d5p figcaption span { font-size: var(--text-small); line-height: 1.45; color: var(--color-ink); max-width: 46em; }
.d5p .stg { top: 38%; bottom: 0; padding-bottom: 5%; background: linear-gradient(180deg, rgba(244, 243, 241, 0) 0, rgba(244, 243, 241, 0) 86%, var(--color-surface) 86%); left: 0; right: 0; padding-inline: 5%; }
.d5p .stg img { transform: translateY(14px); opacity: 0; transition: transform 600ms var(--ease), opacity 400ms var(--ease); }
.d5p.is-on .stg img { transform: none; opacity: 1; }
.d5p.is-on .stg img:nth-child(2n) { transition-delay: 60ms; }
.d5p.is-on .stg img:nth-child(3n) { transition-delay: 120ms; }

/* ── v2: карточки и плитки направлений с полкой ── */
.dc__pic--stg { background: var(--color-surface); position: relative; }
.dc__pic--stg .stg { top: 16%; bottom: 8%; left: 5%; right: 5%; }
.dc__pic--stg .stg img { max-width: 24%; }
.sec--alt .dc__pic--stg { background: var(--color-surface-2); }
.sw--stg { background: var(--color-surface); }
.sw--stg .stg { top: 22%; bottom: 9%; }
.bt--photo .sw--stg img { width: auto; height: calc(var(--h) * 100%); object-fit: contain; }
.bt--photo .sw { transform: none; transition: opacity 1.2s var(--ease); }
.bt--photo:hover .sw.is-on { transform: none; }
.bt__bottles img { max-width: 24%; }
.bt__bottles img:nth-child(4) { height: 82%; }

/* ── 23 марки: товар в плашке — на всю высоту ── */
.bl__over { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--space-4); padding-block: var(--space-3) 0; align-items: stretch; }
.bl__shots { align-items: flex-end; justify-content: center; gap: 5%; height: 100%; min-height: 0; }
.bl__shots img { height: 96%; max-height: none; max-width: 33%; width: auto; object-fit: contain; object-position: 50% 100%; }
.bl__shots img:nth-child(2) { height: 84%; }
.bl__shots img:nth-child(3) { height: 72%; }
.bl__shots--2 img, .bl__shots--1 img { max-width: 46%; }
.bl__txt { align-content: center; padding-bottom: var(--space-3); }

/* ── Условия: товар едет по четырём сторонам ── */
.sec--edges { position: relative; overflow: hidden; isolation: isolate; }
.sec--edges > .wrap { position: relative; padding-block: clamp(56px, 6vw, 96px); }
.sec--edges { padding-block: 0 !important; }
.edges { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.edge { position: absolute; display: flex; overflow: hidden; opacity: 0.62; filter: saturate(0.78); }
.edge ul { display: flex; flex: none; align-items: center; gap: clamp(20px, 2.6vw, 44px); padding-right: clamp(20px, 2.6vw, 44px); animation: edgex 70s linear infinite; }
.edge li { flex: none; width: clamp(40px, 4.4vw, 68px); height: clamp(40px, 4.4vw, 68px); display: grid; place-items: center; }
.edge img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.edge--t, .edge--b { left: 0; right: 0; height: clamp(48px, 5.4vw, 84px); align-items: center; }
.edge--t { top: 0; } .edge--b { bottom: 0; }
.edge--v { top: clamp(48px, 5.4vw, 84px); bottom: clamp(48px, 5.4vw, 84px); width: clamp(48px, 5.4vw, 84px); flex-direction: column; align-items: center; }
.edge--l { left: 0; } .edge--r { right: 0; }
.edge--v ul { flex-direction: column; padding-right: 0; padding-bottom: clamp(20px, 2.6vw, 44px); animation-name: edgey; }
.edge--rev ul { animation-direction: reverse; }
@keyframes edgex { to { transform: translateX(-100%); } }
@keyframes edgey { to { transform: translateY(-100%); } }
.sec--edges .prs, .sec--edges .pbs, .sec--edges .sec__head, .sec--edges .wrap > p { margin-inline: clamp(40px, 5vw, 80px); }

/* ── Склад: подпись списком ── */
.wh__cap { width: min(460px, 40%); }
.wh__cap ul { display: grid; gap: var(--space-3); }
.wh__cap li b { display: block; font-size: var(--text-body); margin: 0; }
.wh__cap li span { color: var(--color-muted); font-size: var(--text-small); line-height: 1.4; }
.wh__cap > b { margin-bottom: var(--space-3); }

/* ── Подбор: высокие товары в ряд ── */
.quiz__pics { align-items: flex-end; gap: clamp(10px, 1.4vw, 22px); height: clamp(120px, 13vw, 190px); }
.quiz__pics img { height: 100%; max-width: 76px; object-position: 50% 100%; }
.quiz__pics img:nth-child(2n) { height: 86%; }
.quiz__pics img:nth-child(3n) { height: 76%; }

/* ── Карта ── */
.rmap__bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-4); align-items: center; background: var(--color-bg); padding: var(--space-3) var(--space-4); min-height: 76px; }
.rmap__bar .btn { white-space: nowrap; gap: var(--space-2); }
.rmap__msg { line-height: 1.4; color: var(--color-muted); }
.rmap__msg.is-live { color: var(--color-ink); animation: qin 420ms var(--ease); }
.rmap__msg b { display: block; color: var(--color-ink); }
.rmap__x { width: var(--tap-min); height: var(--tap-min); font-size: var(--text-h3); line-height: 1; }
.rmap__x:hover { background: var(--color-ink); color: var(--color-on-dark); }
.rmap__truckin .t-body { fill: var(--color-ink); stroke: var(--color-bg); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.rmap__truckin .t-cab { fill: #D9141E; stroke: var(--color-bg); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.rmap__truckin .t-win { fill: var(--color-bg); stroke: none; }
.rmap__truckin .t-dot { fill: var(--color-ink); stroke: none; }
.rmap__truckin .t-wh { fill: var(--color-ink); stroke: var(--color-bg); stroke-width: 2; vector-effect: non-scaling-stroke; }
.rmap__destin path { stroke: var(--color-ink); stroke-width: 3; fill: none; vector-effect: non-scaling-stroke; }
.rmap__destin circle { fill: var(--color-ink); stroke: var(--color-bg); stroke-width: 2; vector-effect: non-scaling-stroke; }

/* перевозчики: значки вида транспорта, подсветка при наведении */
.tks--ic li { gap: var(--space-2); min-height: 48px; transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); cursor: default; }
.tks--ic li svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: square; }
.tks--ic li:not(.tks__more):hover { background: var(--color-ink); color: var(--color-on-dark); transform: translateY(-2px); }

/* ── О компании: настоящее фото ── */
.ab__pic--office { aspect-ratio: 3 / 2; }
.ab__pic--office figcaption { position: absolute; left: var(--space-3); bottom: var(--space-3); background: rgba(255, 255, 255, 0.94); padding: var(--space-1) var(--space-3); font-size: var(--text-small); }

/* ── Вопросы: открытый вопрос — белый целиком ── */
.faq--2 .faq__item[open] summary, .faq--2 .faq__item[open] summary:hover { background: transparent; }
.faq--2 .faq__a { padding-right: var(--space-5); }
.faq__card { overflow: hidden; padding-top: 0; }
.faq__shots--row { height: clamp(120px, 12vw, 170px); justify-content: flex-start; gap: 14px; margin: 0 calc(var(--space-5) * -1) var(--space-3); padding: var(--space-4) 0 0 var(--space-5); background: var(--beige-2); align-items: flex-end; flex-wrap: nowrap; }
.faq__shots--row img { height: 92%; max-height: none; max-width: none; width: auto; flex: none; object-position: 50% 100%; }
.faq__shots--row img:nth-child(2n) { height: 80%; }
.faq__shots--row img:nth-child(3n) { height: 70%; }

/* ── Форма: два вертикальных «ручья» товаров ── */
.ask__prod--v { left: min(900px, 64%); right: 0; top: 0; bottom: 0; width: auto; padding: 0 clamp(16px, 3vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 40px); overflow: hidden; align-content: stretch; }
.vs { overflow: hidden; display: flex; flex-direction: column; }
.vs ul { display: flex; flex-direction: column; flex: none; gap: clamp(20px, 2.4vw, 40px); padding-bottom: clamp(20px, 2.4vw, 40px); animation: edgey 60s linear infinite; }
.vs--rev ul { animation-direction: reverse; }
.vs li { height: clamp(110px, 11vw, 170px); display: grid; place-items: center; }
.vs img { max-height: 100%; max-width: 78%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 12px 12px rgba(17, 17, 17, 0.2)); rotate: 0deg; }

/* ── Окна с размытым фоном ── */
.dlg--blur::backdrop { background: rgba(17, 17, 17, 0.42); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.dlg--price { width: min(760px, calc(100vw - 24px)); }
.dlg--price .dlg__bar { background: var(--color-ink); color: var(--color-on-dark); }
.dlg--price .dlg__bar h2 { font-size: var(--text-title); letter-spacing: -0.03em; }
.dlg--price .dlg__x { color: var(--color-on-dark); }
.dlg--price .dlg__x:hover { background: var(--color-on-dark); color: var(--color-ink); }
.dlg__lead { margin-bottom: var(--space-5); }
.dlg--price .form__done { margin-top: 0; }
.dlg--regions { width: min(880px, calc(100vw - 24px)); height: min(80vh, 760px); }
.dlg__search { padding: var(--space-4) var(--space-5) 0; }
.rlist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; align-content: start; padding-top: var(--space-4); list-style: none !important; padding-left: clamp(20px, 4vw, 48px) !important; margin: 0 !important; }
.rlist li { display: flex; }
.rlist button { flex: 1; text-align: left; padding: var(--space-2) var(--space-3); min-height: var(--tap-min); background: var(--color-surface); display: grid; align-content: center; transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.rlist button b { font-weight: var(--weight-medium); line-height: 1.25; }
.rlist button span { font-size: var(--text-small); color: var(--color-muted); }
.rlist button:hover, .rlist button:focus-visible { background: var(--color-ink); color: var(--color-on-dark); }
.rlist button:hover span, .rlist button:focus-visible span { color: var(--color-on-dark-muted); }
.rlist__empty { padding: var(--space-5) clamp(20px, 4vw, 48px); }

@media (max-width: 1080px) {
  .d5 { grid-template-columns: minmax(0, 1fr); }
  .d5__view { min-height: 420px; }
  .ask__prod--v { display: none; }
  .rlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec--edges .prs, .sec--edges .pbs, .sec--edges .sec__head, .sec--edges .wrap > p { margin-inline: clamp(36px, 6vw, 64px); }
}
@media (max-width: 760px) {
  .v1x { height: auto; min-height: calc(100svh - var(--header-h-mobile) - var(--tabbar-h)); align-items: flex-end; padding-block: 34svh var(--space-4); }
  .v1x__card { padding: var(--space-4); }
  .v1x__title { font-size: clamp(2rem, 9.6vw, 2.75rem); }
  .v1x__card .hero__cta .btn { flex: 1 1 100%; }
  .fl--full .fl__row li { width: auto; height: 82%; }
  .frame { padding: var(--space-4) var(--space-3); margin-inline: calc(var(--page-margin) * -1 + 4px); }
  .d5r { grid-template-columns: 28px minmax(0, 1fr); padding: var(--space-3); column-gap: var(--space-3); }
  .d5r__c { grid-column: 2; grid-row: auto; padding-right: 0; font-size: var(--text-small); }
  .d5r__s, .d5r__go { display: none; }
  .d5r__ic { width: 26px; height: 26px; }
  .d5__view { min-height: 400px; }
  .d5p figcaption { padding: var(--space-3) var(--space-4); }
  .d5p figcaption span { font-size: var(--text-small); }
  .d5p .stg { top: 52%; }
  .edge--v { display: none; }
  .sec--edges .prs, .sec--edges .pbs, .sec--edges .sec__head, .sec--edges .wrap > p { margin-inline: 0; }
  .wh__cap { width: auto; }
  .rmap__bar { grid-template-columns: minmax(0, 1fr) auto; }
  .rmap__bar .btn { grid-column: 1 / -1; }
  .rlist { grid-template-columns: minmax(0, 1fr); }
  .dlg--regions { height: 86vh; }
  .faq__shots--row { height: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  .edge ul, .vs ul { animation: none; }
  .edge ul + ul, .vs ul + ul { display: none; }
  .d5p, .d5p .stg img { transition: none; }
}

/* ── поправки по снимкам 26.11 ── */
.fl--full { grid-template-rows: repeat(4, minmax(0, 1fr)); }
.fl--full .fl__row { height: auto; align-self: center; }
.fl--full .fl__row ul { height: auto; }
.fl--full .fl__row li { height: clamp(84px, 17.5svh, 190px); width: clamp(84px, 17.5svh, 190px); aspect-ratio: auto; }
.stg img { flex: none; max-width: none; }
.d5__view { min-height: clamp(440px, 38vw, 560px); }
.d5p .stg { top: 30%; gap: 1.5%; }
.dc__pic--stg .stg img, .sw--stg .stg img { max-width: none; }
.pr { grid-template-columns: minmax(0, 3.6fr) minmax(0, 3fr) minmax(0, 5.4fr); }
.pr__big { font-size: var(--text-title); }
@media (max-width: 760px) {
  .fl--full .fl__row li { height: 21vw; width: 21vw; }
  .d5p .stg { top: 50%; }
}
.fl--full .fl__row img { max-width: clamp(74px, 15.5svh, 168px); max-height: clamp(74px, 15.5svh, 168px); }
.d5p .stg img { flex: 0 1 auto; min-width: 0; }
.d5p .stg { top: 28%; gap: 2.5%; padding-inline: 4%; }
.vs li { height: clamp(96px, 9.5vw, 150px); }
.vs img { max-width: 62%; }
@media (max-width: 760px) { .fl--full .fl__row img { max-width: 18vw; max-height: 18vw; } }
.fl--full .fl__row li { height: clamp(96px, 21svh, 230px); width: clamp(96px, 21svh, 230px); }
.fl--full .fl__row img { max-width: clamp(84px, 19svh, 210px); max-height: clamp(84px, 19svh, 210px); }
.dc__pic--stg .stg { left: 3%; right: 3%; gap: 1.5%; }
.dc__pic--stg .stg img { flex: 0 1 auto; min-width: 0; }
@media (max-width: 760px) { .fl--full .fl__row li { height: 24vw; width: 24vw; } .fl--full .fl__row img { max-width: 21vw; max-height: 21vw; } }
@media (max-width: 760px) {
  .v1x { padding-top: 26svh; }
  .v1x__card .v1h__kicker li:not(:last-child) { display: none; }
  .v1x__lead { font-size: var(--text-small); }
}

/* Правки Кирилла 27.11. Подключается после v3.css.
   Главное: товар везде в реальном масштабе. Высота картинки = --mm (высота товара в мм) × единица блока. */

/* ── Первый экран v1: ряды товаров, честные размеры, неровные отступы ── */
.v1x { --rh: clamp(104px, calc((100svh - var(--header-h)) / 4.35), 250px); }
.fl--mm .fl__row ul { gap: clamp(26px, 3.2vw, 60px); padding-right: clamp(26px, 3.2vw, 60px); align-items: center; }
.fl--mm .fl__row li { width: auto; height: var(--rh); display: flex; align-items: center; margin-left: var(--gx, 0); translate: 0 calc(var(--dy, 0) * var(--rh)); aspect-ratio: auto; }
.fl--mm .fl__row img { height: calc(var(--rh) * var(--mm) / 236); width: auto; max-width: none; max-height: none; rotate: none; filter: none; }
.fl--mm .fl__row li:hover img { scale: 1.04; }
@media (max-width: 760px) {
  .v1x { --rh: 24vw; }
  .fl--mm .fl__row ul { gap: 18px; padding-right: 18px; }
}

/* ── Товары на полке направлений: высота по --h = мм / самый высокий ── */
.stg img { filter: none; }

/* ── 23 марки: товары на всю левую часть плашки, снизу небольшой отступ ── */
.bl__logo { height: 76px; align-items: flex-start; }
.bl__logo img, .bl__top .bl__logo img { height: var(--lh, 44px); max-height: none; max-width: 100%; width: auto; }
.bl__top:not(:has(.bl__tag)) .bl__logo { width: 70%; }
.bl__over { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-block: var(--space-3) 0; align-items: stretch; }
.bl__shots { height: auto; align-self: stretch; padding-bottom: 12px; gap: 0; justify-content: center; align-items: flex-end; position: relative; }
.bl__shots img { height: calc(var(--f, 1) * 100%); max-height: none; max-width: 62%; width: auto; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 6px 8px rgba(17, 17, 17, 0.16)); }
.bl__shots img + img { margin-left: -2%; }
.bl__shots img:nth-child(2) { height: calc(var(--f, 1) * 100%); }
.bl__shots--1 img { max-width: 96%; }
.bl__shots--wide img { max-width: 58%; height: 88%; }
.bl__shots--wide img + img { margin-left: -16%; }
.bl__txt { align-content: center; padding-bottom: var(--space-3); min-width: 0; font-size: var(--text-small); line-height: 1.3; }
.bl__txt b { font-size: var(--text-body); line-height: 1.2; }
.bl__txt > span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: var(--text-small); }
@media (max-width: 760px) { .bl__logo { height: 56px; } .bl__logo img, .bl__top .bl__logo img { height: calc(var(--lh, 44px) * 0.72); } }

/* ── Условия: серый блок без картинок ── */
.sec--perks .prs, .sec--perks .pbs { margin-inline: 0; }

/* ── Подбор: ряд товаров в реальном масштабе, без свечения ── */
.quiz__pics { --u: clamp(0.62px, 0.085vw, 0.9px); height: auto; align-items: flex-end; gap: clamp(12px, 1.4vw, 24px); }
.quiz__pics img, .quiz__pics img:nth-child(2n), .quiz__pics img:nth-child(3n) { height: calc(var(--mm) * var(--u)); max-width: none; width: auto; filter: none; }
@media (max-width: 760px) { .quiz__pics { --u: 0.42px; } }

/* ── Вопросы: ряд флаконов без подложки, обрезан одинаково слева и справа ── */
.faq__shots--row { --u: clamp(0.56px, 0.07vw, 0.76px); height: auto; background: none; justify-content: center; align-items: flex-end; gap: 16px; margin: 0 calc(var(--space-5) * -1) var(--space-3); padding: var(--space-5) 0 0; overflow: hidden; }
.faq__shots--row img, .faq__shots--row img:nth-child(2n), .faq__shots--row img:nth-child(3n) { height: calc(var(--mm) * var(--u)); width: auto; flex: none; max-width: none; filter: none; }

/* ── Форма: один поток снизу вверх ── */
.ask__prod--one { grid-template-columns: minmax(0, 1fr); padding-inline: clamp(12px, 2vw, 40px); }
.vs--one { --u: clamp(1.05px, 0.1vw, 1.45px); }
.vs--one ul { gap: clamp(36px, 3.6vw, 64px); padding-bottom: clamp(36px, 3.6vw, 64px); animation-duration: 70s; animation-direction: normal; }
.vs--one li { height: auto; display: block; padding-left: var(--x); }
.vs--one img { height: calc(var(--mm) * var(--u)); width: auto; max-width: none; max-height: none; filter: drop-shadow(0 14px 14px rgba(17, 17, 17, 0.14)); }

/* ── Карта: булавка как на картах, коробка «Евро·Парфюм» ── */
.rmap__view { touch-action: pan-y; }
.rmap__dest .d-pin { fill: var(--color-ink); stroke: var(--color-bg); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.rmap__dest .d-dot { fill: var(--color-ink-soft); }
.rmap__dest .d-shadow { fill: rgba(17, 17, 17, 0.28); }
.rmap__drop { animation: pindrop 620ms cubic-bezier(.3, 1.5, .55, 1) both; }
@keyframes pindrop { from { transform: translateY(-46px); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
.rmap__truckin .t-door { fill: var(--color-ink); stroke: var(--color-bg); stroke-width: 1.2; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: 0% 0%; transition: transform 420ms var(--ease); }
.rmap__truck.is-open .t-door { transform: scaleX(-3.6); }
.rmap__parcel .p-box { fill: var(--color-bg); stroke: var(--color-ink); stroke-width: 1.6; }
.rmap__parcel .p-tape { stroke: var(--color-ink); stroke-width: 3; }
.rmap__parcel .p-t { font: 800 8.6px/1 Onest, system-ui, sans-serif; fill: var(--color-ink); letter-spacing: 0.04em; }
.rmap__parcelmv { animation: parcel 700ms var(--ease) both; }
@keyframes parcel { from { transform: translate(var(--px, 30px), -6px) scale(0.5); opacity: 0; } 30% { opacity: 1; } 70% { transform: translate(0, -10px) scale(1); } to { transform: none; opacity: 1; } }
.tks__more .link { font-weight: var(--weight-medium); text-decoration: underline; text-underline-offset: 4px; }
.tks--ic li.tks__more { padding: 0; }
.tks--ic li.tks__more a { display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 var(--space-3); }
.tks--ic li.tks__more:hover { background: none; color: inherit; transform: none; }

/* ── Склад: кадры в реальных пропорциях ── */

/* ── Навигация по разделам: риски у правого края, не заходят на контент; подписи — по наведению ── */
.snav { position: fixed; right: 6px; top: 50%; translate: 0 -50%; z-index: 40; display: grid; gap: 8px; justify-items: end; }
.snav[hidden] { display: none; }
.snav ol { display: grid; gap: 0; padding: 6px 4px; transition: background-color 200ms var(--ease), box-shadow 200ms var(--ease); }
.snav:hover ol, .snav:has(:focus-visible) ol { background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 10px 34px rgba(17, 17, 17, 0.12); }
.snav ol a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 24px; padding: 0 4px; color: var(--color-muted); text-decoration: none; }
.snav ol a::after { content: ''; flex: none; width: 12px; height: 2px; background: var(--color-line-mid); transition: width 240ms var(--ease), background-color 240ms var(--ease); }
.snav ol a.is-on::after { width: 26px; background: var(--color-ink); }
.snav ol a:hover::after { background: var(--color-ink); }
.snav__n { display: none; }
.snav__t { font-size: var(--text-small); white-space: nowrap; max-width: 0; overflow: hidden; opacity: 0; transition: max-width 320ms var(--ease), opacity 200ms var(--ease); }
.snav:hover .snav__t, .snav:has(:focus-visible) .snav__t { max-width: 200px; opacity: 1; }
.snav a:hover, .snav a.is-on { color: var(--color-ink); }
.snav a.is-on .snav__t { font-weight: var(--weight-medium); }
.snav__top { width: 34px; height: 34px; display: grid; place-items: center; background: var(--color-ink); color: var(--color-on-dark); text-decoration: none; }
.snav__top:hover { background: var(--color-ink-soft); }
.snav-btn { position: fixed; left: 50%; translate: -50% 0; bottom: calc(var(--tabbar-h, 64px) + 12px); z-index: 40; display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; background: rgba(17, 17, 17, 0.9); color: var(--color-bg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: var(--text-small); box-shadow: 0 10px 30px rgba(17, 17, 17, 0.24); }
.snav-btn__k { color: rgba(255, 255, 255, 0.6); font-variant-numeric: tabular-nums; font-size: var(--text-small); }
.dlg--sheet { width: min(520px, calc(100vw - 16px)); margin-bottom: 8px; }
.snav-list { list-style: none !important; padding: var(--space-2) var(--space-4) var(--space-4) !important; margin: 0 !important; display: grid; gap: 2px; }
.snav-list a { display: flex; gap: var(--space-3); align-items: center; min-height: 48px; padding: 0 var(--space-3); background: var(--color-surface); text-decoration: none; color: var(--color-ink); font-weight: var(--weight-medium); }
.snav-list a.is-on { background: var(--color-ink); color: var(--color-on-dark); }
.snav-list .snav__n { color: var(--color-muted); width: auto; }
@media (max-width: 1180px) { .snav { display: none !important; } .snav-btn:not([hidden]) { display: inline-flex; } }
@media (prefers-reduced-motion: reduce) { .rmap__drop, .rmap__parcelmv { animation: none; } .snav__t { transition: none; } }

/* ── Шаги: товар у бегунка тоже в масштабе ── */
.steps2.is-done .run__out img, .steps2.is-done .run__out img:nth-child(2) { height: calc(var(--mm) * 0.31px); }

@media (max-width: 760px) {
  .pr { grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-4); align-items: baseline; }
  .pr__s { grid-column: 1 / -1; }
}

/* ── Первый экран v1 «как у Nobilis»: 3 ряда, крупно, часть на боку и вверх дном ── */
.v1x--nb { --rh: clamp(180px, calc((100svh - var(--header-h)) / 3), 340px); --u: calc(var(--rh) / 150); background: var(--color-surface); }
.fl--nb { grid-template-rows: repeat(3, minmax(0, 1fr)); padding-block: 0; }
.fl--nb .fl__row { align-self: center; animation-duration: 120s; }
.fl--nb .fl__row--rev { animation-duration: 136s; }
.fl--nb .fl__row ul { gap: clamp(14px, 1.8vw, 34px); padding-right: clamp(14px, 1.8vw, 34px); align-items: center; height: auto; }
.fl--nb .fl__row li { position: relative; flex: none; width: calc(var(--u) * var(--w)); height: calc(var(--u) * var(--hh)); aspect-ratio: auto; margin: 0; translate: 0 calc(var(--dy, 0) * var(--rh)); display: block; }
.fl--nb .fl__row img { position: absolute; left: 50%; top: 50%; width: calc(var(--u) * var(--iw)); height: calc(var(--u) * var(--ih)); max-width: none; max-height: none; translate: -50% -50%; rotate: var(--rot); object-fit: contain; filter: drop-shadow(0 0 6px rgba(17, 17, 17, 0.10)); }
.fl--nb .fl__row li:hover img { scale: 1.03; }
@media (max-width: 760px) { .v1x--nb { --rh: 40vw; } }

/* ── 5 направлений: белая панель до низа списка, без серой полосы; товар крупнее ── */
.d5__view { align-self: stretch; }
.d5p .stg { background: none; top: 26%; bottom: 0; padding-bottom: clamp(16px, 2vw, 28px); gap: 1.5%; }
.d5p .stg img { filter: drop-shadow(0 10px 12px rgba(17, 17, 17, 0.12)); }
/* парфюмерия: три флакона с воздухом между ними, без наложения */
.d5p[data-pic="1"] .stg { padding-inline: 4%; gap: 4%; justify-content: center; }
.d5p[data-pic="1"] .stg img { flex: 0 1 auto; min-width: 0; height: calc(var(--h) * 80%); width: auto; object-fit: contain; object-position: 50% 100%; }

/* ── 5 направлений: иконка, название и число марок в одной строке; под названием один и тот же отступ ── */
.d5r { grid-template-columns: 36px minmax(0, 1fr) auto 20px; grid-template-rows: auto auto; align-content: center; align-items: center; row-gap: 6px; }
.d5r__ic { grid-row: 1; grid-column: 1; align-self: center; }
.d5r__n { grid-row: 1; grid-column: 2; }
.d5r__c { grid-row: 1; grid-column: 3; padding-right: 0; align-self: center; }
.d5r__go { position: static; translate: none; grid-row: 1; grid-column: 4; align-self: center; justify-self: end; }
.d5r__s { grid-row: 2; grid-column: 2 / 4; margin-top: 0; }
@media (max-width: 760px) {
  .d5r { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .d5r__c { grid-column: 3; font-size: var(--text-small); }
  .d5r__s { grid-column: 2 / -1; }
}

/* ── Цифры под первым экраном: равные промежутки между числами ── */
.figs .v1figs { display: flex; justify-content: space-between; gap: var(--space-5); }
.figs .v1figs > div { flex: none; }
@media (max-width: 760px) { .figs .v1figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── 23 марки: три товара в плашке, чуть внахлёст ── */
.bl__shots--3, .bl__shots--4, .bl__shots--5 { justify-content: center; gap: 4%; }
.bl__shots--3 img, .bl__shots--4 img, .bl__shots--5 img { margin-left: 0 !important; flex: 0 1 auto; min-width: 0; }
.bl__shots--3 img { max-width: 40%; }
.bl__shots--3 { gap: 2%; }
.bl__shots--5 img { max-width: 17%; }
.bl__shots--4 img { max-width: 22%; }

/* ── Как начать: в конце над шагом 4 — ряд товаров разных направлений во всю ширину колонки ── */
.run__out { width: clamp(240px, 23vw, 440px); height: auto; gap: 6px; justify-content: space-between; align-items: flex-end; bottom: calc(100% + 6px); }
.steps2.is-done .run__out img, .steps2.is-done .run__out img:nth-child(2) { height: calc(var(--mm) * 0.52px); }
@media (max-width: 760px) { .run__out { width: 70vw; } .steps2.is-done .run__out img, .steps2.is-done .run__out img:nth-child(2) { height: calc(var(--mm) * 0.26px); } }
.steps2 .track { margin-top: 128px; }
@media (max-width: 760px) { .steps2 .track { margin-top: 96px; } }

/* «О марке» — кнопка: появляется слева направо вместе с товарами */
.bl__txt i.bl__go { display: inline-flex; align-items: center; gap: 8px; justify-self: start; margin-top: var(--space-3); padding: 8px 14px; border: 1.5px solid var(--color-ink); font-size: var(--text-small); font-weight: var(--weight-medium); line-height: 1; opacity: 0; transform: translateX(-14px); transition: opacity 360ms var(--ease) 180ms, transform 420ms var(--ease) 180ms, background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.brand:hover .bl__go, .brand:focus-visible .bl__go { opacity: 1; transform: none; }
.brand .bl__over:hover .bl__go { background: var(--color-ink); color: var(--color-on-dark); }
@media (prefers-reduced-motion: reduce) { .bl__txt i.bl__go { transition: none; } }

/* окно «Страница марки скоро» — стекло на размытом фоне */
.dlg--glass { width: min(620px, calc(100vw - 24px)); padding: clamp(28px, 4vw, 48px); background: rgba(255, 255, 255, 0.14); color: var(--color-bg); border: 1px solid rgba(255, 255, 255, 0.35); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); text-align: center; }
.dlg--glass::backdrop { background: rgba(17, 17, 17, 0.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.glass__kicker { font-size: var(--text-small); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.dlg--glass h2 { font-size: var(--text-title); letter-spacing: -0.03em; line-height: 1.05; margin: var(--space-2) 0 var(--space-3); }
.dlg--glass p:not(.glass__kicker) { color: rgba(255, 255, 255, 0.86); line-height: 1.5; max-width: 34em; margin-inline: auto; }
.glass__btns { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; margin-top: var(--space-5); }
.dlg--glass .btn--ghost { color: var(--color-bg); border-color: rgba(255, 255, 255, 0.7); background: transparent; }
.dlg--glass .btn--ghost:hover { background: var(--color-bg); color: var(--color-ink); }

/* лента логотипов: карточка марки */
.lgtip { position: fixed; z-index: 60; width: 300px; padding: 16px 18px; background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 18px 50px rgba(17, 17, 17, 0.18); border-top: 3px solid var(--color-ink); pointer-events: none; display: grid; gap: 6px; }
.lgtip[hidden] { display: none; }
.lgtip.is-on { animation: tipin 260ms var(--ease) both; }
@keyframes tipin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lgtip__n { font-size: var(--text-body); letter-spacing: -0.01em; }
.lgtip__d { font-size: var(--text-small); line-height: 1.4; color: var(--color-muted); }
.lgtip__f { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lgtip__f li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; background: var(--color-surface); font-size: var(--text-small); }
.lgtip__f svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: square; }
.lgtip__go { font-size: var(--text-small); color: var(--color-muted); margin-top: 2px; }
.lg { cursor: pointer; }
.lg:hover img { filter: none; opacity: 1; }
/* «Все марки» — заголовок блока встаёт под шапкой с небольшим отступом */
#marki-h, #marki { scroll-margin-top: calc(var(--header-h) + 36px); }
@media (prefers-reduced-motion: reduce) { .lgtip.is-on { animation: none; } }
.bl__shots--4, .bl__shots--5 { gap: 2%; }
.bl__shots--4 img { max-width: 25%; }
.bl__shots--5 img { max-width: 19%; }

/* ── Карта: склад «Евро·Парфюм» с тремя машинками у Петербурга ── */
.rmap__base { pointer-events: none; }
.rmap__base .b-wall { fill: var(--color-bg); stroke: var(--color-ink); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.rmap__base .b-roof { fill: var(--color-ink); }
.rmap__base .b-shelf { stroke: var(--color-line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.rmap__base .b-p1 { fill: #D9141E; } .rmap__base .b-p2 { fill: #C8A951; } .rmap__base .b-p3 { fill: #6F8FAF; } .rmap__base .b-p4 { fill: #E68BB0; } .rmap__base .b-p5 { fill: #3C7D4E; }
.rmap__base .t-body { fill: var(--color-ink); stroke: var(--color-bg); stroke-width: 1; vector-effect: non-scaling-stroke; }
.rmap__base .t-cab { fill: #D9141E; stroke: var(--color-bg); stroke-width: 1; vector-effect: non-scaling-stroke; }
.rmap__base .b-t { transition: opacity 400ms var(--ease), transform 600ms var(--ease); }
.rmap__base.is-out .b-t[data-bt="0"] { opacity: 0; }
.rmap__base .b-label { font: 800 7px/1 Onest, system-ui, sans-serif; fill: var(--color-ink); letter-spacing: 0.06em; paint-order: stroke; stroke: var(--color-bg); stroke-width: 3px; }
/* «и ещё около 20 →»: подчёркнуты только слова, стрелка без линии */
.tks__more .link { text-decoration: none; }
.tks__more .link > span:first-child { text-decoration: underline; text-underline-offset: 4px; }
.tks__more .link .arrow { text-decoration: none; }
/* фото офиса: мягкое приближение при наведении */
.ab__pic--office { overflow: hidden; }
.ab__pic--office img { transition: transform 900ms var(--ease); }
.ab__pic--office:hover img { transform: scale(1.05); }
/* ── Подбор: значки в вариантах и стрелки в кнопках ── */
.quiz svg.qi { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: square; stroke-linejoin: miter; }
.quiz .btn svg.qi { margin-inline: 2px; }
.quiz__nav .btn { display: inline-flex; align-items: center; gap: 8px; }
.qres__lg { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.qres__lg img { max-height: none; max-width: 78%; width: auto; object-fit: contain; object-position: left; }
.qres__lg i { font-style: normal; font-weight: var(--weight-bold); font-size: var(--text-body); }
@media (prefers-reduced-motion: reduce) { .ab__pic--office img { transition: none; } }
.bl__shots--6 { gap: 1.5%; justify-content: center; }
.bl__shots--6 img { margin-left: 0 !important; flex: 0 1 auto; min-width: 0; max-width: 15%; }
/* плашки марок: масштаб считается в сборщике, товары не сжимаются по отдельности — пропорции между ними точные */
.bl__shots, .bl__shots--3, .bl__shots--4, .bl__shots--5, .bl__shots--6 { gap: 5%; justify-content: center; align-items: flex-end; }
.bl__shots img, .bl__shots--1 img, .bl__shots--3 img, .bl__shots--4 img, .bl__shots--5 img, .bl__shots--6 img { flex: none; max-width: none; height: calc(var(--f, 1) * 100%); width: auto; margin-left: 0 !important; }
.bl__shots--wide img + img { margin-left: -10% !important; }
.bl__shots img:nth-child(n) { height: calc(var(--f, 1) * 100%); }
.rmap__base .t-wh { fill: var(--color-ink); stroke: var(--color-bg); stroke-width: 0.9; vector-effect: non-scaling-stroke; }

/* ── 28.11: окна «Запросить оптовый прайс» и «Задать вопрос» — короче, без лишней прокрутки ── */
.dlg--price { width: min(1040px, calc(100vw - 24px)); max-height: min(92vh, 940px); }
.dlg--price .dlg__bar { padding: 14px clamp(20px, 3vw, 40px); }
.dlg--price .dlg__bar h2 { font-size: var(--text-title); }
.dlg--price .dlg__body { padding: 20px clamp(20px, 3vw, 40px) 28px; }
.dlg--price .dlg__lead { margin-bottom: 16px; }
.form--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 16px; }
.form--4 fieldset .checks { margin-top: 8px; }
.form--4 .chip { min-height: 40px; padding: 0 14px; }
.form--4 .input { min-height: 48px; }
.form--4 .field__hint { font-size: var(--text-small); }
.form--4 .form__submit { gap: 10px 20px; flex-wrap: nowrap; }
.form--4 .form__submit .btn { flex: none; }
.form__req { font-style: italic; }
.form__req sup, .field label i[aria-hidden="true"] { font-style: normal; font-weight: 800; color: var(--color-ink); font-size: 1.05em; vertical-align: super; line-height: 0; margin-left: 1px; }
.input--area { min-height: 84px; padding-block: 12px; resize: vertical; line-height: 1.45; font: inherit; }
.qims { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.qims > span { font-weight: var(--weight-medium); margin-right: 4px; }
.qim { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; background: var(--color-ink); color: var(--color-on-dark); text-decoration: none; transition: background-color 200ms var(--ease), transform 200ms var(--ease); }
.qim:hover { background: var(--color-ink-soft); transform: translateY(-1px); }
.qim .ico { width: 18px; height: 18px; }
.qims__or { display: flex; align-items: center; gap: 12px; margin: 14px 0 12px; color: var(--color-muted); font-size: var(--text-small); }
.qims__or::before, .qims__or::after { content: ""; flex: 1; height: 1px; background: var(--color-line); }
.dlg--ask .form__done { padding: 12px 0; }
@media (max-width: 900px) {
  .form--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form--4 .form__submit { flex-wrap: wrap; }
}
@media (max-width: 560px) { .form--4 { grid-template-columns: minmax(0, 1fr); } }

/* своя полоса прокрутки во всех окнах: тонкая, чёрная, без стрелок */
.dlg__body, .rlist { scrollbar-gutter: stable; }
.dlg__body::-webkit-scrollbar, .rlist::-webkit-scrollbar { width: 12px; }
.dlg__body::-webkit-scrollbar-track, .rlist::-webkit-scrollbar-track { background: linear-gradient(90deg, transparent 5px, var(--color-surface-2) 5px, var(--color-surface-2) 7px, transparent 7px); margin-block: 10px; }
.dlg__body::-webkit-scrollbar-thumb, .rlist::-webkit-scrollbar-thumb { background: var(--color-ink); border: 4px solid transparent; background-clip: padding-box; min-height: 48px; }
.dlg__body::-webkit-scrollbar-thumb:hover, .rlist::-webkit-scrollbar-thumb:hover { background-color: var(--color-ink); }
.dlg__body::-webkit-scrollbar-button, .rlist::-webkit-scrollbar-button { display: none; height: 0; }
@supports (-moz-appearance: none) { .dlg__body, .rlist { scrollbar-width: thin; scrollbar-color: var(--color-ink) var(--color-surface-2); } }

/* ── Подвал: «Наверх» под адресом, политика под названием, справа — плашка RRP ── */
.footer__up { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; min-height: 40px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.35); color: var(--color-on-dark); text-decoration: none; font-size: var(--text-small); transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.footer__up span { font-size: 1.1em; transition: transform 200ms var(--ease); }
.footer__up:hover { background: var(--color-bg); color: var(--color-ink); text-decoration: none; }
.footer .footer__up, .footer .footer__up:hover { text-decoration: none; }
.footer__up:hover span { transform: translateY(-2px); }
.footer__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.footer__copy { display: grid; gap: 6px; }
.footer__copy a { width: fit-content; }
/* плашка RRP — в стиле сайта: белая, шрифт сайта, без подчёркиваний; «ПРОМОУШЕН» — коричневый, как перья селезня на утке */
.footer .rrp, .footer .rrp * { text-decoration: none !important; }
.rrp { display: inline-flex; align-items: center; gap: 14px; padding: 12px 20px 12px 14px; background: transparent; color: var(--color-bg); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 0; font-family: var(--font); transition: background-color 250ms var(--ease), border-color 250ms var(--ease); }
.rrp:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.6); }
.rrp img { width: 40px; height: auto; flex: none; transition: transform 400ms var(--ease); }
.rrp:hover img { transform: rotate(-8deg) scale(1.08); }
.rrp-n { display: flex; flex-direction: column; align-items: center; line-height: 1; padding-right: 14px; border-right: 1px solid rgba(255, 255, 255, 0.22); }
.rrp-n b { white-space: nowrap; font-weight: 800; font-size: var(--text-body); letter-spacing: 0.01em; color: var(--color-bg); }
.rrp-n em { white-space: nowrap; font-style: normal; font-weight: 700; font-size: 9.5px; letter-spacing: 0.2em; color: var(--c-rrp-gold); margin-top: 5px; }
.rrp-d { font-size: var(--text-small); line-height: 1.4; color: rgba(255, 255, 255, 0.7); }
.rrp-d b { color: var(--color-bg); font-weight: 600; }
@media (max-width: 640px) { .rrp { gap: 9px; padding: 9px 12px 9px 10px; } .rrp img { width: 30px; } .rrp-n { padding-right: 9px; } .rrp-n b { font-size: var(--text-small); } .rrp-n em { font-size: 7.5px; letter-spacing: 0.16em; } .rrp-d { font-size: 10.5px; } }

/* ── «Вопросы»: бегущая лента товаров в реальном масштабе, без остановки и разрыва ── */
.faq__shots--run { --u: clamp(0.62px, 0.075vw, 0.8px); display: block; height: auto; gap: 0; margin: 0 calc(var(--space-5) * -1) var(--space-3); padding: var(--space-5) 0 0; overflow: hidden; background: none; }
.fm { display: flex; width: max-content; animation: fmrun calc(var(--n) * 2.6s) linear infinite; }
.fm ul { display: flex; align-items: flex-end; gap: 22px; padding: 0 22px 0 0; margin: 0; list-style: none; flex: none; }
.fm li { flex: none; display: block; }
.faq__shots--run img { display: block; height: calc(var(--mm) * var(--u)); width: auto; max-width: none; max-height: none; filter: none; }
@keyframes fmrun { to { transform: translateX(-50%); } }

/* ── Форма прайса: товары плывут вверх в два потока между белой формой и краем блока ── */
.ask__fly { position: absolute; top: 0; bottom: 0; right: 0; left: var(--fly-l, 62%); overflow: hidden; pointer-events: none; }
.fly__col { position: absolute; inset: 0 clamp(12px, 1.6vw, 32px); overflow: hidden; }
.fly__col ul { list-style: none; margin: 0; padding: 0 0 clamp(36px, 3.6vw, 64px); display: flex; flex-direction: column; gap: clamp(36px, 3.6vw, 64px); animation: edgey 64s linear infinite; }
.fly__col li { display: block; padding-left: min(var(--x), calc(100% - 150px)); }
.fly__col li[style*="--up"] { margin-top: calc(-1 * clamp(110px, 10vw, 170px)); }
.fly__col img { display: block; height: calc(var(--mm) * var(--u)); width: auto; max-width: none; max-height: none; rotate: var(--r, 0deg); filter: drop-shadow(0 14px 14px rgba(17, 17, 17, 0.14)); }
.fly__col--front { --u: clamp(0.95px, 0.09vw, 1.3px); }
.fly__col--back { --u: clamp(0.62px, 0.058vw, 0.85px); filter: blur(3px); opacity: 0.5; }
.fly__col--back ul { animation-duration: 120s; gap: clamp(50px, 5vw, 90px); }
@media (max-width: 1080px) { .ask__fly { display: none; } }
@media (prefers-reduced-motion: reduce) { .fm, .fly__col ul { animation: none; } .fm ul + ul, .fly__col ul + ul { display: none; } }

/* мобильная кнопка «Разделы» на компьютере не показывается никогда */
@media (min-width: 1181px) { .snav-btn, .snav-btn:not([hidden]) { display: none !important; } }

/* «Как начать»: товары встают слева от красного значка, на чёрную линию, в пределах колонки «4 Отгрузка» */
.run__out { right: calc(100% + 14px); bottom: calc(50% + 6px); width: min(330px, calc((100vw - 2 * var(--gutter, 24px)) / 4 - 80px)); justify-content: flex-end; gap: 8px; }
.steps2.is-done .run__out img, .steps2.is-done .run__out img:nth-child(2) { height: calc(var(--mm) * 0.42px); }
@media (max-width: 760px) { .run__out { width: 60vw; } .steps2.is-done .run__out img, .steps2.is-done .run__out img:nth-child(2) { height: calc(var(--mm) * 0.26px); } }

/* лента логотипов: пауза только по наведению (класс из v3.js), карточка — с кнопкой «Подробнее о марке» */
/* лента: едет общий «пояс» с двумя одинаковыми рядами, сами ряды стоят */
.logos__belt { display: flex; flex: none; width: max-content; animation: belt 70s linear infinite; will-change: transform; }
.logos__belt .logos__row { animation: none !important; transform: none !important; }
.logos__track--rev .logos__belt { animation-direction: reverse; animation-duration: 90s; }
@keyframes belt { to { transform: translate3d(-50%, 0, 0); } }
.logos__track.is-hold .logos__belt { animation-play-state: paused; }
.logos .lg img { flex: none; }
@media (prefers-reduced-motion: reduce) { .logos__belt { animation: none; } }
.lgtip { pointer-events: auto; }
.lgtip .lgtip__go { justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; min-height: 40px; padding: 0 16px; background: var(--color-ink); color: var(--color-bg); font: inherit; font-size: var(--text-small); font-weight: var(--weight-medium); border: 0; cursor: pointer; transition: background-color 200ms var(--ease); }
.lgtip .lgtip__go:hover { background: var(--color-ink-soft); }

/* «5 направлений»: строка — кнопка-переключатель, переход — только по «Подробнее о направлении» */
button.d5r { width: 100%; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; grid-template-columns: 36px minmax(0, 1fr) auto; }
.d5p figcaption { pointer-events: auto; }
.d5p__go { justify-self: start; display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin-top: 14px; min-height: 44px; padding: 0 18px; background: var(--color-ink); color: var(--color-bg); font-size: var(--text-small); font-weight: var(--weight-medium); text-decoration: none; transition: background-color 200ms var(--ease); }
.d5p__go:hover { background: var(--color-ink-soft); }
.d5p__go span { transition: transform 200ms var(--ease); }
.d5p__go:hover span { transform: translateX(3px); }
.d5p figcaption .d5p__go span { color: inherit; font-size: inherit; max-width: none; line-height: 1; }
.d5p .stg { top: 38%; }

/* «5 направлений»: парфюмерия — флаконы крупнее, сразу под кнопкой с отступом */
.d5p[data-pic="1"] .stg img { height: calc(var(--h) * 100%); }

/* ── Cookie: плашка внизу — чёрная, прямые углы, как подвал; на телефоне — над нижней панелью ── */
.ck { position: fixed; left: 0; right: 0; bottom: 16px; z-index: 70; padding-inline: 16px; pointer-events: none; }
.ck[hidden] { display: none; }
.ck__in { pointer-events: auto; max-width: 1180px; margin-inline: auto; display: flex; align-items: center; gap: 20px 32px; padding: 18px 22px 18px 26px; background: rgba(17, 17, 17, 0.96); color: var(--color-bg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28); transform: translateY(calc(100% + 24px)); opacity: 0; transition: transform 420ms var(--ease), opacity 300ms var(--ease); }
.ck.is-on .ck__in { transform: none; opacity: 1; }
.ck__txt { flex: 1; min-width: 0; }
.ck__txt b { display: block; font-size: var(--text-body); margin-bottom: 4px; }
.ck__txt p { font-size: var(--text-small); line-height: 1.5; color: rgba(255, 255, 255, 0.74); max-width: 62em; }
.ck__txt .link { color: var(--color-bg); }
.ck__btns { display: flex; align-items: center; gap: 10px; flex: none; }
.ck__btns .btn { min-height: 44px; padding: 0 18px; font-size: var(--text-small); white-space: nowrap; }
.ck .btn--ghost { color: var(--color-bg); border-color: rgba(255, 255, 255, 0.6); background: transparent; }
.ck .btn--ghost:hover { background: var(--color-bg); color: var(--color-ink); }
.ck__set { background: none; border: 0; padding: 0 4px; min-height: 44px; font: inherit; font-size: var(--text-small); color: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; white-space: nowrap; }
.ck__set:hover { color: var(--color-bg); text-decoration-thickness: 2px; }
@media (max-width: 900px) {
  .ck__in { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
  .ck__btns { flex-wrap: wrap; }
  .ck__btns .btn { flex: 1 1 calc(50% - 5px); padding: 0 10px; }
  .ck__set { width: 100%; min-height: 36px; text-align: center; }
}
@media (max-width: 760px) { .ck { bottom: calc(var(--tabbar-h, 64px) + 8px); padding-inline: 8px; } .ck__txt p { font-size: var(--text-small); } }
@media (prefers-reduced-motion: reduce) { .ck__in { transition: none; } }
html.has-ck .snav-btn { display: none !important; }

/* окно настроек cookie */
.dlg--ck { width: min(760px, calc(100vw - 24px)); }
.ckf { display: grid; gap: 12px; }
.ckg { border: 1px solid var(--color-line, var(--color-surface-2)); padding: 16px 18px; }
.ckg__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ckg h3 { margin: 0 !important; font-size: var(--text-body); letter-spacing: -0.01em; }
.ckg p { margin-top: 6px; font-size: var(--text-small); color: var(--color-muted); }
.ckg__more { margin-top: 8px; }
.ckg__more summary { cursor: pointer; font-size: var(--text-small); font-weight: var(--weight-medium); width: fit-content; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.ckg__more summary::-webkit-details-marker { display: none; }
.ckg__more summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 200ms var(--ease); }
.ckg__more[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.ckg table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: var(--text-small); }
.ckg th, .ckg td { text-align: left; padding: 7px 8px; border-top: 1px solid var(--color-line, var(--color-surface-2)); vertical-align: top; }
.ckg th { font-weight: var(--weight-medium); color: var(--color-muted); }
.ckg code { font-family: ui-monospace, Consolas, monospace; font-size: var(--text-small); white-space: nowrap; }
.cksw { display: inline-flex; align-items: center; gap: 10px; flex: none; cursor: pointer; font-size: var(--text-small); color: var(--color-muted); }
.cksw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cksw__t { width: 44px; height: 24px; background: var(--color-line-mid); position: relative; transition: background-color 200ms var(--ease); order: 2; }
.cksw__t::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: var(--color-bg); transition: transform 200ms var(--ease); }
.cksw input:checked + .cksw__t { background: var(--color-ink); }
.cksw input:checked + .cksw__t::after { transform: translateX(20px); }
.cksw input:disabled + .cksw__t { background: var(--color-muted); cursor: not-allowed; }
.cksw input:focus-visible + .cksw__t { outline: var(--focus-ring); outline-offset: 2px; }
.ckf__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 6px; }
@media (max-width: 560px) { .ckf__btns .btn { width: 100%; } .ckg { padding: 14px; } .ckg td:nth-child(2), .ckg th:nth-child(2) { display: none; } }

/* подвал: политика и настройки cookie в одну строку */
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer__ck { background: none; border: 0; padding: 0; min-height: var(--tap-min, 44px); font: inherit; color: inherit; cursor: pointer; }
.footer__ck:hover { color: var(--color-bg); }
/* cookie на телефоне: компактнее — две кнопки в ряд, «Настроить» строкой ниже; переключатели не вылезают */
.ck .btn--ghost { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6); border: 0; }
@media (max-width: 900px) {
  .ck__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ck__btns .btn { min-width: 0; padding: 0 8px; font-size: var(--text-small); min-height: 44px; }
  .ck__set { grid-column: 1 / -1; min-height: 32px; font-size: var(--text-small); }
  .ck__txt b { font-size: var(--text-small); margin-bottom: 2px; }
  .ck__in { gap: 10px; padding: 14px; }
}
.ckg__top { align-items: flex-start; }
.ckg h3 { min-width: 0; }
@media (max-width: 560px) { .cksw__l { display: none; } .ckg h3 { font-size: var(--text-body); } }

/* ── rrp-check 29.11 ── */
.ck__short, .ck__set--in { display: none; }
@media (max-width: 560px) {
  .ck__long, .ck__txt b, .ck__btns .ck__set { display: none; }
  .ck__short { display: inline; }
  .ck__set--in { display: inline; min-height: 0; padding: 0 0 0 10px; font-size: inherit; }
  .ck__txt p { font-size: var(--text-small); }
  .ck__in { gap: 10px; padding: 12px; }
}
/* планшет: ряды товаров первого экрана не распирают страницу */
.v1x, .fl { overflow: hidden; max-width: 100vw; }
html, body { overflow-x: clip; }
/* «Все марки ↓» — нормальная зона нажатия */
.logos__head .link { display: inline-flex; align-items: center; min-height: 40px; }
/* первый экран на невысоком телефоне: кнопки над сгибом — ужимаем отступ сверху и подзаголовок, заголовок не трогаем */
@media (max-width: 760px) {
  .v1x__card .hero__cta { display: flex; gap: 8px; flex-wrap: nowrap; }
  .v1x__card .hero__cta .btn { flex: 1 1 0; min-width: 0; padding: 0 10px; font-size: var(--text-small); white-space: nowrap; }
  .v1x__lead { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 760px) and (max-height: 720px) {
  .v1x { padding-top: 16svh; }
  .v1x__lead { -webkit-line-clamp: 3; margin-top: 10px; }
  .v1x__card .hero__cta { margin-top: 14px; }
}
@media (max-width: 900px) { .ck__set.ck__set--in { width: auto; text-align: left; min-height: 0; } }
/* v2, первый экран на телефоне (rrp-check 29.11): обе кнопки над нижней панелью — плашки в одну строку, подзаголовок короче, кнопки в ряд; H1 не трогаем */
@media (max-width: 600px) {
  .v2h__kicker li:not(:last-child) { display: none; }
  .v2h .hero__cta { display: flex; gap: 8px; flex-wrap: nowrap; }
  .v2h .hero__cta .btn { flex: 1 1 0; min-width: 0; padding: 0 10px; font-size: var(--text-small); white-space: nowrap; }
  .v2h__lead { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin-top: 14px; font-size: var(--text-small); }
  .v2h__kicker { margin-bottom: 12px; }
}
@media (max-width: 600px) and (max-height: 700px) { .v2h__lead { -webkit-line-clamp: 3; } .v2h .hero__cta { margin-top: 14px; } }

/* ══ Мобильная адаптация главной (29.11, по стандарту rrp-website): общие правила для телефона ══ */
.lead-m, .tch { display: none; }
.bt__bottles img { height: calc(var(--mm) / 175 * 100%); max-height: 100%; width: auto; mix-blend-mode: normal; }
.bt__bottles img:nth-child(n) { height: calc(var(--mm) / 175 * 100%); }
@media (hover: none) { .hov { display: none; } .tch { display: inline; } }
@media (max-width: 760px) {
  .lead-d { display: none; } .lead-m { display: inline; }
  .v1x__lead, .v2h__lead { display: block; -webkit-line-clamp: unset; overflow: visible; }
  /* плашки условий: две важные (заказ от 10 000 ₽, первая доставка бесплатно) в одну строку */
  .v1x__card .v1h__kicker li:not(:last-child), .v2h__kicker li:not(:last-child) { display: revert; }
  .v1h__kicker, .v2h__kicker { display: flex; flex-wrap: wrap; gap: 6px; }
  .v1h__kicker li:first-child, .v2h__kicker li:first-child { display: none !important; }
  .v1h__kicker li, .v2h__kicker li { font-size: var(--text-small); padding: 5px 8px; white-space: nowrap; }
  /* одна плитка-визуал под первым экраном, без повтора товаров */
  .bt--brand { display: none; }
  /* 5 направлений: вертикальный список компактных карточек — фото слева, текст справа */
  .dcs { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); overflow: visible; contain: none; scroll-snap-type: none; gap: 8px; }
  .dc a { display: grid; grid-template-columns: 38% minmax(0, 1fr); align-items: stretch; }
  .dc__pic { aspect-ratio: auto; min-height: 132px; }
  .dc__pic--stg .stg { top: 10%; bottom: 6%; }
  .dc__over { display: none; }
  .dc__body { padding: 14px 16px; position: relative; }
  .dc__ic { position: absolute; right: 14px; top: 14px; width: 22px; height: 22px; }
  .dc__c { font-size: var(--text-h3); }
  .dc__n { margin-top: 6px; font-size: var(--text-body); }
  .dc__l { margin-top: 4px; font-size: var(--text-small); }
  /* сетка марок: знаки одной оптической высоты */
  .bl__logo img, .bl__top .bl__logo img { height: min(calc(var(--lh, 44px) * 0.72), 34px); max-width: 100%; width: auto; object-fit: contain; object-position: left center; }
  .bl__logo--txt img, .bl__top .bl__logo--txt img { height: 16px; }
  /* «Что получает оптовик»: иконка слева от заголовка, карточки без пустот */
  .pb { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 6px; align-items: center; padding: 16px; }
  .pb .pk__ic { width: 40px; height: 40px; margin: 0; }
  .pb .pk__ic svg { width: 22px; height: 22px; }
  .pb b, .pb--dark b { margin: 0; padding: 0; font-size: var(--text-body); line-height: 1.2; letter-spacing: -0.01em; }
  .pb--dark b { font-size: var(--text-h3); }
  .pb span:last-child { grid-column: 2; margin: 0; font-size: var(--text-small); }
  /* «О компании»: три цифры в ряд, значение сверху, подпись под ним — ряд не ломается */
  .ab__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .ab__facts > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
  .ab__facts dd { margin: 0 0 4px; font-size: var(--text-body); white-space: nowrap; }
  .ab__facts dt { font-size: var(--text-small); line-height: 1.3; }
  /* перевозчики: плитка по 2 в строку */
  .tks ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .tks li { min-width: 0; font-size: var(--text-small); padding: 10px; gap: 4px; }
  .tks li svg { width: 14px; height: 14px; }
  .tks li b { min-width: 0; }
  .tks__more { grid-column: 1 / -1; }
  /* подвал: компактнее — две колонки ссылок, плотные интервалы */
  .footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .footer__grid > .footer__about, .footer__grid > div:last-child { grid-column: 1 / -1; }
  .footer li a, .footer__line a { min-height: 34px; font-size: var(--text-small); }
  .footer h2 { margin-bottom: 6px; }
  .footer__name { margin-top: 32px; }
  .footer__legal { padding-block: 16px 24px; font-size: var(--text-small); }
  .rrp-x { display: none; }
  .rrp { width: 100%; }
}
/* cookie: на телефоне и планшете — одна строка текста и две кнопки пониже */
@media (max-width: 900px) {
  .ck__long, .ck__txt b, .ck__btns .ck__set { display: none; }
  .ck__short { display: inline; }
  .ck__set--in { display: inline; }
  .ck__in { gap: 8px; padding: 10px 12px; }
  .ck__txt p { font-size: var(--text-small); line-height: 1.4; }
  .ck__btns .btn { min-height: 40px; font-size: var(--text-small); }
}
@media (max-width: 760px) {
  .v1h__kicker, .v2h__kicker { flex-direction: row !important; flex-wrap: wrap; align-items: center; }
  .v1h__kicker li, .v2h__kicker li { font-size: var(--text-small); margin: 0; }
  .bl__logo img, .bl__top .bl__logo img { height: min(calc(var(--lh, 44px) * 0.72), 44px); }
  .bl__logo--txt img, .bl__top .bl__logo--txt img { height: 18px; }
}
@media (max-width: 760px) {
  .v1h__kicker li, .v2h__kicker li { padding: 0 7px; min-height: 30px; letter-spacing: -0.01em; }
  .v1h__kicker, .v2h__kicker { gap: 5px; }
}
/* плитка с флаконами: товары не упираются в край */
.bt__bottles { gap: 3%; padding-inline: 5%; }
.bt__bottles img, .bt__bottles img:nth-child(n) { max-width: 21%; object-fit: contain; object-position: 50% 100%; }

/* ══ Мобильная версия, правки Кирилла 26.11 ══════════════════════════════════════════════════════ */
/* шапка телефона: «Евро·Парфюм» · звонок · написать · «Прайс» · меню. Нижней панели больше нет —
   страница уходит под адресную строку браузера до самого края экрана */
.hq { display: none; }
.tabbar { display: none !important; }
@media (max-width: 900px) {
  body { padding-bottom: 0 !important; }
  .hq { display: flex; align-items: center; gap: 6px; margin-left: auto; }
  .hq__i { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 44px; padding: 0; color: var(--color-ink); background: none; border: 0; cursor: pointer; }
  .hq__i svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: square; stroke-linejoin: miter; }
  .hq__i[aria-expanded="true"] { color: var(--color-ink); background: var(--color-surface); }
  .header .hq .btn.hq__p { display: inline-flex; min-height: 40px; padding: 0 14px; margin-left: 6px; font-size: var(--text-small); }
  .header .burger { margin-left: 2px; }
  .sheet { top: calc(var(--header-h-mobile) + 6px); bottom: auto; left: auto; right: 8px; width: min(320px, calc(100vw - 16px)); z-index: 70; padding: 14px; box-shadow: 0 18px 50px rgba(17, 17, 17, 0.2); }
  .snav-btn { bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); }
  .ck { bottom: calc(env(safe-area-inset-bottom, 0px) + 8px) !important; }
}
@media (max-width: 400px) {
  .header .wordmark { font-size: var(--text-lead); }
  .hq__i { width: 34px; }
  .hq { gap: 6px; }
  .header .hq .btn.hq__p { padding: 0 11px; margin-left: 4px; }
}

/* первый экран телефона: на всю высоту экрана (под адресную строку), карточка по центру, товары сверху и снизу;
   подзаголовок — полный, как на компьютере */
@media (max-width: 760px) {
  .v1x { height: auto; max-height: none; min-height: calc(100lvh - var(--header-h-mobile)); align-items: center; padding-block: 24px; }
  .v1x__lead .lead-d { display: inline; }
  .v1x__lead .lead-m { display: none; }
  .v1x__lead { display: block; -webkit-line-clamp: unset; overflow: visible; margin-top: 12px; font-size: var(--text-small); line-height: 1.5; }
  .v1x__card .hero__cta { margin-top: 18px; }
}
/* плашки над заголовком — одной высоты, на одной линии */
@media (max-width: 760px) {
  .v1h__kicker, .v2h__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
  .v1h__kicker li, .v2h__kicker li { display: inline-flex; align-items: center; height: 30px; min-height: 0; margin: 0; padding-block: 0; line-height: 1; vertical-align: middle; box-sizing: border-box; }
  .v1x__card .v1h__kicker { padding-inline: 0; padding-top: 0; }
  .v1x__card .v1h__kicker li:not(:first-child), .v2h__kicker li:not(:first-child) { display: inline-flex; }
}
@media (max-width: 380px) {
  .v1h__kicker li, .v2h__kicker li { font-size: var(--text-small); padding: 0 6px; }
  .v1h__kicker, .v2h__kicker { gap: 4px; }
}
/* раскрытое направление: сначала текст и кнопка, под ними товары */
@media (max-width: 760px) {
  .d5__list .d5p.is-on { display: flex; flex-direction: column; }
  .d5__list .d5p figcaption { order: -1; }
  .d5__list .d5p .d5p__go { margin-top: 12px; }
}

/* лента логотипов: подчёркивание всегда под знаком (а не поверх), без рамок фокуса по краям при касании */
.logos .lg { flex-direction: column; gap: 8px; }
.logos .lg::after { position: static; transform: none; flex: none; left: auto; bottom: auto; }
.logos .lg:focus { outline: none; }
.logos .lg:focus-visible { outline: 2px solid var(--color-ink); outline-offset: -6px; }
.logos .lg.is-tap::after { width: 32px; }
.logos .lg.is-tap img { filter: none; opacity: 1; }
@media (hover: none) { .logos .lg:focus-visible { outline: none; } }

/* «5 направлений» на телефоне — аккордеон: полка раскрывается прямо под нажатым направлением,
   кнопка «Подробнее» и товары идут друг под другом, ничего не перекрывается */
@media (max-width: 760px) {
  .d5 { display: block; }
  .d5__view { display: none; }
  .d5__list { grid-auto-rows: auto; }
  .d5__list li { display: block; }
  .d5__list li > .d5r { width: 100%; }
  .d5__list .d5p { position: static; inset: auto; display: none; opacity: 1; visibility: visible; background: var(--color-bg); margin-top: 1px; overflow: hidden; }
  .d5__list .d5p.is-on { display: flex; flex-direction: column; animation: d5open 320ms var(--ease) both; }
  .d5__list .d5p figcaption { position: static; padding: 16px 16px 0; }
  .d5__list .d5p .stg { position: relative; inset: auto; top: auto; bottom: auto; height: 230px; margin-top: 20px; padding: 0 12px 18px; }
  .d5__list .d5p .stg img { transform: none; opacity: 1; }
  .d5r .d5r__x { display: inline-block; }
}
.d5r__x { display: none; grid-row: 1; grid-column: 4; justify-self: end; font-size: var(--text-lead); line-height: 1; transition: transform 200ms var(--ease); }
.d5r.is-on .d5r__x { transform: rotate(45deg); }
@keyframes d5open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { button.d5r { grid-template-columns: 28px minmax(0, 1fr) auto 20px; } }

/* «23 марки» на телефоне: нажатие раскрывает марку на всю ширину под её рядом — товары, описание, кнопка */
@media (max-width: 760px), (hover: none) {
  .brands--logo .bl__over { display: none !important; }
}
.blx { grid-column: 1 / -1; display: grid; gap: 10px; padding: 18px 16px 16px; background: var(--color-bg); border-top: 3px solid var(--brand-c, var(--color-ink)); animation: d5open 320ms var(--ease) both; }
.blx__n { font-size: var(--text-lead); font-weight: var(--weight-bold); letter-spacing: -0.02em; line-height: 1.15; }
.blx__d { font-size: var(--text-small); line-height: 1.45; color: var(--color-muted); }
.blx__shots { display: flex; align-items: flex-end; justify-content: center; gap: 4%; height: 210px; margin-block: 6px 4px; }
.blx__shots img { height: calc(var(--f, 1) * 100%); width: auto; max-width: 46%; flex: 0 1 auto; min-width: 0; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 6px 8px rgba(17, 17, 17, 0.16)); }
.blx .btn { justify-self: start; }
.bl.is-open { background: var(--color-bg); box-shadow: inset 0 -3px 0 var(--brand-c, var(--color-ink)); }

/* последняя клетка сетки: «Не нашли нужную марку?» */
.bl--ask { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(16px, 2vw, 24px); background: var(--color-ink); color: var(--color-bg); }
.bl--ask b { font-size: var(--text-lead); letter-spacing: -0.02em; line-height: 1.15; }
.bl--ask span { font-size: var(--text-small); line-height: 1.45; color: rgba(255, 255, 255, 0.72); }
.bl--ask .btn { margin-top: auto; }
.bl--ask[hidden] { display: none; }
@media (max-width: 760px) { .bl--ask span { font-size: var(--text-small); } .bl--ask .btn { min-height: 40px; padding: 0 14px; font-size: var(--text-small); } }

/* ══ Мобильная версия, вторая серия правок 27.11 ══ ═════════════════════════════════════════════════════════ */
/* первый экран: товары ближе к шапке и к низу экрана, заголовок крупнее — во всю ширину карточки */
@media (max-width: 760px) {
  .v1x { padding-block: 12px; }
  .v1x--nb { --rh: 44vw; }
  .fl--nb { padding-block: 4px; }
  .fl--nb .fl__row:first-child { align-self: start; }
  .fl--nb .fl__row:last-child { align-self: end; }
  .v1x__title { font-size: clamp(2.375rem, 11.6vw, 3.25rem); line-height: 0.95; }
}
/* шапка телефона: значки и «Прайс» плотной группой у меню, кнопка — компактная */
@media (max-width: 900px) {
  .hq { gap: 2px; }
  .hq__i { width: 36px; height: 40px; }
  .hq__i svg { width: 21px; height: 21px; }
  .header .hq .btn.hq__p { min-height: 32px; padding: 0 11px; margin-left: 6px; font-size: var(--text-small); letter-spacing: 0; }
  .header .burger { margin-left: 4px; margin-right: -10px; }
}
/* окно «Выберите удобный способ связи» — по центру, сайт под ним размыт */
.dlg--im { width: min(420px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 28px 22px 22px; text-align: center; color: var(--color-bg);
  background: linear-gradient(160deg, rgba(40, 38, 36, 0.92), rgba(17, 17, 17, 0.94)); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); overflow: auto; }
.dlg--im[open] { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dlg--im::backdrop { background: rgba(17, 17, 17, 0.42); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.imd__mark { font-size: var(--text-lead); font-weight: 800; letter-spacing: -0.03em; }
.imd__mark i { color: #D9141E; font-style: normal; }
.dlg--im h2 { font-size: var(--text-h3); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
.dlg--im h2 em { font-style: normal; color: rgba(255, 255, 255, 0.62); font-weight: 500; }
.imd__lead { font-size: var(--text-small); line-height: 1.45; color: rgba(255, 255, 255, 0.72); max-width: 30em; }
.imd__list { display: grid; gap: 10px; width: 100%; margin-top: 6px; }
.imw { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; text-align: left; color: var(--color-bg); text-decoration: none;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16); transition: background-color 200ms var(--ease), border-color 200ms var(--ease), transform 200ms var(--ease); }
.imw:hover, .imw:focus-visible { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.32); }
.imw:active { transform: scale(0.98); }
.imw__i { width: 48px; height: 48px; display: grid; place-items: center; color: var(--color-bg); }
.imw__i svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.imw--max .imw__i { background: linear-gradient(135deg, var(--c-max-1), var(--c-max-2)); }
.imw--whatsapp .imw__i { background: var(--c-whatsapp); }
.imw--telegram .imw__i { background: var(--c-telegram); }
.imw--email .imw__i { background: var(--color-bg); color: var(--color-ink); }
.imw__t { display: grid; gap: 2px; }
.imw__t b { font-size: var(--text-body); }
.imw__t small { font-size: var(--text-small); color: rgba(255, 255, 255, 0.62); line-height: 1.3; }
.imw__go { font-size: var(--text-body); color: rgba(255, 255, 255, 0.5); }
.imd__x { margin-top: 6px; min-height: 40px; padding: 0 22px; color: var(--color-bg); background: none; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; font: inherit; font-size: var(--text-small); cursor: pointer; }
.imd__x:hover { border-color: var(--color-bg); }
/* окна закрываются плавно; затемнение появляется плавно */
.dlg[open]::backdrop { animation: bdin 320ms var(--ease); }
.dlg.is-closing { animation: dlgout 220ms var(--ease) forwards; }
.dlg.is-closing::backdrop { animation: bdout 220ms var(--ease) forwards; }
@keyframes dlgout { to { opacity: 0; transform: translateY(16px); } }
@keyframes bdin { from { opacity: 0; } }
@keyframes bdout { to { opacity: 0; } }
.dlg--sheet[open] { animation: sheetin 380ms cubic-bezier(.2, .8, .2, 1); }
@keyframes sheetin { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dlg[open]::backdrop, .dlg.is-closing, .dlg.is-closing::backdrop, .dlg--sheet[open] { animation: none; } }
/* «Что получает оптовик»: цифра и короткая подпись в одну строку */
@media (max-width: 760px) {
  .pr__t { white-space: nowrap; }
}
/* «Как начать работать» на телефоне: линия прогресса — вертикально слева от шагов, товары появляются под шагом 4 */
.sts__out { display: none; }
@media (max-width: 760px) {
  .steps2 { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 8px; }
  .steps2 .track { grid-column: 1; grid-row: 1; justify-self: center; align-self: stretch; width: 4px; height: auto; margin: 0; }
  .steps2 .track__fill { right: 0; width: auto; height: calc(var(--p, 0) * 100%); bottom: auto; }
  .steps2 .run { left: 50%; top: clamp(22px, calc(var(--p, 0) * 100%), calc(100% - 22px)); width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .steps2 .run__ic svg { width: 24px; height: 24px; }
  .steps2 .run__out { display: none; }
  .steps2 .sts { grid-column: 2; grid-row: 1; }
  .sts__out { grid-column: 1 / -1; display: flex; align-items: flex-end; justify-content: space-between; gap: 2%; height: 0; overflow: hidden; opacity: 0; transition: height 520ms var(--ease), opacity 360ms var(--ease), margin 520ms var(--ease); }
  .sts__out img { height: calc(var(--mm) / 236 * 100%); width: auto; min-width: 0; flex: 0 1 auto; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 8px 10px rgba(17, 17, 17, 0.16)); }
  .steps2.is-done .sts__out { height: 150px; opacity: 1; margin-top: 20px; }
}
/* подбор: на телефоне — больше товаров, ряд на всю ширину */
.quiz__pics .qm { display: none; }
@media (max-width: 760px) { .quiz__pics .qm { display: block; } }
/* набор из подбора в форме — сбрасывается крестиком */
.form__picked { position: relative; padding-right: 44px !important; }
.form__unpick { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--color-ink); font-size: var(--text-h3); line-height: 1; cursor: pointer; opacity: 0.6; transition: opacity 200ms; }
.form__unpick:hover, .form__unpick:focus-visible { opacity: 1; }
/* перевозчики: «и ещё около 20» — в свободной клетке рядом с последней компанией */
@media (max-width: 760px) {
  .tks__more { grid-column: auto; display: flex; align-items: center; justify-content: center; }
}
/* подвал: политика и cookie — друг под другом с небольшим шагом; снизу место под кнопку «Разделы» */
@media (max-width: 760px) {
  .footer__links { display: grid; gap: 2px; justify-items: start; }
  .footer__links a, .footer__links button { min-height: 26px; height: 26px; display: inline-flex; align-items: center; }
  .footer { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); }
}

/* ══ Третья серия 27.11: плавность, «Разделы», шапка, перевозчики ══════════════════════════ */
/* «Разделы главной страницы»: шторка выезжает снизу плавно, у пунктов — значки */
.dlg--sheet[open] { animation: sheetup 420ms cubic-bezier(.2, .85, .2, 1); }
.dlg--sheet.is-closing { animation: sheetdown 260ms cubic-bezier(.4, 0, .8, .4) forwards; }
@keyframes sheetup { from { opacity: 0.4; transform: translateY(60%); } to { opacity: 1; transform: none; } }
@keyframes sheetdown { to { opacity: 0; transform: translateY(50%); } }
.snav-list a { display: flex; align-items: center; gap: 12px; }
.snav__ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: square; stroke-linejoin: miter; opacity: 0.85; }
.snav-list .snav__n { display: none; }
@media (prefers-reduced-motion: reduce) { .dlg--sheet[open], .dlg--sheet.is-closing { animation: none; } }
/* шапка телефона: звонок, сообщение, «Прайс» и меню — одной высоты, на равном расстоянии (как у FIN GID) */
@media (max-width: 900px) {
  .hq { gap: 8px; margin-left: auto; }
  .hq__i, .header .burger { width: 38px; height: 38px; margin: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(17, 17, 17, 0.14); background: var(--color-bg); transition: border-color 200ms var(--ease), background-color 200ms var(--ease); }
  .hq__i:hover, .header .burger:hover { border-color: rgba(17, 17, 17, 0.4); }
  .hq__i svg { width: 18px; height: 18px; stroke-width: 3.2; }
  .header .burger { margin-left: 8px; }
  .header .burger span { width: 18px; box-shadow: 0 6px 0 var(--color-ink), 0 -6px 0 var(--color-ink); }
  .header .burger[aria-expanded="true"] span { box-shadow: none; }
  .header .burger[aria-expanded="true"] span::after { width: 18px; }
  .header .hq .btn.hq__p { height: 38px; min-height: 38px; margin: 0; padding: 0 14px; font-size: var(--text-small); }
}
@media (max-width: 380px) {
  .hq { gap: 6px; }
  .hq__i, .header .burger, .header .hq .btn.hq__p { height: 36px; min-height: 36px; }
  .hq__i, .header .burger { width: 36px; }
  .header .burger { margin-left: 6px; }
  .header .hq .btn.hq__p { padding: 0 11px; }
}
/* перевозчики на телефоне: значки сверху, название под ними — длинные названия влезают, строки плотнее */
@media (max-width: 760px) {
  .tks--ic li:not(.tks__more) { flex-wrap: wrap; align-content: center; row-gap: 4px; padding: 10px 12px; }
  .tks--ic li:not(.tks__more) b { flex: 1 0 100%; font-size: var(--text-small); line-height: 1.15; letter-spacing: -0.015em; overflow-wrap: anywhere; }
}

/* ══ 27.11, после rrp-check на сервере: зоны нажатия в шапке 40 px, направления не слипаются ══ */
@media (max-width: 900px) {
  .hq__i, .header .burger { width: 40px; height: 40px; }
  .header .hq .btn.hq__p { height: 40px; min-height: 40px; }
}
@media (max-width: 380px) {
  .hq { gap: 6px; }
  .hq__i, .header .burger { width: 40px; height: 40px; min-height: 40px; }
  .header .hq .btn.hq__p { height: 40px; min-height: 40px; padding: 0 10px; }
  .header .burger { margin-left: 6px; }
}
.d5__list { gap: 6px; }
/* значки шапки не сжимаются; на узких телефонах ужимаем промежутки, а не кнопки */
@media (max-width: 900px) {
  .hq__i, .header .burger, .header .hq .btn.hq__p { flex: none; }
  .header .burger { margin-right: 0; }
}
@media (max-width: 380px) {
  .header__in { gap: 8px; }
  .header .hq .btn.hq__p { padding: 0 9px; font-size: var(--text-small); }
}
@media (max-width: 900px) {
  .header__in { gap: 8px; }
  .header .burger, .header .hq .btn.hq__p { margin-left: 0; }
}
@media (max-width: 380px) { .hq { gap: 6px; } .header .burger { margin-left: 0; } }
@media (max-width: 380px) { .header__in { gap: 6px; } .header .hq .btn.hq__p { padding: 0 8px; } }

/* ══ 27.11, правки Кирилла: стопка «Что получает оптовик», гайд в форме, кнопка гайда ══ */
/* стопка: карточки липнут под шапкой (60 px + 12) с шагом 8 px — видно край каждой предыдущей */
@media (max-width: 760px) {
  .sec--perks .prs.is-stack { gap: 14px; }
  .sec--perks .prs.is-stack .pr { position: sticky; top: calc(var(--header-h-mobile) + 12px + var(--k) * 8px); transform-origin: 50% 0;
    align-content: start; box-shadow: 0 -1px 0 rgba(17, 17, 17, 0.06), 0 -12px 24px -16px rgba(17, 17, 17, 0.28); }
  .sec--perks .prs.is-stack .pr:first-child { box-shadow: none; }
}
/* кнопка на «Спасибо»: две строки, перенос после двоеточия */
.btn.btn--2l { flex-direction: column; align-items: center; height: auto; min-height: 56px; padding-block: 10px; line-height: 1.25; white-space: normal; text-align: center; gap: 0; }
.btn.btn--2l span { display: block; }
/* форма прайса: серый блок про гайд, под ним два ровных столбика */
.sec--askpic .ask__side { display: block; margin-bottom: var(--space-6); }
.sec--askpic .ask__side > * + * { margin-top: var(--space-4); }
.gift { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; background: var(--color-surface); padding: 20px 24px; }
.gift__ic { width: 40px; height: 40px; fill: none; stroke: var(--color-ink); stroke-width: 2.6; stroke-linecap: square; }
.gift__h { font-weight: 700; font-size: var(--text-body); line-height: 1.3; letter-spacing: -0.01em; color: var(--color-ink); }
.gift__lead { margin-top: 6px; color: var(--color-muted); }
.gift__list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.gift__list li { position: relative; padding-left: 20px; line-height: 1.4; }
.gift__list li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 8px; height: 8px; background: var(--color-ink); }
.ask__meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 32px; align-items: start; }
.ask__meta p { margin: 0; padding-top: 12px; border-top: 1px solid rgba(17, 17, 17, 0.12); line-height: 1.45; }
.ask__meta b { display: block; margin-bottom: 2px; color: var(--color-ink); }
@media (max-width: 760px) {
  .gift { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px; }
  .gift__ic { width: 32px; height: 32px; }
  .gift__h { font-size: var(--text-body); }
  .ask__meta { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

/* 27.11: картинки марок в мобильном меню — в Safari (iPhone) вертикальные флаконы растягивались по ширине рамки
   и обрезались снизу. Рамка задана явно по обеим сторонам, картинка вписывается целиком */
.ms__brand .ms__thumb img, .ms__row .ms__thumb img { width: 100%; height: 100%; max-width: none; max-height: none; min-width: 0; min-height: 0; flex: none; object-fit: contain; object-position: 50% 100%; }

/* ══ 27.11, серия Кирилла 03:18: активная карточка стопки — чёрная ══ */
@media (max-width: 760px) {
  .sec--perks .prs.is-stack .pr { transition: background-color 260ms var(--ease), color 260ms var(--ease); }
  .sec--perks .prs.is-stack .pr:hover:not(.is-act) { background: var(--color-bg); color: var(--color-ink); }
  .sec--perks .prs.is-stack .pr:hover:not(.is-act) .pr__s { color: var(--color-ink); }
  .sec--perks .prs.is-stack .pr.is-act { background: var(--color-ink); color: var(--color-on-dark); }
  .sec--perks .prs.is-stack .pr.is-act .pr__s { color: var(--color-on-dark-muted); }
}
/* подбор: ряд товаров на телефоне — от края до края на любой ширине (на 430 px справа оставалась пустота) */
@media (max-width: 760px) {
  .quiz__pics { --u: clamp(0.36px, 0.108vw, 0.62px); justify-content: space-between; gap: 4px; flex-wrap: nowrap; overflow: visible; }
  .quiz__pics img { flex: 0 1 auto; min-width: 0; }
}
/* подвал: реквизиты — одним абзацем; ссылки под палец — только у прямых ссылок, не у текста внутри */
.footer__legal span a, .footer__legal span a[href^="tel"] { min-height: 0; display: inline; color: inherit; text-decoration: none; }
/* окно мессенджеров: вместо кнопки «Закрыть» — тонкий крестик в правом верхнем углу (закрыть можно и тапом мимо окна) */
/* (27.11) position: relative у окна убрано: модальное окно и так «плавает» и держит крестик; relative ставило его в начало страницы и прокручивало туда */
.dlg--im .imd__x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: transparent; display: inline-flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.72); cursor: pointer;
  transition: color 200ms var(--ease), transform 300ms var(--ease); order: -1; }
.dlg--im .imd__x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: square; }
.dlg--im .imd__x:hover, .dlg--im .imd__x:focus-visible { color: var(--color-bg); transform: rotate(90deg); }
/* перевозчики: значок «i» в правом верхнем углу карточки и подсказка с особенностями */
.tks--ic li[data-tk] { position: relative; cursor: pointer; padding-right: 36px; }
.tk__i { position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center;
  border: 1.4px solid currentColor; border-radius: 50%; font: 700 11px/1 var(--font-body, inherit); font-style: italic; opacity: 0.55; transition: opacity 200ms var(--ease); }
.tks--ic li[data-tk]:hover .tk__i, .tks--ic li[data-tk].is-tip .tk__i { opacity: 1; }
.tks--ic li[data-tk].is-tip { background: var(--color-ink); color: var(--color-on-dark); }
.tks--ic li[data-tk]:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 2px; }
.tktip { width: min(320px, calc(100vw - 24px)); display: grid; gap: 10px; }
.tktip__l { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tktip__l li { position: relative; padding-left: 16px; font-size: var(--text-small); line-height: 1.4; color: var(--color-ink); }
.tktip__l li::before { content: ""; position: absolute; left: 1px; top: 0.5em; width: 6px; height: 6px; background: var(--color-ink); }
.tktip .lgtip__go { text-decoration: none; }
@media (max-width: 760px) {
  .tks--ic li[data-tk] { padding-right: 30px; }
  .tk__i { top: 6px; right: 6px; width: 16px; height: 16px; font-size: 10px; }
}
@media (max-width: 760px) {
  .tks--ic li[data-tk]:not(.tks__more) { padding-right: 12px; }
  .tk__i { top: 9px; right: 9px; }
}
/* 27.11 (Кирилл): «i» вдвое меньше, аккуратно в углу; пункты подсказки — простым столбиком с тонкими разделителями */
.tk__i, .tks--ic li[data-tk] .tk__i { top: 6px; right: 6px; width: 11px; height: 11px; border-width: 1px; font-size: 7.5px; font-style: normal; font-weight: 700; letter-spacing: 0; opacity: 0.45; }
.tks--ic li[data-tk]:not(.tks__more) { padding-right: 20px; }
@media (max-width: 760px) { .tk__i, .tks--ic li[data-tk] .tk__i { top: 6px; right: 6px; } .tks--ic li[data-tk]:not(.tks__more) { padding-right: 12px; } }
.tktip__l { gap: 0; }
.tktip__l li { padding: 8px 0 0 0; margin-top: 8px; border-top: 1px solid rgba(17, 17, 17, 0.1); font-size: var(--text-small); line-height: 1.4; }
.tktip__l li:first-child { margin-top: 0; }
.tktip__l li::before { content: none; }
.tktip .tktip__m { display: flex; flex-wrap: wrap; gap: 6px; }

/* ══ 27.11, выдержанный стиль (разбор, раздел 15) ══ */
/* условия v2: заголовки плиток — на одной высоте, сразу под значком; широкая светлая плитка — значок слева, текст справа */
@media (min-width: 761px) {
  .pb b { margin-top: var(--space-5); padding-top: 0; }
  .pb--wide:not(.pb--dark) { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: var(--space-5); align-content: start; }
  .pb--wide:not(.pb--dark) .pk__ic { grid-row: 1 / 3; }
  .pb--wide:not(.pb--dark) b { margin-top: 0; align-self: end; }
  .pb--wide:not(.pb--dark) span:last-child { grid-column: 2; }
}
/* ритм фонов в конце страницы: «О компании» белая → «Вопросы» серая → форма бежевая (на телефоне — белая, чтобы не слиться с серыми «Вопросами») */
@media (max-width: 760px) { .sec--askprod, .sec--askpic.sec--askprod { background: var(--color-bg); } }
/* сетка марок: логотипы одного оптического веса — знаки по плотности чернил (home3.logo_h), названия, набранные шрифтом сайта, — одной высоты */
@media (min-width: 761px) { .bl__logo--txt img, .bl__top .bl__logo--txt img { height: var(--lh); } }
@media (max-width: 760px) { .bl__logo--txt img, .bl__top .bl__logo--txt img { height: calc(var(--lh) * 0.64); } }
/* v2, плитка с флаконами: ряд целиком в плитке — общий коэффициент --fit считает v3.js, пропорции из каталога сохраняются */
.bt--photo .sw--stg .stg img { height: calc(var(--h) * var(--fit, 1) * 100%); }
/* cookie на компьютере — компактная карточка в правом нижнем углу: не закрывает кнопки первого экрана на 1366×657 */
@media (min-width: 761px) {
  .ck { left: auto; right: 16px; bottom: 16px; width: min(420px, calc(100vw - 32px)); padding-inline: 0; }
  .ck__in { flex-direction: column; align-items: stretch; gap: 14px; padding: 20px 22px; max-width: none; }
  .ck__btns { flex-wrap: wrap; gap: 8px; }
  .ck__btns .btn { flex: 1 1 auto; }
}
/* подвал: «Политика…» и «Настройки cookie» — на одной базовой линии */
.footer__links { display: flex; flex-wrap: wrap; align-items: center; }
.footer__legal .footer__links > a, .footer__legal .footer__links > .footer__ck { display: inline-flex; align-items: center; min-height: 26px; margin: 0; padding: 0; font: inherit; line-height: 1.3; vertical-align: middle; }

/* ══ 27.11, правки Кирилла (вечер) ══ */
/* крестик в карточке марки (лента) и в подсказке перевозчика */
.lgtip { position: fixed; }
.lgtip .tip__x { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border: 0; background: transparent; color: var(--color-muted); cursor: pointer; transition: color 200ms var(--ease), transform 300ms var(--ease); }
.lgtip .tip__x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; }
.lgtip .tip__x:hover, .lgtip .tip__x:focus-visible { color: var(--color-ink); transform: rotate(90deg); }
.lgtip .lgtip__n { padding-right: 32px; }
/* подбор: «Запросить прайсы / этих марок» — две строки, значок справа по центру */
.btn.btn--2l.qbtn { flex-direction: row; justify-content: center; gap: 12px; }
.btn.btn--2l.qbtn > span { display: block; text-align: center; line-height: 1.2; }
.btn.btn--2l.qbtn > svg { flex: none; }
/* карта: скотч на коробке «Евро·Парфюм» снова красный (Кирилл) — коробка бренда, как кабина машинки */
.rmap__parcel .p-tape { stroke: var(--color-action); }
/* гайд в форме, телефон: заголовок справа от значка, текст и список — под ними на всю ширину */
@media (max-width: 760px) {
  .gift { grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; row-gap: 0; align-items: center; }
  .gift > div { display: contents; }
  .gift__ic { grid-column: 1; grid-row: 1; align-self: start; }
  .gift__h { grid-column: 2; grid-row: 1; }
  .gift__lead, .gift__list { grid-column: 1 / -1; }
  .gift__lead { margin-top: 10px; }
}
/* подвал, компьютер: реквизиты — левой колонкой в несколько ровных строк, плашка RRP — справа под «Парфюм» (как было) */
@media (min-width: 900px) {
  .footer__legal { flex-wrap: nowrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
  .footer__copy { flex: 0 1 620px; min-width: 0; }
  .footer__legal > .rrp, .footer__legal .rrp { flex: none; }
}

/* Меню «Марки» v2. Значения — из tokens.css.
   Компьютер: направления → марки → превью товаров марки.
   Телефон: меню в два шага, каждый шаг — один экран без прокрутки. */

:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); /* раскрытие: быстро в начале, мягко в конце */
  --mm-row: 60px;
}
@media (prefers-reduced-motion: reduce) { :root { --ease-out: linear; } }

/* ── Компьютер ─────────────────────────────────────────── */
.mm {
  position: absolute; left: 0; right: 0; top: 100%; z-index: var(--z-menu);
  background: var(--color-bg); box-shadow: var(--shadow-float);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 420ms var(--ease-out);
}
.mm.is-open { clip-path: inset(0 0 -60px 0); }
.mm__in {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  padding-block: var(--space-6);
  max-height: calc(100dvh - var(--header-h) - 56px); overflow-y: auto; overscroll-behavior: contain;
}
.mm__dirs { grid-column: 1 / span 4; }
.mm__lists { grid-column: 5 / span 4; }
.mm__stage { grid-column: 9 / span 4; }

/* появление содержимого: колонки по очереди */
.mm__dirs, .mm__lists, .mm__stage { opacity: 0; transform: translateY(8px); transition: opacity var(--dur) var(--ease), transform 520ms var(--ease-out); }
.mm.is-open .mm__dirs { opacity: 1; transform: none; transition-delay: 60ms; }
.mm.is-open .mm__lists { opacity: 1; transform: none; transition-delay: 110ms; }
.mm.is-open .mm__stage { opacity: 1; transform: none; transition-delay: 160ms; }

/* направления */
.mm__dirs ul { display: grid; gap: 2px; }
/* как список направлений на главной: значок, открытое направление — чёрная строка */
.mm__dir {
  display: flex; align-items: center; gap: var(--space-4); min-height: 64px; padding: 0 var(--space-4);
  font-size: var(--text-body); font-weight: var(--weight-medium); letter-spacing: -0.01em; line-height: 1.2;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.mm__ic { width: 28px; height: 28px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.mm__dname { flex: 1; }
.mm__count { font-size: var(--text-small); font-weight: var(--weight-regular); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.mm__dir:hover { background: var(--color-surface); }
.mm__dir[aria-current="true"] { background: var(--color-ink); color: var(--color-on-dark); }
.mm__dir[aria-current="true"] .mm__count { color: var(--color-on-dark-muted); }
.mm__dir[aria-current="true"]:focus-visible { outline-color: var(--color-ink); }

/* марки направления */
.mm__lists { position: relative; }
.mm__list ul { display: grid; grid-template-columns: minmax(0, 1fr); }
.mm__list.is-in li { animation: mm-in 360ms var(--ease-out) both; }
.mm__list.is-in li:nth-child(2) { animation-delay: 25ms; } .mm__list.is-in li:nth-child(3) { animation-delay: 50ms; }
.mm__list.is-in li:nth-child(4) { animation-delay: 75ms; } .mm__list.is-in li:nth-child(5) { animation-delay: 100ms; }
.mm__list.is-in li:nth-child(6) { animation-delay: 125ms; } .mm__list.is-in li:nth-child(7) { animation-delay: 150ms; }
.mm__list.is-in li:nth-child(8) { animation-delay: 175ms; }
@keyframes mm-in { from { opacity: 0; transform: translateX(-8px); } }

.mm__ltitle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mm__brand {
  display: grid; grid-template-columns: minmax(0, 1fr) 16px; grid-template-rows: auto auto; column-gap: var(--space-4);
  align-items: center; min-height: var(--mm-row); padding: var(--space-2) var(--space-4);
  transition: background-color var(--dur-fast) var(--ease);
}
.mm__bname { font-size: var(--text-body); font-weight: var(--weight-medium); letter-spacing: -0.01em; line-height: 1.25; }
.mm__bwhat { grid-row: 2; font-size: var(--text-small); color: var(--color-muted); line-height: 1.35; }
.mm__arr { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; }
.mm__brand .mm__arr { grid-row: 1 / 3; grid-column: 2; opacity: 0; transform: translateX(-6px); transition: opacity var(--dur-fast) var(--ease), transform var(--dur) var(--ease-out); }
.mm__brand:hover, .mm__brand.is-on { background: var(--color-surface); }
.mm__brand:hover .mm__arr, .mm__brand.is-on .mm__arr { opacity: 1; transform: none; }

.mm__all, .mm__more {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap-min);
  font-weight: var(--weight-medium); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em;
}
.mm__all { margin: var(--space-3) var(--space-4) 0; }
.mm__all:hover, .mm__more:hover { text-decoration-thickness: 2px; }
.mm__all:hover .mm__arr, .mm__more:hover .mm__arr { transform: translateX(3px); }
.mm__all .mm__arr, .mm__more .mm__arr { transition: transform var(--dur-fast) var(--ease); }

/* превью: товары марки на подложке в её цвете */
.mm__stage { position: relative; min-height: 520px; }
.mm__pv {
  position: absolute; inset: 0; margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto;
  background: color-mix(in oklab, var(--brand-c, var(--color-ink)) 11%, var(--color-surface));
  box-shadow: inset 0 calc(var(--brand-line-w) * -1) 0 var(--brand-c, transparent);
  opacity: 0; visibility: hidden; transition: opacity 240ms var(--ease), visibility 0s linear 240ms;
}
.mm__pv.brand--red { background: var(--color-surface); }
.mm__pv--dir { background: var(--color-surface); box-shadow: none; }
.mm__pv.is-on { opacity: 1; visibility: visible; transition: opacity 240ms var(--ease), visibility 0s; }

/* Товары — та же сборка, что на главной: высоты из catalog.py (мм), без ручной подгонки.
   Полка направления = home3.stage() (--h), плашка марки = BL_SHOTS (--f). */
.mm__shelf { position: relative; min-height: 0; }
.mm__shots, .mm .stg {
  position: absolute; inset: var(--space-6) var(--space-5) var(--space-4); margin: 0; padding: 0; background: none;
  display: flex; align-items: flex-end; justify-content: center;
}
.mm__shots { gap: 5%; }
.mm__shots img {
  flex: none; height: calc(var(--f, 1) * 100%); width: auto; max-width: none; max-height: none;
  object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 8px 10px rgba(17, 17, 17, 0.16));
}
.mm__shots--wide img + img { margin-left: -10%; }
.mm .stg { gap: 2.5%; inset: var(--space-7) 4% var(--space-4); }
.mm .stg img {
  flex: 0 1 auto; min-width: 0; height: calc(var(--h, 1) * 100%); width: auto; max-width: none;
  object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 10px 12px rgba(17, 17, 17, 0.12));
  opacity: 1; transform: none; transition: none;
}
.mm .mm__pv[data-pic="1"] .stg { gap: 4%; padding-inline: 4%; }
.mm__pv.is-on .mm__shots img, .mm__pv.is-on .stg img { animation: mm-up 560ms var(--ease-out) both; }
.mm__pv.is-on img:nth-child(2) { animation-delay: 40ms; } .mm__pv.is-on img:nth-child(3) { animation-delay: 80ms; }
.mm__pv.is-on img:nth-child(4) { animation-delay: 120ms; } .mm__pv.is-on img:nth-child(n+5) { animation-delay: 160ms; }
@keyframes mm-up { from { opacity: 0; transform: translateY(16px); } }

.mm__cap { padding: var(--space-4) var(--space-5) var(--space-5); display: grid; gap: var(--space-3); }
.mm__cap-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 32px; }
.mm__logo { height: calc(var(--lh, 44px) * 0.62); max-width: 170px; width: auto; object-fit: contain; object-position: left center; } /* вес логотипа — home3.logo_h */
.mm__logo-t { font-size: var(--text-lead); letter-spacing: -0.015em; }
.mm__country { font-size: var(--text-small); color: var(--color-muted); white-space: nowrap; }
.mm__lines { font-size: var(--text-small); line-height: 1.45; color: var(--color-ink); }
.mm__lines span { color: var(--color-muted); margin-right: 4px; }
.mm__dirlead { font-size: var(--text-lead); font-weight: var(--weight-bold); letter-spacing: -0.015em; line-height: 1.2; }
/* в меню одна красная кнопка — «Запросить прайс» в шапке; здесь переход — чёрный, прайс — ссылка */
.mm__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5); }
.mm__go {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap-min); padding: 0 18px;
  background: var(--color-ink); color: var(--color-on-dark); font-weight: var(--weight-medium); font-size: var(--text-small);
  transition: background-color var(--dur-fast) var(--ease);
}
.mm__go:hover { background: var(--color-ink-soft); }
.mm__go:hover .mm__arr { transform: translateX(3px); }
.mm__go .mm__arr { transition: transform var(--dur-fast) var(--ease); }
.mm__price {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap-min);
  font-weight: var(--weight-medium); font-size: var(--text-small);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em;
}
.mm__price:hover { text-decoration-thickness: 2px; }
.mm__pic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; }

/* нижняя строка */
.mm__foot { background: var(--color-surface); }
.mm__foot-in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-height: 56px; font-size: var(--text-small); color: var(--color-muted); }
.mm__foot .mm__more { color: var(--color-ink); }

.mm-scrim {
  position: fixed; inset: 0; z-index: calc(var(--z-header) - 1);
  background: rgba(17, 17, 17, 0.3); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.mm-scrim.is-open { opacity: 1; }

@media (max-width: 1180px) {
  .mm__dir { font-size: var(--text-body); gap: var(--space-3); }
  .mm__ic { width: 24px; height: 24px; }
  .mm__stage { min-height: 480px; }
}

/* ── Телефон: меню в два шага ──────────────────────────── */
.ms {
  position: fixed; inset: var(--header-h-mobile) 0 0 0; z-index: var(--z-drawer);
  display: flex; flex-direction: column; background: var(--color-bg);
  opacity: 0; transform: translateY(-8px); transition: opacity var(--dur) var(--ease), transform 420ms var(--ease-out);
}
.ms.is-open { opacity: 1; transform: none; }
.ms__track { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.ms__pane {
  position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: var(--space-3) var(--page-margin) var(--space-4);
  transition: transform 420ms var(--ease-out), opacity var(--dur) var(--ease), visibility 0s linear 420ms;
}
.ms__pane--dir { transform: translateX(100%); visibility: hidden; }
.ms__pane--dir.is-on { transform: none; visibility: visible; transition: transform 420ms var(--ease-out), opacity var(--dur) var(--ease), visibility 0s; }
.ms.is-deep .ms__pane--root { transform: translateX(-30%); opacity: 0; visibility: hidden; }

.ms__h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 var(--space-2); font-size: var(--text-h3); font-weight: var(--weight-bold); letter-spacing: -0.025em; line-height: 1.15; padding-block: var(--space-2) var(--space-3); }
.ms__h span { font-size: var(--text-small); font-weight: var(--weight-regular); letter-spacing: 0; color: var(--color-muted); }

.ms__row, .ms__brand {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) 16px; align-items: center; gap: var(--space-4);
  width: 100%; min-height: 60px; padding-block: 6px; text-align: left;
}
.ms__row:active, .ms__brand:active { background: var(--color-surface); }
.ms__thumb { width: 48px; height: 48px; display: flex; align-items: flex-end; justify-content: center; background: var(--color-surface); padding: 5px; overflow: hidden; }
.ms__thumb img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.ms__thumb--ic { align-items: center; padding: 0; }
.ms__ic { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.ms__txt { display: grid; min-width: 0; }
.ms__txt b { font-size: var(--text-body); font-weight: var(--weight-medium); letter-spacing: -0.01em; line-height: 1.25; }
.ms__txt small { font-size: var(--text-small); color: var(--color-muted); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms__chev { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; color: var(--color-muted); }

.ms__links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: var(--space-4); }
.ms__links a { display: flex; align-items: center; min-height: var(--tap-min); padding: 0 var(--space-4); background: var(--color-surface); font-weight: var(--weight-medium); font-size: var(--text-body); }
.ms__links a:active { background: var(--color-surface-2); }

/* шаг 2: шапка «назад + направление» в одну строку, марки по 48 px */
.ms__pane--dir .ms__head { display: flex; align-items: center; gap: var(--space-2); }
.ms__back { display: inline-flex; align-items: center; justify-content: center; width: var(--tap-min); height: var(--tap-min); margin-left: calc(var(--space-3) * -1); flex: none; }
.ms__back .ms__chev { width: 20px; height: 20px; color: var(--color-ink); }
.ms__pane--dir .ms__h { padding-block: 0; font-size: var(--text-lead); }
.ms__brands { margin-top: var(--space-2); }
.ms__brand { grid-template-columns: 40px minmax(0, 1fr) 16px; min-height: 52px; padding-block: 4px; gap: var(--space-3); }
.ms__thumb--s { width: 40px; height: 44px; padding: 4px; }
.ms__all { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: var(--tap-min); margin-top: var(--space-2); font-weight: var(--weight-medium); text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }

.ms__bar {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--page-margin) calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  box-shadow: var(--shadow-bar); background: var(--color-bg);
}
.ms__tel { display: grid; line-height: 1.25; }
.ms__tel b { font-weight: var(--weight-medium); }
.ms__tel small { font-size: var(--text-small); color: var(--color-muted); }
.ms__bar .btn { flex: 1; padding-inline: var(--space-3); font-size: var(--text-body); white-space: nowrap; }
.ms__pane:focus { outline: none; }

/* низкие экраны (iPhone SE и меньше): строки плотнее, чтобы шаг влез без прокрутки */
@media (max-height: 700px) {
  .ms__row { min-height: 56px; padding-block: 4px; }
  .ms__brand { min-height: 46px; padding-block: 2px; }
  .ms__all { margin-top: 0; }
  .ms__thumb--s { height: 40px; }
  .ms__h { padding-block: 0 var(--space-2); }
  .ms__links { margin-top: var(--space-3); }
}

@media (max-width: 900px) { .mm, .mm-scrim { display: none !important; } }
@media (min-width: 901px) { .ms { display: none !important; } }

/* ── Стенд ─────────────────────────────────────────────── */
.stand__in { display: grid; gap: var(--space-5); padding-block: var(--space-8) var(--space-7); }
.stand h1 i { font-style: normal; color: var(--color-action); }
.stand__pic { width: 100%; max-height: 70vh; object-fit: cover; object-position: 50% 80%; }

