/* АльфаХимия — основные стили
   Радиусы: карточки и изображения 16px, кнопки и чипы 10px, окна 20px. */

/* ---------- Шрифты (self-hosted) ---------- */
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url("../fonts/golos-text-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url("../fonts/golos-text-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 500; font-display: swap; src: url("../fonts/golos-text-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 500; font-display: swap; src: url("../fonts/golos-text-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url("../fonts/golos-text-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url("../fonts/golos-text-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 700; font-display: swap; src: url("../fonts/golos-text-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 700; font-display: swap; src: url("../fonts/golos-text-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/roboto-condensed-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/roboto-condensed-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Condensed"; font-weight: 800; font-display: swap; src: url("../fonts/roboto-condensed-cyrillic-800-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto Condensed"; font-weight: 800; font-display: swap; src: url("../fonts/roboto-condensed-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Токены ---------- */
:root {
  --navy: #12295a;
  --navy-deep: #0c1d42;
  --blue: #1a56c4;
  --blue-soft: #e8f0fc;
  --red: #d3232b;
  --red-dark: #b41a21;
  --ink: #15213a;
  --text: #2c3850;
  --muted: #5b6780;
  --line: #dce3ee;
  --bg: #ffffff;
  --bg-soft: #f3f6fb;
  --shadow: 0 1px 2px rgba(18, 41, 90, .06), 0 8px 24px rgba(18, 41, 90, .07);
  --shadow-lg: 0 24px 64px rgba(12, 29, 66, .22);
  --r-card: 16px;
  --r-btn: 10px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --font: "Golos Text", "Segoe UI", Arial, sans-serif;
  --font-head: "Roboto Condensed", "Arial Narrow", "Golos Text", sans-serif;
  color-scheme: light;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--font-head); font-weight: 800; line-height: 1.08; letter-spacing: -.005em; }
h1 { font-size: clamp(34px, 4.6vw, 54px); }
h2 { font-size: clamp(28px, 3.2vw, 40px); }
h3 { font-size: 21px; line-height: 1.2; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid rgba(26, 86, 196, .45); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r-btn); background: var(--navy); color: #fff; }
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 44px); }
.section__head p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.section__foot { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Фирменный росчерк под заголовком, как на баннерах */
.stroke { position: relative; display: inline-block; padding-bottom: 14px; }
.stroke::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; border-radius: 4px;
  background: var(--red); transform: skewX(-24deg); transform-origin: left;
}

.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--text); }
.muted { color: var(--muted); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px;
  border: 1.5px solid transparent; border-radius: var(--r-btn);
  font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(211, 35, 43, .22); }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--outline { background: #fff; border-color: #c8d3e6; color: var(--navy); }
.btn--outline:hover { border-color: var(--navy); color: var(--navy); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--blue-soft); color: var(--navy); }
.btn--ghost-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn--sm { min-height: 42px; padding: 9px 16px; font-size: 15px; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue); text-decoration: none; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover { color: var(--navy); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
@supports (backdrop-filter: blur(8px)) { .header { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(160%) blur(10px); } }
.header.is-stuck { border-color: var(--line); box-shadow: 0 4px 18px rgba(18, 41, 90, .06); }
.header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo { display: block; flex: none; line-height: 0; }
.logo img { width: auto; height: 42px; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav__link {
  display: block; padding: 8px 11px; border-radius: 8px;
  color: var(--ink); font-weight: 500; font-size: 15.5px; text-decoration: none; white-space: nowrap;
}
.nav__link:hover { color: var(--blue); background: var(--bg-soft); }
.nav__link[aria-current="page"] { color: var(--blue); }
.header__actions { display: flex; align-items: center; gap: 18px; }
.header__phone { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; line-height: 1.25; white-space: nowrap; }
.header__phone strong { font-weight: 700; font-size: 16px; }
.header__phone span { font-size: 12.5px; color: var(--muted); }
.header__phone:hover strong { color: var(--blue); }
.burger { display: none; width: 46px; height: 46px; margin-left: auto; border: 1px solid var(--line); border-radius: var(--r-btn); background: #fff; color: var(--navy); cursor: pointer; align-items: center; justify-content: center; }
.burger .icon { width: 24px; height: 24px; }
.burger .icon-close { display: none; }
.burger[aria-expanded="true"] .icon-menu { display: none; }
.burger[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav { display: none; }

@media (max-width: 1300px) {
  .header__phone { display: none; }
}
@media (max-width: 1100px) {
  :root { --header-h: 64px; }
  .nav, .header__actions { display: none; }
  .burger { display: inline-flex; }
  .logo img { height: 36px; }
  .mobile-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 39;
    display: block; overflow-y: auto;
    padding: 12px var(--gutter) 120px;
    background: #fff;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .mobile-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .mobile-nav__list { margin: 0; padding: 0; list-style: none; }
  .mobile-nav__list a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 4px; border-bottom: 1px solid var(--line);
    color: var(--ink); font-size: 19px; font-weight: 600; text-decoration: none;
  }
  .mobile-nav__list a[aria-current="page"] { color: var(--blue); }
  .mobile-nav__list .icon { color: #9aa6bb; }
  .mobile-nav__contacts { display: grid; gap: 10px; margin-top: 24px; }
  .mobile-nav__contacts .btn--outline { justify-content: flex-start; }
  .mobile-nav__hours { margin-top: 18px; color: var(--muted); font-size: 14px; }
}
@media (max-width: 380px) { .logo img { height: 31px; } }

/* ---------- Нижняя панель на телефонах ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 38;
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(18, 41, 90, .08);
  }
  .mobile-bar .btn { min-height: 52px; }
}

/* ---------- Хлебные крошки и шапка страницы ---------- */
.page-head { padding-block: clamp(28px, 4vw, 48px) clamp(32px, 5vw, 56px); background: var(--bg-soft); }
.page-head h1 { max-width: 820px; }
.page-head .lead { max-width: 700px; margin-top: 18px; color: var(--muted); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #a7b2c5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(28px, 5vw, 64px) clamp(40px, 6vw, 72px); background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(34px, 3.9vw, 52px); }
.hero h1 .accent { color: var(--blue); }
.hero .lead { margin-top: 22px; max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__media { position: relative; }
.hero__media img { width: 100%; border-radius: 20px; box-shadow: var(--shadow); aspect-ratio: 502 / 480; object-fit: cover; }
.hero__badge {
  position: absolute; left: -18px; bottom: 26px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 14px; background: #fff; box-shadow: var(--shadow);
  font-size: 14px; line-height: 1.35; color: var(--ink);
}
.hero__badge .icon { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); }
.hero__badge strong { display: block; font-size: 15px; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 520px; }
  .hero__badge { left: 12px; bottom: 12px; }
}
@media (max-width: 480px) {
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- Полоса направлений под hero ---------- */
.directions { position: relative; margin-top: -1px; padding-block: 0 clamp(48px, 7vw, 80px); background: var(--bg-soft); }
.directions__box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(24px, 4vw, 48px); align-items: center; padding: clamp(24px, 3.4vw, 40px); border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow); }
.directions__text p + p { margin-top: 12px; }
.directions__text .strong { color: var(--ink); font-weight: 600; }
.directions__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.directions__list li + li { border-left: 1px solid var(--line); }
.directions__list a { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 10px; color: var(--navy); text-align: center; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 16px; line-height: 1.15; text-transform: uppercase; }
.directions__list .icon { width: 56px; height: 56px; padding: 14px; border-radius: 50%; background: var(--navy); color: #fff; transition: background-color .2s, transform .2s; }
.directions__list a:hover { color: var(--blue); }
.directions__list a:hover .icon { background: var(--blue); transform: translateY(-2px); }
@media (max-width: 980px) { .directions__box { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .directions__list { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .directions__list li:nth-child(3) { border-left: 0; }
}

/* ---------- Отрасли ---------- */
.industries { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.industry { display: block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 14.5px; font-weight: 500; text-decoration: none; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
@media (hover: hover) { .industry:hover { background: var(--navy); border-color: var(--navy); color: #fff; } }
.industry:focus-visible, .industry:active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Карточки товаров ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 18px; }
.product {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; overflow: hidden;
  transition: box-shadow .25s, border-color .25s, transform .25s;
}
.product:hover { border-color: #c8d4e8; box-shadow: var(--shadow); transform: translateY(-2px); }
.product__media { position: relative; aspect-ratio: 4 / 4.2; background: var(--bg-soft); overflow: hidden; }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product__media--contain img { object-fit: contain; padding: 14%; background: #fff; }
.product:hover .product__media img { transform: scale(1.03); }
.product__body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 18px 18px 20px; }
.product__cat { color: var(--blue); font-size: 13px; font-weight: 600; }
.product__title { font-size: 21px; }
.product__text { color: var(--muted); font-size: 15px; line-height: 1.5; }
.product__actions { display: grid; gap: 8px; margin-top: auto; padding-top: 12px; }
.product__actions .btn { min-height: 44px; padding-inline: 12px; font-size: 15px; }
.product__actions .btn--primary { order: -1; }

/* Метки товара */
.product__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 6px; background: #fdecec; color: var(--red-dark); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; line-height: 1.3; }
.product__title a { color: inherit; text-decoration: none; }
.product__title a:hover { color: var(--blue); }

/* Три основных товара: 3 колонки */
.products--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.product--real .product__media { display: block; aspect-ratio: 1; background: #fff; border-bottom: 1px solid var(--line); }
.product--real .product__media img { object-fit: contain; padding: 7%; mix-blend-mode: multiply; }
.product--real .product__body { gap: 10px; padding: 20px 20px 22px; }
.product__actions--row { grid-template-columns: 1fr 1fr; }
.product__actions--row .btn--primary { order: 0; }
@media (max-width: 960px) { .products--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .products--3 { grid-template-columns: 1fr; gap: 16px; }
  .product--real .product__media { aspect-ratio: 16 / 10; }
  .product--real .product__media img { padding: 4%; }
}

/* Фасовка: сегментный переключатель */
.volume { margin: 4px 0 0; padding: 0; border: 0; min-width: 0; }
.volume__label { padding: 0; margin-bottom: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.volume__options { display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(64px, 1fr); gap: 4px; padding: 4px; border-radius: var(--r-btn); background: var(--bg-soft); }
.volume__opt { position: relative; cursor: pointer; }
.volume__opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.volume__opt span { display: block; padding: 7px 14px; border-radius: 7px; color: var(--ink); font-weight: 600; font-size: 15px; text-align: center; transition: background-color .2s, color .2s, box-shadow .2s; }
.volume__opt:hover span { color: var(--blue); }
.volume__opt input:checked + span { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(18, 41, 90, .16); }
.volume__opt input:focus-visible + span { outline: 3px solid rgba(26, 86, 196, .45); outline-offset: 1px; }

/* Цена */
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-height: 36px; margin: 2px 0 0; }
.price__old { color: #8a94a8; font-size: 16px; text-decoration-thickness: 1.5px; }
.price__new { color: var(--red); font-family: var(--font-head); font-size: 28px; font-weight: 800; line-height: 1.1; }
.price__ask { color: var(--ink); font-size: 16px; font-weight: 600; line-height: 36px; }

/* Другая химическая продукция: карточки со схематичными иллюстрациями */
.products--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product__media--ill { display: grid; place-items: center; aspect-ratio: 10 / 7; background: #fff; border-bottom: 1px solid var(--line); }
.product__media--ill .ill { width: 100%; height: 100%; padding: 6% 8%; transition: transform .5s ease; }
.product--chem:hover .ill { transform: scale(1.03); }
.product--chem .product__body { gap: 8px; padding: 18px 18px 20px; }
.product--chem .product__title { font-size: 19px; }
.product--chem .product__actions .btn--primary { order: 0; }
.stock { justify-self: start; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 6px; border-radius: 6px; background: #e6f5ec; color: #17703d; font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.stock .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.catalog-hint { display: flex; gap: 10px; align-items: flex-start; max-width: 760px; margin: -6px 0 18px; padding: 12px 16px; border-radius: 12px; background: var(--blue-soft); color: var(--navy); font-weight: 500; }
.catalog-hint[hidden] { display: none; }
.catalog-hint .icon { margin-top: 2px; color: var(--blue); }
@media (prefers-reduced-motion: no-preference) { .catalog-hint:not([hidden]) { animation: fade-in .35s ease; } }
.catalog-group__note { max-width: 760px; margin: -8px 0 20px; color: var(--muted); }
@media (max-width: 1100px) { .products--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .products--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .products--4 { grid-template-columns: 1fr; gap: 14px; }
  .product__media--ill { aspect-ratio: 16 / 8; }
}

/* ---------- Фильтр каталога ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  padding: 9px 16px; border: 1px solid var(--line); border-radius: var(--r-btn); background: #fff;
  color: var(--ink); font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (max-width: 720px) {
  .filter { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 8px; scrollbar-width: none; }
  .filter::-webkit-scrollbar { display: none; }
}
.catalog-group + .catalog-group { margin-top: 48px; }
.catalog-group__title { margin-bottom: 18px; font-size: clamp(24px, 2.4vw, 30px); }
.catalog-empty { padding: 28px; border-radius: var(--r-card); background: var(--bg-soft); color: var(--muted); }
.is-hidden { display: none !important; }

/* ---------- Применение спирта (плитки) ---------- */
.uses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 270px; gap: 16px; }
.use {
  position: relative; display: block; overflow: hidden; border: 0; padding: 0; border-radius: var(--r-card);
  background: var(--navy); cursor: zoom-in; text-align: left; color: #fff;
}
.use img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.use::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,29,66,0) 35%, rgba(12,29,66,.92) 100%); }
.use:hover img { transform: scale(1.04); }
.use__label { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; }
.use__label strong { display: block; font-family: var(--font-head); font-size: 23px; font-weight: 800; line-height: 1.1; }
.use__label span { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; line-height: 1.35; color: rgba(255,255,255,.88); }
.use--tall { grid-row: span 2; }
/* Карточка — ссылка на тематическую страницу primenenie/<slug>/ */
a.use { text-decoration: none; cursor: pointer; }
a.use:hover, a.use:focus-visible { color: #fff; }
a.use:focus-visible { outline: 3px solid rgba(26, 86, 196, .6); outline-offset: 3px; }
a.use:focus-visible img { transform: scale(1.04); }
.use__label .icon { flex: none; transition: transform .2s; }
a.use:hover .use__label .icon, a.use:focus-visible .use__label .icon { transform: translateX(3px); }
@media (max-width: 900px) {
  .uses { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
}
@media (max-width: 520px) {
  .uses { grid-auto-rows: 200px; gap: 12px; }
  .use--tall { grid-row: span 1; }
  .use__label { left: 14px; right: 14px; bottom: 12px; }
  .use__label strong { font-size: 19px; }
  .use__label span { font-size: 12.5px; }
}

/* ---------- Работаем с клиентом ---------- */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--reverse { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.split__media img { width: 100%; border-radius: var(--r-card); object-fit: cover; }
.split h2 + p, .split h2 + .lead { margin-top: 16px; }
@media (max-width: 900px) {
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split__media { max-width: 520px; }
  .split--reverse .split__media { order: -1; }
}

.manager-card { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.manager-card__name { color: var(--ink); font-weight: 700; }
.manager-card__role { color: var(--muted); font-size: 14px; }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 26px 0 0; padding: 0; list-style: none; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.checks .icon { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); stroke-width: 2.25; }
@media (max-width: 560px) { .checks { grid-template-columns: 1fr; } }

/* Шаги заказа */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { position: relative; padding: 22px 24px 0 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px;
  border-radius: 50%; background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 17px;
}
.steps strong { display: block; color: var(--ink); font-size: 17px; }
.steps p { margin-top: 4px; color: var(--muted); font-size: 15px; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } .steps li { padding-right: 0; } }

/* ---------- Доставка ---------- */
.zones { display: grid; gap: 0; margin: 28px 0 0; padding: 0; list-style: none; }
.zones li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
.zones li:last-child { border-bottom: 1px solid var(--line); }
.zones .icon { width: 48px; height: 48px; padding: 12px; border-radius: 12px; background: var(--navy); color: #fff; }
.zones strong { display: block; color: var(--ink); font-size: 18px; }
.zones p { color: var(--muted); font-size: 15px; }

.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.info-card { padding: 26px; border-radius: var(--r-card); background: #fff; border: 1px solid var(--line); }
.info-card .icon { width: 44px; height: 44px; padding: 10px; margin-bottom: 16px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }
.info-card h3 { margin-bottom: 8px; }
.info-card p { color: var(--muted); }
.info-card--accent { background: var(--navy); border-color: var(--navy); }
.info-card--accent h3, .info-card--accent p { color: #fff; }
.info-card--accent p { opacity: .85; }
.info-card--accent .icon { background: rgba(255,255,255,.12); color: #fff; }
@media (max-width: 900px) { .info-grid { grid-template-columns: 1fr; } }

.banner-figure { margin: 0; }
.banner-figure img { width: 100%; border-radius: var(--r-card); box-shadow: var(--shadow); }

.promises { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 22px 0 0; padding: 0; list-style: none; }
.promises li { display: flex; gap: 10px; align-items: center; color: var(--ink); font-weight: 600; }
.promises .icon { color: var(--red); width: 22px; height: 22px; }

.note { display: flex; gap: 14px; align-items: flex-start; margin-top: 28px; padding: 18px 20px; border-left: 4px solid var(--red); border-radius: 0 12px 12px 0; background: #fff; color: var(--ink); }
.note .icon { color: var(--red); margin-top: 2px; }

/* Калькулятор доставки «Деловые Линии» (официальный iframe, 332 × 390) */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 5vw, 72px); align-items: center; }
.calc__text .lead { margin-top: 16px; max-width: 560px; }
.calc__note { display: flex; gap: 10px; max-width: 560px; margin-top: 18px; color: var(--muted); font-size: 14.5px; }
.calc__note .icon { margin-top: 2px; color: var(--blue); }
.calc__frame { justify-self: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow); }
.calc__frame iframe { display: block; border: 0; }
/* «Ваш город — …» (заполняется скриптом, только если город определён) */
.geo-note { margin-top: 14px; max-width: 600px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.geo-note strong { color: var(--navy); }
.geo-note a { color: var(--blue); }
.geo-note__change { padding: 0; border: 0; background: none; color: var(--blue); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.geo-note__change:hover { color: var(--navy); }
.geo-note__form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.geo-note__form input { flex: 1 1 220px; min-width: 0; min-height: 42px; padding: 8px 12px; border: 1px solid #c8d3e6; border-radius: 10px; font: inherit; color: var(--navy); background: #fff; }
.geo-note--buybox { margin-top: 10px; font-size: 14px; }
.calc__share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; }
.calc__share-status { color: var(--navy); font-size: 14.5px; font-weight: 600; }
.calc__share-status:empty { display: none; }
.calc__share-url { width: min(100%, 420px); margin-top: 6px; padding: 8px 10px; border: 1px solid #c8d3e6; border-radius: 10px; font: inherit; font-weight: 400; color: var(--navy); background: #fff; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
/* Экраны уже калькулятора: без рамки на всю ширину, при нехватке места прокрутка внутри блока, а не всей страницы */
@media (max-width: 400px) {
  .calc__frame { justify-self: stretch; margin-inline: calc(-1 * var(--gutter)); padding: 12px 0; border-inline: 0; border-radius: 0; box-shadow: none; overflow-x: auto; }
  .calc__frame iframe { margin-inline: auto; }
}

/* ---------- Отзывы ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.review { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 26px; border-radius: var(--r-card); background: #fff; border: 1px solid var(--line); }
.review blockquote { margin: 0; color: var(--ink); font-size: 16.5px; line-height: 1.6; }
.review blockquote::before { content: "«"; }
.review blockquote::after { content: "»"; }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review__avatar { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--blue-soft); color: var(--navy); font-family: var(--font-head); font-weight: 800; font-size: 18px; }
.review__name { color: var(--ink); font-weight: 700; line-height: 1.3; }
.review__role { color: var(--muted); font-size: 14px; line-height: 1.3; }
.reviews--wall .review:nth-child(3n+2) { background: var(--bg-soft); border-color: transparent; }
@media (max-width: 960px) { .reviews { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- Блок с видео ---------- */
.refill { position: relative; overflow: hidden; border-radius: 20px; background: var(--navy); color: #fff; }
.refill__grid { display: grid; grid-template-columns: 260px 1fr auto; gap: clamp(24px, 4vw, 48px); align-items: center; padding: clamp(24px, 3.5vw, 40px); }
.refill__video { position: relative; width: 100%; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #0a1838; }
.refill__video video, .refill__video img { width: 100%; height: 100%; object-fit: cover; }
/* Mi Browser (Xiaomi) рисует играющее видео поверх всей страницы, в том числе поверх окон и меню.
   Пока открыто окно или меню (html.is-locked), видео с автозапуском убрано из отрисовки; место под ним сохраняется. */
html.is-locked video[data-autoplay] { display: none; }
html.is-locked .topic__video::before { content: ""; display: block; aspect-ratio: 9 / 16; border-radius: var(--r-card); background: var(--navy); }
.refill h2 { color: #fff; font-size: clamp(26px, 2.8vw, 36px); }
.refill p { margin-top: 12px; max-width: 520px; color: rgba(255,255,255,.82); font-size: 17px; }
.refill__actions { display: grid; gap: 10px; min-width: 240px; }
@media (max-width: 960px) {
  .refill__grid { grid-template-columns: 180px 1fr; }
  .refill__actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .refill__grid { grid-template-columns: 1fr; }
  .refill__video { max-width: 200px; }
  .refill__actions { grid-template-columns: 1fr; min-width: 0; }
}

/* ---------- Контакты ---------- */
.contact-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { padding-top: 0; }
.contact-list .icon { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }
.contact-list .label { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.3; }
.contact-list .value { color: var(--ink); font-weight: 600; font-size: 17px; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a.value:hover { color: var(--blue); }
.contact-panel { padding: clamp(22px, 3vw, 34px); border-radius: var(--r-card); background: #fff; border: 1px solid var(--line); }
.contact-panel__actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* Контакты в две колонки: телефон и мессенджеры | e-mail, адрес, график */
.contact-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-cols .contact-list li:last-child { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 900px) {
  .contact-cols { grid-template-columns: 1fr; }
  .contact-cols .contact-list:first-child li:last-child { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
  .contact-cols .contact-list + .contact-list li:first-child { padding-top: 14px; }
}
.hours { width: 100%; border-collapse: collapse; margin-top: 4px; }
.hours td { padding: 3px 0; color: var(--ink); }
.hours td:last-child { text-align: right; font-weight: 600; }
.hours .off td:last-child { color: var(--red); }
.hours-note { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.45; }

/* ---------- Страница товара ---------- */
.product-hero { padding-block: clamp(24px, 3.5vw, 40px) clamp(40px, 6vw, 72px); background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); }
.product-hero__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.product-hero__media { border: 1px solid var(--line); border-radius: 20px; background: #fff; overflow: hidden; }
.product-hero__media img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 6%; mix-blend-mode: multiply; }
.product-hero__info h1 { margin-top: 12px; font-size: clamp(34px, 4vw, 50px); }
.product-hero__info .lead { margin-top: 16px; }
.buybox { display: grid; gap: 12px; margin-top: 26px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow); }
.buybox .price__new { font-size: 34px; }
.buybox__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.buybox__actions .btn { flex: 1 1 180px; }
.buybox__note { display: flex; gap: 8px; color: var(--muted); font-size: 14px; }
.buybox__note .icon { margin-top: 2px; }
@media (max-width: 860px) {
  .product-hero__grid { grid-template-columns: 1fr; }
  .product-hero__media { max-width: 440px; }
  .product-hero__media img { aspect-ratio: 4 / 3; }
}

.article-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100dvh - var(--header-h) - 48px); overflow-y: auto; }
.toc__title { margin-bottom: 10px; color: var(--ink); font-weight: 700; }
.toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.toc a:not(.link-arrow) { display: block; margin-left: -2px; padding: 6px 0 6px 14px; border-left: 2px solid transparent; color: var(--muted); font-size: 14.5px; line-height: 1.35; text-decoration: none; }
.toc a:not(.link-arrow):hover { color: var(--blue); border-left-color: var(--blue); }
.toc__back { margin-top: 18px; font-size: 14.5px; }
.article { max-width: 760px; }
.article > p, .article__section > p { margin-top: 14px; }
.article > p:first-child { margin-top: 0; }
.article__section { padding-top: 40px; scroll-margin-top: calc(var(--header-h) + 16px); }
.article__section h2 { font-size: clamp(26px, 2.6vw, 32px); }
.article__section h3 { margin-top: 26px; font-size: 21px; }
/* Тематические страницы «Где применяют спирт»: статья + вертикальное видео (9:16) справа, на телефоне — над статьёй */
.topic__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.topic__article { grid-column: 1; grid-row: 1; }
.topic__article > .article__section:first-child, .topic__article > .note:first-child { margin-top: 0; padding-top: 0; }
.topic__video { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h) + 20px); margin: 0; }
.topic__video video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r-card); background: var(--navy); }
.topic__video figcaption { margin-top: 10px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.topic__more { margin-top: clamp(28px, 4vw, 40px); }
.topic__more h2 { font-size: clamp(22px, 2.2vw, 26px); }
@media (max-width: 900px) {
  .topic__grid { grid-template-columns: 1fr; }
  .topic__video { grid-column: 1; grid-row: 1; position: static; width: 100%; max-width: 300px; justify-self: center; }
  .topic__article { grid-row: 2; }
}
.article__list { display: grid; gap: 8px; margin: 14px 0 0; padding: 18px 20px; list-style: none; border-radius: 12px; background: var(--bg-soft); }
.article__list li { position: relative; padding-left: 22px; color: var(--ink); }
.article__list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--red); transform: rotate(45deg); }
.article__steps { counter-reset: st; display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.article__steps li { counter-increment: st; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; color: var(--ink); font-weight: 500; }
.article__steps li::before { content: counter(st); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 800; }
.faq { display: grid; gap: 10px; margin-top: 18px; }
.faq__item { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; color: var(--ink); font-weight: 600; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { color: #9aa6bb; transition: transform .2s; }
.faq__item[open] summary .icon { transform: rotate(90deg); }
.faq__answer { padding: 0 18px 16px; color: var(--text); }
@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; padding: 18px; border-radius: var(--r-card); background: var(--bg-soft); }
}

/* Быстрые способы связи */
.quick-contacts { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.quick-contacts__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; }
.quick-contacts__title { margin: 0; color: var(--ink); font-weight: 600; }
.quick-contacts__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.quick-contact { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; transition: border-color .2s, transform .15s, background-color .2s; }
.quick-contact:hover { border-color: var(--blue); background: #fafcff; color: var(--ink); }
.quick-contact:active { transform: translateY(1px); }
.quick-contact .icon { width: 44px; height: 44px; padding: 11px; border-radius: 50%; color: #fff; }
.quick-contact--phone .icon { background: var(--red); }
.quick-contact--wa .icon { background: #25d366; }
.quick-contact--tg .icon { background: #229ed9; }
.quick-contact--mail .icon { background: var(--navy); }
@media (min-width: 761px) { .quick-contact { flex-direction: row; justify-content: center; gap: 12px; padding: 14px 12px; font-size: 15px; } }
@media (max-width: 380px) { .quick-contacts__list { gap: 6px; } .quick-contact { font-size: 12.5px; } .quick-contact .icon { width: 40px; height: 40px; padding: 10px; } }
/* Очень узкие экраны: 2 × 2, чтобы подписи помещались в карточки */
@media (max-width: 359px) { .quick-contacts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .quick-contact { font-size: 14px; } }

/* ---------- О компании ---------- */
.prose { max-width: 70ch; }
.prose p + p { margin-top: 16px; }
.prose .lead { color: var(--ink); }
.about-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .about-intro { grid-template-columns: 1fr; } }

.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
.values li { padding: 8px 28px; text-align: center; }
.values li + li { border-left: 1px solid var(--line); }
.values .icon { width: 64px; height: 64px; padding: 16px; margin: 0 auto 14px; border-radius: 50%; background: var(--navy); color: #fff; }
.values strong { display: block; color: var(--navy); font-family: var(--font-head); font-size: 22px; font-weight: 800; text-transform: uppercase; }
.values p { margin-top: 4px; color: var(--muted); }
@media (max-width: 720px) { .values { grid-template-columns: 1fr; gap: 24px; } .values li + li { border-left: 0; } }

.offer-list { columns: 2; column-gap: 40px; margin: 0; padding: 0; list-style: none; }
.offer-list li { display: flex; gap: 12px; break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.offer-list .icon { color: var(--blue); margin-top: 2px; }
@media (max-width: 720px) { .offer-list { columns: 1; } }

.statement { max-width: 900px; margin: 0; padding-left: clamp(20px, 3vw, 36px); border-left: 4px solid var(--red); color: var(--ink); font-family: var(--font-head); font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; line-height: 1.25; }

.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: pr; }
.principles li { padding: 22px; border-radius: var(--r-card); background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 17px; line-height: 1.35; }
.principles li::before { counter-increment: pr; content: "0" counter(pr); display: block; margin-bottom: 26px; color: var(--red); font-family: var(--font-head); font-size: 30px; font-weight: 800; }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .principles { grid-template-columns: 1fr; } }

/* ---------- CTA-полоса ---------- */
.cta-band { padding: clamp(28px, 4vw, 48px); border-radius: 20px; background: linear-gradient(120deg, var(--navy) 0%, #1b438f 100%); color: #fff; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 2.8vw, 36px); }
.cta-band p { margin-top: 10px; color: rgba(255,255,255,.82); max-width: 560px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* Красная кнопка «Заказать» в блоке заказа тематических страниц «Где применяют спирт» (ведёт в каталог спирта) */
.cta-band__order { min-width: 160px; box-shadow: 0 8px 22px rgba(211, 35, 43, .38); }
.cta-band__order:hover { background: var(--red-dark); color: #fff; box-shadow: 0 10px 26px rgba(211, 35, 43, .48); }
.cta-band__order:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.cta-band__order:active { background: var(--red-dark); box-shadow: 0 4px 12px rgba(211, 35, 43, .35); }
@media (max-width: 520px) { .cta-band--topic .cta-band__actions, .cta-band--topic .cta-band__actions .btn { width: 100%; } }

/* ---------- Подвал ---------- */
.footer { margin-top: 0; padding-block: 56px 28px; background: var(--navy-deep); color: rgba(255,255,255,.78); font-size: 15px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.3fr .8fr 1fr 1fr; gap: 32px; }
.footer__brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.footer__brand img { width: 52px; height: 52px; border-radius: 50%; }
.footer__brand strong { display: block; font-family: var(--font-head); font-size: 22px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.footer__brand span { font-size: 12.5px; color: rgba(255,255,255,.65); letter-spacing: .04em; }
.footer__about { margin-top: 16px; max-width: 320px; }
.footer__game { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 14px; border: 1px solid rgba(255,255,255,.28); border-radius: var(--r-btn); background: transparent; color: #fff; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background-color .2s, border-color .2s; }
.footer__game:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }
.footer__game .icon { width: 18px; height: 18px; color: #8fb6f5; }
.footer__game[aria-busy="true"] { opacity: .7; cursor: progress; }
.footer a.footer__game:hover { text-decoration: none; }
.footer h2 { margin-bottom: 14px; color: #fff; font-family: var(--font); font-size: 15px; font-weight: 700; }
.footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer .hours td { color: rgba(255,255,255,.78); padding: 2px 0; }
.footer .hours td:last-child { color: #fff; padding-left: 16px; }
.footer .hours .off td:last-child { color: #ff8a8f; }
.footer .hours-note { max-width: 260px; color: rgba(255,255,255,.66); }
.footer__legal { max-width: 1040px; margin: 18px 0 0; color: rgba(255,255,255,.66); font-size: 13px; line-height: 1.6; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; color: rgba(255,255,255,.6); }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Мини-игра «Точный розлив»: плавающая кнопка и промо-блок ---------- */
.game-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 37;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 6px 18px 6px 6px;
  border: 0; border-radius: 999px;
  background: var(--blue); color: #fff;
  font: inherit; text-align: left; cursor: pointer;
  box-shadow: 0 10px 26px rgba(26, 86, 196, .32), 0 2px 6px rgba(12, 29, 66, .18);
  transition: background-color .2s, box-shadow .2s, transform .15s;
}
.game-fab__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: #fff; color: var(--blue); }
.game-fab__icon .icon { width: 22px; height: 22px; stroke-width: 2; }
.game-fab__text { display: flex; flex-direction: column; line-height: 1.15; }
.game-fab__title { font-weight: 700; font-size: 15px; white-space: nowrap; }
/* Подпись видна только при наведении (на устройствах с мышью) */
.game-fab__sub { max-height: 0; overflow: hidden; font-size: 12.5px; opacity: 0; color: rgba(255,255,255,.85); white-space: nowrap; transition: max-height .2s, opacity .2s; }
.game-fab:hover { background: #164aab; box-shadow: 0 14px 30px rgba(26, 86, 196, .38), 0 2px 6px rgba(12, 29, 66, .2); transform: translateY(-1px); }
.game-fab:hover .game-fab__sub, .game-fab:focus-visible .game-fab__sub { max-height: 18px; opacity: 1; }
.game-fab:active { transform: translateY(1px); }
.game-fab:focus-visible { outline: 3px solid rgba(26, 86, 196, .45); outline-offset: 3px; border-radius: 999px; }
.game-fab[aria-busy="true"] { cursor: progress; opacity: .85; }
/* На всех страницах, кроме страницы игры, плавающая кнопка — ссылка на tochny-rozliv.html: выглядит так же, как кнопка */
a.game-fab, a.game-fab:hover { color: #fff; text-decoration: none; }
/* Пока открыта игра, окно заказа или мобильное меню — кнопку не показываем */
html.is-locked .game-fab { visibility: hidden; opacity: 0; pointer-events: none; }
/* Мягкое появление и один ненавязчивый акцент спустя время, без бесконечных анимаций */
@media (prefers-reduced-motion: no-preference) {
  .game-fab { animation: fab-in .5s cubic-bezier(.2, .8, .2, 1) .8s backwards, fab-hint 1.2s ease-out 7s 1; }
  @keyframes fab-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes fab-hint { 0% { box-shadow: 0 10px 26px rgba(26, 86, 196, .32), 0 0 0 0 rgba(26, 86, 196, .4); } 100% { box-shadow: 0 10px 26px rgba(26, 86, 196, .32), 0 0 0 14px rgba(26, 86, 196, 0); } }
}
/* Подвал не должен прятаться под кнопкой в самом низу страницы */
.footer { padding-bottom: 96px; }
@media (max-width: 760px) {
  /* Над нижней панелью «Позвонить / Заказать», компактно и с учётом safe-area */
  .game-fab { right: 12px; bottom: calc(88px + env(safe-area-inset-bottom)); min-height: 42px; padding: 4px 14px 4px 4px; gap: 8px; }
  .game-fab__icon { width: 34px; height: 34px; }
  .game-fab__icon .icon { width: 19px; height: 19px; }
  .game-fab__title { font-size: 14px; }
  .game-fab__sub { display: none; }
  .footer { padding-bottom: 72px; }
  .game-fab { transition: transform .25s ease, opacity .25s ease, background-color .2s; }
  .game-fab.is-tucked { transform: translateY(16px); opacity: 0; pointer-events: none; }
}

.game-promo { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(18px, 3vw, 32px); align-items: center; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg-soft); }
.game-promo__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--blue); color: #fff; }
.game-promo__icon .icon { width: 32px; height: 32px; }
.game-promo h2 { font-size: clamp(24px, 2.4vw, 30px); }
.game-promo p { margin-top: 8px; max-width: 64ch; color: var(--text); }
@media (max-width: 900px) {
  .game-promo { grid-template-columns: auto minmax(0, 1fr); }
  .game-promo__btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 520px) {
  .game-promo { grid-template-columns: 1fr; }
  .game-promo__icon { width: 52px; height: 52px; }
  .game-promo__btn { justify-self: stretch; white-space: normal; }
}

/* ---------- Модальные окна ---------- */
.modal {
  width: min(520px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto; padding: 0;
  border: 0; border-radius: 20px;
  background: #fff; color: var(--text);
  box-shadow: var(--shadow-lg);
  overflow: auto;
}
.modal::backdrop { background: rgba(10, 22, 50, .55); }
.modal[open] { animation: modal-in .22s cubic-bezier(.2, .8, .2, 1); }
.modal[open]::backdrop { animation: fade-in .22s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal__inner { position: relative; padding: 32px 28px 26px; }
.modal__close {
  position: absolute; top: 14px; right: 14px;
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--ink); cursor: pointer;
}
.modal__close:hover { background: var(--line); }
.modal h2 { padding-right: 40px; font-size: 30px; }
.modal__lead { margin-top: 10px; color: var(--muted); }
.order-summary { display: grid; gap: 12px; margin-top: 16px; padding: 16px; border-radius: 14px; background: var(--bg-soft); color: var(--ink); font-size: 15px; }
.order-summary__product strong { color: var(--navy); }
.order-summary__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
/* Окно заказа без выбранного товара («Спросите менеджера», страницы «Где применяют спирт»): блок товара скрыт */
.order-summary[hidden], .order-summary__row[hidden] { display: none; }
.order-summary__label { color: var(--muted); }
.order-summary .volume__options { background: #fff; }
.price--sm { min-height: 0; margin: 0; gap: 2px 10px; }
.price--sm .price__new { font-size: 21px; }
.price--sm .price__old { font-size: 14px; }
.price--sm .price__ask { line-height: 1.3; font-size: 15px; }
.qty { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: var(--r-btn); background: #fff; border: 1px solid var(--line); }
.qty__btn { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 7px; background: var(--bg-soft); color: var(--navy); cursor: pointer; transition: background-color .2s, color .2s; }
.qty__btn .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.qty__btn:hover:not(:disabled) { background: var(--blue-soft); color: var(--blue); }
.qty__btn:disabled { opacity: .4; cursor: not-allowed; }
.qty__value { min-width: 40px; text-align: center; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.order-summary__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 600; }
.order-summary__sum { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 4px 10px; text-align: right; }
.order-summary__sum strong { color: var(--red); font-family: var(--font-head); font-size: 26px; font-weight: 800; line-height: 1.1; }
.order-summary__delivery { color: var(--ink); font-weight: 600; font-size: 15px; white-space: nowrap; }
.order-options { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.order-option {
  display: grid; grid-template-columns: 48px 1fr 20px; gap: 14px; align-items: center;
  padding: 11px 16px; border: 1px solid var(--line); border-radius: 14px;
  color: var(--ink); text-decoration: none;
  transition: border-color .2s, background-color .2s, transform .15s;
}
.order-option:hover { border-color: var(--blue); background: #fafcff; color: var(--ink); }
.order-option:active { transform: translateY(1px); }
.order-option > .icon:first-child { width: 48px; height: 48px; padding: 12px; border-radius: 12px; color: #fff; }
.order-option--phone > .icon:first-child { background: var(--red); }
.order-option--mail > .icon:first-child { background: var(--navy); }
.order-option--tg > .icon:first-child { background: #229ed9; }
.order-option--wa > .icon:first-child { background: #25d366; }
.order-option > .icon:last-child { color: #9aa6bb; }
.order-option__title { display: block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.order-option__value { display: block; font-size: 18px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.order-option--action .order-option__title { font-size: 15px; letter-spacing: .05em; color: var(--ink); }
.order-hint { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #e8f5fc; color: #0f5f87; font-size: 14px; font-weight: 500; }
.order-hint[hidden] { display: none; }
.modal__hours { display: flex; gap: 10px; margin-top: 18px; color: var(--muted); font-size: 14px; }
.modal__hours .icon { margin-top: 2px; }

/* Постер */
.modal--poster { width: min(720px, calc(100% - 32px)); background: #fff; }
.poster { display: grid; }
.poster img { width: 100%; height: auto; max-height: calc(100dvh - 160px); object-fit: contain; background: var(--bg-soft); }
.poster__bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 16px 20px; }
.poster__bar strong { color: var(--ink); font-size: 17px; }
.modal--poster .modal__close { background: rgba(255,255,255,.92); box-shadow: var(--shadow); z-index: 1; }

@media (max-width: 480px) {
  .modal__inner { padding: 28px 18px 20px; }
  .modal h2 { font-size: 26px; }
  .order-option { grid-template-columns: 44px 1fr; padding: 12px; }
  .order-option > .icon:last-child { display: none; }
  .order-option > .icon:first-child { width: 44px; height: 44px; padding: 11px; }
  .order-option__value { font-size: 17px; }
}

/* ---------- Появление при скролле ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
