/* base.css — Общее критичное — в <style> каждой страницы витрины и КП: токены, шрифты, база, иконки,
   кнопки и поля, поле поиска, лого, верхняя строка, шапка, правила, прячущие до действия
   меню, мега-меню и закреплённую шапку, .page, крошки, плашка cookie.
   Сюда — только то, что видно на первом экране любой страницы или прячется до действия;
   стили своего вида — в его часть, ниже первого экрана — в некритичную. Бюджет встроенной
   части вида — 10 КБ gzip (TestInlineCSSLimit). */

/* Витрина «Ориентира» — дизайн-система A-DS (docs/design/site/A-DS),
   шапка (A-Header, A-Mobile, A-Mobile2) и подвал (A-Home).
   Ширины: ≥1280 — компьютер, 1024–1279 — планшет горизонтально,
   768–1023 — планшет вертикально, <768 — телефон. */
/* Onest — свои файлы (OFL, fonts/OFL.txt), вариативный 400–800. Подмножества
   кириллица, латиница и latin-ext (знак ₽): браузер качает файл, только когда
   на странице есть знаки из его диапазона; предзагружается кириллица. */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 400 800;
  src: url(/static/fonts/onest-cyrillic.woff2?v=68e5e01d) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 400 800;
  src: url(/static/fonts/onest-latin.woff2?v=052df745) 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: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 400 800;
  src: url(/static/fonts/onest-latin-ext.woff2?v=14e7d307) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Запасные грани под метрики Onest (OR0153): до его прихода текст той же
   ширины и высоты строки. Как посчитано — TestFontFallbackFaces;
   unicode-range — как у Onest: прочее рисует системный шрифт. */
@font-face { font-family: 'Onest Arial'; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, 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, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; font-weight: 400 500; src: local('Arial'), local('Liberation Sans'), local('Arimo'), local('Arimo Regular');
  size-adjust: 103.46%; ascent-override: 93.75%; descent-override: 29.48%; line-gap-override: 0%; }
@font-face { font-family: 'Onest Arial'; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, 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, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; font-weight: 600 700; src: local('Arial Bold'), local('Liberation Sans Bold'), local('Arimo Bold');
  size-adjust: 98.98%; ascent-override: 98%; descent-override: 30.81%; line-gap-override: 0%; }
@font-face { font-family: 'Onest Arial'; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, 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, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; font-weight: 800; src: local('Arial Bold'), local('Liberation Sans Bold'), local('Arimo Bold');
  size-adjust: 100.62%; ascent-override: 96.4%; descent-override: 30.31%; line-gap-override: 0%; }
@font-face { font-family: 'Onest Roboto'; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, 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, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; font-weight: 400 500; src: local('Roboto'), local('Roboto Regular');
  size-adjust: 101.43%; ascent-override: 95.63%; descent-override: 30.07%; line-gap-override: 0%; }
@font-face { font-family: 'Onest Roboto'; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, 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, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; font-weight: 600 700; src: local('Roboto Bold');
  size-adjust: 103.13%; ascent-override: 94.05%; descent-override: 29.57%; line-gap-override: 0%; }
@font-face { font-family: 'Onest Roboto'; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, 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, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; font-weight: 800; src: local('Roboto Bold');
  size-adjust: 104.84%; ascent-override: 92.52%; descent-override: 29.09%; line-gap-override: 0%; }
@font-face { font-family: 'Onest DejaVu'; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, 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, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; font-weight: 400 500; src: local('DejaVu Sans');
  size-adjust: 89.82%; ascent-override: 108%; descent-override: 33.96%; line-gap-override: 0%; }
@font-face { font-family: 'Onest DejaVu'; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, 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, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; font-weight: 600 700; src: local('DejaVu Sans Bold');
  size-adjust: 84.04%; ascent-override: 115.42%; descent-override: 36.29%; line-gap-override: 0%; }
@font-face { font-family: 'Onest DejaVu'; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, 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, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; font-weight: 800; src: local('DejaVu Sans Bold');
  size-adjust: 85.44%; ascent-override: 113.54%; descent-override: 35.7%; line-gap-override: 0%; }
:root {
  /* цвета */
  --c-red: #D62828;
  --c-red-dark: #B01E1E;
  --c-red-wash: #FDF3F3;  /* фон выбранного: акцентная плитка, упаковка набора */
  --c-red-line: #F4CACA;  /* рамка на светло-красном: плитка, теги набора */
  --c-red-tint: #FBDADA;  /* подложка фото акцентной плитки */
  --c-red-light: #F08A8A; /* надзаголовок на тёмном */
  --c-ink: #14161A;
  --c-gray: #5A606B;
  --c-gray-dark: #4A505A;
  --c-green: #1F7A3A;
  --c-line: #E3E5E8;
  --c-field: #CDD1D6;
  --c-soft: #F4F5F7;
  --c-ink-hover: #2A2D33;
  --c-mark: #FDE8E8;
  --c-white: #FFFFFF;
  --c-disabled: #6B717C;
  --c-footer: #C9CDD3;
  /* тёмный экран: просмотр фото (OR0093, A-ProductPhoto) */
  --c-dark-btn: #23262C;
  --c-dark-btn-hover: #2F333A;
  --c-dark-text: #D5D8DD;
  --c-dark-muted: #A9AEB6;

  /* типографика */
  --font: 'Onest', 'Onest Arial', 'Onest Roboto', 'Onest DejaVu', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-h1: 44px; --lh-h1: 48px;
  --fs-h2: 30px; --lh-h2: 36px;
  --fs-h3: 22px; --lh-h3: 28px;
  --fs-body: 16px; --lh-body: 25px;
  --fs-small: 14px; --lh-small: 21px;
  --fs-eyebrow: 12px;

  /* радиусы */
  --r-xs: 6px;
  --r: 10px;
  --r-md: 12px;
  --r-lg: 14px;
  --r-xl: 16px;
  --r-pill: 999px;

  /* отступы */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px;

  /* контейнер */
  --container: 1360px;
  --gutter: 40px;

  --shadow-sticky: 0 6px 18px rgba(20, 22, 26, 0.08);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-ink);
  font: 400 var(--fs-body)/var(--lh-body) var(--font);
}
a { color: var(--c-ink); text-decoration: none; }
a:hover { color: var(--c-red); }
:focus-visible { outline: 2px solid var(--c-red); outline-offset: 2px; }
img, svg { display: block; }
h1, h2, h3 { margin: 0; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; }
p { margin: 0; }
.muted { color: var(--c-gray); }
.small { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--c-gray); }
.eyebrow { font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-gray); }
.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 { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: var(--s-4); top: var(--s-4); z-index: 200; padding: var(--s-2) var(--s-4); background: var(--c-white); border-radius: var(--r); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
/* иконки спрайта */
.i { width: 18px; height: 18px; flex: none; }
.i--lg { width: 22px; height: 22px; }
/* кнопки A-DS: основная красная, тёмная, контурная, недоступная */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border: 0; border-radius: var(--r);
  font: 600 16px/1 var(--font); white-space: nowrap; cursor: pointer;
}
.btn--red { background: var(--c-red); color: var(--c-white); }
.btn--red:hover { background: var(--c-red-dark); color: var(--c-white); }
.btn--dark { background: var(--c-ink); color: var(--c-white); }
.btn--dark:hover { background: var(--c-ink-hover); color: var(--c-white); }
.btn--outline { padding: 0 22px; border: 1.5px solid var(--c-ink); background: var(--c-white); color: var(--c-ink); }
.btn--outline:hover { border-color: var(--c-red); color: var(--c-red); }
.btn:disabled, .btn--disabled { padding: 0 22px; background: var(--c-line); color: var(--c-disabled); border: 0; cursor: default; pointer-events: none; }
.btn--md { height: 46px; padding: 0 18px; font-size: 15px; }
.btn--sm { height: 42px; padding: 0 16px; font-size: 15px; gap: 8px; }
.btn--block { display: flex; width: 100%; height: 52px; }
.icon-btn {
  width: 44px; height: 44px; flex: none; border: 0; border-radius: var(--r);
  display: inline-flex; align-items: center; justify-content: center;
  background: none; color: var(--c-ink); cursor: pointer;
}
.icon-btn--dark, .icon-btn--dark:hover { background: var(--c-ink); color: var(--c-white); }
/* поле A-DS и поле с ошибкой */
.field { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-small); font-weight: 500; }
.field input, .field textarea {
  height: 48px; padding: 0 14px; border: 1.5px solid var(--c-field); border-radius: var(--r);
  font: 400 16px var(--font); color: var(--c-ink); background: var(--c-white);
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--c-ink); }
.field--error { color: var(--c-red-dark); }
.field--error input, .field--error textarea { border-color: var(--c-red); }
.field__error { font-size: 13px; font-weight: 400; }
/* поиск */
.search { margin: 0; flex: 1 1 320px; min-width: 0; }
.search__field {
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px;
  border: 1.5px solid var(--c-ink); border-radius: var(--r); background: var(--c-white); cursor: text;
}
.search__icon { width: 20px; height: 20px; color: var(--c-gray); }
.search__field input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; padding: 0; background: none;
  font: 400 16px var(--font); color: var(--c-ink);
}
.search__field:focus-within { box-shadow: 0 0 0 3px #F4D4D4; }
.search--sm .search__field { height: 42px; padding: 0 14px; }
.search--sm .search__icon { width: 18px; height: 18px; }
.search--sm input { font-size: 15px; }
.search { display: grid; grid-template-columns: minmax(0, 1fr); position: relative; }
.search__field { grid-area: 1 / 1; }
.search__back { display: none; }
.search__clear {
  grid-area: 1 / 1; justify-self: end; align-self: center; margin-right: 7px;
  width: 32px; height: 32px; border: 0; border-radius: 8px; background: var(--c-soft); color: var(--c-ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.search__clear[hidden] { display: none; }
.search__clear .i { width: 14px; height: 14px; }
.search:has(.search__clear:not([hidden])) .search__field { padding-right: 46px; }
.search__field input::-webkit-search-cancel-button { -webkit-appearance: none; }
/* логотип */
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo__mark { flex: none; width: 36px; height: 36px; }
/* надпись ORIENTIR (viewBox 355.2×53.6) — ширина по пропорции; в строку
   со знаком не ставится (OR0213): или знак, или надпись, вместе — столбцом */
.logo__word { flex: none; height: 18px; width: auto; aspect-ratio: 355.2 / 53.6; }
/* мессенджеры (OR0217): круглые фирменные значки и кнопки с названием */
.chats { display: flex; align-items: center; gap: 6px; flex: none; }
.chat { display: inline-flex; flex: none; width: 40px; height: 40px; border-radius: 50%; transition: transform 0.15s; }
.chat:hover { transform: translateY(-1px); }
.chat__i { display: block; width: 100%; height: 100%; }
.chat-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-pill { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 10px; border: 1.5px solid var(--c-field); border-radius: var(--r-md); background: var(--c-white); color: var(--c-ink); font-size: 15px; font-weight: 600; white-space: nowrap; }
.chat-pill:hover { border-color: var(--c-ink); background: var(--c-soft); color: var(--c-ink); }
.chat-pill .chat__i { width: 26px; height: 26px; flex: none; }
.header__chats { display: flex; align-items: center; gap: 10px; flex: none; }
.header__chats-label { font-size: 13px; line-height: 1.2; color: var(--c-gray); text-align: right; }
.topbar__phone { font-weight: 700; }
.topbar__hours { color: var(--c-footer); }
/* верхняя строка */
.topbar { background: var(--c-ink); color: var(--c-white); font-size: 14px; line-height: 1.5; }
.topbar__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.topbar__links { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-left: auto; }
.topbar a { color: var(--c-white); }
.topbar a:hover { color: var(--c-footer); }
/* шапка */
.header { background: var(--c-white); border-bottom: 1px solid var(--c-line); }
.header__main { display: flex; align-items: center; gap: 20px; padding-top: 16px; padding-bottom: 16px; }
.header__search { flex: 1 1 320px; min-width: 0; display: flex; }
.header__phone { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; }
.header__phone a { font-weight: 700; font-size: 16px; }
.header__hours { font-size: 13px; color: var(--c-gray); }
.header__call, .header__menu { display: none; }
.header__menu { background: var(--c-red); color: var(--c-white); }
.header__menu:hover { background: var(--c-red-dark); color: var(--c-white); }
.header__nav { display: flex; flex-wrap: wrap; gap: 28px; padding-bottom: 14px; font-size: 15px; font-weight: 500; line-height: 1.4; }
.header__nav a[aria-current="page"] { color: var(--c-red); }
.header__search-row { display: none; }
/* меню на весь экран (планшет вертикально и телефон). Без JS открывается
   по #menu (:target); site.js ставит html.js-menu и открывает классом
   html.menu-open — с запретом прокрутки, Esc и фокусом. */
.menu {
  display: none; position: fixed; inset: 0; z-index: 100;
  flex-direction: column; background: var(--c-white);
}
.menu:target { display: flex; }
html.js-menu .menu:target { display: none; }
html.menu-open .menu { display: flex; }
html.menu-open { overflow: hidden; }
/* Открытое мега-меню: страница под панелью не прокручивается — top панели
   не устаревает, закреплённая шапка с кнопкой не прячется. */
html.mega-open { overflow: hidden; }
/* содержимое: не короче экрана — подвал ниже первого экрана */
.page { display: block; min-height: 100vh; }
.page__in { display: flex; flex-direction: column; gap: var(--s-3); padding-top: var(--s-10); padding-bottom: var(--s-12); }
.page__in a { color: var(--c-red); }
.page__in a:hover { color: var(--c-red-dark); }
/* хлебные крошки (A-System ч. 2): «Главная / … / текущая», последняя — не ссылка */
.crumbs__wrap { padding-top: var(--s-5); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--c-gray); }
.crumbs a { color: var(--c-gray); }
.crumbs a:hover { color: var(--c-red); }
.crumbs__wrap + .page__in { padding-top: var(--s-6); }
/* плашка cookie (A-System ч. 4): внизу поверх страницы, под открытым меню */
.consent { position: fixed; left: 0; right: 0; bottom: 24px; z-index: 60; padding: 0 var(--gutter); pointer-events: none; }
.consent__in {
  max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
  padding: 18px 20px 18px 24px; border-radius: var(--r-lg); background: var(--c-ink); color: var(--c-white);
  box-shadow: 0 12px 40px rgba(20, 22, 26, 0.3); pointer-events: auto;
}
.consent__icon { width: 28px; height: 28px; flex: none; }
.consent__text { flex: 1 1 420px; min-width: 0; font-size: 15px; line-height: 1.5; color: var(--c-line); }
.consent__text a { color: var(--c-white); text-decoration: underline; }
.consent__text a:hover { color: var(--c-white); text-decoration: none; }
.consent__actions { display: flex; gap: 10px; }
.consent__btn { height: 44px; font-size: 15px; }
.consent__btn--ghost { padding: 0 18px; border: 1.5px solid var(--c-gray); background: transparent; color: var(--c-white); }
.consent__btn--ghost:hover { border-color: var(--c-white); }
.consent__btn--light { padding: 0 22px; background: var(--c-white); color: var(--c-ink); }
.consent__btn--light:hover { background: var(--c-line); }
/* мега-меню каталога (A-Catalog, верхняя часть; от 1024): одна панель на
   полную и закреплённую шапку, site.js ставит top под шапку, открывшую её.
   Без JS панель скрыта (hidden), «Каталог» — ссылка на /catalog. */
.mega-btn__close { display: none; }
[data-mega-btn][aria-expanded="true"] { background: var(--c-ink); }
[data-mega-btn][aria-expanded="true"] .mega-btn__open { display: none; }
[data-mega-btn][aria-expanded="true"] .mega-btn__close { display: block; }
/* планшет горизонтально: слогана и часов нет, плотнее, разделы в строку */
@media (max-width: 1279px) {
  :root { --gutter: 24px; }
  .topbar { font-size: 13px; }
  .topbar__in { padding-top: 8px; padding-bottom: 8px; }
  .topbar__links { gap: 20px; }
  .topbar__slogan, .header__hours { display: none; }
  .header__main { gap: 14px; padding-top: 14px; padding-bottom: 14px; }
  .header .logo__word { height: 16px; }
  .header__catalog { height: 44px; padding: 0 16px; gap: 8px; }
  .header__search .search__field { height: 44px; padding: 0 14px; gap: 8px; }
  .header__search .search__icon { width: 18px; height: 18px; }
  .header__search input { font-size: 15px; }
  .header__phone a { font-size: 15px; }
  .header__chats-label { display: none; }
  .header .chat { width: 38px; height: 38px; }
  .header__lead { height: 44px; padding: 0 14px; font-size: 14px; }
  .header__nav { flex-wrap: nowrap; gap: 22px; padding-top: 12px; padding-bottom: 12px; border-top: 1px solid var(--c-line); font-size: 14px; white-space: nowrap; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .header__main { position: relative; }
  .header__search .search { position: static; }
}
/* планшет вертикально: разделы, почта и Telegram — в меню; поиск строкой ниже */
@media (max-width: 1023px) {
  :root { --gutter: 20px; }
  .topbar, .header__catalog, .header__search, .header__phone, .header__nav { display: none; }
  .sticky { display: none !important; }
  .mega { display: none !important; }
  .header__main { gap: 10px; }
  .header .logo { flex: 1; }
  .header .logo__word { height: 16px; }
  .header__call, .header__menu { display: inline-flex; }
  .header__search-row { display: flex; padding-top: 12px; padding-bottom: 12px; border-top: 1px solid var(--c-line); }
  .header__search-row .search__field { padding: 0 14px; gap: 8px; }
  .header__search-row .search__icon { width: 18px; height: 18px; }
  .header__main { padding-top: 14px; padding-bottom: 14px; }
  h1 { font-size: 36px; line-height: 42px; }
}
/* телефон: заявка уходит в меню, меню одной колонкой */
@media (max-width: 767px) {
  .header .logo__word { height: 15px; }
  .header .chats { gap: 4px; }
  .header .chat { width: 34px; height: 34px; }
  :root { --gutter: 16px; }
  .header__lead { display: none; }
  .header__menu, .header__menu:hover { background: var(--c-ink); }
  .header__main { padding-top: 16px; padding-bottom: 16px; }
  .header { border-bottom: 0; }
  h1 { font-size: 28px; line-height: 31px; }
  .consent { bottom: 12px; padding: 0 12px; }
  .consent__in { gap: 14px; padding: 16px; }
  .consent__icon { display: none; }
  .consent__text { flex-basis: 100%; font-size: 14px; }
  .consent__actions { width: 100%; }
  .consent__btn { flex: 1; padding: 0 12px; }
}
/* Плашка предпросмотра неопубликованного из админки. */
.preview-bar { position: sticky; top: 0; z-index: 1000; padding: 8px 16px; background: #FFF4DB; color: #7A4800; font-size: 14px; text-align: center; }

/* Главная (OR0100, A-Home, A-Mobile): первый экран, подбор по бюджету,
   заголовки блоков и «Популярные категории» — видны на первом экране. */
.home { display: flex; flex-direction: column; padding-bottom: var(--s-12); }
.home-sec { padding-top: var(--s-8); padding-bottom: var(--s-8); }
.home-sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); }
.home-sec__head h2 { margin: 0; font-size: var(--fs-h2); line-height: var(--lh-h2); }
.home-sec__all { flex: none; color: var(--c-red); font-weight: 600; }
.home-sec__all:hover { color: var(--c-red-dark); }
.home-sec__short { display: none; }

.home-hero { display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--s-8); padding-top: var(--s-10); padding-bottom: var(--s-6); }
.home-hero__panel { position: relative; flex: 999 1 560px; min-width: 0; display: flex; border-radius: 20px; background: var(--c-soft); overflow: hidden; }
.home-hero__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: var(--s-6); padding: 56px; }
.home-hero__eyebrow { font-size: 13px; color: var(--c-red-dark); }
.home-hero h1 { margin: 0; max-width: 680px; font-size: 52px; line-height: 1.05; font-weight: 800; overflow-wrap: anywhere; }
.home-hero__lead { margin: 0; max-width: 560px; font-size: 18px; line-height: 1.55; color: var(--c-gray-dark); }
.home-hero__btns { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.home-hero__btns .btn { height: 52px; padding: 0 26px; }
/* Фото первого экрана (OR0429): --d-* — компьютер и планшет, --m-* — телефон;
   side — справа (на телефоне над текстом), bg — фоном, dim — фоном с затемнением. */
.home-hero__banner { display: none; }
.home-hero__banner picture, .home-hero__banner img { display: block; width: 100%; height: 100%; }
.home-hero__banner img { object-fit: cover; }
@media (min-width: 768px) {
  .home-hero__panel--d-side .home-hero__banner { display: block; order: 2; flex: 0 0 42%; min-height: 100%; }
  .home-hero__panel--d-side .home-hero__text { padding-right: var(--s-8); }
  .home-hero__panel--d-side h1 { font-size: 44px; }
  .home-hero__panel--d-bg, .home-hero__panel--d-dim { min-height: 440px; }
  .home-hero__panel--d-bg .home-hero__banner, .home-hero__panel--d-dim .home-hero__banner { display: block; position: absolute; inset: 0; }
  .home-hero__panel--d-bg .home-hero__text, .home-hero__panel--d-dim .home-hero__text { position: relative; }
  .home-hero__panel--d-dim .home-hero__banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 16, 20, .82) 0%, rgba(14, 16, 20, .55) 55%, rgba(14, 16, 20, .15) 100%); }
  .home-hero__panel--d-dim .home-hero__text, .home-hero__panel--d-dim .home-hero__eyebrow { color: var(--c-white); }
  .home-hero__panel--d-dim .home-hero__lead { color: rgba(255, 255, 255, .85); }
  .home-hero__panel--d-dim .btn--outline { background: transparent; color: var(--c-white); border-color: var(--c-white); }
}
.home-pick { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-8); border: 1.5px solid var(--c-ink); border-radius: 20px; }
.home-pick h2 { margin: 0; font-size: 26px; line-height: 1.2; }
.home-pick__f { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-small); font-weight: 500; }
.home-pick__f input, .home-pick__f select { height: 48px; padding: 0 14px; border: 1.5px solid var(--c-field); border-radius: var(--r); font: 400 16px var(--font); color: var(--c-ink); background: var(--c-white); width: 100%; min-width: 0; }
.home-pick__f input:focus, .home-pick__f select:focus { outline: 0; border-color: var(--c-ink); }
.home-pick .btn { height: 52px; }

