/* ============================================================
   СамПРАЧКА — дизайн-система v4 «Чистый лист»
   Белый фон, чёрный текст, один акцент, тонкие линии, крупная типографика.
   Без градиентов, свечений и стекла.
   ============================================================ */

:root {
  --bg: #ffffff;
  /* Брендбук: Pantone Black 3 #343232 · 2985 #41bfef (стирка) · 1235 #fbba06 (сушка) · 361 #5db134 */
  --bg-soft: #f4f4f4;
  --bg-soft-2: #ebebeb;
  --ink: #343232;
  --ink-hover: #1f1e1e;
  --ink-2: #4b4949;
  --muted: #7c7a7a;
  --muted-2: #b1afaf;
  --line: #e8e7e7;
  --line-2: #d5d3d3;
  --accent: #41bfef;
  --accent-hover: #2fb3e8;
  --accent-deep: #1a9bd0;
  --accent-text: #1a9bd0;
  --accent-soft: #e3f5fd;
  --sky: #d9f1fc;
  --yellow: #fbba06;
  --yellow-hover: #f2b000;
  --yellow-soft: #fef0c4;
  --yellow-text: #8a5a00;
  --green: #5db134;
  --green-soft: #e2f2d8;
  --red: #d64545;
  --mint: var(--green);
  --mint-soft: var(--green-soft);
  --amber: #a97a00;
  --amber-soft: var(--yellow-soft);
  --rose: #e5484d;
  --rose-soft: #fdecec;
  --night: var(--ink);
  --night-2: #444242;
  /* Тинты фирменных цветов для крупных плиток: 40% #41bfef · 50% #fbba06 · 40% #5db134 · тинт чёрного */
  --tint-blue: #b3e5f9;
  --tint-yellow: #fddc83;
  --tint-green: #bee0b2;
  --tint-gray: #e4e4e4;
  --font: "Intro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: var(--font);
  --font-num: var(--font-display);
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  /* Единые внутренние отступы карточек: обычная (до 3 колонок) и компактная (4–5 колонок, меню) */
  --pad: 28px; --s-1: 8px; --s-2: 12px; --s-3: 16px; --s-4: 24px; --s-5: 32px; --s-6: 40px; --section: clamp(48px, 5vw, 80px); --section-inner: clamp(44px, 4.5vw, 72px);
  --pad-sm: 22px;
  --gap: 14px;
  --gap-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(18, 20, 29, 0.06);
  --shadow: 0 12px 32px -12px rgba(18, 20, 29, 0.18);
  --shadow-lg: 0 32px 64px -28px rgba(18, 20, 29, 0.28);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
}

