/* ============================================================
   Северный Ветер 64 — Design Tokens & Base
   Clean climate-tech. Onest. Cold, airy, engineered.
   (Перенесено из дизайн-handoff Claude Design 1:1 + компоненты сайта)
   ============================================================ */

:root {
  /* ---- Color: surfaces (neutral light minimalism / techno) ---- */
  --white: #FFFFFF;
  --bg: #F4F4F2;
  --bg-2: #EDEDEA;
  --surface-elev: #FAFAF9;
  --ice: #E7F4FA;
  --ice-2: #F0F8FC;

  /* ---- Color: brand (graphite + azure accent) ---- */
  --graphite: #1D2023;
  --graphite-hover: #0B0C0D;
  --primary-soft: #ECECEA;
  --accent: #0FA6DE;
  --accent-deep: #0B82B4;
  --accent-bright: #3FC2F0;
  --blue: #2A2E32;
  --blue-deep: #0B82B4;
  --blue-700: #0B82B4;
  --cyan: #18B6E6;
  --cyan-soft: #9AD9EE;
  --mint: #E7F4FA;
  --silver: #C7CACC;

  /* ---- Color: ink ---- */
  --ink: #1A1C1E;
  --ink-2: #6B7176;
  --ink-3: #9CA1A6;
  --line: #E4E4E1;
  --line-soft: #ECECEA;

  /* ---- Status (muted, used sparingly) ---- */
  --ok: #4B7A5E;
  --ok-bg: #EAF1EC;
  --warn: #B07D2A;
  --warn-bg: #FAF3E4;
  --err: #B5443E;
  --err-bg: #FAECEB;
  --warm: #C9784A;
  --warm-bg: #FBF1EA;

  /* ---- Gradients (neutral, used sparingly) ---- */
  --grad-cool: linear-gradient(180deg, #FFFFFF 0%, #F0F0ED 100%);
  --grad-cta: linear-gradient(120deg, #2A2E32 0%, #1D2023 100%);
  --grad-ice: linear-gradient(135deg, #F7F7F5 0%, #EDEDEA 100%);
  --grad-deep: linear-gradient(135deg, #232629 0%, #141618 100%);

  /* ---- Typography ---- */
  --font: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --fs-h1: 52px;
  --fs-h2: 38px;
  --fs-h3: 24px;
  --fs-h4: 20px;
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-tiny: 13px;
  --lh-tight: 1.08;
  --lh-snug: 1.25;
  --lh-body: 1.55;

  /* ---- Radius ---- */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* ---- Spacing ---- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  /* ---- Shadows (soft, graphite-tinted) ---- */
  --sh-xs: 0 1px 2px rgba(23, 26, 29, 0.04);
  --sh-sm: 0 2px 8px rgba(23, 26, 29, 0.05);
  --sh-md: 0 12px 30px rgba(23, 26, 29, 0.06);
  --sh-lg: 0 20px 50px rgba(23, 26, 29, 0.10);
  --sh-blue: 0 8px 22px rgba(23, 26, 29, 0.16);
  --sh-focus: 0 0 0 4px rgba(15, 166, 222, 0.18);

  /* ---- Layout ---- */
  --maxw: 1200px;
  --gutter: 24px;
  --header-h: 88px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(120% 70% at 50% -8%, rgba(28,31,34,.06), transparent 55%),
    radial-gradient(rgba(28,31,34,.09) 1.4px, transparent 1.7px);
  background-size: 100% 760px, 22px 22px;
  background-repeat: no-repeat, repeat;
  background-position: center top, 0 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-snug); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-snug); }
p  { margin: 0; }
a  { color: var(--blue-deep); text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

.muted { color: var(--ink-2); }
.tiny { font-size: var(--fs-tiny); color: var(--ink-2); }
.small { font-size: var(--fs-small); }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-deep);
  display: inline-flex; align-items: center; gap: 8px;
}
.text-wrap-pretty { text-wrap: pretty; }
.text-balance { text-wrap: balance; }

/* ---- Layout helpers ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap-wide { max-width: 1320px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: var(--sp-9) 0; }
.section-sm { padding: var(--sp-7) 0; }
.stack > * + * { margin-top: var(--sp-4); }
.row { display: flex; align-items: center; gap: var(--sp-3); }
.row-wrap { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.grid { display: grid; gap: var(--sp-5); }
.center { text-align: center; }

.sec-head { max-width: 720px; }
.sec-head.center { margin: 0 auto; }
.sec-head h2 + p { margin-top: 14px; color: var(--ink-2); font-size: 18px; }
.sec-head h2 { margin-top: 12px; }

/* ============================================================ BUTTONS ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 600; font-size: 16px;
  border-radius: var(--r-pill); border: 1.5px solid transparent;
  padding: 14px 24px; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  line-height: 1; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }
.btn-primary { background: var(--graphite); color: #fff; box-shadow: var(--sh-blue); }
.btn-primary:hover { background: var(--graphite-hover); box-shadow: 0 12px 28px rgba(23,26,29,.2); color:#fff; }
.btn-accent { background: #fff; color: var(--accent-deep); border-color: var(--accent); box-shadow: var(--sh-xs); }
.btn-accent:hover { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(15,166,222,.28); }
.btn-secondary { background: var(--graphite); color: #fff; box-shadow: var(--sh-sm); }
.btn-secondary:hover { background: var(--graphite-hover); color:#fff; }
.btn-outline { background: #fff; color: var(--graphite); border-color: var(--line); box-shadow: var(--sh-xs); }
.btn-outline:hover { border-color: var(--graphite); color: var(--graphite); background: #fff; }
.btn-ghost { background: transparent; color: var(--graphite); }
.btn-ghost:hover { background: var(--ice-2); color: var(--graphite); }
.btn[disabled], .btn-disabled { background: #EAF0F5; color: var(--ink-3); box-shadow: none; cursor: not-allowed; border-color: transparent; opacity:1; }
.btn[disabled]:active, .btn-disabled:active { transform: none; }
.btn-lg { padding: 18px 30px; font-size: 17px; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-icon { padding: 12px; border-radius: 50%; }
.btn:focus-visible { outline: none; box-shadow: var(--sh-focus); }

/* ============================================================ CHIPS / TABS / BADGES ============================================================ */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--r-pill);
  background: #fff; border: 1.5px solid var(--line); color: var(--ink);
  font-size: 14px; font-weight: 500; cursor: pointer; transition: all .15s ease; text-decoration:none;
}
.chip:hover { border-color: var(--blue); color: var(--blue-deep); }
.chip[data-active="true"], .chip.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; letter-spacing: .01em; }
.badge-ice { background: var(--ice); color: var(--blue-deep); }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-blue { background: var(--blue); color: #fff; }
.badge-soft { background: #fff; color: var(--ink-2); border: 1px solid var(--line); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

/* ============================================================ CARDS ============================================================ */
.card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--sh-sm); overflow: hidden; }
.card-pad { padding: var(--sp-5); }
.card-hover { transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s ease, border-color .2s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--cyan-soft); }
.card-glass { background: linear-gradient(160deg, rgba(255,255,255,.9), rgba(227,245,255,.6)); border: 1px solid #fff; backdrop-filter: blur(6px); box-shadow: var(--sh-md); }

/* ============================================================ FORM FIELDS ============================================================ */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 12.5px; color: var(--ink-2); }
.input, .textarea, .select-native {
  width: 100%; font-family: var(--font); font-size: 16px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 14px 16px; transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:focus, .textarea:focus, .select-native:focus { outline: none; border-color: var(--blue); box-shadow: var(--sh-focus); }
.textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.input-err { border-color: var(--err); }
.input-err:focus { box-shadow: 0 0 0 4px rgba(209,67,67,.15); }
.field-err { font-size: 13px; color: var(--err); }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.input-icon .input { padding-left: 44px; }

.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check .box { width: 22px; height: 22px; flex: none; border-radius: 7px; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; transition: all .15s ease; margin-top: 1px; }
.check .box svg { opacity: 0; transform: scale(.6); transition: all .15s ease; color: #fff; }
.check input:checked + .box { background: var(--blue); border-color: var(--blue); }
.check input:checked + .box svg { opacity: 1; transform: scale(1); }
.check input:focus-visible + .box { box-shadow: var(--sh-focus); }
.check a { font-weight: 600; }

/* ============================================================ ACCORDION (FAQ) ============================================================ */
.acc { border-bottom: 1px solid var(--line); }
.acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: none; border: none; cursor: pointer; text-align: left; padding: 22px 4px; font-size: 18px; font-weight: 600; color: var(--ink); font-family: var(--font); }
.acc-icon { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ice); color: var(--blue); display: grid; place-items: center; transition: transform .25s ease, background .2s ease; }
.acc[data-open="true"] .acc-icon { transform: rotate(45deg); background: var(--blue); color: #fff; }
.acc-body { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.acc-body-inner { padding: 0 4px 22px; color: var(--ink-2); max-width: 760px; }
.acc[data-open="true"] .acc-body { max-height: 600px; }

/* ============================================================ BREADCRUMBS / PAGINATION ============================================================ */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--blue); }
.crumbs .sep { color: var(--ink-3); }
.crumbs .cur { color: var(--ink); }
.pager { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; height: 42px; border-radius: 11px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; cursor: pointer; font-family: var(--font); display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }
.pager a:hover { border-color: var(--blue); color: var(--blue); }
.pager .is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ============================================================ IMAGE PLACEHOLDER ============================================================ */
.ph { position: relative; border-radius: var(--r-md); overflow: hidden;
  background: repeating-linear-gradient(135deg, rgba(28,31,34,.05) 0 2px, transparent 2px 11px), var(--grad-ice);
  border: 1px solid var(--line-soft); display: grid; place-items: center; color: var(--blue-deep); }