.home-cats__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-4); }
.home-cat { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: var(--s-4); border: 1px solid var(--c-line); border-radius: var(--r-lg); color: var(--c-ink); }
.home-cat:hover .home-cat__name { color: var(--c-red-dark); }
.home-cat__icon { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border-radius: var(--r); background: var(--c-soft); color: #8A9099; }
.home-cat__icon svg { width: 48px; height: 48px; }
.home-cat__icon--photo { overflow: hidden; }
.home-cat__icon--photo img { width: 100%; height: 100%; object-fit: cover; }
.home-cat__name { font-size: 15px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.home-cat__n { font-size: 13px; color: var(--c-gray); }

@media (max-width: 1279px) {
  .home-hero { gap: var(--s-6); }
  .home-hero__text { padding: 40px; }
  .home-hero h1 { font-size: 44px; }
  .home-cats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .home-sec { padding-top: var(--s-6); padding-bottom: var(--s-6); }
  .home-sec__head { margin-bottom: var(--s-3); }
  .home-sec__head h2 { font-size: 22px; line-height: 28px; }
  .home-sec__long { display: none; }
  .home-sec__short { display: inline; }
  .home-hero { gap: var(--s-6); padding-top: var(--s-4); padding-bottom: 0; }
  .home-hero__panel { flex-basis: 100%; flex-direction: column; border-radius: var(--r-xl); }
  .home-hero__text { gap: var(--s-4); padding: 20px; }
  .home-hero__eyebrow, .home-hero__lead { display: none; }
  .home-hero h1 { font-size: 28px; line-height: 1.12; }
  .home-hero__btns { flex-direction: column; }
  .home-hero__btns .btn { width: 100%; height: 48px; }
  .home-hero__panel--m-side .home-hero__banner { display: block; order: 0; flex: none; aspect-ratio: 16 / 9; min-height: 0; overflow: hidden; }
  .home-hero__panel--m-bg, .home-hero__panel--m-dim { min-height: 340px; justify-content: flex-end; }
  .home-hero__panel--m-bg .home-hero__banner, .home-hero__panel--m-dim .home-hero__banner { display: block; position: absolute; inset: 0; }
  .home-hero__panel--m-bg .home-hero__text, .home-hero__panel--m-dim .home-hero__text { position: relative; }
  .home-hero__panel--m-dim .home-hero__banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 16, 20, .85) 0%, rgba(14, 16, 20, .5) 60%, rgba(14, 16, 20, .2) 100%); }
  .home-hero__panel--m-dim .home-hero__text { color: var(--c-white); }
  .home-hero__panel--m-dim .btn--outline { background: transparent; color: var(--c-white); border-color: var(--c-white); }
  .home-pick { flex-basis: 100%; padding: 20px; border-radius: var(--r-xl); }
  .home-pick h2 { font-size: 22px; }
  .home-cats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
  .home-cats__grid > li:nth-child(n+7) { display: none; }
  .home-cat { padding: var(--s-3); }
}

/* suggest.css — Подсказки поиска (панель под полем, поиск на весь экран телефона).
   Некритичная: только в /static/site.css (неблокирующий файл), в <style> не встраивается. */

:is(.header, .sticky) .search:has(> .sugg-panel:not([hidden])) :is(.search__field, .search__clear) { position: relative; z-index: 71; }
.sugg-panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 70;
  width: min(860px, calc(100vw - 2 * var(--gutter))); max-height: calc(100vh - 160px); overflow-y: auto;
  background: var(--c-white); border-radius: var(--r-lg);
  box-shadow: 0 12px 40px rgba(20, 22, 26, 0.16), 0 0 0 100vmax rgba(20, 22, 26, 0.45);
}
.sugg-panel[hidden] { display: none; }
.sugg { display: flex; flex-direction: column; }
.sugg__cols { display: flex; flex-wrap: wrap; }
.sugg__side { flex: 1 1 260px; padding: 18px 0; border-right: 1px solid var(--c-line); display: flex; flex-direction: column; gap: 4px; }
.sugg__group { display: flex; flex-direction: column; gap: 2px; }
.sugg__group--pop { padding-top: 8px; }
.sugg__group--prods { flex: 2 1 400px; padding: 18px 0; }
.sugg__title { padding: 0 var(--s-5) 6px; }
.sugg__pops { display: flex; flex-direction: column; gap: 2px; }
.sugg mark { background: var(--c-mark); color: var(--c-ink); border-radius: 2px; }
.sugg__cat, .sugg__pop, .sugg__prod { display: flex; align-items: center; gap: 10px; padding: var(--s-2) var(--s-5); font-size: 15px; color: var(--c-ink); }
.sugg__cat .sugg__ico { display: none; }
.sugg__name { flex: 1; min-width: 0; }
.sugg__ico { width: 16px; height: 16px; flex: none; color: var(--c-gray); }
.sugg__n { font-size: 13px; color: var(--c-gray); }
.sugg__prod { gap: 14px; line-height: 1.35; }
.sugg__txt { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; }
.sugg__img { width: 48px; height: 48px; flex: none; border-radius: 8px; background: var(--c-soft); color: #8A9099; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sugg__img svg { width: 28px; height: 28px; }
.sugg__price { font-weight: 700; white-space: nowrap; }
.sugg [role="option"]:hover, .sugg [role="option"][aria-selected="true"] { background: var(--c-soft); color: var(--c-ink); }
.sugg__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px var(--s-5); border-top: 1px solid var(--c-line); background: var(--c-soft); }
.sugg__foot .sugg__all { height: 44px; font-size: 15px; }
.sugg .sugg__all[aria-selected="true"] { background: var(--c-ink-hover); color: var(--c-white); outline: 2px solid var(--c-red); outline-offset: 2px; }
.sugg__keys { font-size: 13px; color: var(--c-gray); }
.header__search-row .sugg-panel { width: 100%; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .header__search .sugg-panel, .sticky .sugg-panel { left: var(--gutter); right: var(--gutter); width: auto; }
  .header__search .sugg-panel { top: calc(100% - 6px); }
  .sticky .sugg-panel { top: calc(100% - 2px); }
}
@media (max-width: 767px) {
  html.sugg-open { overflow: hidden; }
  .search--full {
    position: fixed; inset: 0; z-index: 120; background: var(--c-white);
    grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
    gap: 12px 8px; padding: 12px var(--gutter) 0; align-items: center;
  }
  .search--full .search__back { display: inline-flex; grid-area: 1 / 1; background: none; }
  .search--full .search__field, .search--full .search__clear { grid-area: 1 / 2; }
  .search--full .search__field { height: 48px; }
  .search--full .search__field input { font-size: 17px; }
  .search--full .sugg-panel {
    position: static; grid-column: 1 / -1; grid-row: 2; align-self: stretch;
    width: auto; max-height: none; border-radius: 0; box-shadow: none; margin: 0 calc(-1 * var(--gutter));
    border-top: 1px solid var(--c-line);
  }
  .search--full .sugg { min-height: 100%; }
  .search--full .sugg__cols, .search--full .sugg__side { display: contents; }
  .search--full .sugg__group { padding: 14px 0 4px; }
  .search--full .sugg__group--cats { order: 1; padding-top: var(--s-3); }
  .search--full .sugg__group--prods { order: 2; }
  .search--full .sugg__group--pop { order: 3; }
  .search--full .sugg__title { padding: 0 var(--gutter) 6px; }
  .search--full .sugg mark { background: none; color: inherit; font-weight: 800; }
  .search--full .sugg__cat, .search--full .sugg__prod { margin: 0 var(--gutter); padding: 0; gap: var(--s-3); border-bottom: 1px solid var(--c-line); }
  .search--full .sugg__cat { min-height: 48px; font-size: 16px; }
  .search--full .sugg__cat .sugg__ico { display: block; width: 20px; height: 20px; }
  .search--full .sugg__prod { min-height: 64px; }
  .search--full .sugg__img { width: 52px; height: 52px; }
  .search--full .sugg__txt { flex-direction: column; align-items: flex-start; gap: 2px; }
  .search--full .sugg__prod .sugg__name { flex: none; line-height: 1.3; }
  .search--full .sugg__pops { flex-direction: row; flex-wrap: wrap; gap: var(--s-2); padding: 0 var(--gutter); }
  .search--full .sugg__pop { padding: 0 14px; min-height: 40px; border-radius: var(--r-pill); background: var(--c-soft); font-size: 14px; font-weight: 500; }
  .search--full .sugg__pop .sugg__ico { display: none; }
  .search--full .sugg__foot { order: 4; position: sticky; bottom: 0; margin-top: auto; padding: 12px var(--gutter) calc(20px + env(safe-area-inset-bottom)); background: var(--c-white); }
  .search--full .sugg__all { flex: 1; justify-content: center; height: 52px; font-size: 16px; }
  .search--full .sugg__keys { display: none; }
}

/* sticky.css — Закреплённая шапка в показанном виде (до прокрутки скрыта атрибутом hidden).
   Некритичная: только в /static/site.css (неблокирующий файл), в <style> не встраивается. */

/* закреплённая шапка — отдельная разметка; показывает её site.js, когда
   полная ушла за край экрана (компьютер и планшет горизонтально) */
.sticky {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--c-white); border-bottom: 1px solid var(--c-line); box-shadow: var(--shadow-sticky);
}
.sticky__in { display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.sticky .logo__mark { width: 32px; height: 32px; }
.sticky .search { flex: 1 1 320px; }
.sticky .chat { width: 36px; height: 36px; }
.sticky__phone { font-weight: 700; font-size: 16px; white-space: nowrap; }
@media (max-width: 1279px) {
  .sticky__in { gap: 12px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .sticky__in { position: relative; }
  .sticky .search { position: static; }
}

/* menu.css — Меню на весь экран изнутри (прячут его правила .menu в base.css).
   Некритичная: только в /static/site.css (неблокирующий файл), в <style> не встраивается. */

.menu__links a[aria-current="page"] { color: var(--c-red); }
.menu__head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--c-line); }
.menu__head .logo { flex: 1; }
.menu__head .logo__word { height: 15px; }
.menu__body {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; align-content: start;
  gap: 32px; padding: 20px 24px 24px;
}
.menu__cats, .menu__sections { display: flex; flex-direction: column; }
.menu .eyebrow { padding-bottom: 6px; }
.menu__cat {
  min-height: 48px; display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--c-line); font-size: 16px; font-weight: 500; line-height: 1.3;
}
.menu__cat span { flex: 1; }
.menu__cat .menu__num { flex: none; font-size: 13px; font-weight: 400; color: var(--c-gray); }
/* уровни каталога (A-Mobile2): раздел открывает свой уровень внутри меню */
.menu__level { display: flex; flex-direction: column; }
.menu__back { align-self: flex-start; height: 40px; padding: 0 8px 0 0; border: 0; background: none; display: flex; align-items: center; gap: 6px; font: 500 14px var(--font); color: var(--c-gray); cursor: pointer; }
.menu__back:hover { color: var(--c-red); }
.menu__level-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 6px; }
.menu__title { font-size: 24px; font-weight: 800; line-height: 1.25; }
.menu__level-all { flex: none; font-size: 14px; font-weight: 600; color: var(--c-red-dark); }
.menu__all { min-height: 48px; display: flex; align-items: center; font-size: 15px; font-weight: 600; color: var(--c-red-dark); }
.menu__side { display: flex; flex-direction: column; gap: 24px; }
.menu__links { display: flex; flex-direction: column; }
.menu__links a { min-height: 44px; display: flex; align-items: center; font-size: 16px; font-weight: 500; }
.menu__contacts { padding: 16px; border-radius: var(--r-md); background: var(--c-soft); display: flex; flex-direction: column; gap: 10px; }
.menu__contacts-text { display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.4; }
.menu__contacts .muted { font-size: 14px; }
.menu__phone { font-weight: 700; font-size: 18px; }
.menu__chats-title { margin: 0; }
.menu__contacts .chat-pills { flex-direction: column; }
.menu__contacts .chat-pill { width: 100%; height: 48px; font-size: 16px; }
.menu__foot { padding: 14px 24px 22px; background: var(--c-white); border-top: 1px solid var(--c-line); }
@media (max-width: 767px) {
  .menu__head { padding: 16px; }
  .menu__body { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 8px 16px 16px; }
  .menu__cat { min-height: 46px; }
  .menu__side { gap: 10px; }
  .menu__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
  .menu__links a { min-height: 36px; font-size: 15px; }
  .menu__contacts { padding: 12px 14px; }
  .menu__contacts-text { flex: 1; min-width: 0; gap: 0; font-size: 13px; line-height: 1.3; }
  .menu__phone { font-size: 17px; }
  .menu__contacts .muted { font-size: 13px; }
  .menu__contacts-text a[href^="mailto:"] { font-size: 13px; color: var(--c-gray); }
  .menu__foot { padding: 12px 16px 20px; }
}

/* notfound.css — Страница 404 — критичное вида notfound.
   Встроена в <style> страниц, перечисленных в cssViews (internal/site/css.go), и входит в /static/site.css. */

/* страница 404 (A-System ч. 1) */
.nf { display: flex; flex-direction: column; gap: var(--s-10); padding-top: var(--s-12); padding-bottom: 64px; }
.nf__top { display: flex; flex-wrap: wrap; gap: var(--s-10); align-items: center; }
.nf__main { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.nf__code { font-size: 120px; line-height: 0.9; font-weight: 800; color: var(--c-red); letter-spacing: -0.02em; }
.nf h1 { font-size: 40px; line-height: 1.1; font-weight: 800; }
.nf__text { font-size: 18px; line-height: 1.55; color: #3A3F47; max-width: 560px; }
.nf__search { display: flex; gap: 10px; max-width: 620px; }
.nf__search .search__field { flex: 1; min-width: 0; height: 52px; }
.nf__search .btn { height: 52px; }
.nf__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.nf__actions .btn { padding: 0 22px; }
.nf__card { flex: 1 1 360px; max-width: 440px; min-width: 0; border-radius: 20px; background: var(--c-soft); padding: 28px; display: flex; flex-direction: column; gap: var(--s-3); }
.nf__card-title { font-weight: 700; font-size: 19px; }
.nf__card-text { font-size: 15px; line-height: 1.5; color: #3A3F47; }
.nf__phone { font-weight: 700; font-size: 20px; }
.nf__email { font-weight: 600; }
.nf__popular { display: flex; flex-direction: column; gap: 18px; }
.nf__popular h2 { font-size: 26px; line-height: 1.2; }
.nf__cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--s-4); }
.nf__cat { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3); border: 1px solid var(--c-line); border-radius: var(--r-lg); }
.nf__cat:hover { border-color: var(--c-ink); color: var(--c-ink); }
.nf__cat-img { width: 56px; height: 56px; flex: none; border-radius: var(--r); background: var(--c-soft); display: flex; align-items: center; justify-content: center; color: #8A9099; overflow: hidden; }
.nf__cat-img svg { width: 36px; height: 36px; }
.nf__cat-img img { width: 100%; height: 100%; object-fit: cover; }
.nf__cat-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nf__cat-name { font-weight: 600; font-size: 15px; line-height: 1.3; hyphens: auto; overflow-wrap: anywhere; }
.nf__cat .small { font-size: 13px; line-height: 1.3; }
@media (max-width: 767px) {
  .nf { gap: var(--s-8); padding-top: var(--s-8); padding-bottom: var(--s-12); }
  .nf__main { flex-basis: 100%; }
  .nf__code { font-size: 88px; }
  .nf h1 { font-size: 30px; }
  .nf__text { font-size: 16px; }
  .nf__search .btn { padding: 0 18px; }
  .nf__card { max-width: none; padding: 20px; }
  .nf__cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
  .nf__cat { flex-direction: column; align-items: flex-start; }
}

/* footer.css — Подвал: всегда ниже первого экрана (.page не короче экрана).
   Некритичная: только в /static/site.css (неблокирующий файл), в <style> не встраивается. */

/* подвал */
.footer { background: var(--c-ink); color: var(--c-footer); }
/* Четыре колонки (OR0425): «Документы» — по самому длинному пункту, три
   другие поровну (не уже содержимого: почта не переносится). Интервал
   между пунктами (gap) больше межстрочного — перенос внутри пункта не
   путается с соседним пунктом. Адрес и данные ИП — нижней строкой. */
.footer__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px;
  padding-top: 48px; padding-bottom: 40px; font-size: 15px; line-height: 1.4;
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: repeat(3, minmax(auto, 1fr)) max-content; column-gap: 40px; }
}
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__title { margin-bottom: 2px; }
.footer__chats { margin-top: 6px; }
.footer__col .chats { gap: 10px; margin: 0; }
.footer a { color: var(--c-footer); }
.footer a:hover { color: var(--c-white); }
/* вертикальный логотип, как в PDF (OR0213): знак по центру над надписью,
   ширина знака — 0,6 надписи, просвет — 0,16 */
