/* ЯРИС — лендинг. Палитра из брендбука: #97D5EF / #0089BF / #14314E */
:root {
  --ice: #97d5ef;
  --blue: #0089bf;
  --navy: #14314e;
  --ink: #07121f;
  --ink-2: #0b1a2c;
  --text: #e8f1f8;
  --muted: #8ea6bd;
  --line: rgba(151, 213, 239, .14);
  --glass: rgba(14, 34, 56, .55);
  --radius: 22px;
  --display: 'Unbounded', 'Arial Black', sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 clamp(15px, 1.05vw, 17px)/1.6 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.02em; line-height: 1.02; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--ice);
  margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--ice)); }
.h2 { font-size: clamp(34px, 5.2vw, 84px); text-transform: uppercase; }
.lead { font-size: clamp(16px, 1.25vw, 20px); color: #c4d6e6; max-width: 34em; }
.note { font-size: 13px; color: var(--muted); }

/* сплит-текст: маска на словах */
.split-line { overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }

/* ---------- фон, сцена, зерно ---------- */
.ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: var(--ga, 0);
  background: radial-gradient(38vmax 38vmax at var(--gx, 70%) var(--gy, 50%), rgba(0, 137, 191, .32), rgba(0, 137, 191, .08) 45%, transparent 70%);
}
.stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.grain {
  position: fixed; inset: -50%; z-index: 50; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} }