.ph-inner { display:flex; flex-direction:column; align-items:center; gap:10px; }
.ph-label { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; letter-spacing: .04em; background: rgba(255,255,255,.7); padding: 6px 11px; border-radius: var(--r-pill); color: var(--blue-deep); }
.ph img { width:100%; height:100%; object-fit:cover; }

/* ============================================================ NOTES / STATES ============================================================ */
.note { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--r-sm); font-size: 14.5px; }
.note svg { flex: none; margin-top: 2px; }
.note-ok { background: var(--ok-bg); color: #14724E; }
.note-err { background: var(--err-bg); color: #97292A; }
.note-info { background: var(--ice); color: var(--blue-deep); }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* якоря (#quick-select, #calc) не должны прятаться под липкой шапкой; плавность — только если разрешена */
html { scroll-padding-top: 96px; }
@media (max-width: 920px) { html { scroll-padding-top: 78px; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* вестибулярная безопасность: гасим бесконечные декоративные анимации */
@media (prefers-reduced-motion: reduce) {
  .promo-gift__shine, .promo-mini__pulse, .marquee-track { animation: none !important; }
}

/* ============================================================ AIRFLOW MOTIF ============================================================ */
.airflow-line { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; opacity: .55; }
@media (prefers-reduced-motion: no-preference) {
  .airflow-anim { stroke-dasharray: 8 14; animation: flow 2.4s linear infinite; }
  @keyframes flow { to { stroke-dashoffset: -44; } }
}

/* ============================================================ ENTRANCE ANIMATIONS ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); }
  .reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
}

/* ============================================================ RESPONSIVE TYPE / LAYOUT ============================================================ */
@media (max-width: 920px) {
  :root { --fs-h1: 34px; --fs-h2: 28px; --fs-h3: 22px; --fs-body: 16px; --sp-9: 56px; --sp-8: 44px; }
  .section { padding: 56px 0; }
  body { padding-bottom: 88px; } /* clearance for sticky mobile bar */
}
@media (max-width: 560px) { :root { --fs-h1: 30px; --gutter: 24px; } }
@media (max-width: 360px) { :root { --gutter: 20px; } }

.hide-desktop { display: none; }
@media (max-width: 920px) { .hide-mobile { display: none !important; } .hide-desktop { display: revert; } }
/* fix: display:revert у .hide-desktop сбрасывает display кнопки (a.btn → inline) и ломает ширину — возвращаем flex */
@media (max-width: 920px) { .btn.hide-desktop { display: inline-flex; } .btn-block.hide-desktop { display: flex; } }
.h-mob { display: none; }
@media (max-width: 880px) { .h-desk { display: none !important; } .h-mob { display: grid !important; } }
.divider { height: 1px; background: var(--line); border: none; margin: 0; }

/* ---- range slider ---- */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) var(--pct,40%), var(--line) var(--pct,40%)); outline: none; cursor: pointer; }
.range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: var(--sh-sm); cursor: pointer; transition: transform .12s ease; }
.range::-webkit-slider-thumb:hover { transform: scale(1.12); }
.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: var(--sh-sm); cursor: pointer; }
.range:focus-visible { box-shadow: var(--sh-focus); }

