/* ==========================================================================
   Sakura — дизайн-система сайта (skill sakura-brand-design)
   Палитра строго по брендбуку. Соотношение: 60% светлые нейтральные,
   25% графит, 10–15% красный Pantone 200 C, до 5% бордовый/песочный.
   Шрифт: Uni Sans (static/fonts/fonts.css) — Regular текст, Bold заголовки.
   ========================================================================== */

:root {
  --sakura-red: #BA0C2F;
  --sakura-red-bright: #E31E24;
  --sakura-graphite: #2B2B2B;
  --sakura-warm-white: #F7F5F2;
  --sakura-light-gray: #D9D9D6;
  --sakura-burgundy: #7A1026;
  --sakura-sand: #CBBBA0;

  /* Нейтральная белая подложка только под фото товаров (снимки из 1С — на белом фоне) */
  --surface-photo: #FFFFFF;

  --bg: var(--sakura-warm-white);
  --text: var(--sakura-graphite);
  --text-muted: rgb(43 43 43 / 0.64);
  --line: var(--sakura-light-gray);
  --accent: var(--sakura-red);
  --accent-hover: var(--sakura-burgundy);

  /* «Uni Sans Web», а не «Uni Sans»: локально установленный шрифт не должен подменять наши файлы */
  --font: "Uni Sans Web", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgb(43 43 43 / 0.04), 0 8px 24px rgb(43 43 43 / 0.06);
  --shadow-hover: 0 2px 6px rgb(122 16 38 / 0.06), 0 18px 40px rgb(122 16 38 / 0.10);

  --container: 1640px;
  --gutter: clamp(16px, 3vw, 48px);
  --section-y: clamp(56px, 8vw, 112px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px;
}
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.muted { color: var(--text-muted); }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon--flip { transform: scaleX(-1); }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border: 1.5px solid var(--accent); border-radius: 999px;
  background: var(--accent); color: var(--sakura-warm-white);
  font-weight: 600; font-size: 15px; letter-spacing: .01em; cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:hover .icon { transform: translateX(3px); }
.btn .icon { transition: transform .25s var(--ease); }
.btn--outline { background: transparent; color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: var(--sakura-warm-white); border-color: var(--accent); }
.btn--light { background: var(--sakura-warm-white); border-color: var(--sakura-warm-white); color: var(--sakura-graphite); }
.btn--light:hover { background: transparent; color: var(--sakura-warm-white); border-color: var(--sakura-warm-white); }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 16px; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--accent); }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon, a:hover > .link-arrow .icon { transform: translateX(4px); }
.link-quiet { font-size: 14px; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.link-quiet:hover { color: var(--accent); }
.prose a, .muted a, .panel p a, .empty a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.eyebrow { display: inline-block; margin-bottom: 16px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transition: background .2s; }
.icon-btn:hover { background: rgb(43 43 43 / 0.06); }

.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; background: transparent;
  font-size: 14px; font-weight: 500; white-space: nowrap; transition: border-color .2s, color .2s, background .2s;
}
.chip small { color: var(--text-muted); font-size: 12px; }
.chip:hover, .chip.is-active { border-color: var(--sakura-graphite); }
.chip.is-active { background: var(--sakura-graphite); color: var(--sakura-warm-white); }
.chip--accent { border-color: var(--accent); color: var(--accent); }
.chip--accent:hover { background: var(--accent); color: var(--sakura-warm-white); }

/* ---------- header ---------- */
.header {
  --header-bg: rgb(247 245 242 / 0.92);
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
/* Фон с размытием — на псевдоэлементе, а не на самой шапке: backdrop-filter у родителя делает его
   рамкой для position: fixed потомков, и мобильное меню (.nav) сжималось до высоты шапки */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__row { display: flex; align-items: center; gap: 32px; height: 100%; }
/* Охранное поле логотипа ≥ высоты «а» (≈ ½ высоты): 18px при высоте 36px */
.logo { --logo-h: 36px; display: inline-flex; flex: none; margin-right: calc(var(--logo-h) / 2); }
.logo__img { display: block; width: auto; height: var(--logo-h); }
.logo--plate { padding: calc(var(--logo-h) / 2); background: var(--sakura-warm-white); border-radius: var(--radius); }

.nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; height: var(--header-h); padding: 0 12px;
  font-size: 15px; font-weight: 500;
}
.nav__link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 22px; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link:hover::after, .nav__item--mega.is-open > .nav__link::after { transform: scaleX(1); }
@media (min-width: 1101px) { .nav__link--mobile { display: none; } }