/* ---------- прелоадер ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; align-content: center; gap: 18px;
  background: radial-gradient(60% 50% at 50% 45%, #10304f 0%, var(--ink) 70%);
}
.loader__logo { width: min(46vw, 260px); aspect-ratio: 1; }
.loader__word { display: flex; gap: .08em; font: 700 clamp(28px, 4vw, 44px)/1 var(--display); letter-spacing: .08em; overflow: hidden; }
.loader__word span { display: inline-block; transform: translateY(110%); }
.loader__word span:nth-child(-n+2) { color: var(--blue); }
.loader__bar { width: 140px; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--ice); transform: scaleX(0); transform-origin: left; }

/* ---------- кнопки ---------- */
.btn {
  --bg: transparent; --fg: var(--text);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px; border-radius: 100px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg); font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  overflow: hidden; isolation: isolate;
}
.btn--primary { --bg: var(--blue); --fg: #fff; box-shadow: 0 10px 40px -10px rgba(0, 137, 191, .8); }
.btn--primary::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(120deg, var(--ice), #fff); transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn--primary:hover { color: var(--navy); }
.btn--primary:hover::before { transform: none; }
.btn--ghost { border-color: rgba(151, 213, 239, .35); }
.btn--ghost:hover { border-color: var(--ice); background: rgba(151, 213, 239, .08); }
.btn--light { --bg: #fff; --fg: var(--navy); margin-top: auto; align-self: flex-start; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }

/* ---------- шапка ---------- */
.header {
  position: fixed; z-index: 60; top: 14px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 2 * clamp(10px, 2vw, 28px)); max-width: 1400px;
  display: flex; align-items: center; gap: 28px; padding: 8px 8px 8px 20px;
  border-radius: 100px; border: 1px solid transparent;
  transition: background .5s var(--ease), border-color .5s var(--ease), backdrop-filter .5s, transform .5s var(--ease);
}
.header.is-solid { background: rgba(9, 24, 40, .72); border-color: var(--line); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.header.is-hidden { transform: translate(-50%, -140%); }
.header__logo img { width: 34px; height: auto; transition: transform .8s var(--ease); }
.header__logo:hover img { transform: rotate(-120deg) scale(1.05); }
.header__nav { display: flex; gap: 26px; margin-right: auto; }
.header__nav a { position: relative; text-decoration: none; font-size: 14px; font-weight: 500; color: #c4d6e6; transition: color .3s; }
.header__nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--ice); transform: scaleX(0); transition: transform .4s var(--ease); }
.header__nav a:hover { color: #fff; }
.header__nav a:hover::after { transform: none; }
.header__phone { font-weight: 700; text-decoration: none; font-size: 15px; white-space: nowrap; }
.burger { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 90px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(40% 55% at 72% 50%, rgba(0, 137, 191, .38), transparent 70%),
    radial-gradient(30% 40% at 85% 20%, rgba(151, 213, 239, .16), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(20, 49, 78, .9), transparent 70%);
}
.hero__inner { max-width: 1440px; }
.hero__title { font-size: clamp(52px, 9.4vw, 168px); font-weight: 700; text-transform: uppercase; line-height: .92; letter-spacing: -.035em; max-width: 7.5em; }
.hero__title em { font-style: normal; background: linear-gradient(95deg, var(--ice), var(--blue) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { margin-top: 30px; max-width: min(30em, 46vw); font-size: clamp(16px, 1.25vw, 20px); color: #c4d6e6; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__stats { list-style: none; display: flex; gap: clamp(20px, 3vw, 48px); padding: 0; margin: 56px 0 0; }
.hero__stats li { display: flex; align-items: center; gap: 12px; }
.hero__stats b { font: 600 clamp(28px, 2.8vw, 44px)/1 var(--display); color: var(--ice); }
.hero__stats span { font-size: 12px; line-height: 1.35; color: var(--muted); }
.scroll-hint { position: absolute; z-index: 2; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.scroll-hint i { width: 1px; height: 44px; background: linear-gradient(var(--ice), transparent); animation: hint 2s var(--ease) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- бегущая строка ---------- */
.marquee { position: relative; z-index: 2; overflow: hidden; border-block: 1px solid var(--line); background: rgba(7, 18, 31, .6); backdrop-filter: blur(6px); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { display: flex; align-items: center; gap: 40px; padding: 22px 20px; font: 500 clamp(16px, 1.6vw, 24px)/1 var(--display); text-transform: uppercase; white-space: nowrap; }
.marquee span::after { content: ''; width: 12px; height: 12px; background: var(--blue); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- преимущества ---------- */
/* пин-секции создают свой слой (position: fixed) — держим их над канвасом, свечение — в .ambient */
.adv, .inside, .prod { z-index: 2; }
.adv { position: relative; height: 100svh; }
.adv__inner { height: 100%; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.adv__head, .adv__list { grid-column: 2; }
.adv__inner { grid-template-rows: auto auto; align-content: center; gap: 40px; }
.adv__counter { display: flex; align-items: baseline; gap: 8px; margin-top: 26px; font-family: var(--display); }
.adv__counter b { font-size: 44px; color: var(--ice); font-weight: 600; }
.adv__counter span { color: var(--muted); }
.adv__progress { height: 2px; background: var(--line); margin-top: 14px; max-width: 360px; }
.adv__progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--ice)); transform-origin: left; transform: scaleX(.1667); }
.adv__list { list-style: none; margin: 0; padding: 0; position: relative; min-height: 250px; }
.adv__item {
  position: absolute; inset: 0 0 auto; padding: 30px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; transform: translateY(40px) scale(.97); filter: blur(6px);
  transition: opacity .6s var(--ease), transform .8s var(--ease), filter .6s var(--ease);
}
.adv__item.is-active { opacity: 1; transform: none; filter: none; }
.adv__item.is-past { transform: translateY(-40px) scale(.97); }
.adv__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, var(--blue), var(--navy)); margin-bottom: 20px; }
.adv__icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.adv__item h3 { font-size: clamp(22px, 2vw, 32px); margin-bottom: 12px; text-transform: uppercase; }
.adv__item p { color: #c4d6e6; max-width: 32em; }

/* ---------- устройство ---------- */
.inside { position: relative; height: 100svh; overflow: hidden; }
.inside__inner { padding-top: 120px; }
.inside__text { max-width: min(560px, 44vw); }
.inside__text .lead { margin-top: 22px; font-size: 16px; }
.callouts { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.callout {
  position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 12px; opacity: 0;
  font: 600 13px/1.2 var(--body); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  will-change: transform;
}
.callout i { width: 14px; height: 14px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 0 6px rgba(151, 213, 239, .2), 0 0 24px var(--ice); flex: none; margin-left: -7px; }
.callout span { padding: 9px 14px; border-radius: 100px; background: rgba(7, 18, 31, .75); border: 1px solid rgba(151, 213, 239, .4); backdrop-filter: blur(8px); }
.callout--alt i { background: #fff; }

/* ---------- производство ---------- */
.prod { position: relative; }
.prod__pin { height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 48px; overflow: hidden; }
.prod__head { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 16px 60px; }
.prod__head .eyebrow { grid-column: 1 / -1; margin: 0; }
.prod__head .lead { max-width: 22em; }
.prod__track { display: flex; gap: 18px; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.step {
  position: relative; width: clamp(240px, 22vw, 320px); min-height: 250px; padding: 28px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(20, 49, 78, .7), rgba(9, 24, 40, .6)); border: 1px solid var(--line);
  display: flex; flex-direction: column; overflow: hidden;
}
.step::after { content: ''; position: absolute; inset: auto -40% -60% auto; width: 80%; aspect-ratio: 1; background: radial-gradient(circle, rgba(0, 137, 191, .35), transparent 70%); }
.step b { font: 700 64px/1 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(151, 213, 239, .5); margin-bottom: auto; }
.step h3 { font-size: 18px; text-transform: uppercase; margin: 30px 0 10px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- характеристики ---------- */
.specs { position: relative; padding: clamp(90px, 12vw, 180px) 0; background: linear-gradient(var(--ink), #0a1b2d 30%, #0a1b2d 70%, var(--ink)); }
.specs__grid { display: grid; grid-template-columns: 1.05fr 1fr; grid-template-rows: auto 1fr; gap: 24px 60px; margin-top: 56px; align-items: start; }
.specs__photo { grid-row: span 2; margin: 0; border-radius: 28px; overflow: hidden; background: radial-gradient(60% 60% at 50% 45%, #163b60, #07121f); }
.specs__photo img { mix-blend-mode: lighten; transform: scale(1.02); }
.specs__nums { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.num { padding: 26px; background: var(--ink-2); }
.num b { display: flex; align-items: baseline; gap: 6px; font: 600 clamp(38px, 4vw, 64px)/1 var(--display); color: #fff; }
.num small { font-size: .38em; color: var(--ice); font-weight: 500; }
.num > span { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }
.specs__table { margin: 0; }
.specs__table div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.specs__table dt { color: var(--muted); }
.specs__table dd { margin: 0; font-weight: 600; text-align: right; }
.specs .note { margin-top: 20px; }

/* ---------- калькулятор ---------- */
.calc { position: relative; padding: clamp(90px, 10vw, 150px) 0; min-height: 100svh; display: flex; align-items: center; }
.calc::before { content: ''; position: absolute; inset: 0; background: radial-gradient(40% 55% at 75% 50%, rgba(0, 137, 191, .3), transparent 70%); }
.calc__panel { max-width: 560px; padding: clamp(24px, 3vw, 44px); border-radius: 30px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.calc__panel .h2 { font-size: clamp(30px, 3.6vw, 56px); }
.calc__form { display: grid; gap: 22px; margin-top: 32px; }
.field span { display: flex; justify-content: space-between; font-size: 14px; color: #c4d6e6; margin-bottom: 12px; }
.field output { font: 600 16px/1 var(--display); color: #fff; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--blue) var(--p, 25%), rgba(151, 213, 239, .18) var(--p, 25%)); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 6px solid var(--blue); box-shadow: 0 0 0 6px rgba(0, 137, 191, .25); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 6px solid var(--blue); cursor: grab; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: 14px; color: #c4d6e6; margin-bottom: 10px; padding: 0; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: 10px 16px; border-radius: 100px; border: 1px solid rgba(151, 213, 239, .25); font-size: 14px; cursor: pointer; transition: all .3s var(--ease); }
.chips input:checked + span { background: var(--ice); color: var(--navy); border-color: var(--ice); font-weight: 600; }
.chips input:focus-visible + span { outline: 2px solid var(--ice); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #c4d6e6; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); }
.calc__result { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 30px 0 16px; }
.calc__result div { padding: 20px; border-radius: 18px; background: linear-gradient(135deg, var(--blue), var(--navy)); }
.calc__result b { display: block; font: 700 clamp(40px, 4vw, 60px)/1 var(--display); }
.calc__result span { font-size: 13px; color: #d4ecf8; }

/* ---------- дилерам ---------- */
.dealers { position: relative; padding: clamp(90px, 12vw, 180px) 0; background: linear-gradient(var(--ink), var(--ink-2)); }
.dealers__top { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.dealers__logo { width: clamp(140px, 20vw, 300px); aspect-ratio: 1; flex: none; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 260px; padding: 30px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(20, 49, 78, .6), rgba(9, 24, 40, .6)); border: 1px solid var(--line); overflow: hidden;
  transition: transform .6s var(--ease), border-color .4s;
}
.card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(151, 213, 239, .12), transparent 45%); opacity: 0; transition: opacity .4s; }
.card:hover::before { opacity: 1; }
.card:hover { border-color: rgba(151, 213, 239, .35); }
.card--wide { grid-column: span 2; }
.card--accent { background: linear-gradient(140deg, var(--blue), var(--navy)); border-color: transparent; }
.card__k { font: 600 13px/1 var(--display); color: var(--ice); }
.card h3 { font-size: clamp(20px, 1.8vw, 28px); text-transform: uppercase; }
.card p { color: #c4d6e6; max-width: 36em; }
.steps3 { list-style: none; margin: 80px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps3 li { position: relative; padding-top: 28px; border-top: 1px solid var(--line); }
.steps3 b { position: absolute; top: -16px; left: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); font: 600 14px/1 var(--display); }
.steps3 h3 { font-size: 20px; text-transform: uppercase; margin: 10px 0 8px; }
.steps3 p { color: var(--muted); }

/* ---------- заявка ---------- */
.request { position: relative; padding: clamp(90px, 10vw, 160px) 0; overflow: hidden; }
.request::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 70% at 10% 60%, rgba(0, 137, 191, .28), transparent 70%); }
.request__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.request__text .lead { margin-top: 24px; }
.request__phone { display: inline-block; margin-top: 40px; font: 600 clamp(26px, 2.6vw, 40px)/1 var(--display); text-decoration: none; color: var(--ice); }
.request__text .note { display: block; margin-top: 8px; }
.form { display: grid; gap: 14px; padding: clamp(22px, 3vw, 40px); border-radius: 30px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.input { position: relative; display: block; }
.input input, .input textarea, .input select {
  width: 100%; padding: 26px 18px 10px; border-radius: 14px; border: 1px solid rgba(151, 213, 239, .2);
  background: rgba(7, 18, 31, .5); color: var(--text); font: 500 16px/1.3 var(--body); resize: vertical;
  transition: border-color .3s, background .3s;
}
.input select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--ice) 50%), linear-gradient(-45deg, transparent 50%, var(--ice) 50%); background-size: 6px 6px; background-position: calc(100% - 24px) 55%, calc(100% - 18px) 55%; background-repeat: no-repeat; }
.input select option { background: var(--ink-2); }
.input > span { position: absolute; left: 19px; top: 18px; font-size: 15px; color: var(--muted); pointer-events: none; transition: transform .3s var(--ease), font-size .3s, color .3s; transform-origin: left; }
.input input:focus, .input textarea:focus, .input select:focus { border-color: var(--ice); background: rgba(7, 18, 31, .8); outline: none; }
.input input:focus + span, .input input:not(:placeholder-shown) + span,
.input textarea:focus + span, .input textarea:not(:placeholder-shown) + span,
.input--select > span { transform: translateY(-10px); font-size: 12px; color: var(--ice); }
.input.is-invalid input { border-color: #ff7a7a; }
.hp { position: absolute; left: -9999px; }
.form__msg { min-height: 1.4em; font-size: 14px; }
.form__msg.is-ok { color: #7fe0b0; }
.form__msg.is-err { color: #ff9a9a; }
.form.is-sending button { opacity: .6; pointer-events: none; }

/* ---------- подвал ---------- */
.footer { position: relative; z-index: 2; border-top: 1px solid var(--line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); background: var(--ink); }
.footer__inner { display: grid; grid-template-columns: auto 1fr 1fr 1fr; gap: 30px; align-items: start; font-size: 14px; }
.footer__inner img { width: 40px; }
.footer a { text-decoration: none; }

/* ---------- анимации появления (стартовые состояния задаёт JS) ---------- */
.no-js .reveal-up { opacity: 1; }

/* ---------- планшет и мобилка ---------- */
@media (max-width: 1100px) {
  .header__nav { display: none; }
  .header { gap: 12px; }
  .header__phone { margin-left: auto; }
  .burger { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(9, 24, 40, .6); cursor: pointer; }
  .burger i { display: block; width: 18px; height: 2px; background: var(--text); transition: transform .4s var(--ease); }
  .burger[aria-expanded=true] i:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded=true] i:last-child { transform: translateY(-4px) rotate(-45deg); }
  .header__nav.is-open {
    display: flex; flex-direction: column; gap: 4px; position: absolute; top: calc(100% + 10px); left: 0; right: 0; padding: 16px;
    border-radius: 24px; background: rgba(9, 24, 40, .95); border: 1px solid var(--line); backdrop-filter: blur(18px);
  }
  .header__nav.is-open a { padding: 14px 10px; font-size: 18px; font-family: var(--display); }
  .specs__grid { grid-template-columns: 1fr; }
  .specs__photo { grid-row: auto; max-width: 560px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .request__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: auto 1fr; }
}

@media (max-width: 760px) {
  .header { padding: 6px 6px 6px 14px; top: 10px; }
  .header__phone { font-size: 14px; }
  .header .btn--sm { display: none; }
  .hero { align-items: flex-end; padding: 0 0 70px; }
  .hero__inner { padding-top: 50svh; }
  .hero__glow { background: radial-gradient(70% 40% at 50% 28%, rgba(0, 137, 191, .45), transparent 70%); }
  .hero__lead { margin-top: 18px; max-width: none; }
  .hero__cta { margin-top: 26px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__stats { margin-top: 32px; gap: 16px; justify-content: space-between; }
  .hero__stats li { flex-direction: column; align-items: flex-start; gap: 6px; }
  .scroll-hint { display: none; }

  .adv__inner { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: stretch; gap: 0; padding-top: 88px; padding-bottom: 20px; }
  .adv__head, .adv__list { grid-column: 1; }
  .adv__head .h2 { font-size: 26px; }
  .adv__head .eyebrow { margin-bottom: 12px; }
  .adv__counter { margin-top: 10px; }
  .adv__counter b { font-size: 28px; }
  .adv__list { align-self: end; min-height: 270px; }
  .adv__item { inset: auto 0 0; padding: 22px; }
  .adv__icon { width: 44px; height: 44px; margin-bottom: 14px; }
  .adv__item h3 { font-size: 20px; }
  .adv__item p { font-size: 14px; }

  .inside__inner { padding-top: 88px; }
  .inside__text { max-width: none; }
  .inside__text .h2 { font-size: 30px; }
  .inside__text .lead { font-size: 14px; margin-top: 12px; }
  .callout { font-size: 10px; }
  .callout span { padding: 6px 10px; }

  .prod__pin { gap: 28px; }
  .prod__head { grid-template-columns: 1fr; }
  .step { width: 76vw; min-height: 220px; }

  .specs__nums { grid-template-columns: 1fr 1fr; }
  .num { padding: 18px; }
  .specs__table div { font-size: 14px; }

  .calc { align-items: flex-end; padding-top: 48svh; }
  .calc::before { background: radial-gradient(70% 30% at 50% 20%, rgba(0, 137, 191, .35), transparent 70%); }

  .dealers__top { flex-direction: column-reverse; align-items: flex-start; }
  .dealers__logo { width: 120px; }
  .bento { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .card { min-height: 0; }
  .steps3 { grid-template-columns: 1fr; gap: 40px; margin-top: 60px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- переключатель «покупатель / дилер» ---------- */
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 100px; background: rgba(7, 18, 31, .6); border: 1px solid var(--line); margin-bottom: 6px; }
.seg label { position: relative; z-index: 1; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 13px 10px; text-align: center; font-weight: 600; font-size: 14px; border-radius: 100px; cursor: pointer; transition: color .4s var(--ease); }
.seg input:checked + span { color: var(--navy); }
.seg input:focus-visible + span { outline: 2px solid var(--ice); outline-offset: 2px; }
.seg i { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 100px; background: var(--ice); transition: transform .5s var(--ease); }
.form[data-mode=dealer] .seg i { transform: translateX(100%); }
.form[data-mode=buy] [data-for=dealer] { display: none; }
.form[data-mode=buy] .form__row:has([data-for=dealer]) { grid-template-columns: 1fr; }
#calcOrder { margin-top: 4px; }

/* ---------- без WebGL: фото вместо 3D ---------- */
.no-webgl .hero::after {
  content: ''; position: absolute; z-index: 1; right: 3vw; top: 50%; width: min(44vw, 640px); aspect-ratio: 1; transform: translateY(-50%);
  background: url(../img/radiator-box.webp) center / contain no-repeat; mix-blend-mode: lighten;
}
@media (max-width: 760px) { .no-webgl .hero::after { top: 70px; right: 50%; width: 80vw; transform: translateX(50%); } }