/* ---------- Корпоративный шрифт Intro (Fontfabric). Заголовки — Intro Black, текст — Intro Regular ---------- */
@font-face { font-family: "Intro"; src: url("../fonts/intro/Intro-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Intro"; src: url("../fonts/intro/Intro-Medium.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Intro"; src: url("../fonts/intro/Intro-Bold.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: "Intro"; src: url("../fonts/intro/Intro-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

/* ---------- Базовое ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "kern"; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-text); }
p { margin: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
small { font-size: 0.86em; }
strong, b { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Типографика ---------- */
.h-display, .h1, .h2, .h3, .h4 { font-family: var(--font-display); font-weight: 900; color: var(--ink); text-wrap: balance; }
.h3, .h4 { font-weight: 700; }
.h-display { font-size: clamp(2.3rem, 4.2vw, 3.9rem); line-height: 1.04; letter-spacing: -0.02em; }
.h1 { font-size: clamp(2rem, 3.3vw, 3rem); line-height: 1.06; letter-spacing: -0.02em; }
.h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.12; letter-spacing: -0.015em; }
.h3 { font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.25; letter-spacing: -0.015em; }
.h4 { font-size: 1.06rem; line-height: 1.35; letter-spacing: -0.01em; }
.h-display em, .h1 em, .h2 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(1.05rem, 1.25vw, 1.2rem); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.muted { color: var(--muted); }
.muted-2 { color: var(--muted-2); }
.small { font-size: 0.9rem; }
.tiny { font-size: 0.78rem; }
.mint { color: var(--green); }
.accent { color: var(--accent); }
.balance { text-wrap: balance; }
/* Надзаголовок секции — единая «пилюля» */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; line-height: 1.2; align-self: flex-start; }
.eyebrow.mint { background: var(--green-soft); color: var(--green); }
.surface-ink .eyebrow, .card-ink .eyebrow, .band-ink .eyebrow, .tile-ink .eyebrow, .numbers-band .eyebrow, .cta-band .eyebrow, .entry-blue .eyebrow { background: rgba(255, 255, 255, 0.14); color: #fff; }
/* Крупные цифры/факты — всегда Intro Black, табличные цифры */
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat-value, .entry-price, .hero-mini b, .milestone-year, .timeline-year, .rating-badge b, .calc-result li.is-total b, .proof-list li b, .number b, .post-facts b { font-family: var(--font-display); font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; line-height: 1; }
.link { display: inline-flex; width: fit-content; align-items: center; gap: 6px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 1px; transition: border-color 0.2s, color 0.2s; }
.link svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link:hover { color: var(--accent-text); border-color: var(--accent); }
.link:hover svg { transform: translateX(3px); }
.link-ink { color: var(--ink); }

/* ---------- Раскладка ---------- */
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.container-narrow { max-width: 820px; }
/* Ритм секций: расстояние между соседними секциями всегда = var(--section).
   Между секциями без фона верхний отступ второй обнуляется; секции с фоном (surface-*) держат свой внутренний отступ. */
.section, .section-sm { padding: var(--section) 0; }
.section[class*="surface-"], .section-sm[class*="surface-"] { padding: var(--section-inner) 0; }
:is(.section, .section-sm):not([class*="surface-"]) + :is(.section, .section-sm):not([class*="surface-"]) { padding-top: 0; }
.hero-page + :is(.section, .section-sm):not([class*="surface-"]), .post-hero + :is(.section, .section-sm):not([class*="surface-"]) { padding-top: calc(var(--section) - var(--s-6)); } /* низ героя (--s-6) + этот верх = var(--section) */
.hero-page + .section-xs { padding-top: 0; } /* полоса фактов — часть героя, отступ --s-6 */
/* Роли поверхностей: белый — рассказ, серый (surface-soft) — данные/доказательства, чёрный (surface-ink) — один CTA-блок.
   Две серые секции подряд читаются как один блок: вторая без верхнего отступа. */
.surface-soft + .surface-soft { padding-top: 0; }
.surface-soft + .surface-soft > .container:first-child::before { content: ""; display: block; height: 1px; background: var(--line); margin-bottom: var(--section-inner); } /* тонкая линия-разделитель вместо двойного отступа */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: var(--s-6); }
.section-head > div:first-child { flex: 1 1 420px; max-width: 680px; display: flex; flex-direction: column; gap: 16px; }
.section-head > p { flex: 0 1 380px; max-width: 42ch; }
.section-head > a.link { flex: none; align-self: flex-end; }
.surface-soft { background: var(--bg-soft); }
.surface-soft .review, .surface-soft .card-soft, .surface-soft .table-wrap, .surface-soft .related-row, .surface-soft .mini-product-img, .surface-soft .segmented { background: #fff; }
.surface-soft .review { border: 1px solid var(--line); }
.surface-ink { background: var(--night); color: #fff; }
.surface-ink .h1, .surface-ink .h2, .surface-ink .h3, .surface-ink .h4 { color: #fff; }
.surface-ink .h2 em { color: rgba(255, 255, 255, 0.45); }
.surface-ink .muted { color: rgba(255, 255, 255, 0.62); }
.surface-ink .lead { color: rgba(255, 255, 255, 0.78); }
.surface-ink .link { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.surface-ink .link:hover { color: #fff; border-color: #fff; }
.grid { display: grid; gap: 20px; align-items: stretch; }
/* Дети гридов не раздвигают колонку своим min-content (таблицы, длинные числа) — иначе горизонтальный скролл на мобильном */
.grid > *, .hero-grid > *, .hero-visual > *, .stack > *, .stack-lg > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-start { align-items: start; }
.grid-tight { gap: 12px; }
.row-center { justify-content: center; }
.row-tight { gap: 6px; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.list-decimal { list-style: decimal; padding-left: 18px; }
.h1-compact { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.lead-sm { font-size: 1.05rem; }
.grid-center { align-items: center; } /* колонки разной высоты не растягивать */
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.grid-sidebar > aside { position: sticky; top: calc(var(--header-h) + 24px); }
/* Шкала вертикальных отступов — единственный способ задать margin в шаблонах (инлайновые style="margin…" запрещены) */
.mt-1 { margin-top: var(--s-1) !important; } .mt-2 { margin-top: var(--s-2) !important; } .mt-3 { margin-top: var(--s-3) !important; } .mt-4 { margin-top: var(--s-4) !important; } .mt-5 { margin-top: var(--s-5) !important; } .mt-6 { margin-top: var(--s-6) !important; }
.mb-1 { margin-bottom: var(--s-1) !important; } .mb-2 { margin-bottom: var(--s-2) !important; } .mb-3 { margin-bottom: var(--s-3) !important; } .mb-4 { margin-bottom: var(--s-4) !important; } .mb-5 { margin-bottom: var(--s-5) !important; } .mb-6 { margin-bottom: var(--s-6) !important; }
/* Типовые соседства внутри секции — без классов */
.container > .section-head + .table-wrap, .container > .grid + .grid, .container > .table-wrap + .grid, .container > .grid + .table-wrap, .container > .grid + .row, .container > .grid + .card, .container > .grid + .band-ink, .container > .table-wrap + .row, .container > .table-wrap + .card, .container > .grid + .section-head, .container > .table-wrap + .section-head, .container > .card + .grid, .container > .card + .section-head { margin-top: var(--s-5); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.sticky { position: sticky; top: calc(var(--header-h) + 24px); }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--bg); }
.header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); opacity: 0; transition: opacity 0.2s; }
.header.is-stuck::after { opacity: 1; }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo { display: inline-flex; align-items: center; color: var(--ink); flex: none; }
.logo:hover { color: var(--ink); }
.logo-svg { height: 28px; width: auto; display: block; }
/* Охранное поле логотипа (брендбук, стр. 4) = высота знака ≈ 0.85 высоты логотипа */
.header .logo { margin-right: 14px; }
.footer .logo-svg { height: 64px; }
.footer-brand .logo { margin-bottom: 26px; }
.drawer .logo-svg { height: 30px; }
.nav { display: flex; align-items: center; gap: 0; margin-left: 2px; flex: 1; min-width: 0; }
.nav-item { position: relative; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 3px; padding: 10px 7px; font-size: 0.86rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: color 0.2s; }
.nav-link::after { content: ""; position: absolute; left: 7px; right: 7px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.nav-link svg { width: 12px; height: 12px; color: var(--muted-2); transition: transform 0.25s var(--ease), color 0.2s; }
.nav-link:hover, .nav-item:hover > .nav-link, .nav-link.is-active { color: var(--ink); }
.nav-link:hover::after, .nav-item:hover > .nav-link::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { font-weight: 700; }
.nav-item:hover > .nav-link svg { transform: rotate(180deg); color: var(--accent-text); }
.mega { position: absolute; top: calc(100% + 10px); left: 0; display: grid; grid-template-columns: repeat(2, 240px); gap: 8px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.18s, transform 0.22s var(--ease), visibility 0s linear 0.18s; z-index: 60; }
.mega-wide { grid-template-columns: repeat(3, 236px); }
.nav-item:nth-of-type(n + 3) .mega { left: auto; right: 0; } /* правые пункты — меню вправо не вылезает за экран 1280 */
.nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0.06s, 0.06s, 0s; }
.mega::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.mega-col { display: flex; flex-direction: column; gap: 2px; padding: 8px; }
.mega-col .eyebrow { margin: 6px 10px 8px; }
.mega-link { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; font-size: 0.92rem; font-weight: 500; color: var(--ink); transition: background 0.15s; }
.mega-link small { font-weight: 400; color: var(--muted); font-size: 0.8rem; }
.mega-link:hover { background: var(--accent-soft); color: var(--ink); }
.mega-more { flex-direction: row; align-items: center; gap: 6px; color: var(--accent-text); font-weight: 600; margin-top: 4px; }
.mega-more svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.mega-more:hover { background: transparent; color: var(--ink); }
.mega-more:hover svg { transform: translateX(3px); }
.mega-promo { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px 16px; border-radius: var(--r); background: var(--bg-soft); color: var(--ink); transition: background 0.15s; }
.mega-promo.mint { background: var(--green-soft); }
.mega-promo:hover { background: var(--accent-soft); color: var(--ink); }
.mega-promo.mint:hover { background: var(--green-soft); filter: brightness(0.97); }
.mega-promo .eyebrow { margin: 0 0 6px; background: #fff; white-space: nowrap; }
.mega-promo b { font-size: 0.95rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.012em; color: var(--ink); }
.mega-promo small { display: inline-flex; align-items: center; gap: 4px; font-size: 0.82rem; line-height: 1.4; color: var(--muted); }
.mega-promo small svg { width: 12px; height: 12px; transition: transform 0.25s var(--ease); }
.mega-promo:hover small svg { transform: translateX(3px); }
.mega-col > .mega-promo + .mega-link { margin-top: 8px; }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }
.header-phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.86rem; letter-spacing: -0.01em; white-space: nowrap; padding: 8px 8px; border-radius: 8px; color: var(--ink); }
.header-phone svg { width: 17px; height: 17px; }
.header-phone:hover { background: var(--accent-soft); color: var(--ink); }
.header-phone:hover svg { color: var(--accent-text); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); align-items: center; justify-content: center; }

/* Мобильное меню */
.drawer { position: fixed; inset: 0; z-index: 100; background: #fff; padding: 16px 20px 40px; overflow-y: auto; transform: translateX(100%); transition: transform 0.35s var(--ease); }
.drawer.is-open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.drawer details { border-top: 1px solid var(--line); }
.drawer summary { display: flex; justify-content: space-between; align-items: center; list-style: none; padding: 16px 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; cursor: pointer; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary svg { width: 18px; height: 18px; transition: transform 0.2s; }
.drawer details[open] summary svg { transform: rotate(180deg); }
.drawer-links { display: flex; flex-direction: column; padding: 0 0 12px; }
.drawer-links a { display: block; padding: 10px 0; color: var(--ink-2); }
.drawer-top { display: block; padding: 16px 0; border-top: 1px solid var(--line); font-size: 1.15rem; font-weight: 600; }
.drawer-top:last-of-type { border-bottom: 1px solid var(--line); }
body.drawer-open { overflow: hidden; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; letter-spacing: -0.005em; white-space: nowrap; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease); border: 1px solid transparent; }
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-hover); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-white:hover { color: var(--ink); border-color: var(--line-2); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-lg { height: 58px; padding: 0 30px; font-size: 1.02rem; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn:disabled { opacity: 0.55; cursor: default; transform: none; }

/* ---------- Пилюли / метки ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); font-size: 0.82rem; font-weight: 600; white-space: nowrap; }
.pill svg { width: 14px; height: 14px; }
.pill-accent { background: var(--accent); color: var(--ink); }
.pill-white { background: #fff; border: 1px solid var(--line); }
.pill-mint { background: var(--green-soft); color: var(--green); }
.pill-rose { background: var(--rose-soft); color: var(--rose); }
.pill-outline { background: transparent; border: 1px solid var(--line-2); }
.pill-lg { height: 44px; padding: 0 18px; font-size: 0.94rem; }
.pill-lg svg { width: 16px; height: 16px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
a.pill { transition: background 0.2s, color 0.2s, border-color 0.2s; }
a.pill:hover { color: var(--ink); border-color: var(--ink); }
.pill.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.surface-ink .pill { background: rgba(255, 255, 255, 0.1); color: #fff; }
.label { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--green); }
.status-free { color: var(--green); }
.status-partial { color: var(--amber); }
.status-busy { color: var(--rose); }
.badge-verified { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-size: 0.8rem; font-weight: 500; }
.stock { font-size: 0.82rem; color: var(--green); display: inline-flex; align-items: center; gap: 6px; }
.stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stock.is-order { color: var(--amber); }

/* ---------- Карточки ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--pad); display: flex; flex-direction: column; gap: var(--gap); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.2s; }
.card-sm, .grid-4 > .card, .grid-5 > .card { padding: var(--pad-sm); gap: var(--gap-sm); }
/* Ритм внутри карточки задаёт gap; прямые потомки не получают собственных отступов */
.card > .icon-box { margin-bottom: 6px; }
.card > .eyebrow { margin-bottom: 2px; }
.card > .btn { margin-top: 8px; align-self: stretch; }
.card > .link:last-child { margin-top: auto; padding-top: 6px; }
.card-soft { background: var(--bg-soft); border-color: transparent; }
.card-mint { background: var(--green-soft); border-color: transparent; }
.card-accent { background: var(--accent-soft); border-color: transparent; }
.card-yellow { background: var(--yellow-soft); border-color: transparent; }
.card-yellow .eyebrow { background: #fff; color: var(--yellow-text); }
.card-rose { background: var(--rose-soft); border-color: transparent; }
.card-lg { padding: clamp(24px, 3vw, 40px); }
.card > b, .card-link > b { display: block; }
.card .table-wrap { border: 0; }
.card-ink { background: var(--night); color: #fff; border-color: transparent; }
.card-ink .h3, .card-ink .h4, .card-ink .h2 { color: #fff; }
.card-ink .muted, .card.card-ink > p.muted { color: rgba(255, 255, 255, 0.72); } /* второй селектор перебивает .card > p.muted */
.card-ink .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
.card-ink .btn-primary:hover { background: var(--bg-soft); color: var(--ink); }
.card-ink .btn-outline { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.card-ink .btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.08); }
.card-ink .checklist li::before { background: #fff; }
.card-ink .link { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.card-ink .link:hover { color: #fff; border-color: #fff; }
.card-ink a:not(.btn):not(.pill) { color: #fff; }
.card-ink .prose { color: rgba(255, 255, 255, 0.8); }
.card-ink .stock { color: var(--green); }
.card-ink .product-price s { color: rgba(255, 255, 255, 0.5); }
.card-hover:hover, .card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.card-link { color: inherit; }
.card-tag { position: absolute; top: -13px; left: 20px; }
.icon-box { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.icon-box svg { width: 20px; height: 20px; }
.icon-box-sm { width: 36px; height: 36px; }
.icon-box-lg { width: 72px; height: 72px; }
.icon-box-sm svg { width: 17px; height: 17px; }
/* Тона иконок: синий (по умолчанию), жёлтый, зелёный, чёрный — только фирменные цвета */
.icon-box.is-blue, .icon-box.is-sky { background: var(--accent); color: #fff; }
.icon-box.is-yellow, .icon-box-amber { background: var(--yellow); color: #fff; }
.icon-box.is-mint, .icon-box-mint { background: var(--green); color: #fff; }
.icon-box.is-lavender { background: var(--ink); color: #fff; }
.surface-ink .icon-box { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* ---------- Хиро главной ---------- */
.hero { padding: clamp(24px, 3.5vw, 56px) 0 clamp(24px, 3vw, 40px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; } /* визуал той же ширины, что на внутренних (.hero-page) */
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-copy .h-display { max-width: 15ch; }
.hero-copy .lead { max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 0.9rem; }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note svg { width: 16px; height: 16px; color: var(--accent); }

/* Поиск-пилюля */
.finder-form { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 22px; background: #fff; border: 1px solid var(--line-2); border-radius: 999px; max-width: 620px; transition: border-color 0.2s, box-shadow 0.2s; }
.finder-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.finder-form > svg { width: 22px; height: 22px; color: var(--muted-2); flex: none; }
.finder-form input { flex: 1; min-width: 0; border: 0; background: transparent; height: 50px; font-size: 1rem; }
.finder-form input:focus { outline: 0; }
.finder-form input::placeholder { color: var(--muted-2); }
.finder-cities { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 0.88rem; margin-top: -8px; }
.finder-cities > span { color: var(--muted); margin-right: 4px; }
.finder-cities a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; font-weight: 600; color: var(--ink); background: var(--bg-soft); transition: background 0.2s, color 0.2s; }
.finder-cities a:hover { background: var(--accent-soft); color: var(--ink); }
.finder-cities a.is-more { background: transparent; color: var(--accent-text); padding: 0 6px; }
.finder-cities a.is-more svg { width: 14px; height: 14px; }

/* 3D-плитка */
.tile { position: relative; display: flex; flex-direction: column; border-radius: var(--r-xl); overflow: hidden; color: var(--ink); isolation: isolate; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform 0.7s var(--ease); }
a.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); }
a.tile:hover img { transform: scale(1.04); }
.tile-link { min-height: 260px; justify-content: flex-end; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.tile-link:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(52, 50, 50, 0.35); }
.tile-link .icon-box { margin-bottom: auto; }
.tile-link .tile-body { height: 100%; }
.proof-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.proof-grid:has(.review:only-of-type) { grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); }
.proof-grid:not(:has(.review)) { grid-template-columns: 1fr; }
.proof-numbers { gap: 0; }
.proof-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-top: 22px; }
.proof-list li b { display: block; font-size: clamp(1.5rem, 2vw, 1.9rem); }
.proof-list li span { display: block; margin-top: 6px; font-size: 0.82rem; line-height: 1.4; color: rgba(255, 255, 255, 0.65); }
.proof-grid:not(:has(.review)) .proof-list { grid-template-columns: repeat(4, 1fr); }
.proof .review { margin: 0; }
.related-row { display: flex; align-items: flex-start; gap: 20px; padding: var(--pad-sm) var(--pad); background: var(--bg-soft); border-radius: var(--r-lg); }
.related-row .eyebrow { flex: none; margin-top: 2px; background: #fff; }
.related-links { display: flex; flex-wrap: wrap; gap: 8px; }
.related-links a { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 0.9rem; font-weight: 500; transition: border-color 0.2s var(--ease), background 0.2s var(--ease); }
.related-links a:hover { border-color: var(--ink); color: var(--ink); }
.band-ink { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-xl); background: var(--ink); color: #fff; }
.band-ink .h2 { color: #fff; margin-top: 10px; }
.band-ink .lead { color: rgba(255, 255, 255, 0.72); margin-top: 8px; max-width: 48ch; }
.band-ink .eyebrow { background: rgba(255, 255, 255, 0.14); color: #fff; }
.band-ink .btn { flex: none; }
.band-ink .row { flex: none; }
.band-ink .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.38); }
.band-ink .btn-outline:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.band-ink .lead a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.tile-body { position: relative; padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.tile-body .h3 { font-size: clamp(1.35rem, 1.8vw, 1.7rem); letter-spacing: -0.025em; }
.tile-body p { color: var(--ink-2); font-size: 0.95rem; max-width: 30ch; opacity: 0.85; }
/* Плитки — тинты фирменных цветов (токены --tint-*) */
.tile-blue, .tile-sky { background: var(--tint-blue); }
.tile-yellow { background: var(--tint-yellow); }
.tile-mint { background: var(--tint-green); }
.tile-lavender { background: var(--tint-gray); }
.tile-soft { background: #f2f4f9; } /* фон рендеров product-*.png */
.tile-white { background: #fff; border: 1px solid var(--line); } /* фото и рендеры товаров — белый фон */
.tile-ink { background: var(--ink); color: #fff; }
.tile-cta { justify-content: space-between; gap: 14px; padding: var(--pad); }
.tile-cta .btn { align-self: flex-start; }

/* Хиро-визуал */
.hero-visual { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr); grid-template-rows: 1fr 1fr; gap: 16px; align-self: stretch; min-height: 460px; }
.hero-tile { grid-row: 1 / 3; border-radius: var(--r-xl); }
.hero-tile img { inset: -10px 0; width: 100%; height: calc(100% + 20px); object-fit: cover; object-position: 50% 45%; } /* портретный вариант -hero: объект целиком, фон = тон плитки */
.hero-tile .chip { left: 16px; right: auto; bottom: 16px; top: auto; }
.hero-mini { padding: 22px 22px 20px; justify-content: flex-end; gap: 6px; }
.hero-mini-label { font-size: 0.82rem; font-weight: 600; opacity: 0.7; margin-bottom: auto; }
.hero-mini b { font-size: clamp(1.8rem, 2.4vw, 2.5rem); letter-spacing: -0.04em; }
.hero-mini b small { font-size: 0.5em; font-weight: 600; letter-spacing: 0; }
.hero-mini > span:last-child { font-size: 0.88rem; line-height: 1.4; color: var(--ink-2); opacity: 0.85; max-width: 20ch; }
.chip { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; background: #fff; border-radius: 999px; box-shadow: var(--shadow); font-size: 0.86rem; line-height: 1.2; z-index: 2; }
.chip .ico { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.chip .ico svg { width: 18px; height: 18px; }
.chip .ico.is-yellow { background: var(--yellow); color: #fff; }
.chip .ico.is-mint { background: var(--mint); color: #fff; }
.chip b { display: block; font-weight: 700; font-size: 0.95rem; }
.chip span { color: var(--muted); font-size: 0.78rem; }
.chip-c { left: 6%; bottom: 10%; }

/* «Вода» из логотипа отделяет шапку от тела (главная и внутренние). Хиро мягко наливается фирменным голубым, снизу — уровень воды:
   задняя волна (тон) и передняя (белая, цвет тела) плывут с разной скоростью, из воды поднимаются пузырьки — как точки в знаке. */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-bottom: calc(clamp(24px, 3vw, 40px) + 88px); background: linear-gradient(180deg, #fff 0%, #f1f9fd 45%, var(--sky) 100%); }
.hero.hero-page { padding-bottom: calc(var(--s-6) + 88px); } /* перебивает padding-shorthand .hero-page ниже */
.hero-water { position: absolute; left: 0; right: 0; bottom: -1px; height: 88px; pointer-events: none; z-index: -1; }
.hero-water .wave { position: absolute; bottom: 0; left: 0; width: 200%; max-width: none; height: 100%; display: block; will-change: transform; }
.hero-water .wave-back { height: 76px; fill: rgba(65, 191, 239, 0.22); animation: wave-drift 34s linear infinite; }
.hero-water .wave-front { fill: var(--bg); animation: wave-drift 22s linear infinite reverse; }
.hero-water .bubble { position: absolute; bottom: 34px; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 2px, rgba(65, 191, 239, 0.75) 3px); opacity: 0; animation: bubble-rise 9s ease-in-out infinite; }
.hero-water .bubble:nth-child(1) { left: 9%; }
.hero-water .bubble:nth-child(2) { left: 27%; width: 6px; height: 6px; animation-delay: -3s; animation-duration: 8s; }
.hero-water .bubble:nth-child(3) { left: 51%; width: 14px; height: 14px; animation-delay: -6s; animation-duration: 11s; }
.hero-water .bubble:nth-child(4) { left: 71%; width: 7px; height: 7px; animation-delay: -1.5s; animation-duration: 7.5s; }
.hero-water .bubble:nth-child(5) { left: 90%; animation-delay: -4.5s; animation-duration: 10s; }
@keyframes wave-drift { to { transform: translateX(-50%); } }
@keyframes bubble-rise { 0% { transform: translate(0, 0) scale(0.6); opacity: 0; } 15% { opacity: 0.9; } 85% { opacity: 0.5; } 100% { transform: translate(6px, -120px) scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-water .wave, .hero-water .bubble { animation: none; } .hero-water .bubble { opacity: 0.7; } }


/* Три направления — бенто */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ways .tile img { position: relative; inset: auto; z-index: 0; width: 100%; height: auto; aspect-ratio: 1 / 1; margin-top: auto; object-fit: contain; object-position: 50% 100%; transform-origin: 50% 100%; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 26%); mask-image: linear-gradient(to bottom, transparent 0, #000 26%); }
.ways a.tile:hover img { transform: scale(1.04); }
.ways .tile-body { padding-bottom: 0; z-index: 1; }
.ways .tile-body p { max-width: 32ch; }

/* Цифры — синий блок */
.numbers-band { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 2.3fr); gap: clamp(28px, 4vw, 64px); align-items: center; background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: clamp(32px, 4vw, 56px) clamp(24px, 3.5vw, 56px); }
.numbers-intro { display: flex; flex-direction: column; gap: 18px; }
.numbers-logo { color: #fff; display: block; width: fit-content; margin-bottom: 26px; }
.numbers-logo .logo-svg { height: 60px; }
.numbers-intro .h3 { color: #fff; font-size: clamp(1.25rem, 1.6vw, 1.55rem); max-width: 18ch; }
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.number { min-width: 0; padding: 0 16px; border-left: 1px solid rgba(255, 255, 255, 0.22); }
.number:first-child { padding-left: 0; border-left: 0; }
.number b { display: block; font-size: clamp(1.7rem, 2.2vw, 2.5rem); white-space: nowrap; color: var(--accent); }
.number b i { font-style: normal; font-size: 0.42em; opacity: 0.7; margin-left: 2px; vertical-align: 0.7em; letter-spacing: 0; }
.number span { display: block; margin-top: 12px; font-size: 0.86rem; line-height: 1.45; max-width: 22ch; opacity: 0.8; }

/* Цены — карточки */
/* Карточка услуги — единая для главной, /uslugi/, /ceny/, города и адреса */
.service-card { display: flex; flex-direction: column; gap: var(--gap-sm); padding: var(--pad-sm); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.service-card .card-render { position: relative; aspect-ratio: 4 / 3; margin-bottom: 4px; }
.service-card .card-render img { transform: scale(1.04); }
.service-card:hover .card-render img { transform: scale(1.1); }
.service-card .card-render .pill { position: absolute; top: 10px; right: 10px; background: #fff; height: 28px; font-size: 0.78rem; }
.service-card .card-render .pill svg { width: 13px; height: 13px; }
.service-card p { color: var(--muted); font-size: 0.94rem; flex: 1; }
.service-price { display: flex; align-items: baseline; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.service-price b { font-size: 1.35rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.service-price small { color: var(--muted); font-size: 0.82rem; }

/* Пять путей — цветные карточки */
.entries { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.entry { display: flex; flex-direction: column; align-items: flex-start; gap: var(--gap-sm); padding: var(--pad-sm); border-radius: var(--r-lg); background: #fff; color: var(--ink); min-height: 300px; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.entry:hover { transform: translateY(-5px); box-shadow: var(--shadow); color: var(--ink); }
.entry-num { font-size: 0.8rem; font-weight: 600; opacity: 0.6; }
.entry-price { font-size: clamp(1.7rem, 2.2vw, 2.2rem); letter-spacing: -0.04em; }
.entry-price small { font-size: 0.5em; font-weight: 600; letter-spacing: 0; margin-left: 4px; opacity: 0.7; }
.entry b:not(.entry-price) { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.entry p { font-size: 0.88rem; opacity: 0.8; line-height: 1.45; }
.entry .link { margin-top: auto; align-self: flex-start; border-color: currentColor; }
.entry-blue { background: var(--ink); color: #fff; }
.entry-blue .link { color: #fff; }
.entry-blue:hover { color: #fff; }
.entry-yellow { background: var(--yellow-soft); }
.entry-mint { background: var(--green-soft); }
.entry-sky { background: var(--sky); }
.entry-blue .entry-num { opacity: 0.7; }

/* Форматы */
.format-card { position: relative; display: flex; flex-direction: column; gap: var(--gap); padding: var(--pad); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.format-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.format-card.is-popular { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 0 5px var(--accent-soft); }
.format-config { display: flex; flex-wrap: wrap; gap: 5px; }
.format-config i { flex: none; width: 24px; height: 24px; aspect-ratio: 1; border-radius: 7px; background: var(--accent); position: relative; }
.format-config i::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.format-config i.dry { background: var(--yellow); }
.format-config i.dry::after { background: var(--ink); opacity: 0.85; }
.format-card .h3 { font-size: 1.75rem; letter-spacing: -0.03em; }
.format-card.is-popular:hover { box-shadow: 0 0 0 1px var(--accent), 0 0 0 5px var(--accent-soft), var(--shadow); }
.format-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.format-kv div { display: flex; flex-direction: column; gap: 2px; }
.format-kv span { font-size: 0.76rem; color: var(--muted); }
.format-kv b { font-size: 0.94rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.format-card .link { margin-top: auto; align-self: flex-start; }

/* Кейсы */
.case-card { display: flex; flex-direction: column; gap: var(--gap); padding: var(--pad); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.case-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); margin-top: auto; }
.case-nums div { display: flex; flex-direction: column; gap: 2px; }
.case-nums span { font-size: 0.74rem; color: var(--muted); }
.case-nums b { font-size: 1rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.case-card .h4 { min-height: 2.7em; }
.spark { width: 100%; height: 84px; display: block; overflow: visible; }

/* Партнёрство — сплит */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.split .tile { min-height: 520px; }
.split .tile img { object-position: 50% 50%; }
.split-copy { display: flex; flex-direction: column; gap: 18px; justify-content: center; padding: clamp(8px, 2vw, 32px) 0; }
.split-copy .h2 { max-width: 16ch; }

/* Сегменты — строки на главной */
.segment-rows { display: flex; flex-direction: column; border-top: 1px solid var(--line-2); }
.segment-rows a { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); transition: color 0.2s; }
.segment-rows a:hover { color: var(--accent-text); }
.segment-rows-name { font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; }
.segment-rows-income { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.segment-rows-income b { font-weight: 700; font-size: 1.02rem; letter-spacing: -0.02em; }
.segment-rows-income small { color: var(--muted); font-size: 0.78rem; }
.segment-rows svg { width: 18px; height: 18px; color: var(--muted-2); transition: transform 0.25s var(--ease), color 0.2s; }
.segment-rows a:hover svg { transform: translateX(3px); color: var(--accent-text); }

/* Сегменты (партнёрство) */
.segment-card { display: flex; flex-direction: column; gap: var(--gap); padding: var(--pad); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); color: var(--ink); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.segment-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.segment-card p, .card > p.muted { color: var(--muted); font-size: 0.94rem; }
.segment-card p { flex: 1; }
/* Миниатюра индивидуального 3D-рендера в карточках сегментов / услуг */
.card-render { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; flex: none; background: var(--bg-soft); } /* квадрат под квадратный рендер — картинка целиком, без обрезки */
.card-render img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.segment-card:hover .card-render img, .cat-tile:hover .card-render img { transform: scale(1.04); }
.cat-tile-render { gap: 8px; }
.segment-income { display: flex; flex-direction: column; gap: 2px; font-weight: 600; letter-spacing: -0.02em; font-size: 1.1rem; padding-top: 14px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.segment-income small { font-weight: 400; font-size: 0.76rem; color: var(--muted); letter-spacing: 0; }
.surface-ink .segment-card { background: var(--night-2); border-color: rgba(255, 255, 255, 0.1); color: #fff; }
.surface-ink .segment-card:hover { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.surface-ink .segment-card .h4 { color: #fff; }
.surface-ink .segment-card p { color: rgba(255, 255, 255, 0.6); }
.surface-ink .segment-income { border-color: rgba(255, 255, 255, 0.12); }
.surface-ink .segment-income small { color: rgba(255, 255, 255, 0.5); }
.surface-ink .icon-box-mint { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* Товары */
.product { display: flex; flex-direction: column; gap: 6px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform 0.6s var(--ease); }
.product:hover .product-media img { transform: scale(1.04); }
.product-media { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r); background: #fff; display: grid; place-items: center; margin-bottom: 10px; overflow: hidden; }
.product-media.is-empty { background: var(--bg-soft); }
.product-media .pill { position: absolute; top: 12px; left: 12px; }
.product-media > .icon { width: 44px; height: 44px; color: var(--muted-2); }
.product-brand { font-size: 0.76rem; color: var(--muted); font-weight: 500; letter-spacing: 0.01em; }
.product-name { font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; min-height: 2.6em; }
.product-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.product-price { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.product-price b { font-size: 1.25rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.product-price s { color: var(--muted-2); font-size: 0.9rem; }

/* Вехи — горизонтальная линия */
.milestones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.milestones li.tile { min-height: 230px; padding: var(--pad-sm); gap: var(--gap-sm); justify-content: flex-end; }
.milestone-year { font-size: clamp(2.2rem, 3vw, 3rem); letter-spacing: -0.045em; margin-bottom: auto; }
.milestone-title { font-weight: 600; font-size: 1.05rem; line-height: 1.3; letter-spacing: -0.012em; }
.milestone-metric { font-size: 0.88rem; color: var(--ink-2); opacity: 0.8; }
.tile-ink .milestone-year { color: var(--accent); }
.tile-ink .milestone-metric { color: #fff; opacity: 0.7; }

.reviews-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: var(--s-6) 0 var(--s-4); }
.rating-badge { display: inline-flex; align-items: center; gap: 12px; font-size: 0.94rem; color: var(--ink-2); }
.rating-badge b { font-size: 1.6rem; letter-spacing: -0.04em; color: var(--ink); }
.rating-badge .stars svg { width: 16px; height: 16px; }

/* Отзывы */
.review { position: relative; display: flex; flex-direction: column; gap: var(--gap); padding: var(--pad); background: var(--bg-soft); border-radius: var(--r-lg); }
.review::before { content: "\201C"; position: absolute; top: 14px; right: 24px; font-size: 5rem; line-height: 1; font-weight: 700; color: var(--accent); opacity: 0.25; letter-spacing: -0.05em; }
.review p { font-size: 1.05rem; line-height: 1.55; color: var(--ink); flex: 1; letter-spacing: -0.01em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 9; overflow: hidden; } /* длинные отзывы с карт — до 9 строк, полный текст по ссылке на источник */
.stars em a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.stars { display: flex; align-items: center; gap: 2px; color: var(--yellow); }
.stars svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.stars em { margin-left: 8px; font-style: normal; font-size: 0.78rem; color: var(--muted); }
.rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 0.9rem; }
.rating svg { width: 14px; height: 14px; fill: var(--ink); stroke: none; }
.rating small { color: var(--muted); font-weight: 400; }
.review-author { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.review-author div { display: flex; flex-direction: column; }
.review-author b { font-size: 0.94rem; }
.review-author small { color: var(--muted); font-size: 0.8rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--accent-text); display: grid; place-items: center; font-weight: 600; font-size: 0.9rem; flex: none; }
.avatar svg { width: 18px; height: 18px; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.2rem; }
.quote { font-size: 1.25rem; line-height: 1.45; letter-spacing: -0.015em; color: var(--ink); }
.surface-ink .review { background: var(--night-2); border-color: rgba(255, 255, 255, 0.1); }
.surface-ink .review p { color: rgba(255, 255, 255, 0.82); }

/* Блог — карточки */
.post-card { display: flex; flex-direction: column; gap: var(--gap); padding: var(--pad); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.post-card p { color: var(--muted); font-size: 0.94rem; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.8rem; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); }

/* Города и услуги */
.city-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--ink); }
.city-link { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--ink); }
.city-link span { color: var(--muted-2); font-weight: 400; font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.city-link:hover { color: var(--accent-text); }
.cat-tile { display: flex; flex-direction: column; gap: var(--gap-sm); padding: var(--pad-sm); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.cat-tile .icon-box { margin-bottom: 6px; }
.cat-tile p { color: var(--muted); font-size: 0.94rem; }
.laundry-card { display: flex; flex-direction: column; gap: var(--gap-sm); padding: var(--pad-sm); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.laundry-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.laundry-card.has-photo { padding: 0; overflow: hidden; }
.laundry-card.has-photo > :not(.laundry-photo) { margin-left: var(--pad-sm); margin-right: var(--pad-sm); }
.laundry-card.has-photo > :last-child { margin-bottom: var(--pad-sm); }
.laundry-photo { display: block; aspect-ratio: 3 / 2; background: var(--bg-soft); overflow: hidden; margin-bottom: 4px; }
.laundry-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.laundry-card:hover .laundry-photo img { transform: scale(1.04); }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-sm); }
.photo-grid a { display: block; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--bg-soft); }
.photo-grid a:first-child { grid-column: span 2; grid-row: span 2; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.photo-grid a:hover img { transform: scale(1.04); }
@media (max-width: 640px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } .photo-grid a:first-child { grid-column: span 2; grid-row: auto; } }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.85rem; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta svg { width: 14px; height: 14px; }

/* Карта (схема) */
.ymap, .map { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); background: var(--bg-soft); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; overflow: hidden; border: 1px solid var(--line); }
.map-tall { aspect-ratio: 4 / 3; }
.ymap-canvas { position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s; }
.ymap.is-ready .ymap-canvas { opacity: 1; }
.ymap.is-ready .ymap-static { display: none; }
.ymap-static { position: absolute; inset: 0; }
.map-pin { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 3px solid #fff; transform: translate(-50%, -50%); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); transition: transform 0.2s; }
.map-overlay { position: absolute; right: 14px; top: 14px; z-index: 3; display: flex; gap: 8px; align-items: center; }
.map-overlay .pill { box-shadow: var(--shadow); }
.ymap-hero .ymap-count { display: none; }
.ymap [class*="ymaps-2"][class*="-ground-pane"] { filter: saturate(0.85) contrast(0.98); }
.ymap [class*="ymaps-2"][class*="-copyrights-pane"] { opacity: 0.6; }
.ymap-balloon { display: flex; flex-direction: column; gap: 6px; padding: 6px 4px 2px; min-width: 200px; font-family: var(--font); }
.ymap-balloon b { font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.ymap-balloon span { font-size: 0.82rem; color: var(--muted); }
.ymap-balloon .btn { margin-top: 6px; align-self: flex-start; }
.hero-tile.hero-map .ymap { position: absolute; inset: 0; aspect-ratio: auto; border: 0; border-radius: 0; }

/* ---------- Шаги процесса — один компонент: нумерованная полоса с линией сверху (.steps/.step и .process/.process-step — синонимы) ---------- */
.steps, .process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps-4, .process { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step, .process-step { position: relative; display: flex; flex-direction: column; gap: 8px; padding-top: 22px; border-top: 2px solid var(--ink); counter-increment: step; }
.step::before, .process-step::before { content: counter(step, decimal-leading-zero); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.step:first-child, .process-step:first-child { border-color: var(--accent); }
.step h3, .step .h4, .process-step .h4 { margin: 0; font-size: 1.06rem; line-height: 1.35; letter-spacing: -0.01em; }
.step p, .process-step p { color: var(--muted); font-size: 0.94rem; margin: 0; }
.step > p:only-child { color: var(--ink); font-weight: 500; }
.surface-ink .step, .surface-ink .process-step, .card-ink .step { border-color: rgba(255, 255, 255, 0.35); }
.surface-ink .step p, .surface-ink .process-step p, .card-ink .step p { color: rgba(255, 255, 255, 0.66); }
.steps-vertical { display: flex; flex-direction: column; counter-reset: step; }
.steps-vertical .step { flex-direction: row; gap: 20px; border-top: 1px solid var(--line); padding: 20px 0; }
.steps-vertical .step:first-child { border-color: var(--line); }
.steps-vertical .step::before { font-size: 1.2rem; color: var(--accent-text); min-width: 40px; }
.steps-vertical .step h3 { flex: 0 0 280px; font-size: 1.15rem; }
.steps-vertical .step h3 .small { display: block; margin-top: 4px; font-weight: 500; }
.steps-vertical .step p { flex: 1; margin: 0; }
.hero-facts .steps-vertical .step { flex-wrap: wrap; gap: 6px 14px; padding: 14px 0; border-color: rgba(255, 255, 255, 0.14); }
.hero-facts .steps-vertical .step::before { color: var(--accent); min-width: 28px; font-size: 1rem; }
.hero-facts .steps-vertical .step b { flex: 1; font-size: 1rem; }
.hero-facts .steps-vertical .step p { flex: 1 1 100%; padding-left: 42px; color: rgba(255, 255, 255, 0.65); }
.hero-facts .steps-vertical .step:first-child { border-top: 0; padding-top: 0; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.feature { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--ink); }
.feature p { color: var(--muted); font-size: 0.94rem; }
.checklist { display: flex; flex-direction: column; gap: 10px; }
.checklist.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
/* Маркер чек-листа: кружок с вырезанной галочкой; .cross — крестик (чего не делаем), .accent — фирменный синий кружок */
.checklist li::before { content: ""; width: 18px; height: 18px; flex: none; margin-top: 3px; border-radius: 50%; background: var(--ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat, linear-gradient(#000, #000); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat, linear-gradient(#000, #000); mask-composite: exclude; -webkit-mask-composite: xor; }
.checklist.cross { color: var(--ink); }
.checklist.cross li::before { background: var(--muted); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 11px no-repeat, linear-gradient(#000, #000); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 11px no-repeat, linear-gradient(#000, #000); mask-composite: exclude; -webkit-mask-composite: xor; }
.checklist.cross li { color: var(--ink-2); }
.checklist.accent { color: var(--ink); }
.checklist.accent li::before { background: var(--accent); }
.spec-list { display: flex; flex-direction: column; }
.spec-list div, .spec-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.spec-list span:first-child { flex: 0 1 auto; min-width: 0; color: var(--muted); }
.spec-list span:last-child { font-weight: 600; text-align: right; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.card-ink .spec-list li, .card-ink .spec-list div { border-color: rgba(255, 255, 255, 0.14); }
.card-ink .spec-list span:first-child { color: rgba(255, 255, 255, 0.65); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.stat { padding-top: 16px; border-top: 1px solid var(--ink); }
.stat-value { font-size: clamp(1.8rem, 2.6vw, 2.4rem); }
.stat-value small { font-size: 0.5em; font-weight: 600; letter-spacing: 0; margin-left: 2px; color: var(--muted); }
.stat-label { display: block; margin-top: 8px; color: var(--muted); font-size: 0.88rem; }
.stat-accent .stat-value { color: var(--accent-text); }
.progress { height: 6px; border-radius: 3px; background: var(--bg-soft-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--ink); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.hbars { display: flex; flex-direction: column; gap: 12px; }
.hbars li { display: grid; grid-template-columns: minmax(150px, 0.6fr) 1fr 48px; gap: 12px; align-items: center; }
.hbars li b { text-align: right; font-variant-numeric: tabular-nums; }
.hbars .progress { height: 10px; border-radius: 5px; }
.hbars .progress i { background: var(--accent); }
.chart { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; height: 200px; align-items: end; }
.chart-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; min-width: 0; }
.chart-col b { font-size: 0.68rem; font-weight: 600; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chart-col i { display: block; width: 100%; max-width: 44px; min-height: 4px; background: var(--accent); border-radius: 6px 6px 3px 3px; }
.chart-col:last-child i { background: var(--ink); }
.chart-col span { font-size: 0.72rem; color: var(--muted); }
.bars i { flex: 1; background: var(--ink); border-radius: 3px 3px 0 0; }
.kv { display: flex; flex-direction: column; gap: 2px; }
.kv span { font-size: 0.78rem; color: var(--muted); }
.kv b { font-size: 1.3rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
/* Логотипы брендов — текстовые чипы одной высоты; .logo-row — ряд чипов с переносом */
.logo-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: border-color 0.2s, color 0.2s; }
a.logo-chip:hover { border-color: var(--ink); color: var(--ink); }
.logo-row { display: flex; flex-wrap: wrap; gap: 8px; }
.is-us { background: var(--bg-soft); }
.calc-row { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.calc-row output { font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-result { display: flex; flex-direction: column; }
.calc-result li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.calc-result li .muted { color: rgba(255, 255, 255, 0.65); }
.calc-result b { font-size: 1.1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-result b.small { white-space: normal; text-align: right; font-size: 0.9rem; line-height: 1.35; }
.calc-result li.is-total { border-bottom: 0; padding-top: 16px; }
.calc-result li.is-total b { font-size: 1.8rem; letter-spacing: -0.03em; color: var(--accent); }
.range { width: 100%; accent-color: var(--ink); }

/* Таблицы */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 0.78rem; font-weight: 500; color: var(--muted); background: var(--bg-soft); }
.table tr:last-child td { border-bottom: 0; }
.table-compact th, .table-compact td { padding: 10px 14px; }
.table .is-us { background: var(--accent-soft); }

/* ---------- Формы ---------- */
.form { display: flex; flex-direction: column; gap: 12px; }
.form-fields { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 0.8rem; font-weight: 600; color: var(--ink-2); letter-spacing: -0.005em; }
.field > span em { font-style: normal; font-weight: 500; color: var(--muted); }
.input, .textarea, .form select { width: 100%; height: 52px; padding: 0 16px; border-radius: 12px; border: 1.5px solid transparent; background: var(--bg-soft); color: var(--ink); font-size: 0.97rem; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; }
.textarea { height: auto; min-height: 104px; padding: 14px 16px; resize: vertical; line-height: 1.45; }
.input:hover, .textarea:hover { background: var(--bg-soft-2); }
.input:focus, .textarea:focus, .form select:focus { outline: 0; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.form .btn-block svg { width: 16px; height: 16px; margin-left: 4px; }
.form-note { display: flex; gap: 8px; align-items: flex-start; font-size: 0.78rem; line-height: 1.45; color: var(--muted); }
.form-note svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.form-card { padding: clamp(22px, 2.4vw, 32px); background: #fff; border-radius: var(--r-lg); color: var(--ink); box-shadow: var(--shadow-lg); }
.form-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.form-head b { font-size: 1.25rem; letter-spacing: -0.02em; }
.form-head span { font-size: 0.88rem; color: var(--muted); }
.segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.segmented label { position: relative; }
.segmented input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.segmented span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 74px; padding: 12px 8px; border-radius: 12px; background: var(--bg-soft); color: var(--ink-2); font-size: 0.8rem; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.segmented span svg { width: 20px; height: 20px; color: var(--muted); transition: color 0.2s; }
.segmented input:hover + span { background: var(--bg-soft-2); color: var(--ink); }
.segmented input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 0 0 2px var(--accent) inset; }
.segmented input:checked + span svg { color: var(--accent-text); }
.segmented input:focus-visible + span { box-shadow: 0 0 0 2px var(--accent) inset, 0 0 0 4px var(--accent-soft); }
.input-wrap { position: relative; }
.input-wrap > svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-wrap .input { padding-left: 42px; }
.form-more summary { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; list-style: none; cursor: pointer; font-size: 0.88rem; font-weight: 600; color: var(--accent-text); width: fit-content; }
.form-more summary::-webkit-details-marker { display: none; }
.form-more summary svg { width: 14px; height: 14px; transition: transform 0.2s; }
.form-more[open] summary svg { transform: rotate(45deg); }
.form-more summary:hover { color: var(--ink); }
.form-success { display: none; flex-direction: column; align-items: flex-start; gap: var(--gap-sm); padding: var(--pad); border-radius: var(--r); background: var(--green-soft); color: var(--ink); font-weight: 500; }
.form-success b { font-size: 1.15rem; letter-spacing: -0.02em; }
.form-success > span:last-child { font-weight: 400; color: var(--ink-2); font-size: 0.94rem; }
.form-success-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; }
.form-success-icon svg { width: 18px; height: 18px; }
.form.is-sent .form-success { display: flex; }
.card-ink .field > span { color: rgba(255, 255, 255, 0.82); }
.card-ink .form-note { color: rgba(255, 255, 255, 0.7); }
.card-ink .input:focus, .card-ink .textarea:focus { box-shadow: none; }
.form.is-sent .form-fields { display: none; }
[hidden] { display: none !important; }
.surface-ink .form .input, .surface-ink .form .textarea, .surface-ink .form select, .card-ink .form .input, .card-ink .form .textarea, .card-ink .form select { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.18); color: #fff; }
.surface-ink .form .input:focus, .surface-ink .form .textarea:focus, .surface-ink .form select:focus { border-color: #fff; }
.surface-ink .form .input::placeholder, .surface-ink .form .textarea::placeholder, .card-ink .form .input::placeholder, .card-ink .form .textarea::placeholder { color: rgba(255, 255, 255, 0.55); }
/* тёмная карточка: согласие и ссылки в нём читаемы (перебиваем .field.consent > span с цветом --ink-2) */
.card-ink .field.consent > span:not(.field-error), .surface-ink .form .field.consent > span:not(.field-error) { color: rgba(255, 255, 255, 0.78); }
.card-ink .field.consent > span:not(.field-error) a, .surface-ink .form .field.consent > span:not(.field-error) a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.45); }
.card-ink .field.consent input, .surface-ink .form .field.consent input { accent-color: #fff; }
.surface-ink .form.form-card .field.consent > span:not(.field-error) { color: var(--ink-2); } /* белая карточка формы на тёмной секции — обычные цвета */
.surface-ink .form.form-card .field.consent > span:not(.field-error) a { color: inherit; text-decoration-color: var(--line-2); }
.surface-ink .form.form-card .field.consent input { accent-color: var(--ink); }
.surface-ink .form select option { color: var(--ink); }
.surface-ink .form-note { color: rgba(255, 255, 255, 0.5); }
.surface-ink .form .btn-primary { background: #fff; color: var(--ink); }
.surface-ink .form .btn-primary:hover { background: var(--bg-soft); }
.surface-ink .form select { color: #fff; }
/* Белая карточка формы поверх тёмной/синей плашки */
.surface-ink .form.form-card .input, .surface-ink .form.form-card .textarea, .surface-ink .form.form-card select { background: var(--bg-soft); border-color: transparent; color: var(--ink); }
.surface-ink .form.form-card .input:hover, .surface-ink .form.form-card .textarea:hover { background: var(--bg-soft-2); }
.surface-ink .form.form-card .input:focus, .surface-ink .form.form-card .textarea:focus { background: #fff; border-color: var(--accent); }
.surface-ink .form.form-card .input::placeholder, .surface-ink .form.form-card .textarea::placeholder { color: var(--muted-2); }
.surface-ink .form.form-card .form-note { color: var(--muted); }
.surface-ink .form.form-card .btn-primary { background: var(--ink); color: #fff; }
.surface-ink .form.form-card .btn-primary:hover { background: var(--ink-hover); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; counter-reset: faq; }
.faq details { counter-increment: faq; border-top: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq summary { display: grid; grid-template-columns: 44px minmax(0, 1fr) 36px; align-items: center; gap: 16px; padding: 24px 0; font-weight: 600; font-size: 1.12rem; letter-spacing: -0.015em; cursor: pointer; list-style: none; transition: color 0.2s; }
.faq summary:hover { color: var(--accent-text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "0" counter(faq); font-size: 0.82rem; font-weight: 600; color: var(--muted-2); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.faq details[open] summary::before { color: var(--accent-text); }
.faq summary::after { content: ""; width: 36px; height: 36px; border-radius: 50%; background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23343232' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform 0.25s var(--ease), background 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--accent-soft); }
.faq-body { padding: 0 52px 26px 60px; color: var(--ink-2); max-width: 78ch; font-size: 1rem; line-height: 1.6; }
.faq-body p { margin: 0 0 10px; }
@media (max-width: 840px) {
  .faq summary { grid-template-columns: minmax(0, 1fr) 36px; padding: 18px 0; font-size: 1.02rem; }
  .faq summary::before { display: none; }
  .faq-body { padding: 0 0 20px; }
}

/* ---------- CTA ---------- */
.cta-band { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(32px, 5vw, 80px); align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: var(--r-xl); overflow: hidden; isolation: isolate; }
.cta-band.surface-ink { background: var(--ink); }
.cta-band > div:first-child { display: flex; flex-direction: column; gap: 16px; }
.cta-band .eyebrow { background: rgba(255, 255, 255, 0.16); color: #fff; }
.cta-band .h2 { max-width: 18ch; font-size: clamp(1.9rem, 3vw, 2.7rem); }
.cta-band .lead { color: rgba(255, 255, 255, 0.85); max-width: 44ch; font-size: 1.05rem; }
.cta-gets { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.cta-gets li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; }
.cta-gets-ico { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: #fff; }
.cta-gets-ico svg { width: 20px; height: 20px; }
.cta-gets b { display: block; font-size: 1rem; letter-spacing: -0.01em; }
.cta-gets div > span { display: block; font-size: 0.86rem; color: rgba(255, 255, 255, 0.72); line-height: 1.4; }
.cta-contacts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 8px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.cta-contacts a { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 0.98rem; }
.cta-contacts a:hover { color: #fff; opacity: 0.85; }
.cta-contacts a:last-child { font-weight: 500; color: rgba(255, 255, 255, 0.8); }
.cta-contacts svg { width: 17px; height: 17px; }
.cta-form { position: relative; z-index: 1; }

/* ---------- Хлебные крошки / пагинация ---------- */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; padding: 20px 0 0; font-size: 0.84rem; color: var(--muted); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: var(--muted-2); }
.breadcrumbs a:hover { color: var(--ink); }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 500; font-size: 0.92rem; }
.pagination .is-current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Хиро внутренних страниц ---------- */
.hero-page { padding: clamp(24px, 3.5vw, 48px) 0 var(--s-6); }
.hero-page-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; } /* ритм внутри героя задаёт gap */
.hero-page .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero-page .hero-copy .h-display { font-size: clamp(2.1rem, 3.7vw, 3.4rem); max-width: 18ch; }
.hero-page .hero-copy .lead { max-width: 52ch; }
.hero-page .hero-mini b { font-size: clamp(1.6rem, 2.1vw, 2.2rem); }
.hero-tile.hero-map { position: relative; padding: 0; background: var(--bg-soft); }
.section-xs { padding: 0 0 var(--section); }
.section-xs + :is(.section, .section-sm):not([class*="surface-"]) { padding-top: 0; }
.facts-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.facts-item { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; }
.facts-item b { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.25; }
.facts-link { color: var(--accent-text); }
.facts-link b { display: inline-flex; align-items: center; gap: 6px; }
.facts-link svg { width: 16px; height: 16px; }
.milestones li.tile p.small { color: var(--ink-2); }
.hero-facts { position: relative; overflow: hidden; padding: var(--pad); gap: 0; justify-self: end; width: 100%; max-width: 460px; }
.hero-facts-wide { max-width: none; }
.hero-facts-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: start; }
.product-gallery { aspect-ratio: 1 / 1; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); margin-bottom: 0; }
.hero-facts .spec-list li { padding: 12px 0; font-size: 0.94rem; }
.hero-facts .spec-list li:last-child { border-bottom: 0; }
.table td.num, .table th.num { white-space: nowrap; }
.hero-page .h1 { max-width: 20ch; }
.hero-page .lead { max-width: 60ch; }

/* ---------- Текстовые страницы ---------- */
.prose { font-size: 1.05rem; line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.7rem; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); margin-top: 2em; line-height: 1.15; }
.prose h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose ol { padding-left: 1.2em; list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
/* Цитата-выноска: серая плашка системы + крупные кавычки акцентом (без рамок-линий) */
.prose blockquote { position: relative; margin: 1.6em 0; padding: 26px 28px 24px 68px; background: var(--bg-soft); border-radius: var(--r-lg); color: var(--ink); font-size: 1.12rem; line-height: 1.55; font-weight: 500; letter-spacing: -0.01em; }
.prose blockquote::before { content: "„"; position: absolute; left: 24px; top: 4px; font-family: var(--font-display); font-weight: 900; font-size: 4rem; line-height: 1; color: var(--accent); }
.prose blockquote p { margin: 0; }
.prose blockquote p + p { margin-top: 0.7em; }
.prose blockquote cite, .prose blockquote footer { display: block; margin-top: 12px; font-size: 0.86rem; font-weight: 500; font-style: normal; color: var(--muted); }
.surface-soft .prose blockquote, .card-soft .prose blockquote { background: #fff; }
@media (max-width: 640px) { .prose blockquote { padding: 22px 20px 20px 52px; font-size: 1.04rem; } .prose blockquote::before { left: 16px; font-size: 3.2rem; } }
/* Таблицы в текстах — в фирменном стиле .table: рамка, скругление, серая шапка */
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.94rem; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.prose th, .prose td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose table:not(.spec-table) tr:first-child th { font-size: 0.78rem; font-weight: 500; color: var(--muted); background: var(--bg-soft); }
.prose table:not(.spec-table) td:first-child { font-weight: 500; color: var(--ink); }
.prose table tr:last-child td, .prose table tr:last-child th { border-bottom: 0; }
.prose table .num, .prose table td:not(:first-child) { font-variant-numeric: tabular-nums; }

/* ---------- Блог: статья ---------- */
.post-hero { padding: clamp(24px, 3.5vw, 48px) 0 var(--s-6); }
.post-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.post-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.post-hero-copy .h-display { font-size: clamp(2rem, 3.4vw, 3.1rem); max-width: 20ch; }
.post-hero-copy .lead { max-width: 56ch; margin: 0; }
.post-author { display: flex; gap: 14px; align-items: center; }
.post-author > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.post-author b { font-weight: 700; }
.post-author small { font-size: 0.85rem; color: var(--muted); line-height: 1.35; }
.post-author .avatar { background: var(--accent-soft); }
.post-author-end { margin-top: 48px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); align-items: flex-start; }
.post-author-end .small { color: var(--muted); line-height: 1.5; }
.post-cover { aspect-ratio: 4 / 3; border-radius: var(--r-xl); align-self: center; width: 100%; }
.post-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.post-cover .chip { left: 18px; bottom: 18px; right: auto; top: auto; }
.post-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: var(--s-6); padding: 0; list-style: none; }
.post-facts li { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; background: var(--bg-soft); border-radius: var(--r-lg); }
.post-facts b { font-size: clamp(1.5rem, 2.1vw, 2rem); color: var(--ink); }
.post-facts span { font-size: 0.88rem; color: var(--muted); line-height: 1.4; }
.post-body { padding-top: clamp(32px, 4vw, 56px); }
.post-prose { max-width: 720px; }
.post-prose .prose-intro { font-size: 1.2rem; line-height: 1.6; color: var(--ink); }
.post-prose .prose-source { font-size: 0.86rem; color: var(--muted); margin-top: 0.6em; }
.post-prose h2 { scroll-margin-top: calc(var(--header-h) + 24px); }
.post-prose h2::before { content: ""; display: block; width: 44px; height: 3px; border-radius: 2px; background: var(--accent); margin-bottom: 16px; }
.post-prose li b, .post-prose p b { color: var(--ink); }
.post-figure { margin: 1.6em 0; padding: 0; }
.post-figure img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.post-figure:not(.post-figure-pair) img { max-height: 420px; object-fit: contain; }
.post-figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.post-figure-pair img { aspect-ratio: 1; object-fit: contain; }
.post-figure figcaption { grid-column: 1 / -1; margin-top: 10px; font-size: 0.88rem; color: var(--muted); line-height: 1.45; }
.prose .spec-table th { width: 42%; font-weight: 500; color: var(--muted); background: var(--bg-soft); vertical-align: top; }
.prose .spec-table td { color: var(--ink); font-weight: 500; }
.prose .spec-table-prices th { width: 68%; color: var(--ink); background: #fff; }
.prose .spec-table-prices td { white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.callout { padding: 22px 24px; border-radius: var(--r-lg); background: var(--yellow-soft); color: var(--ink); line-height: 1.6; }
.callout b { display: block; margin-bottom: 4px; font-weight: 700; }
.callout-note { background: var(--accent-soft); }
.callout-warn { background: var(--rose-soft); }
.post-aside .stack { gap: 16px; }
.toc { gap: 12px; padding: 22px 24px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 12px; padding: 8px 0; font-size: 0.92rem; line-height: 1.35; color: var(--ink-2); border-bottom: 1px solid var(--line); transition: color 0.2s; }
.toc li:last-child a { border-bottom: 0; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-variant-numeric: tabular-nums; font-weight: 600; color: var(--muted); flex: none; }
.toc a:hover, .toc a.is-active { color: var(--accent-text); }
.mini-products { gap: 10px; }
.mini-product { display: grid; grid-template-columns: 56px minmax(0, 1fr) 16px; gap: 12px; align-items: center; padding: 10px 0; color: var(--ink); border-bottom: 1px solid var(--line); }
.mini-product:last-of-type { border-bottom: 0; }
.mini-product-img { width: 56px; height: 56px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.mini-product-img img { width: 90%; height: 90%; object-fit: contain; }
.mini-product-img > .icon { width: 22px; height: 22px; color: var(--muted-2); }
.mini-product b { display: block; font-size: 0.92rem; font-weight: 600; line-height: 1.3; }
.mini-product small { display: block; margin-top: 2px; font-size: 0.8rem; color: var(--muted); }
.mini-product svg { width: 16px; height: 16px; color: var(--muted); transition: transform 0.25s var(--ease), color 0.2s; }
.mini-product:hover svg { transform: translateX(3px); color: var(--accent-text); }
.mini-products .link { margin-top: 4px; }

/* ---------- Блог: главная статья ---------- */
.post-featured { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: center; padding: clamp(20px, 2.4vw, 32px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); color: var(--ink); transition: border-color 0.2s, box-shadow 0.35s var(--ease); }
.post-featured:hover { color: var(--ink); border-color: var(--ink); box-shadow: var(--shadow); }
.post-featured-media { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
.post-featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform 0.7s var(--ease); }
.post-featured:hover .post-featured-media img { transform: scale(1.04); }
.post-featured-body { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.post-featured-body .h2 { font-size: clamp(1.5rem, 2.3vw, 2.1rem); }
.post-featured-lead { color: var(--ink-2); line-height: 1.6; max-width: 52ch; }
.post-featured-meta { display: flex; gap: 12px; align-items: center; }
.post-featured-meta > span:not(.avatar) { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.post-featured-meta b { font-size: 0.92rem; font-weight: 600; }
.post-featured-meta small { font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
.post-featured-meta time, .post-author time { white-space: nowrap; }
.post-featured-meta .avatar { background: var(--accent-soft); }

/* ---------- Подвал ---------- */
.footer { position: relative; background: var(--bg-soft); color: var(--ink); padding: clamp(56px, 6vw, 88px) 0 0; margin-top: 0; overflow: hidden; }
.footer .logo, .footer .logo:hover { color: var(--ink); }
.footer-word { overflow: hidden; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2.8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.footer-brand > p { max-width: 34ch; color: var(--ink-2); font-size: 0.95rem; line-height: 1.55; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; }
.footer-phone { font-family: var(--font-display); font-size: 1.7rem; font-weight: 900; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.footer-phone:hover { color: var(--accent-text); }
.footer-contact > span { font-size: 0.82rem; color: var(--muted); }
.footer-mail { margin-top: 6px; color: var(--ink); font-weight: 500; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04); transition: background 0.2s, color 0.2s, transform 0.2s; }
.footer-social a:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }

/* Видео: превью YouTube + кнопка, iframe грузится только по клику */
.video { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.video-poster { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--night); cursor: pointer; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease), opacity 0.3s; }
.video-poster:hover img { transform: scale(1.03); }
.video-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); transition: transform 0.2s, background 0.2s, color 0.2s; }
.video-play svg { width: 28px; height: 28px; margin-left: 3px; }
.video-poster:hover .video-play { transform: scale(1.06); background: var(--ink); color: #fff; }
.video-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-lg); display: block; background: var(--night); }
.video figcaption { display: flex; flex-direction: column; gap: 4px; }
.video figcaption b { font-weight: 500; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer h4 { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { color: var(--ink-2); font-size: 0.94rem; width: fit-content; padding: 2px 0; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-text); }
.footer-cities { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2.8fr); gap: clamp(32px, 5vw, 80px); align-items: start; margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line-2); }
.footer-cities > span { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 10px; }
.footer-cities-list { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-cities-list a { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 0.9rem; font-weight: 500; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.footer-cities-list a:hover { box-shadow: 0 0 0 2px var(--line-2) inset; }
.footer-cities-list a.is-more { background: var(--ink); color: #fff; }
.footer-cities-list a.is-more:hover { background: var(--ink-hover); box-shadow: none; }
.footer-cities-list a.is-more svg { width: 14px; height: 14px; }
.footer-bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 36px; padding: 24px 0 0; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 0.82rem; }
.footer-bottom-links { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: 6px 20px; }
.footer-bottom-links .link-btn { font-size: inherit; line-height: inherit; color: var(--ink-2); }
.footer-bottom-links .link-btn:hover { color: var(--accent-text); }
.footer-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 14px; font-size: 0.76rem; line-height: 1.4; color: var(--muted); }
.footer-bottom a { color: var(--ink-2); }
.footer-bottom a:hover { color: var(--accent-text); }
/* Финальное слово футера плавает в воде: вода из шапки (те же волны и пузырьки) собирается внизу страницы.
   Буквы не заливаются — они чуть притоплены: над кромкой сухая часть, под кромкой та же буква видна сквозь воду
   и сдвинута на пару пикселей (преломление). Уровень --lvl общий для бассейна, поверхности, масок и пузырьков. */
@property --lvl { syntax: "<length>"; inherits: true; initial-value: 0px; }
@property --bob { syntax: "<length>"; inherits: false; initial-value: 0px; }
.footer-word { --lvl: 0.38em; --water: 65, 191, 239; position: relative; margin-top: 18px; font-family: var(--font-display); font-weight: 900; font-size: clamp(3.4rem, 12.6vw, 13.5rem); line-height: 0.78; letter-spacing: -0.04em; text-align: center; white-space: nowrap; user-select: none; pointer-events: none; transform: translateY(0.12em); animation: word-level 11s ease-in-out infinite alternate; }
.footer-word > span { --rx: 0px; --bob: 0px; display: block; position: relative; color: rgba(52, 50, 50, 0.07); transform: translate(var(--rx), var(--bob)); animation: word-bob 7s ease-in-out infinite alternate; }
.footer-word i { font-style: normal; font-size: 0.375em; line-height: 0; vertical-align: 1.19em; letter-spacing: 0; margin-left: 0.02em; }
/* Маска той же формы, что svg.wave-front, тот же размер и ход: сухая часть — над волной */
.footer-word > span:first-child { z-index: 0; mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2880 120' preserveAspectRatio='none'%3E%3Cpath d='M0 58C240 22 480 94 720 58S1200 22 1440 58 1920 94 2160 58 2640 22 2880 58V0H0Z'/%3E%3C/svg%3E"), linear-gradient(#000 calc(var(--lvl) - 0.048em - var(--bob)), transparent 0); mask-repeat: repeat-x, no-repeat; mask-size: 200% 0.12em, 100% 100%; mask-position: 100% calc(var(--lvl) - 0.06em - var(--bob)), 0 0; animation: word-bob 7s ease-in-out infinite alternate, word-surface 22s linear infinite; }
/* Притопленная копия — под волной, чуть плотнее и сдвинута вправо */
.footer-word .is-water { --rx: 0.018em; position: absolute; inset: 0; z-index: 2; color: rgba(30, 70, 95, 0.13); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2880 120' preserveAspectRatio='none'%3E%3Cpath d='M0 58C240 22 480 94 720 58S1200 22 1440 58 1920 94 2160 58 2640 22 2880 58V120H0Z'/%3E%3C/svg%3E"), linear-gradient(transparent calc(var(--lvl) + 0.045em - var(--bob)), #000 0); mask-repeat: repeat-x, no-repeat; mask-size: 200% 0.12em, 100% 100%; mask-position: 100% calc(var(--lvl) - 0.06em - var(--bob)), 0 0; animation: word-bob 7s ease-in-out infinite alternate, word-surface 22s linear infinite; }
@supports not (mask-position: 0 0) { .footer-word .is-water { display: none; } }
/* Слои как в шапке: задняя волна полупрозрачная, передняя волна и бассейн — один непрозрачный цвет (без двойных контуров и швов) */
.footer-water { --pool: color-mix(in srgb, rgb(var(--water)) 14%, var(--bg-soft)); position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.footer-water::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: calc(var(--lvl) + 0.045em); bottom: -2px; background: var(--pool); } /* бассейн во всю ширину */
.footer-water .wave { position: absolute; left: 0; width: 200%; max-width: none; height: 0.1em; display: block; will-change: transform; }
.footer-water .wave-back { z-index: 0; top: calc(var(--lvl) - 0.13em); height: 0.2em; fill: rgba(var(--water), 0.22); animation: wave-drift 34s linear infinite; }
.footer-water .wave-front { z-index: 1; top: calc(var(--lvl) - 0.06em); height: 0.12em; fill: var(--pool); animation: wave-drift 22s linear infinite reverse; }
.footer-water .bubble { position: absolute; z-index: 2; bottom: 0.02em; width: clamp(5px, 0.045em, 12px); height: clamp(5px, 0.045em, 12px); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 2px, rgba(var(--water), 0.75) 3px); opacity: 0; animation: footer-bubble 9s ease-in-out infinite; }
.footer-water .bubble:nth-child(1) { left: 12%; }
.footer-water .bubble:nth-child(2) { left: 31%; width: clamp(4px, 0.03em, 8px); height: clamp(4px, 0.03em, 8px); animation-delay: -3s; animation-duration: 8s; }
.footer-water .bubble:nth-child(3) { left: 52%; width: clamp(6px, 0.06em, 16px); height: clamp(6px, 0.06em, 16px); animation-delay: -6s; animation-duration: 11s; }
.footer-water .bubble:nth-child(4) { left: 69%; width: clamp(4px, 0.035em, 9px); height: clamp(4px, 0.035em, 9px); animation-delay: -1.5s; animation-duration: 7.5s; }
.footer-water .bubble:nth-child(5) { left: 88%; animation-delay: -4.5s; animation-duration: 10s; }
@keyframes word-level { from { --lvl: 0.3em; } to { --lvl: 0.44em; } }
@keyframes word-bob { from { --bob: -0.012em; } to { --bob: 0.012em; } }
@keyframes word-surface { to { mask-position: 0 calc(var(--lvl) - 0.06em - var(--bob)), 0 0; } }
@keyframes footer-bubble { 0% { transform: translate(0, 0) scale(0.6); opacity: 0; } 15% { opacity: 0.9; } 80% { opacity: 0.6; } 100% { transform: translate(6px, calc(var(--lvl) - 0.74em)) scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .footer-word, .footer-word > span, .footer-water .wave, .footer-water .bubble { animation: none; } .footer-water .bubble { opacity: 0.7; } }

/* ---------- Липкая панель (моб.) ---------- */
.sticky-cta { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
.sticky-cta .btn { flex: 1; }

/* ---------- Анимации ---------- */
@keyframes reveal-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal-in linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1300px) {
  .header-inner { gap: 12px; }
  .header-phone span { display: none; }
  .header-phone svg { width: 18px; height: 18px; }
}
@media (max-width: 1100px) {
  .nav, .header-phone { display: none; }
  .burger { display: inline-flex; }
  .grid-4, .grid-5, .steps-4, .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .segmented.cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-sidebar { grid-template-columns: minmax(0, 1fr); }
  .sticky, .grid-sidebar > aside { position: static; }
  .footer-top, .footer-cities { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .city-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mega { display: none; }
  .milestones { grid-template-columns: 1fr 1fr; }
  .numbers-band { grid-template-columns: 1fr; }
  .numbers-intro .h3 { max-width: 30ch; }
  .cta-band { grid-template-columns: 1fr; }
  .entries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry { min-height: 0; }
  .entry:last-child { grid-column: 1 / -1; }
}
@media (max-width: 840px) {
  .ways { grid-template-columns: 1fr; }
  .ways .tile img { height: min(320px, 88vw); object-fit: cover; object-position: 50% 100%; } /* cover, не contain: у рендеров запечён фон, при contain по бокам видна граница цвета */
  .numbers { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .number:nth-child(3) { border-left: 0; padding-left: 0; }
  .split { grid-template-columns: 1fr; }
  .band-ink { flex-direction: column; align-items: flex-start; }
  .proof-grid, .proof-grid:has(.review:only-of-type) { grid-template-columns: 1fr; }
  .proof-grid:not(:has(.review)) .proof-list { grid-template-columns: 1fr 1fr; }
  .split .tile { min-height: 360px; }
  .hero-visual { min-height: 0; }
  .hero-tile { min-height: 360px; }
  .grid-2, .grid-3, .checklist.cols-2 { grid-template-columns: minmax(0, 1fr); }
  .steps-vertical .step { flex-wrap: wrap; }
  .steps-vertical .step h3 { flex: 1 1 100%; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section-head > div:first-child { flex: 0 0 auto; gap: 10px; }
  .section-head > p { flex: 0 0 auto; }
  .section-head > a.link { align-self: flex-start; }
  .steps, .process, .features { grid-template-columns: 1fr; gap: 18px; }
  .city-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-grid, .hero-page .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-facts { max-width: none; }
  .post-hero-grid { grid-template-columns: 1fr; }
  .post-cover { min-height: 0; }
  .post-facts { grid-template-columns: 1fr 1fr; }
  .post-featured { grid-template-columns: 1fr; }
  .post-prose { max-width: none; }
}
@media (max-width: 640px) {
  :root { --pad: 22px; --pad-sm: 18px; }
  .container { width: min(100% - 32px, var(--container)); }
  .grid-4, .grid-5 { grid-template-columns: minmax(0, 1fr); }
  .numbers { grid-template-columns: 1fr; gap: 20px; }
  .number { border-left: 0; padding-left: 0; }
  .milestones { grid-template-columns: minmax(0, 1fr); gap: 10px; } /* в две колонки заголовки и метрики режутся */
  .milestones li.tile { min-height: 0; padding: 18px; }
  .milestone-metric { white-space: normal; height: auto; min-height: 30px; padding: 5px 12px; line-height: 1.3; }
  .facts-item b { overflow-wrap: anywhere; } /* почта/длинные значения в полосе фактов */
  .spec-list span:first-child { flex: 0 0 auto; max-width: 48%; overflow-wrap: anywhere; }
  .pills .pill { max-width: 100%; height: auto; min-height: 30px; padding-top: 5px; padding-bottom: 5px; white-space: normal; line-height: 1.3; } /* длинные адреса */
  .chart { gap: 4px; }
  .chart-col b { font-size: 0.6rem; }
  .chart-col:not(:nth-child(3n)) b { visibility: hidden; } /* подписи каждой третьей колонке, иначе наезжают */
  .stats { grid-template-columns: 1fr 1fr; }
  .post-facts { grid-template-columns: 1fr; }
  .post-figure-pair { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .footer-word { font-size: 17vw; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 70px; }
  .city-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 28px 22px; }
  .finder-cities { display: none; }
  .finder-form { padding: 5px 5px 5px 14px; gap: 6px; }
  .finder-form > svg { display: none; }
  .finder-form .btn { padding: 0 16px; font-size: 0.9rem; }
  .entries { grid-template-columns: 1fr; }
  .hero-visual { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 12px; }
  .hero-tile { grid-column: 1 / -1; grid-row: auto; min-height: 0; aspect-ratio: 1 / 1; }
  .hero-tile img { inset: 0; height: 100%; } /* плитка квадратная, как и исходный рендер — целиком без обрезки */
  .table { min-width: 560px; }
  .table th, .table td { padding: 12px 14px; }
  .hero-mini { padding: 18px; }
  .header-actions .btn { display: none; }
  /* Тап-зоны ≥ 40px: пилюли-фильтры, ссылки футера, крошки, аккордеоны */
  .pills > a.pill, .related-links a, .finder-cities a { min-height: 40px; }
  .footer-links a { padding: 8px 0; }
  .footer-bottom a, .footer-bottom .link-btn, .breadcrumbs a { padding: 6px 0; display: inline-block; }
  .link { padding: 6px 0 4px; }
  .hero-mini b { white-space: normal; }
}

/* ============================================================ Магазин: карточка с кнопками, корзина, попап, тост */
.product { position: relative; }
.product-media { display: grid; }
.product-name { color: var(--ink); }
.product-name:hover { color: var(--accent-text); }
.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 12px; }
.product-actions .btn { padding: 0 10px; font-size: 0.84rem; height: 40px; }
.product-actions .btn svg { width: 15px; height: 15px; }

.header-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); transition: border-color 0.2s, background 0.2s; }
.header-cart:hover { border-color: var(--ink); color: var(--ink); }
.header-cart svg { width: 19px; height: 19px; }
.header-cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 700; display: grid; place-items: center; line-height: 1; box-shadow: 0 0 0 2px #fff; }
.header-cart-count[hidden] { display: none; }
.header-cart.is-bump { animation: cart-bump 0.4s var(--ease); }
@keyframes cart-bump { 0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); } }

.qty { display: inline-grid; grid-template-columns: 40px 56px 40px; height: 44px; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; background: #fff; color: var(--ink); }
.qty button { display: grid; place-items: center; color: var(--ink); transition: background 0.2s; }
.qty button:hover { background: var(--bg-soft); }
.qty button svg { width: 15px; height: 15px; }
.qty input { width: 100%; height: 100%; border: 0; background: transparent; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); font-size: 0.95rem; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.card-ink .qty { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.card-ink .qty button, .card-ink .qty input { color: #fff; }
.card-ink .qty button:hover { background: rgba(255, 255, 255, 0.1); }

.offer-terms { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.86rem; line-height: 1.4; color: rgba(255, 255, 255, 0.78); }
.offer-terms li { display: flex; gap: 10px; align-items: flex-start; }
.offer-terms svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--accent); }

/* Корзина */
.cart-layout { align-items: start; margin-top: 32px; }
.cart-list { display: flex; flex-direction: column; gap: 12px; }
.cart-row { display: grid; grid-template-columns: 96px 1fr auto 150px 40px; gap: 18px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.cart-media { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r); background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.cart-media img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cart-media.is-empty { background: var(--bg-soft); }
.cart-media > .icon { width: 30px; height: 30px; color: var(--muted-2); }
.cart-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-name { font-weight: 600; letter-spacing: -0.01em; color: var(--ink); line-height: 1.3; }
.cart-name:hover { color: var(--accent-text); }
.cart-sum { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.cart-sum b { font-size: 1.15rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-remove { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: background 0.2s, color 0.2s; }
.cart-remove:hover { background: var(--rose-soft); color: var(--rose); }
.cart-remove svg { width: 18px; height: 18px; }
.cart-list > .link { margin-top: 8px; }
.cart-summary { gap: 18px; }
.cart-total { display: flex; flex-direction: column; gap: 4px; padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.cart-total .h2 { color: #fff; font-variant-numeric: tabular-nums; }
.cart-summary .form-fields { gap: 12px; }
.cart-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 560px; margin-top: 32px; padding: var(--pad); border-radius: var(--r-lg); background: var(--bg-soft); }
.cart-empty .hero-actions { margin-top: 8px; }
.radio-list { display: flex; flex-direction: column; gap: 6px; }
.radio { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); cursor: pointer; font-size: 0.9rem; transition: background 0.2s; }
.radio:hover { background: rgba(255, 255, 255, 0.1); }
.radio input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; margin: 0; }
.radio em { font-style: normal; color: rgba(255, 255, 255, 0.55); }
.radio:has(input:checked) { background: rgba(255, 255, 255, 0.14); box-shadow: 0 0 0 1.5px var(--accent) inset; }

/* Заказ принят */
.order-thanks { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.order-thanks > .icon-box { width: 72px; height: 72px; }
.order-thanks .h1 .muted { font-weight: 400; }
.order-recap { width: 100%; max-width: 640px; text-align: left; margin-top: 16px; }
.order-items { display: flex; flex-direction: column; }
.order-items li { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.94rem; align-items: baseline; }
.order-items li em { display: block; font-style: normal; font-size: 0.8rem; color: var(--muted); }
.order-items b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.order-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 2px solid var(--ink); font-weight: 600; }
.order-total b { font-size: 1.25rem; letter-spacing: -0.02em; }

/* Процесс — см. .steps выше; ниже только подписи сроков и заголовок полосы */
.step .h4 em, .process-step .h4 em { display: block; font-style: normal; font-size: 0.82rem; font-weight: 500; color: var(--muted); margin-top: 2px; }
.process-head { display: flex; align-items: baseline; gap: 14px; margin: 40px 0 18px; padding-top: 28px; border-top: 1px solid var(--line); }
.process-head .muted { font-size: 0.94rem; }
.section-head + .process, .grid + .process, .grid + .steps { margin-top: 40px; }

/* Попап заявки */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(52, 50, 50, 0.6); animation: modal-fade 0.25s ease; }
.modal-card { position: relative; display: grid; grid-template-columns: 340px 1fr; width: min(900px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); animation: modal-up 0.35s var(--ease); }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-soft); color: var(--ink); display: grid; place-items: center; transition: background 0.2s; }
.modal-close:hover { background: var(--bg-soft-2); }
.modal-close svg { width: 18px; height: 18px; }
.modal-side { display: flex; flex-direction: column; gap: 18px; padding: 32px 28px; background: var(--night); color: #fff; }
.modal-side .h3 { color: #fff; }
.modal-side .eyebrow { background: rgba(255, 255, 255, 0.14); color: #fff; }
.modal-side .checklist { font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); }
.modal-side .checklist li::before { background: var(--accent); }
.modal-contact { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.modal-contact .link { color: #fff; border-color: rgba(255, 255, 255, 0.35); font-weight: 600; }
.modal-contact .muted { color: rgba(255, 255, 255, 0.55); }
.modal-product { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r); background: rgba(255, 255, 255, 0.07); }
.modal-product[hidden] { display: none; }
.modal-product-media { aspect-ratio: 1 / 1; border-radius: 12px; background: #fff; overflow: hidden; display: grid; place-items: center; }
.modal-product-media img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.modal-product-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.modal-product-info .product-brand { color: rgba(255, 255, 255, 0.55); }
.modal-product-info b { font-size: 0.95rem; line-height: 1.3; letter-spacing: -0.01em; }
.modal-product-price { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent); }
.modal-form { padding: 32px; gap: 0; }
.modal-form .form-fields { gap: 14px; }
.modal-form .segmented span { min-height: 64px; font-size: 0.8rem; }
.modal-form [data-modal-choose][hidden] { display: none; }
.modal-form .form-success { margin: auto 0; }
@keyframes modal-fade { from { opacity: 0; } }
@keyframes modal-up { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
body.modal-open { overflow: hidden; }

/* Тост */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 210; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; border-radius: 999px; background: var(--night); color: #fff; box-shadow: var(--shadow-lg); transform: translateX(-50%); animation: toast-in 0.35s var(--ease); font-size: 0.92rem; max-width: calc(100% - 32px); }
.toast[hidden] { display: none; }
.toast-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--green); display: grid; place-items: center; flex: none; }
.toast-icon svg { width: 14px; height: 14px; }
.toast-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast-link { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-size: 0.86rem; white-space: nowrap; }
.toast-link:hover { background: var(--bg-soft); color: var(--ink); }
.toast-link svg { width: 14px; height: 14px; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }

@media (max-width: 1100px) {
  .cart-row { grid-template-columns: 80px 1fr auto; grid-template-rows: auto auto; row-gap: 12px; }
  .cart-row .cart-media { grid-row: 1 / 3; }
  .cart-row .cart-remove { grid-column: 3; grid-row: 1; }
  .cart-row .qty { grid-column: 2; grid-row: 2; }
  .cart-row .cart-sum { grid-column: 3; grid-row: 2; }
}
@media (max-width: 840px) {
  .modal { padding: 0; align-items: end; }
  .modal-card { grid-template-columns: 1fr; max-height: 100vh; border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .modal-side { padding: 28px 22px 22px; gap: 14px; }
  .modal-side .checklist, .modal-contact { display: none; }
  .modal-form { padding: 22px; }
  .modal-form .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .product-actions { grid-template-columns: 1fr; }
  .toast-link { padding: 0 10px; }
  .header-cart { width: 40px; height: 40px; }
}

/* Кейс партнёра — единая карточка (главная партнёрства, /kejsy/, страница сегмента) */
.partner-case-income { font-size: clamp(1.15rem, 1.5vw, 1.4rem); font-weight: 700; letter-spacing: -0.02em; color: var(--green); font-variant-numeric: tabular-nums; }
.partner-case-income span { font-size: 0.8rem; font-weight: 500; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.partner-case-quote { font-size: 0.9rem; color: var(--ink-2); }
.partner-case > .pill { align-self: flex-start; }

/* Список ссылок в сайдбаре: название · мета · стрелка, разделены линиями */
.link-list { display: flex; flex-direction: column; }
.link-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 0.92rem; font-weight: 500; line-height: 1.3; }
.link-list a:last-child { border-bottom: 0; }
.link-list a:first-child { padding-top: 0; }
.link-list small { font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
.link-list svg { width: 16px; height: 16px; color: var(--muted); transition: transform 0.25s var(--ease), color 0.2s; grid-column: 3; }
.link-list a:hover { color: var(--accent-text); }
.link-list a:hover svg { transform: translateX(3px); color: var(--accent-text); }

.card-ink .link-list a, .surface-ink .link-list a { color: #fff; border-color: rgba(255, 255, 255, 0.16); }
.card-ink .link-list small, .card-ink .link-list svg, .surface-ink .link-list small, .surface-ink .link-list svg { color: rgba(255, 255, 255, 0.6); }
.card-ink .link-list a:hover, .card-ink .link-list a:hover svg, .surface-ink .link-list a:hover, .surface-ink .link-list a:hover svg { color: var(--accent); }

/* «Другие …» — пилюли под контентом */
.others { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }

/* ---------- Страницы ошибок 404/500 ---------- */
.error-page { padding-bottom: var(--section); }
.error-logo { margin-bottom: clamp(32px, 5vw, 64px); }
.error-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.error-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.error-copy .finder-form { width: 100%; }
.error-visual { position: relative; aspect-ratio: 1; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.error-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.error-code { position: absolute; z-index: 2; top: 4%; left: 50%; transform: translateX(-50%); font-family: var(--font-display); font-weight: 900; font-size: clamp(6rem, 18vw, 15rem); line-height: 1; letter-spacing: -0.06em; color: rgba(52, 50, 50, 0.08); user-select: none; }
@media (max-width: 840px) {
  .error-grid { grid-template-columns: minmax(0, 1fr); }
  .error-visual { max-width: 420px; }
}

/* ---------- Якорное меню длинных посадочных ---------- */
.anchor-nav { position: sticky; top: var(--header-h); z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); margin-bottom: var(--section); }
.anchor-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.anchor-nav ul::-webkit-scrollbar { display: none; }
.anchor-nav a { position: relative; display: inline-flex; align-items: center; height: 48px; padding: 0 14px; font-size: 0.9rem; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color 0.2s; }
.anchor-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.anchor-nav a:hover { color: var(--ink); }
.anchor-nav a.is-active { color: var(--ink); }
.anchor-nav a.is-active::after { transform: scaleX(1); }
.anchor-nav + .section, .anchor-nav + .section-sm { padding-top: 0; }
.anchor-nav + .surface-soft { padding-top: var(--section-inner); margin-top: calc(-1 * var(--section)); }
html:has(.anchor-nav) { scroll-padding-top: calc(var(--header-h) + 48px + 16px); }
@media (max-width: 640px) {
  .anchor-nav { margin-bottom: var(--section); }
  .anchor-nav .container { width: 100%; }
  .anchor-nav ul { padding: 0 16px; }
  .anchor-nav a { height: 44px; padding: 0 10px; font-size: 0.84rem; }
}

/* ---------- Пустые состояния (город без прачечных, нет отзывов, нет постов) ---------- */
.empty-state, .cart-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 560px; padding: var(--pad); border-radius: var(--r-lg); background: var(--bg-soft); }
.empty-state .icon-box { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.empty-state p { color: var(--ink-2); }
.empty-state .hero-actions { margin-top: 8px; }
.surface-soft .empty-state { background: #fff; }

/* ---------- Карта: монохромная подложка, маркеры в цветах системы ---------- */
.ymap [class*="ymaps-2"][class*="-ground-pane"] { filter: grayscale(1) contrast(1.02) brightness(1.04); }
.ymap-mark { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); transition: transform 0.2s var(--ease), background 0.2s; cursor: pointer; }
.ymap-mark:hover { transform: scale(1.25); }
.ymap-mark.is-active { background: var(--accent); transform: scale(1.35); }
.ymap-cluster { position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; font-size: 0.86rem; letter-spacing: -0.02em; cursor: pointer; transition: transform 0.2s var(--ease); }
.ymap-cluster:hover { transform: scale(1.1); }
.ymap [class*="ymaps-2"][class*="-balloon__layout"] { border-radius: var(--r); box-shadow: var(--shadow-lg); }
.ymap [class*="ymaps-2"][class*="-balloon__tail"] { display: none; }

/* ---------- Формы: состояния полей ---------- */
.field.is-invalid .input, .field.is-invalid .textarea { border-color: var(--red, #d64545); }
.field.is-invalid .input:focus, .field.is-invalid .textarea:focus { box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.12); }
.field.is-valid .input { border-color: var(--green); }
.field-error { font-size: 0.78rem; color: var(--red, #d64545); line-height: 1.35; }
.field:not(.is-invalid) .field-error { display: none; }
.card-ink .field-error, .surface-ink .field-error { color: #ff8a8a; }
.form-success time { color: var(--ink); font-weight: 600; }

/* ---------- Типографика: висячая пунктуация в заголовках ---------- */
.h-display, .h1, .h2, blockquote { hanging-punctuation: first last; }

/* ---------- Печать: цены, бизнес-план, КП ---------- */
/* --- Согласие на обработку ПДн в формах (152-ФЗ ст. 9: отдельный, не предотмеченный чекбокс) --- */
.field.consent { flex-direction: row; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.field.consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); cursor: pointer; }
.field.consent > span:not(.field-error) { flex: 1; min-width: 0; font-size: 0.8rem; font-weight: 500; line-height: 1.45; color: var(--ink-2); }
.field.consent > span:not(.field-error) a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.field.consent > span:not(.field-error) a:hover { color: var(--accent-text); }
.field.consent.is-invalid input { outline: 2px solid var(--red, #d64545); outline-offset: 2px; border-radius: 3px; }
.field.consent .field-error { flex-basis: 100%; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); cursor: pointer; }
.link-btn:hover { color: var(--accent-text); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); background: var(--bg-soft); }

/* --- Cookie-баннер: не блокирует контент, обе основные кнопки равнозначны и видны без скролла --- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; display: flex; justify-content: flex-start; pointer-events: none; }
.cookie-body { pointer-events: auto; width: min(560px, 100%); padding: 20px 22px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 18px 48px rgba(52, 50, 50, 0.18); transform: translateY(16px); opacity: 0; transition: transform 0.35s var(--ease), opacity 0.35s var(--ease); }
.cookie.is-open .cookie-body { transform: none; opacity: 1; }
.cookie-text { font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); }
.cookie-text a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cookie-actions .btn { min-height: 42px; padding: 0 18px; font-size: 0.9rem; }
.cookie-settings { display: grid; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.cookie-opt { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.cookie-opt input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); }
.cookie-opt input:disabled { accent-color: var(--muted); cursor: not-allowed; }
.cookie-opt span { display: flex; flex-direction: column; gap: 2px; font-size: 0.88rem; }
.cookie-opt small { color: var(--muted); font-size: 0.78rem; line-height: 1.4; }
.cookie-settings .btn { justify-self: start; }
@media (max-width: 840px) { .cookie { bottom: calc(72px + env(safe-area-inset-bottom)); } } /* над мобильной панелью «Позвонить / Заявка» */
@media (max-width: 640px) {
  .cookie { left: 10px; right: 10px; }
  .cookie-body { padding: 16px; }
  .cookie-actions .btn { flex: 1 1 auto; }
}

/* --- Карта без согласия на внешние сервисы: статичная схема + кнопка --- */
.map-allow { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 3; display: inline-flex; flex-direction: column; align-items: center; gap: 0; line-height: 1.2; padding-top: 8px; padding-bottom: 8px; height: auto; box-shadow: var(--shadow); }
.map-allow small { font-weight: 400; font-size: 0.7rem; color: var(--muted); }
.ymap.is-ready .map-allow { display: none; }

/* --- Юридические страницы --- */
.legal table { width: 100%; border-collapse: collapse; font-size: 0.86rem; line-height: 1.45; }
.legal th, .legal td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.legal th { font-weight: 600; color: var(--ink); background: var(--bg-soft); }
.legal code { font-size: 0.82em; background: var(--bg-soft); padding: 1px 5px; border-radius: 4px; }
@media (max-width: 720px) { .legal table { display: block; overflow-x: auto; } }
/* Широкие таблицы в текстах гайдов на телефоне прокручиваются по горизонтали, а не ломают вёрстку */
@media (max-width: 720px) {
  .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .prose table > tbody { display: table; width: 100%; }
  /* таблицы от трёх колонок не сжимаем в столбик — даём ширину и горизонтальную прокрутку */
  .prose table:has(tr > :nth-child(3)) > tbody { min-width: 560px; }
  .prose table:has(tr > :nth-child(5)) > tbody { min-width: 720px; }
}

@media print {
  @page { margin: 14mm; }
  :root { --bg-soft: #fff; }
  body { color: #000; background: #fff; font-size: 11pt; }
  .header, .footer, .sticky-cta, .modal, .drawer, .anchor-nav, .toast, .breadcrumbs, #cta, .proof, .related, .faq-section, .hero-actions, .btn, .pills, .form, .form-card, .ymap, .map, .hero-tile, .tile img, .card-render, .footer-word, [data-modal-open], .chip, .reveal-skip { display: none !important; }
  main, .section, .section-sm, .section-xs { padding: 0 !important; margin: 0 !important; }
  .section + .section, .section-sm + .section-sm { margin-top: 18pt !important; }
  .surface-soft, .surface-ink, .card, .card-soft, .card-ink, .tile, .stat, .number, .facts-item { background: #fff !important; color: #000 !important; box-shadow: none !important; border: 1px solid #ccc !important; }
  .card-ink *, .surface-ink * { color: #000 !important; }
  .container { width: 100%; max-width: none; }
  .grid { gap: 8pt; }
  .grid-4, .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid > * { break-inside: avoid; }
  .h-display em, .h1 em, .h2 em { color: #000; }
  .table-wrap { overflow: visible; border: 0; }
  .table { min-width: 0 !important; width: 100%; font-size: 10pt; }
  .table th, .table td { padding: 5pt 7pt !important; border-bottom: 1px solid #ccc; }
  .table thead th { border-bottom: 2px solid #000; }
  h1, .h-display, .h1 { font-size: 22pt; }
  h2, .h2 { font-size: 16pt; break-after: avoid; }
  .h3, .h4 { break-after: avoid; }
  .eyebrow { color: #666 !important; }
  .hero-page, .post-hero, .hero { padding: 0 0 12pt !important; }
  .hero-grid, .post-hero-grid { display: block; }
  .hero-visual, .post-cover, .error-visual { display: none !important; }
  .grid-sidebar > aside, .sticky { position: static; display: none; }
  .grid-sidebar { display: block; }
  a { color: #000; text-decoration: none; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555; }
  .faq details { break-inside: avoid; }
  .faq summary::after { display: none; }
  details > summary { list-style: none; }
  .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  main::after { content: "samprachka.com · +7 (903) 714-76-65 · info@samprachka.com"; display: block; margin-top: 24pt; padding-top: 8pt; border-top: 1px solid #000; font-size: 9pt; color: #555; }
}

/* Фото модуля на /partnerstvo/kupit-modul/ */
.module-photos a { display: block; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-soft); }
.module-photos img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.module-photos a:hover img { transform: scale(1.03); }

/* Лента живых фото прачечных */
.photo-strip { display: flex; gap: var(--gap-sm); --strip-pad: max(20px, calc((100vw - var(--container)) / 2)); padding: 4px var(--strip-pad) 8px; scroll-padding-inline: var(--strip-pad); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.photo-strip::-webkit-scrollbar { display: none; }
.photo-strip-item { position: relative; flex: 0 0 320px; aspect-ratio: 3 / 2; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-soft); scroll-snap-align: start; color: #fff; text-decoration: none; }
.photo-strip-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.photo-strip-item:hover img { transform: scale(1.04); }
.photo-strip-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; display: flex; flex-direction: column; gap: 2px; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.62) 100%); font-size: 14px; line-height: 1.25; }
.photo-strip-cap small { font-size: 12px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .photo-strip-item { flex-basis: 70vw; } }

/* Лайтбокс фото */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox-open, .lightbox-open body { overflow: hidden; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(20, 22, 26, 0.9); animation: modal-fade 0.2s ease; }
.lightbox-figure { position: relative; margin: 0; width: min(1000px, 100%); height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; animation: modal-up 0.3s var(--ease); }
.lightbox-figure img { width: 100%; height: 100%; min-height: 0; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5)); } /* фото с старого сайта — 700px, слегка растягиваем до окна */
.lightbox-figure figcaption { display: flex; gap: 12px; align-items: baseline; justify-content: center; padding: 10px 4px 0; color: #fff; font-size: 14px; }
.lightbox-figure figcaption small { opacity: 0.6; font-variant-numeric: tabular-nums; }
.lightbox-btn { position: absolute; z-index: 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, 0.12); border: 0; cursor: pointer; transition: background 0.2s; }
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox-btn svg { width: 22px; height: 22px; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox.is-single .lightbox-prev, .lightbox.is-single .lightbox-next { display: none; }
@media (max-width: 640px) {
  .lightbox { padding: 8px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 8px; transform: none; }
}

/* honeypot антиспама: поле не видно и недоступно людям */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