.mega {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--sakura-warm-white); border-top: 1px solid var(--line);
  /* притемнение страницы под меню: панель не сливается с контентом */
  box-shadow: 0 0 0 100vmax rgb(43 43 43 / 0.28); clip-path: inset(0 -100vmax -100vmax -100vmax);
  max-height: calc(100vh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.nav__item--mega.is-open .mega { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1101px) {
  .nav__item--mega:hover .mega, .nav__item--mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
  .nav__item--mega:hover > .nav__link::after { transform: scaleX(1); }
}
/* Слева — разделы, справа — подкатегории выбранного: высота меню = самый большой раздел, а не сумма всех */
.mega__inner { display: grid; grid-template-columns: 300px minmax(0, 1fr); padding-top: 28px; padding-bottom: 32px; }
.mega__side { display: flex; flex-direction: column; gap: 20px; padding-right: 24px; border-right: 1px solid var(--line); }
.mega__rail { display: grid; gap: 2px; }
.mega__tab {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; transition: background .2s, color .2s;
}
.mega__tab > .icon { flex: none; color: var(--accent); }
.mega__chev { margin-left: auto; width: 16px; height: 16px; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s var(--ease); }
.mega__tab.is-active { background: rgb(43 43 43 / 0.05); color: var(--accent); }
.mega__tab.is-active .mega__chev { opacity: 1; transform: none; }
.mega__links { display: grid; gap: 14px; margin-top: auto; padding: 18px 14px 0; border-top: 1px solid var(--line); font-size: 14px; }
.mega__links a { display: inline-flex; align-items: center; gap: 10px; color: var(--text-muted); transition: color .2s; }
.mega__links a:hover { color: var(--text); }
.mega__links .mega__all { color: var(--text); font-weight: 600; }
.mega__links .icon { width: 18px; height: 18px; }
.mega__panes { padding-left: 48px; }
.mega__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.mega__title { font-size: 22px; font-weight: 700; line-height: 1.2; transition: color .2s; }
.mega__title:hover { color: var(--accent); }
.mega__more { flex: none; font-size: 14px; }
.mega__list { columns: 3 220px; column-gap: 40px; }
.mega__list li { break-inside: avoid; }
.mega__list a { display: inline-block; padding: 6px 0; font-size: 14.5px; color: var(--text-muted); transition: color .2s; }
.mega__list a:hover { color: var(--accent); }

.header__tools { display: flex; align-items: center; gap: 4px; }
.search { position: relative; display: flex; align-items: center; }
.search__input {
  width: 240px; height: 44px; padding: 0 44px 0 18px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; font: inherit; font-size: 14px; color: var(--text); transition: border-color .2s, width .3s var(--ease);
}
.search__input::placeholder { color: var(--text-muted); }
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none; appearance: none; width: 14px; height: 14px; cursor: pointer; background: var(--text-muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 2l10 10M12 2L2 12' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 2l10 10M12 2L2 12' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
input[type="search"]::-webkit-search-cancel-button:hover { background: var(--text); }
.search__input:focus { outline: none; border-color: var(--sakura-graphite); width: 300px; }
.search__btn { position: absolute; right: 0; }
.header__burger { display: none; }

.suggest {
  position: absolute; top: calc(100% + 8px); right: 0; width: min(420px, calc(100vw - 32px));
  background: var(--sakura-warm-white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-hover);
  padding: 8px; max-height: 70vh; overflow: auto;
}
.suggest__item { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: var(--radius-sm); }
.suggest__item:hover, .suggest__item.is-active { background: rgb(43 43 43 / 0.05); }
.suggest__img { width: 48px; height: 48px; flex: none; border-radius: 8px; background: var(--surface-photo); object-fit: contain; padding: 4px; }
.suggest__title { font-size: 14px; font-weight: 600; line-height: 1.3; }
.suggest__article { font-size: 12.5px; color: var(--text-muted); }
.suggest__all { display: block; padding: 10px 8px 6px; font-size: 14px; font-weight: 600; color: var(--accent); }
.suggest__empty { padding: 12px 8px; font-size: 14px; color: var(--text-muted); }

/* ---------- sections ---------- */
.section { padding: var(--section-y) 0; }
.section--tight { padding: clamp(32px, 4vw, 56px) 0; }
.section--dark { background: var(--sakura-graphite); color: var(--sakura-warm-white); }
.section--dark .muted { color: rgb(247 245 242 / 0.62); }
.section--muted { background: rgb(217 217 214 / 0.35); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.section__title { font-size: clamp(30px, 4.2vw, 52px); font-weight: 800; letter-spacing: -0.02em; }
.section__title--sm { display: flex; align-items: center; gap: 14px; font-size: clamp(24px, 2.6vw, 34px); }

/* ---------- hero ---------- */
.hero { padding: clamp(24px, 4vw, 48px) 0 clamp(56px, 7vw, 96px); }
/* Квадратный слайдер: фото товаров плавно сменяются с лёгким «наездом» камеры */

/* ---------- stats ---------- */
.stats { padding: clamp(40px, 5vw, 64px) 0; }
.stat { display: grid; gap: 6px; padding-left: 20px; border-left: 1px solid rgb(247 245 242 / 0.18); }

/* ---------- category tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 120px; padding: 24px;
  background: var(--surface-photo); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.tile__icon {
  display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: auto;
  border-radius: 50%; background: rgb(186 12 47 / 0.08); color: var(--accent);
}
.tile__icon .icon { width: 28px; height: 28px; }
.tile__icon--sm { width: 44px; height: 44px; margin: 0; }
.tile__icon--sm .icon { width: 22px; height: 22px; }
.tile__name { font-weight: 700; font-size: 17px; line-height: 1.3; padding-right: 28px; }
.tile__sub { font-size: 13.5px; color: var(--text-muted); }
.tile__go { position: absolute; right: 22px; top: 24px; color: var(--accent); opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s var(--ease); }
.tile:hover .tile__go { opacity: 1; transform: none; }

/* ---------- cookware (dark) ---------- */
.cookware { position: relative; overflow: hidden; }
.cookware::before {
  content: ""; position: absolute; width: 640px; height: 640px; right: -200px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgb(186 12 47 / 0.35), transparent 65%); pointer-events: none;
}

/* ---------- product grid & card ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; background: var(--surface-photo); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
/* карточка товара: кликабельна целиком через ссылку в названии, кнопка артикула — поверх */
.card__stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card--product .copy { position: relative; z-index: 2; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card__link { display: flex; flex-direction: column; height: 100%; }
/* 4:5 — под вертикальные фото 1С (3:4); min-height: 0 — иначе высоту задаёт фото и квадратные снимки
   дают карточку ниже соседних */
.card__media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; min-height: 0; padding: 14%; border-bottom: 1px solid rgb(217 217 214 / 0.6); }
.card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__placeholder { width: 40%; height: 40%; fill: none; stroke: var(--sakura-light-gray); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 22px; }
.card__meta { margin: 0; font-size: 12.5px; font-weight: 500; letter-spacing: .02em; color: var(--text-muted); }
.card__title { font-size: 16px; font-weight: 700; line-height: 1.35; }
.card:hover .card__title { color: var(--accent); }
.card__features { margin: 0; font-size: 13.5px; color: var(--text-muted); line-height: 1.45; }

.doc-list__group { margin: 18px 0 8px; font-size: 13.5px; }

/* ---------- видео в карточке товара ---------- */
.pdp-video { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 20px; margin-bottom: 24px; }
.pdp-video__item { margin: 0; }
.pdp-video video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); background: var(--sakura-graphite); object-fit: contain; }
.pdp-video figcaption { margin-top: 8px; font-size: 13.5px; }

