/* My Marstek — сайт. Цвета и стекло — как в приложении (docs/DESIGN.md). */

:root {
  color-scheme: dark;
  --bg: #0A0C11;
  --bg-2: #0D1016;
  --panel: #151821;
  --text: #F2F4F7;
  --text-2: rgba(255, 255, 255, .62);
  --text-3: rgba(255, 255, 255, .46);
  --green: #5BE49B;
  --green-soft: #9FE8C0;
  --coral: #FF7A6B;
  --coral-title: #FF8577;
  --cyan: #5CD6F5;
  --cyan-text: #7FE3FF;
  --amber: #FFB36B;
  --grey: #8B93A3;
  --glass: rgba(18, 21, 28, .72);
  --hair: rgba(255, 255, 255, .09);
  --hair-2: rgba(255, 255, 255, .06);
  --radius: 28px;
  --gutter: 24px;
  --max: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
html { overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(91, 228, 155, .3); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ico-fill { fill: currentColor; stroke: none; }

/* ---------- Шапка ---------- */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 12, 17, .72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--hair-2);
}
.nav-inner { height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: var(--text-2); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--hair);
}
.lang button {
  border: 0; background: none; cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--text-2); padding: 5px 10px; border-radius: 999px; transition: background .2s, color .2s;
}
.lang button[aria-pressed="true"] { background: rgba(255, 255, 255, .12); color: var(--text); }
.btn-sm {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px;
  background: var(--text); color: #0A0C11; font-size: 14px; font-weight: 600; transition: transform .2s var(--ease-out), background .2s;
}
.btn-sm:hover { background: #fff; transform: translateY(-1px); }
.btn-sm .ico { width: 16px; height: 16px; }

/* ---------- Кнопки скачивания ---------- */

.dl { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.dl-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  min-height: 60px; padding: 10px 26px 10px 20px; border-radius: 18px;
  font-weight: 600; transition: transform .25s var(--ease-out), box-shadow .25s, background .25s;
}
.btn .ico { width: 26px; height: 26px; }
.btn span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.btn b { font-size: 17px; font-weight: 600; }
.btn small { font-size: 12.5px; font-weight: 500; opacity: .66; margin-top: 3px; }
.btn-primary {
  background: var(--green); color: #07140D;
  box-shadow: 0 0 0 1px rgba(91, 228, 155, .4), 0 12px 40px -8px rgba(91, 228, 155, .45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(91, 228, 155, .6), 0 18px 50px -8px rgba(91, 228, 155, .6); }
.btn-ghost { background: rgba(255, 255, 255, .06); border: 1px solid var(--hair); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); }
.dl-note { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--text-3); text-align: center; }
.dl-note a { color: var(--green-soft); }
.dl-note a:hover { text-decoration: underline; }

/* ---------- Первый экран ---------- */

.hero { position: relative; padding: 148px 0 40px; text-align: center; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -10% -20% auto; height: 1100px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(48% 40% at 50% 62%, rgba(255, 168, 92, .16), transparent 70%),
    radial-gradient(30% 30% at 50% 0%, rgba(91, 228, 155, .10), transparent 70%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .045); border: 1px solid var(--hair);
  font-size: 13px; color: var(--text-2);
}
.eyebrow i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(91, 228, 155, .16), 0 0 12px var(--green);
}
.hero h1 {
  margin: 26px auto 0; max-width: 15ch;
  font-size: clamp(44px, 7.4vw, 92px); line-height: 1.0; letter-spacing: -.045em; font-weight: 700;
}
.grad {
  background: linear-gradient(100deg, #F4FFF9 10%, var(--green) 55%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead {
  margin: 26px auto 40px; max-width: 640px;
  font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); line-height: 1.6;
}

/* ---------- Живое демо ---------- */

.demo { margin-top: 84px; }
.demo-stage { position: relative; width: 100%; aspect-ratio: 1280 / 830; }
.demo-stage::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -60px; height: 120px; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, .8), transparent); filter: blur(20px);
}