.footer__brand { display: flex; flex-direction: column; align-items: center; gap: 18px; align-self: flex-start; margin-bottom: 8px; }
.footer__brand .logo__mark { width: 66px; height: 66px; }
.footer__brand .logo__word { height: 16px; }
.footer__title { color: var(--c-white); font-weight: 600; }
.footer__bottom {
  display: flex; flex-direction: column; gap: 6px;
  padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px; line-height: 1.4;
}
.footer__reqline { display: flex; flex-wrap: wrap; gap: 4px 24px; }
@media (max-width: 767px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 32px; padding-bottom: 28px; }
}

/* search.css — Выдача поиска и «ничего не найдено» — критичное вида search (выдача рисуется
   ещё и классами category.css: вид search встраивает обе части).
   Встроена в <style> страниц, перечисленных в cssViews (internal/site/css.go), и входит в /static/site.css. */

.srch { display: flex; flex-direction: column; gap: var(--s-5); padding-top: var(--s-5); padding-bottom: 56px; }
.srch__head { display: flex; flex-direction: column; gap: 10px; }
.srch__head h1 { font-size: 40px; line-height: 1.15; font-weight: 800; overflow-wrap: anywhere; }
.srch__found { font-size: 16px; line-height: 1.55; color: #3A3F47; }
.srch__dym { font-size: 15px; line-height: 1.5; color: #3A3F47; }
:is(.srch__found, .srch__dym, .srch-nf__text) a { font-weight: 600; }
:is(.srch__found, .srch__dym, .srch-nf__text) a:not(:hover) { color: var(--c-red-dark); }
.srch-cats { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.srch-cats__label { font-size: 13px; letter-spacing: 0.08em; margin-right: var(--s-1); }
.srch-body { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: var(--s-8); align-items: start; }
.srch-filters { border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: var(--s-5); min-width: 0; }
.srch-filters__toggle { display: none; }
@media (min-width: 1024px) {
  .srch-filters::details-content { content-visibility: visible; block-size: auto; }
  /* Панель закреплена и прокручивается внутри (OR0381), как у категории. */
  .srch-filters { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; }
  /* Фокус в закреплённой панели — не якорь прокрутки (см. catfilter.css). */
  .srch { overflow-anchor: none; }
}
@supports not selector(::details-content) {
  .srch-filters:not([open]) > .srch-filters__toggle { display: flex; align-items: center; gap: var(--s-2); min-height: 40px; font-weight: 600; cursor: pointer; }
}
.srch-filters__in { display: flex; flex-direction: column; gap: var(--s-6); }
.srch-filters__title { font-weight: 700; font-size: 15px; }
.srch-price, .srch-filter { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.srch-price__row { display: flex; align-items: center; gap: var(--s-2); }
.srch-price__row label { flex: 1; min-width: 0; }
.srch-price input { width: 100%; height: 42px; padding: 0 10px; border: 1.5px solid var(--c-field); border-radius: 8px; font: 400 15px var(--font); color: var(--c-ink); background: var(--c-white); }
.srch-price input:focus { outline: 0; border-color: var(--c-ink); }
.srch-range { position: relative; height: 4px; border-radius: 2px; background: var(--c-line); }
.srch-range__on { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: var(--c-red); }
.srch-price__go { display: none; align-self: flex-start; height: 36px; padding: 0 14px; font-size: 14px; }
.srch-swatches { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.srch-swatch { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--c-field); background: var(--c-white); }
.srch-swatch--none { background: repeating-linear-gradient(45deg, var(--c-soft) 0 4px, var(--c-line) 4px 8px); }
.srch-swatch:hover { border-color: var(--c-ink); }
.srch-swatch.is-on { box-shadow: 0 0 0 2px var(--c-white), 0 0 0 4px var(--c-ink); }
.srch-check:hover, .srch-switch:hover { color: var(--c-ink); }
.srch-check { display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 1.35; color: var(--c-ink); }
.srch-check__box { flex: none; width: 18px; height: 18px; border: 1.5px solid var(--c-field); border-radius: 4px; background: var(--c-white); }
.srch-check:hover .srch-check__box { border-color: var(--c-ink); }
.srch-check.is-on .srch-check__box { border-color: var(--c-red); background: var(--c-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.srch-check__name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.srch-check__n { font-size: 13px; color: var(--c-gray); }
.srch-filter .cf-more > a:not(:first-of-type) { margin-top: 10px; }
.srch-switch { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); font-size: 15px; font-weight: 500; color: var(--c-ink); }
.srch-switch__track { flex: none; position: relative; width: 36px; height: 20px; border-radius: 10px; background: var(--c-field); transition: background .15s; }
.srch-switch__track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--c-white); transition: transform .15s; }
.srch-switch.is-on .srch-switch__track { background: var(--c-red); }
.srch-switch.is-on .srch-switch__track::after { transform: translateX(16px); }
.srch-filters__reset { height: 46px; background: var(--c-soft); color: var(--c-ink); font-size: 15px; }
.srch-filters__reset:hover { background: var(--c-line); color: var(--c-ink); }
.srch-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.srch-sel { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); min-width: 0; }
.srch-bar__shown { font-size: 15px; color: #3A3F47; }
.srch-sel__chip { padding: 6px 12px; border: 1.5px solid var(--c-ink); border-radius: var(--r-pill); font-size: 14px; color: var(--c-ink); overflow-wrap: anywhere; }
.srch-sel__chip:hover { border-color: var(--c-red); color: var(--c-red); }
.srch-sel__reset, .srch-nomatch a { font-size: 14px; font-weight: 600; color: var(--c-red-dark); }
.srch-nf { display: flex; flex-wrap: wrap; gap: var(--s-10); align-items: flex-start; padding-top: var(--s-3); }
.srch-nf__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.srch-nf__head { display: flex; gap: 18px; align-items: flex-start; }
.srch-nf__icon { width: 64px; height: 64px; flex: none; border-radius: var(--r-lg); background: var(--c-soft); display: flex; align-items: center; justify-content: center; color: var(--c-gray); }
.srch-nf__icon .i { width: 30px; height: 30px; }
.srch-nf__text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.srch-nf__text h1 { font-size: 34px; line-height: 1.15; font-weight: 800; overflow-wrap: anywhere; }
.srch-nf__text p { font-size: 16px; line-height: 1.55; color: #3A3F47; }
.srch-nf__popular { display: flex; flex-direction: column; gap: var(--s-4); margin-top: var(--s-2); }
.srch-nf__popular h2 { font-size: 22px; line-height: 1.3; font-weight: 700; }
.srch-nf__cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--s-3); }
.srch-nf__cat { display: flex; flex-direction: column; gap: var(--s-2); padding: 14px; border: 1px solid var(--c-line); border-radius: var(--r-lg); color: var(--c-ink); }
.srch-nf__cat:hover { border-color: var(--c-ink); color: var(--c-ink); }
.srch-nf__cat-img { aspect-ratio: 4 / 3; border-radius: var(--r); background: var(--c-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; color: #8A9099; }
.srch-nf__cat-img svg { width: 52px; height: 52px; }
:is(.sugg__img, .srch-nf__cat-img) img { width: 100%; height: 100%; object-fit: cover; }
.srch-nf__cat-name { font-weight: 600; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; hyphens: auto; }
.srch-nf__aside { flex: 1 1 380px; min-width: 0; max-width: 520px; }
.srch-nf__card { border: 1.5px solid var(--c-ink); border-radius: var(--r-xl); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.srch-nf__card h2 { font-size: 24px; line-height: 1.2; font-weight: 700; }
.srch-nf__card p { font-size: 15px; line-height: 1.5; color: #3A3F47; }
.srch-nf__card .srch-nf__call { font-size: 14px; }
.srch-nf__call a { font-weight: 700; }
@media (max-width: 1023px) {
  .srch__head h1 { font-size: 32px; }
  .srch-body { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .srch-filters { padding: 0; }
  .srch-filters__toggle { display: flex; align-items: center; gap: var(--s-2); min-height: 48px; padding: 0 16px; font-weight: 600; cursor: pointer; list-style: none; }
  .srch-filters__toggle::-webkit-details-marker { display: none; }
  .srch-filters__toggle .i { width: 18px; height: 18px; }
  .srch-filters__n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--c-ink); color: var(--c-white); font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
  .srch-filters__in { padding: 4px 16px 16px; }
  .srch-nf__aside { max-width: none; }
}
@media (max-width: 767px) {
  .srch__head h1 { font-size: 28px; }
  .srch-nf__head { flex-direction: column; gap: 14px; }
  .srch-nf__icon { width: 52px; height: 52px; }
  .srch-nf__text h1 { font-size: 26px; }
  .srch-nf__cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .srch-nf__card { padding: 20px; }
  .srch-cats { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scrollbar-width: none; }
  .srch-cats > * { flex: none; white-space: nowrap; }
}
.srch-stock label { display: flex; flex-direction: column; gap: 10px; }

/* category.css — Категория и подборка — критичное вида category (и search).
   Встроена в <style> страниц, перечисленных в cssViews (internal/site/css.go), и входит в /static/site.css. */

/* Категория (OR0088, A-Category, A-CategoryDeep): сетка на всю ширину —
   колонку фильтров добавит OR0091. 1440 — 4 колонки, 1024 — 3, 768 и 390 — 2. */
.cat { display: flex; flex-direction: column; gap: var(--s-5); padding-top: var(--s-6); padding-bottom: var(--s-12); }
.cat__head { display: flex; flex-direction: column; gap: var(--s-3); }
.cat__summary { max-width: 820px; font-size: var(--fs-body); line-height: 1.55; color: #3A3F47; }
.cat-chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.cat-chip { padding: 10px 16px; border-radius: var(--r-pill); background: var(--c-soft); font-size: 15px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.cat-chip__n { color: var(--c-gray); }
.cat-chip:hover { color: var(--c-ink); background: var(--c-line); }
.cat-chip[aria-current] { background: var(--c-ink); color: var(--c-white); }
.cat-chip[aria-current] .cat-chip__n { color: var(--c-footer); }
.cat-chips__up { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px 10px 6px; font-size: 15px; font-weight: 500; }
.cat-cols { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.cat-cols .eyebrow { font-size: 13px; letter-spacing: 0.08em; margin-right: var(--s-1); }
.cat-col { padding: 8px 14px; border-radius: 8px; border: 1.5px solid var(--c-red); color: var(--c-red-dark); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.cat-col:hover { background: #FBEAEA; color: var(--c-red-dark); }
.cat-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-3); }
.cat-bar__found { font-size: 15px; color: #3A3F47; }
.cat-sort { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-small); color: var(--c-gray); }
.cat-sort__select { height: 40px; max-width: 100%; padding: 0 10px; border: 1.5px solid var(--c-field); border-radius: 8px; font: 500 14px var(--font); background: var(--c-white); color: var(--c-ink); }
.cat-sort__go { display: none; height: 40px; }
.cat-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.cat-card { display: flex; min-width: 0; }
/* Быстрый просмотр (OR0092): до файла CSS кнопки нет; показ и окно — часть quick. */
.cat-card__quick { display: none; }
.cat-card__link { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; padding: var(--s-3); border: 1px solid var(--c-line); border-radius: var(--r-lg); color: var(--c-ink); }
.cat-card__link:hover { border-color: var(--c-ink); color: var(--c-ink); }
.cat-card__link:hover .cat-card__btn { border-color: var(--c-red); color: var(--c-red); }
.cat-card__img { position: relative; aspect-ratio: 1; border-radius: var(--r); background: var(--c-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; color: #8A9099; }
.cat-card__img img { width: 100%; height: 100%; object-fit: contain; }
.cat-card__img svg { width: 64px; height: 64px; }
.cat-card__new { position: absolute; top: 10px; left: 10px; padding: 4px 8px; border-radius: var(--r-xs); background: var(--c-red); color: var(--c-white); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.cat-card__colors { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cat-dot { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--c-field); background: var(--c-white); }
.cat-dot--none { background: repeating-linear-gradient(45deg, var(--c-soft) 0 3px, var(--c-line) 3px 6px); }
.cat-dot--on { box-shadow: 0 0 0 2px var(--c-white), 0 0 0 3px var(--c-ink); }
.cat-card__more { font-size: 13px; color: var(--c-gray); }
.cat-card__name { font-size: 15px; line-height: 1.35; font-weight: 500; overflow-wrap: anywhere; }
.cat-card__qty { font-size: 13px; color: var(--c-gray); }
.cat-card__price { font-size: 20px; line-height: 1.25; font-weight: 700; }
.cat-card__btn { margin-top: auto; height: 40px; width: 100%; padding: 0 12px; font-size: 15px; }
.cat-more { display: flex; justify-content: center; }
.cat-more__btn { height: 48px; padding: 0 28px; }
.cat-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 15px; }
.cat-pages__n, .cat-pages__gap { min-width: 40px; height: 40px; padding: 0 6px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.cat-pages a:hover { background: var(--c-soft); color: var(--c-ink); }
.cat-pages__n[aria-current] { background: var(--c-ink); color: var(--c-white); }
.cat-empty { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-8) 0; }
.cat-empty__title { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; }
.cat-empty a, .cat-seo__text a { color: var(--c-red); }
.cat-seo { display: flex; flex-wrap: wrap; gap: var(--s-10); border-top: 1px solid var(--c-line); padding-top: 36px; margin-top: var(--s-3); }
.cat-seo__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: var(--s-3); font-size: 16px; line-height: 1.65; color: #3A3F47; overflow-wrap: anywhere; }
.cat-seo__text h2 { font-size: 26px; line-height: 1.25; color: var(--c-ink); }
.cat-seo__text h3 { font-size: 19px; color: var(--c-ink); }
/* Картинки и таблицы SEO-текста (OR0254: Markdown из редактора). */
.cat-seo__text figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.cat-seo__text figure img { width: 100%; height: auto; border-radius: 16px; display: block; }
.cat-seo__text figcaption { font-size: 14px; line-height: 1.5; color: var(--c-gray); }
.cat-seo__text .article-table { overflow-x: auto; }
.cat-seo__text table { border-collapse: collapse; width: 100%; font-size: 15px; }
.cat-seo__text th, .cat-seo__text td { padding: 10px 12px; border-top: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.cat-seo__text :is(p, ul, ol) { margin: 0; }
.cat-faq { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cat-faq h2 { font-size: 22px; line-height: 1.3; margin-bottom: 6px; }
.cat-faq__item { border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 14px 16px; }
.cat-faq__item summary { font-weight: 600; font-size: 16px; cursor: pointer; overflow-wrap: anywhere; }
.cat-faq__item p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: #3A3F47; overflow-wrap: anywhere; }
@media (max-width: 1279px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .cat-grid { gap: var(--s-3); }
  .cat-card__link { padding: var(--s-2); gap: 6px; }
  .cat-card__name { font-size: 14px; }
  .cat-card__price { font-size: 17px; }
  .cat-card__btn { height: 38px; font-size: 14px; }
  .cat-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scrollbar-width: none; }
  .cat-chip, .cat-chips__up { flex: none; white-space: nowrap; }
  .cat-sort__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cat-seo { gap: var(--s-8); padding-top: var(--s-6); }
}
/* Карточка набора (OR0096) */
.set-card__badge { position: absolute; top: 10px; left: 10px; max-width: calc(100% - 100px); padding: 4px 8px; border-radius: var(--r-xs); background: var(--c-ink); color: var(--c-white); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-card__new { left: auto; right: 10px; }
.set-card__count, .set-card__run { font-size: 13px; color: var(--c-gray); }
.set-card__line { font-size: 14px; line-height: 1.4; color: var(--c-gray-dark); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.set-card__note { padding-top: 8px; border-top: 1px solid var(--c-line); font-size: 13px; line-height: 1.4; font-weight: 600; }
.set-card__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.coll-goods { margin-top: var(--s-12); }
.coll-goods__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-4); margin-bottom: var(--s-4); }
.coll-goods__head h2 { margin: 0; }
.coll-goods__all { font-weight: 600; }
.coll-goods__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1279px) { .coll-goods__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .coll-goods__grid > :nth-child(n+4) { display: none; } }
@media (max-width: 767px) { .coll-goods__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .coll-goods__grid > :nth-child(n+3) { display: none; } }
/* Хвост длинной группы фильтров (OR0381) — категория, подборка, поиск:
   «Показать ещё N» под списком, раскрытый — «Свернуть» под хвостом. */
.cf-more__btn { display: inline-flex; align-items: center; min-height: 28px; font-size: 14px; font-weight: 600; color: var(--c-red-dark); cursor: pointer; list-style: none; }
.cf-more__btn::-webkit-details-marker { display: none; }
.cf-more__btn:hover { color: var(--c-red); }
.cf-more[open] { position: relative; padding-bottom: 38px; }
.cf-more[open] > .cf-more__btn { position: absolute; left: 0; bottom: 0; }
.cf-more[open] .cf-more__show, .cf-more:not([open]) .cf-more__hide { display: none; }

/* catfilter.css — Фильтры категории (OR0091, A-Category): раскладка блока
   выдачи, панель слева (≥ 1024), кнопка «Фильтры · N» (≤ 1023), чипы —
   критичное вида category, с пустым результатом. Шторка — catfilter-more.css.
   Встроена в <style> страниц, перечисленных в cssViews (internal/site/css.go), и входит в /static/site.css. */

.cat-body { scroll-margin-top: 72px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "bar sort" "main main"; gap: var(--s-4) var(--s-8); align-items: start; }
.cat-body--panel { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) auto; grid-template-areas: "panel bar sort" "panel main main"; grid-template-rows: auto 1fr; }
.cat-body > .cat-bar { grid-area: bar; justify-content: flex-start; }
.cat-body > .cat-sort { grid-area: sort; }
.cat-main { grid-area: main; display: flex; flex-direction: column; gap: var(--s-6); min-width: 0; }
.cf { grid-area: panel; min-width: 0; }
.cf-open { display: none; }
.cf__in { display: flex; flex-direction: column; gap: var(--s-5); }
.cf__head { display: flex; align-items: center; gap: var(--s-3); }
.cf__title { flex: 1; font-size: 18px; font-weight: 700; }
.cf__reset { font-size: 14px; font-weight: 600; color: var(--c-red-dark); }
.cf__close, .cf__foot { display: none; }
.cf__groups { display: flex; flex-direction: column; gap: var(--s-5); }
.cf-g { display: flex; flex-direction: column; gap: 10px; padding-top: var(--s-4); border-top: 1px solid var(--c-line); }
.cf-g__name { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; }
.cf-g__name::-webkit-details-marker { display: none; }
.cf-g__name::after { content: ''; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-top: -4px; }
.cf-g:not([open]) > .cf-g__name::after { transform: rotate(-135deg); margin-top: 4px; }
.cf-g[open] > .cf-g__name { margin-bottom: 4px; }
.cf-check { display: flex; align-items: center; gap: 10px; min-height: 28px; font-size: 15px; line-height: 1.35; color: var(--c-ink); }
.cf-check:hover { color: var(--c-ink); }
.cf-check__box { flex: none; width: 18px; height: 18px; border: 1.5px solid var(--c-field); border-radius: 4px; background: var(--c-white); }
.cf-check:hover .cf-check__box { border-color: var(--c-ink); }
.cf-check.is-on .cf-check__box { border-color: var(--c-red); background: var(--c-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.cf-check__name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cf-check__n { font-size: 13px; color: var(--c-gray); }
.cf-swatches, .cf-pills { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.cf-swatch { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--c-field); background: var(--c-white); }
.cf-swatch--none { background: repeating-linear-gradient(45deg, var(--c-soft) 0 4px, var(--c-line) 4px 8px); }
.cf-swatch:hover { border-color: var(--c-ink); }
.cf-swatch.is-on { box-shadow: 0 0 0 2px var(--c-white), 0 0 0 4px var(--c-ink); }
.cf-pill { padding: 8px 14px; border: 1.5px solid var(--c-field); border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--c-ink); }
.cf-pill:hover { border-color: var(--c-ink); color: var(--c-ink); }
.cf-pill.is-on { border-color: var(--c-ink); background: var(--c-ink); color: var(--c-white); }
.cf-switch { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); font-size: 15px; color: var(--c-ink); }
.cf-switch:hover { color: var(--c-ink); }
.cf-switch__track { flex: none; position: relative; width: 36px; height: 20px; border-radius: 10px; background: var(--c-field); }
.cf-switch__track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--c-white); }
.cf-switch.is-on .cf-switch__track { background: var(--c-red); }
.cf-switch.is-on .cf-switch__track::after { transform: translateX(16px); }
.cf-range { display: flex; flex-direction: column; gap: 10px; }
.cf-range__row { display: flex; align-items: center; gap: var(--s-2); }
.cf-range__row label { flex: 1; min-width: 0; }
.cf-range input { width: 100%; height: 42px; padding: 0 10px; border: 1.5px solid var(--c-field); border-radius: 8px; font: 400 15px var(--font); color: var(--c-ink); background: var(--c-white); }
.cf-range input:focus { outline: 0; border-color: var(--c-ink); }
.cf-range__bar { position: relative; height: 4px; border-radius: 2px; background: var(--c-line); }
.cf-range__bar span { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: var(--c-red); }
.cf-range__go { align-self: flex-start; height: 36px; }
.cf-range[data-js] .cf-range__go { display: none; }
.cf__resetall { height: 46px; background: var(--c-soft); color: var(--c-ink); font-size: 15px; }
.cf__resetall:hover { background: var(--c-line); color: var(--c-ink); }
.cf-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1.5px solid var(--c-ink); border-radius: var(--r-pill); font-size: 14px; color: var(--c-ink); overflow-wrap: anywhere; }
.cf-chip:hover { border-color: var(--c-red); color: var(--c-red); }
.cf-chips__reset { font-size: 14px; font-weight: 600; color: var(--c-red-dark); }
@media (min-width: 1024px) {
  .cf::details-content { content-visibility: visible; block-size: auto; }
  /* Панель закреплена под шапкой и не выше окна (OR0381): высоту страницы
     задаёт выдача, длинные группы прокручиваются внутри, голова видна.
     Без overscroll-behavior: у края панели колесо прокручивает страницу. */
  .cf { position: sticky; top: 84px; }
  .cf__in { max-height: calc(100vh - 100px); }
  .cf__groups { min-height: 0; overflow-y: auto; padding-right: 6px; }
  /* После замены блока htmx возвращает фокус нажатой ссылке, а Chrome
     берёт элемент в фокусе якорем прокрутки: ссылка в закреплённой панели
     уводила страницу в самый низ. Блок фильтров — не якорь. */
  .cat-body { overflow-anchor: none; }
}
/* Браузер без ::details-content и без JS: закрытую панель на компьютере
   открывает кнопка «Фильтры». */
@supports not selector(::details-content) {
  @media (min-width: 1024px) {
    .cf:not([data-js]) > .cf-open { display: inline-flex; height: 44px; padding: 0 18px; font-size: 15px; list-style: none; margin-bottom: var(--s-4); }
    .cf:not([data-js]) > .cf-open::-webkit-details-marker { display: none; }
  }
}
@media (min-width: 1024px) and (max-width: 1439px) {
  .cat-body--panel .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .cat-body, .cat-body--panel { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "panel sort" "bar bar" "main main"; grid-template-rows: none; gap: var(--s-3); }
  .cat-body:not(.cat-body--panel) { grid-template-areas: "sort sort" "bar bar" "main main"; }
  .cat-body > .cat-sort { justify-self: end; }
  .cf-open { display: inline-flex; height: 44px; padding: 0 18px; font-size: 15px; list-style: none; }
  .cf-open::-webkit-details-marker { display: none; }
  .cf[open]:not([data-js]) { grid-column: 1 / -1; }
  .cf[open]:not([data-js]) > .cf__in { padding-top: var(--s-4); }
}
/* Пустой результат по фильтрам (A-CategoryStates 3) — на первом экране:
   встроен, иначе сдвиг вёрстки до site.css. */
.cf-empty { display: flex; flex-wrap: wrap; gap: var(--s-8); align-items: flex-start; padding: var(--s-4) 0; }
.cf-empty__main { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: var(--s-4); }
.cf-empty__title { font-size: 28px; line-height: 1.2; font-weight: 800; }
.cf-empty__text { font-size: 16px; line-height: 1.55; color: #3A3F47; max-width: 640px; }
.cf-empty__acts { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.cf-empty__acts .btn { white-space: normal; text-align: center; }
.cf-empty__lead { flex: 1 1 340px; min-width: 0; max-width: 520px; }
.cf-empty__lead .lf--embed { background: var(--c-soft); border-color: var(--c-soft); }
@media (max-width: 767px) {
  .cf-empty__title { font-size: 24px; }
  .cf-empty__acts .btn { flex: 1 1 100%; }
  .cf-empty__lead { max-width: none; }
}
.cf-input__row input { width: 100%; }
.cf-input__hint { margin: var(--s-2) 0 0; font-size: 13px; color: var(--c-gray); }
.cf-stock { margin-top: var(--s-3); }
.cf-input__label { display: block; margin-bottom: var(--s-2); font-size: 14px; }

/* catfilter-more.css — Фильтры категории (OR0091): шторка на ≤ 1023 (с JS;
   без JS панель раскрывается блоком). Не встраивается — только в
   /static/site.css: шторка открывается после загрузки. */

@media (max-width: 1023px) {
  .cf[data-js][open]::before { content: ''; position: fixed; inset: 0; z-index: 90; background: rgb(20 22 26 / .5); }
  .cf[data-js] > .cf__in { position: fixed; left: 0; right: 0; bottom: 0; z-index: 91; max-height: 88dvh; display: flex; flex-direction: column; gap: 0;
    border-radius: 20px 20px 0 0; background: var(--c-white); box-shadow: 0 -8px 32px rgb(20 22 26 / .18); }
  .cf[data-js] .cf__head { padding: 18px var(--gutter) 14px; border-bottom: 1px solid var(--c-line); }
  .cf[data-js] .cf__close { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: -8px; border: 0; background: none; color: var(--c-ink); cursor: pointer; }
  .cf[data-js] .cf__close .i { width: 22px; height: 22px; }
  .cf[data-js] .cf__groups { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px var(--gutter) var(--s-5); }
  .cf[data-js] .cf__resetall { display: none; }
  .cf[data-js] .cf__groups > .cf-g:first-child { border-top: 0; }
  .cf[data-js] .cf__foot { display: block; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--c-line); }
  .cf[data-js] > .cf__in:focus { outline: 0; }
  html:has(.cf[data-js][open]) { overflow: hidden; }
}

/* mega.css — Мега-меню каталога в открытом виде (до клика скрыто атрибутом hidden;
   значок кнопки «Каталог» — в base.css).
   Некритичная: только в /static/site.css (неблокирующий файл), в <style> не встраивается. */

.mega { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 60; overflow-y: auto; overscroll-behavior: contain; background: rgba(20, 22, 26, 0.45); }
.mega__in { padding-bottom: var(--s-6); }
.mega__box { display: flex; background: var(--c-white); border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: 0 12px 40px rgba(20, 22, 26, 0.16); overflow: hidden; }
.mega__roots { flex: 0 0 300px; display: flex; flex-direction: column; padding: 12px 0; border-right: 1px solid var(--c-line); }
.mega__root { display: flex; align-items: center; gap: 10px; padding: 7px 16px 7px 14px; border-left: 3px solid transparent; font-size: 14.5px; line-height: 1.35; }
.mega__root-name { flex: 1; }
.mega__root .i { width: 14px; height: 14px; color: var(--c-gray); }
.mega__root[aria-current="true"] { border-left-color: var(--c-red); background: var(--c-soft); font-weight: 600; }
.mega__num { font-size: 12px; font-weight: 400; color: var(--c-gray); }
.mega__pane { flex: 1; min-width: 0; display: flex; }
.mega__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: var(--s-5); padding: var(--s-6) 28px; }
.mega__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.mega__title { font-size: 24px; line-height: 1.25; font-weight: 700; }
.mega__all { font-size: 15px; font-weight: 600; color: var(--c-red); }
.mega__all:hover { color: var(--c-red-dark); }
.mega__groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s-6) 28px; }
.mega__group { display: flex; flex-direction: column; gap: var(--s-2); }
.mega__group a { font-size: 14px; line-height: 1.35; color: #3A3F47; }
.mega__group a:first-child { font-size: 15px; font-weight: 700; color: var(--c-ink); }
.mega__group a:hover { color: var(--c-red); }
.mega__group .mega__num { font-size: 13px; }
.mega__pills { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); padding-top: var(--s-4); border-top: 1px solid var(--c-line); }
.mega__pills .eyebrow { margin-right: var(--s-1); font-size: 13px; letter-spacing: 0.08em; }
.mega__side { flex: 0 0 280px; display: flex; flex-direction: column; gap: 14px; padding: var(--s-6) var(--s-6) var(--s-6) 0; }
.mega__card { display: flex; flex-direction: column; gap: 10px; padding: var(--s-4); border: 1.5px solid var(--c-red); border-radius: var(--r-lg); }
.mega__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-red-dark); }
.mega__photo { aspect-ratio: 4 / 3; border-radius: var(--r); background: var(--c-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; color: #8A9099; }
.mega__photo svg { width: 72px; height: 72px; }
.mega__photo img { width: 100%; height: 100%; object-fit: cover; }
.mega__card-name { font-size: 17px; font-weight: 700; line-height: 1.3; }
.mega__gifts { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px var(--s-4); border-radius: var(--r-md); background: var(--c-soft); font-size: 15px; font-weight: 600; }
@media (max-width: 1279px) {
  .mega__roots { flex-basis: 260px; }
  .mega__side { flex-basis: 240px; }
  .mega__main { padding: var(--s-5); }
}

/* catalog.css — Страница «Каталог» — критичное вида catalog.
   Встроена в <style> страниц, перечисленных в cssViews (internal/site/css.go), и входит в /static/site.css. */

/* страница «Каталог» (A-Catalog, нижняя часть): 4 колонки на компьютере,
   2 — на планшете (решение «Адаптивность», п. 25), 1 — на телефоне */
.catalog { display: flex; flex-direction: column; gap: 22px; padding-top: var(--s-6); padding-bottom: 56px; }
.catalog__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s-4); }
.catalog__intro { display: flex; flex-direction: column; gap: 10px; }
.catalog h1 { font-size: 40px; line-height: 1.15; font-weight: 800; }
.catalog__lead { max-width: 820px; font-size: 16px; line-height: 1.55; color: #3A3F47; }
.catalog__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.catalog__actions .btn { padding: 0 20px; font-size: 15px; }
.catalog__pills { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.catalog__pills .eyebrow { margin-right: var(--s-1); font-size: 13px; letter-spacing: 0.08em; }
.pill { padding: 8px 14px; border: 1.5px solid var(--c-red); border-radius: var(--r-xs); color: var(--c-red-dark); font-size: 14px; font-weight: 600; line-height: 1.3; }
.pill:hover { background: var(--c-red); color: var(--c-white); }
.catalog__grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.catalog__card { display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1px solid var(--c-line); border-radius: var(--r-lg); min-width: 0; }
.catalog__head { display: flex; align-items: center; gap: 14px; }
.catalog__icon { width: 72px; height: 72px; flex: none; border-radius: var(--r); background: var(--c-soft); display: flex; align-items: center; justify-content: center; color: #8A9099; }
.catalog__icon svg { width: 44px; height: 44px; }
.catalog__icon--photo { overflow: hidden; }
.catalog__icon--photo img { width: 100%; height: 100%; object-fit: cover; }
.catalog__name { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.catalog__title { font-weight: 700; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.catalog__name .small { font-size: 13px; line-height: 1.3; }
.catalog__subs { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.catalog__subs a { font-size: 14.5px; line-height: 1.35; color: #3A3F47; }
.catalog__subs a:hover, .catalog__head:hover .catalog__title { color: var(--c-red); }
.catalog__all { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--c-red); }
.catalog__all:hover { color: var(--c-red-dark); }
.catalog__seo { display: flex; flex-wrap: wrap; gap: var(--s-10); margin-top: var(--s-3); padding-top: 36px; border-top: 1px solid var(--c-line); }
.catalog__text { flex: 1 1 520px; display: flex; flex-direction: column; gap: var(--s-3); font-size: 16px; line-height: 1.65; color: #3A3F47; }
.catalog__text h2 { font-size: 26px; line-height: 1.25; color: var(--c-ink); }
.catalog__text h3 { margin-top: var(--s-2); font-size: 19px; line-height: 1.3; color: var(--c-ink); }
.catalog__faq { flex: 1 1 380px; display: flex; flex-direction: column; gap: 10px; }
.catalog__faq h2 { margin-bottom: 6px; font-size: 22px; line-height: 1.3; }
.faq { border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 14px 16px; }
.faq summary { font-weight: 600; font-size: 16px; line-height: 1.4; cursor: pointer; }
.faq p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: #3A3F47; }
@media (max-width: 1023px) {
  .catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog h1 { font-size: 34px; }
}
@media (max-width: 767px) {
  .catalog { gap: 18px; padding-top: var(--s-4); padding-bottom: var(--s-10); }
  .catalog h1 { font-size: 28px; }
  .catalog__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .catalog__actions { width: 100%; }
  .catalog__actions .btn { flex: 1; }
  .catalog__seo { gap: var(--s-8); padding-top: var(--s-6); }
  .catalog__text, .catalog__faq { flex-basis: 100%; }
}

/* Раздел «Корпоративные подарки» (OR0096, A-Gifts) */
.gifts { display: flex; flex-direction: column; gap: var(--s-6); padding-top: var(--s-4); padding-bottom: var(--s-12); }
.gifts__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4) var(--s-8); }
.gifts__intro { flex: 1 1 520px; max-width: 760px; display: flex; flex-direction: column; gap: var(--s-3); }
.gifts__lead { margin: 0; color: var(--c-gray-dark); font-size: 16px; line-height: 1.55; }
.gifts-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.gifts-tile { border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-white); min-width: 0; }
.gifts-tile--wide { grid-column: span 2; }
.gifts-tile--accent { background: var(--c-red-wash); border-color: var(--c-red-line); }
.gifts-tile__link { display: flex; flex-direction: column; gap: var(--s-2); height: 100%; padding: 12px 12px 16px; color: var(--c-ink); }
.gifts-tile__img { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; border-radius: 8px; background: var(--c-soft); overflow: hidden; }
.gifts-tile--accent .gifts-tile__img { background: var(--c-red-tint); }
.gifts-tile__img img { width: 100%; height: 100%; object-fit: cover; }
.gifts-tile__img svg { width: 48px; height: 48px; color: var(--c-gray); }
.gifts-tile__badge { position: absolute; top: 10px; left: 10px; padding: 4px 8px; border-radius: var(--r-xs); background: var(--c-red); color: var(--c-white); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.gifts-tile__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); margin-top: var(--s-1); }
.gifts-tile__name { font-size: 17px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.gifts-tile__n { flex: none; font-size: 13px; color: var(--c-gray); }
.gifts-tile__text { font-size: 14px; line-height: 1.45; color: var(--c-gray-dark); }
.gifts-tile__link:hover .gifts-tile__name { color: var(--c-red-dark); }
.gifts__sec { display: flex; flex-direction: column; gap: var(--s-4); margin-top: var(--s-6); }
.gifts__sec h2 { margin: 0; font-size: 28px; line-height: 1.25; }
.gifts__sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-4); }
.gifts__all { color: var(--c-red-dark); font-weight: 600; }
.gifts-own { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: start; margin-top: var(--s-6); padding: 40px; border-radius: var(--r-xl); background: var(--c-ink); color: var(--c-dark-text); }
.gifts-own__text { display: flex; flex-direction: column; gap: var(--s-3); }
.gifts-own__text h2 { margin: 0; color: var(--c-white); font-size: 30px; line-height: 1.2; }
.gifts-own__text p { margin: 0; line-height: 1.55; }
.gifts-own__eyebrow { color: var(--c-red-light); }
.gifts-own__perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gifts-own__perks li { display: flex; align-items: center; gap: 8px; }
.gifts-own__perks .i { color: var(--c-red); }
/* белым — только телефон: правило по всем a красило и подписи кнопок мессенджеров (OR0269) */
.gifts-own__phone { display: block; color: var(--c-white); font-weight: 700; }
.gifts-own__phone:hover { color: var(--c-dark-text); }
.gifts-own__contacts .chat-pills { margin-top: 14px; }
.gifts-own__form .lf--embed { max-width: none; }
/* карточка формы белая, а цвет текста блока — для тёмного фона (OR0269) */
.gifts-own__form .lf { color: var(--c-ink); }
.gifts-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.gifts-step { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--r-md); background: var(--c-soft); font-size: 14px; line-height: 1.45; color: var(--c-gray-dark); }
.gifts-step b { color: var(--c-ink); font-size: 16px; }
.gifts-step__n { color: var(--c-red); font-size: 28px; font-weight: 800; line-height: 1; margin-bottom: 6px; }
@media (max-width: 1279px) {
  .gifts-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gifts-own { grid-template-columns: minmax(0, 1fr); padding: 32px; }
  .gifts-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .gifts-tiles { grid-template-columns: minmax(0, 1fr); }
  .gifts-tile--wide { grid-column: auto; }
  .gifts__budget { width: 100%; }
  .gifts-own { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 28px var(--gutter); border-radius: 0; }
  .gifts-own__text h2 { font-size: 24px; }
  .gifts-steps { grid-template-columns: minmax(0, 1fr); }
  .gifts__sec h2 { font-size: 24px; }
}

/* product.css — Карточка товара, первый экран: галерея, название, цена, варианты, заявка,
   нижняя панель телефона, снятый товар — критичное вида product.
   Встроена в <style> страниц, перечисленных в cssViews (internal/site/css.go), и входит в /static/site.css. */

/* карточка товара (OR0089): A-Product, A-ProductProps, A-System 2 и 5 */
.prod { padding-top: 38px; padding-bottom: var(--s-12); }
.prod-back { display: none; align-items: center; gap: 6px; margin-bottom: var(--s-3); font-size: 14px; color: var(--c-gray); }
.prod__top { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: var(--s-8); align-items: start; }
.prod-gal { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: var(--s-3); align-items: stretch; min-width: 0; }
/* колонка миниатюр не выше большого фото: height 0 + min-height 100% не растит ряд сетки */
.prod-gal__thumbs { display: flex; flex-direction: column; gap: 10px; height: 0; min-height: 100%; overflow-y: auto; scrollbar-width: thin; }
.prod-gal__thumb { flex: none; display: flex; width: 76px; height: 76px; border: 1.5px solid transparent; border-radius: var(--r); background: var(--c-soft); overflow: hidden; }
.prod-gal__thumb[aria-current] { border-color: var(--c-red); }
.prod-gal__thumb img, .prod-gal__slide img, .prod-gone__img img { width: 100%; height: 100%; object-fit: contain; }
/* одно фото — миниатюры скрыты: сетка в одну колонку, большое фото в последней (иначе встало бы в колонку 76px) */
.prod-gal:has(> .prod-gal__thumbs[hidden]) { grid-template-columns: minmax(0, 1fr); }
.prod-gal__main { grid-column: -2; position: relative; min-width: 0; border-radius: var(--r-xl); background: var(--c-soft); overflow: hidden; }
.prod-gal__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.prod-gal__track::-webkit-scrollbar { display: none; }
.prod-gal__slide { flex: 0 0 100%; margin: 0; aspect-ratio: 1; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; }
.prod-gal__slide--none svg, .prod-gone__img svg { width: 96px; height: 96px; color: #8A9099; }
.prod-badge { position: absolute; top: 14px; left: 14px; padding: 5px 9px; border-radius: var(--r-xs); background: var(--c-red); color: var(--c-white); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.prod-badge--absent { background: var(--c-white); color: var(--c-gray-dark); box-shadow: 0 1px 3px rgba(20, 22, 26, 0.16); }
.prod-badge--dark { background: var(--c-ink); }
.prod-gal__zoom { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r); background: var(--c-white); }
.prod-gal__dots { display: none; position: absolute; left: 0; right: 0; bottom: 12px; justify-content: center; gap: 6px; }
.prod-gal__dot { width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--c-field); }
.prod-gal__dot.is-on { width: 16px; background: var(--c-ink); }
/* «+N» — последняя миниатюра при числе фото больше 16 (OR0248) */
.prod-gal__more { position: relative; }
.prod-gal__more-n { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(17, 17, 17, 0.55); color: var(--c-white); font-size: 18px; font-weight: 700; }

.prod-info { min-width: 0; }
.prod-label { display: inline-block; margin-bottom: var(--s-2); padding: 4px 8px; border-radius: var(--r-xs); background: var(--c-soft); color: var(--c-gray-dark); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.prod-info__title { margin: 0 0 var(--s-4); font-size: var(--fs-h2); line-height: var(--lh-h2); overflow-wrap: anywhere; }
.prod-price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-3); margin-bottom: var(--s-5); }
.prod-price__row { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; }
.prod-price__val { font-size: 36px; line-height: 1.1; font-weight: 800; }
.prod-price--absent .prod-price__val { color: var(--c-gray-dark); }
.prod-price__unit { font-size: 13px; color: var(--c-gray); }
.prod-stock { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--c-gray); white-space: nowrap; }
.prod-stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.prod-stock--in { color: var(--c-green); }
.prod-sku { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--c-gray); }
.prod-axis { margin-bottom: var(--s-4); }
.prod-axis__name { margin: 0 0 var(--s-2); font-size: 14px; font-weight: 700; }
.prod-axis__name span { font-weight: 400; }
.prod-axis__vals { display: flex; flex-wrap: wrap; gap: var(--s-2); }
/* кружок 40px, обводка выбранного — кольцом снаружи (A-Product) */
.prod-axis__vals:has(.prod-sw) { gap: var(--s-3); padding: 4px; margin: -4px; }
.prod-sw { display: flex; width: 40px; height: 40px; border-radius: 50%; }
.prod-sw__dot { flex: 1; border-radius: 50%; border: 1px solid var(--c-field); background-color: var(--c-white); }
.prod-sw[aria-current] .prod-sw__dot { box-shadow: 0 0 0 2px var(--c-white), 0 0 0 4px var(--c-red); }
.prod-sw:hover:not(.is-off):not([aria-current]) .prod-sw__dot { box-shadow: 0 0 0 2px var(--c-white), 0 0 0 4px var(--c-ink); }
.prod-opt { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; height: 40px; padding: 0 14px; border: 1.5px solid var(--c-field); border-radius: var(--r); font-size: 14px; font-weight: 600; color: var(--c-ink); }
.prod-opt[aria-current] { border-color: var(--c-red); }
.prod-opt:hover { color: var(--c-ink); border-color: var(--c-ink); }
.prod-opt.is-off { border-style: dashed; color: var(--c-disabled); text-decoration: line-through; cursor: default; }
.prod-sw.is-off { opacity: 0.4; cursor: default; }
.prod-sw.is-off .prod-sw__dot { background-image: linear-gradient(to top right, transparent 46%, var(--c-gray) 46% 54%, transparent 54%); }
.prod-opt.is-off:hover { border-color: var(--c-field); }
.prod-hint { margin: 0 0 var(--s-4); font-size: 13px; line-height: 1.4; color: var(--c-gray); }
.prod-key { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 var(--s-4); border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; }
.prod-key__item { padding: 12px 14px; border-bottom: 1px solid var(--c-line); }
.prod-key__item:nth-child(odd) { border-right: 1px solid var(--c-line); }
/* нижний ряд — без своей линии: снизу уже рамка блока */
.prod-key__item:last-child, .prod-key__item:nth-child(odd):nth-last-child(2) { border-bottom: 0; }
.prod-key dt { font-size: 12px; color: var(--c-gray); }
.prod-key dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.prod-tiers { margin-bottom: var(--s-4); padding: 14px; border: 1px solid var(--c-line); border-radius: var(--r-md); }
.prod-tiers__note { margin: 0 0 var(--s-2); font-size: 15px; font-weight: 700; }
.prod-tiers__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prod-tiers__table th { padding: 6px 0; font-weight: 400; color: var(--c-gray); text-align: left; }
.prod-tiers__table td { padding: 6px 0; border-top: 1px solid var(--c-line); }
.prod-tiers__table th:last-child, .prod-tiers__table td:last-child { text-align: right; }
.prod-tiers__table td:last-child { font-weight: 700; }
.prod-lead { margin-bottom: var(--s-4); padding: var(--s-5); border-radius: var(--r-xl); background: var(--c-soft); }
.prod-lead__title { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.prod-lead__text { margin: 0 0 14px; font-size: 14px; line-height: 1.45; color: var(--c-gray); }
.prod-lead__note { margin: 10px 0 0; font-size: 12px; color: var(--c-gray); text-align: center; }
.prod-info__similar { margin-bottom: var(--s-4); }
.prod-contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.prod-contacts .btn { padding: 0 12px; font-size: 15px; }
.prod-contacts__note { grid-column: 1 / -1; margin: 4px 0 -2px; font-size: 14px; color: var(--c-gray); }
.prod-contacts .chat-pills { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.prod-contacts .chat-pill { justify-content: center; }
.prod-contacts__phone { grid-column: 1 / -1; }
.prod-bar { display: none; }
.prod-gone { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-8); align-items: center; margin-bottom: var(--s-10); padding: var(--s-8); border: 1px solid var(--c-line); border-radius: var(--r-xl); }
.prod-gone__img { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: var(--r-md); background: var(--c-soft); overflow: hidden; }
.prod-gone h1 { margin: 0 0 var(--s-3); font-size: 36px; line-height: 1.15; font-weight: 800; }
.prod-gone p { max-width: 720px; margin: 0 0 var(--s-5); font-size: 17px; line-height: 1.55; color: var(--c-gray-dark); }
.prod-gone__btns { display: flex; flex-wrap: wrap; gap: var(--s-3); }
@media (max-width: 1023px) {
  /* место под закреплённую панель — у страницы: подвал целиком над ней */
  body:has(.prod-bar:not([hidden])) { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .prod { padding-top: var(--s-4); }
  .prod__top { grid-template-columns: minmax(0, 1fr); }
  /* A-Tablet: большое фото 420px, под ним ряд миниатюр 64px */
  .prod-gal { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .prod-gal__thumbs { order: 2; flex-direction: row; height: auto; min-height: 0; overflow-x: auto; overflow-y: visible; }
  .prod-gal__thumb { width: 64px; height: 64px; border: 1px solid var(--c-line); }
  .prod-gal__thumb[aria-current] { border: 2px solid var(--c-red); }
  .prod-gal__slide { aspect-ratio: auto; height: 420px; }
  .prod-info__title { font-size: 28px; line-height: 1.25; }
  .prod-price__val { font-size: 30px; }
  .prod-key { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); border: 0; border-radius: 0; }
  .prod-key__item, .prod-key__item:nth-child(odd) { border: 0; border-radius: var(--r); background: var(--c-soft); padding: 10px; }
  .prod-bar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 14px var(--gutter) calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--c-line); background: var(--c-white); }
  .prod-bar[hidden] { display: none; }
  .prod-bar .chats { gap: 6px; }
  .prod-bar .chat { width: 44px; height: 44px; align-self: center; }
  .prod-bar__go { flex: 1; height: 52px; font-size: 16px; }
}
@media (max-width: 767px) {
  .page:has(.prod) .crumbs__wrap { display: none; }
  .prod { padding-top: var(--s-2); }
  .prod-back { display: inline-flex; }
  .prod-gal__main { margin: 0 calc(-1 * var(--gutter)); border-radius: 0; }
  .prod-gal__thumbs { display: none; }
  .prod-gal__dots { display: flex; }
  .prod-gal__slide { height: auto; aspect-ratio: 1; }
  .prod-info__title { font-size: var(--fs-h3); line-height: var(--lh-h3); }
  .prod-price__val { font-size: 26px; }
  .prod-key { grid-template-columns: 1fr 1fr; }
  /* A-MobileProduct: одна кнопка заявки и подпись, без подложки и текста; контакты — в панели */
  .prod-lead--calc { padding: 0; background: none; border-radius: 0; }
  .prod-lead--calc .prod-lead__title, .prod-lead--calc .prod-lead__text { display: none; }
  .prod-lead--calc .btn { height: 52px; }
  .prod-contacts { display: none; }
  .prod-bar { padding: 12px var(--gutter) calc(20px + env(safe-area-inset-bottom)); }
  .prod-bar__long { display: none; }
  .prod-gone { grid-template-columns: minmax(0, 1fr); padding: var(--s-5); }
  .prod-gone__img { max-width: 240px; }
  .prod-gone h1 { font-size: 28px; }
  .prod-gone p { font-size: 16px; }
  /* «Все ручки и письменные принадлежности · 123» — переносом, не за край */
  .prod-gone__btns .btn { width: 100%; height: auto; min-height: 48px; padding-top: 12px; padding-bottom: 12px; white-space: normal; line-height: 1.3; text-align: center; }
}

/* product-rows.css — карточка товара (не набора), первый экран на десктопе:
   миниатюры под фото рядами (OR0248). Встроена только в вид product: у набора
   миниатюры — колонкой слева с подписями (set.css). */
/* Товар на десктопе (OR0248): фото до 680 px, правая колонка шире; миниатюры
   под фото сеткой 8 в ряд без прокрутки. Высота блока — --gal-rows рядов
   (сервер: по варианту с наибольшим числом фото), смена варианта её не
   меняет; ширина ячейки — от ширины галереи (cqw). У набора — прежняя колонка
   слева: под миниатюрами подписи. */
@media (min-width: 1024px) {
  .prod__top:has(> .prod-gal--rows) { grid-template-columns: minmax(0, 680px) minmax(420px, 1fr); }
  .prod-gal--rows { grid-template-columns: minmax(0, 1fr); container-type: inline-size; }
  .prod-gal--rows > .prod-gal__main { grid-column: 1; grid-row: 1; }
  .prod-gal--rows > .prod-gal__thumbs { grid-row: 2; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); align-content: start; gap: 10px; height: auto; min-height: calc(var(--gal-rows, 0) * (100cqw - 70px) / 8 + (var(--gal-rows, 1) - 1) * 10px); overflow: visible; }
  .prod-gal--rows .prod-gal__thumb { width: auto; height: auto; aspect-ratio: 1; }
}

