/* Vegafab — общие стили сайта. Основа — светлая слоновая кость и тёмные
   «ночные» секции (шапка, первые экраны, скачивание, подвал), акцент — шампань.
   Синий и бирюзовый — Летописец, розовый — «Близкий круг». */

/* Шрифты раздаются с сайта и разбиты по наборам символов: браузер скачивает
   только нужные странице. Onest (SIL OFL 1.1, assets/fonts/OFL-onest.txt) —
   текст и заголовки, Geist Mono (assets/fonts/OFL-geist.txt) — код и имена файлов. */

@font-face {
  font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/onest-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: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/onest-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;
}
@font-face {
  font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/geist-mono-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/geist-mono-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: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/geist-mono-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 {
  --paper: #f6f3ed;
  --paper-2: #efeae0;
  --card: #fffdf9;
  --ink: #101a24;
  --heading: #0c1b2c;
  --muted: #5f6873;
  --line: rgba(16, 26, 36, .1);
  --line-strong: rgba(16, 26, 36, .16);

  --night: #0a1420;
  --night-2: #101e2e;
  --navy: #13365a;
  --teal: #1c5e7c;
  --sea: #2e9aa3;
  --gold: #c9a66b;
  --gold-2: #e8d3a6;
  --gold-soft: #f6eedd;
  --rose: #c23a4a;
  --rose-2: #e36a78;

  --accent: var(--teal);
  --glow: rgba(46, 154, 163, .30);
  --cta-bg: var(--night);
  --cta-ink: #f6f1e7;

  --radius: 22px;
  --radius-lg: 30px;
  --shadow: 0 1px 1px rgba(12, 27, 44, .04), 0 10px 30px -8px rgba(12, 27, 44, .12);
  --shadow-lg: 0 2px 4px rgba(12, 27, 44, .04), 0 30px 70px -20px rgba(12, 27, 44, .28);
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: var(--sans);
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

.section-close-circle, .product-close-circle {
  --accent: var(--rose);
  --glow: rgba(194, 58, 74, .30);
  --cta-bg: linear-gradient(180deg, var(--rose-2), var(--rose));
  --cta-ink: #fff;
}

/* Тёмная секция: переопределяет те же переменные, поэтому карточки, кнопки
   и блок скачивания внутри неё перекрашиваются без отдельных правил. */
.dark {
  --paper: rgba(255, 255, 255, .035);
  --paper-2: rgba(255, 255, 255, .07);
  --card: rgba(255, 255, 255, .045);
  --ink: #f2ede4;
  --heading: #f7f3ec;
  --muted: rgba(242, 237, 228, .64);
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .18);
  --accent: var(--gold-2);
  --cta-bg: linear-gradient(180deg, #e9d2a0, #c49c5c);
  --cta-ink: #1b1306;
  --shadow: none;
  position: relative;
  isolation: isolate;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 88% -8%, var(--glow), transparent 62%),
    radial-gradient(700px 420px at -6% 108%, rgba(201, 166, 107, .14), transparent 60%),
    var(--night);
}
.dark::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 20%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 70% 20%, #000 10%, transparent 75%);
}
.section-close-circle .dark, .dark.product-close-circle { --cta-bg: linear-gradient(180deg, var(--rose-2), var(--rose)); --cta-ink: #fff; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font: 17px/1.65 var(--sans);
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { flex: 1; }

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

::selection { background: rgba(201, 166, 107, .35); }

h1, h2, h3 { font-family: var(--display); font-weight: 520; line-height: 1.15; letter-spacing: -.02em; color: var(--heading); }
h1 { font-size: clamp(40px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -.045em; margin: 0 0 24px; }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 20px; }
h3 { font-size: 21px; margin: 0 0 8px; letter-spacing: -.015em; }

.dark h1 {
  background: linear-gradient(180deg, #fffaf1 30%, #cfc3ad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h1 em, h2 em {
  font-style: normal;
  background: linear-gradient(100deg, #f1dcae, #c49c5c 60%, #e8d3a6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h2 em { background-image: linear-gradient(100deg, #b58a46, #8f6a2f); }
.dark h2 em { background-image: linear-gradient(100deg, #f1dcae, #c49c5c 60%, #e8d3a6); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 22px;
  font: 600 12.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  color: #9a7a43;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.dark .eyebrow { color: var(--gold); }

code, kbd {
  font-family: var(--mono);
  font-size: .86em;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .08em .4em;
}
kbd { box-shadow: inset 0 -1px 0 var(--line-strong); }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.muted-note { color: var(--muted); font-size: 15px; margin-top: 22px; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 10;
  background: var(--gold-2); color: var(--night); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Шапка */

.topbar {
  position: sticky; top: 0; z-index: 5;
  background: var(--night);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  color: #f2ede4;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; height: auto; }

.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  color: rgba(242, 237, 228, .72); text-decoration: none;
  padding: 8px 14px; border-radius: 999px; font-size: 15px; letter-spacing: .005em;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; margin-left: 14px; padding: 3px;
  border-radius: 999px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  font-size: 12px; font-weight: 600; letter-spacing: .1em; line-height: 1;
}
.lang-switch > * { padding: 7px 11px; border-radius: 999px; }
.nav .lang-switch a { padding: 7px 11px; font-size: inherit; color: rgba(242, 237, 228, .55); }
.nav .lang-switch a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.lang-switch .on {
  color: #1b1306; background: linear-gradient(180deg, #e9d2a0, #c49c5c);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 4px 12px -4px rgba(201, 166, 107, .6);
}

/* Кнопки */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  font: 600 15px/1.2 var(--sans); letter-spacing: .005em; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); border-color: var(--ink); text-decoration: none; }
.btn-primary {
  background: var(--cta-bg); border-color: transparent; color: var(--cta-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 24px -10px rgba(12, 27, 44, .55);
}
.btn-primary:hover { border-color: transparent; box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 16px 30px -12px rgba(12, 27, 44, .6); }
.dark .btn-primary { box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 14px 34px -14px rgba(201, 166, 107, .7); }
.section-close-circle .dark .btn-primary { box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 14px 34px -14px rgba(227, 106, 120, .75); }
.btn-ghost { border-color: transparent; color: var(--accent); padding-inline: 14px; }
.btn-ghost::after { content: "→"; transition: transform .25s var(--ease); }
.btn-ghost:hover { border-color: transparent; }
.btn-ghost:hover::after { transform: translateX(3px); }
.btn-large { padding: 16px 30px; font-size: 16px; }
.btn-disabled { background: var(--paper-2); border-color: transparent; color: var(--muted); cursor: default; }
.btn-disabled:hover { transform: none; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 8px 18px 8px 9px; border-radius: 14px;
  background: #05090f; border: 1px solid rgba(255, 255, 255, .22); color: #fff; text-decoration: none;
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.store-badge:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, .5); background: #000; text-decoration: none; }
.store-badge-icon {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10.5 12 15.5 17 10.5M5 20h14'/%3E%3C/svg%3E") center / 18px no-repeat,
    linear-gradient(150deg, #2e8bff, #0060f0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.store-badge-text { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge-text small { font-size: 11px; letter-spacing: .02em; color: rgba(255, 255, 255, .7); }
.store-badge-text b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }

/* Главная */

.hero { padding: clamp(72px, 11vw, 140px) 0 clamp(150px, 16vw, 210px); overflow: hidden; }
.hero-inner > h1 { max-width: 900px; }
.hero-lead { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.6; font-weight: 350; color: var(--muted); max-width: 640px; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; align-items: center; }
.hero-points {
  display: flex; flex-wrap: wrap; gap: 10px 0; margin: 56px 0 0; padding: 0; list-style: none;
  font-size: 14px; letter-spacing: .02em; color: var(--muted);
}
.hero-points li { padding: 0 22px; border-left: 1px solid var(--line-strong); }
.hero-points li:first-child { padding-left: 0; border-left: 0; }

.products-section { position: relative; z-index: 1; margin-top: clamp(-130px, -11vw, -90px); }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 28px; padding-bottom: 110px; }

.product-card {
  display: flex; flex-direction: column; gap: 18px;
  background: var(--card); border: 1px solid rgba(255, 255, 255, .7); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.product-card::before {
  content: ""; position: absolute; z-index: -1; width: 460px; height: 460px; right: -170px; top: -230px;
  background: radial-gradient(closest-side, rgba(46, 154, 163, .2), transparent 70%);
}
.product-close-circle::before { background: radial-gradient(closest-side, rgba(227, 106, 120, .2), transparent 70%); }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(12, 27, 44, .04), 0 40px 80px -24px rgba(12, 27, 44, .34); }
.product-card p { margin: 0; color: var(--muted); }
.product-card-link { display: flex; align-items: center; gap: 22px; text-decoration: none; }
.product-card-link h3 { margin: 4px 0 0; font-size: 34px; letter-spacing: -.035em; }
.product-icon { border-radius: 24px; flex: none; box-shadow: 0 14px 30px -12px rgba(12, 27, 44, .45); }
.product-platforms { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #9a7a43 !important; }
.product-close-circle .product-platforms { color: var(--rose) !important; }
.product-tagline { font-size: 17.5px; line-height: 1.6; max-width: 46ch; }
.product-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.product-meta li { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--paper-2); color: var(--muted); }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }

.section-home { background: var(--night); }
.section-home .hero { background: radial-gradient(900px 520px at 88% -8%, var(--glow), transparent 62%), var(--night); }

.principles { padding: 20px 0 120px; }
.principles-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 56px; }
.principles-head h2 { margin: 0; }
.principles-head p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 18px; max-width: 480px; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 40px; }
.about-grid > div { padding-top: 28px; border-top: 1px solid var(--line-strong); }
.about-grid .num { display: block; font: 500 13px/1 var(--mono); color: #9a7a43; letter-spacing: .08em; margin-bottom: 28px; }
.about-grid h3 { font-size: 22px; }
.about-grid p { margin: 0; color: var(--muted); }

/* Страница программы */

.product-hero { padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.product-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 64px; align-items: center; }
.product-hero-title { display: flex; align-items: center; gap: 22px; margin-bottom: 26px; }
.product-hero-title img { border-radius: 26px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 20px 44px -16px rgba(0, 0, 0, .7); }
.product-hero-title h1 { margin: 0; font-size: clamp(40px, 5vw, 64px); }
.hero-tagline { margin: -6px 0 18px; font: 450 clamp(24px, 2.6vw, 32px)/1.2 var(--display); letter-spacing: -.025em; color: var(--heading); }
.hero-tagline em { white-space: nowrap; font-style: normal; background: linear-gradient(100deg, #f1dcae, #c49c5c 60%, #e8d3a6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.product-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; align-items: center; }
.product-hero .facts {
  display: flex; flex-wrap: wrap; gap: 10px 0; margin-top: 36px; padding-top: 24px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; letter-spacing: .02em;
}
.product-hero .facts span { padding: 0 18px; border-left: 1px solid var(--line-strong); }
.product-hero .facts span:first-child { padding-left: 0; border-left: 0; }

.app-art {
  display: block; width: 100%; border-radius: 16px; background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 90px -20px rgba(0, 0, 0, .75), 0 0 120px -20px var(--glow);
}

.phones { display: flex; justify-content: center; gap: 22px; padding-bottom: 36px; }
.phone {
  width: min(46%, 260px); border-radius: 34px; border: 9px solid #15151a; background: #15151a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 80px -24px rgba(0, 0, 0, .8), 0 0 120px -30px var(--glow);
}
.phone:nth-child(2) { transform: translateY(36px); }

.story { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 88px; align-items: center; }
.story-phone { display: flex; justify-content: center; }
.story-phone .phone { width: min(100%, 300px); }
.story .block-head { margin-bottom: 44px; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 40px; position: relative; }
.timeline li { position: relative; padding-bottom: 32px; }
.timeline li:not(:last-child)::after {
  content: ""; position: absolute; left: -33px; top: 10px; bottom: -10px; width: 1px;
  background: linear-gradient(var(--line-strong), var(--gold));
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; z-index: 1; left: -40px; top: 3px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--gold); box-shadow: 0 0 0 5px var(--paper);
}
.timeline li:last-child::before { background: var(--cta-bg); border-color: transparent; box-shadow: 0 0 0 5px var(--paper), 0 0 22px var(--glow); }
.timeline .when { font: 500 12.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #9a7a43; }
.timeline h3 { margin: 10px 0 6px; font-size: 21px; }
.timeline p { margin: 0; color: var(--muted); max-width: 56ch; }

.statement { padding: clamp(80px, 10vw, 136px) 0; text-align: center; border-top: 1px solid var(--line); }
.statement figure { margin-block: 0; }
.statement blockquote { margin: 0 auto 32px; max-width: 920px; }
.statement blockquote p {
  margin: 0; font: 450 clamp(28px, 3.8vw, 48px)/1.18 var(--display); letter-spacing: -.03em; color: var(--heading);
}
.statement blockquote p::before { content: "“"; display: block; font-size: 1.6em; line-height: .8; color: var(--gold); }
.statement blockquote em { font-style: normal; background: linear-gradient(100deg, #b58a46, #8f6a2f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.statement .eyebrow { margin: 0; }

.block { padding: clamp(72px, 9vw, 120px) 0; }
.block-alt { background: var(--card); border-block: 1px solid var(--line); }
.block-head { max-width: 760px; margin-bottom: 56px; }
.block-head p:not(.eyebrow) { color: var(--muted); margin: 0; font-size: 18.5px; font-weight: 350; }

.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; counter-reset: feature;
}
.feature { background: var(--card); padding: 34px 32px 36px; counter-increment: feature; transition: background .3s var(--ease); }
.feature:hover { background: var(--paper); }
.feature h3 { font-size: 19px; font-family: var(--sans); font-weight: 600; color: var(--heading); margin-bottom: 10px; }
.feature h3::before {
  content: counter(feature, decimal-leading-zero); display: block; margin-bottom: 22px;
  font: 500 12.5px/1 var(--mono); letter-spacing: .08em; color: #9a7a43;
}
.section-close-circle .feature h3::before { color: var(--rose); }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.65; }

.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 250px); gap: 24px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img { display: block; border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.gallery figcaption { font-size: 14px; color: var(--muted); margin-top: 14px; }

.pair { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.pair p:not(.eyebrow) { color: var(--muted); }
.pair p a { font-weight: 500; }
.callout {
  position: relative; background: var(--gold-soft); border: 1px solid rgba(201, 166, 107, .35);
  padding: 22px 24px; border-radius: 16px;
}
.callout p { margin: 0; color: var(--ink); }
.callout p + p { margin-top: 8px; }
.pair .callout { padding: 40px; border-radius: var(--radius-lg); background: var(--night); border-color: transparent; color: #f2ede4; box-shadow: var(--shadow-lg); overflow: hidden; isolation: isolate; }
.pair .callout::before {
  content: ""; position: absolute; z-index: -1; inset: auto -120px -160px auto; width: 360px; height: 360px;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
}
.pair .callout p { color: rgba(242, 237, 228, .72); font-size: 17px; line-height: 1.7; }
.pair .callout b { display: flex; align-items: center; gap: 14px; color: #fff; font-size: 22px; font-weight: 520; letter-spacing: -.02em; margin-bottom: 16px; }
.pair .callout b::before {
  content: ""; flex: none; width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid rgba(201, 166, 107, .5);
  background: rgba(201, 166, 107, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8d3a6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* Скачивание */

.download-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 32px; }
.download-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.download-meta b { color: var(--ink); font-weight: 600; }
.download-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.download-item {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 4px 18px; align-items: center;
  padding: 18px 18px 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.download-item:not(.is-soon):hover { border-color: var(--line-strong); background: var(--paper-2); }
.download-item.is-soon { opacity: .6; }
.download-text { display: flex; flex-direction: column; }
.download-text b { font-weight: 600; }
.download-text span { color: var(--muted); font-size: 14.5px; }
.checksum { grid-column: 2 / -1; font-size: 13px; color: var(--muted); }
.checksum summary { cursor: pointer; width: fit-content; }
.checksum code { display: block; margin-top: 6px; word-break: break-all; font-size: 12px; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; color: var(--muted); font-size: 15px; }

.os { width: 48px; height: 48px; border-radius: 14px; background: var(--navy) center / 24px no-repeat; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.os-windows { background-color: #1c5e7c; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M3 5.5 10.5 4.5v7H3zM11.5 4.3 21 3v8.5h-9.5zM3 12.5h7.5v7L3 18.5zM11.5 12.5H21V21l-9.5-1.3z'/%3E%3C/svg%3E"); }
.os-linux { background-color: #3b4652; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 2c-2.2 0-3.6 1.9-3.6 4.4 0 1.5.5 2.6.3 3.6-.3 1.2-2.7 3.6-3.2 6-.3 1.5.3 2.4 1.2 2.7.8.3 1.4 1.3 2.5 1.6 1 .3 1.8-.4 2.8-.4s1.8.7 2.8.4c1.1-.3 1.7-1.3 2.5-1.6.9-.3 1.5-1.2 1.2-2.7-.5-2.4-2.9-4.8-3.2-6-.2-1 .3-2.1.3-3.6C15.6 3.9 14.2 2 12 2zm-1.5 4.2c.5 0 .8.6.8 1.2s-.3 1-.8 1-.8-.5-.8-1 .3-1.2.8-1.2zm3 0c.5 0 .8.6.8 1.2s-.3 1-.8 1-.8-.5-.8-1 .3-1.2.8-1.2zM12 9.3c.9 0 2 .6 2 1s-1.1 1.2-2 1.2-2-.8-2-1.2 1.1-1 2-1z'/%3E%3C/svg%3E"); }
.os-android { background-color: #3ddc84; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23073042'%3E%3Cpath d='M17.6 9.5 19.4 6.4a.4.4 0 0 0-.7-.4l-1.8 3.1A11 11 0 0 0 12 8a11 11 0 0 0-4.9 1.1L5.3 6a.4.4 0 1 0-.7.4l1.8 3.1A10.4 10.4 0 0 0 1 18h22a10.4 10.4 0 0 0-5.4-8.5zM7 15.3a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm10 0a1 1 0 1 1 0-2 1 1 0 0 1 0 2z'/%3E%3C/svg%3E"); }

/* Документация */

.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 72px; padding: 64px 0 110px; align-items: start; }
.toc { position: sticky; top: 104px; font-size: 14.5px; }
.toc b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .18em; color: #9a7a43; margin-bottom: 14px; font-weight: 600; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-strong); }
.toc li a { display: block; padding: 6px 0 6px 18px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); text-decoration: none; transition: color .2s var(--ease), border-color .2s var(--ease); }
.toc li a:hover { border-left-color: var(--gold); color: var(--ink); }
.toc .back { display: inline-block; margin-top: 26px; font-size: 14px; text-decoration: none; }

.prose { max-width: 760px; }
.prose h1 { margin-bottom: 14px; font-size: clamp(36px, 4.6vw, 56px); }
.prose .lead { font-size: 20px; font-weight: 350; color: var(--muted); margin-top: 0; }
.prose h2 { margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--line); font-size: clamp(26px, 3vw, 34px); }
.prose h3 { margin-top: 36px; font-family: var(--sans); font-size: 19px; font-weight: 600; color: var(--heading); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--gold); }
.prose table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; border-bottom-color: var(--line-strong); }
.prose figure { margin: 28px 0; }
.prose figure img { border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.prose figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; }
.prose .shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }

/* Подвал */

.footer { padding: 72px 0 40px; font-size: 14.5px; border-top: 1px solid rgba(255, 255, 255, .06); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand span { padding-left: 14px; border-left: 1px solid var(--line); font-size: 13px; line-height: 17px; color: var(--muted); }
.footer-tagline { margin: 18px 0 0; max-width: 340px; }
.footer-note { grid-column: 1 / -1; margin: 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-note a { color: inherit; text-decoration: none; }
.footer-note a:hover { color: var(--ink); }
.footer p { color: var(--muted); }

/* Страница 404 */

.not-found { padding: 120px 0 140px; text-align: center; }
.not-found p { color: var(--muted); font-size: 19px; }

/* Обратная связь */

.wrap.feedback-page {
  width: min(720px, calc(100% - 48px));
  padding: clamp(56px, 8vw, 96px) 0 110px;
}
.feedback-page h1 { font-size: clamp(36px, 4.6vw, 56px); margin-bottom: 14px; }
.feedback-form, #feedback-form {
  position: relative;
  margin-top: 36px;
  display: grid;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px;
}
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  width: 100%;
  appearance: none;
  font: 16px/1.5 var(--sans);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 12px 14px;
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 2px; border-color: transparent; }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--rose); }
.feedback-actions { margin-top: 4px; }
.feedback-form .btn, #feedback-form .btn { cursor: pointer; }
.feedback-form .btn:disabled, #feedback-form .btn:disabled { opacity: .55; cursor: default; transform: none; }
.feedback-status { min-height: 1.6em; margin: 0; font-size: 15.5px; }
.feedback-status.is-ok { color: var(--teal); }
.feedback-status.is-err { color: var(--rose); }
.feedback-note { color: var(--muted); font-size: 14.5px; margin: 0; }

/* Адаптивность */

@media (max-width: 960px) {
  .product-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .pair { grid-template-columns: 1fr; gap: 40px; }
  .story { grid-template-columns: 1fr; gap: 48px; }
  .story-phone { order: 2; }
  .story-phone .phone { width: min(70%, 280px); }
  .principles-head { grid-template-columns: 1fr; gap: 16px; }
  .docs { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .toc { position: static; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 32px, 1200px); }
  .topbar-inner { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 0 10px; min-height: 0; }
  .nav { justify-content: flex-start; margin-left: -14px; }
  .nav a { padding: 6px 12px; font-size: 14.5px; }
  .hero-points, .product-hero .facts { gap: 8px 20px; }
  .hero-points li, .product-hero .facts span { padding: 0; border-left: 0; }
  .products { grid-template-columns: 1fr; padding-bottom: 72px; }
  .product-card { padding: 26px; border-radius: 24px; }
  .product-card-link h3 { font-size: 28px; }
  .product-icon { width: 68px; height: 68px; border-radius: 18px; }
  .feature { padding: 26px 22px; }
  .pair .callout { padding: 28px; }
  .wrap.feedback-page { width: min(720px, calc(100% - 32px)); }
  .feedback-form, #feedback-form { padding: 18px; }
  .download-box { padding: 18px; }
  .download-item { grid-template-columns: 44px 1fr; }
  .download-item .btn { grid-column: 1 / -1; }
  .checksum { grid-column: 1 / -1; }
  .footer-inner { grid-template-columns: 1fr; }
  .phone:nth-child(2) { transform: none; }
  .topbar { position: static; }
  html { scroll-padding-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .product-card, .feature, .nav a { transition: none; }
  .product-card:hover { transform: none; }
}