.win {
  --c-grid: var(--amber); --c-batt: var(--green); --c-load: var(--amber); --accent: var(--green);
  --title: #F4FFF9; --title-glow: rgba(91, 228, 155, .35);
  position: absolute; top: 0; left: 0; width: 1280px; height: 830px;
  transform-origin: 0 0; transform: scale(var(--s, 1));
  border-radius: 26px; overflow: hidden; text-align: left;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 50px 120px -20px rgba(0, 0, 0, .9), 0 30px 60px -30px rgba(0, 0, 0, .8);
  font-size: 13px; line-height: 1.3; user-select: none;
}
[data-phase="reserve"] { --c-grid: var(--coral); --c-batt: var(--cyan); --c-load: var(--cyan); --accent: var(--coral); --title: var(--coral-title); --title-glow: rgba(255, 92, 80, .45); }
[data-phase="checking"] { --c-grid: var(--amber); --c-batt: var(--cyan); --c-load: var(--cyan); --accent: var(--amber); --title: #FFD3A8; --title-glow: rgba(255, 179, 107, .3); }
[data-phase="offline"] { --c-grid: var(--grey); --c-batt: var(--grey); --c-load: var(--grey); --accent: var(--grey); --title: rgba(255, 255, 255, .78); --title-glow: transparent; }

.glow { position: absolute; inset: 0; pointer-events: none; transition: opacity .9s ease; opacity: 0; }
.glow-on { background: radial-gradient(60% 60% at 50% 60%, rgba(255, 168, 92, .20), transparent 70%), radial-gradient(45% 45% at 50% 105%, rgba(91, 228, 155, .08), transparent 70%); }
.glow-reserve { background: radial-gradient(60% 60% at 50% 60%, rgba(255, 150, 90, .13), transparent 70%), radial-gradient(50% 50% at 50% 0%, rgba(255, 92, 80, .18), transparent 70%); }
.glow-checking { background: radial-gradient(60% 60% at 50% 60%, rgba(255, 150, 90, .13), transparent 70%), radial-gradient(50% 50% at 50% 0%, rgba(255, 179, 107, .14), transparent 70%); }
.glow-offline { background: radial-gradient(60% 60% at 50% 60%, rgba(110, 130, 170, .12), transparent 70%); }
[data-phase="on"] .glow-on, [data-phase="reserve"] .glow-reserve, [data-phase="checking"] .glow-checking, [data-phase="offline"] .glow-offline { opacity: 1; }

.w-top { position: relative; height: 62px; padding: 0 24px; display: flex; align-items: center; gap: 12px; }
.w-close { width: 14px; height: 14px; border-radius: 50%; background: #FF5F57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .25); }
.w-name { font-size: 13px; font-weight: 600; color: var(--text-2); margin-left: 2px; }
.w-sp { flex: 1; }
.w-mode {
  display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08);
  font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .72);
}
.w-mode .ico { width: 14px; height: 14px; }
.w-round {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .8);
}
.w-round .ico { width: 17px; height: 17px; }

.w-status { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 4px; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px 0 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08);
  font-size: 12.5px; color: rgba(255, 255, 255, .78); transition: color .5s;
}
.pill i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px var(--accent); transition: background .6s, box-shadow .6s;
}
.w-title {
  font-size: 60px; line-height: 1.12; font-weight: 600; letter-spacing: -2px;
  color: var(--title); text-shadow: 0 0 24px var(--title-glow); transition: color .6s, text-shadow .6s;
}
.w-sub { font-size: 16px; color: var(--text-2); }

.w-scene { position: absolute; left: 0; right: 0; top: 232px; height: 450px; }
.house { position: absolute; width: 820px; aspect-ratio: 1422 / 736; left: calc(50% - 410px + 45px); top: 0; }
.house::after {
  content: ""; position: absolute; left: 5%; right: 5%; bottom: -26px; height: 46px; z-index: -1;
  background: rgba(0, 0, 0, .65); border-radius: 50%; filter: blur(14px);
}
.house img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .9s ease-in-out; }
.house img.show { opacity: 1; }
.lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.lines path { fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-dasharray: 2 5; opacity: .75; transition: stroke .6s; }
.lines .l-grid { stroke: var(--c-grid); }
.lines .l-batt { stroke: var(--c-batt); }
.lines .l-load { stroke: var(--c-load); }
.lines .l-temp { stroke: rgba(255, 255, 255, .35); }
.lines path.fwd { animation: dash-fwd var(--dur, 1s) linear infinite; }
.lines path.back { animation: dash-back var(--dur, 1s) linear infinite; }
@keyframes dash-fwd { to { stroke-dashoffset: -7; } }
@keyframes dash-back { to { stroke-dashoffset: 7; } }

.dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 22%, transparent), 0 0 14px var(--c); transition: background .6s, box-shadow .6s; }
.dot.sm { width: 8px; height: 8px; margin: -4px 0 0 -4px; box-shadow: 0 0 0 3.4px color-mix(in srgb, var(--c) 22%, transparent), 0 0 10px var(--c); }
.dot-grid { --c: var(--c-grid); }
.dot-batt { --c: var(--c-batt); }
.dot-load { --c: var(--c-load); }
.dot-temp { --c: #F2F4F7; }

.chip {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--hair);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .35);
  transition: background .25s, opacity .6s; pointer-events: auto;
}
.chip:hover { background: rgba(24, 28, 37, .88); }
.chip-r { transform: translate(-100%, -50%); }
.chip-l { transform: translate(0, -50%); }
.chip .ci {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  color: var(--t); background: color-mix(in srgb, var(--t) 16%, transparent); transition: color .6s, background .6s;
}
.chip .ci .ico { width: 16px; height: 16px; }
.chip .cl { display: grid; min-width: 0; }
.chip .ct, .chip .cn { font-size: 12px; color: var(--text-2); grid-area: 1 / 1; transition: opacity .22s, transform .22s; white-space: nowrap; }
.chip .cn { grid-area: 3 / 1; opacity: 0; transform: translateY(6px); }
.chip .cv { grid-area: 2 / 1; font-size: 21px; font-weight: 600; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chip:hover .ct { opacity: 0; transform: translateY(-6px); }
.chip:hover .cn { opacity: 1; transform: none; }
.chip::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent 0 30%, var(--t) 45%, #fff 55%, transparent 70% 100%) -100% 0 / 250% 100% no-repeat;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0;
}
.chip:hover::after { animation: glint .85s ease-in-out; }
@keyframes glint { 0% { opacity: 1; background-position: 150% 0; } 100% { opacity: 1; background-position: -100% 0; } }
.chip-grid { --t: var(--c-grid); width: 210px; }
.chip-batt { --t: var(--c-batt); width: 200px; }
.chip-load { --t: var(--c-load); width: 210px; }
[data-phase="offline"] .chip, [data-phase="offline"] .temp { opacity: .6; }

.temp {
  position: absolute; transform: translate(0, -50%); display: flex; align-items: center; gap: 5px;
  height: 30px; padding: 0 12px 0 9px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--glass); border: 1px solid rgba(255, 255, 255, .12); color: var(--text);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: opacity .6s;
}
.temp .ico { width: 14px; height: 14px; }

.w-events {
  position: absolute; right: 40px; bottom: 148px; width: 320px; padding: 14px 16px 8px; border-radius: 22px;
  background: rgba(22, 25, 33, .62); border: 1px solid var(--hair);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
.w-events header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.w-events header span { font-size: 13px; color: var(--text-2); }
.w-events header b { font-size: 12px; font-weight: 500; color: var(--green-soft); }
.ev { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid var(--hair-2); animation: ev-in .6s var(--ease-out); }
.ev .ed { width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c) 18%, transparent); }
.ev .ed::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); }
.ev p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev time { display: block; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ev > div { min-width: 0; }
@keyframes ev-in { from { opacity: 0; transform: translateY(-8px); } }

.w-bar {
  position: absolute; left: 40px; right: 40px; bottom: 24px; height: 108px; display: flex; align-items: center;
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .08); border-radius: 26px;
}
.w-col { padding: 0 26px; }
.w-col.c1, .w-col.c3 { width: 250px; flex: none; }
.w-col.c2 { flex: 1; padding: 0 28px; border-inline: 1px solid rgba(255, 255, 255, .07); height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.w-col .k { font-size: 12px; color: var(--text-2); }
.w-col .v { font-size: 28px; font-weight: 600; letter-spacing: -.8px; font-variant-numeric: tabular-nums; transition: color .6s; }
.w-col .n { font-size: 12px; color: var(--text-2); white-space: nowrap; }
[data-phase="reserve"] .c1 .v { color: var(--cyan-text); }
.today-h { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--text-2); }
.today-h b { color: rgba(255, 255, 255, .86); font-weight: 600; margin-right: auto; }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.cells { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; height: 26px; }
.cell { border-radius: 5px; background: rgba(255, 255, 255, .06); position: relative; transition: background .6s; }
.cell.on { background: rgba(91, 228, 155, .55); }
.cell.out { background: var(--coral); }
.cell.now::after { content: ""; position: absolute; inset: -3px; border-radius: 6px; border: 1.5px solid rgba(255, 255, 255, .85); }
.axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* Смена цифр «перелистыванием» */
.tick { display: inline-block; animation: tick .45s var(--ease-out); }
@keyframes tick { from { opacity: 0; transform: translateY(45%); filter: blur(2px); } }