/* product-more.css — Карточка товара ниже первого экрана: описание, нанесение, характеристики.
   Некритичная: только в /static/site.css (неблокирующий файл), в <style> не встраивается. */

/* Закрепление первого экрана товара (OR0288), только товар — у набора нет
   .prod-gal--rows. Обе колонки sticky: длинная равна блоку и стоит, короткая
   едет до низа .prod__top. Влезает под компактную шапку — на 84 px; нет —
   прижата низом к окну (16 px), низ достижим. --stick-h — высота колонки от
   компонента product (ResizeObserver), без неё — 84 px. Без z-index: шапка,
   меню, подсказки и просмотр фото — поверх. Здесь, а не в product-rows: до
   прокрутки не нужно, а встроенный CSS вида на пределе. */
@media (min-width: 1024px) {
  .prod__top:has(> .prod-gal--rows) > * { position: sticky; top: min(84px, calc(100vh - var(--stick-h, 0px) - 16px)); }
}

.prod__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-12); margin-top: var(--s-10); padding-top: var(--s-10); border-top: 1px solid var(--c-line); }
.prod__body h2 { margin: 0 0 var(--s-4); font-size: var(--fs-h3); line-height: var(--lh-h3); }
.prod-desc__text { color: var(--c-gray-dark); overflow-wrap: anywhere; }
.prod-desc__text p, .prod-desc__text ul, .prod-desc__text ol { margin: 0 0 var(--s-3); }
.prod-desc__text table { border-collapse: collapse; margin-bottom: var(--s-3); }
.prod-desc__text td, .prod-desc__text th { padding: 4px 12px 4px 0; border-bottom: 1px solid var(--c-line); text-align: left; }
.prod-desc__text a { color: var(--c-red); }
.prod-desc__text a:hover { color: var(--c-red-dark); }
.prod-print { margin-top: var(--s-8); }
.prod-print__cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.prod-print__card { padding: 14px 16px; border-radius: var(--r-md); background: var(--c-soft); }
.prod-print__card--wide { grid-column: 1 / -1; }
.prod-print__name { margin: 0; font-size: 15px; font-weight: 700; }
.prod-print__place { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--c-gray); }
.prod-print__more { display: inline-block; margin-top: var(--s-2); font-size: 14px; font-weight: 600; color: var(--c-red); }
.prod-props__group { margin: var(--s-5) 0 var(--s-1); }
.prod-props__group:first-of-type { margin-top: 0; }
.prod-props__all { white-space: normal; }
.prod-props__list { margin: 0; }
.prod-props__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-4); padding: 10px 0; border-bottom: 1px solid var(--c-line); font-size: 14px; }
.prod-props__row dt { color: var(--c-gray); }
.prod-props__row dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.prod-props__all { display: none; margin-top: var(--s-4); height: 48px; }
@media (max-width: 1023px) {
  .prod__body { grid-template-columns: minmax(0, 1fr); }
  .prod__body { gap: var(--s-8); margin-top: var(--s-8); padding-top: var(--s-8); }
}
@media (max-width: 767px) {
  .prod-props.is-collapsible .prod-props__group--more { display: none; }
  .prod-print__cards { grid-template-columns: minmax(0, 1fr); }
  .prod-props.is-collapsible .prod-props__row--more { display: none; }
  .prod-props__all { display: flex; }
}

