@font-face { font-family: 'PT Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/pt-serif-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'PT Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/pt-serif-latin-400-normal.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: 'PT Serif'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/pt-serif-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'PT Serif'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/pt-serif-latin-700-normal.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: 'PT Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/pt-sans-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'PT Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/pt-sans-latin-400-normal.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: 'PT Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/pt-sans-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'PT Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/pt-sans-latin-700-normal.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 {
  --bg: #f8f5ee;
  --fg: #2a2620;
  --muted: #6b6357;
  --panel: #efeae0;
  --card: #fbf9f4;
  --line: #e2dcd0;
  --accent: #8a4e1b;
  --accent-fg: #fff;
  --shadow: 0 30px 60px rgb(40 30 20 / 0.22);
  --serif: 'PT Serif', Georgia, serif;
  --sans: 'PT Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #23211e;
    --fg: #e8e1d4;
    --muted: #a69d8f;
    --panel: #2d2a26;
    --card: #2a2724;
    --line: #3a3631;
    --accent: #dba660;
    --accent-fg: #23211e;
    --shadow: 0 30px 60px rgb(0 0 0 / 0.45);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
[hidden] { display: none !important; }

.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font: 700 22px var(--serif); }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav .grow { flex: 1; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--fg); font-size: 15px; }
.lang { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; }
.lang a { display: block; text-decoration: none; padding: 3px 7px; border: none; border-radius: 6px; background: none; color: var(--muted); font: 700 13px var(--sans); cursor: pointer; }
.lang a.on { background: var(--panel); color: var(--fg); }