/* Переключатель сцен демо */
.demo-ctrl { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 44px; }
.seg {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--hair);
}
.seg button {
  border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px; background: none; color: var(--text-2); font-size: 14px; font-weight: 500;
  transition: background .2s, color .2s;
}
.seg button i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--grey)); }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: rgba(255, 255, 255, .11); color: var(--text); }
.demo-hint { margin: 0; font-size: 13px; line-height: 1.4; color: var(--text-3); text-align: center; }

/* Демо на телефоне: та же сцена, но плашки — под домом */
.demo-mobile { display: none; }

/* ---------- Секции ---------- */

section { position: relative; }
.sec { padding: 150px 0 0; }
.sec-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.kicker { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 18px; }
.sec h2 { margin: 0; font-size: clamp(34px, 5vw, 60px); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; }
.sec-head p { margin: 22px auto 0; max-width: 620px; font-size: clamp(16px, 1.4vw, 19px); color: var(--text-2); }

/* Полоса цифр */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 120px; border-top: 1px solid var(--hair-2); border-bottom: 1px solid var(--hair-2); }
.stat { padding: 34px 28px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--hair-2); }
.stat b { display: block; font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; letter-spacing: -.03em; }
.stat span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.35; color: var(--text-2); }

/* Сетка возможностей */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.card {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .02));
  border: 1px solid var(--hair-2);
  /* Иконка и заголовок — в один ряд, текст и картинка — под ними на всю ширину */
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto 1fr;
  column-gap: 16px; row-gap: 16px; align-items: center; min-height: 420px;
}
.card > p, .card > .visual { grid-column: 1 / -1; }
.card > p { align-self: start; }
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background: radial-gradient(60% 50% at var(--gx, 80%) var(--gy, 0%), var(--gc, rgba(91, 228, 155, .08)), transparent 70%);
}
.card > * { position: relative; }
.card h3 { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; font-weight: 650; }
.card p { margin: 0; color: var(--text-2); font-size: 16px; max-width: 46ch; }
.card .badge {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--bc, var(--green)) 14%, transparent); color: var(--bc, var(--green));
  border: 1px solid color-mix(in srgb, var(--bc, var(--green)) 24%, transparent);
}
.card .visual { align-self: end; padding-top: 24px; }
.card .visual.widgets { align-self: center; }

/* Рамка, по которой за курсором скользит световое пятно (карточки и плитки) */
.card::after, .mini::after, .step::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--rim, var(--green)) 75%, transparent), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.card:hover::after, .mini:hover::after, .step:hover::after { opacity: 1; }
.s7 { grid-column: span 7; } .s5 { grid-column: span 5; } .s6 { grid-column: span 6; } .s12 { grid-column: span 12; }