/* Карточка набора, первый экран (OR0096, A-GiftSet) */
.set-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s-3); }
.set-tag { padding: 4px 10px; border: 1px solid var(--c-red-line); border-radius: var(--r-pill); color: var(--c-red-dark); font-size: 12px; font-weight: 600; }
.set-tag:hover { background: var(--c-red-wash); }
.set-price { display: block; }
.set-price__note { margin: 4px 0 0; font-size: 13px; color: var(--c-gray); }
.set-price .prod-sku { margin-top: 4px; }
.set-facts { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 var(--s-5); border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; }
.set-fact { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--c-line); }
.set-fact:nth-child(odd) { border-right: 1px solid var(--c-line); }
.set-fact:last-child, .set-fact:nth-child(odd):nth-last-child(2) { border-bottom: 0; }
.set-fact:last-child:nth-child(odd) { grid-column: span 2; border-right: 0; }
.set-fact .i { grid-row: span 2; color: var(--c-red); margin-top: 1px; }
.set-fact dt { font-size: 12px; color: var(--c-gray); }
.set-fact dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.set-packs { margin: 0 0 var(--s-5); padding: 0; border: 0; min-width: 0; }
.set-packs__label { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.set-packs__label span { font-weight: 400; }
.set-packs__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.set-pack { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 8px 8px 12px; border: 1px solid var(--c-line); border-radius: var(--r-md); cursor: pointer; font-size: 13px; }
.set-pack:has(input:checked) { border-color: var(--c-red); box-shadow: 0 0 0 1px var(--c-red); background: var(--c-red-wash); }
.set-pack:has(input:focus-visible) { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.set-pack input { position: absolute; left: 10px; bottom: 14px; margin: 0; accent-color: var(--c-red); }
.set-pack__img { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; border-radius: 6px; background: var(--c-soft); overflow: hidden; }
.set-pack__img img { width: 100%; height: 100%; object-fit: cover; }
.set-pack__img .i { width: 28px; height: 28px; color: var(--c-gray); }
.set-pack__name { padding-left: 22px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.set-pack__sub { padding-left: 22px; color: var(--c-gray); font-size: 12px; }
/* миниатюра набора — колонка: квадрат с фото, под ним подпись (A-GiftSet) */
.set .prod-gal__thumb, .set .prod-gal__thumb[aria-current] { flex-direction: column; align-items: center; gap: 4px; width: 76px; height: auto; border: 0; background: none; overflow: visible; }
.prod-gal__tbox { flex: none; display: flex; width: 76px; height: 76px; border: 1.5px solid transparent; border-radius: var(--r); background: var(--c-soft); overflow: hidden; }
.set .prod-gal__thumb[aria-current] .prod-gal__tbox { border-color: var(--c-red); }
.prod-gal__tcap { display: block; width: 100%; font-size: 11px; line-height: 1.2; color: var(--c-gray); text-align: center; overflow-wrap: anywhere; }
.prod-gal__cap { position: absolute; left: 16px; bottom: 16px; margin: 0; padding: 4px 8px; border-radius: var(--r-xs); background: rgba(255, 255, 255, 0.85); font-size: 12px; color: var(--c-gray-dark); pointer-events: none; }
.lf__row--set { align-items: end; }
.lf__row--set .lf__attach { align-self: end; }
@media (max-width: 1023px) {
  .set-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); border: 0; border-radius: 0; }
  .set-fact, .set-fact:nth-child(odd) { border: 0; border-radius: var(--r); background: var(--c-soft); padding: 10px; }
  .set-fact:last-child:nth-child(odd) { grid-column: auto; }
  .set-packs__list { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .set .prod-gal__thumb, .set .prod-gal__thumb[aria-current] { width: 64px; border: 0; }
  .prod-gal__tbox { width: 64px; height: 64px; border: 1px solid var(--c-line); }
  .set .prod-gal__thumb[aria-current] .prod-gal__tbox { border: 2px solid var(--c-red); }
  .prod-gal__tcap { display: none; }
}
@media (max-width: 767px) {
  .set-facts { grid-template-columns: 1fr 1fr; }
  .set-packs__list { grid-template-columns: 1fr 1fr; }
  .prod-gal__cap { left: 12px; bottom: 28px; }
}

/* Карточка набора ниже первого экрана (OR0096, A-GiftSet) */
.set-items, .set-others { margin-top: var(--s-10); }
.set-items__head, .set-others__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-4); margin-bottom: var(--s-4); }
.set-items h2, .set-others h2, .set-about h2 { margin: 0; font-size: 24px; line-height: 1.25; }
.set-items__hint { margin: 0; font-size: 13px; color: var(--c-gray); }
.set-items__list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--c-line); border-radius: var(--r-md); }
.set-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: var(--s-4); padding: 14px 16px; }
.set-item + .set-item { border-top: 1px solid var(--c-line); }
.set-item__img { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 8px; background: var(--c-soft); overflow: hidden; }
.set-item__img img { width: 100%; height: 100%; object-fit: cover; }
.set-item__img .i { color: var(--c-gray); }
.set-item__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.set-item__name { font-weight: 600; overflow-wrap: anywhere; }
.set-item__sub { font-size: 13px; color: var(--c-gray); }
.set-item__link { color: var(--c-red-dark); font-size: 13px; font-weight: 600; white-space: nowrap; }
.set-item__only { font-size: 13px; color: var(--c-gray-dark); white-space: nowrap; }
.set-about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8); margin-top: var(--s-10); }
.set-about .prod-desc { margin: 0; }
.set-brand { display: flex; flex-direction: column; gap: var(--s-4); }
.set-brand__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.set-brand__tile { padding: 14px 16px; border-radius: var(--r-md); background: var(--c-soft); }
.set-brand__name { margin: 0 0 4px; font-weight: 700; }
.set-brand__text, .set-brand__para { margin: 0; font-size: 13px; line-height: 1.45; color: var(--c-gray-dark); }
.set-others__all { color: var(--c-red-dark); font-weight: 600; }
.set-others__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) {
  .set-about { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .set-others__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .set-item { grid-template-columns: 48px minmax(0, 1fr); gap: var(--s-3); padding: 12px; }
  .set-item__img { width: 48px; height: 48px; }
  .set-item__link, .set-item__only { grid-column: 2; white-space: normal; }
  .set-brand__tiles { grid-template-columns: minmax(0, 1fr); }
  .set-items h2, .set-others h2, .set-about h2 { font-size: 20px; }
}

/* Быстрый просмотр (OR0092): кнопка на фото карточки сетки — только на
   компьютере с наведением; окно поверх списка (<dialog>, quickview.js).
   Встроенный CSS кнопку прячет (category.css), здесь — показ. */
@media (min-width: 1024px) and (hover: hover) {
  .cat-card { position: relative; container-type: inline-size; }
  /* Правый нижний угол фото: рамка 1px + поле карточки + 10px. */
  .cat-card__quick { display: block; position: absolute; top: calc(100cqw - var(--s-3) - 11px); right: calc(var(--s-3) + 11px); transform: translateY(-100%); padding: 6px 10px; border-radius: 8px; background: var(--c-white); color: var(--c-ink); font-size: 12px; line-height: 1.3; font-weight: 600; box-shadow: 0 1px 3px rgba(20, 22, 26, 0.12); opacity: 0; transition: opacity 0.15s; }
  .cat-card:hover .cat-card__quick, .cat-card:focus-within .cat-card__quick { opacity: 1; }
  .cat-card__quick:hover { color: var(--c-red); }
}

html.qv-open { overflow: hidden; }
.qv-dlg { box-sizing: border-box; width: min(1000px, calc(100vw - 48px)); max-width: none; height: min(580px, calc(100vh - 48px)); max-height: none; margin: auto; padding: 0; border: 0; border-radius: 16px; background: var(--c-white); color: var(--c-ink); overflow: hidden; }
.qv-dlg::backdrop { background: rgba(20, 22, 26, 0.55); }
.qv { position: relative; box-sizing: border-box; height: 100%; padding: 28px; display: flex; gap: 32px; }
.qv__close { position: absolute; top: 14px; right: 14px; z-index: 1; width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--c-soft); color: var(--c-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.qv__close .i { width: 20px; height: 20px; }
.qv__close:hover { background: var(--c-line); }
.qv__gal { width: 440px; flex: none; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.qv__photo { position: relative; flex: none; width: 100%; aspect-ratio: 1; max-height: 100%; border-radius: 12px; background: var(--c-soft); color: #8A9099; overflow: hidden; }
.qv__img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.qv__img img { width: 100%; height: 100%; object-fit: contain; }
.qv__img svg { width: 160px; height: 160px; }
.qv__arrow { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: var(--c-white); box-shadow: 0 1px 3px rgba(20, 22, 26, 0.16); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.qv__arrow[hidden] { display: none; }
.qv__arrow svg { width: 18px; height: 18px; fill: none; stroke: var(--c-ink); stroke-width: 2; }
.qv__arrow:hover svg { stroke: var(--c-red); }
.qv__arrow--prev { left: 10px; }
.qv__arrow--next { right: 10px; }
.qv__badge { position: absolute; top: 12px; left: 12px; padding: 4px 9px; border-radius: 6px; background: var(--c-red); color: var(--c-white); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.qv__badge--absent { background: var(--c-white); color: var(--c-gray-dark); box-shadow: 0 1px 3px rgba(20, 22, 26, 0.16); }
.qv__count { margin: 0; text-align: center; font-size: 13px; color: var(--c-gray); }
.qv__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding-right: 36px; overflow-y: auto; }
.qv__title { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 700; overflow-wrap: anywhere; }
.qv__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.qv__val { font-size: 30px; line-height: 1.15; font-weight: 800; }
.qv__unit { font-size: 14px; color: var(--c-gray); }
.qv__stock { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--c-gray); white-space: nowrap; }
.qv__stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.qv__stock.prod-stock--in { color: var(--c-green); }
.qv__sku { flex-basis: 100%; font-size: 13px; color: var(--c-gray); }
.qv .qv__axis { margin: 0; }
.qv__axis .prod-axis__name { margin-bottom: 10px; }
.qv__axis .prod-sw { width: 36px; height: 36px; }
.qv__key { margin: 0; display: grid; grid-template-columns: 140px minmax(0, 1fr); font-size: 14px; }
.qv__key dt { padding: 7px 12px 7px 0; border-bottom: 1px solid var(--c-line); color: var(--c-gray); }
.qv__key dd { margin: 0; padding: 7px 0; border-bottom: 1px solid var(--c-line); font-weight: 500; overflow-wrap: anywhere; }
.qv__btns { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.qv__lead { height: 50px; padding: 0 24px; }
.qv__more { font-size: 15px; font-weight: 600; color: var(--c-ink); }
.qv__more:hover { color: var(--c-red); }

/* Просмотр фото на весь экран (OR0093, макет A-ProductPhoto): <dialog
   class="pv"> из partials/photoview.gohtml, поведение — photoview.js.
   Некритичная часть: до открытия диалог скрыт сам (<dialog> без open). */
html.pv-open { overflow: hidden; }
.pv { position: fixed; inset: 0; box-sizing: border-box; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--c-ink); color: var(--c-white); overflow: hidden; }
.pv[open] { display: flex; flex-direction: column; }
.pv::backdrop { background: var(--c-ink); }

.pv__bar { flex: none; box-sizing: border-box; height: 72px; padding: 0 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; }
.pv__title { margin: 0; min-width: 0; font-size: 16px; line-height: 1.3; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv__color { color: var(--c-dark-muted); font-weight: 400; }
.pv__count { margin: 0; font-size: 15px; font-weight: 600; color: var(--c-dark-text); font-variant-numeric: tabular-nums; }
.pv__acts { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.pv__lead { height: 44px; padding: 0 20px; font-size: 15px; }
.pv__close { flex: none; width: 44px; height: 44px; border: 0; border-radius: var(--r); background: var(--c-dark-btn); color: var(--c-white); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pv__close:hover { background: var(--c-dark-btn-hover); }
.pv__close .i { width: 20px; height: 20px; }

.pv__stage { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.pv__img { position: absolute; inset: 24px 104px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.pv__img img { display: block; flex: none; max-width: none; border-radius: var(--r-md); object-fit: contain; pointer-events: auto; cursor: zoom-in; transform-origin: center; }
.pv.is-zoomed .pv__img img { cursor: grab; }
.pv__arrow { position: absolute; top: 50%; z-index: 1; width: 56px; height: 56px; margin-top: -28px; border: 0; border-radius: 50%; background: var(--c-dark-btn); color: var(--c-white); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pv__arrow[hidden] { display: none; }
.pv__arrow svg, .pv__zoom svg { fill: none; stroke: currentColor; stroke-width: 2; }
.pv__arrow svg { width: 24px; height: 24px; }
.pv__arrow:hover { background: var(--c-dark-btn-hover); }
.pv__arrow:disabled { opacity: 0.35; cursor: default; }
.pv__arrow--prev { left: 24px; }
.pv__arrow--next { right: 24px; }
.pv__zoom { position: absolute; right: 24px; bottom: 16px; z-index: 1; height: 44px; border-radius: var(--r); background: var(--c-dark-btn); display: flex; align-items: center; }
.pv__zoom button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--c-white); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pv__zoom button:disabled { opacity: 0.35; cursor: default; }
.pv__zoom svg { width: 18px; height: 18px; }
.pv__pct { width: 56px; text-align: center; font-size: 14px; color: var(--c-dark-text); font-variant-numeric: tabular-nums; }
.pv__badge, .pv__drag { display: none; }

.pv__foot { flex: none; box-sizing: border-box; min-height: 112px; padding: 0 24px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.pv__thumbs { max-width: 100%; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.pv__thumbs[hidden], .pv__dots[hidden] { display: none; }
.pv__thumb { flex: none; box-sizing: border-box; width: 64px; height: 64px; padding: 0; border: 1px solid var(--c-ink-hover); border-radius: 8px; background: var(--c-ink-hover); opacity: 0.75; overflow: hidden; cursor: pointer; }
.pv__thumb:hover { opacity: 1; }
.pv__thumb[aria-current] { border: 2px solid var(--c-red); opacity: 1; }
.pv__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--c-soft); }
.pv__dots { display: none; gap: 6px; }
.pv__dot { width: 6px; height: 6px; border-radius: 3px; background: var(--c-gray); }
.pv__dot.is-on { width: 18px; background: var(--c-white); }
.pv__hint { margin: 0; font-size: 13px; line-height: 1.4; color: var(--c-dark-muted); text-align: center; }
.pv__hint--touch, .pv__lead--foot { display: none; }

@media (max-width: 767px) {
  .pv__bar { padding: 16px 16px 0; grid-template-columns: minmax(0, 1fr) auto; }
  .pv__title, .pv__bar .pv__lead { display: none; }
  .pv__close { border-radius: 50%; }
  .pv__img { inset: 0; }
  .pv__img img { border-radius: 0; cursor: default; }
  .pv__arrow, .pv__zoom, .pv__thumbs, .pv__hint--desk { display: none; }
  .pv__foot { min-height: 0; padding: 12px 16px 24px; gap: 12px; align-items: stretch; }
  .pv__dots { display: flex; justify-content: center; margin-bottom: 6px; }
  .pv__hint--touch { display: block; }
  .pv__foot .pv__lead--foot { display: flex; height: 52px; }
  /* Увеличено: фото на весь экран на светлом фоне, плашки сверху и снизу. */
  .pv.is-zoomed { background: var(--c-soft); }
  .pv.is-zoomed .pv__bar { position: absolute; top: 0; left: 0; right: 0; z-index: 2; padding-top: 22px; }
  .pv.is-zoomed .pv__count, .pv.is-zoomed .pv__foot { display: none; }
  .pv.is-zoomed .pv__close { background: var(--c-ink); }
  .pv.is-zoomed .pv__badge { display: flex; align-items: center; position: absolute; top: 28px; left: 50%; z-index: 3; transform: translateX(-50%); height: 32px; padding: 0 12px; border-radius: 16px; background: var(--c-ink); color: var(--c-white); font-size: 14px; font-weight: 600; }
  .pv.is-zoomed .pv__drag { display: block; position: absolute; bottom: 28px; left: 16px; right: 16px; z-index: 3; margin: 0; padding: 10px 12px; border-radius: var(--r); background: var(--c-ink); color: var(--c-white); font-size: 13px; text-align: center; }
}

@media (prefers-reduced-motion: no-preference) {
  .pv[open] { animation: pv-in 0.15s ease-out; }
  @keyframes pv-in { from { opacity: 0; } }
}

/* Похожие товары (OR0094), критичная для карточки часть: блок и плитка —
   сетка «Похожие товары в наличии» у снятого стоит в первом экране. Лента
   карточки и «Вы смотрели» — в similar-more. */
.similar { display: flex; flex-direction: column; gap: 18px; margin-top: var(--s-12); min-width: 0; }
.similar__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.similar__grid > li { display: flex; min-width: 0; }
.similar--grid h2 { margin: 0; font-size: 26px; line-height: 32px; }
.sim-card { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; padding: 12px; border: 1px solid var(--c-line); border-radius: var(--r-lg); color: inherit; text-decoration: none; }
.sim-card:hover { border-color: var(--c-field); }
.sim-card__img { aspect-ratio: 1; border-radius: var(--r); background: var(--c-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; color: #8A9099; }
.sim-card__img img { width: 100%; height: 100%; object-fit: contain; }
.sim-card__img svg { width: 64px; height: 64px; }
.sim-card__name { font-size: 15px; line-height: 1.35; font-weight: 500; overflow-wrap: anywhere; }
.sim-card__price { margin-top: auto; font-size: 19px; line-height: 1.25; font-weight: 700; }
.similar--grid .sim-card__price { font-size: 20px; }
@media (max-width: 1023px) {
  .similar { gap: 12px; margin-top: var(--s-8); }
  .similar--grid h2 { font-size: 20px; line-height: 26px; }
  .similar__grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .sim-card { gap: 8px; padding: 10px; }
  .sim-card__name { font-size: 14px; }
  .sim-card__price, .similar--grid .sim-card__price { font-size: 17px; }
}

/* Лента похожих карточки и «Вы смотрели» (OR0094) — ниже первого экрана,
   некритичная часть. Без JS стрелки и счётчик скрыты атрибутом hidden
   ([hidden] в base), блок «Вы смотрели» скрыт до ответа /recent. */
.similar__head { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.similar__head h2 { margin: 0; flex: 1; font-size: 26px; line-height: 32px; }
.similar__count { font-size: 14px; color: var(--c-gray); white-space: nowrap; }
.similar__swipe { display: none; font-size: 13px; color: var(--c-gray); white-space: nowrap; }
.similar__arrow { flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1.5px solid var(--c-field); background: var(--c-white); color: var(--c-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.similar__arrow:hover:not(:disabled) { border-color: var(--c-ink); }
.similar__arrow:disabled { opacity: 0.4; cursor: default; }
.similar__arrow .i { width: 18px; height: 18px; }
.similar__track { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; }
.similar__track::-webkit-scrollbar { display: none; }
.similar__item { flex: 0 0 calc((100% - 48px) / 4); min-width: 0; display: flex; scroll-snap-align: start; }
@media (max-width: 1023px) {
  .similar__head { min-height: 0; align-items: baseline; }
  .similar__head h2 { font-size: 20px; line-height: 26px; }
  .similar__count, .similar__arrow { display: none; }
  .similar__swipe { display: inline; }
  .similar__track { gap: 12px; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); scroll-padding-inline: 0; }
  .similar__item { flex-basis: 160px; }
}

.recent { display: flex; flex-direction: column; gap: 14px; padding-top: var(--s-8); padding-bottom: var(--s-12); }
.prod + .recent { padding-top: 0; }
.recent__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.recent__head h2 { margin: 0; font-size: 20px; line-height: 26px; }
.recent__clear { height: 44px; padding: 0; border: 0; background: none; font: 500 14px var(--font); color: var(--c-gray); cursor: pointer; }
.recent__clear:hover { color: var(--c-ink); }
.recent__short { display: none; }
.recent__list { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.recent__item { flex: 0 0 180px; min-width: 0; display: flex; }
.mini-card { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--c-line); border-radius: var(--r-md); color: inherit; text-decoration: none; }
.mini-card:hover { border-color: var(--c-field); }
.mini-card__img { flex: none; width: 52px; height: 52px; border-radius: 8px; background: var(--c-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; color: #8A9099; }
.mini-card__img img { width: 100%; height: 100%; object-fit: contain; }
.mini-card__img svg { width: 28px; height: 28px; }
.mini-card__text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mini-card__name { font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-card__price { font-size: 14px; line-height: 1.3; font-weight: 700; }
@media (max-width: 767px) {
  .recent { gap: 12px; }
  .recent__head h2 { font-size: 18px; line-height: 24px; }
  .recent__long { display: none; }
  .recent__short { display: inline; }
  .recent__list { gap: 10px; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .recent__item { flex-basis: 200px; }
}

/* blog.css — Список статей /blog/ (OR0097, A-Articles) — критичное вида blog.
   Карточка статьи (.blog-card) — здесь же: её показывает и статья
   («Читайте также», ниже первого экрана — из файла витрины).
   1440 — 4 колонки, 1024 — 3, 768 — 2, 390 — 1. */
.blog { display: flex; flex-direction: column; gap: var(--s-6); padding-top: var(--s-5); padding-bottom: 56px; }
.blog__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s-4); }
.blog__title { display: flex; flex-direction: column; gap: 10px; }
.blog__title h1 { font-size: 40px; line-height: 1.15; }
.blog__intro { max-width: 760px; font-size: var(--fs-body); line-height: 1.55; color: #3A3F47; }
.blog__count { font-size: 15px; color: var(--c-gray); }
.blog-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.blog-chip { padding: 10px 16px; border-radius: var(--r-pill); background: var(--c-soft); font-size: 15px; font-weight: 500; line-height: 1.3; }
.blog-chip:hover { color: var(--c-ink); background: var(--c-line); }
.blog-chip__n { opacity: 0.75; }
.blog-chip[aria-current] { background: var(--c-ink); color: var(--c-white); }
.blog-cat { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-red-dark); }
.blog-main { display: flex; flex-wrap: wrap; gap: var(--s-8); align-items: stretch; border: 1px solid var(--c-line); border-radius: 20px; padding: var(--s-4); }
.blog-main:hover { color: var(--c-ink); border-color: var(--c-field); }
.blog-main__img { position: relative; flex: 1 1 480px; min-height: 340px; border-radius: var(--r-lg); background: #E9EBEE; display: flex; align-items: center; justify-content: center; color: var(--c-disabled); overflow: hidden; }
.blog-main__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.blog-main__img svg, .blog-card__img svg { width: 80px; height: 80px; }
.blog-main__badge { position: absolute; top: var(--s-4); left: var(--s-4); padding: 5px 10px; border-radius: var(--r-xs); background: var(--c-ink); color: var(--c-white); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.blog-main__body { flex: 1 1 420px; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: var(--s-4) var(--s-6) var(--s-4) 0; }
.blog-main__title { font-size: 32px; line-height: 1.15; font-weight: 700; }
.blog-main__sum { font-size: 17px; line-height: 1.55; color: #3A3F47; }
.blog-main__meta { font-size: var(--fs-small); color: var(--c-gray); }
.blog-main__go { font-weight: 600; color: var(--c-red); }
.blog-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6) var(--s-4); }
.blog-card { height: 100%; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: var(--s-3) var(--s-3) var(--s-5); }
.blog-card:hover { color: var(--c-ink); border-color: var(--c-field); }
.blog-card__img { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r); background: #E9EBEE; display: flex; align-items: center; justify-content: center; color: var(--c-disabled); overflow: hidden; }
.blog-card__img svg { width: 48px; height: 48px; }
.blog-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.blog-card__body { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-1) 6px 0; }
.blog-card__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; }
.blog-card__meta .blog-cat { font-size: 13px; letter-spacing: 0.06em; }
.blog-card__date { color: var(--c-gray); }
.blog-card__title { font-weight: 600; font-size: 19px; line-height: 1.3; }
.blog-card__sum { font-size: 15px; line-height: 1.5; color: #3A3F47; }
.blog-nav { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: var(--s-2); }
.blog-nav:empty { display: none; }
.blog-pages__arr { border: 1px solid var(--c-line); }
.blog-pages__arr .i { width: 18px; height: 18px; }
.blog-cta { border-radius: 20px; background: var(--c-soft); padding: 36px 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-6); margin-top: var(--s-2); }
.blog-cta__text { display: flex; flex-direction: column; gap: var(--s-2); max-width: 640px; }
.blog-cta__text h2 { font-size: 26px; line-height: 1.25; }
.blog-cta__text p { font-size: var(--fs-body); line-height: 1.55; color: #3A3F47; }
.blog-cta__acts { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.blog-cta__acts .btn { height: 52px; }
.blog-empty { padding: var(--s-8) 0; display: flex; flex-direction: column; gap: var(--s-2); }
.blog-empty__title { font-size: var(--fs-h3); font-weight: 700; }
@media (max-width: 1279px) {
  .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-main__img { flex-basis: 100%; min-height: 280px; }
  .blog-main__body { padding: 0 var(--s-2) var(--s-2); }
}
@media (max-width: 767px) {
  .blog { gap: var(--s-5); padding-top: var(--s-4); }
  .blog__title h1 { font-size: 30px; }
  .blog-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scrollbar-width: none; }
  .blog-chip { flex: none; }
  .blog-grid { grid-template-columns: minmax(0, 1fr); }
  .blog-main { padding: var(--s-3); gap: var(--s-4); }
  .blog-main__img { min-height: 200px; }
  .blog-main__title { font-size: 24px; }
  .blog-main__sum { font-size: 16px; }
  .blog-cta { padding: var(--s-6) var(--s-5); }
  .blog-cta__text h2 { font-size: 22px; }
  .blog-cta__acts, .blog-cta__acts .btn { width: 100%; }
}

/* article.css — Статья /blog/<slug>/ (OR0097, A-Article, A-Mobile3) —
   критичное вида article: шапка, обложка, колонки, оглавление, текст.
   1440 — оглавление слева и липкое; уже 1280 — «Содержание · N разделов»
   над текстом (details); 390 — крошка «‹ Статьи». */
.crumbs__back { display: none; }
.art { display: flex; flex-direction: column; gap: var(--s-6); padding-top: var(--s-5); padding-bottom: 56px; }
.art__head { display: flex; flex-direction: column; gap: var(--s-4); max-width: 980px; }
.art__meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: var(--fs-small); color: var(--c-gray); }
.art__cat { padding: 6px 12px; border-radius: var(--r-pill); background: var(--c-soft); font-weight: 600; color: var(--c-red-dark); }
.art__cat:hover { color: var(--c-red); }
.art__head h1 { font-size: 48px; line-height: 1.08; font-weight: 800; }
.art__lede { font-size: 20px; line-height: 1.55; color: #3A3F47; }
.art__cover { margin: 0; aspect-ratio: 21 / 8; border-radius: 20px; background: #E9EBEE; overflow: hidden; }
.art__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art__cols { display: flex; gap: 56px; align-items: flex-start; }
.art__side { flex: 0 0 280px; position: sticky; top: 84px; /* под закреплённой шапкой (63px) */ display: flex; flex-direction: column; gap: 20px; }
.art-toc { border: 1px solid var(--c-line); border-radius: 14px; padding: 20px; }
.art-toc--wide .art-toc__title { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-gray); }
.art-toc--narrow { display: none; }
.art-toc__sum { list-style: none; cursor: pointer; padding: 14px 16px; font-size: 16px; font-weight: 600; color: var(--c-ink); display: flex; justify-content: space-between; }
.art-toc__sum::-webkit-details-marker { display: none; }
.art-toc--narrow:not([open]) .art-toc__list { display: none; }
.art-toc__list { display: flex; flex-direction: column; gap: 4px; margin-top: var(--s-2); }
.art-toc__list a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 8px; border-left: 3px solid transparent; font-size: 15px; line-height: 1.4; }
.art-toc__list a[aria-current] { background: var(--c-soft); border-left-color: var(--c-red); font-weight: 600; }
.art-toc__no { color: var(--c-gray); }
.art-ask { border-radius: 14px; background: var(--c-soft); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.art-ask__title { font-weight: 700; font-size: 16px; }
.art-ask__text { font-size: 14px; line-height: 1.5; color: #3A3F47; }
.art-ask .btn { height: 46px; }
.art-body { flex: 1 1 560px; max-width: 760px; min-width: 0; display: flex; flex-direction: column; gap: 20px; font-size: 18px; line-height: 1.7; color: #23262C; }
.art-body h2 { margin-top: 20px; font-size: 30px; line-height: 1.25; scroll-margin-top: 90px; }
.art-body h3 { margin-top: 12px; font-size: 22px; line-height: 1.3; scroll-margin-top: 90px; }
.art-body h4 { margin-top: 8px; font-size: 18px; line-height: 1.4; font-weight: 600; }
.art-body ul, .art-body ol { padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.art-body a:not(.btn):not(.cat-card__link) { color: var(--c-red-dark); text-decoration: underline; }
/* Ширина тела — во встроенном: до site.css картинка и таблица не
   расталкивают страницу. */
.art-body img { max-width: 100%; height: auto; }
.art-body figure img { width: 100%; height: auto; border-radius: 16px; display: block; }
.article-table { overflow-x: auto; border: 1px solid var(--c-line); border-radius: 14px; -webkit-overflow-scrolling: touch; }
.article-table table { min-width: 560px; width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
@media (max-width: 1279px) {
  .art__cols { flex-direction: column; align-items: stretch; gap: var(--s-5); }
  .art__side { position: static; flex: none; width: 100%; }
  .art-ask { display: none; }
  .art-toc--wide { display: none; }
  .art-toc--narrow { display: block; padding: 0; }
  .art-toc__sum::after { content: "⌄"; }
  .art-toc[open] .art-toc__sum::after { content: "⌃"; }
  .art-toc__sum .art-toc__title { flex: 1; }
  .art-toc--narrow .art-toc__list { margin: 0; padding: 0 10px 12px; }
  .art-body { max-width: none; flex: none; }
}
@media (max-width: 767px) {
  .crumbs__wrap--back .crumbs { display: none; }
  .crumbs__back { display: inline-flex; gap: 6px; font-size: var(--fs-small); color: var(--c-gray); }
  .art { gap: var(--s-4); padding-top: var(--s-3); }
  .art__head { gap: 10px; }
  .art__head h1 { font-size: 26px; line-height: 1.2; }
  .art__lede { font-size: 17px; }
  .art__cover { aspect-ratio: 16 / 9; border-radius: var(--r-lg); }
  .art-body { font-size: 17px; line-height: 1.65; }
  .art-body h2 { font-size: 22px; }
  .art-body h3 { font-size: 19px; }
}

/* article-more.css — статья ниже первого экрана (OR0097): блоки тела,
   «Поделиться», форма заявки, «Читайте также». */
.art-body figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.art-body figcaption { font-size: 14px; line-height: 1.5; color: var(--c-gray); }
.art-body blockquote { margin: 8px 0; padding: 20px 24px; border-left: 4px solid var(--c-red); background: var(--c-soft); border-radius: 0 14px 14px 0; font-size: 20px; line-height: 1.55; font-weight: 500; color: var(--c-ink); }
.art-body blockquote footer { margin-top: 10px; font-size: 15px; font-weight: 400; color: var(--c-gray); }
.art-body blockquote footer::before { content: "— "; }
.article-table th { background: var(--c-soft); font-size: 14px; font-weight: 700; text-align: left; }
.article-table th, .article-table td { padding: 14px 16px; vertical-align: top; }
.article-table td { border-top: 1px solid var(--c-line); }
.article-table__hint { display: none; margin-top: -10px; text-align: right; font-size: 14px; font-weight: 500; color: var(--c-gray); }
.article-products { border: 1px solid var(--c-line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 16px; margin: 8px 0; position: relative; }
.article-products-title { font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--c-ink); padding-right: 160px; }
.article-products__all { position: absolute; top: 24px; right: 20px; font-size: 15px; font-weight: 600; color: var(--c-red) !important; text-decoration: none !important; }
.art-body .article-products-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; padding-left: 0; }
.art-card { height: 100%; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--c-line); border-radius: 14px; padding: 10px; font-size: 14px; line-height: 1.35; }
.art-card:hover { color: var(--c-ink); border-color: var(--c-field); }
.art-card .cat-card__img { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; background: var(--c-soft); display: flex; align-items: center; justify-content: center; color: var(--c-disabled); overflow: hidden; }
.art-card .cat-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.art-card .cat-card__img svg { width: 48px; height: 48px; }
.art-card .cat-card__name { font-weight: 500; min-height: 38px; }
.art-card .cat-card__price { font-size: 18px; font-weight: 700; }
.art-card__more { font-size: 13px; font-weight: 600; color: var(--c-red-dark); }
.art-dots { display: none; justify-content: center; gap: 6px; }
.art-dots span { width: 6px; height: 6px; border-radius: 3px; background: var(--c-field); }
.art-dots span.is-on { width: 18px; background: var(--c-ink); }
.article-video-play { position: relative; aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: 16px; background: #14161A; display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; overflow: hidden; }
.article-video-play img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; border-radius: 0 !important; }
.article-video-icon { position: relative; width: 76px; height: 76px; border-radius: 50%; background: var(--c-white); color: var(--c-red); display: flex; align-items: center; justify-content: center; font-size: 28px; padding-left: 6px; }
.article-video-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; background: #14161A; }
.article-faq { display: flex; flex-direction: column; gap: 10px; }
.article-faq details { border: 1px solid var(--c-line); border-radius: 12px; padding: 14px 16px; }
.article-faq summary { font-weight: 600; font-size: 17px; cursor: pointer; }
.article-faq p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: #3A3F47; }
.article-cta { border-radius: 16px; background: var(--c-soft); padding: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.article-cta-title { font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--c-ink); }
.article-cta .btn { height: 48px; text-decoration: none !important; color: var(--c-white) !important; }
.art-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 12px; border-top: 1px solid var(--c-line); font-size: 14px; line-height: 1.4; }
.art-share__label { color: var(--c-gray); }
.art-share a, .art-share button { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--c-line); background: var(--c-white); font: 500 14px var(--font); color: var(--c-ink) !important; text-decoration: none !important; cursor: pointer; }
.art-share a:hover, .art-share button:hover { border-color: var(--c-field); }
.art-lead { margin-top: 12px; border-radius: 20px; background: var(--c-soft); padding: 44px; }
.art-rel { display: flex; flex-direction: column; gap: 18px; }
.art-rel__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); }
.art-rel__head h2 { font-size: 28px; }
.art-rel__head a { font-weight: 600; color: var(--c-red); }
.art-rel__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1023px) {
  .art-rel__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .article-table__hint { display: block; }
  .art-lead { padding: 20px 16px; border-radius: var(--r-lg); }
  .article-products { padding: 0; border: 0; }
  .article-products-title { font-size: 18px; padding-right: 50px; }
  .article-products__all { top: 2px; right: 0; font-size: 0 !important; }
  .article-products__all::after { content: "Все"; font-size: 15px; }
  .art-body .article-products-list { display: flex; flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scrollbar-width: none; }
  .art-body .article-products-list::-webkit-scrollbar { display: none; }
  .article-products-list > li { flex: 0 0 44%; scroll-snap-align: start; }
  .art-dots { display: flex; }
  .art-body blockquote { font-size: 17px; padding: 16px 18px; }
  .art-rel__grid { grid-template-columns: minmax(0, 1fr); }
  .art-rel__head h2 { font-size: 22px; }
}

/* Слайдер текста (OR0254): статьи и SEO-тексты; лента со scroll-snap, кнопки поверх краёв. */
.article-slider { position: relative; margin: 0; display: block; }
.article-slider__track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.article-slider__track::-webkit-scrollbar { display: none; }
.article-slider__item { flex: 0 0 100%; scroll-snap-align: start; }
.article-slider__item { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.article-slider__item img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; display: block; }
.article-slider__item figcaption { font-size: 14px; line-height: 1.5; color: var(--c-gray); }
.article-slider__btn { position: absolute; top: calc(50% - 22px); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15); font-size: 26px; line-height: 1; color: var(--c-ink, #14161a); cursor: pointer; display: grid; place-items: center; }
.article-slider__btn--prev { left: 10px; }
.article-slider__btn--next { right: 10px; }
.article-slider__btn:disabled { opacity: 0; pointer-events: none; }

/* portfolio.css — Портфолио (OR0098, A-Portfolio, A-Project) — критичное
   видов portfolio и project. Список — классы списка статей (blog.css),
   карточка проекта и «Новый проект»; проект — шапка, основное фото и
   карточка фактов (на 1440 справа, уже 1280 — под фото). */
.pf-card { height: 100%; display: flex; flex-direction: column; gap: var(--s-2); }
.pf-card:hover { color: var(--c-ink); }
.pf-card:hover .pf-card__title { color: var(--c-red-dark); }
.pf-card__img { position: relative; aspect-ratio: 16 / 10; margin-bottom: 6px; border-radius: var(--r-lg); background: #E9EBEE; display: flex; align-items: center; justify-content: center; color: var(--c-disabled); overflow: hidden; }
.pf-card__img svg { width: 48px; height: 48px; }
.pf-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-card__n { position: absolute; right: 10px; bottom: 10px; padding: 4px 8px; border-radius: var(--r-xs); background: var(--c-white); color: var(--c-ink); font-size: 12px; font-weight: 600; }
.pf-card .blog-cat { font-size: 12px; letter-spacing: 0.06em; }
.pf-card__title { font-weight: 700; font-size: 19px; line-height: 1.3; }
.pf-card__sum { font-size: 14px; line-height: 1.5; color: var(--c-gray); }
.pf-main .blog-main__img { flex-basis: 640px; min-height: 380px; }
.pf-main__chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pf-main__chips:empty { display: none; }
.pf-chip { padding: 6px 12px; border-radius: var(--r-pill); background: var(--c-soft); font-size: 14px; }
.prj { display: flex; flex-direction: column; gap: var(--s-8); padding-top: var(--s-5); padding-bottom: 56px; }
.prj__head { display: flex; flex-direction: column; gap: 10px; max-width: 980px; }
.prj__kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-red-dark); }
.prj__kicker:empty { display: none; }
.prj__head h1 { font-size: 40px; line-height: 1.15; font-weight: 800; }
.prj__top { display: flex; gap: var(--s-6); align-items: flex-start; }
.prj__main { flex: 1 1 0; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.prj__photo { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 20px; background: #E9EBEE; overflow: hidden; }
.prj__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prj__zoom { position: absolute; right: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 10px; background: var(--c-white); display: flex; align-items: center; justify-content: center; }
.prj__zoom .i { width: 20px; height: 20px; }
.prj__main figcaption { font-size: 13px; color: var(--c-gray); }
.prj-facts { flex: 0 0 340px; margin-left: auto; border: 1px solid var(--c-line); border-radius: 16px; padding: 8px 20px 20px; display: flex; flex-direction: column; }
.prj-facts__row { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.prj-facts__k { font-size: 12px; color: var(--c-gray); }
.prj-facts__v { font-weight: 600; font-size: 15px; line-height: 1.4; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.prj-facts__v a { text-decoration: underline; }
.prj-facts__logo img { width: auto; max-width: 80px; height: 32px; object-fit: contain; display: block; }
.prj-facts__btn { margin-top: var(--s-4); height: 48px; }
.prj-facts__note { margin-top: 10px; font-size: 12px; line-height: 1.4; color: var(--c-gray); }
/* Без фото — факты строкой на всю ширину: колонки над пустым местом нет. */
.prj__top--bare .prj-facts { flex: 1 1 auto; margin-left: 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 40px; padding: 20px 24px; }
.prj__top--bare .prj-facts__row { border-bottom: 0; padding: 0; }
.prj__top--bare .prj-facts__btn { margin: 0 0 0 auto; padding: 0 28px; }
.prj__top--bare .prj-facts__note { flex-basis: 100%; margin-top: 0; text-align: right; }
@media (max-width: 1279px) {
  .prj__top { flex-direction: column; align-items: stretch; }
  .prj-facts { flex: none; margin-left: 0; }
}
@media (max-width: 767px) {
  .prj__top--bare .prj-facts { flex-direction: column; align-items: stretch; gap: 12px; padding: 8px 20px 20px; }
  .prj__top--bare .prj-facts__row { border-bottom: 1px solid var(--c-line); padding: 12px 0; }
  .prj__top--bare .prj-facts__btn { margin: var(--s-4) 0 0; }
  .prj__top--bare .prj-facts__note { text-align: left; }
}
@media (max-width: 1023px) {
  .pf-main .blog-main__img { min-height: 280px; }
}
@media (max-width: 767px) {
  .prj { gap: var(--s-6); padding-top: var(--s-3); }
  .prj__head h1 { font-size: 26px; line-height: 1.2; }
  .prj__photo { border-radius: var(--r-lg); }
  .pf-main .blog-main__img { min-height: 200px; }
}

/* portfolio-more.css — Портфолио ниже первого экрана (OR0098): форма
   заявки, разделы 01/02/03 проекта, галерея (5/3/2 колонки), товары,
   «Другие проекты». Не встраивается — из файла витрины. */
.pf-lead { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; padding: 44px; border-radius: 20px; background: var(--c-soft); scroll-margin-top: 96px; }
.pf-lead__side { display: flex; flex-direction: column; gap: 14px; }
.pf-lead__side h2 { font-size: 30px; line-height: 1.2; }
.pf-lead__side p { font-size: 16px; line-height: 1.55; color: #3A3F47; }
.pf-lead__phone { font-weight: 700; }
.pf-lead__side .chat-pills { margin-top: 12px; }
.pf-lead .lf--embed { max-width: none; padding: 0; border: 0; background: none; }
.pf-lead .lf__form > .lf__title, .pf-lead .lf__form > .lf__sub { display: none; }
.prj-lead__att { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-white); }
.prj-lead__k { font-size: 12px; color: var(--c-gray); }
.prj-lead__v { font-weight: 600; font-size: 15px; }
.prj-secs { display: flex; flex-direction: column; gap: 40px; max-width: 980px; }
.prj-sec { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s-6); }
.prj-sec__head { display: flex; flex-direction: column; gap: 4px; }
.prj-sec__no { font-size: 40px; line-height: 1; font-weight: 800; color: var(--c-red); }
.prj-sec__head h2 { font-size: 20px; line-height: 1.25; }
.prj-sec__text { display: flex; flex-direction: column; gap: 12px; font-size: 17px; line-height: 1.65; color: #23262C; }
.prj-sec__text ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prj__body { max-width: 980px; }
.prj-gal__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s-2) var(--s-4); margin-bottom: var(--s-4); }
.prj-gal__head h2 { font-size: 26px; }
.prj-gal__head span { font-size: 13px; color: var(--c-gray); }
.prj-gal__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-4) 12px; }
.prj-gal__item { display: flex; flex-direction: column; gap: 6px; cursor: zoom-in; }
.prj-gal__img { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; background: #E9EBEE; overflow: hidden; }
.prj-gal__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prj-gal__cap { font-size: 12px; line-height: 1.4; color: var(--c-gray); }
.prj-goods__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.prj-other__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
@media (max-width: 1279px) {
  .prj-gal__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prj-goods__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .pf-lead { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 32px; }
  .prj-goods__grid, .prj-other__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .pf-lead { padding: 20px 16px; border-radius: var(--r-lg); }
  .pf-lead__side h2 { font-size: 22px; }
  .prj-sec { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); }
  .prj-sec__no { font-size: 32px; }
  .prj-sec__text { font-size: 16px; }
  .prj-gal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prj-other__grid { grid-template-columns: minmax(0, 1fr); }
}

/* info.css — страница «Страниц» (OR0099, A-About, A-Services, A-Contacts, A-System 3): первый
   экран и каркас юридической — в <style> видов info и legal. Блоки ниже — info-more. */
.ip { padding-bottom: 64px; }
.ip-hero { display: grid; gap: 40px; padding-top: 32px; padding-bottom: 40px; }
.ip-hero--photo { grid-template-columns: minmax(0, 1fr) 420px; align-items: start; }
.ip-hero__text { max-width: 880px; padding-top: 16px; }
.ip-hero__kicker { display: block; margin-bottom: 14px; color: var(--c-red); }
.ip-hero__lede { margin: 18px 0 0; max-width: 640px; font-size: 18px; line-height: 29px; color: var(--c-gray-dark); }
.ip-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ip-hero__photo { margin: 0; }
.ip-hero__photo img { width: 100%; height: auto; aspect-ratio: 21 / 19; object-fit: cover; border-radius: var(--r-xl); background: var(--c-soft); }
.ip-hero__photo figcaption, .ip-photo figcaption, .ip-tp figcaption { margin-top: 8px; font-size: 13px; line-height: 18px; color: var(--c-gray); }
.ip__blocks > * + * { margin-top: 56px; }
.ip__blocks > .ip-h + * { margin-top: 0; }
.ip-legal { padding-top: 32px; }
.ip-legal__ed { margin: 10px 0 32px; font-size: var(--fs-small); color: var(--c-gray); }
.ip-legal__grid--toc { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: start; }
.ip-legal__body { max-width: 820px; }
.ip-toc-side { position: sticky; top: 96px; }
.ip-toc { display: none; padding: 14px 18px; border: 1px solid var(--c-line); border-radius: var(--r-md); }
.ip-toc summary { font-weight: 700; cursor: pointer; }
.ip-toc-side ol, .ip-toc ol { margin: 12px 0 0; padding-left: 20px; }
.ip-toc-side li + li, .ip-toc li + li { margin-top: 8px; }
.ip h2 { margin-bottom: 20px; }
.ip h3 { font-size: 18px; line-height: 24px; font-weight: 700; }
.ip-h { margin-bottom: 12px; }
.ip-legal .ip-h { scroll-margin-top: 96px; }
.ip-legal__body > * + * { margin-top: 16px; }
.ip-legal__body h2.ip-h { margin-top: 36px; font-size: 24px; line-height: 30px; }
.ip-text p { margin: 0 0 12px; }
.ip-text ul, .ip-text ol, .ip-tp__text ul { margin: 0; padding-left: 22px; }
.ip-text li + li, .ip-tp__text li + li { margin-top: 6px; }
.ip-text a { color: var(--c-red-dark); text-decoration: underline; }
.ip-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 0; padding: 0; list-style: none; border: 1px solid var(--c-line); border-radius: var(--r-xl); }
.ip-stats li { display: flex; flex-direction: column; gap: 6px; padding: 28px; }
.ip-stats li + li { border-left: 1px solid var(--c-line); }
.ip-stat__value { font-size: 44px; line-height: 48px; font-weight: 800; color: var(--c-red); }
.ip-stat__label { font-weight: 700; }
.ip-stats small { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--c-gray); }
.ip-cc { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 0 0 28px; padding: 0; list-style: none; }
.ip-cc__card { display: flex; flex-direction: column; gap: 4px; padding: 22px; border: 1px solid var(--c-line); border-radius: var(--r-xl); min-width: 0; }
.ip-cc__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 12px; border-radius: var(--r-md); background: var(--c-soft); }
.ip-cc__icon--red { background: var(--c-red); color: var(--c-white); }
.ip-cc__label, .ip-cc__note { font-size: 13px; color: var(--c-gray); }
.ip-cc__value { font-size: 20px; line-height: 28px; font-weight: 700; overflow-wrap: anywhere; }
.ip-cc__value--mail { font-size: 17px; overflow-wrap: normal; }
.ip-cc__chat { width: 44px; height: 44px; margin-bottom: 12px; }
.ip-cc__go { margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--c-red-dark); }
@media (max-width: 1279px) {
  .ip-cc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .ip-stats li:nth-child(odd) { border-left: 0; }
  .ip-stats li:nth-child(n+3) { border-top: 1px solid var(--c-line); }
  .ip-hero { gap: 24px; padding-top: 24px; }
  .ip-hero--photo { grid-template-columns: minmax(0, 1fr); }
  .ip-hero__text { padding-top: 0; }
  .ip-hero__photo img { aspect-ratio: 16 / 9; }
  .ip-legal__grid--toc { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ip-toc-side { display: none; }
  .ip-toc { display: block; }
}
@media (max-width: 767px) {
  .ip-stats { grid-template-columns: minmax(0, 1fr); }
  .ip-stats li + li { border-left: 0; border-top: 1px solid var(--c-line); }
  .ip-stat__value { font-size: 36px; line-height: 40px; }
  .ip-cc { grid-template-columns: minmax(0, 1fr); }
  .ip-hero__lede { font-size: 16px; line-height: 25px; }
  .ip-hero__btns .btn { flex: 1 1 100%; }
  .ip__blocks > * + * { margin-top: 40px; }
}

/* Блоки, которые бывают на первом экране (карточки «Услуг» и «Нанесения»,
   контакты): критично, иначе приход site.css сдвигает страницу (CLS). */
.ip-sec__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.ip-sec__head h2 { margin: 0; }
.ip-more { color: var(--c-red); font-weight: 600; }
.ip-more:hover { color: var(--c-red-dark); }
.ip-photo { margin: 0; }
.ip-photo img { width: 100%; height: auto; border-radius: var(--r-xl); }

/* «Карточки» */
.ip-cards__list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.ip-card { display: flex; flex-direction: column; min-width: 0; border-radius: var(--r-xl); }
.ip-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ip-card p { margin: 0; color: var(--c-gray-dark); font-size: 15px; line-height: 23px; }
.ip-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: var(--r-md); background: var(--c-white); color: var(--c-red); }
.ip-card__kicker { color: var(--c-red); }
.ip-card__cap { font-size: 12px; line-height: 16px; color: var(--c-gray); }
.ip-card__label { font-weight: 700; color: var(--c-gray-dark); }
.ip-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ip-chip { padding: 5px 10px; border-radius: var(--r-xs); background: var(--c-soft); font-size: 13px; line-height: 18px; font-weight: 600; }
.ip-card__points { margin: 0; padding-left: 20px; font-size: 15px; line-height: 23px; color: var(--c-gray-dark); }
.ip-card__meta { display: flex; justify-content: space-between; gap: 12px; margin-top: auto !important; padding-top: 14px; border-top: 1px solid var(--c-line); }
.ip-card__meta span { color: var(--c-gray); }
.ip-card__photo { margin: 0; }
.ip-card__photo img { width: 100%; height: 100%; object-fit: cover; background: var(--c-soft); }
.ip-cards--tiles .ip-cards__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ip-cards--tiles .ip-card { padding: 24px; background: var(--c-soft); }
.ip-cards--photos .ip-cards__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ip-cards--photos .ip-card { padding: 14px; border: 1px solid var(--c-line); }
.ip-cards--photos .ip-card__photo img { aspect-ratio: 9 / 5; border-radius: var(--r-md); }
.ip-cards--photos .ip-card__photo { margin-bottom: 12px; }
.ip-cards--cols .ip-cards__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ip-cards--cols .ip-card { padding: 28px; border: 1px solid var(--c-line); }
.ip-cards--cols .ip-card__icon { background: var(--c-soft); }
.ip-cards--wide .ip-card { display: grid; grid-template-columns: 420px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--c-line); }
.ip-cards--wide .ip-card__photo img { min-height: 360px; }
.ip-cards--text .ip-card { grid-template-columns: minmax(0, 1fr); }
.ip-cards--wide .ip-card__body { padding: 40px; gap: 14px; }
.ip-cards--wide h3 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
.ip-cards--wide .ip-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ip-cards--wide .ip-chip::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--c-red); vertical-align: middle; }
.ip-cards--wide .ip-chip { padding: 10px 12px; font-size: 15px; }

/* «Контакты» (A-Contacts) */
.ip-place { display: grid; gap: 24px; }
.ip-place--map { grid-template-columns: minmax(0, 1fr) 400px; }
.ip-map { position: relative; min-height: 460px; overflow: hidden; border-radius: var(--r-xl); border: 1px solid var(--c-line);
  background: linear-gradient(90deg, transparent 0 66px, var(--c-white) 66px 76px) 0 0 / 76px 76px, linear-gradient(0deg, transparent 0 66px, var(--c-white) 66px 76px) 0 0 / 76px 76px, #ECEEF1; }
.ip-map__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ip-map__pin { padding: 8px 14px; border-radius: var(--r); background: var(--c-white); font-weight: 600; box-shadow: 0 4px 14px rgba(20, 22, 26, 0.12); }
.ip-map__pin::after { content: ""; display: block; width: 18px; height: 18px; margin: 14px auto -40px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c-red); }
.ip-map__show { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); }
.ip-map__show[hidden] { display: none; }
.ip-map__link { position: absolute; left: 16px; bottom: 16px; padding: 4px 10px; border-radius: var(--r-xs); background: var(--c-white); font-size: 13px; }
.ip-map__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ip-map--on .ip-map__ph, .ip-map--on .ip-map__link { display: none; }
.ip-addr { display: flex; flex-direction: column; gap: 8px; padding: 28px; border: 1px solid var(--c-line); border-radius: var(--r-xl); }
.ip-addr .eyebrow:not(:first-child) { margin-top: 18px; }
.ip-addr__value { margin: 0; font-size: 18px; font-weight: 700; }
.ip-hours { margin: 0; padding: 0; list-style: none; }
.ip-hours li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--c-line); }
.ip-addr__text { color: var(--c-gray-dark); }
.ip-addr__text p { margin: 0 0 8px; }
@media (max-width: 1279px) {
  .ip-cards--tiles .ip-cards__list, .ip-cards--photos .ip-cards__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-cards--wide .ip-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .ip-place--map { grid-template-columns: minmax(0, 1fr); }
  .ip-cards--wide .ip-card { grid-template-columns: minmax(0, 1fr); }
  .ip-cards--wide .ip-card__photo img { min-height: 0; aspect-ratio: 16 / 9; }
  .ip-cards--wide .ip-card__body { padding: 28px; }
  .ip-map { min-height: 340px; }
}
@media (max-width: 767px) {
  .ip-cards--tiles .ip-cards__list, .ip-cards--photos .ip-cards__list, .ip-cards--cols .ip-cards__list { grid-template-columns: minmax(0, 1fr); }
  .ip-addr { padding: 20px; }
  .ip-cards--wide .ip-chips { grid-template-columns: minmax(0, 1fr); }
}

/* info-more.css — блоки страницы «Страниц» ниже первого экрана (OR0099): некритично. */

/* «Цифры» — строка карточек (A-About) */

/* «Текст с фото» */
.ip-tp--pics { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 606px); gap: 56px; align-items: start; }
.ip-tp__text p { margin: 0 0 14px; color: var(--c-gray-dark); }
.ip-tp__pics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ip-tp__pics figure { margin: 0; }
.ip-tp__pics figure:first-child { grid-column: 1 / -1; }
.ip-tp__pics img, .ip-gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-xl); background: var(--c-soft); }


