/* Лендинг 1tegh, направление В «из хаоса в порядок» (design/landing-v2/variant-c.html, утверждён владельцем).
   Токены — /site/tokens.css (копия design/tokens.css при сборке); страница всегда в светлой схеме токенов
   (<html data-theme="light">): макет сам задаёт тёмные и светлые полосы. Цвета, которых нет в токенах, заведены
   ОДИН раз ниже как --l-*; холст hero читает их же через getComputedStyle — в JS цветов нет.
   CSP страниц: только свои стили и скрипты, без style="" — динамика через CSSOM (element.style.setProperty). */
@font-face { font-family: "Google Sans"; font-style: normal; font-display: swap; font-weight: 400 700; src: url(fonts/GoogleSans-armenian.woff2) format("woff2"); unicode-range: U+0308,U+0530-058F,U+2010,U+2024,U+25CC,U+FB13-FB17; }
@font-face { font-family: "Google Sans"; font-style: normal; font-display: swap; font-weight: 400 700; src: url(fonts/GoogleSans-cyrillic.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Google Sans"; font-style: normal; font-display: swap; font-weight: 400 700; src: url(fonts/GoogleSans-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Google Sans"; font-style: normal; font-display: swap; font-weight: 400 700; src: url(fonts/GoogleSans-latin.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  /* из токенов (светлая схема) */
  --l-paper: var(--c-bg);
  --l-paper-raised: var(--c-surface);
  --l-text: var(--c-ink);
  --l-line-dark: var(--c-tablo-line);
  --l-on-ink: var(--c-on-tablo);
  --l-on-ink2: var(--c-on-tablo2);
  --l-ok: var(--c-ok);
  --l-ok-solid: var(--c-ok-solid);
  --l-ok-bg: var(--c-ok-bg);
  --l-crit: var(--c-crit);
  --l-violet: var(--brand-violet);
  --l-violet-on-ink: var(--brand-violet-on-dark);
  --l-pen: var(--c-pending);
  --l-deep: var(--c-camera-bg);
  --l-canvas-txt2: var(--c-ink2);
  /* направление В: своих токенов нет — значения из макета */
  --l-ink: #111113;            /* фон hero, калькулятора, подвала */
  --l-ink-raised: #1E1E23;
  --l-ink-hover: #2A2A30;
  --l-track: #3A3A42;
  --l-paper-line: #D9D9D2;
  --l-text2: #55555D;          /* темнее --c-ink2 ради контраста на --l-paper */
  --l-ok-on-ink: #6CCB94;      /* = --c-ok тёмной схемы */
  --l-ok-bg-ink: #133022;      /* = --c-ok-bg тёмной схемы */
  --l-warn-on-ink: #F2B04A;    /* = --c-warn тёмной схемы */
  --l-sig: #FF5B2E;            /* сигнальный «тревога»: только на тёмном или с тёмным текстом */
  --l-sig-hover: #FF7449;
  --l-on-sig: #111113;
  --l-sticky: #F5D547;
  --l-tick-paper: #FBFBF7;
  --l-xls: #1E7A47;
  --l-voice: #2E2E35;
  --l-swap-bg: #2A1A14;
  --l-swap-line: #6B3020;
  --l-svg-grid: #2C2C33;
  --l-svg-mute: #77777F;
  --l-svg-phone: #2A2A30;
  --l-svg-phone-line: #55555C;
  --l-svg-shot: #1A1A1F;
  --l-svg-bun: #BD8A55;
  --l-svg-cake: #E8D9C3;
  --l-shadow: rgb(0 0 0 / 0.5);
  --l-pad: clamp(16px, 4vw, 48px);
  --l-maxw: 1280px;
  --l-top: 60px;
  --l-ease-out: var(--ease-enter);
  --l-ease-io: cubic-bezier(.65, 0, .35, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; scroll-padding-top: calc(var(--l-top) + 8px); }
@supports (overflow-x: clip) { html { overflow-x: clip; } }
body { margin: 0; background: var(--l-paper); color: var(--l-text); font: 400 17px/1.45 var(--font-sans); }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--l-violet); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .top :focus-visible, .calc :focus-visible, .back :focus-visible, .foot :focus-visible { outline-color: var(--l-violet-on-ink); }
.wrap { max-width: var(--l-maxw); margin: 0 auto; padding: 0 var(--l-pad); }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 60; background: var(--l-paper-raised); color: var(--l-text); padding: 10px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 10px; }

/* ---------- шапка ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgb(17 17 19 / .92); color: var(--l-on-ink); border-bottom: 1px solid var(--l-line-dark); -webkit-backdrop-filter: saturate(1.2) blur(8px); backdrop-filter: saturate(1.2) blur(8px); padding-top: env(safe-area-inset-top, 0px); }
.top > .wrap { max-width: 1440px; height: var(--l-top); display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -.4px; flex: none; }
.mark { flex: none; display: block; }
.mark-cells { fill: var(--l-on-ink); }
.mark-you { fill: var(--l-violet-on-ink); }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { text-decoration: none; color: var(--l-on-ink2); font-size: 15px; font-weight: 500; padding: 8px 10px; border-radius: 8px; transition: color var(--dur-fast), background-color var(--dur-fast); white-space: nowrap; }
.nav a:hover { color: var(--l-on-ink); background: var(--l-ink-raised); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid var(--l-line-dark); border-radius: 8px; overflow: hidden; flex: none; }
.lang button { background: none; border: 0; min-width: 34px; min-height: 36px; padding: 0 8px; font-size: 13px; font-weight: 500; color: var(--l-on-ink2); cursor: pointer; transition: color var(--dur-fast), background-color var(--dur-fast); }
.lang button:hover { color: var(--l-on-ink); }
.lang button[aria-pressed="true"] { background: var(--l-on-ink); color: var(--l-ink); cursor: default; }
.lang button:focus-visible { outline-offset: -3px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 700; font-size: 16px; line-height: 1.15; text-align: center; text-decoration: none; border: 0; cursor: pointer; transition: transform var(--dur-instant) var(--l-ease-out), background-color var(--dur-fast), box-shadow var(--dur-fast); }
.btn:active { transform: scale(.97); }
.btn-sig { background: var(--l-sig); color: var(--l-on-sig); }
.btn-sig:hover { background: var(--l-sig-hover); }
.btn-ghost-d { background: transparent; color: var(--l-on-ink); box-shadow: inset 0 0 0 1.5px var(--l-line-dark); }
.btn-ghost-d:hover { box-shadow: inset 0 0 0 1.5px var(--l-on-ink2); }
.btn-ink { background: var(--l-ink); color: var(--l-on-ink); }
.btn-ink:hover { background: var(--l-ink-hover); }
.btn-ghost-l { background: transparent; color: var(--l-text); box-shadow: inset 0 0 0 1.5px var(--l-text); }
.btn-ghost-l:hover { background: var(--c-surface-pressed); }
.btn-top { min-height: 38px; padding: 0 14px; font-size: 15px; border-radius: 10px; white-space: nowrap; }

/* мобильное меню: только при JS (без JS на узком экране остаются «Войти» и якоря в тексте) */
.burger { display: none; flex: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--l-line-dark); color: var(--l-on-ink); cursor: pointer; align-items: center; justify-content: center; }
.burger svg { display: block; }
.burger path { stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform var(--dur-base) var(--l-ease-out), opacity var(--dur-fast); transform-box: fill-box; transform-origin: center; }
.burger[aria-expanded="true"] .b1 { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] .b2 { opacity: 0; }
.burger[aria-expanded="true"] .b3 { transform: translateY(-5px) rotate(-45deg); }
.mnav { position: absolute; left: 0; right: 0; top: 100%; background: var(--l-ink); border-bottom: 1px solid var(--l-line-dark); box-shadow: 0 24px 40px -20px var(--l-shadow); opacity: 0; transform: translateY(-8px); transition: opacity var(--dur-fast) var(--ease-exit), transform var(--dur-fast) var(--ease-exit); }
.mnav.open { opacity: 1; transform: none; transition-duration: var(--dur-base); transition-timing-function: var(--l-ease-out); }
.mnav[hidden] { display: none; }
.mnav nav { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 20px; }
.mnav nav > a { text-decoration: none; color: var(--l-on-ink); font-size: 19px; font-weight: 500; padding: 14px 0; border-bottom: 1px solid var(--l-ink-raised); min-height: 48px; }
.mnav-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.mnav-act .btn { flex: 1 1 140px; }