/* ---------- news ---------- */
/* карточки в ряду одной высоты: рамка обложки 16:10 у всех, заголовок до 3 строк, анонс до 3 */
.news-grid { align-items: stretch; }
.news-card { height: 100%; }
.news-card .card__body { flex: 1; }
.news-card__media { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--surface-photo); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news-card__media--contain { background: #fff; }
.news-card__media--contain img { object-fit: contain; padding: 6%; }
.news-card__media--empty { display: grid; place-items: center; color: var(--accent); background: rgb(186 12 47 / 0.06); }
.news-card__media--empty .icon { width: 48px; height: 48px; opacity: .5; }
.news-card:hover .news-card__media img { transform: scale(1.04); }
.news-card .card__title { font-size: 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .card__features { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-article { max-width: 820px; }
.news-article__title { font-size: clamp(30px, 4vw, 48px); }
.news-article__figure { margin: 0 0 8px; display: grid; gap: 14px; justify-items: start; }
.news-article__cover-link { display: block; width: 100%; }
/* вертикальный плакат не выше окна — текст новости виден без долгой прокрутки */
.news-article__cover { width: auto; max-width: 100%; max-height: min(640px, 80vh); border-radius: var(--radius-lg); }
.news-article__section { padding-top: 8px; } /* под шапкой страницы уже есть отступ */
.news-article__cta { margin-top: 24px; }
.news-article__cover--contain { background: #fff; max-height: 560px; object-fit: contain; }
.news-article__cover-link:hover .news-article__cover { opacity: .92; }
.news-article__body { font-size: 17px; line-height: 1.7; }

.badges { position: absolute; left: 14px; top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.badge--new { background: var(--sakura-warm-white); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.badge--promo { background: var(--accent); color: var(--sakura-warm-white); }
.badge--sale { background: var(--sakura-burgundy); color: var(--sakura-warm-white); }
.badge--archive { background: var(--sakura-light-gray); color: var(--sakura-graphite); }
/* архивный товар в списке — приглушён, чтобы отличался от актуального ассортимента */
.card--archived .card__media img { opacity: .6; filter: grayscale(.4); }
.card--archived:hover .card__media img { opacity: 1; filter: none; }

/* ---------- help block ---------- */
.help { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.help__card {
  display: flex; flex-direction: column; gap: 12px; padding: clamp(28px, 4vw, 48px);
  background: var(--sakura-warm-white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.help__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.help__card p { color: var(--text-muted); max-width: 420px; }
.help__icon { width: 36px; height: 36px; color: var(--accent); stroke-width: 1.3; }
.help__title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; }
.help__card .link-arrow { margin-top: auto; padding-top: 8px; }

/* робот-помощник (includes/helper_bot.html): шар парит над тенью, раскрывшись — встаёт на неё */
.helper-bot { position: relative; align-self: center; justify-self: center; width: 100%; max-width: 234px; -webkit-tap-highlight-color: transparent; }
.helper-bot::before {
  content: ""; position: absolute; left: 50%; bottom: 1%; width: 62%; height: 7%; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(43 43 43 / 0.22), transparent);
  transform: translateX(-50%) scale(.62); opacity: .55;
  transition: transform 1.6s var(--ease), opacity 1.6s var(--ease);
}
.helper-bot.is-open::before { transform: translateX(-50%) scale(1); opacity: 1; transition-duration: 1.2s; }
/* высоту задаёт картинка-заглушка (а не aspect-ratio — его нет в iOS 14 и старше); холст поверх неё */
.helper-bot__poster, .helper-bot__poster img { display: block; width: 100%; height: auto; }
.helper-bot__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.helper-bot.is-ready .helper-bot__canvas { opacity: 1; }
.helper-bot.is-ready .helper-bot__poster { visibility: hidden; }

/* ---------- page head / breadcrumbs ---------- */
.page-head { padding: clamp(20px, 3vw, 36px) 0 clamp(8px, 1.5vw, 16px); }
.page-head--product { padding-bottom: 0; }
.page-head__row { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.page-title { font-size: clamp(34px, 5vw, 64px); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 20px; }
.page-count { color: var(--text-muted); font-size: 15px; }
.category-text { max-width: 820px; } /* как и вводный абзац — не во всю ширину, строки читаемой длины */
.page-intro { max-width: 720px; color: var(--text-muted); font-size: 17px; margin-bottom: 24px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin-bottom: 20px; font-size: 13.5px; color: var(--text-muted); }
.breadcrumbs li + li::before { content: "/"; margin: 0 10px; color: var(--line); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current] { color: var(--text); }
.anchor-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.anchor-nav::-webkit-scrollbar { display: none; }

/* ---------- listing / filters ---------- */
.listing { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); }
/* панель выше окна (у чайников много фасетов) — прокручивается сама, иначе низ недоступен */
.filters[open] { max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 8px; }
.filters__toggle { display: none; }
.filters__form { display: grid; gap: 28px; }
.filters__group { margin: 0; padding: 0; border: 0; display: grid; gap: 4px; }
.filters__group legend { margin-bottom: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.check { display: flex; align-items: center; gap: 12px; padding: 6px 0; font-size: 15px; cursor: pointer; }
.check input { appearance: none; width: 18px; height: 18px; margin: 0; flex: none; border: 1.5px solid var(--sakura-light-gray); border-radius: 5px; background: var(--surface-photo); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, background .2s; }
.check input[type="radio"] { border-radius: 50%; }
.check input:checked { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--surface-photo); }
.check input[type="checkbox"]:checked { background: var(--accent); box-shadow: none; }
.check input[type="checkbox"]:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--sakura-warm-white); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check:hover input { border-color: var(--sakura-graphite); }
.check small { margin-left: auto; color: var(--text-muted); font-size: 12.5px; }
.filters__actions { display: flex; align-items: center; gap: 16px; }
.check.is-empty { color: var(--text-muted); }
.swatch { width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 1px rgb(43 43 43 / 0.18); }
.check--swatch input:checked + .swatch { box-shadow: 0 0 0 2px var(--surface-photo), 0 0 0 3.5px var(--accent); }
.js .filters__actions .btn { display: none; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.listing__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; font-size: 14px; }
.listing__bar p { margin: 0; }
.sort { display: flex; gap: 4px; }
.sort__opt { padding: 6px 12px; border-radius: 999px; color: var(--text-muted); transition: color .2s, background .2s; }
.sort__opt:hover { color: var(--text); }
.sort__opt.is-active { color: var(--text); background: rgb(43 43 43 / 0.06); font-weight: 600; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 48px; flex-wrap: wrap; }
.pagination__link { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: background .2s, color .2s; }
.pagination__link:hover { background: rgb(43 43 43 / 0.06); }
.pagination__link.is-active { background: var(--sakura-graphite); color: var(--sakura-warm-white); }
.pagination__gap { color: var(--text-muted); padding: 0 4px; }

/* страница 404: всё по центру, под поиском — разделы каталога */
.notfound__head { display: grid; justify-items: center; gap: 20px; max-width: 720px; margin: 0 auto; text-align: center; }
.notfound__head .page-title, .notfound__head .page-lead, .notfound__head .muted { margin: 0; }
.notfound__search { width: 100%; max-width: 560px; flex: none; margin-top: 8px; }
.notfound__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.notfound__groups { margin-top: clamp(40px, 6vw, 72px); }
.notfound__title { margin: 0 0 20px; font-size: 20px; font-weight: 800; text-align: center; }
.notfound__tiles { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.notfound__tile { align-items: center; gap: 10px; min-height: 0; padding: 22px 16px; text-align: center; }
.notfound__tile .tile__name { padding-right: 0; font-size: 16px; }
.empty { display: grid; justify-items: start; gap: 16px; padding: 40px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--text-muted); }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.pdp__stage { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; padding: 12%; background: var(--surface-photo); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.pdp__stage img { width: 100%; height: 100%; object-fit: contain; }
.pdp__stage .badges { left: 24px; top: 24px; }
.pdp__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.pdp__thumb { width: 76px; height: 76px; flex: none; padding: 8px; border: 1.5px solid transparent; border-radius: var(--radius-sm); background: var(--surface-photo); cursor: pointer; box-shadow: var(--shadow); }
.pdp__thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp__thumb.is-active { border-color: var(--accent); }
.pdp__info { position: sticky; top: calc(var(--header-h) + 24px); padding-top: 8px; }
.pdp__info .eyebrow:hover { color: var(--accent-hover); }
.pdp__title { font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 24px; }
.pdp__meta { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0 0 20px; }
.pdp__meta dt { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.pdp__meta dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
/* Наличие. Зелёный — служебный цвет статуса (в фирменной палитре его нет): красный читался бы как ошибка */
.stock { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; padding: 9px 16px 9px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 700; }
.stock--yes { --ok: #2E7D4F; color: var(--ok); background: rgb(46 125 79 / 0.1); box-shadow: inset 0 0 0 1px rgb(46 125 79 / 0.22); }
.stock__icon { width: 20px; height: 20px; stroke-width: 2; }
.stock--no { color: var(--text-muted); background: transparent; box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.stock__dot { width: 8px; height: 8px; margin: 0 3px; border-radius: 50%; background: var(--sakura-light-gray); }

/* Артикул: клик — копия в буфер обмена */
.copy {
  display: inline-flex; align-items: center; gap: 6px; margin: -3px -6px; padding: 3px 6px; border: 0; border-radius: 6px;
  background: transparent; color: inherit; font: inherit; letter-spacing: inherit; cursor: copy; transition: background .2s, color .2s;
}
.copy__icon { width: 14px; height: 14px; opacity: .45; transition: opacity .2s; }
.copy:hover { background: rgb(43 43 43 / 0.06); color: var(--text); }
.copy:hover .copy__icon { opacity: 1; }
.copy.is-copied { color: var(--accent); }
.copy.is-copied .copy__icon { opacity: 1; }
.copy-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100; padding: 10px 18px; border-radius: 999px;
  background: var(--sakura-graphite); color: var(--sakura-warm-white); font-size: 14px; font-weight: 600;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease);
}
.copy-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.features { display: grid; gap: 10px; margin-bottom: 32px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features li { position: relative; padding-left: 22px; font-size: 15.5px; }
.features li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.features li::first-letter { text-transform: uppercase; }
.pdp__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pdp__seller { margin: 12px 0 0; font-size: 13px; color: var(--text-muted); }
.pdp__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 14px; }
.related-cats__title { margin: 0 0 14px; font-size: 18px; font-weight: 700; }
.anchor-nav--wrap { flex-wrap: wrap; overflow: visible; }

.pdp-details .anchor-nav { margin-bottom: 24px; }
.pdp-details__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.pdp-details__side { display: grid; gap: 20px; }
.panel { padding: clamp(24px, 3vw, 36px); background: var(--surface-photo); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.panel--quiet { display: flex; gap: 16px; align-items: flex-start; background: transparent; box-shadow: none; border: 1px solid var(--line); }
.panel--quiet .help__icon { width: 28px; height: 28px; }
.panel__title { font-size: 22px; font-weight: 800; margin-bottom: 20px; }
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { padding: 12px 0; border-bottom: 1px solid rgb(217 217 214 / 0.7); text-align: left; vertical-align: top; }
.specs th { width: 48%; padding-right: 16px; font-weight: 500; color: var(--text-muted); }
.specs td::first-letter { text-transform: uppercase; }
.specs tr:last-child > * { border-bottom: 0; }
.prose { margin-top: 24px; font-size: 15.5px; }

.doc-list { display: grid; gap: 4px; }
.doc-list--wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.doc-list--wide .doc { background: var(--surface-photo); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; }
.doc { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; }
.doc__icon { width: 28px; height: 28px; color: var(--accent); stroke-width: 1.3; }
.doc__title { display: block; font-weight: 600; line-height: 1.35; }
.doc__title:hover { color: var(--accent); }
.doc__meta { font-size: 13px; color: var(--text-muted); }
.doc__meta a { color: var(--accent); }

.big-search { display: flex; gap: 10px; max-width: 720px; margin-bottom: 24px; }
.big-search input { flex: 1; min-width: 0; height: 56px; padding: 0 24px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-photo); font: inherit; font-size: 16px; color: var(--text); }
.big-search input:focus { outline: none; border-color: var(--sakura-graphite); }
.big-search .btn { min-height: 56px; }

/* ---------- footer ---------- */
/* Всё внутри одного .container: разделители — у внутренних блоков, поэтому совпадают с краем текста */
.footer { --f-line: rgb(247 245 242 / 0.12); --f-text: rgb(247 245 242 / 0.8); --f-muted: rgb(247 245 242 / 0.64);
  padding: clamp(48px, 6vw, 80px) 0 calc(24px + env(safe-area-inset-bottom, 0px)); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr) repeat(2, minmax(0, 1fr)); gap: 40px clamp(24px, 3vw, 48px); }
.footer__slogan { margin: 18px 0 6px; font-weight: 700; font-size: 18px; }
.footer__note { max-width: 320px; margin: 0; font-size: 14px; line-height: 1.5; color: var(--f-muted); }
.footer__link { color: var(--sakura-warm-white); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.footer__link:hover { color: var(--sakura-sand); }
.footer__contacts { display: grid; gap: 6px; margin-top: 20px; font-style: normal; font-size: 14px; color: var(--f-muted); }
.footer__phone { width: fit-content; font-size: 20px; font-weight: 700; color: var(--sakura-warm-white); transition: color .2s; }
.footer__phone:hover { color: var(--sakura-sand); }
.footer__title { margin: 0 0 16px; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sakura-sand); }
.footer__list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.footer__list a { display: inline-block; padding: 4px 0; color: var(--f-text); transition: color .2s; }
.footer__list a:hover { color: var(--sakura-warm-white); text-decoration: underline; text-underline-offset: 4px; }

.footer__connect {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); margin-top: clamp(40px, 5vw, 64px);
  border: 1px solid var(--f-line); border-radius: var(--radius-lg); background: rgb(247 245 242 / 0.04);
}
.footer__connect--single { grid-template-columns: minmax(0, 1fr); }
.footer__subscribe, .footer__max { padding: clamp(24px, 3vw, 36px); }
.footer__lead { margin: -6px 0 18px; color: var(--f-text); }
.subscribe { position: relative; display: grid; gap: 14px; max-width: 560px; }
.subscribe__row { display: flex; gap: 10px; }
.subscribe__input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 20px; border: 1px solid rgb(247 245 242 / 0.28); border-radius: 999px;
  background: transparent; color: var(--sakura-warm-white); font: inherit; font-size: 15px;
  -webkit-appearance: none; appearance: none; transition: border-color .2s, background .2s;
}
.subscribe__input::placeholder { color: rgb(247 245 242 / 0.5); opacity: 1; }
.subscribe__input:focus { outline: none; border-color: var(--sakura-warm-white); background: rgb(247 245 242 / 0.06); }
.subscribe__input:focus-visible { box-shadow: 0 0 0 3px rgb(247 245 242 / 0.18); }
.subscribe__btn { flex: none; min-height: 48px; padding-inline: 24px; }
.subscribe__consent { align-items: flex-start; padding: 0; font-size: 13px; line-height: 1.45; color: var(--f-muted); }
.subscribe__consent input { margin-top: 1px; background: transparent; border-color: rgb(247 245 242 / 0.4); }
.subscribe__consent a { color: var(--f-text); }

.footer__max { display: flex; align-items: center; gap: 24px; border-left: 1px solid var(--f-line); color: inherit; }
.social-qr__img { flex: none; width: 112px; height: 112px; padding: 8px; background: #FFFFFF; border-radius: var(--radius-sm); }
.social-qr__text { display: grid; gap: 6px; min-width: 0; }
.social-qr__text .footer__title { margin: 0; }
.social-qr__text strong { font-size: 20px; line-height: 1.2; }
.social-qr__hint { font-size: 14px; color: var(--f-muted); }
.social-qr__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--sakura-warm-white); }
.social-qr__go .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.footer__max:hover .social-qr__go { color: var(--sakura-sand); }
.footer__max:hover .social-qr__go .icon { transform: translateX(4px); }

/* был красный на графите (контраст ≈2:1) — теперь светлый текст с подчёркиванием */
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  margin-top: clamp(32px, 4vw, 48px); padding-top: 24px; border-top: 1px solid var(--f-line); font-size: 13px; color: var(--f-muted);
}
.footer__bottom p { margin: 0; }
.footer__bottom a { color: var(--f-text); text-decoration: underline; text-decoration-color: rgb(247 245 242 / 0.35); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.footer__bottom a:hover { color: var(--sakura-warm-white); text-decoration-color: currentColor; }

@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 32px; align-items: start; }
  .footer__brand .logo { grid-row: span 3; }
  .footer__slogan { margin-top: 0; }
  .footer__contacts { margin-top: 10px; }
  .footer__connect { grid-template-columns: minmax(0, 1fr); }
  .footer__max { border-left: 0; border-top: 1px solid var(--f-line); }
}
@media (max-width: 640px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer__brand { display: block; }
  .footer__slogan { margin-top: 16px; }
  .footer__col--catalog { grid-column: 1 / -1; }
  .footer__col--catalog .footer__list { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .subscribe__row { flex-direction: column; }
  .subscribe__input { font-size: 16px; }  /* меньше 16px — iOS Safari увеличивает страницу при фокусе */
  .subscribe__btn { width: 100%; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
/* тач: область нажатия ≥44px; QR на телефоне не отсканировать — остаётся крупная ссылка */
@media (hover: none) {
  .footer__list a { padding: 10px 0; }
  .footer__list { gap: 0; }
  .footer__max .social-qr__img, .footer__max .social-qr__hint { display: none; }
}
@media (forced-colors: active) { .footer__connect { border-color: CanvasText; } }

/* ---------- сервисные центры ---------- */
.page-lead { max-width: 640px; font-size: clamp(17px, 1.6vw, 20px); color: var(--text-muted); }
.sc-terms { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sc-term { display: grid; gap: 10px; align-content: start; padding: clamp(28px, 4vw, 44px); background: var(--surface-photo); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.sc-term__icon { width: 34px; height: 34px; color: var(--accent); stroke-width: 1.3; }
.sc-term__title { font-size: 15px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.sc-term__value { margin: 0; font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.sc-term .muted { max-width: 460px; margin: 0; }

.sc__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.sc__head .section__title { margin-bottom: 6px; }
.sc__head .muted { margin: 0; }
.sc-search { position: relative; display: flex; align-items: center; flex: 0 1 460px; }
.sc-search__icon { position: absolute; left: 18px; width: 20px; height: 20px; color: var(--accent); pointer-events: none; }
.sc-search__input {
  width: 100%; height: 56px; padding: 0 116px 0 50px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface-photo); font: inherit; font-size: 15px; color: var(--text);
}
.sc-search__input:focus { outline: none; border-color: var(--sakura-graphite); }
.sc-search__btn { position: absolute; right: 8px; }
.sc-search__suggest { left: 0; right: auto; width: 100%; margin: 0; list-style: none; z-index: 20; }
.sc-search__option { justify-content: space-between; cursor: pointer; }
.sc__notice { margin: -8px 0 24px; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--surface-photo); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.sc__notice a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.sc__layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
.sc__list { max-height: 640px; overflow: auto; padding: 4px 12px 4px 4px; scrollbar-width: thin; }
.sc__map { position: sticky; top: calc(var(--header-h) + 16px); }
.sc-map { position: relative; height: 640px; border-radius: var(--radius-lg); overflow: hidden; background: var(--sakura-light-gray); box-shadow: var(--shadow); }
.sc-map__fallback { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 24px; text-align: center; }
/* Нейтральная подложка карты — чтобы фирменные метки читались, а не спорили с цветной картой */
.sc-map [class*="ground-pane"] { filter: grayscale(1) contrast(.92) brightness(1.04); }

.sc-city + .sc-city { margin-top: 28px; }
.sc-city__title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; font-size: 20px; font-weight: 800; }
.sc-city__title small { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.sc-item { display: grid; gap: 6px; padding: 20px 22px; margin-bottom: 12px; background: var(--surface-photo); border: 1px solid transparent; border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color .25s var(--ease); }
.sc-item.is-selected { border-color: var(--accent); }
.sc-item__name { font-size: 16px; font-weight: 700; line-height: 1.35; }
.sc-item__address, .sc-item__hours { margin: 0; font-size: 14.5px; }
.sc-item__phones { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: 15px; font-weight: 600; }
.sc-item__phones a:hover { color: var(--accent); }
.sc-item__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sc__all { margin-top: 20px; }
.sc__empty { padding: 24px 0; }
html:not(.js) [data-sc-show], .sc--no-map [data-sc-show] { display: none; }

.sc-balloon { font-family: var(--font); font-size: 13.5px; line-height: 1.45; color: var(--sakura-graphite); }
.sc-balloon__name { display: block; margin-bottom: 4px; font-size: 15px; }
.sc-balloon p { margin: 0 0 6px; }
.sc-balloon a { color: var(--sakura-graphite); font-weight: 600; }
.sc-balloon__muted { color: rgb(43 43 43 / 0.64); }
.sc-balloon .sc-balloon__btn { display: inline-block; margin-top: 4px; padding: 7px 14px; border-radius: 999px; background: var(--sakura-red); color: var(--sakura-warm-white); font-weight: 600; text-decoration: none; }
.sc-balloon .sc-balloon__btn:hover { background: var(--sakura-burgundy); }

.sc-tabs { display: none; }
.sc-cta__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sc-cta .section__title { margin-bottom: 8px; }
.sc-cta .muted { margin: 0; }

@media (max-width: 900px) {
  .sc-terms { grid-template-columns: 1fr; }
  .sc-search { flex-basis: 100%; }
  html.js .sc-tabs {
    position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; display: grid; grid-template-columns: 1fr 1fr;
    gap: 4px; padding: 4px; margin-bottom: 16px; background: var(--surface-photo); border-radius: 999px; box-shadow: var(--shadow);
  }
  .sc-tabs__btn { min-height: 44px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-weight: 600; color: var(--text-muted); cursor: pointer; }
  .sc-tabs__btn.is-active { background: var(--sakura-graphite); color: var(--sakura-warm-white); }
  .sc__layout { grid-template-columns: 1fr; }
  .sc__list { max-height: none; overflow: visible; padding: 0; }
  .sc__map { position: static; }
  .sc-map { height: min(70vh, 520px); }
  html.js .sc__layout:not(.is-map) .sc__map, html.js .sc__layout.is-map .sc__list { display: none; }
  html:not(.js) .sc__map { display: none; }
}
@media (max-width: 640px) {
  .sc-search__input { padding-right: 16px; }
  .sc-search__btn { display: none; }
  .sc-item { padding: 18px; }
}

/* ---------- политика ПДн ---------- */
.privacy { max-width: 860px; margin-top: 0; line-height: 1.65; }
.privacy h2 { margin: 40px 0 14px; font-size: clamp(20px, 2vw, 24px); font-weight: 800; line-height: 1.3; }
.privacy h2:first-child { margin-top: 0; }
.privacy p { margin: 0 0 12px; }
.privacy h3 { margin: 24px 0 10px; font-size: 17px; font-weight: 700; }
.privacy ul { margin: 0 0 16px; padding-left: 22px; }
.privacy li { margin-bottom: 8px; }
.privacy li::marker { color: var(--accent); }
.privacy__table { width: 100%; margin: 8px 0 20px; border-collapse: collapse; background: var(--surface-photo); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.privacy__table th, .privacy__table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.privacy__table tr:last-child th, .privacy__table tr:last-child td { border-bottom: 0; }
.privacy__table th { width: 34%; font-weight: 600; }
@media (max-width: 640px) {
  .privacy__table th, .privacy__table td { display: block; width: auto; }
  .privacy__table th { padding-bottom: 4px; border-bottom: 0; }
}

/* ---------- контакты ---------- */
/* 3 карточки сверху (адрес, телефон, режим), 2 широкие снизу (MAX, реквизиты) */
.contacts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.contacts > .contact-card { grid-column: span 2; }
.contacts > .contact-card--wide { grid-column: span 3; }
.contacts > .contact-card--full { grid-column: 1 / -1; }
.contact-card { display: grid; gap: 8px; align-content: start; padding: clamp(24px, 2.6vw, 32px); background: var(--surface-photo); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.contact-card p { margin: 0; }
.contact-card__icon { width: 30px; height: 30px; margin-bottom: 6px; color: var(--accent); stroke-width: 1.3; }
.contact-card__title { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.contact-card__phone { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.contact-card__phone:hover { color: var(--accent); }
.contact-card__code { font-size: 14px; letter-spacing: .02em; overflow-wrap: anywhere; } /* 46 знаков без пробелов: целиком в строку, переносится только на узком экране */
.contact-card__legal-name { font-size: 18px; font-weight: 700; margin-bottom: 10px !important; }
.contact-card--legal { background: var(--sakura-graphite); color: var(--sakura-warm-white); }
.contact-card--legal .contact-card__title, .contact-card--legal .muted { color: rgb(247 245 242 / 0.62); }
.contact-hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; margin: 0 0 6px; font-size: 14.5px; }
.contact-hours dt { color: var(--text-muted); }
.contact-hours dd { margin: 0; font-weight: 600; white-space: nowrap; }
.office-map { min-height: 480px; margin-top: 20px; border-radius: var(--radius-lg); overflow: hidden; background: var(--sakura-light-gray); box-shadow: var(--shadow); }
.office-map [class*="ground-pane"] { filter: grayscale(1) contrast(.92) brightness(1.04); }
@media (max-width: 1100px) {
  .contacts { grid-template-columns: 1fr 1fr; }
  .contacts > .contact-card { grid-column: span 1; }
  .contacts > .contact-card--wide, .contacts > .contact-card:nth-child(3) { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .contacts > .contact-card { grid-column: 1 / -1; } }

.contact-card--social:hover { box-shadow: var(--shadow-hover); }
.contact-card--social { grid-template-columns: auto minmax(0, 1fr); column-gap: 28px; align-items: start; }
.contact-card__qr { width: 120px; height: 120px; }
.contact-card__body { display: grid; gap: 8px; align-content: start; }
.contact-card__body .link-arrow { margin-top: 4px; }
@media (hover: none) { .contact-card__qr { display: none; } .contact-card--social { grid-template-columns: 1fr; } } /* на телефоне QR не отсканировать — остаётся ссылка */

/* ---------- формы ---------- */
.lead-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 24px; align-items: start; }
.lead-layout__aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.lead-aside { display: grid; gap: 18px; justify-items: start; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); }
.lead-aside__title { font-size: 22px; font-weight: 800; }
.lead-aside__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; color: rgb(247 245 242 / 0.78); }
.lead-aside__text { margin: 0; color: rgb(247 245 242 / 0.78); }
.lead-aside__list li { position: relative; padding-left: 22px; }
.lead-aside__list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--sakura-red-bright); }
.lead-links .help__card { padding: 24px 28px; }
.lead-links .help__title { font-size: 20px; }
.lead-links__hint { margin: 0; }
.lead-narrow { max-width: 640px; }
.lead-small { margin-top: 20px; font-size: 14px; }

.form { display: grid; gap: 24px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form__field { display: grid; gap: 8px; align-content: start; }
.form__field--wide { grid-column: 1 / -1; }
.form__label { font-size: 14px; font-weight: 600; }
.form__req { color: var(--accent); }
.form input:not([type="checkbox"]):not([type="hidden"]), .form select, .form textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--sakura-warm-white); font: inherit; font-size: 16px; color: var(--text);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.form textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.form select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--sakura-graphite) 50%), linear-gradient(135deg, var(--sakura-graphite) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--sakura-graphite); background: var(--surface-photo); }
.form__field.has-error input, .form__field.has-error select, .form__field.has-error textarea { border-color: var(--accent); }
.form__error { margin: 0; font-size: 13.5px; color: var(--accent); }
.form__alert { padding: 14px 18px; border-left: 3px solid var(--accent); background: rgb(186 12 47 / 0.06); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.form__alert p { margin: 0; }
.form__consent { align-items: flex-start; font-size: 14px; line-height: 1.45; }
.form__consent input { margin-top: 1px; }
.form__consent a, .subscribe__consent a { text-decoration: underline; text-underline-offset: 3px; }
.form__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__note { margin: 0; font-size: 13px; }
/* honeypot: вне экрана, а не display:none — часть ботов пропускает скрытые поля */
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-sent { display: grid; gap: 12px; justify-items: start; }
.form-sent__icon { width: 44px; height: 44px; color: var(--accent); stroke-width: 1.3; }
.form-sent__title { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; }
.form-sent .muted { margin: 0 0 8px; max-width: 480px; }


@media (max-width: 900px) {
  .lead-layout { grid-template-columns: 1fr; }
  .lead-layout__aside { position: static; }
}
@media (max-width: 640px) {
  .form__grid { grid-template-columns: 1fr; }
  .form__actions .btn { width: 100%; }
}

/* ---------- scroll reveal (микроанимация, отключается при reduced motion) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Адаптив: 1440 / 1024 / 768 / 375
   ========================================================================== */
@media (max-width: 1280px) {
  .search__input { width: 200px; }
  .search__input:focus { width: 240px; }
  .nav__link { padding: 0 9px; font-size: 14.5px; }
  .nav__link::after { left: 9px; right: 9px; }
  .header__row { gap: 20px; }
}

@media (max-width: 1100px) {
  :root { --header-h: 64px; }
  .header__burger { display: inline-grid; }
  .header__tools { margin-left: auto; } /* меню .nav здесь fixed — его margin-right: auto больше не толкает инструменты вправо */
  .nav {
    position: fixed; inset: var(--nav-top, var(--header-h)) 0 0; z-index: 40; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 40px; background: var(--sakura-warm-white); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link { height: auto; padding: 16px 0; font-size: 20px; font-weight: 600; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .mega { position: static; box-shadow: none; clip-path: none; max-height: none; overflow: visible; border: 0; background: transparent; display: none; opacity: 1; visibility: visible; transform: none; }
  .nav__item--mega.is-open .mega { display: block; }
  /* в мобильном меню — только список разделов, подкатегории открываются на странице раздела */
  .mega__inner { display: block; padding: 8px 0 16px; }
  .mega__side { padding: 0; border: 0; }
  .mega__tab { padding: 12px 0; }
  .mega__tab.is-active { background: none; color: inherit; }
  .mega__chev { display: none; }
  .mega__links { padding: 16px 0 0; }
  .mega__panes { display: none; }
  .search__input, .search__input:focus { width: 200px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .news-grid--more > :nth-child(n+3) { display: none; } /* «Другие новости» в две колонки — без одинокой третьей */
  .listing { grid-template-columns: 220px 1fr; gap: 28px; }
}

@media (max-width: 900px) {
  .pdp, .pdp-details__grid { grid-template-columns: minmax(0, 1fr); } /* не 1fr: лента миниатюр растягивала колонку шире экрана */
  .pdp__info { position: static; }
  .help { grid-template-columns: 1fr; }
  .helper-bot { max-width: 150px; }
  .listing { grid-template-columns: 1fr; }
  .filters { position: static; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-photo); }
  .filters[open] { max-height: none; overflow: visible; padding-right: 0; }
  .filters__toggle { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-weight: 600; cursor: pointer; list-style: none; }
  .filters__toggle::-webkit-details-marker { display: none; }
  .filters__form { padding: 4px 18px 20px; }
  .js .filters__actions .btn { display: inline-flex; }
}

@media (max-width: 640px) {
  .search { position: static; }
  .search__input { position: absolute; left: var(--gutter); right: calc(var(--gutter) + 52px); top: 10px; width: auto !important; height: 44px; background: var(--sakura-warm-white); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .search.is-open .search__input { opacity: 1; pointer-events: auto; }
  .search__btn { position: static; }
  .suggest { left: var(--gutter); right: var(--gutter); width: auto; top: calc(var(--header-h) + 4px); }
  .logo { --logo-h: 30px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { min-height: 100px; padding: 16px; }
  .tile__name { font-size: 15px; padding-right: 0; }
  .tile__go { display: none; }
  .grid, .grid--3 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card__media { padding: 10%; }
  .card__body { padding: 12px 12px 16px; }
  .card__title { font-size: 14px; }
  .card__features { display: none; }
  .badges { left: 8px; top: 8px; }
  .badge { padding: 3px 7px; font-size: 10px; }
  .stat { padding-left: 14px; }
  .big-search { flex-direction: column; }
  .big-search .btn { width: 100%; }
  .listing__bar { flex-direction: column; align-items: flex-start; }
  .empty { padding: 24px; }
  .specs th { width: 45%; }
}

/* ---------- «О компании» ---------- */
.about-hero__title { max-width: 16ch; }
.about-hero__lead { max-width: 720px; }
.about-facts { padding: clamp(24px, 3vw, 40px) 0 0; }
.about-facts__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.about-fact { display: grid; gap: 6px; align-content: start; padding: clamp(20px, 2.4vw, 32px) clamp(16px, 2vw, 28px); border-left: 1px solid var(--line); }
.about-fact:first-child { padding-left: 0; border-left: 0; }
.about-fact__value { font-size: clamp(34px, 4vw, 56px); font-weight: 800; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.about-fact:first-child .about-fact__value { color: var(--accent); }
.about-fact__label { margin: 0; font-size: 14px; line-height: 1.4; color: var(--text-muted); }

.about-story__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(24px, 5vw, 96px); align-items: start; }
.about-story__aside { position: sticky; top: calc(var(--header-h) + 32px); }
.about-story__image { width: 100%; margin-top: 24px; border-radius: var(--radius-lg); }
.about-story__body { max-width: 720px; margin-top: 0; font-size: clamp(16.5px, 1.3vw, 19px); line-height: 1.7; }
.about-story__body p { margin: 0 0 1.1em; }
.about-story__body p:first-child { font-size: 1.12em; font-weight: 600; line-height: 1.55; color: var(--text); }

.about-principles { padding-top: 0; }
.about-principles__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 28px 0 0; padding: 0; list-style: none; }
.about-principle { display: grid; gap: 10px; align-content: start; padding: clamp(24px, 2.4vw, 32px); background: var(--surface-photo); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.about-principle__icon { width: 32px; height: 32px; margin-bottom: 8px; color: var(--accent); stroke-width: 1.4; }
.about-principle__title { font-size: 18px; font-weight: 700; line-height: 1.3; }
.about-principle p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.about-principle a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.about-quote { max-width: 960px; margin: 0 auto; text-align: center; }
.about-quote blockquote { margin: 0; }
.about-quote blockquote p { margin: 0; font-size: clamp(22px, 2.8vw, 38px); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.about-quote blockquote p::before { content: "“"; display: block; margin-bottom: 8px; font-size: 2.4em; line-height: .6; color: var(--sakura-red-bright); }
.about-quote figcaption { margin-top: 24px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sakura-sand); }

.about-near__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px clamp(24px, 5vw, 80px); align-items: end; }
.about-near__slogan { margin: 0 0 16px; font-size: clamp(26px, 3.2vw, 44px); font-weight: 800; line-height: 1.15; letter-spacing: -0.015em; }
.about-near__text { max-width: 620px; margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-muted); }
.about-near__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

@media (max-width: 1100px) {
  .about-principles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-near__grid { grid-template-columns: 1fr; align-items: start; }
  .about-near__actions { justify-content: flex-start; }
}
@media (max-width: 900px) {
  .about-story__grid { grid-template-columns: 1fr; }
  .about-story__aside { position: static; }
}
@media (max-width: 640px) {
  .about-facts__grid { grid-template-columns: 1fr 1fr; }
  .about-fact { padding: 18px 0 18px 16px; }
  .about-fact:nth-child(odd) { padding-left: 0; border-left: 0; }
  .about-fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .about-principles__grid { grid-template-columns: 1fr; }
  .about-near__actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- уведомление о cookie ---------- */
.cookie {
  position: fixed; left: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: flex; align-items: center; gap: 16px 20px; max-width: 560px; padding: 18px 20px;
  border-radius: var(--radius); background: var(--sakura-graphite); color: var(--sakura-warm-white);
  box-shadow: 0 18px 48px rgb(43 43 43 / 0.28);
  animation: cookie-in .45s var(--ease) both;
}
.cookie[hidden] { display: none; }
.cookie__text { margin: 0; font-size: 14px; line-height: 1.5; color: rgb(247 245 242 / 0.85); }
.cookie__text a { color: var(--sakura-warm-white); text-decoration: underline; text-underline-offset: 3px; }
.cookie__text a:hover { color: var(--sakura-sand); }
.cookie__ok { flex: none; min-height: 44px; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .cookie { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: none; flex-direction: column; align-items: stretch; }
  .cookie__ok { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .cookie { animation: none; } }
@media print { .cookie { display: none !important; } }

/* ---------- «Все / В наличии» над списком раздела ---------- */
.avail { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-photo); }
.avail__opt {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--text-muted); white-space: nowrap; transition: background .2s, color .2s;
}
.avail__opt small { font-size: 12px; font-weight: 500; opacity: .75; font-variant-numeric: tabular-nums; }
.avail__opt:hover { color: var(--text); }
.avail__opt.is-active { background: var(--sakura-graphite); color: var(--sakura-warm-white); }
.avail__dot { width: 8px; height: 8px; border-radius: 50%; background: #2E7D4F; box-shadow: 0 0 0 3px rgb(46 125 79 / 0.18); }
@media (max-width: 640px) {
  .avail { display: flex; width: 100%; }
  .avail__opt { flex: 1; justify-content: center; }
}

/* ---------- сезонные подборки на главной A ---------- */

/* ---------- поиск: что поправлено в запросе ---------- */
.search-note { margin: 0 0 16px; padding: 14px 18px; border-left: 3px solid var(--accent); border-radius: 6px; background: var(--surface-photo); }
.search-note p { margin: 0; }
.search-note p + p { margin-top: 4px; }
