/* Шрифт Manrope лежит на самом сайте (fonts/, лицензия SIL OFL — fonts/OFL.txt): ничего не грузится с Google. */
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('fonts/manrope-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: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('fonts/manrope-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;
}

:root {
  --bg: #0B1324;
  --bg-2: #121D33;
  --bg-3: #1C2A47;
  --line: #233150;
  --text: #E9F0FA;
  --muted: #B7C4D8;
  --dim: #8C9BB3;
  --white: #FFFFFF;
  --accent: #8CC8FF;
  --ice: #E9F2FF;
  --ink: #0B1324;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: #A9D6FF; }
a:hover { color: var(--white); }
h1, h2, h3 { color: var(--white); }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-bottom: 96px; }

/* Шапка */
.header { padding-top: 24px; padding-bottom: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); font-weight: 800; font-size: 20px; }
.logo-icon { display: block; width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; }
.snow-toggle {
  font: inherit; font-size: 14px; color: var(--muted); background: transparent;
  border: 1px solid #33425E; border-radius: 999px; padding: 8px 14px; min-height: 36px; cursor: pointer;
}
.snow-toggle:hover { color: var(--white); border-color: #4A5C80; }

/* Первый экран */
.hero { padding-top: 64px; padding-bottom: 40px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.eyebrow { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.hero h1 { margin: 0; font-size: clamp(40px, 6vw, 76px); line-height: 1.04; font-weight: 800; letter-spacing: -0.02em; max-width: 900px; }
.lead { margin: 0; font-size: 20px; line-height: 1.5; max-width: 640px; color: var(--muted); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; padding-top: 8px; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 17px; text-decoration: none; }
.btn-primary { background: var(--white); color: var(--ink); }
.btn-primary:hover { color: var(--ink); background: #DCEBFF; }
.btn-ghost { border: 1px solid #33425E; color: var(--text); font-weight: 600; }
.price-strip { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 14px; padding: 10px 20px; border-radius: 999px; background: #14213A; border: 1px solid #2A3A5C; font-size: 15px; color: var(--muted); }
.price-strip-price { font-size: 24px; font-weight: 800; color: var(--white); }
.meta { margin: 0; font-size: 14px; color: var(--dim); }

/* Рабочий стол-иллюстрация */
.desktop { position: relative; height: 480px; border-radius: 20px; overflow: hidden; background: #15223B; border: 1px solid #263552; margin-bottom: 96px; }
.menubar { position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 28px; background: rgba(8, 13, 26, 0.82); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; gap: 14px; font-size: 13px; color: #F1F4FA; font-family: -apple-system, BlinkMacSystemFont, 'Manrope', sans-serif; }
.menubar-left { display: flex; gap: 18px; white-space: nowrap; overflow: hidden; }
.menubar-left span { font-weight: 400; }
.menubar-right { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 150px; }

/* Окна в тёмной теме macOS */
.win {
  position: absolute; z-index: 1; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 11px; background: #1E2230; border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
  font-family: -apple-system, BlinkMacSystemFont, 'Manrope', sans-serif; color: #E7EAF1; text-align: left;
}
.win-a { left: 6%; top: 112px; width: 50%; height: 280px; }
.win-b { right: 6%; top: 196px; width: 38%; height: 214px; }
.titlebar { flex: none; height: 38px; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: #282D3D; border-bottom: 1px solid rgba(0, 0, 0, 0.45); }
.titlebar .title { font-size: 13px; font-weight: 700; }
.tb-arrows { color: #8A93A6; font-size: 18px; letter-spacing: 6px; white-space: nowrap; }
.traffic { display: flex; gap: 8px; }
.traffic span { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.25); }
.traffic span:nth-child(2) { background: #FEBC2E; }
.traffic span:nth-child(3) { background: #28C840; }
.win-body { flex: 1; min-height: 0; display: flex; }

/* Заметки */
.notes-list { flex: 0 0 40%; padding: 8px; background: #23283A; border-right: 1px solid rgba(0, 0, 0, 0.45); display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.note { padding: 8px 10px; border-radius: 7px; display: flex; flex-direction: column; gap: 2px; white-space: nowrap; overflow: hidden; }
.note b { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.note span { font-size: 11.5px; color: #8E97AA; overflow: hidden; text-overflow: ellipsis; }
.note.is-active { background: #B98A16; }
.note.is-active span { color: #FBEFCB; }
.note-doc { flex: 1; min-width: 0; padding: 14px 22px; overflow: hidden; }
.note-date { margin: 0 0 8px; text-align: center; font-size: 11px; color: #8E97AA; }
.note-doc h4 { margin: 0 0 8px; font-size: 20px; font-weight: 700; color: #FFFFFF; }
.note-doc ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.75; color: #D9DEE8; }

/* Finder */
.finder-side { flex: 0 0 34%; padding: 10px 8px; background: #23283A; border-right: 1px solid rgba(0, 0, 0, 0.45); display: flex; flex-direction: column; gap: 1px; font-size: 13px; white-space: nowrap; overflow: hidden; }
.finder-side small { padding: 2px 8px 4px; font-size: 11px; font-weight: 700; color: #7D8699; }
.finder-side span { padding: 5px 8px; border-radius: 6px; }
.finder-side .is-active { background: rgba(255, 255, 255, 0.1); }
.finder-grid { flex: 1; min-width: 0; padding: 12px 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); align-content: start; gap: 10px 6px; }
.finder-grid figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.finder-grid svg { width: 46px; height: 38px; }
.finder-grid figcaption { font-size: 11.5px; line-height: 1.25; color: #E7EAF1; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ground { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }

/* Возможности */
.section h2 { margin: 0 0 12px; font-size: 40px; font-weight: 800; letter-spacing: -0.01em; }
.sub { margin: 0 0 40px; font-size: 18px; color: var(--muted); max-width: 640px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px 16px; }
.card { padding: 28px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.card h3 { margin: 0; font-size: 20px; font-weight: 700; }
.card p { margin: 0; font-size: 16px; line-height: 1.55; color: #AEBBD0; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-3); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Не мешает работать */
.calm { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: center; padding: 48px; border-radius: 20px; background: var(--ice); color: var(--ink); }
.calm h2 { color: var(--ink); font-size: 34px; margin: 0 0 14px; }
.calm p { margin: 0; font-size: 17px; line-height: 1.55; color: #33415C; }
.calm ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.45; }
.calm li { display: flex; gap: 12px; }
.calm li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: #2563EB; }

/* Покупка */
.buy { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding: 56px 48px; border-radius: 24px; border: 1px solid #263552; background: #111C31; }
.buy-text { flex: 1 1 360px; min-width: 0; }
.buy-text h2 { font-size: clamp(32px, 4vw, 48px); margin: 0 0 18px; }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 17px; color: #D5DEEB; }
.checks li { display: flex; gap: 12px; align-items: center; }
.checks li::before { content: ""; flex: none; width: 14px; height: 8px; margin: 0 3px 4px; border-left: 2.4px solid var(--accent); border-bottom: 2.4px solid var(--accent); transform: rotate(-45deg); }
.price-card { flex: 0 1 380px; min-width: 0; margin: 0 auto; padding: 32px; border-radius: 20px; background: var(--white); color: var(--ink); display: flex; flex-direction: column; gap: 14px; }
.price-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 16px; font-weight: 700; }
.badge { padding: 5px 12px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 14px; font-weight: 800; }
.price-big { font-size: 64px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.price-note { margin: 0; font-size: 15px; color: #33415C; }
.btn-buy { display: flex; align-items: center; justify-content: center; height: 56px; border-radius: 14px; background: var(--ink); color: var(--white); font-weight: 700; font-size: 18px; text-decoration: none; }
.btn-buy:hover { color: var(--white); background: #1C2A47; }
.fine { margin: 0; font-size: 13px; line-height: 1.5; color: #4A5568; }
.fine a { color: #1E3A8A; }

/* Подвал */
.footer { padding-top: 32px; padding-bottom: 48px; border-top: 1px solid #1E2A44; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--dim); }
.footer p { margin: 0; line-height: 1.5; }
.legal { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 14px; }

@media (max-width: 640px) {
  .desktop { height: 380px; }
  .menubar-left span { display: none; }
  .menubar-right svg:nth-child(2), .menubar-right svg:nth-child(3) { display: none; }
  .win-a { left: 4%; top: 96px; width: 72%; height: 190px; }
  .win-b { right: 4%; top: 206px; width: 62%; height: 140px; }
  .notes-list, .finder-side, .tb-arrows { display: none; }
  .note-doc { padding: 10px 16px; }
  .note-doc ul { font-size: 12.5px; line-height: 1.6; }
  .calm, .buy { padding: 32px 24px; }
  .section h2 { font-size: 32px; }
}
.note span i { font-style: normal; font-weight: 600; margin-right: 6px; }

/* Юридические страницы */
.doc { max-width: 780px; padding-bottom: 80px; }
.doc h1 { margin: 24px 0 8px; font-size: clamp(34px, 5vw, 48px); font-weight: 800; letter-spacing: -0.01em; }
.doc .updated { margin: 0 0 32px; font-size: 15px; color: var(--dim); }
.doc h2 { margin: 40px 0 12px; font-size: 22px; font-weight: 700; }
.doc p, .doc li, .doc dd { font-size: 17px; line-height: 1.65; color: #D5DEEB; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--white); }
.doc .summary { margin: 0 0 8px; padding: 20px 24px; border-radius: 14px; background: #14213A; border: 1px solid #2A3A5C; }
.doc .summary p:last-child { margin-bottom: 0; }
.doc dl { margin: 0 0 14px; display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 8px 20px; }
.doc dt { font-size: 15px; font-weight: 600; color: var(--dim); padding-top: 2px; }
.doc dd { margin: 0; }
@media (max-width: 640px) { .doc dl { grid-template-columns: 1fr; gap: 2px; } .doc dd { margin-bottom: 10px; } }

/* Ролик программы */
.demo-frame { aspect-ratio: 16 / 9; border-radius: 20px; border: 1px dashed #3A4C72; background: #111C31; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; font-size: 15px; color: var(--dim); }
.demo-play { width: 72px; height: 72px; border-radius: 50%; background: var(--white); color: var(--ink); display: flex; align-items: center; justify-content: center; padding-left: 4px; }
.demo-video { display: block; width: 100%; height: auto; border-radius: 20px; border: 1px solid #263552; }

/* Цена: пока страна неизвестна, показаны обе валюты — крупная цена в карточке чуть меньше, чтобы влезла */
[data-currency="both"] .price-big { font-size: 44px; }

/* Форма обратной связи */
.contact-form { display: flex; flex-direction: column; gap: 20px; max-width: 560px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 600; color: var(--white); }
.field .optional { font-weight: 400; color: var(--dim); }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--text); background: #111C31;
  border: 1px solid #33425E; border-radius: 12px; padding: 12px 14px; min-height: 48px;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.btn-send { align-self: flex-start; font: inherit; font-weight: 700; font-size: 17px; height: 52px; padding: 0 30px; border: 0; border-radius: 999px; background: var(--white); color: var(--ink); cursor: pointer; }
.btn-send:hover { background: #DCEBFF; }
.btn-send:disabled { opacity: 0.6; cursor: default; }
.form-status { margin: 0; min-height: 1.5em; font-size: 16px; line-height: 1.5; }
.form-status[data-kind="ok"] { color: #7FE0A8; }
.form-status[data-kind="error"] { color: #FFB4A8; }
.form-status[data-kind="info"] { color: var(--muted); }
.form-note { margin: 24px 0 0; font-size: 14px; color: var(--dim); max-width: 560px; }

/* Продажи: data-sale="soon" — кнопки «Coming soon» без ссылки; "live" — «Buy for …» (включает price.js, CHECKOUT_URL) */
[data-sale="soon"] .buy-live, [data-sale="live"] .buy-soon { display: none; }
[data-sale="soon"] .btn-primary[data-buy] { background: rgba(255, 255, 255, 0.12); color: var(--white); border: 1px solid #4A5C80; cursor: default; }
[data-sale="soon"] .btn-buy[data-buy] { background: #E2E8F0; color: #334155; cursor: default; }