@media (max-width: 899px) {
  .nav { display: none; }
  .js .burger:not([hidden]) { display: inline-flex; }
}
@media (min-width: 900px) { .mnav { display: none !important; } }
@media (max-width: 420px) {
  .top .logo span { display: none; }
  .top > .wrap, .top-right { gap: 8px; }
  .lang button { min-width: 32px; padding: 0 6px; }
  .btn-top { padding: 0 11px; }
}

/* ---------- HERO ---------- */
.hero { position: relative; background: var(--l-ink); color: var(--l-on-ink); }
.js .hero { height: 250vh; }
html:not(.js) .hero-ctrl, html:not(.js) #chaos, html:not(.js) .hero-stage { display: none; }
html:not(.js) .hero-sticky { height: auto; min-height: 0; }
html:not(.js) .hero-grid { padding-bottom: 56px; }
.hero-sticky { position: -webkit-sticky; position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; }
#chaos { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-grid { position: relative; z-index: 2; height: 100%; max-width: 1440px; margin: 0 auto; padding: calc(84px + env(safe-area-inset-top, 0px)) var(--l-pad) 24px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: 1fr auto; column-gap: clamp(24px, 4vw, 64px); pointer-events: none; }
.hero-copy { grid-column: 1; grid-row: 1; align-self: center; pointer-events: auto; }
.hero-stage { grid-column: 2; grid-row: 1 / 3; position: relative; min-height: 0; }
.hero-ctrl { grid-column: 1; grid-row: 2; pointer-events: auto; }
.eyebrow { display: flex; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 500; letter-spacing: .3px; color: var(--l-on-ink2); margin: 0 0 18px; }
.eyebrow i { flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--l-sig); display: block; transition: background-color var(--dur-slow); }
.hero h1 { font-size: clamp(38px, 5.4vw, 78px); line-height: .98; letter-spacing: -.035em; font-weight: 700; margin: 0 0 22px; max-width: 11ch; }
.hero h1:lang(hy) { font-size: clamp(32px, 3.3vw, 52px); line-height: 1.04; letter-spacing: -.025em; max-width: none; }
.strike { position: relative; white-space: nowrap; color: var(--l-sig); transition: color var(--dur-base); }
.strike::after { content: ""; position: absolute; left: -.04em; right: -.04em; top: 56%; height: .09em; background: var(--l-on-ink); transform-origin: left center; transform: scaleX(var(--p, 0)); border-radius: 2px; }
.h1-order { display: block; color: var(--l-on-ink); }
.h1-order b { font-weight: 700; background: linear-gradient(var(--l-ok-solid), var(--l-ok-solid)) 0 92% / calc(var(--p, 0) * 100%) .1em no-repeat; }
.subs { display: grid; max-width: 34em; }
.subs p { grid-area: 1 / 1; margin: 0; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.45; color: var(--l-on-ink2); transition: opacity var(--dur-base), transform var(--dur-base) var(--l-ease-out); }
.subs p strong { color: var(--l-on-ink); font-weight: 500; }
.subs .s-order { opacity: 0; transform: translateY(8px); }
.is-order .subs .s-chaos { opacity: 0; transform: translateY(-8px); }
.is-order .subs .s-order { opacity: 1; transform: none; }
.is-order .eyebrow i { background: var(--l-ok-on-ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-fine { margin: 12px 0 0; font-size: 13px; color: var(--l-on-ink2); }
.ctrl-row { display: flex; align-items: center; gap: 14px; background: var(--l-ink-raised); border: 1px solid var(--l-line-dark); border-radius: 16px; padding: 10px 10px 10px 16px; max-width: 540px; }
.ctrl-lbl { font-size: 13px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--l-on-ink2); flex: none; transition: color var(--dur-fast); }
.ctrl-lbl.l1.on { color: var(--l-sig); }
.ctrl-lbl.l2.on { color: var(--l-ok-on-ink); }
input[type=range].order { flex: 1; min-width: 60px; -webkit-appearance: none; appearance: none; height: 44px; background: transparent; margin: 0; cursor: grab; --v: 0%; touch-action: pan-y; }
input[type=range].order:active { cursor: grabbing; }
input[type=range].order::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--l-on-ink) var(--v), var(--l-track) var(--v)); }
input[type=range].order::-moz-range-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--l-on-ink) var(--v), var(--l-track) var(--v)); }
input[type=range].order::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 9px; background: var(--l-on-ink); border: 3px solid var(--l-ink); box-shadow: 0 0 0 2px var(--l-on-ink); transition: transform var(--dur-instant); }
input[type=range].order::-moz-range-thumb { width: 24px; height: 24px; border-radius: 9px; background: var(--l-on-ink); border: 3px solid var(--l-ink); box-shadow: 0 0 0 2px var(--l-on-ink); }
input[type=range].order:active::-webkit-slider-thumb { transform: scale(1.12); }
input[type=range].order:focus-visible { outline-offset: 0; }
.ctrl-btn { flex: none; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 0; background: var(--l-sig); color: var(--l-on-sig); font-weight: 700; font-size: 15px; cursor: pointer; transition: background-color var(--dur-fast), transform var(--dur-instant); white-space: nowrap; }
.ctrl-btn:active { transform: scale(.96); }
.is-order .ctrl-btn { background: var(--l-on-ink); }
.ctrl-hint { font-size: 13px; color: var(--l-on-ink2); margin: 10px 2px 0; }
.stage-top, .stage-bot { position: absolute; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--l-on-ink2); gap: 12px; }
.stage-top { top: 0; height: 28px; z-index: 2; }
.stage-top .a { background: var(--l-ink); padding-right: 8px; border-radius: 0 6px 6px 0; }
.stage-bot { bottom: 0; height: 22px; font-size: 12px; z-index: 2; }
.stage-bot > span:first-child { background: var(--l-ink); padding: 0 6px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.stage-top .a, .stage-top .b { transition: opacity var(--dur-base); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.stage-top .b { position: absolute; left: 0; opacity: 0; }
.is-order .stage-top .a { opacity: 0; }
.is-order .stage-top .b { opacity: 1; }
.stage-top b { color: var(--l-sig); font-weight: 700; }
.is-order .stage-top b { color: var(--l-ok-on-ink); }
.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--l-line-dark); border-radius: 6px; padding: 2px 8px; white-space: nowrap; background: var(--l-ink); flex: none; }