/* Уведомления macOS */
.notifs { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.notif {
  width: min(100%, 380px); display: flex; gap: 12px; padding: 13px 14px; border-radius: 20px;
  background: rgba(40, 43, 52, .72); border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4); font-size: 13.5px; line-height: 1.35;
}
.notif img { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.notif header { display: flex; justify-content: space-between; gap: 10px; }
.notif header b { font-weight: 600; }
.notif header span { color: var(--text-3); font-size: 12px; }
.notif p { margin: 2px 0 0; color: rgba(255, 255, 255, .82); font-size: 13.5px; }
.notif:nth-child(2) { transform: scale(.96); opacity: .72; transform-origin: top right; }
/* Уведомления: сначала проявляется старое, затем сверху «прилетает» новое, как в macOS */
.notif { transition: opacity .5s ease, transform .7s cubic-bezier(.34, 1.4, .64, 1); }
.notif:nth-child(2) { transition-delay: .15s; }
.notif:nth-child(1) { transition-delay: .8s; }
.js [data-play]:not(.play) .notif:nth-child(1) { opacity: 0; transform: translateX(70px); transition: none; }
.js [data-play]:not(.play) .notif:nth-child(2) { opacity: 0; transform: translateY(-14px) scale(.9); transition: none; }

/* Запас батареи */
.runtime { display: flex; align-items: center; gap: 28px; }
.ring { width: 150px; height: 150px; flex: none; overflow: visible; }
.ring circle { fill: none; stroke-width: 10; }
.ring .bg { stroke: rgba(255, 255, 255, .07); }
.ring .fg { stroke: var(--cyan); stroke-linecap: round; transition: stroke-dasharray 1.8s cubic-bezier(.22, 1, .36, 1) .2s; }
.ring { filter: drop-shadow(0 0 10px rgba(92, 214, 245, .28)); }
/* Кольцо заполняется, когда карточка появляется на экране, потом мягко «дышит» */
.js [data-play]:not(.play) .ring .fg { stroke-dasharray: 0 315; transition: none; }
[data-play].play .ring { animation: ring-breathe 3.2s ease-in-out 2s infinite alternate; }
@keyframes ring-breathe { to { filter: drop-shadow(0 0 18px rgba(92, 214, 245, .55)); } }
.runtime b { display: block; font-size: 44px; font-weight: 700; letter-spacing: -.03em; color: var(--cyan-text); line-height: 1.05; }
.runtime span { color: var(--text-2); font-size: 14px; }

/* Строка меню */
.menubar {
  border-radius: 18px; overflow: hidden; isolation: isolate; border: 1px solid var(--hair);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(120, 130, 230, .35), transparent 55%),
    radial-gradient(90% 70% at 100% 100%, rgba(90, 100, 200, .28), transparent 60%),
    linear-gradient(160deg, #262b52, #121633 55%, #0d1024);
}
.mb-strip { height: 34px; display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 0 14px; background: rgba(0, 0, 0, .28); border-radius: 17px 17px 0 0; font-size: 13.5px; font-weight: 500; }
.mb-item { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); }
.mb-item .ico { width: 13px; height: 13px; }
/* Меню-окно как в приложении: статус и заряд, домик, три плитки, кнопки */
.mb-menu {
  width: min(330px, calc(100% - 28px)); margin: 8px 14px 22px auto; padding: 18px; border-radius: 20px;
  background: rgba(30, 32, 40, .92); border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.mb-head { display: flex; justify-content: space-between; align-items: center; }
.mb-head .st { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; }
.mb-head .st i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.mb-head b { font-size: 16px; font-weight: 600; }
.mb-house { margin: 14px 0 12px; padding: 4px 6px; border-radius: 14px; background: rgba(0, 0, 0, .28); }
.mb-house img { width: 100%; }
.mb-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mb-tiles div { padding: 9px 11px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.mb-tiles div > span { display: block; font-size: 11.5px; color: var(--text-2); }
.mb-tiles b { display: block; font-size: 12.5px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mb-btns { display: flex; gap: 6px; margin-top: 10px; }
.mb-open { flex: 1; display: grid; place-items: center; height: 38px; border-radius: 12px; background: #F2F4F7; color: #0A0C11; font-size: 13px; font-weight: 600; white-space: nowrap; }
.mb-rb { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .85); }
.mb-rb .ico { width: 16px; height: 16px; }

/* Виджеты */
.widgets { display: flex; gap: 18px; align-items: flex-end; justify-content: center; flex-wrap: wrap; }
.wg { border-radius: 26px; background: var(--panel); border: 1px solid rgba(255, 255, 255, .07); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7); padding: 16px; position: relative; overflow: hidden; }
.wg-s { width: 170px; height: 170px; }
.wg-m { width: 364px; height: 170px; display: flex; }
.wg .st { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--green); }
.wg .st i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.wg .big { font-size: 34px; font-weight: 700; letter-spacing: -.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.wg .sm { font-size: 12px; color: var(--text-2); }
.wg-s img { position: absolute; right: 8px; bottom: 8px; width: 96px; }
.wg-m .l { width: 150px; flex: none; display: flex; flex-direction: column; }
.wg-m .r { flex: 1; position: relative; }
.wg-m .r img { position: absolute; right: -4px; bottom: 30px; width: 190px; }
.wg-m .cap { position: absolute; right: 0; bottom: 0; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(92, 214, 245, .14); color: var(--cyan-text); white-space: nowrap; }
.wg-m .kv { margin-top: auto; font-size: 12px; color: var(--text-2); line-height: 1.6; }
.wg-m .kv b { color: var(--text); font-weight: 600; }
.wg.reserve .st { color: var(--coral); }

/* История */
.hist { border-radius: 22px; border: 1px solid var(--hair); background: rgba(10, 12, 17, .6); padding: 24px; }
.hist-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.hist .seg button { padding: 6px 12px; font-size: 12.5px; cursor: default; }
.totals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0; }
.tot { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--hair-2); }
.tot span { display: block; font-size: 12px; color: var(--text-2); }
.tot b { font-size: 22px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--text-3); font-size: 11px; font-family: var(--font); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); margin-top: 10px; }

