/* sibcola.ru — mobile-first, без сборщика. Слои: reset → tokens → base → layout → components → pages → utilities */
@layer reset, tokens, base, layout, components, pages, utilities;

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-regular.fa897e652d39.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-semibold.965df8a67886.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700 900; font-display: swap; src: url("../fonts/inter-bold.489e359c983f.woff2") format("woff2"); }
@font-face { font-family: "Inter Fallback"; src: local("Arial"); size-adjust: 107%; ascent-override: 90%; descent-override: 22%; }

@view-transition { navigation: auto; }

/* ------------------------------------------------------------------ reset */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; hanging-punctuation: first last; }
  body { min-height: 100svh; line-height: 1.55; -webkit-font-smoothing: antialiased; }
  img, picture, svg, video, canvas { display: block; max-width: 100%; }
  img { height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { cursor: pointer; background: none; border: 0; padding: 0; }
  p, h1, h2, h3, h4, li { overflow-wrap: break-word; }
  h1, h2, h3, h4 { text-wrap: balance; line-height: 1.12; }
  p { text-wrap: pretty; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
  :target { scroll-margin-top: 6rem; }
  @media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
}

/* ------------------------------------------------------------------ tokens */
@layer tokens {
  :root {
    color-scheme: light dark;
    --blue: #1279c6;
    --blue-2: #3aa0ef;
    --green: #46a23a;
    --green-2: #8bd36b;
    --brand-grad: linear-gradient(120deg, var(--blue), var(--green));

    --bg: light-dark(#f6f9fc, #0b1219);
    --bg-2: light-dark(#ffffff, #111b25);
    --bg-3: light-dark(#edf3f8, #182532);
    --fg: light-dark(#0e1b26, #e8f0f7);
    --fg-2: light-dark(#4a5b6a, #a3b4c3);
    --fg-3: light-dark(#7a8b99, #74889a);
    --line: light-dark(#dbe5ee, #223243);
    --accent: light-dark(var(--blue), #5cb5ff);
    --accent-fg: #fff;
    --ok: light-dark(#2f8a25, #7ed36a);
    --shadow-1: 0 1px 2px light-dark(#0e1b2614, #0006), 0 4px 16px light-dark(#0e1b260f, #0005);
    --shadow-2: 0 2px 6px light-dark(#0e1b261a, #0008), 0 18px 48px light-dark(#0e1b261f, #000a);
    --glass: light-dark(#ffffffcc, #0e1821cc);

    --font: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --step--1: clamp(.82rem, .8rem + .1vw, .88rem);
    --step-0: clamp(1rem, .97rem + .15vw, 1.08rem);
    --step-1: clamp(1.15rem, 1.08rem + .35vw, 1.35rem);
    --step-2: clamp(1.35rem, 1.2rem + .75vw, 1.8rem);
    --step-3: clamp(1.7rem, 1.4rem + 1.4vw, 2.6rem);
    --step-4: clamp(2.1rem, 1.6rem + 2.6vw, 3.8rem);
    --step-5: clamp(2.5rem, 1.7rem + 4vw, 5rem);

    --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
    --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
    --gutter: clamp(1rem, .6rem + 2vw, 2rem);
    --wrap: 76rem;
    --r-1: .5rem; --r-2: .9rem; --r-3: 1.4rem; --r-4: 2rem; --r-pill: 999px;

    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
    --d-1: .18s; --d-2: .45s; --d-3: .9s;

    --c1: var(--blue);
    --c2: var(--green);
  }
  :root[data-theme="light"] { color-scheme: light; }
  :root[data-theme="dark"] { color-scheme: dark; }
  @media (prefers-reduced-motion: reduce) {
    :root { --d-1: .01ms; --d-2: .01ms; --d-3: .01ms; }
  }
}

/* ------------------------------------------------------------------ base */
@layer base {
  body {
    font-family: var(--font);
    font-size: var(--step-0);
    color: var(--fg);
    background: var(--bg);
    font-feature-settings: "cv11", "ss01";
  }
  a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
  a:hover { text-decoration-thickness: 2px; }
  :focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; border-radius: 4px; }
  ::selection { background: color-mix(in oklab, var(--blue-2) 35%, transparent); }
  h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -.025em; }
  h2 { font-size: var(--step-3); font-weight: 800; letter-spacing: -.02em; }
  h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -.01em; }
  hr { border: 0; border-top: 1px solid var(--line); }
  .icon { width: 1.25em; height: 1.25em; flex: none; }
  /* <picture> заполняет контейнер с фиксированными пропорциями */
  :where(.pcard__media, .ncard__media, .about__art, .article-cover, .gallery a, .cert__img, .slide__bg, .product__main a) > picture { display: block; width: 100%; height: 100%; }

  /* текст из визуального редактора */
  .prose { max-width: 46rem; color: var(--fg); }
  .prose > * + * { margin-top: 1em; }
  .prose h2 { font-size: var(--step-2); margin-top: 1.6em; }
  .prose h3, .prose h4 { font-size: var(--step-1); margin-top: 1.4em; }
  .prose ul, .prose ol { padding-left: 1.3em; }
  .prose li + li { margin-top: .35em; }
  .prose ul li::marker { color: var(--green); }
  .prose img { border-radius: var(--r-2); }
  .prose table { width: 100%; border-collapse: collapse; font-size: var(--step--1); display: block; overflow-x: auto; }
  .prose td, .prose th { border: 1px solid var(--line); padding: .5em .7em; vertical-align: top; }
  .prose blockquote { border-left: 4px solid var(--green); padding-left: 1em; color: var(--fg-2); }
  .prose b, .prose strong { font-weight: 700; }
}

/* ------------------------------------------------------------------ layout */
@layer layout {
  .wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
  .section { padding-block: clamp(2.5rem, 1.8rem + 4vw, 5.5rem); }
  .section--tight { padding-block: clamp(1.5rem, 1rem + 2vw, 3rem); }
  .stack > * + * { margin-top: var(--stack, var(--s-4)); }
  .cluster { display: flex; flex-wrap: wrap; gap: var(--gap, var(--s-3)); align-items: center; }
  /* колонки: --cols (телефон), --cols-md (планшет), --cols-lg (десктоп) задаются в разметке */
  .grid { --_c: var(--cols, 2); display: grid; gap: var(--gap, clamp(.75rem, .5rem + 1vw, 1.5rem)); grid-template-columns: repeat(var(--_c), minmax(0, 1fr)); }
  @media (min-width: 48rem) { .grid { --_c: var(--cols-md, 3); } }
  @media (min-width: 64rem) { .grid { --_c: var(--cols-lg, var(--cols-md, 4)); } }

  .skip { position: absolute; left: -999px; top: .5rem; z-index: 100; background: var(--bg-2); padding: .6rem 1rem; border-radius: var(--r-1); }
  .skip:focus { left: .5rem; }

  /* шапка */
  .header {
    position: sticky; top: 0; z-index: 40;
    background: var(--glass);
    backdrop-filter: saturate(1.6) blur(14px);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--d-1), box-shadow var(--d-2) var(--ease);
    view-transition-name: header;
  }
  .header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-1); }
  .header__bar { display: flex; align-items: center; gap: var(--s-3); min-height: 4rem; }
  .logo { display: flex; flex: none; align-items: center; gap: .6rem; text-decoration: none; color: var(--fg); margin-right: auto; }
  .logo img { width: 2.6rem; height: auto; transition: transform var(--d-2) var(--ease-spring); }
  .logo:hover img { transform: rotate(-8deg) scale(1.06); }
  .logo__text { display: grid; line-height: 1.05; }
  .logo__name { font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
  .logo__tag { font-size: .72rem; color: var(--fg-3); font-weight: 600; letter-spacing: .02em; }
  .header__phone { display: none; font-weight: 700; color: var(--fg); text-decoration: none; white-space: nowrap; }
  .header__phone small { display: block; font-size: .7rem; color: var(--fg-3); font-weight: 500; }
  .icon-btn {
    width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: var(--r-pill);
    color: var(--fg); transition: background var(--d-1);
  }
  .icon-btn:hover { background: var(--bg-3); }
  .icon-btn .icon { width: 1.35rem; height: 1.35rem; }
  .theme-toggle .icon-moon { display: none; }
  :root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
  :root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
    :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
  }

  .nav { display: none; }
  @media (min-width: 72rem) {
    .header__bar { min-height: 4.75rem; gap: var(--s-4); }
    .logo { margin-right: 0; }
    .logo img { width: 3rem; }
    .nav { display: flex; flex: 1; justify-content: center; min-width: 0; gap: 0; }
    .nav__item { position: relative; }
    .nav__link {
      display: flex; align-items: center; gap: .25rem; padding: .55rem .7rem; border-radius: var(--r-pill);
      color: var(--fg); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap;
      transition: background var(--d-1), color var(--d-1);
    }
    .nav__link .icon { width: .95rem; height: .95rem; transition: transform var(--d-1); }
    .nav__link:hover, .nav__item:focus-within > .nav__link { background: var(--bg-3); }
    .nav__link.is-active { color: var(--accent); }
    .nav__item:hover .nav__link .icon, .nav__item:focus-within .nav__link .icon { transform: rotate(180deg); }
    .nav__drop {
      position: absolute; top: calc(100% + .4rem); left: 50%; translate: -50% 6px; min-width: 16rem;
      background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--shadow-2);
      padding: .5rem; list-style: none; opacity: 0; visibility: hidden;
      transition: opacity var(--d-1), translate var(--d-2) var(--ease), visibility var(--d-1);
    }
    .nav__drop::before { content: ""; position: absolute; inset: -.6rem 0 auto; height: .6rem; }
    .nav__item:hover .nav__drop, .nav__item:focus-within .nav__drop { opacity: 1; visibility: visible; translate: -50% 0; }
    .nav__drop a {
      display: flex; align-items: center; gap: .6rem; padding: .55rem .75rem; border-radius: var(--r-2);
      color: var(--fg); text-decoration: none; font-size: .95rem;
    }
    .nav__drop a:hover { background: var(--bg-3); }
    .nav__dot { width: .7rem; height: .7rem; border-radius: 50%; background: linear-gradient(135deg, var(--c1), var(--c2)); flex: none; }
    .burger { display: none; }
  }
  @media (min-width: 88rem) { .header__phone { display: block; } }

  /* мобильное меню */
  .drawer {
    margin: 0 0 0 auto; height: 100dvh; max-height: none; width: min(24rem, 100%); max-width: none;
    border: 0; padding: 0; background: var(--bg-2); color: var(--fg);
    box-shadow: var(--shadow-2);
    transition: translate var(--d-2) var(--ease), overlay var(--d-2) allow-discrete, display var(--d-2) allow-discrete;
    translate: 100% 0;
  }
  .drawer[open] { translate: 0 0; }
  @starting-style { .drawer[open] { translate: 100% 0; } }
  .drawer::backdrop { background: #04101a99; backdrop-filter: blur(3px); opacity: 0; transition: opacity var(--d-2), overlay var(--d-2) allow-discrete, display var(--d-2) allow-discrete; }
  .drawer[open]::backdrop { opacity: 1; }
  @starting-style { .drawer[open]::backdrop { opacity: 0; } }
  .drawer__inner { display: flex; flex-direction: column; min-height: 100%; padding: var(--s-4) var(--s-5) var(--s-6); gap: var(--s-4); }
  .drawer__top { display: flex; justify-content: space-between; align-items: center; }
  .drawer__nav { display: grid; gap: .1rem; }
  .drawer__nav > a, .drawer__nav summary {
    display: flex; justify-content: space-between; align-items: center; padding: .8rem .25rem;
    font-size: 1.15rem; font-weight: 700; color: var(--fg); text-decoration: none; list-style: none; cursor: pointer;
    border-bottom: 1px solid var(--line);
  }
  .drawer__nav summary::-webkit-details-marker { display: none; }
  .drawer__nav details[open] summary .icon { rotate: 180deg; }
  .drawer__nav summary .icon { transition: rotate var(--d-1); }
  .drawer__sub { display: grid; padding: .4rem 0 .8rem .2rem; }
  .drawer__sub a { display: flex; gap: .6rem; align-items: center; padding: .5rem .25rem; color: var(--fg-2); text-decoration: none; }
  .drawer__contacts { margin-top: auto; display: grid; gap: .6rem; }

  /* хлебные крошки и заголовок страницы */
  .crumbs { font-size: var(--step--1); color: var(--fg-3); padding-top: var(--s-5); }
  .crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; list-style: none; padding: 0; }
  .crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line); }
  .crumbs a { color: var(--fg-2); text-decoration: none; }
  .crumbs a:hover { color: var(--accent); }
  .page-head { padding-block: var(--s-4) var(--s-6); }
  .page-head h1 { max-width: 22ch; }
  .page-head .lead { margin-top: var(--s-4); font-size: var(--step-1); color: var(--fg-2); max-width: 46rem; }

  /* подвал */
  .footer { position: relative; margin-top: var(--s-8); color: #dbe9f5; background: #0a1a29; }
  .footer::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 3.5rem; background: #0a1a29;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath d='M0 56V28C120 6 240 0 360 10s240 36 360 36 240-26 360-36 240-4 360 18v28z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;
  }
  .footer a { color: #fff; text-decoration: none; }
  .footer a:hover { text-decoration: underline; }
  .footer__grid { display: grid; gap: var(--s-6); padding-block: var(--s-7) var(--s-6); }
  @media (min-width: 48rem) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; } }
  .footer__brand p { color: #9fb6c9; margin-top: var(--s-3); max-width: 28rem; font-size: var(--step--1); }
  .footer h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: #7fa2bd; margin-bottom: var(--s-3); }
  .footer__links { list-style: none; padding: 0; display: grid; gap: .45rem; }
  .footer__contact { display: grid; gap: .6rem; }
  .footer__contact a, .footer__contact span { display: inline-flex; gap: .6rem; align-items: flex-start; }
  .footer__contact .icon { color: var(--green-2); margin-top: .15em; }
  .footer__big { font-size: var(--step-1); font-weight: 800; }
  .footer__bottom { border-top: 1px solid #ffffff1a; padding-block: var(--s-4); font-size: var(--step--1); color: #7fa2bd; display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: space-between; }
  .socials { display: flex; gap: .5rem; }
  .socials a { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: #ffffff14; transition: background var(--d-1), transform var(--d-2) var(--ease-spring); }
  .socials a:hover { background: var(--blue); transform: translateY(-3px); text-decoration: none; }
}

/* ------------------------------------------------------------------ components */
@layer components {
  .btn {
    --btn-bg: var(--accent); --btn-fg: var(--accent-fg);
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 3rem; padding: .7rem 1.35rem; border-radius: var(--r-pill);
    background: var(--btn-bg); color: var(--btn-fg); font-weight: 700; text-decoration: none; line-height: 1.1;
    transition: transform var(--d-2) var(--ease-spring), box-shadow var(--d-2) var(--ease), background var(--d-1);
    box-shadow: 0 6px 18px color-mix(in oklab, var(--btn-bg) 35%, transparent);
  }
  .btn:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 10px 26px color-mix(in oklab, var(--btn-bg) 45%, transparent); }
  .btn:active { transform: translateY(0) scale(.98); }
  .btn .icon { transition: translate var(--d-2) var(--ease-spring); }
  .btn:hover .icon { translate: 3px 0; }
  .btn--light { --btn-bg: #fff; --btn-fg: #0e1b26; }
  .btn--ghost { --btn-bg: transparent; --btn-fg: var(--fg); box-shadow: inset 0 0 0 2px var(--line); }
  .btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--accent); }
  .btn--grad { background: linear-gradient(120deg, var(--c1), var(--c2)); --btn-bg: var(--c1); }
  .btn--sm { min-height: 2.4rem; padding: .45rem 1rem; font-size: .92rem; }

  .chip {
    display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: var(--r-pill);
    background: var(--bg-3); color: var(--fg-2); font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  }
  a.chip:hover { color: var(--fg); background: color-mix(in oklab, var(--bg-3) 80%, var(--accent)); }
  .chip.is-active { background: var(--fg); color: var(--bg); }
  .chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-block: .25rem; mask: linear-gradient(90deg, #000 90%, #0000); }
  .chips::-webkit-scrollbar { display: none; }
  @media (min-width: 48rem) { .chips { flex-wrap: wrap; mask: none; } }

  .eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
  .eyebrow::before { content: ""; width: 1.6rem; height: 3px; border-radius: 3px; background: var(--brand-grad); }
  .section-head { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: end; justify-content: space-between; margin-bottom: var(--s-6); }
  .section-head h2 { margin-top: .4rem; }
  .more-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; }
  .more-link .icon { transition: translate var(--d-2) var(--ease-spring); }
  .more-link:hover .icon { translate: 4px 0; }

  /* карточка товара */
  .pcard {
    --c1: var(--blue); --c2: var(--green);
    position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--fg);
    background: var(--bg-2); border-radius: var(--r-3); overflow: clip; isolation: isolate;
    box-shadow: var(--shadow-1); transition: transform var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease);
    container-type: inline-size;
  }
  /* grid-template 100%/100%: ячейка конечного размера, иначе height:100% у картинки считается от неё самой */
  .pcard__media { position: relative; aspect-ratio: 1 / 1.08; contain: size; display: grid; grid-template: 100% / 100%; place-items: end center; padding: 1rem .75rem 0; overflow: clip; }
  .pcard__media::before {
    content: ""; position: absolute; inset: 22% -10% -30%; z-index: -1; border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in oklab, var(--c2) 55%, transparent), transparent),
                linear-gradient(160deg, color-mix(in oklab, var(--c1) 22%, transparent), color-mix(in oklab, var(--c2) 30%, transparent));
    filter: blur(6px); transition: transform var(--d-3) var(--ease);
  }
  .pcard__media img { height: 100%; width: 100%; object-fit: contain; object-position: 50% 100%; }
  .pcard__media img { filter: drop-shadow(0 12px 14px #0003); transition: transform var(--d-2) var(--ease-spring); transform-origin: 50% 90%; }
  .pcard__body { padding: .75rem .9rem 1rem; display: grid; gap: .25rem; }
  .pcard__cat { font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--c1); }
  :root[data-theme="dark"] .pcard__cat { color: var(--c2); }
  .pcard__name { font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
  .pcard__vols { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
  .pcard__vols span { font-size: .72rem; font-weight: 700; padding: .15rem .45rem; border-radius: var(--r-pill); background: var(--bg-3); color: var(--fg-2); }
  .pcard__badge { position: absolute; top: .7rem; left: .7rem; z-index: 2; font-size: .7rem; font-weight: 800; text-transform: uppercase; padding: .25rem .55rem; border-radius: var(--r-pill); background: linear-gradient(120deg, var(--c1), var(--c2)); color: #fff; }
  /* фото товара без прозрачного фона (загружено как JPG на белом): на светлой теме белое растворяется в сцене,
     на тёмной — аккуратная белая карточка вместо белого прямоугольника */
  picture.is-opaque img { mix-blend-mode: multiply; }
  :root[data-theme="dark"] picture.is-opaque img { mix-blend-mode: normal; background: #fff; border-radius: var(--r-2); padding: .4rem; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) picture.is-opaque img { mix-blend-mode: normal; background: #fff; border-radius: var(--r-2); padding: .4rem; }
  }
  .noimg { width: 55%; aspect-ratio: 1 / 2.4; margin-bottom: 1rem; border-radius: 40% 40% 18% 18% / 20% 20% 8% 8%; background: linear-gradient(170deg, color-mix(in oklab, var(--c2) 60%, #fff), var(--c1)); opacity: .7; }
  @media (hover: hover) {
    .pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
    .pcard:hover .pcard__media img { transform: rotate(-4deg) scale(1.06); }
    .pcard:hover .pcard__media::before { transform: scale(1.15); }
  }

  /* карточка группы (бренда) */
  .ccard {
    position: relative; display: grid; grid-template-rows: auto 1fr; min-height: clamp(12rem, 9rem + 8vw, 15rem); overflow: clip; isolation: isolate;
    border-radius: var(--r-4); color: #fff; text-decoration: none; padding: 1.25rem;
    background: linear-gradient(140deg, var(--c1), var(--c2));
    box-shadow: 0 10px 30px color-mix(in oklab, var(--c1) 30%, transparent);
    transition: transform var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease);
  }
  .ccard::after { /* блик и подложка под текстом */
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(60% 50% at 15% 0%, #ffffff55, transparent 70%),
                linear-gradient(90deg, color-mix(in oklab, var(--c1) 92%, transparent) 0 34%, transparent 62%);
  }
  .ccard__title { font-size: var(--step-1); font-weight: 800; letter-spacing: -.01em; max-width: 12ch; text-shadow: 0 1px 12px #0002; }
  .ccard__lead { font-size: .88rem; opacity: .92; max-width: 22ch; margin-top: .4rem; }
  .ccard__count { align-self: end; justify-self: start; font-size: .78rem; font-weight: 700; padding: .25rem .6rem; border-radius: var(--r-pill); background: #ffffff2e; backdrop-filter: blur(4px); }
  .ccard__bottles { position: absolute; right: -.5rem; bottom: -1.6rem; display: flex; justify-content: flex-end; align-items: flex-end; height: 92%; z-index: -2; pointer-events: none; }
  .ccard__bottles img { height: 100%; width: auto; filter: drop-shadow(0 10px 12px #0004); transition: transform var(--d-2) var(--ease-spring); }
  .ccard__bottles picture { flex: none; height: 100%; }
  .ccard__bottles picture + picture { margin-left: -2.6rem; }
  .ccard__bottles picture:nth-child(1) img { transform: rotate(-8deg) translateY(6%); }
  .ccard__bottles picture:nth-child(2) img { height: 112%; transform: translateY(2%); }
  .ccard__bottles picture:nth-child(3) img { transform: rotate(8deg) translateY(8%); }
  .ccard .bubbles-css { opacity: .7; }
  @media (hover: hover) {
    .ccard:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 20px 44px color-mix(in oklab, var(--c1) 40%, transparent); }
    .ccard:hover .ccard__bottles picture:nth-child(1) img { transform: rotate(-14deg) translate(-8%, 0); }
    .ccard:hover .ccard__bottles picture:nth-child(2) img { transform: translateY(-6%); }
    .ccard:hover .ccard__bottles picture:nth-child(3) img { transform: rotate(14deg) translate(8%, 2%); }
  }

  /* карусель на scroll-snap */
  .carousel { position: relative; }
  .carousel__track {
    display: grid; grid-auto-flow: column; grid-auto-columns: min(15rem, 68%); gap: clamp(.75rem, .5rem + 1vw, 1.25rem);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    padding: .5rem var(--gutter) 1.5rem; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: none;
  }
  .carousel__track::-webkit-scrollbar { display: none; }
  .carousel__track > * { scroll-snap-align: start; }
  @media (min-width: 48rem) { .carousel__track { grid-auto-columns: calc((100% - 3 * 1.25rem) / 4); margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; } }
  @media (min-width: 80rem) { .carousel__track { grid-auto-columns: calc((100% - 4 * 1.25rem) / 5); } }
  .carousel__nav { display: none; gap: .5rem; }
  @media (min-width: 48rem) { .carousel__nav { display: flex; } }
  .carousel__btn { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); box-shadow: var(--shadow-1); color: var(--fg); transition: opacity var(--d-1), transform var(--d-2) var(--ease-spring); }
  .carousel__btn:hover { transform: scale(1.08); }
  .carousel__btn:disabled { opacity: .35; cursor: default; transform: none; }

  /* новость */
  .ncard { display: grid; grid-template-rows: auto 1fr; background: var(--bg-2); border-radius: var(--r-3); overflow: clip; box-shadow: var(--shadow-1); text-decoration: none; color: var(--fg); transition: transform var(--d-2) var(--ease), box-shadow var(--d-2); }
  .ncard__media { aspect-ratio: 16 / 10; contain: size; overflow: clip; background: var(--bg-3); }
  .ncard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--d-3) var(--ease); }
  .ncard__body { padding: 1rem 1.1rem 1.25rem; display: grid; gap: .45rem; align-content: start; }
  .ncard__date { font-size: .8rem; font-weight: 700; color: var(--fg-3); }
  .ncard__title { font-size: 1.08rem; font-weight: 800; line-height: 1.25; }
  .ncard__lead { font-size: .92rem; color: var(--fg-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  @media (hover: hover) { .ncard:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); } .ncard:hover .ncard__media img { transform: scale(1.06); } }
  .ncard__media.is-empty { display: grid; place-items: center; background: var(--brand-grad); color: #fff; }
  .ncard__media.is-empty .icon { width: 3rem; height: 3rem; opacity: .7; }

  /* документы */
  .docs { display: grid; gap: .6rem; list-style: none; padding: 0; }
  .doc {
    display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; padding: .8rem 1rem;
    border-radius: var(--r-2); background: var(--bg-2); border: 1px solid var(--line); color: var(--fg); text-decoration: none;
    transition: border-color var(--d-1), transform var(--d-2) var(--ease);
  }
  .doc:hover { border-color: var(--accent); transform: translateX(3px); }
  .doc__ext { width: 2.8rem; height: 3.2rem; border-radius: .45rem; display: grid; place-items: end center; padding-bottom: .35rem; background: linear-gradient(160deg, #e5484d, #b31d22); color: #fff; font-size: .66rem; font-weight: 800; position: relative; }
  .doc__ext::before { content: ""; position: absolute; top: 0; right: 0; border: .45rem solid transparent; border-top-color: var(--bg); border-right-color: var(--bg); }
  .doc__ext[data-ext="doc"], .doc__ext[data-ext="docx"], .doc__ext[data-ext="rtf"] { background: linear-gradient(160deg, #3b82f6, #1d4ed8); }
  .doc__ext[data-ext="xls"], .doc__ext[data-ext="xlsx"] { background: linear-gradient(160deg, #22c55e, #15803d); }
  .doc__ext[data-ext="jpg"], .doc__ext[data-ext="jpeg"], .doc__ext[data-ext="png"] { background: linear-gradient(160deg, #a855f7, #7e22ce); }
  .doc__title { font-weight: 700; line-height: 1.3; }
  .doc__meta { font-size: .8rem; color: var(--fg-3); }
  .doc > .icon { color: var(--accent); }

  /* аккордеон на <details> */
  .acc { border-radius: var(--r-3); background: var(--bg-2); box-shadow: var(--shadow-1); overflow: clip; }
  .acc + .acc { margin-top: .75rem; }
  .acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; font-weight: 700; font-size: var(--step-1); }
  .acc summary::-webkit-details-marker { display: none; }
  .acc summary .icon { margin-left: auto; transition: rotate var(--d-2) var(--ease); color: var(--accent); }
  .acc[open] summary .icon { rotate: 180deg; }
  .acc__body { padding: 0 1.25rem 1.35rem; }
  .acc::details-content { block-size: 0; overflow: clip; transition: block-size var(--d-2) var(--ease), content-visibility var(--d-2) allow-discrete; }
  .acc[open]::details-content { block-size: auto; }
  :root { interpolate-size: allow-keywords; }
  .acc__meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }

  /* характеристики */
  .specs { display: grid; gap: 0; border-radius: var(--r-3); background: var(--bg-2); border: 1px solid var(--line); overflow: clip; }
  .specs > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1rem; padding: .75rem 1rem; }
  .specs > div:nth-child(odd) { background: var(--bg-3); }
  .specs dt { color: var(--fg-2); font-size: .92rem; }
  .specs dd { font-weight: 700; }

  /* галерея + лайтбокс */
  .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(9rem, 45%), 1fr)); gap: .6rem; }
  .gallery a { display: block; border-radius: var(--r-2); overflow: clip; aspect-ratio: 4 / 3; contain: size; background: var(--bg-3); }
  .gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--d-3) var(--ease); }
  .gallery a:hover img { transform: scale(1.07); }
  .lightbox { max-width: none; max-height: none; width: 100vw; height: 100dvh; border: 0; padding: 0; background: #040a10f0; color: #fff; }
  .lightbox[open] { display: grid; place-items: center; animation: fade-in var(--d-2) var(--ease); }
  .lightbox img { max-width: 94vw; max-height: 84dvh; object-fit: contain; border-radius: var(--r-2); animation: pop-in var(--d-2) var(--ease-spring); }
  .lightbox__close, .lightbox__prev, .lightbox__next { position: fixed; width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: #ffffff1f; color: #fff; }
  .lightbox__close { top: 1rem; right: 1rem; }
  .lightbox__prev { left: 1rem; top: 50%; }
  .lightbox__next { right: 1rem; top: 50%; }
  .lightbox__caption { position: fixed; bottom: 1rem; left: 0; right: 0; text-align: center; font-size: .9rem; opacity: .8; }
  .lightbox img { transition: opacity var(--d-1), filter var(--d-1); }
  .lightbox.is-loading img { opacity: .35; filter: blur(3px); }
  .lightbox.is-loading::after {
    content: ""; position: fixed; left: 50%; top: 50%; width: 2.75rem; height: 2.75rem; margin: -1.375rem 0 0 -1.375rem;
    border-radius: 50%; border: 3px solid #ffffff40; border-top-color: #fff; animation: spin .8s linear infinite;
  }
  @keyframes spin { to { rotate: 360deg; } }

  /* пузырьки на чистом CSS (фон для карточек и баннеров) */
  .bubbles-css { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
  .bubbles-css i { position: absolute; bottom: -2rem; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fffc, #fff3 45%, #fff1 70%); box-shadow: inset 0 0 0 1px #ffffff55; animation: rise var(--t) linear var(--d) infinite; opacity: 0; }
  @keyframes rise {
    0% { transform: translate(0, 0) scale(.6); opacity: 0; }
    10% { opacity: .9; }
    50% { transform: translate(calc(var(--w, 10px) * 1), -50cqh) scale(1); }
    100% { transform: translate(calc(var(--w, 10px) * -1), -110cqh) scale(1.1); opacity: 0; }
  }
  .has-bubbles { container-type: size; }

  .notice { padding: 1rem 1.25rem; border-radius: var(--r-2); background: var(--bg-3); color: var(--fg-2); }
  .empty { text-align: center; padding: var(--s-8) var(--s-4); color: var(--fg-2); display: grid; gap: var(--s-3); justify-items: center; }
  .empty .icon { width: 3rem; height: 3rem; color: var(--fg-3); }

  .pager { display: flex; justify-content: center; margin-top: var(--s-6); }

  /* поиск */
  .search-dialog { margin: 0 auto auto; margin-top: 12vh; width: min(40rem, 100% - 2rem); border: 0; border-radius: var(--r-3); padding: 0; background: var(--bg-2); color: var(--fg); box-shadow: var(--shadow-2); }
  .search-dialog::backdrop { background: #04101a99; backdrop-filter: blur(3px); }
  .search-dialog[open] { animation: pop-in var(--d-2) var(--ease-spring); }
  .search-form { display: flex; align-items: center; gap: .5rem; padding: .5rem .5rem .5rem 1.1rem; }
  .search-form input { flex: 1; border: 0; background: none; font-size: 1.15rem; padding: .7rem 0; outline: none; min-width: 0; }
  .search-form .icon { color: var(--fg-3); }
  .search-hints { border-top: 1px solid var(--line); padding: .9rem 1.1rem 1.1rem; }
  .search-hints p { font-size: .8rem; color: var(--fg-3); margin-bottom: .5rem; }

  /* копирование реквизитов */
  .copy-btn { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: .5rem; color: var(--fg-3); vertical-align: middle; }
  .copy-btn:hover { color: var(--accent); background: var(--bg-3); }
  .copy-btn.is-done { color: var(--ok); }

  .toast { position: fixed; left: 50%; bottom: 1.5rem; translate: -50% 0; z-index: 90; padding: .7rem 1.1rem; border-radius: var(--r-pill); background: var(--fg); color: var(--bg); font-weight: 600; box-shadow: var(--shadow-2); animation: toast 2.2s var(--ease) forwards; }
  @keyframes toast { 0% { opacity: 0; translate: -50% 1rem; } 12%, 85% { opacity: 1; translate: -50% 0; } 100% { opacity: 0; translate: -50% .5rem; } }

  /* разделы (о компании / партнёрам) */
  .subnav { margin-bottom: var(--s-6); }
}

/* ------------------------------------------------------------------ pages */
@layer pages {
  /* hero-слайдер */
  .hero { position: relative; color: #fff; isolation: isolate; overflow: clip; }
  .hero__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .hero__track::-webkit-scrollbar { display: none; }
  .slide {
    --c1: var(--blue); --c2: var(--green);
    position: relative; scroll-snap-align: start; isolation: isolate; overflow: clip;
    background: linear-gradient(135deg, var(--c1) 0%, color-mix(in oklab, var(--c1) 55%, var(--c2)) 55%, var(--c2) 100%);
    min-height: min(46rem, 92svh);
  }
  .slide__bg { position: absolute; inset: 0; z-index: -2; }
  .slide__bg picture { display: block; height: 100%; }
  .slide__bg img { width: 100%; height: 100%; object-fit: cover; }
  .slide__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in oklab, var(--c1) 85%, #000) 0%, transparent 70%); }
  .slide canvas.fizz { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
  .slide__inner { display: grid; gap: var(--s-5); padding-block: var(--s-7) var(--s-8); min-height: inherit; align-content: center; }
  .slide__text { max-width: 34rem; }
  .slide__title { font-size: var(--step-5); font-weight: 900; letter-spacing: -.035em; line-height: .98; text-shadow: 0 2px 30px #0003; }
  .slide__sub { font-size: var(--step-1); margin-top: var(--s-4); opacity: .95; max-width: 30rem; }
  .slide__cta { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: .75rem; }
  .slide__art { position: relative; display: flex; justify-content: center; align-items: flex-end; height: clamp(16rem, 52vw, 34rem); }
  .slide__art .bottle { height: 100%; display: block; filter: drop-shadow(0 30px 30px #0004); animation: float 6s ease-in-out infinite; animation-delay: var(--delay, 0s); will-change: transform; }
  .slide__art .bottle img { height: 100%; width: auto; }
  .slide__art .bottle:nth-child(1) { height: 78%; rotate: -10deg; margin-right: -12%; --delay: -1.5s; z-index: 1; }
  .slide__art .bottle:nth-child(2) { z-index: 2; --delay: -.3s; }
  .slide__art .bottle:nth-child(3) { height: 78%; rotate: 10deg; margin-left: -12%; --delay: -3s; z-index: 1; }
  .slide__art .solo img { max-height: 100%; width: auto; filter: drop-shadow(0 30px 30px #0004); }
  .slide__art::before { content: ""; position: absolute; bottom: 2%; left: 15%; right: 15%; height: 10%; border-radius: 50%; background: #0003; filter: blur(14px); z-index: 0; }
  .slide__parallax { display: contents; }
  @keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
  @media (min-width: 56rem) {
    .slide__inner { grid-template-columns: 1.05fr 1fr; align-items: center; }
    .slide__art { height: min(36rem, 70svh); }
  }
  .hero__dots { position: absolute; left: 0; right: 0; bottom: 4.2rem; display: flex; justify-content: center; gap: .5rem; z-index: 3; }
  .hero__dot { width: .65rem; height: .65rem; border-radius: var(--r-pill); background: #ffffff66; transition: width var(--d-2) var(--ease), background var(--d-1); }
  .hero__dot[aria-current="true"] { width: 2rem; background: #fff; }
  .hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 3.5rem; z-index: 2; color: var(--bg); pointer-events: none; }
  .hero__wave path { fill: currentColor; }
  @media (prefers-reduced-motion: no-preference) {
    .hero__wave path:first-child { animation: wave 9s ease-in-out infinite alternate; }
  }
  @keyframes wave { to { d: path("M0 56V30C160 10 320 40 520 26S900 0 1080 16s260 22 360 10v30z"); } }

  /* преимущества */
  .teasers { margin-top: -2rem; position: relative; z-index: 3; }
  .teaser { display: grid; gap: .35rem; padding: 1.25rem; border-radius: var(--r-3); background: var(--bg-2); box-shadow: var(--shadow-1); text-decoration: none; color: var(--fg); transition: transform var(--d-2) var(--ease); }
  a.teaser:hover { transform: translateY(-4px); }
  .teaser__icon { width: 2.6rem; height: 2.6rem; border-radius: .8rem; display: grid; place-items: center; background: var(--brand-grad); color: #fff; margin-bottom: .4rem; }
  .teaser__num { font-size: clamp(1.35rem, .9rem + 2.4vw, 2.6rem); white-space: nowrap; font-weight: 900; letter-spacing: -.03em; line-height: 1; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .teaser__title { font-size: .92rem; font-weight: 600; color: var(--fg-2); line-height: 1.35; }

  /* о компании на главной */
  .about { display: grid; gap: var(--s-6); align-items: center; }
  @media (min-width: 56rem) { .about { grid-template-columns: 1fr 1fr; } }
  .about__art { position: relative; border-radius: var(--r-4); overflow: clip; aspect-ratio: 4 / 3.2; contain: size; background: var(--brand-grad); isolation: isolate; }
  .about__art img { width: 100%; height: 100%; object-fit: cover; }
  .about__stamp { position: absolute; right: 1rem; bottom: 1rem; width: 7.5rem; height: 7.5rem; border-radius: 50%; display: grid; place-items: center; text-align: center; background: var(--bg-2); color: var(--fg); box-shadow: var(--shadow-2); font-weight: 800; line-height: 1.1; font-size: .85rem; }
  .about__stamp b { display: block; font-size: 1.8rem; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  @media (prefers-reduced-motion: no-preference) { .about__stamp { animation: spin-in 1.2s var(--ease-spring) both; animation-timeline: view(); animation-range: entry 10% cover 40%; } }
  @keyframes spin-in { from { rotate: -90deg; scale: .4; opacity: 0; } to { rotate: 0; scale: 1; opacity: 1; } }

  /* бегущая строка партнёров */
  .marquee { overflow: clip; mask: linear-gradient(90deg, #0000, #000 12%, #000 88%, #0000); }
  .marquee__track { display: flex; gap: var(--s-7); width: max-content; animation: marquee 30s linear infinite; padding-block: var(--s-3); }
  .marquee:hover .marquee__track { animation-play-state: paused; }
  .marquee__item { height: 4.5rem; display: grid; place-items: center; padding: .6rem 1.4rem; border-radius: var(--r-2); background: #fff; }
  .marquee__item img { max-height: 3.2rem; width: auto; filter: grayscale(1); opacity: .75; transition: filter var(--d-2), opacity var(--d-2); }
  .marquee__item:hover img { filter: none; opacity: 1; }
  @keyframes marquee { to { translate: calc(-50% - var(--s-7) / 2) 0; } }
  @media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } .marquee__track [aria-hidden] { display: none; } }

  /* призыв для партнёров */
  .cta { position: relative; border-radius: var(--r-4); overflow: clip; isolation: isolate; color: #fff; padding: clamp(1.75rem, 1rem + 4vw, 3.5rem); background: linear-gradient(120deg, #0d5fa3, var(--blue) 40%, var(--green)); display: grid; gap: var(--s-5); align-items: center; }
  @media (min-width: 56rem) { .cta { grid-template-columns: 1.4fr auto; } }
  .cta h2 { font-size: var(--step-3); }
  .cta p { opacity: .92; margin-top: .6rem; max-width: 36rem; }

  /* шапка группы / бренда */
  .band { --c1: var(--blue); --c2: var(--green); position: relative; color: #fff; isolation: isolate; overflow: clip; background: linear-gradient(135deg, var(--c1), var(--c2)); }
  .band .crumbs, .band .crumbs a { color: #ffffffcc; }
  .band .crumbs li + li::before { color: #ffffff66; }
  .band__inner { display: grid; gap: var(--s-4); padding-block: 0 var(--s-8); align-items: end; }
  .band h1 { color: #fff; text-shadow: 0 2px 24px #0003; }
  .band__tagline { font-size: var(--step-1); opacity: .92; }
  .band__logo { width: 6rem; height: 6rem; border-radius: 1.4rem; background: #fff; display: grid; place-items: center; padding: .6rem; box-shadow: 0 10px 30px #0003; }
  .band__logo img { max-height: 100%; width: auto; object-fit: contain; }
  .band__art { display: none; }
  @media (min-width: 56rem) {
    .band__inner { grid-template-columns: 1.2fr 1fr; min-height: 22rem; }
    .band__art { display: flex; justify-content: flex-end; align-items: flex-end; height: 20rem; margin-bottom: calc(-1 * var(--s-8)); }
    .band__art picture { height: 100%; }
    .band__art img { height: 100%; width: auto; filter: drop-shadow(0 20px 20px #0004); }
    .band__art picture + picture { margin-left: -3rem; }
    .band__art picture:nth-child(odd) img { height: 85%; margin-top: 15%; }
  }
  .band canvas.fizz { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
  .band + .section, .band + .wrap { position: relative; }
  .band .hero__wave { color: var(--bg); }

  .filter { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; justify-content: space-between; margin-bottom: var(--s-5); }
  .filter__count { color: var(--fg-3); font-size: .9rem; }
  #results { transition: opacity var(--d-1); }
  #results.is-loading { opacity: .4; }

  /* карточка товара */
  .product { display: grid; gap: var(--s-6); }
  @media (min-width: 56rem) { .product { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }
  .product__stage {
    --c1: var(--blue); --c2: var(--green);
    position: relative; isolation: isolate; overflow: clip; border-radius: var(--r-4);
    background: radial-gradient(70% 60% at 50% 65%, color-mix(in oklab, var(--c2) 45%, transparent), transparent 70%), linear-gradient(160deg, color-mix(in oklab, var(--c1) 18%, var(--bg-2)), color-mix(in oklab, var(--c2) 22%, var(--bg-2)));
    min-height: 24rem; display: grid; place-items: center; padding: 2rem 1rem;
  }
  @media (min-width: 56rem) { .product__stage { position: sticky; top: 6rem; min-height: 34rem; } }
  .product__stage img { max-height: clamp(15rem, 52svh, 30rem); width: auto; margin-inline: auto; filter: drop-shadow(0 26px 24px #0003); }
  @media (prefers-reduced-motion: no-preference) { .product__stage .product__main img { animation: float 6s ease-in-out infinite; } }
  .product__thumbs { display: flex; gap: .5rem; justify-content: center; margin-top: .75rem; }
  .product__thumbs button { width: 4rem; height: 4rem; border-radius: .8rem; background: var(--bg-2); border: 2px solid var(--line); padding: .25rem; }
  .product__thumbs button[aria-pressed="true"] { border-color: var(--accent); }
  .product__thumbs img { width: 100%; height: 100%; object-fit: contain; }
  .product__logo { height: 3.5rem; width: auto; }
  .product__title { font-size: var(--step-4); }
  .product__lead { font-size: var(--step-1); color: var(--fg-2); }
  .vols { display: flex; flex-wrap: wrap; gap: .6rem; }
  .vol { display: grid; place-items: center; min-width: 5.5rem; padding: .6rem .9rem; border-radius: var(--r-2); background: var(--bg-2); border: 2px solid var(--line); text-align: center; }
  .vol b { font-size: 1.2rem; font-weight: 800; }
  .vol span { font-size: .78rem; color: var(--fg-3); }
  .product__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
  .ticks { list-style: none; padding: 0; display: grid; gap: .55rem; }
  .ticks li { display: flex; gap: .6rem; }
  .ticks .icon { color: var(--green); margin-top: .2em; }

  /* таймлайн истории */
  .timeline { position: relative; display: grid; gap: var(--s-6); padding-left: 2rem; }
  .timeline::before { content: ""; position: absolute; left: .55rem; top: .5rem; bottom: .5rem; width: 3px; border-radius: 3px; background: var(--brand-grad); }
  .tl { position: relative; }
  .tl::before { content: ""; position: absolute; left: -1.95rem; top: .45rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--bg); border: 3px solid var(--green); }
  .tl__year { font-size: var(--step-4); font-weight: 900; letter-spacing: -.04em; line-height: 1; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .tl__card { margin-top: .6rem; padding: 1.1rem 1.25rem; border-radius: var(--r-3); background: var(--bg-2); box-shadow: var(--shadow-1); max-width: 40rem; }
  @media (min-width: 56rem) {
    .timeline { padding-left: 0; grid-template-columns: 1fr 1fr; column-gap: 5rem; }
    .timeline::before { left: 50%; translate: -50% 0; }
    .tl:nth-child(odd) { text-align: right; }
    .tl:nth-child(odd) .tl__card { margin-left: auto; }
    .tl:nth-child(even) { grid-column: 2; margin-top: 6rem; }
    .tl:nth-child(odd)::before { left: auto; right: -3.15rem; }
    .tl:nth-child(even)::before { left: -3.15rem; }
    .tl + .tl:nth-child(odd) { margin-top: -2rem; }
  }

  /* контакты */
  .contacts { display: grid; gap: var(--s-5); }
  @media (min-width: 56rem) { .contacts { grid-template-columns: 1fr 1.25fr; align-items: start; } }
  .ccards { display: grid; gap: .75rem; }
  .cinfo { display: flex; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: var(--r-3); background: var(--bg-2); box-shadow: var(--shadow-1); }
  .cinfo__icon { width: 2.8rem; height: 2.8rem; border-radius: .9rem; display: grid; place-items: center; background: var(--brand-grad); color: #fff; flex: none; }
  .cinfo h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-3); }
  .cinfo p, .cinfo a { font-weight: 700; color: var(--fg); text-decoration: none; }
  .cinfo a:hover { color: var(--accent); }
  .map { position: relative; border-radius: var(--r-4); overflow: clip; aspect-ratio: 4 / 3; background: var(--bg-3); box-shadow: var(--shadow-1); }
  .map iframe { width: 100%; height: 100%; border: 0; }
  .map__facade { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 1rem; text-align: center; padding: 1.5rem;
    background: radial-gradient(circle at 50% 45%, color-mix(in oklab, var(--green) 25%, transparent) 0 18%, transparent 19%),
                repeating-linear-gradient(0deg, transparent 0 38px, color-mix(in oklab, var(--line) 80%, transparent) 38px 40px),
                repeating-linear-gradient(90deg, transparent 0 38px, color-mix(in oklab, var(--line) 80%, transparent) 38px 40px), var(--bg-3); }
  .map__pin { width: 3.5rem; height: 3.5rem; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--brand-grad); display: grid; place-items: center; box-shadow: var(--shadow-2); }
  .map__pin .icon { rotate: 45deg; color: #fff; }
  @media (prefers-reduced-motion: no-preference) { .map__pin { animation: bounce 1.8s var(--ease) infinite; } }
  @keyframes bounce { 0%, 100% { translate: 0 0; } 40% { translate: 0 -12px; } }

  /* реквизиты */
  .req { display: grid; border-radius: var(--r-3); background: var(--bg-2); border: 1px solid var(--line); overflow: clip; }
  .req > div { display: grid; gap: .2rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); }
  @media (min-width: 48rem) { .req > div { grid-template-columns: 16rem 1fr; gap: 1rem; } }
  .req dt { color: var(--fg-2); font-size: .92rem; }
  .req dd { font-weight: 600; display: flex; gap: .5rem; align-items: center; justify-content: space-between; }

  /* сертификаты */
  .cert { display: grid; gap: .6rem; text-decoration: none; color: var(--fg); }
  .cert__img { display: block; aspect-ratio: 3 / 4; contain: size; border-radius: var(--r-2); overflow: clip; background: #fff; box-shadow: var(--shadow-1); padding: .5rem; transition: transform var(--d-2) var(--ease), box-shadow var(--d-2); }
  .cert__img img { width: 100%; height: 100%; object-fit: contain; }
  .cert:hover .cert__img { transform: translateY(-5px) rotate(-1deg); box-shadow: var(--shadow-2); }
  .cert b { font-weight: 800; }
  .cert span { font-size: .85rem; color: var(--fg-3); }

  /* поиск */
  .results h2 { font-size: var(--step-2); margin: var(--s-6) 0 var(--s-4); }
  .result-list { list-style: none; padding: 0; display: grid; gap: .5rem; }
  .result-list a { display: block; padding: .8rem 1rem; border-radius: var(--r-2); background: var(--bg-2); border: 1px solid var(--line); text-decoration: none; color: var(--fg); font-weight: 600; }
  .result-list a:hover { border-color: var(--accent); }

  /* 404 */
  .oops { display: grid; justify-items: center; text-align: center; gap: var(--s-4); padding-block: var(--s-8); }
  .oops__bottle { width: 7rem; height: 14rem; position: relative; transform-origin: 50% 100%; }
  @media (prefers-reduced-motion: no-preference) { .oops__bottle { animation: tip 3.2s var(--ease) infinite; } }
  .oops__bottle::before { content: ""; position: absolute; inset: 22% 0 0; border-radius: 40% 40% 18% 18% / 22% 22% 8% 8%; background: var(--brand-grad); box-shadow: inset -10px 0 0 #ffffff33; }
  .oops__bottle::after { content: ""; position: absolute; left: 34%; right: 34%; top: 4%; height: 20%; border-radius: .5rem .5rem 0 0; background: var(--blue); }
  .oops__num { font-size: clamp(4rem, 3rem + 8vw, 9rem); font-weight: 900; line-height: .9; letter-spacing: -.05em; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  @keyframes tip { 0%, 60%, 100% { rotate: 0deg; } 70% { rotate: -14deg; } 80% { rotate: 8deg; } 90% { rotate: -3deg; } }

  .section-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr)); }
  .scard { display: grid; gap: .5rem; padding: 1.25rem; border-radius: var(--r-3); background: var(--bg-2); box-shadow: var(--shadow-1); text-decoration: none; color: var(--fg); transition: transform var(--d-2) var(--ease); }
  .scard:hover { transform: translateY(-4px); }
  .scard b { font-size: var(--step-1); }
  .scard span { color: var(--fg-2); font-size: .92rem; }
  .scard .icon { color: var(--accent); }

  .brand-row { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); }
  .bcard { --c1: var(--blue); --c2: var(--green); position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; padding: 1.1rem; border-radius: var(--r-3); background: var(--bg-2); box-shadow: var(--shadow-1); text-decoration: none; color: var(--fg); overflow: clip; transition: transform var(--d-2) var(--ease); }
  .bcard::before { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
  .bcard:hover { transform: translateY(-4px); }
  .bcard__logo { width: 4.5rem; height: 4.5rem; border-radius: 1rem; background: #fff; display: grid; place-items: center; padding: .4rem; border: 1px solid var(--line); }
  .bcard__logo img { max-height: 100%; width: auto; object-fit: contain; }
  .bcard b { font-size: 1.1rem; }
  .bcard span { display: block; font-size: .88rem; color: var(--fg-2); }

  .two-col { display: grid; gap: var(--s-6); }
  @media (min-width: 60rem) { .two-col { grid-template-columns: minmax(0, 1fr) 20rem; } }
  .aside-card { padding: 1.25rem; border-radius: var(--r-3); background: var(--bg-2); box-shadow: var(--shadow-1); display: grid; gap: .8rem; align-content: start; }
  @media (min-width: 60rem) { .aside-card { position: sticky; top: 6rem; } }
  .article-cover { display: block; border-radius: var(--r-4); overflow: clip; margin-bottom: var(--s-6); aspect-ratio: 16 / 8; contain: size; background: var(--bg-3); }
  .article-cover img { width: 100%; height: 100%; object-fit: cover; }
  .prev-next { display: grid; gap: .75rem; margin-top: var(--s-7); }
  @media (min-width: 48rem) { .prev-next { grid-template-columns: 1fr 1fr; } }
  .prev-next a { display: grid; gap: .25rem; padding: 1rem 1.2rem; border-radius: var(--r-3); background: var(--bg-2); border: 1px solid var(--line); text-decoration: none; color: var(--fg); }
  .prev-next a:hover { border-color: var(--accent); }
  .prev-next small { color: var(--fg-3); font-weight: 600; }
  .prev-next a:last-child:not(:first-child) { text-align: right; }

  .badge-past { display: inline-block; font-size: .75rem; font-weight: 700; padding: .2rem .6rem; border-radius: var(--r-pill); background: var(--bg-3); color: var(--fg-3); }
  .badge-live { display: inline-flex; gap: .35rem; align-items: center; font-size: .75rem; font-weight: 800; padding: .2rem .6rem; border-radius: var(--r-pill); background: color-mix(in oklab, var(--green) 18%, transparent); color: var(--ok); }
  .badge-live::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
  @keyframes pulse { 50% { opacity: .3; } }
}

/* ------------------------------------------------------------------ utilities & motion */
@layer utilities {
  .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .muted { color: var(--fg-2); }
  .center { text-align: center; }
  .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); }

  /* появление при прокрутке: включается только если JS работает и анимации разрешены */
  .js [data-reveal] { opacity: 0; translate: 0 22px; transition: opacity .7s var(--ease), translate .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  /* если скрипт не загрузился — всё равно показать содержимое */
  .js:not(.js-ready) [data-reveal] { animation: reveal-fallback 0s 3s forwards; }
  @keyframes reveal-fallback { to { opacity: 1; translate: 0 0; } }
  .js [data-reveal].is-in { opacity: 1; translate: 0 0; }
  @media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; translate: none; transition: none; } }

  @keyframes fade-in { from { opacity: 0; } }
  @keyframes pop-in { from { opacity: 0; scale: .94; } }

  /* view transitions: мягкое растворение + «перелёт» бутылки */
  ::view-transition-old(root) { animation: .18s ease both fade-out; }
  ::view-transition-new(root) { animation: .28s var(--ease) both fade-up; }
  ::view-transition-group(*) { animation-duration: .45s; animation-timing-function: var(--ease); }
  @keyframes fade-out { to { opacity: 0; } }
  @keyframes fade-up { from { opacity: 0; translate: 0 10px; } }
  @media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

  @media print {
    .header, .footer, .hero__dots, .drawer, .carousel__nav, .theme-toggle, .btn { display: none !important; }
    body { background: #fff; color: #000; }
  }
}