@media (max-width: 899px) {
  .js .hero { height: 220vh; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; padding-top: calc(var(--l-top) + 16px + env(safe-area-inset-top, 0px)); padding-bottom: max(14px, env(safe-area-inset-bottom, 0px)); row-gap: 12px; }
  .hero-copy { grid-column: 1; grid-row: 1; align-self: start; }
  .hero-stage { grid-column: 1; grid-row: 2; }
  .hero-ctrl { grid-column: 1; grid-row: 3; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 52px); line-height: 1.02; margin-bottom: 12px; max-width: none; }
  .hero h1:lang(hy) { font-size: clamp(28px, 7.8vw, 48px); line-height: 1.06; }
  .eyebrow { margin-bottom: 10px; }
  .subs p { font-size: 15px; line-height: 1.4; }
  .hero-cta { margin-top: 14px; }
  .hero-cta .btn-sig { flex: 1 1 auto; max-width: 420px; }
  .btn-how, .hero-fine { display: none; }
  .ctrl-row { max-width: none; padding: 6px 6px 6px 12px; gap: 10px; }
  .ctrl-hint { display: none; }
}
@media (max-width: 480px) { .ctrl-lbl { display: none; } }
@media (max-height: 720px) and (max-width: 899px) {
  .subs { display: none; }
  .hero h1, .hero h1:lang(hy) { font-size: clamp(28px, 7.6vw, 44px); }
}

