/* Композиция: ливрея корпуса. Верх синий, низ белый, аппарат стоит на стыке.
   Дальше живая панель, таблица, модели, завод, вопросы, покупка. Углы срезаны как у плашек MIG/PULSE на боку аппарата. */
:root {
  --blue: #2a3aa6;      /* окраска корпуса */
  --deep: #1d3c85;      /* логотип */
  --ink: #1a2142;
  --soft: #55607f;
  --panel: #c9cdd2;     /* серебро лицевой панели */
  --paper: #ffffff;
  --fog: #eceff4;
  --line: #cfd6e2;
  --peak: #e30613;      /* красный из схемы InterPulse */
  --base: #0066b1;      /* синий из схемы InterPulse */
  --ozon: #005bff;
  --display: "Play", "Bahnschrift", "DIN Condensed", Arial, sans-serif;
  --text: "Golos Text", "Segoe UI", Arial, sans-serif;
  --cut: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  --ease: cubic-bezier(.23, 1, .32, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--text); }
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
p { margin: 0; max-width: 62ch; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
section { scroll-margin-top: 64px; }
:focus-visible { outline: 3px solid #ffb21f; outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 30; background: #fff; color: var(--ink); padding: 12px 18px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; background: var(--blue); color: #fff; font: 600 1.0625rem/1.2 var(--text); text-decoration: none; clip-path: var(--cut); transition: transform .16s var(--ease), background-color .16s ease; }
.btn:active { transform: scale(.97); }
.btn--s { min-height: 44px; padding: 0 20px; font-size: 1rem; }
.btn--w { background: #fff; color: var(--blue); }
.btn--ozon { background: #fff; color: var(--ozon); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #1f2d88; } .btn--w:hover, .btn--ozon:hover { background: #dfe6ff; } }
.link { color: var(--blue); font-weight: 600; text-underline-offset: .28em; text-decoration-thickness: 2px; }
.link--w { color: #fff; }

.top { position: sticky; top: 0; z-index: 20; background: #fff; }
.top__in { display: flex; justify-content: space-between; align-items: center; min-height: 64px; }
.top__logo { width: 148px; }

/* Первый экран: ливрея */
.hero { position: relative; overflow: hidden; background: var(--fog); }
.hero__band { background: var(--blue); color: #fff; }
.hero__in { min-height: 480px; display: flex; align-items: center; padding-block: 56px 64px; }
.hero__text { width: min(46%, 560px); display: grid; gap: 22px; }
.hero__text p { font-size: 1.3125rem; max-width: 36ch; color: #e4e9ff; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-top: 8px; }
.hero__white { background: var(--fog); min-height: 200px; display: flex; align-items: center; }
.hero__white .wrap { width: 100%; }
.hero__machine { position: absolute; right: max(-30px, calc(50% - 700px)); bottom: 24px; width: min(53%, 700px); filter: drop-shadow(0 26px 22px rgba(20, 28, 70, .28)); }
.modes { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; width: min(50%, 560px); flex-wrap: wrap; }
.modes li { width: 76px; height: 84px; display: grid; place-items: center; text-align: center; background: var(--blue); color: #fff; font: 700 1rem/1.05 var(--display); clip-path: polygon(0 0, 78% 0, 100% 18%, 100% 100%, 22% 100%, 0 82%); }
.modes li:nth-child(3) { background: var(--peak); }

/* Панель */
.lab { background: var(--panel); padding-block: 88px 96px; }
.lab__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: 36px; }
.lab__grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); gap: 24px 40px; align-items: stretch; }
.rig__panel { position: relative; border: 14px solid #1c1d20; border-radius: 18px; overflow: hidden; background: #1c1d20; touch-action: pan-y; }
.rig__panel img { width: 100%; }
.rig__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.knob { position: absolute; width: 20%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 0; padding: 0; background: none; border-radius: 50%; cursor: grab; touch-action: none; }
.knob:active { cursor: grabbing; }
.knob--amp { left: 16.03%; top: 47.6%; }
.knob--hz { left: 69.9%; top: 47.6%; }
.knob::after { content: ""; position: absolute; inset: -5%; border-radius: 50%; border: 3px solid transparent; transition: border-color .16s; }
.knob:focus-visible::after { border-color: #ffb21f; }
@media (hover: hover) and (pointer: fine) { .knob:hover::after { border-color: #ffb21f; } }
.knob:focus-visible { outline: none; }
.rig__ctl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.ctl { display: grid; grid-template-columns: 1fr 48px 92px 48px; align-items: center; background: #fff; padding-left: 16px; min-height: 56px; }
.ctl__n { font-weight: 600; }
.ctl button { height: 56px; border: 0; background: #fff; color: var(--blue); font: 600 1.6rem/1 var(--text); cursor: pointer; transition: transform .16s var(--ease), background-color .16s ease; }
.ctl button:active { background: #d8def6; transform: scale(.97); }
.ctl output { text-align: center; font: 700 1.25rem/1 var(--display); font-variant-numeric: tabular-nums; }
.mat { display: grid; grid-template-columns: repeat(3, 1fr); background: #b4b9c0; }
.mat button { min-height: 52px; border: 0; background: none; color: var(--ink); font: 600 1rem/1.1 var(--text); cursor: pointer; transition: background-color .16s; }
.mat button[aria-checked="true"] { background: #fff; color: var(--blue); }
.weld { position: relative; flex: 1; min-height: 230px; background: #16171a; overflow: hidden; }
.weld img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .22s linear; }
.weld img.on { opacity: 1; }
.weld__cap { background: #fff; padding: 12px 16px; font-weight: 500; min-height: 50px; max-width: none; }
.wave { grid-column: 1 / -1; background: #fff; padding: 24px 20px 18px; }
.wave__bars { display: flex; align-items: flex-end; gap: 2px; height: 150px; border-bottom: 2px solid var(--ink); }
.wave__bars i { flex: 1; position: relative; height: 100%; }
.wave__bars b, .wave__bars u { position: absolute; inset: 0; transform-origin: bottom; transition: transform .16s var(--ease); }
.kb .wave__bars b, .kb .wave__bars u, .kb .weld img { transition: none; }
.result { display: flex; flex-direction: column; min-width: 0; }
.mat button:active, .sku__b:active { transform: scale(.97); }
.sku__b:active { background: #3a1c1c; }
.wave__bars b { background: var(--peak); }
.wave__bars u { background: var(--base); }
.wave__legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px; font-size: 1rem; font-variant-numeric: tabular-nums; }
.k::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; background: var(--peak); }
.k--base::before { background: var(--base); }
.wave__t { color: var(--soft); margin-left: auto; }

/* Кто настраивает */
.who { padding-block: 104px; }
.who__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 72px; align-items: center; }
.who__text { display: grid; gap: 18px; }
.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 1.0625rem; }
th, td { text-align: left; padding: 15px 18px 15px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--display); font-size: 1.125rem; border-bottom: 3px solid var(--ink); }
tbody th { font-weight: 500; color: var(--soft); }
td.you { font-weight: 600; color: var(--blue); }
.who td:nth-child(3) { background: #f1f4fb; padding-left: 18px; }
.who thead th:nth-child(3) { padding-left: 18px; }

/* Модели */
.models { background: var(--fog); padding-block: 96px 104px; }
.models__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 56px; margin: 28px 0 44px; }
.model { display: grid; gap: 12px; align-content: start; justify-items: start; }
.model img { width: min(100%, 460px); aspect-ratio: 83 / 70; object-fit: contain; object-position: left bottom; }
.cmp td, .cmp tbody th { width: 33.33%; }
.old { border-bottom: 1px solid var(--line); }
.tbl + .old { margin-top: 28px; }
summary { cursor: pointer; padding: 18px 0; font: 600 1.125rem/1.35 var(--text); min-height: 52px; }
summary::marker { color: var(--blue); }
details p { padding: 0 0 22px 22px; }

/* Завод */
.plant { background: #101632; color: #fff; padding-block: 96px; }
.plant__in { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 40px 88px; align-items: center; }
.plant__v { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; }
.plant__text { display: grid; gap: 22px; }
.plant__text p { color: #d4dbf5; font-size: 1.125rem; }
.plant h3 { margin-top: 20px; }
.reads { margin: 0; padding: 0; list-style: none; max-width: 560px; }
.reads a { display: block; padding: 16px 0; color: #fff; border-top: 1px solid #3a4478; text-underline-offset: .28em; }

/* Вопросы */
.faq { padding-block: 104px; }
.faq__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 28px 64px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 3px solid var(--ink); }

/* Покупка: снова ливрея */
.buy { background: linear-gradient(var(--blue) 0 100%); color: #fff; padding-block: 88px; }
.buy__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px 72px; align-items: end; }
.buy__main { display: grid; gap: 22px; justify-items: start; }
.buy p { color: #e4e9ff; }
.sku { display: flex; flex-wrap: wrap; align-items: stretch; background: #180a0a; }
.sku__n { font: 700 clamp(1.8rem, 4.6vw, 3.1rem)/1 var(--display); color: #ff4a2b; padding: 18px 24px; letter-spacing: .06em; text-shadow: 0 0 14px rgba(255, 74, 43, .55); font-variant-numeric: tabular-nums; }
.sku__b { border: 0; min-height: 52px; padding: 0 22px; background: #2a1414; color: #ffd9d1; font: 600 1rem/1.2 var(--text); cursor: pointer; }
.sku__b { transition: transform .16s var(--ease); }
.buy__side { display: grid; gap: 12px; padding-left: 28px; border-left: 2px solid #6f7ee0; }

.foot { background: #101632; color: #aeb8dd; font-size: .9375rem; padding-block: 36px 44px; }
.foot__in { display: grid; grid-template-columns: 150px 1fr auto; gap: 16px 48px; align-items: center; }
.foot a { color: #fff; }
.stick { display: none; }

@media (max-width: 900px) {
  .hero__in { min-height: 0; padding-block: 36px 210px; }
  .hero__text { width: 100%; }
  .hero__machine { width: min(92%, 520px); right: 50%; transform: translateX(50%); bottom: 128px; }
  .hero__white { min-height: 320px; align-items: flex-end; padding-bottom: 28px; }
  .modes { width: 100%; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .modes li { width: auto; height: 62px; font-size: .8125rem; }
  .lab, .who, .models, .plant, .faq, .buy { padding-block: 64px; }
  .lab__head, .lab__grid, .who__in, .plant__in, .faq__in, .buy__in { grid-template-columns: minmax(0, 1fr); }
  .rig__panel { border-width: 8px; border-radius: 12px; }
  .buy__side { padding: 24px 0 0; border-left: 0; border-top: 2px solid #6f7ee0; }
  .foot { padding-bottom: 110px; }
  .foot__in { grid-template-columns: 1fr; }
  .foot img { width: 140px; }
  .stick { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; display: grid; place-items: center; min-height: 60px; padding: 0 20px env(safe-area-inset-bottom); background: var(--ozon); color: #fff; font-weight: 600; text-decoration: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .rig__ctl { grid-template-columns: 1fr; gap: 8px; }
  .models__grid { grid-template-columns: 1fr; }
  .ctl { grid-template-columns: 1fr 56px 100px 56px; }
  th, td { padding: 12px 12px 12px 0; font-size: 1rem; }
  .who table, .cmp { min-width: 0; }
  .wave__t { margin-left: 0; }
  .sku__b { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .ctl button, .wave__bars b, .wave__bars u { transition: none; } }

/* Согласие на cookie: как на aurora-online.ru; на телефоне поднято над кнопкой Ozon */
.cookie { position: fixed; z-index: 40; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); width: min(440px, calc(100% - 32px)); background: #fff; color: var(--ink); padding: 18px 20px 20px; display: grid; gap: 8px; justify-items: start; box-shadow: 0 10px 40px rgba(16, 22, 50, .28); clip-path: var(--cut); }
.cookie[hidden] { display: none; }
.cookie__t { font: 600 .9375rem/1.35 var(--text); }
.cookie__x { font-size: .8125rem; line-height: 1.45; color: var(--soft); }
.cookie__x a { color: var(--blue); }
@media (max-width: 900px) { .cookie { bottom: calc(60px + max(10px, env(safe-area-inset-bottom))); } }