/* ---- marquee (facts) ---- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 0; }
@media (prefers-reduced-motion: no-preference) { .marquee-track { animation: marquee 38s linear infinite; } .marquee:hover .marquee-track { animation-play-state: paused; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.fact { display: inline-flex; align-items: center; gap: 10px; padding: 0 26px; white-space: nowrap; }
.fact-n { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.fact-t { font-size: 13.5px; color: var(--ink-2); font-weight: 400; }
.fact-sep { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---- techno background textures ---- */
.dark-tech { background-color: #171A1D; background-image: radial-gradient(75% 60% at 85% 8%, rgba(63,194,240,.10), transparent 60%), linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 100% 100%, 46px 46px, 46px 46px; }
.soft-tech { background-color: var(--bg-2); background-image: linear-gradient(rgba(28,31,34,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(28,31,34,.055) 1px, transparent 1px); background-size: 44px 44px, 44px 44px; }
.vstack { display: flex; flex-direction: column; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-5 { gap: 24px; }

/* ---- focus parity ---- */
:where(a, button, [role="button"], [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip:focus-visible, .pager a:focus-visible { outline: none; border-color: var(--blue); box-shadow: var(--sh-focus); }

/* ---- mobile ergonomics ---- */
@media (max-width: 920px) {
  :root { --header-h: 66px; }
  .btn { min-height: 48px; }
  .btn-lg { min-height: 54px; }
  .btn-sm { min-height: 44px; padding: 12px 18px; font-size: 14.5px; }
  .btn-icon { min-height: 0; }
  .chip { min-height: 42px; padding: 10px 16px; }
  .acc-head { padding: 20px 4px; font-size: 17px; }
  .mobile-bar { padding-top: 11px !important; padding-bottom: calc(11px + env(safe-area-inset-bottom)) !important; gap: 10px !important; }
  .mobile-bar .btn { min-height: 50px; }
  .modal__close { width: 44px; height: 44px; }
  .icon-pill { width: 40px; height: 40px; }
}
@media (max-width: 560px) { .hero-cta { flex-direction: column; align-items: stretch; } .hero-cta .btn { width: 100%; } }
@media (max-width: 600px) { .calc-tiles.c4 { grid-template-columns: 1fr 1fr !important; } .calc-tiles.c3, .calc-tiles.c2 { grid-template-columns: 1fr !important; } }

/* ============================================================
   SITE COMPONENTS (перенос инлайновых стилей прототипа в классы)
   ============================================================ */

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246,251,255,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: var(--header-h); }
.logo { background: none; border: none; cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 11px; flex: none; text-decoration: none; }
.logo-mark { height: 42px; width: auto; display: block; flex: none; }
.logo-word { display: flex; flex-direction: column; line-height: 1; }
.logo-word b { font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: #143a5e; white-space: nowrap; }
.logo-word i { font-style: normal; font-size: 9.5px; letter-spacing: .17em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; white-space: nowrap; }
.logo--light .logo-word b { color: #fff; }
.logo--light .logo-word i { color: rgba(255,255,255,.62); }
.logo img:not(.logo-mark) { height: 34px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 0; }
.nav-link { background: none; border: none; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 500; padding: 8px 8px; border-radius: 9px; white-space: nowrap; color: var(--ink); text-decoration: none; }
.nav-link:hover, .nav-link.is-active { color: var(--blue-deep); }
.icon-pill { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: #fff; border: 1.5px solid var(--line); color: var(--blue-deep); }
.icon-pill:hover { border-color: var(--accent); color: var(--accent); }
.burger { background: #fff; border: 1.5px solid var(--line); border-radius: 11px; width: 46px; height: 46px; place-items: center; cursor: pointer; color: var(--ink); }

/* ---- Mobile menu ---- */
.mm-overlay { position: fixed; inset: 0; z-index: 80; }
.mm-backdrop { position: absolute; inset: 0; background: rgba(15,40,70,.4); backdrop-filter: blur(2px); }
.mm-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px,86vw); background: var(--bg); box-shadow: var(--sh-lg); display: flex; flex-direction: column; padding: 18px; animation: slideIn .25s ease; }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes slideInL { from { transform: translateX(-100%); } to { transform: none; } }
.mm-link { text-align: left; background: none; border: none; border-bottom: 1px solid var(--line-soft); padding: 15px 6px; font-size: 17px; font-weight: 500; color: var(--ink); cursor: pointer; font: inherit; text-decoration:none; }

/* ---- Mobile sticky bar ---- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); display: none; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; }
@media (max-width: 920px) { .mobile-bar { display: grid; } }
.mobile-bar .btn { padding: 11px 8px; font-size: 13.5px; }

/* ---- Hero ---- */
.hero { background: var(--grad-cool); border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.hero__inner { padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; max-width: 520px; }
.mini-adv { display: flex; align-items: center; gap: 10px; }
.mini-adv .ic { width: 38px; height: 38px; border-radius: 11px; background: var(--ice); color: var(--blue); display: grid; place-items: center; flex: none; }
.mini-adv span:last-child { font-size: 14.5px; font-weight: 500; line-height: 1.3; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; }
.hero-stat { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; }
.hero-stat svg { color: var(--blue); }

/* ---- Hero scene (SVG box) ---- */
.hero-scene { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid #fff; box-shadow: var(--sh-lg); pointer-events: none; }
.hero-scene--home { background: radial-gradient(120% 90% at 80% 4%, rgba(15,166,222,.10), transparent 52%), linear-gradient(168deg,#FFFFFF 0%, #F4F4F2 56%, #EAEAE7 100%); }
.hero-scene--install { background: linear-gradient(168deg,#FFFFFF 0%, #F4F4F2 60%, #EAEAE7 100%); }

/* ---- home hero: статичная иллюстрация ---- */
.hero-img-card { display: block; line-height: 0; }
.hero-img { display: block; width: 100%; height: auto; border-radius: inherit; }

/* ---- Service / product / case / review cards ---- */
.svc-card { text-align: left; border: 1px solid var(--line-soft); cursor: pointer; padding: 22px; display: flex; flex-direction: column; gap: 12px; font: inherit; background: #fff; border-radius: var(--r-lg); text-decoration:none; color:var(--ink); }
.svc-card .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--grad-ice); color: var(--blue); display: grid; place-items: center; }
.svc-card .more { display:flex; align-items:center; gap: 6px; color: var(--blue); font-weight: 600; font-size: 14.5px; margin-top: auto; }

.prod-card { display: flex; flex-direction: column; }
.prod-card__media { position: relative; padding: 16px 16px 0; }
.prod-card__body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.prod-card__price { font-size: 22px; font-weight: 800; color: var(--ink); }
.prod-badge-tl { position: absolute; top: 24px; left: 24px; }
.prod-badge-tr { position: absolute; top: 24px; right: 24px; background:#fff; box-shadow: var(--sh-xs); }

.case-card .case-cover { height: 200px; border-radius: 0; }
.case-card__body { padding: 18px; }

.review-card { padding: 24px; display: flex; flex-direction: column; gap: 14px; height: 100%; }
.review-stars { display: flex; gap: 3px; color: var(--cyan); }
.review-ava { width: 42px; height: 42px; border-radius: 99px; background: var(--ice); color: var(--blue-deep); display: grid; place-items: center; font-weight: 700; }

/* ---- Steps / factors ---- */
.steps-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-5); }
.steps-grid > * { flex: 1 1 240px; max-width: 300px; }
.step-card { padding: 22px; position: relative; }
.step-card .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--grad-ice); color: var(--blue); display: grid; place-items: center; }
.step-card .num { font-size: 30px; font-weight: 800; color: var(--line); letter-spacing: -0.04em; }
.factors-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-5); }
.factors-grid > * { flex: 1 1 210px; max-width: 270px; }
/* центрированная сетка карточек-иконок (Что входит и т.п.) — любое число ровно */
.cards-center { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-4); }
.cards-center > * { flex: 1 1 200px; max-width: 264px; }
.factor { display:flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: #fff; border-radius: 16px; border: 1px solid var(--line-soft); }
.factor .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--ice-2); color: var(--blue); display: grid; place-items: center; flex: none; }

/* ---- generic grids ---- */
.grid-auto-250 { grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); }
.grid-auto-265 { grid-template-columns: repeat(auto-fill,minmax(265px,1fr)); }
.grid-auto-255 { grid-template-columns: repeat(auto-fill,minmax(255px,1fr)); }
.grid-auto-300 { grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); }
.grid-auto-280 { grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); }
.grid-auto-230 { grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); }
.grid-auto-240 { grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); }
.grid-auto-220 { grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); }
.grid-2 { grid-template-columns: 1fr 1fr; }