/* ---------- секции ---------- */
.sec { padding: clamp(64px, 9vw, 128px) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--l-text2); margin: 0 0 14px; display: flex; gap: 10px; align-items: center; }
.kicker::before { content: ""; flex: none; width: 22px; height: 3px; background: currentColor; border-radius: 2px; }
h2 { font-size: clamp(30px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.03em; margin: 0; font-weight: 700; text-wrap: balance; overflow-wrap: break-word; }
h2:lang(hy) { font-size: clamp(26px, 3.1vw, 44px); line-height: 1.08; letter-spacing: -.02em; }
.sec-head p { margin: 0; color: var(--l-text2); font-size: 18px; max-width: 30em; }
@media (max-width: 899px) { .sec-head { grid-template-columns: 1fr; } }

/* ---------- карточки боли ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1023px) { .cards { grid-template-columns: 1fr; max-width: 620px; } }
.card-in { display: grid; }
.face { border-radius: 22px; padding: 26px; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.front { background: var(--l-paper-raised); border: 1.5px solid var(--l-text); }
.back { background: var(--l-ink); color: var(--l-on-ink); }
/* без JS: лицо и оборот друг под другом, кнопки переворота не нужны */
.card-in { gap: 10px; }
.flip-btn { display: none; }
/* с JS: настоящий переворот; обе стороны в одной ячейке сетки — высота по большей стороне */
.js .card { perspective: 1600px; cursor: pointer; }
.js .card-in { gap: 0; position: relative; min-height: 600px; transform-style: preserve-3d; transition: transform 750ms var(--l-ease-io); }
.js .face { grid-area: 1 / 1; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.js .back { transform: rotateY(180deg); }
.js .card.is-flipped .card-in { transform: rotateY(180deg); }
.js .flip-btn { display: inline-flex; }
@media (hover: hover) and (pointer: fine) { .js .card:hover:not(.no-hover) .card-in { transform: rotateY(180deg); } }
@media (max-width: 1023px) { .js .card-in { min-height: 0; } }
.role { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; }
.role span:last-child { color: var(--l-text2); font-weight: 500; text-transform: none; letter-spacing: 0; text-align: right; }
.back .role span:last-child { color: var(--l-on-ink2); }
.quote { font-size: clamp(25px, 2.3vw, 32px); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; margin: 26px 0 24px; }
.quote:lang(hy) { font-size: clamp(23px, 2vw, 28px); line-height: 1.16; letter-spacing: -.01em; }
.quote em { font-style: normal; background: var(--l-sig); color: var(--l-on-sig); padding: 0 .14em; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.pains { list-style: none; margin: auto 0 0; padding: 0; font-size: 16px; line-height: 1.4; color: var(--l-text2); }
.pains li { padding: 11px 0; border-top: 1px solid var(--l-paper-line); display: flex; gap: 10px; }
.pains li::before { content: ""; flex: none; width: 10px; height: 2px; margin-top: 11px; background: var(--l-crit); }
.flip-btn { margin-top: 18px; align-self: flex-start; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 0; background: var(--l-ink); color: var(--l-on-ink); font-weight: 700; font-size: 15px; cursor: pointer; transition: transform var(--dur-instant) var(--l-ease-out); }
.flip-btn:active { transform: scale(.97); }
.back .flip-btn { background: var(--l-on-ink); color: var(--l-ink); margin-top: 14px; }
.flip-btn .arr { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flip-btn svg { transition: transform var(--dur-base) var(--l-ease-out); }
.flip-btn:hover svg { transform: translateX(3px); }
.anim { position: relative; margin: 18px -6px 0; border-radius: 14px; background: var(--l-ink-raised); border: 1px solid var(--l-line-dark); aspect-ratio: 16 / 9; overflow: hidden; }
.anim svg { display: block; width: 100%; height: 100%; }
.demo-tag { position: absolute; right: 4px; top: 4px; z-index: 1; font-size: 10px; line-height: 14px; font-weight: 500; letter-spacing: .3px; text-transform: uppercase; color: var(--l-on-ink2); border: 1px solid var(--l-line-dark); border-radius: 5px; padding: 0 5px; background: var(--l-ink-raised); }
.back h3 { font-size: 24px; line-height: 1.14; letter-spacing: -.015em; margin: 20px 0 8px; }
.back h3:lang(hy) { font-size: 22px; }
.back p { margin: 0; color: var(--l-on-ink2); font-size: 15.5px; line-height: 1.45; }
.back p b { color: var(--l-on-ink); font-weight: 500; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 14px; }
.facts span { font-size: 12.5px; border: 1px solid var(--l-line-dark); border-radius: 6px; padding: 3px 8px; color: var(--l-on-ink2); }
@media (max-width: 420px) { .face { padding: 20px; } .quote { font-size: 24px; } .quote:lang(hy) { font-size: 22px; } }

/* svg карточек: цвета — классами (CSP запрещает style="") */
.svg-t { font-family: var(--font-sans); fill: var(--l-on-ink2); font-size: 11px; }
.svg-tb { font-family: var(--font-sans); fill: var(--l-on-ink); font-size: 12px; font-weight: 700; }
.svg-tb.ok { fill: var(--l-ok-on-ink); }
.svg-list text { font-family: var(--font-sans); font-size: 12px; fill: var(--l-on-ink); }
.g-grid { stroke: var(--l-svg-grid); stroke-width: 1; fill: none; }
.g-road { stroke: var(--l-line-dark); stroke-width: 9; fill: none; }
.pulse { fill: none; stroke: var(--l-ok-on-ink); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; vector-effect: non-scaling-stroke; }
.radius { fill: none; stroke: var(--l-svg-mute); stroke-width: 1.5; stroke-dasharray: 4 4; }
.radius-ok { fill: rgb(108 203 148 / .08); stroke: var(--l-ok-on-ink); stroke-width: 1.5; stroke-dasharray: 4 4; }
.g-pin { fill: var(--l-on-ink); }
.g-walker { fill: var(--l-sig); stroke: var(--l-ink); stroke-width: 2.5; }
.g-phone { fill: var(--l-svg-phone); stroke: var(--l-svg-phone-line); }
.g-face { fill: var(--l-svg-mute); }
.g-frame { fill: none; stroke: var(--l-ok-on-ink); stroke-width: 2; }
.g-okbg { fill: var(--l-ok-bg-ink); }
.g-okck { fill: none; stroke: var(--l-ok-on-ink); stroke-width: 2; stroke-linecap: round; }
.ck { fill: none; stroke: var(--l-ok-on-ink); stroke-width: 2; stroke-dasharray: 24; stroke-linecap: round; }
.g-shot { fill: var(--l-svg-shot); }
.g-shelf { stroke: var(--l-svg-phone-line); stroke-width: 2; }
.g-bun { fill: var(--l-svg-bun); }
.g-cake { fill: var(--l-svg-cake); }
.scan { fill: var(--l-violet-on-ink); opacity: 0; }
.g-rail { stroke: var(--l-line-dark); stroke-width: 2; }
.g-sig { fill: var(--l-sig); }
.g-idle { fill: var(--l-svg-phone); stroke: var(--l-svg-phone-line); }
.cancel { stroke: var(--l-on-ink2); stroke-width: 1.5; }
/* по умолчанию — финальный кадр (его же видят без JS и при reduced motion); анимация — пока оборот открыт */
.flipped-run .walker { animation: walk 4.2s var(--l-ease-io) infinite both; }
.flipped-run .radius-ok { animation: fadeAt48 4.2s linear infinite both; }
.flipped-run .selfie { animation: pop 4.2s var(--l-ease-out) infinite both; }
.flipped-run .badge1 { animation: pop2 4.2s var(--l-ease-out) infinite both; }
.flipped-run .pulse { animation: pulse 2.1s ease-out infinite both; }
.flipped-run .ck { animation: ck 4.6s var(--l-ease-out) infinite both; }
.flipped-run .ck2 { animation-delay: .35s; }
.flipped-run .ck3 { animation-delay: .7s; }
.flipped-run .ck4 { animation-delay: 1.05s; }
.flipped-run .scan { animation: scan 4.6s linear infinite both; }
.flipped-run .ai { animation: pop2 4.6s var(--l-ease-out) infinite both; }
.flipped-run .step2 { animation: lit2 5.4s linear infinite both; }
.flipped-run .step3 { animation: lit3 5.4s linear infinite both; }
.flipped-run .sw { animation: sw 5.4s var(--l-ease-out) infinite both; }
.flipped-run .cancel { animation: cancel 5.4s linear infinite both; }
@keyframes walk { 0% { transform: translate(-118px, 52px); } 45%, 100% { transform: translate(0, 0); } }
@keyframes fadeAt48 { 0%, 44% { opacity: 0; } 48%, 100% { opacity: 1; } }
@keyframes pop { 0%, 48% { opacity: 0; transform: translateY(8px); } 60%, 100% { opacity: 1; transform: none; } }
@keyframes pop2 { 0%, 66% { opacity: 0; transform: translateY(6px); } 76%, 100% { opacity: 1; transform: none; } }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes ck { 0%, 8% { stroke-dashoffset: 24; opacity: 0; } 22%, 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes scan { 0%, 30% { transform: translateY(0); opacity: 0; } 32% { opacity: 1; } 62% { transform: translateY(92px); opacity: 1; } 64%, 100% { opacity: 0; transform: translateY(92px); } }
@keyframes sw { 0%, 62% { opacity: 0; transform: translateX(-8px); } 72%, 100% { opacity: 1; transform: none; } }
@keyframes cancel { 0%, 72% { opacity: 0; } 80%, 100% { opacity: 1; } }
@keyframes lit2 { 0%, 16% { opacity: .18; } 22%, 100% { opacity: 1; } }
@keyframes lit3 { 0%, 38% { opacity: .18; } 44%, 100% { opacity: 1; } }

/* ---------- день ---------- */
.day { background: var(--l-paper); padding-top: 0; }
.tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 2px solid var(--l-text); }
.tl li { padding: 18px 16px 0 0; position: relative; }
.tl li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 3px; background: var(--l-text); }
.tl li.alarm::before { background: var(--l-sig); }
.tl time { display: block; font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tl b { display: block; margin: 6px 0 4px; font-size: 16px; }
.tl span { font-size: 14.5px; color: var(--l-text2); line-height: 1.4; display: block; }
@media (max-width: 1023px) { .tl { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; } }
@media (max-width: 620px) { .tl { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--l-text); row-gap: 20px; padding-left: 20px; } .tl li { padding: 0; } .tl li::before { left: -27px; top: 8px; } }

/* ---------- калькулятор ---------- */
.calc { background: var(--l-ink); color: var(--l-on-ink); }
.calc .kicker, .calc .sec-head p { color: var(--l-on-ink2); }
.calc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); }
@media (max-width: 899px) { .calc-grid { grid-template-columns: 1fr; } }
.sl { margin-bottom: 26px; }
.sl label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; color: var(--l-on-ink2); margin-bottom: 4px; }
.sl output { font-size: 28px; font-weight: 700; color: var(--l-on-ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.sl input { width: 100%; }
.res { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.res .box { background: var(--l-ink-raised); border: 1px solid var(--l-line-dark); border-radius: 18px; padding: 22px; min-width: 0; }
.res .box.wide { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; background: transparent; }
.res .big { font-size: clamp(40px, 6vw, 84px); line-height: .95; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; display: block; margin: 10px 0 8px; white-space: nowrap; }
.res .box:first-child .big { color: var(--l-sig); }
.res small { font-size: 14px; color: var(--l-on-ink2); line-height: 1.4; display: block; }
.res small b { color: var(--l-on-ink); font-weight: 700; white-space: nowrap; }
.formula { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--l-on-ink2); background: var(--l-deep); border: 1px dashed var(--l-line-dark); border-radius: 14px; padding: 16px 18px; font-variant-numeric: tabular-nums; }
.formula b { color: var(--l-on-ink); font-weight: 500; }
.formula p { margin: 0 0 6px; }
.formula .note { margin-top: 10px; color: var(--l-warn-on-ink); }
@media (max-width: 520px) { .res { grid-template-columns: 1fr; } }

/* ---------- цена ---------- */
.price-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 899px) { .price-grid { grid-template-columns: 1fr; } }
.price { border: 2px solid var(--l-text); border-radius: 24px; padding: clamp(22px, 3vw, 36px); background: var(--l-paper-raised); }
.price .amt { font-size: clamp(64px, 9vw, 128px); font-weight: 700; letter-spacing: -.05em; line-height: .9; }
.price .amt sup { font-size: .32em; vertical-align: 1.2em; letter-spacing: 0; margin-right: .08em; }
.price .per { font-size: 18px; color: var(--l-text2); margin: 10px 0 0; }
.free { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--l-ok); background: var(--l-ok-bg); border-radius: 6px; padding: 5px 10px; }
.inc { list-style: none; padding: 0; margin: 24px 0 0; columns: 2; column-gap: 28px; }
@media (max-width: 520px) { .inc { columns: 1; } }
.inc li { break-inside: avoid; padding: 8px 0 8px 26px; position: relative; font-size: 15.5px; border-top: 1px solid var(--l-paper-line); }
.inc li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 11px; height: 6px; border-left: 2.2px solid var(--l-ok); border-bottom: 2.2px solid var(--l-ok); transform: rotate(-45deg); }
.price .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pilot { font-size: 18px; line-height: 1.5; }
.pilot > p { margin: 0 0 16px; }
.pilot .tg { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--l-paper-line); font-size: 15.5px; color: var(--l-text2); }
.pilot .tg b { color: var(--l-text); display: block; font-size: 16px; }
.pilot .tg svg { flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }

.foot { background: var(--l-ink); color: var(--l-on-ink2); padding: 36px 0 calc(36px + env(safe-area-inset-bottom, 0px)); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.foot .logo { color: var(--l-on-ink); }
.foot nav { display: flex; gap: 6px 18px; margin-left: auto; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot nav a { padding: 8px 0; }
.foot a:hover { color: var(--l-on-ink); }

/* появление при прокрутке — только с JS (без JS всё видно) */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--l-ease-out), transform 600ms var(--l-ease-out); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .hero { height: auto; }
  .hero-sticky { position: relative; height: auto; min-height: 100vh; min-height: 100svh; }
  .hero-grid { min-height: 100vh; min-height: 100svh; }
  .js .card-in { transition: none; }
  .js .card.is-flipped .card-in, .js .card:hover .card-in, .js .card.is-flipped:hover .card-in { transform: none; }
  .js .back { transform: none; opacity: 0; transition: opacity var(--motion-reduced-crossfade); }
  .js .front { transition: opacity var(--motion-reduced-crossfade); }
  .js .card.is-flipped .back { opacity: 1; }
  .js .card.is-flipped .front { opacity: 0; }
  @media (hover: hover) and (pointer: fine) { .js .card:hover:not(.no-hover) .back { opacity: 1; } .js .card:hover:not(.no-hover) .front { opacity: 0; } }
  .flipped-run * { animation: none !important; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .strike::after, .subs p, .btn, .mnav, .burger path { transition: none; }
}