/* «Шаги» — линия с красными кружками (A-About) */
.ip-steps__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: ip-step; }
.ip-step { position: relative; counter-increment: ip-step; padding-top: 52px; }
.ip-step::before { content: counter(ip-step); position: absolute; top: 0; left: 0; z-index: 1; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c-red); color: var(--c-white); font-weight: 700; box-shadow: 0 0 0 4px var(--c-white); }
.ip-step::after { content: ""; position: absolute; top: 17px; left: 0; right: -24px; height: 2px; background: var(--c-ink); }
.ip-step:last-child::after { right: 0; }
.ip-step p { margin: 8px 0 0; font-size: 15px; line-height: 23px; color: var(--c-gray-dark); }
.ip-step__term { display: block; margin-top: 8px; font-size: 13px; color: var(--c-gray); }

/* таблица со знаками ●○— (A-Services, ч. 2) */
.ip-table__scroll { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--r-xl); }
.ip-table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.ip-table th, .ip-table td { padding: 12px 14px; text-align: left; border-top: 1px solid var(--c-line); }
.ip-table thead th { border-top: 0; background: var(--c-soft); font-size: 13px; font-weight: 600; color: var(--c-gray-dark); }
.ip-table tbody th { font-weight: 600; }
.ip-dot--on { color: var(--c-red); font-weight: 800; font-size: 18px; }
.ip-dot--no { color: var(--c-field); }
.ip-table__legend { margin: 12px 0 0; font-size: 13px; color: var(--c-gray); }