/* ---- quick select / faq / price split ---- */
.quick-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.price-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: flex-start; }
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; }
.faq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; align-items: start; margin-top: 12px; }
.faq-cols .acc { align-self: start; }
.faq-ask { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.faq-ask-text { font-size: 17px; font-weight: 600; color: var(--ink); }

/* ---- marketplace note ---- */
.mp-note { border-radius: 24px; padding: 40px 44px; background: var(--grad-ice); border: 1px solid #fff; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.mp-note .ic { width: 64px; height: 64px; border-radius: 18px; background: #fff; color: var(--blue); display: grid; place-items: center; box-shadow: var(--sh-sm); }

/* ---- business ---- */
.biz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.biz-card { padding: 20px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.biz-grid, .biz-grid > div, .biz-grid > div > div { min-width: 0; }

/* ---- final form ---- */
.final-grid { border-radius: 28px; overflow: hidden; background: var(--grad-deep); box-shadow: var(--sh-lg); display: grid; grid-template-columns: 1.1fr 1fr; }
.final-grid__left { padding: 48px; color: #fff; position: relative; overflow: hidden; }
.final-grid__right { padding: 36px; background: #fff; }

/* ---- catalog / product / calc layouts ---- */
.catalog-layout { display: grid; grid-template-columns: 264px 1fr; gap: 32px; align-items: flex-start; }
.product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: flex-start; }
.calc-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: flex-start; }
.sticky-top { position: sticky; top: 92px; }
/* В карточке товара галерея НЕ липнет — иначе контент уезжает под фото при скролле */
.product-layout .sticky-top { position: static; top: auto; }
/* МОБАЙЛ: на многих .wrap инлайн `padding:X 0 Y` (или .mhero) занулял боковые отступы —
   на десктопе это пряталось за центрированием по max-width, а на мобиле контент липнул
   к краям и обрезался. Принудительно возвращаем боковой гаттер на ≤920px. Десктоп не трогаем. */
@media (max-width: 920px) {
  .wrap { padding-left: var(--gutter) !important; padding-right: var(--gutter) !important; }
}
.filter-group { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line-soft); }
.filter-group__title { font-weight: 700; font-size: 14.5px; margin-bottom: 14px; }

/* ---- quiz ---- */
.quiz { padding: 0; overflow: hidden; max-width: 560px; }
.quiz.embed { max-width: 100%; margin: 0; }
.quiz-tiles { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.quiz-tile { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 16px 8px; border-radius: 14px; cursor: pointer; border: 1.5px solid var(--line); background: #fff; font: inherit; text-align: center; }
.quiz-tile.is-active { border-color: var(--accent); background: var(--ice-2); }
.quiz-tile .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--ice); color: var(--accent-deep); display: grid; place-items: center; }
.quiz-area { padding: 16px 18px; border-radius: 14px; cursor: pointer; text-align: left; border: 1.5px solid var(--line); background: #fff; font: inherit; display:flex; align-items:center; justify-content:space-between; gap:16px; width:100%; }
.quiz-area.is-active { border-color: var(--accent); background: var(--ice-2); }

/* ---- calc tiles ---- */
.calc-tile { text-align: left; cursor: pointer; font: inherit; padding: 13px 15px; border-radius: 13px; background: #fff; border: 1.5px solid var(--line); }
.calc-tile.is-active { background: var(--ice-2); border-color: var(--accent); }
.calc-tile__title { font-weight: 700; font-size: 14.5px; }
.calc-opt { text-align: left; cursor: pointer; font: inherit; display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 13px; background: #fff; border: 1.5px solid var(--line); }
.calc-opt.is-active { background: var(--ice-2); border-color: var(--accent); }
.calc-opt .cb { width: 22px; height: 22px; border-radius: 7px; flex: none; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--line); }
.calc-opt.is-active .cb { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---- modal ---- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; }
/* атрибут hidden должен прятать элемент даже при наличии display у класса (.modal/.note/.mm-overlay/квиз) */
[hidden] { display: none !important; }

/* «популярная» карточка прайса — аккуратный акцент вместо чёрной кнопки */
.price-card--pop { border: 1.5px solid var(--accent); box-shadow: 0 14px 34px -16px rgba(15,166,222,.5); overflow: visible; }
.price-card { overflow: visible; }
.pq { position: relative; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--line); color: var(--ink-2); font-size: 10.5px; font-weight: 700; cursor: help; flex: none; outline: none; }
.pq:hover, .pq:focus, .pq.is-open { background: var(--accent-bright); color: #fff; }
.pq::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translateX(-50%); width: 210px; background: #1a1c1e; color: #fff; font-size: 12px; font-weight: 500; line-height: 1.42; letter-spacing: 0; text-align: left; padding: 9px 11px; border-radius: 10px; box-shadow: 0 10px 28px -8px rgba(0,0,0,.45); opacity: 0; visibility: hidden; transition: opacity .15s ease, visibility .15s ease; z-index: 40; pointer-events: none; white-space: normal; }
.pq::before { content: ''; position: absolute; bottom: calc(100% + 3px); left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #1a1c1e; opacity: 0; visibility: hidden; transition: opacity .15s ease; z-index: 40; }
.pq:hover::after, .pq:focus::after, .pq.is-open::after, .pq:hover::before, .pq:focus::before, .pq.is-open::before { opacity: 1; visibility: visible; }
.price-pop-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; background: linear-gradient(120deg, var(--accent-bright), var(--accent-deep)); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 13px; border-radius: 99px; box-shadow: 0 7px 16px -4px rgba(15,166,222,.55); z-index: 2; }

/* галерея товара: миниатюры показывают фото целиком, активная подсвечена */
.prod-thumb { flex: 1; aspect-ratio: 4 / 3; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; background: #fff; padding: 6px; display: grid; place-items: center; transition: border-color .15s ease; }
.prod-thumb:hover { border-color: var(--accent-bright); }
.prod-thumb.is-active { border-color: var(--accent); }
.prod-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* карточки-рекомендации в результате квиза */
.quiz-rec { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.quiz-rec:hover { border-color: var(--accent-bright); box-shadow: 0 8px 20px -10px rgba(15,166,222,.35); }
.quiz-rec__img { width: 54px; height: 54px; flex: none; border-radius: 10px; background: #fff; border: 1px solid var(--line-soft); display: grid; place-items: center; overflow: hidden; }
.quiz-rec__img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.quiz-rec__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.quiz-rec__name { font-weight: 700; font-size: 14px; line-height: 1.25; }
.quiz-rec__meta { font-size: 12.5px; color: var(--ink-2); }
.quiz-rec__price { font-weight: 800; font-size: 15px; white-space: nowrap; }

/* чип типа заявки (только показ, клиент не выбирает) */
.lead-type-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; background: var(--ice-2); border: 1px solid var(--line-soft); border-radius: 10px; font-size: 13.5px; color: var(--ink-2); align-self: flex-start; }
.lead-type-chip strong { color: var(--ink); font-weight: 700; }

/* куки-баннер */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; max-width: 920px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px -12px rgba(15,40,70,.28); padding: 15px 18px; }
.cookie-banner__text { display: flex; align-items: flex-start; gap: 11px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; flex: 1 1 320px; }
.cookie-banner__text a { color: var(--accent-deep); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 8px; align-items: center; flex: none; }
@media (max-width: 720px) { .cookie-banner { bottom: 80px; left: 10px; right: 10px; padding: 13px 14px; } }

/* акция-«подарок» — лёгкая карточка без тяжёлого оверлея */
.promo-gift { position: fixed; left: 18px; bottom: 18px; z-index: 80; width: 320px; max-width: calc(100vw - 36px); background: linear-gradient(180deg, #fff 0%, #f4fbff 100%); border: 1px solid rgba(15,166,222,.18); border-radius: 22px; padding: 20px; box-shadow: 0 24px 56px -20px rgba(23,26,29,.34); color: var(--ink); overflow: hidden; animation: promoIn .5s cubic-bezier(.2,.8,.3,1); }
.promo-gift__shine { position: absolute; inset: -36px -44px auto auto; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(63,194,240,.20), rgba(63,194,240,0) 70%); pointer-events: none; }
@keyframes promoShine { 0% { background-position: 140% 0; } 55%, 100% { background-position: -40% 0; } }
@keyframes promoIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.promo-gift__close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 10px; background: rgba(23,26,29,.06); border: 0; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; z-index: 2; }
.promo-gift__close:hover { background: rgba(23,26,29,.10); color: var(--ink); }
.promo-gift__ic { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(145deg, #3fc2f0, #0b82b4); display: grid; place-items: center; color: #fff; margin-bottom: 12px; position: relative; z-index: 1; box-shadow: 0 10px 22px -8px rgba(15,166,222,.55); }
.promo-gift__kicker { display: inline-flex; align-items: center; position: relative; z-index: 1; margin-bottom: 8px; padding: 5px 10px; border-radius: 999px; background: var(--ice); color: var(--accent-deep); font-size: 11px; font-weight: 800; letter-spacing: .10em; text-transform: uppercase; }
.promo-gift__title { font-weight: 800; font-size: 18px; line-height: 1.18; position: relative; z-index: 1; }
.promo-gift__text { font-size: 14px; color: var(--ink-2); margin-top: 7px; line-height: 1.45; position: relative; z-index: 1; }
.promo-gift__timer { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; margin-top: 12px; color: var(--ink-2); position: relative; z-index: 1; padding: 7px 10px; border-radius: 999px; background: rgba(15,166,222,.08); }
.promo-gift__timer b { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--accent-deep); font-size: 14.5px; }
.promo-gift .btn { margin-top: 13px; position: relative; z-index: 1; }
@media (max-width: 920px) { .promo-gift { left: 16px; right: 16px; bottom: calc(90px + env(safe-area-inset-bottom)); width: auto; max-width: none; padding: 18px; border-radius: 22px; } .promo-gift .btn { min-height: 50px; } }
.promo-gift.is-flying { transition: transform .56s cubic-bezier(.5,.05,.4,1), opacity .5s ease; opacity: 0; pointer-events: none; }
/* мини-значок подарка в шапке (куда «улетает») */
.promo-mini { position: relative; width: 42px; height: 42px; border-radius: 13px; border: 1px solid rgba(15,166,222,.22); background: linear-gradient(180deg, #fff, #eef9ff); color: var(--accent-deep); display: grid; place-items: center; cursor: pointer; flex: none; box-shadow: 0 8px 18px -10px rgba(15,40,70,.42); animation: promoMiniIn .42s cubic-bezier(.2,.8,.3,1); }
.promo-mini:hover { transform: translateY(-1px); border-color: var(--accent); box-shadow: 0 10px 22px -11px rgba(15,166,222,.55); }
.promo-mini__pulse { position: absolute; inset: 0; border-radius: 12px; animation: promoPulse 2.2s ease-out infinite; pointer-events: none; }
@keyframes promoPulse { 0% { box-shadow: 0 0 0 0 rgba(63,194,240,.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(63,194,240,0); } }
@keyframes promoMiniIn { from { transform: scale(.35); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* акценты на карточках-перечислениях: неон-края при наведении (ПК), мягкий акцент (мобила) */
.card, .factor, .mini-adv { transition: transform .22s ease, box-shadow .26s ease, border-color .24s ease; }
@media (hover: hover) and (min-width: 921px) {
  .card:hover, .factor:hover, .mini-adv:hover { transform: translateY(-3px); border-color: var(--accent-bright); box-shadow: 0 0 0 1px var(--accent-bright), 0 16px 40px -14px rgba(15,166,222,.4), 0 0 22px -7px rgba(15,166,222,.5); }
  .price-card:hover { transform: translateY(-3px); }
  .price-card--pop:hover { box-shadow: 0 0 0 1.5px var(--accent), 0 18px 44px -14px rgba(15,166,222,.5), 0 0 24px -6px rgba(15,166,222,.55); }
}
@media (max-width: 920px) {
  .factor .ic, .mini-adv .ic, .step-card .ic { background: linear-gradient(145deg, rgba(15,166,222,.16), rgba(15,166,222,.05)) !important; color: var(--accent-deep) !important; }
}
.modal__backdrop { position: absolute; inset: 0; background: rgba(15,40,70,.45); backdrop-filter: blur(3px); animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__panel { position: relative; width: min(520px,100%); max-height: 92vh; overflow: auto; background: #fff; border-radius: 22px; box-shadow: var(--sh-lg); animation: pop .25s cubic-bezier(.2,.8,.3,1); }
.modal__head { padding: 26px 28px; background: var(--grad-ice); border-bottom: 1px solid var(--line-soft); border-radius: 22px 22px 0 0; }
.modal__close { position: absolute; top: 16px; right: 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.modal__body { padding: 22px 28px 28px; }

/* ---- footer ---- */
.footer { color: #fff; }
.footer__inner { padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-link { display: inline-flex; align-items: center; border-radius: 8px; transition: color .15s ease; background:none; border:none; text-align:left; padding:0; cursor:pointer; font:inherit; font-size:14.5px; color: rgba(255,255,255,.72); text-decoration:none; }
.footer-link:hover { color: #fff !important; }
.footer__soc { width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; }

/* ---- text content (legal / seo) ---- */
.prose { max-width: 820px; color: var(--ink); }
.prose p { margin: 0 0 14px; line-height: 1.65; }
.prose h2 { font-size: 26px; margin: 28px 0 12px; }
.prose h3 { font-size: 20px; margin: 22px 0 10px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--blue-deep); text-decoration: underline; }
.seo-block { color: var(--ink-2); }
.seo-block p { margin: 0 0 12px; line-height: 1.6; font-size: 15px; }

/* ---- responsive collapses ---- */
@media (max-width: 920px) {
  .hero-grid, .quick-grid, .price-grid, .biz-grid, .final-grid,
  .product-layout, .catalog-layout, .calc-layout, .faq-grid, .faq-cols, .mp-note { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 28px !important; }
  .mp-note { text-align: center; }
  .final-grid__left { padding: 32px 24px !important; }
  .hero-mini { grid-template-columns: 1fr 1fr; }
  .quiz-tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr !important; }
  .hero-mini { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .logo-word i { display: none; } }
@media (max-width: 430px) { .logo-mark { height: 36px; } .logo-word b { font-size: 16px; } }
@media (max-width: 480px) { .row:has(> .btn) { flex-wrap: wrap; } .row:has(> .btn) > .btn { flex: 1 1 auto; } }
@media (max-width: 420px) { .btn { white-space: normal; text-align: center; } }

/* ---- Product images: единый вид (официальные рендеры — на белом, целиком, с воздухом) ---- */
.ph.prod-img { background: #fff !important; border: 1px solid var(--line-soft); border-radius: var(--r-md); }
.ph.prod-img img { object-fit: contain; padding: 16px; }
.prod-card__media .ph.prod-img { border-radius: var(--r-sm); }

/* ============================================================
   MOBILE-FIRST INTERFACE — «Северный Ветер» mobile landing system
   Каждая страница = отдельный мобильный лендинг. Рендерится только
   внутри обёрток .m-only / .hide-desktop (≤920px). Десктоп не трогаем.
   Палитра: графит ink + лазурный акцент (#0FA6DE), стекло, мягкие тени.
   ============================================================ */
.m-only { display: none; }
/* overflow-x: clip (а НЕ hidden) — гасит гор. скролл, но НЕ ломает position:sticky у шапки */
@media (max-width: 920px) { .m-only { display: block; } html, body { overflow-x: clip; } }

/* токены акцента для мобильных блоков (лазурь) */
:root {
  --m-accent: #0FA6DE;
  --m-accent-deep: #0B82B4;
  --m-accent-soft: #E7F4FA;
  /* затемнён до AA (белый текст ≥4.5:1 даже на светлом крае градиента) */
  --m-grad-accent: linear-gradient(135deg, #0A78A8 0%, #0A6088 100%);
}

/* секционные отступы мобильного лендинга чуть плотнее */
@media (max-width: 920px) {
  .m-sec { padding: 26px 0; }
  .m-sec--tight { padding: 16px 0; }
  .m-sec--flush { padding-top: 4px; }
}

/* ---- Mobile section head ---- */
.m-sechead { margin-bottom: 16px; }
.m-sechead .eyebrow { color: var(--m-accent-deep); }
.m-sechead h2 { font-size: 23px; line-height: 1.18; margin-top: 9px; letter-spacing: -.02em; }
.m-sechead p { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }

/* ============================================================ MOBILE HERO ============================================================ */
.mhero { padding: 16px 0 4px; }
.mhero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.mhero__title { font-size: 31px; line-height: 1.1; letter-spacing: -.03em; font-weight: 800; color: var(--ink); margin: 0; }
.mhero__title .hl { color: var(--m-accent-deep); }
.mhero__sub { margin-top: 13px; color: var(--ink-2); font-size: 16px; line-height: 1.52; }
.mhero__visual { margin-top: 18px; border-radius: 20px; overflow: hidden; border: 1px solid #fff; aspect-ratio: 4 / 3;
  box-shadow: 0 18px 44px -22px rgba(15,40,70,.4); background: var(--grad-ice); line-height: 0; }
.mhero__visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mhero__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 18px; }
.mfact { background: rgba(255,255,255,.85); backdrop-filter: blur(4px); border: 1px solid var(--line-soft);
  border-radius: 15px; padding: 12px 11px; box-shadow: var(--sh-xs); display: flex; flex-direction: column; gap: 7px; }
.mfact .ic { width: 30px; height: 30px; border-radius: 9px; background: var(--m-accent-soft); color: var(--m-accent-deep);
  display: grid; place-items: center; }
.mfact b { font-size: 13.5px; font-weight: 800; line-height: 1.12; letter-spacing: -.01em; }
.mfact span { font-size: 12.5px; color: var(--ink-2); line-height: 1.2; }
.mhero__cta { display: grid; gap: 10px; margin-top: 20px; }
.mhero__cta .btn { width: 100%; min-height: 54px; font-size: 16.5px; }

/* акцентная вариация большой кнопки (лазурная заливка) */
.btn-azure { background: var(--m-grad-accent); color: #fff; border-color: transparent; box-shadow: 0 10px 24px -8px rgba(15,166,222,.55); }
.btn-azure:hover { color: #fff; box-shadow: 0 12px 28px -8px rgba(15,166,222,.6); }

/* ============================================================ TASK CHOOSER (smart «Что нужно?») ============================================================ */
.task-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.task-card { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; background: #fff;
  border: 1px solid var(--line-soft); border-radius: 17px; padding: 15px 15px 14px; box-shadow: var(--sh-sm);
  text-decoration: none; color: var(--ink); min-height: 128px; position: relative; transition: transform .14s ease, box-shadow .2s ease; }
.task-card:active { transform: translateY(1px); }
.task-card.is-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 0; padding: 15px 16px; }
.task-card .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--grad-ice); color: var(--m-accent-deep);
  display: grid; place-items: center; flex: none; }
.task-card.is-wide .ic { background: var(--m-grad-accent); color: #fff; }
.task-card__t { display: flex; flex-direction: column; gap: 3px; }
.task-card b { font-size: 15.5px; font-weight: 700; line-height: 1.18; letter-spacing: -.01em; }
.task-card span { font-size: 12.5px; color: var(--ink-2); line-height: 1.32; }
.task-card .go { margin-top: auto; color: var(--m-accent-deep); display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700; }
.task-card.is-wide .go { margin-top: 0; margin-left: auto; }

/* ============================================================ MOBILE MENU — выбор задачи ============================================================ */
.m-menu .mm-panel { width: min(380px, 92vw); padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); overflow-y: auto; }
.m-menu__title { font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin: 10px 4px 12px; }
.m-menu-list { display: flex; flex-direction: column; gap: 8px; }
.m-menu-item { display: flex; align-items: center; gap: 13px; padding: 12px 13px; border-radius: 14px; background: #fff;
  border: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); box-shadow: var(--sh-xs); }
.m-menu-item:active { background: var(--ice-2); }
.m-menu-item .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--grad-ice); color: var(--m-accent-deep);
  display: grid; place-items: center; flex: none; }
.m-menu-item b { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
.m-menu-item .chev { margin-left: auto; color: var(--ink-3); flex: none; }
.m-menu-item.is-accent .ic { background: var(--m-grad-accent); color: #fff; }
.m-menu__foot { margin-top: 18px; display: grid; gap: 9px; }
.m-menu__foot .btn { width: 100%; min-height: 50px; }

/* ============================================================ STICKY CTA v2 ============================================================ */
@media (max-width: 920px) {
  .mobile-bar { grid-template-columns: 1fr 1fr 1.7fr; padding-left: 10px; padding-right: 10px;
    transform: translateY(130%); transition: transform .3s cubic-bezier(.2,.8,.3,1); }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar .btn { min-width: 0; min-height: 52px; padding: 8px 6px; font-size: 12.5px; flex-direction: column; gap: 4px; line-height: 1.1; }
  .mobile-bar .btn span { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-bar .btn svg { width: 19px; height: 19px; }
  .mobile-bar .btn.m-sticky-main { flex-direction: row; gap: 7px; font-size: 14px; font-weight: 700; }
  .mobile-bar .btn.m-sticky-main svg { width: 20px; height: 20px; }
}

/* ============================================================ SHARED MOBILE BLOCKS ============================================================ */
/* «Можно просто прислать фото» */
.m-photo { background: linear-gradient(150deg, #F0F8FC 0%, #E7F4FA 100%); border: 1px solid #fff;
  border-radius: 20px; padding: 22px 20px; box-shadow: var(--sh-sm); }
.m-photo__ic { width: 52px; height: 52px; border-radius: 15px; background: var(--m-grad-accent); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 20px -6px rgba(15,166,222,.5); }
.m-photo h3 { font-size: 19px; margin-top: 14px; letter-spacing: -.02em; }
.m-photo p { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.m-photo .btn { width: 100%; margin-top: 16px; min-height: 52px; }

/* «Что будет после заявки» */
.m-after { background: #fff; border: 1px solid var(--line-soft); border-radius: 20px; padding: 20px 18px; box-shadow: var(--sh-sm); }
.m-after ol { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.m-after li { display: flex; gap: 13px; align-items: flex-start; padding: 11px 0; }
.m-after li + li { border-top: 1px dashed var(--line); }
.m-after .n { width: 28px; height: 28px; border-radius: 9px; background: var(--m-accent-soft); color: var(--m-accent-deep);
  font-weight: 800; font-size: 13.5px; display: grid; place-items: center; flex: none; }
.m-after li span { font-size: 14.5px; line-height: 1.4; padding-top: 3px; }

/* «Цена без сюрпризов» */
.m-price { background: var(--grad-ice); border: 1px solid #fff; border-radius: 20px; padding: 22px 20px; box-shadow: var(--sh-sm); }
.m-price__head { display: flex; align-items: center; gap: 12px; }
.m-price__ic { width: 46px; height: 46px; border-radius: 13px; background: #fff; color: var(--m-accent-deep);
  display: grid; place-items: center; box-shadow: var(--sh-xs); flex: none; }
.m-price h3 { font-size: 19px; letter-spacing: -.02em; }
.m-price p { margin-top: 12px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.m-price__label { font-size: 13px; font-weight: 700; color: var(--ink); margin-top: 16px; }
.m-price__chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.m-price__chips span { background: #fff; border: 1px solid var(--line-soft); border-radius: 999px;
  padding: 7px 13px; font-size: 12.5px; color: var(--ink-2); font-weight: 500; }

/* «Что входит» */
.m-incl { background: #fff; border: 1px solid var(--line-soft); border-radius: 20px; padding: 20px 18px; box-shadow: var(--sh-sm); }
.m-incl__group + .m-incl__group { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.m-incl__title { font-size: 13.5px; font-weight: 800; letter-spacing: -.01em; }
.m-incl ul { list-style: none; margin: 11px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.m-incl li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.m-incl li .ic { color: var(--ok); flex: none; margin-top: 1px; }
.m-incl__group--extra li .ic { color: var(--ink-3); }

/* мини-кейсы */
.m-cases { display: flex; flex-direction: column; gap: 13px; }
.m-case { background: #fff; border: 1px solid var(--line-soft); border-radius: 18px; overflow: hidden; box-shadow: var(--sh-sm); text-decoration: none; color: var(--ink); display: block; }
.m-case__cover { height: 168px; position: relative; }
.m-case__cover img { width: 100%; height: 100%; object-fit: cover; }
.m-case__badges { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.m-case__b { background: rgba(255,255,255,.92); backdrop-filter: blur(4px); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.m-case__body { padding: 15px 16px 17px; }
.m-case__obj { font-size: 12px; font-weight: 700; color: var(--m-accent-deep); letter-spacing: .02em; }
.m-case h3 { font-size: 17px; margin-top: 5px; letter-spacing: -.02em; }
.m-case__row { margin-top: 11px; }
.m-case__row dt { font-size: 12px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.m-case__row dd { margin: 3px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.42; }
.m-case__foot { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; gap: 8px; font-size: 13px; }
.m-case__foot .term { font-weight: 700; color: var(--ink); }

/* на мобиле показываем 4 популярные модели (десктоп — все) */
@media (max-width: 920px) { .m-prod-grid > *:nth-child(n+5) { display: none; } }

/* ---- smart-селектор (вкладки → панель): проблема/объект/польза ---- */
.m-tabs__btns { display: grid; gap: 8px; }
.m-tabs__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  padding: 13px 8px; min-height: 74px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line);
  color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 600; line-height: 1.15; text-align: center; cursor: pointer; }
.m-tabs__btn svg { color: var(--ink-3); }
.m-tabs__btn.is-active { border-color: var(--m-accent); background: var(--m-accent-soft); color: var(--m-accent-deep); }
.m-tabs__btn.is-active svg { color: var(--m-accent-deep); }
.m-tabs__panels { margin-top: 13px; }
.m-tabs__panel { background: #fff; border: 1px solid var(--line-soft); border-radius: 18px; padding: 18px; box-shadow: var(--sh-sm); animation: mFadeIn .25s ease; }
@keyframes mFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.m-tabs__h { font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.m-tabs__list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.m-tabs__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.m-tabs__list li .ic { color: var(--ok); flex: none; margin-top: 1px; }
.m-tabs__note { margin-top: 12px; display: flex; gap: 9px; align-items: flex-start; background: var(--m-accent-soft);
  border-radius: 12px; padding: 11px 13px; font-size: 14px; color: #0a607f; line-height: 1.4; }
.m-tabs__note svg { flex: none; margin-top: 1px; }

/* ---- smart-схема (вертикальный timeline, лёгкий импульс) ---- */
.m-schem { position: relative; }
.m-schem__line { position: absolute; left: 21px; top: 26px; bottom: 26px; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.m-schem__pulse { position: absolute; left: -1px; right: -1px; height: 54px; top: -54px; background: linear-gradient(180deg, transparent, var(--m-accent), transparent); }
@media (prefers-reduced-motion: no-preference) { .m-schem__pulse { animation: mSchemPulse 2.8s linear infinite; } }
@media (prefers-reduced-motion: reduce) { .m-schem__pulse { display: none; } }
@keyframes mSchemPulse { from { top: -54px; } to { top: 100%; } }
.m-schem__step { position: relative; display: flex; gap: 15px; align-items: flex-start; padding: 8px 0; }
.m-schem__node { width: 44px; height: 44px; border-radius: 13px; background: #fff; border: 1.5px solid var(--line);
  color: var(--m-accent-deep); display: grid; place-items: center; flex: none; position: relative; z-index: 1; box-shadow: var(--sh-xs); }
.m-schem__body { padding-top: 4px; }
.m-schem__t { font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; }
.m-schem__d { font-size: 13.5px; color: var(--ink-2); line-height: 1.4; margin-top: 3px; }
.m-schem__note { margin-top: 14px; display: flex; gap: 10px; align-items: flex-start; background: var(--grad-ice);
  border: 1px solid #fff; border-radius: 14px; padding: 13px 15px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.m-schem__note svg { color: var(--m-accent-deep); flex: none; margin-top: 1px; }

/* лёгкое появление мобильных секций (внутри reduced-motion already guarded) */
@media (prefers-reduced-motion: no-preference) {
  .m-rise { opacity: 0; transform: translateY(14px); }
  .m-rise.in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.3,1); }
}