/* Telegram */
.tg { border-radius: 22px; overflow: hidden; border: 1px solid var(--hair); background: #0E1621; font-size: 14px; }
.tg-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #17212B; }
.tg-head .av { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; }
.tg-head b { display: block; font-size: 14px; }
.tg-head span { font-size: 12px; color: #6C7883; }
.tg-body { padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; }
.bub { max-width: 82%; padding: 8px 12px; border-radius: 16px; line-height: 1.45; }
.bub.me { align-self: flex-end; background: #2B5278; border-bottom-right-radius: 5px; }
.bub.bot { align-self: flex-start; background: #182533; border-bottom-left-radius: 5px; }
.bub small { display: block; text-align: right; font-size: 11px; color: rgba(255, 255, 255, .45); margin-top: 2px; }

/* Приватность */
.private { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 0; }
.node { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); text-align: center; }
.node .nb { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); border: 1px solid var(--hair); color: var(--text); }
.node .nb .ico { width: 30px; height: 30px; }
.link-line { flex: 1; max-width: 140px; height: 2px; margin-bottom: 30px; background: repeating-linear-gradient(90deg, var(--green) 0 3px, transparent 3px 9px); background-size: 9px 2px; animation: link 1s linear infinite; opacity: .8; }
@keyframes link { to { background-position: 9px 0; } }
.cloud-x { position: relative; }
.cloud-x .nb { position: relative; color: var(--text-3); }
/* Красная черта — ровно по центру квадрата с облаком */
.cloud-x .nb::after { content: ""; position: absolute; left: 50%; top: 50%; width: 46px; height: 2px; border-radius: 2px; background: var(--coral); transform: translate(-50%, -50%) rotate(-40deg); box-shadow: 0 0 8px var(--coral); }

/* Мелкие возможности */
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.mini { position: relative; overflow: hidden; padding: 28px; border-radius: 24px; border: 1px solid var(--hair-2); background: rgba(255, 255, 255, .025); }
.mini > * { position: relative; }
/* Плитки в фирменных цветах: свой цвет у иконки, подсветки угла и рамки */
.mini-grid .mini {
  --rim: var(--tc);
  background:
    radial-gradient(70% 70% at 100% 100%, color-mix(in srgb, var(--tc) 11%, transparent), transparent 70%),
    rgba(255, 255, 255, .025);
  border-color: color-mix(in srgb, var(--tc) 12%, transparent);
  /* Параллакс секции: колонки плиток едут с разной скоростью (значение ставит main.js) */
  translate: 0 var(--pY, 0px);
}
.mini-grid .mini:nth-child(1), .mini-grid .mini:nth-child(7) { --tc: var(--green); }
.mini-grid .mini:nth-child(2), .mini-grid .mini:nth-child(8) { --tc: var(--cyan); }
.mini-grid .mini:nth-child(3), .mini-grid .mini:nth-child(5) { --tc: var(--amber); }
.mini-grid .mini:nth-child(4), .mini-grid .mini:nth-child(6) { --tc: var(--coral); }
/* Большая полупрозрачная иконка в углу */
.mini > .ico {
  position: absolute; right: -18px; bottom: -18px; width: 132px; height: 132px;
  color: var(--tc, var(--green)); stroke-width: 1; opacity: .14; transform: rotate(-8deg);
  transition: opacity .5s;
}
.mini:hover > .ico { opacity: .26; }
.mini h4 { margin: 0 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.mini p { margin: 0; font-size: 14.5px; color: var(--text-2); line-height: 1.5; max-width: 30ch; }
.mini-grid .mini { min-height: 200px; }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 36px; border-radius: var(--radius); border: 1px solid var(--hair-2); background: rgba(255, 255, 255, .025); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-size: 15px; font-weight: 700; letter-spacing: .08em; color: var(--green); margin-bottom: 40px;
}
.step h3 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.02em; font-weight: 650; }
.step p { margin: 0; color: var(--text-2); font-size: 15.5px; }

/* Установка и требования */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.panel { padding: 40px; border-radius: var(--radius); border: 1px solid var(--hair-2); background: rgba(255, 255, 255, .025); }
.panel h3 { margin: 0 0 22px; font-size: 24px; letter-spacing: -.02em; font-weight: 650; }
.panel ol { margin: 0; padding: 0; list-style: none; counter-reset: i; display: flex; flex-direction: column; gap: 18px; }
.panel ol li { counter-increment: i; display: flex; gap: 16px; color: var(--text-2); font-size: 15.5px; }
.panel ol li::before {
  content: counter(i); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: var(--green); background: rgba(91, 228, 155, .12);
}
.panel ol b, .panel ul b { color: var(--text); font-weight: 600; }
.panel ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.panel ul li { display: flex; gap: 14px; color: var(--text-2); font-size: 15.5px; }
.panel ul li .ico { color: var(--green); margin-top: 2px; }
.panel .muted { margin: 24px 0 0; font-size: 14px; color: var(--text-3); }
.panel .muted a { color: var(--green-soft); }

/* Планы */
.road { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.road .mini { position: relative; }
.road .tag { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.tag.now { color: var(--amber); background: rgba(255, 179, 107, .12); }
.tag.done { color: var(--green); background: rgba(91, 228, 155, .12); }
.tag.you { color: var(--cyan-text); background: rgba(92, 214, 245, .12); }
.road a.mini { transition: border-color .25s, transform .25s var(--ease-out); }
.road a.mini:hover { border-color: rgba(92, 214, 245, .4); transform: translateY(-3px); }

/* Попап первого запуска после скачивания */
.dl-modal {
  width: min(540px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: var(--radius);
  background: transparent; color: var(--text); overflow: visible;
}
.dl-modal::backdrop { background: rgba(5, 6, 9, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.dl-modal[open] { animation: dm-in .5s var(--ease-out); }
.dl-modal[open]::backdrop { animation: dm-fade .4s ease; }
@keyframes dm-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes dm-fade { from { opacity: 0; } }
.dl-modal .panel {
  position: relative; padding: 36px; max-height: calc(100vh - 32px); overflow: auto;
  background: linear-gradient(180deg, rgba(30, 34, 44, .96), rgba(18, 21, 28, .97));
  border-color: var(--hair); box-shadow: 0 40px 100px rgba(0, 0, 0, .6);
}
.dl-modal .panel::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(60% 40% at 50% 0%, rgba(91, 228, 155, .12), transparent 70%);
}
.dl-modal .panel > :not(.dm-close) { position: relative; }
.dm-icon { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 18px; box-shadow: 0 10px 30px rgba(91, 228, 155, .25); }
.dl-modal h3 { margin: 0 0 8px; font-size: 26px; letter-spacing: -.02em; }
.dm-lead { margin: 0 0 24px; color: var(--text-2); font-size: 15.5px; line-height: 1.5; }
.dm-close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .07); color: var(--text-2); font-size: 22px; line-height: 1; display: grid; place-items: center;
}
.dm-close:hover { background: rgba(255, 255, 255, .12); color: var(--text); }
.dm-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.dm-ok { border: 0; cursor: pointer; height: 42px; padding: 0 22px; }
.dm-again { font-size: 14px; color: var(--green-soft); }
.dm-again:hover { text-decoration: underline; }
@media (max-width: 760px) { .dl-modal .panel { padding: 28px 22px; } .dl-modal h3 { font-size: 22px; } }

/* Вопросы */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--hair-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 300; color: var(--text-2); transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -8px 0 26px; color: var(--text-2); max-width: 70ch; }

/* Финальный призыв */
.cta { margin-top: 160px; padding: 110px 24px; text-align: center; border-radius: 40px; position: relative; overflow: hidden; border: 1px solid var(--hair-2);
  background: radial-gradient(60% 80% at 50% 110%, rgba(91, 228, 155, .18), transparent 70%), radial-gradient(40% 60% at 50% 0%, rgba(255, 168, 92, .10), transparent 70%), #0C0F15; }
.cta img.ic { width: 96px; height: 96px; margin: 0 auto 30px; border-radius: 22px; box-shadow: 0 20px 60px rgba(91, 228, 155, .25); }
.cta h2 { margin: 0 auto 18px; max-width: 16ch; font-size: clamp(34px, 5vw, 60px); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; }
.cta p.lead { margin: 0 auto 40px; max-width: 540px; color: var(--text-2); font-size: 18px; }

/* Подвал */
footer { padding: 80px 0 60px; color: var(--text-3); font-size: 13.5px; }
.foot { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-top: 34px; border-top: 1px solid var(--hair-2); }
.foot .brand { color: var(--text); }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot nav a:hover { color: var(--text); }
.foot p { margin: 14px 0 0; max-width: 520px; }

/* Первый экран появляется сразу при загрузке, по очереди */
.hero-in { animation: hero-in 1s var(--ease-out) both; }
.hero h1.hero-in { animation-delay: .08s; }
.hero .lead.hero-in { animation-delay: .16s; }
.dl.hero-in { animation-delay: .24s; }
.demo.hero-in { animation-delay: .36s; animation-duration: 1.3s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(24px); } }

/* Появление при прокрутке */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-right { margin-left: auto; }
  .s7, .s5, .s6 { grid-column: span 12; }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; --radius: 24px; }
  body { font-size: 16px; }
  .nav-inner { height: 60px; gap: 12px; }
  .btn-sm span { display: none; }
  .btn-sm { padding: 0 11px; }
  .hero { padding-top: 112px; }
  .hero .lead { margin-bottom: 32px; }
  .btn { width: 100%; justify-content: center; }
  .dl-buttons { width: 100%; }
  .demo { margin-top: 56px; }
  .demo-stage { display: none; }
  .demo-mobile {
    display: block; position: relative; overflow: hidden; border-radius: 28px; padding: 22px 16px 16px; text-align: center;
    background: var(--bg); border: 1px solid rgba(255, 255, 255, .1);
    --c-grid: var(--amber); --c-batt: var(--green); --c-load: var(--amber); --accent: var(--green);
    --title: #F4FFF9; --title-glow: rgba(91, 228, 155, .35);
  }
  .demo-mobile .w-title { font-size: 38px; letter-spacing: -1.2px; margin-top: 8px; }
  .demo-mobile .w-sub { font-size: 14px; line-height: 1.35; margin-top: 4px; min-height: 2.7em; }
  .demo-mobile .pill { font-size: 11.5px; }
  .demo-mobile .house { position: relative; left: auto; width: 100%; margin: 14px 0 22px; }
  .m-chips { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .m-chip { padding: 12px 10px; border-radius: 16px; background: var(--glass); border: 1px solid var(--hair); text-align: left; }
  .m-chip .ct { font-size: 11px; color: var(--text-2); display: flex; align-items: center; gap: 5px; }
  .m-chip .ct i { width: 7px; height: 7px; border-radius: 50%; background: var(--t); box-shadow: 0 0 6px var(--t); transition: background .6s; }
  .m-chip .cv { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; white-space: nowrap; }
  .m-chip.g { --t: var(--c-grid); } .m-chip.b { --t: var(--c-batt); } .m-chip.h { --t: var(--c-load); }
  .m-res { position: relative; display: block; margin-top: 8px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .08); text-align: left; }
  .m-res .k { font-size: 12px; color: var(--text-2); }
  .m-res .v { font-size: 22px; font-weight: 600; letter-spacing: -.5px; font-variant-numeric: tabular-nums; transition: color .6s; }
  .demo-mobile[data-phase="reserve"] .m-res .v { color: var(--cyan-text); }
  .m-res .n { font-size: 12px; color: var(--text-2); }
  .demo-ctrl { margin-top: 28px; }
  .seg button { padding: 7px 12px; font-size: 13px; }

  .sec { padding-top: 100px; }
  .sec-head { margin-bottom: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 80px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--hair-2); }
  .stat { padding: 26px 12px; }
  .card { padding: 28px 22px; min-height: 0; }
  .card h3 { font-size: 22px; }
  .runtime { flex-direction: column; align-items: flex-start; gap: 18px; }
  .ring { width: 120px; height: 120px; }
  .mini-grid, .steps, .road { grid-template-columns: 1fr; }
  .totals { grid-template-columns: repeat(2, 1fr); }
  .tot { padding: 12px 14px; }
  .tot b { font-size: 18px; white-space: nowrap; }
  .hist .seg button { padding: 5px 9px; font-size: 12px; }
  .hist .seg { flex-wrap: nowrap; }
  .chart text { font-size: 34px; }
  .eyebrow { font-size: 12px; }
  .hist { padding: 16px; }
  .wg-m { width: 100%; }
  .wg-s { display: none; }
  .mb-menu { margin-right: 10px; width: calc(100% - 20px); padding: 14px; }
  .panel, .step { padding: 28px 22px; }
  .faq summary { font-size: 17px; padding: 22px 0; }
  .cta { margin-top: 110px; padding: 70px 20px; border-radius: 30px; }
  .private { gap: 8px; }
  /* Узкий экран: строки при переносе ближе друг к другу */
  .hero .lead, .sec-head p, .card p, .step p, .panel ol li, .panel ul li, .faq details p, .cta p.lead { line-height: 1.45; }
  .mini p, .notif p, .foot p { line-height: 1.4; }
  .pill, .eyebrow, .m-chip .ct, .m-res .n, .node { line-height: 1.3; }
  .card h3, .mini h4, .step h3, .faq summary { line-height: 1.2; }
  .node .nb { width: 58px; height: 58px; border-radius: 18px; }
  .link-line { max-width: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