/* «Вопросы и ответы» */
.ip-faq__item { border: 1px solid var(--c-line); border-radius: var(--r-md); }
.ip-faq__item + .ip-faq__item { margin-top: 10px; }
.ip-faq__item summary { padding: 16px 18px; font-weight: 600; cursor: pointer; }
.ip-faq__item p { margin: 0; padding: 0 18px 16px; color: var(--c-gray-dark); }

/* «Галерея», «Логотипы» */
.ip-gallery ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.ip-gallery--logos img { aspect-ratio: 3 / 2; object-fit: contain; padding: 16px; }

/* «Форма заявки» — тёмный блок (A-About) и белая карточка у реквизитов (A-Contacts) */
.ip-form--dark { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; padding: 48px; border-radius: var(--r-xl); background: var(--c-ink); color: var(--c-white); scroll-margin-top: 96px; }
.ip-form--dark h2 { color: var(--c-white); }
.ip-form__side p { margin: 0 0 18px; color: var(--c-dark-text); }
.ip-form__phone { display: block; margin-top: 10px; color: var(--c-white); font-weight: 700; }
.ip-form__side .chat-pills { margin-top: 14px; }
.ip-form--dark .lf__form > .lf__title, .ip-form--dark .lf__form > .lf__sub { display: none; }
.ip-form--dark .ip-form__box { color: var(--c-ink); }
.ip-form--card { padding: 32px; border: 1.5px solid var(--c-ink); border-radius: var(--r-xl); scroll-margin-top: 96px; }
.ip-form--card .lf--embed { max-width: none; padding: 0; border: 0; }