.hero .wrap { display: flex; align-items: center; gap: 48px; padding-top: 80px; padding-bottom: 72px; }
.hero-text { flex: 1; min-width: 0; }
.pill { display: inline-block; padding: 5px 12px; border-radius: 20px; background: var(--panel); color: var(--accent); font: 700 13px var(--sans); }
h1 { margin: 18px 0 0; font: 700 clamp(34px, 5.2vw, 58px)/1.08 var(--serif); overflow-wrap: break-word; text-wrap: balance; }
.lead { margin: 20px 0 0; max-width: 540px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.under { margin-top: 14px; font-size: 14px; color: var(--muted); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); color: var(--fg); font: 700 16px/1.2 var(--sans); cursor: pointer; }
.btn:hover { text-decoration: none; filter: brightness(0.98); }
.btn.primary { border-color: transparent; background: var(--accent); color: var(--accent-fg); }
.btn small { display: block; font-weight: 400; font-size: 12px; opacity: 0.8; margin-top: 1px; }
.btn svg { width: 22px; height: 22px; flex: none; }
.store { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 14px; border-radius: 12px; background: #111; color: #fff; }
.store:hover { text-decoration: none; }
.store svg { width: 26px; height: 26px; fill: #fff; }
.store span { display: block; line-height: 1.1; font-size: 11px; opacity: 0.8; }
.store b { display: block; font-size: 18px; line-height: 1.15; }
.store.soon { opacity: 0.55; pointer-events: none; }
.store.soon::after { content: attr(data-soon); position: absolute; top: -9px; right: -8px; padding: 2px 8px; border-radius: 10px; background: var(--accent); color: var(--accent-fg); font: 700 11px var(--sans); }
@media (prefers-color-scheme: dark) { .store { background: #000; box-shadow: 0 0 0 1px #4a453f; } }

.devices { position: relative; flex: none; width: 640px; height: 520px; }
.tablet { position: absolute; left: 0; top: 50px; width: 560px; height: 400px; padding: 12px; border-radius: 26px; background: #1a1a1a; box-shadow: var(--shadow); }
.phone { position: absolute; right: 0; top: 0; width: 238px; height: 494px; padding: 9px; border-radius: 36px; background: #111; box-shadow: var(--shadow); }
@media (prefers-color-scheme: dark) {
  .tablet, .phone { background: #3a3632; box-shadow: inset 0 0 0 1px #5a544c, var(--shadow); }
}
.tablet .screen, .phone .screen { height: 100%; overflow: hidden; background: #f8f5ee; }
.tablet .screen { border-radius: 16px; }
.phone .screen { border-radius: 28px; }
.devices img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }

section.block { padding: 64px 0; }
.kicker { font: 700 13px var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
h2 { margin: 8px 0 26px; font: 700 clamp(26px, 3.2vw, 34px)/1.2 var(--serif); overflow-wrap: break-word; text-wrap: balance; }
.sub { margin: -16px 0 24px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.card { padding: 22px; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.card .ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--panel); color: var(--accent); }
.card .ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 14px 0 6px; font: 700 18px var(--sans); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.themes { display: flex; gap: 14px; }
.theme { flex: 1; min-width: 0; padding: 18px; scroll-snap-align: start; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.theme .aa { font: 700 26px var(--serif); }
.theme p { margin: 6px 0 0; font: 13px/1.5 var(--serif); opacity: 0.85; }
.theme b { display: block; margin-top: 10px; font-size: 13px; }

#download { background: var(--panel); }
.dl { padding: 20px 22px 8px; }
.dl-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font: 700 20px var(--sans); }
.dl-head svg { width: 26px; height: 26px; fill: currentColor; }
.dl-head svg.stroke { fill: none; stroke: currentColor; stroke-width: 1.9; }
.dl-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--fg); }
.dl-row:hover { text-decoration: none; }
.dl-row div { flex: 1; }
.dl-row b { display: block; font-size: 16px; }
.dl-row > div span { font-size: 13px; line-height: 1.35; color: var(--muted); }
.dl-row em { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 12px; background: var(--panel); color: var(--accent); font: 700 14px var(--sans); }
.dl-row em svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dl-row.mine em { background: var(--accent); color: var(--accent-fg); }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.stores small { color: var(--muted); font-size: 14px; }

.faq { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); column-gap: 40px; }
.faq div { padding: 18px 0; border-top: 1px solid var(--line); }
.faq h3 { margin: 0; font: 700 17px var(--sans); }
.faq p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

.foot { border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--muted); }
.foot .brand { font-size: 17px; }
.foot .brand img { width: 24px; height: 24px; border-radius: 6px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }

.doc { max-width: 880px; margin: 0 auto; padding: 64px 32px; }
.doc h1 { margin: 8px 0 10px; font-size: clamp(28px, 5vw, 44px); line-height: 1.15; overflow-wrap: break-word; hyphens: auto; }
.doc h2 { margin: 34px 0 8px; font-size: 22px; }
.doc .lead { margin: 0 0 28px; max-width: none; font-size: clamp(16px, 1.6vw, 18px); }
.doc { overflow-wrap: break-word; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc .meta { color: var(--muted); font-size: 15px; }
.contact { display: flex; align-items: center; gap: 16px; padding: 20px 24px; margin-bottom: 22px; border-radius: 18px; background: var(--panel); }
.contact div { flex: 1; }
.contact > div span { color: var(--muted); }
.help { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.help .card p { font-size: 16px; line-height: 1.6; }
.help .card h3 { margin-top: 0; font-size: 19px; }

.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: -10px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.ok { display: inline-grid; width: 16px; height: 16px; color: #2f7d4f; }
.ok svg { width: 16px; height: 16px; }
.why-body { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 56px; align-items: center; margin-top: 40px; }
.why-list { display: flex; flex-direction: column; gap: 2px; }
.why-item { display: flex; gap: 14px; align-items: flex-start; width: 100%; padding: 16px 18px; border: 0; border-radius: 16px; background: transparent; color: var(--fg); text-align: left; font: inherit; cursor: pointer; }
.why-item:hover { background: color-mix(in srgb, var(--card) 60%, transparent); }
.why-item[aria-pressed="true"] { background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 8px 20px rgb(40 30 20 / 0.08); }
.why-n { flex: none; width: 26px; padding-top: 3px; color: var(--muted); font: 700 15px var(--sans); }
.why-item[aria-pressed="true"] .why-n { color: var(--accent); }
.why-item b { display: block; font: 700 19px/1.3 var(--serif); }
.why-item b + span { display: none; margin-top: 5px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.why-item[aria-pressed="true"] b + span { display: block; }
.why-stage { min-width: 0; }
.why-scene { position: relative; aspect-ratio: 820 / 560; }
.why-scene[hidden] { display: none; }
.why img { display: block; width: 100%; height: auto; background: #f8f5ee; }
.sc-mac { position: absolute; left: 0; top: 0; width: 88%; border-radius: 14px; overflow: hidden; background: #f8f5ee; box-shadow: 0 0 0 1px rgb(40 30 20 / 0.12), 0 40px 80px rgb(40 30 20 / 0.22); }
.dev-bar { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 14px; background: #ece6da; border-bottom: 1px solid #ddd5c6; }
.dev-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ec6a5e; }
.dev-bar i:nth-child(2) { background: #f4bf4f; }
.dev-bar i:nth-child(3) { background: #61c554; }
.sc-phone { position: absolute; right: 2.5%; bottom: 0; width: 25.6%; padding: 1%; border-radius: 13% / 6%; background: #111; box-shadow: 0 30px 60px rgb(40 30 20 / 0.3); }
.sc-phone img { border-radius: 11% / 5%; }
.sc-tablet { position: absolute; left: 0; top: 2%; width: 88%; padding: 1.5%; border-radius: 28px; background: #1a1a1a; box-shadow: 0 40px 80px rgb(40 30 20 / 0.24); }
.sc-tablet img { border-radius: 17px; }
.pills { position: absolute; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.pills.left { left: 3%; right: auto; bottom: 2%; align-items: flex-start; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fbf9f4; color: #2a2620; box-shadow: 0 0 0 1px #e2dcd0, 0 10px 24px rgb(40 30 20 / 0.14); font: 700 14px var(--sans); }
.pill .ic { display: inline-grid; width: 18px; height: 18px; color: #8a4e1b; }
.pill .ic svg { width: 18px; height: 18px; }
.pill .fmt { color: #8a4e1b; font: 700 15px var(--serif); }
.pill .fmt + span { color: #6b6357; font-weight: 400; }
.swatches { display: flex; gap: 8px; }
.swatches span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.12), 0 6px 14px rgb(40 30 20 / 0.18); font: 700 14px var(--serif); }
.tour-cta { display: flex; justify-content: center; margin-top: 44px; }
@media (prefers-color-scheme: dark) {
  .sc-phone, .sc-tablet { background: #3a3632; box-shadow: inset 0 0 0 1px #5a544c, 0 30px 60px rgb(0 0 0 / 0.45); }
  .sc-mac { box-shadow: 0 0 0 1px #5a544c, 0 40px 80px rgb(0 0 0 / 0.4); }
  .ok { color: #7cc79a; }
}
@media (max-width: 1100px) {
  .why-body { grid-template-columns: 320px minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 900px) {
  .why-body { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 28px; }
  .why-list { order: 2; }
}
@media (max-width: 640px) {
  .trust { gap: 6px 14px; font-size: 14px; }
  .why-scene { aspect-ratio: auto; display: flex; flex-direction: column; gap: 14px; padding-bottom: 0; }
  .why-scene[hidden] { display: none; }
  .sc-mac, .sc-tablet { position: relative; width: 100%; }
  .sc-tablet { padding: 8px; border-radius: 20px; }
  .sc-tablet img { border-radius: 12px; }
  .sc-mac { border-radius: 10px; }
  .dev-bar { height: 18px; gap: 5px; padding: 0 9px; }
  .dev-bar i { width: 7px; height: 7px; }
  .why-scene:has(.sc-phone) .sc-mac { width: 84%; }
  .sc-phone { right: 0; top: 22px; bottom: auto; width: 29%; padding: 4px; border-radius: 18px; }
  .sc-phone img { border-radius: 14px; }
  .why-scene:has(.sc-phone) .pills { margin-top: 44px; }
  .pills, .pills.left { position: static; align-items: flex-start; gap: 8px; }
  .pill { padding: 8px 12px; font-size: 13px; }
  .swatches span { width: 34px; height: 34px; }
  .why-item b { font-size: 18px; }
}

@media (max-width: 1100px) {
  .hero .wrap { gap: 24px; }
  .devices { transform: scale(0.82); transform-origin: right center; margin-left: -115px; }
}
@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .hero .wrap { flex-direction: column; align-items: stretch; padding-top: 48px; padding-bottom: 24px; }
  .devices { align-self: center; transform: scale(0.9); transform-origin: top center; margin: 12px auto -52px; }
  section.block { padding: 48px 0; }
  .themes { overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -24px; padding: 0 24px 8px; scrollbar-width: none; }
  .themes::-webkit-scrollbar { display: none; }
  .theme { flex: none; width: 168px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav .wrap { gap: 14px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .hero .wrap { padding-top: 36px; }
  .devices { width: 238px; height: 494px; transform: none; margin: 24px auto 0; }
  .tablet { display: none; }
  section.block { padding: 40px 0; }
  .themes { margin: 0 -20px; padding: 0 20px 8px; }
  .theme { width: 150px; }
  .hero h1 br { display: none; }
  .cta { flex-direction: column; align-items: stretch; }
  .cta .btn, .cta .store { justify-content: center; }
  .stores { flex-direction: column; align-items: flex-start; }
  .foot .wrap { flex-direction: column; align-items: flex-start; }
  .foot .grow { display: none; }
  .doc { padding: 36px 20px 48px; }
  .contact { flex-direction: column; align-items: stretch; }
  .contact .btn { justify-content: center; }
  .dl { padding: 16px 16px 4px; }
}
@media (max-width: 420px) {
  .dl-row em span { display: none; }
  .dl-row em { padding: 10px; }
}
@media (max-width: 380px) {
  .brand { font-size: 19px; gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .lang a { padding: 3px 5px; font-size: 12px; }
  .nav .wrap { padding: 0 14px; }
}
.doc section .kicker { margin-bottom: 0; }