/* «Реквизиты» */
.ip-reqpair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.ip-req { padding: 28px; border-radius: var(--r-xl); background: var(--c-soft); }
.ip-req__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.ip-req__head h2 { margin: 0; font-size: var(--fs-h3); line-height: var(--lh-h3); }
.ip-req__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ip-req__table th, .ip-req__table td { padding: 10px 0; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.ip-req__table th { width: 40%; padding-right: 16px; font-weight: 400; color: var(--c-gray); }
.ip-req__table td { font-weight: 600; overflow-wrap: anywhere; }

/* «Проекты» — карточки портфолио сеткой, как «Портфолио» главной (OR0183) */
.ip-projects__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }

@media (max-width: 1023px) {
  .ip-tp--pics, .ip-reqpair, .ip-form--dark { grid-template-columns: minmax(0, 1fr); }
  .ip-form--dark { gap: 24px; padding: 32px; }
  .ip-steps__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ip-step:nth-child(3n)::after { right: 0; }
}
@media (max-width: 767px) {
  .ip-gallery ul, .ip-projects__grid { grid-template-columns: minmax(0, 1fr); }
  .ip-steps__list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ip-step { padding: 0 0 24px 52px; }
  .ip-step::after { top: 36px; bottom: 0; left: 17px; right: auto; width: 2px; height: auto; }
  .ip-step:last-child::after { display: none; }
  .ip-form--dark, .ip-form--card, .ip-req { padding: 20px; }
  .ip-req__head { flex-wrap: wrap; }
  .ip-req__table th { width: 45%; }
}

/* Главная ниже первого экрана (OR0100): товары, наборы, «Почему ОРИЕНТИР»,
   портфолио, статьи, форма КП, контакты. */
.home-goods__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.home-gifts { display: flex; flex-direction: column; gap: 28px; padding: var(--s-12); border-radius: 20px; background: var(--c-ink); color: var(--c-white); }
.home-gifts__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-5); }
.home-gifts__intro { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.home-gifts__intro h2 { margin: 0; color: var(--c-white); font-size: 34px; line-height: 1.2; }
.home-gifts__intro p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--c-footer); }
.home-gifts__all { height: 48px; padding: 0 22px; background: var(--c-white); color: var(--c-ink); }
.home-gifts__all:hover { background: var(--c-soft); color: var(--c-ink); }
.home-gifts__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.home-set { height: 100%; display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-lg); background: var(--c-dark-btn); color: var(--c-white); }
.home-set:hover { background: var(--c-dark-btn-hover); color: var(--c-white); }
.home-set__img { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border-radius: var(--r); background: #2E323A; color: #8A9099; overflow: hidden; }
.home-set__img img { width: 100%; height: 100%; object-fit: cover; }
.home-set__img svg { width: 56px; height: 56px; }
.home-set__name { font-size: 17px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.home-set__line { font-size: 14px; line-height: 1.4; color: var(--c-footer); }
.home-set__price { margin-top: auto; font-size: 19px; font-weight: 700; }
.home-set__price--note { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--c-dark-text); }

.home-why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s-4); }
.home-why__item { display: flex; flex-direction: column; gap: 10px; padding: var(--s-6); border-radius: var(--r-lg); background: var(--c-soft); }
.home-why__value { color: var(--c-red); font-size: 32px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.home-why__label { font-size: 17px; font-weight: 600; }
.home-why__text { font-size: 15px; line-height: 1.5; color: var(--c-gray-dark); }

.home-pf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.home-posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.home-post { height: 100%; display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-6); border: 1px solid var(--c-line); border-radius: var(--r-lg); color: var(--c-ink); }
.home-post:hover .home-post__title { color: var(--c-red-dark); }
.home-post__meta { font-size: 13px; color: var(--c-gray); }
.home-post__title { font-size: 18px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }

.home .recent { padding-top: var(--s-8); padding-bottom: var(--s-4); }
.home-lead { display: flex; flex-wrap: wrap; gap: var(--s-10); padding: var(--s-12); border-radius: 20px; background: var(--c-soft); }
.home-lead__text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.home-lead__text h2 { margin: 0; font-size: 34px; line-height: 1.15; }
.home-lead__text p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--c-gray-dark); }
.home-lead__form { flex: 2 1 480px; min-width: 0; }
.home-lead__form .lf--embed { max-width: none; padding: 0; border: 0; background: none; }
.home-contacts__links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.home-contacts__links a { color: var(--c-ink); font-weight: 600; }
.home-contacts__links a:hover { color: var(--c-red-dark); }

/* Товары: карточки, не заполняющие последний ряд, скрыты — диапазонами
   ширин, без смены display у видимых (у .cat-card свой flex). */
@media (min-width: 1024px) and (max-width: 1279px) {
  .home-goods__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-goods__grid > li:nth-child(n+5) { display: none; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .home-goods__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-goods__grid > li:nth-child(n+4) { display: none; }
}
@media (max-width: 1279px) {
  .home-gifts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-gifts, .home-lead { padding: var(--s-8); }
}
@media (max-width: 1023px) {
  .home-lead__form { flex-basis: 100%; }
}
@media (max-width: 767px) {
  .home-goods__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-goods__grid > li:nth-child(odd):last-child:not(:first-child) { display: none; }
  .home-gifts { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 28px var(--gutter); border-radius: 0; }
  .home-gifts__intro h2, .home-lead__text h2 { font-size: 24px; }
  .home-gifts__all { width: 100%; }
  .home-gifts__grid, .home-pf, .home-posts { grid-template-columns: minmax(0, 1fr); }
  .home-why__value { font-size: 28px; }
  .home-lead { padding: 24px 20px; gap: var(--s-6); }
  .home-lead__form { flex-basis: 100%; }
}

