/* Оформление сайта iverni.me. Ничего внешнего не подгружаем: шрифты системные,
   картинок минимум — сайт открывается мгновенно и не зависит от чужих серверов. */

:root {
    --ink: #1a1136;
    --ink-soft: #564d78;
    --ink-faint: #8d86ab;
    --blue: #6d46e8;
    --blue-dark: #5734c6;
    --blue-deep: #2a1a63;
    --gold: #c98a1f;
    --green: #17936a;
    --bg: #ffffff;
    --bg-soft: #f5f2fd;
    --line: #e7e1f8;
    --card: #ffffff;
    --shadow: 0 1px 2px rgba(42, 26, 99, .06), 0 12px 32px rgba(42, 26, 99, .10);
    --radius: 14px;
    --wrap: 1120px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #efeaff;
        --ink-soft: #b3aad6;
        --ink-faint: #8880ab;
        --blue: #9b7bff;
        --blue-dark: #7d5af0;
        --blue-deep: #180f36;
        --bg: #100c22;
        --bg-soft: #181231;
        --line: #2d2456;
        --card: #1c1540;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 36px rgba(0, 0, 0, .45);
    }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5.2vw, 56px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 750; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }

.lead { font-size: clamp(18px, 2.1vw, 22px); color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.small { font-size: 15px; }
.center { text-align: center; }

/* ── Шапка ─────────────────────────────────────────────── */

header.top {
    position: sticky; top: 0; z-index: 50;
    transition: transform .28s ease, background .2s ease;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 19px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
nav.menu { display: flex; gap: 22px; margin-left: auto; align-items: center; }
nav.menu a { color: var(--ink-soft); font-size: 15.5px; font-weight: 550; }
nav.menu a:hover { color: var(--ink); text-decoration: none; }
nav.menu a.active { color: var(--ink); }
nav.menu a.btn { color: #fff; }   /* иначе правило меню перебивает белый текст кнопки */
/* Прокрутка вниз — шапка уезжает вверх и не мешает; вверх — сразу возвращается. */
header.top.away { transform: translateY(-100%); }

/* Пока страница не прокручена, шапка лежит прозрачной поверх синей полосы */
header.top.over-hero { background: transparent; backdrop-filter: none; border-bottom-color: transparent; }
header.top.over-hero .brand { color: #fff; }
header.top.over-hero nav.menu a { color: rgba(255, 255, 255, .82); }
header.top.over-hero nav.menu a:hover, header.top.over-hero nav.menu a.active { color: #fff; }
header.top.over-hero .lang { color: rgba(255, 255, 255, .8); border-color: rgba(255, 255, 255, .35); }
header.top.over-hero nav.menu a.btn { background: #fff; color: #23219c; box-shadow: none; }
header.top.over-hero nav.menu a.btn:hover { background: #eef1ff; }
.lang { font-size: 14px; color: var(--ink-faint); border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; }
.lang:hover { text-decoration: none; color: var(--ink); }

/* ── Кнопки ────────────────────────────────────────────── */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 26px; border-radius: 11px; font-weight: 650; font-size: 16.5px;
    background: var(--blue); color: #fff; border: 1px solid transparent;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
    box-shadow: 0 6px 18px rgba(109, 70, 232, .26);
}
.btn:hover { background: var(--blue-dark); text-decoration: none; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--bg-soft); border-color: var(--ink-faint); }
.btn.small { padding: 9px 17px; font-size: 15px; border-radius: 9px; }
.btn.wide { width: 100%; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ── Секции ────────────────────────────────────────────── */

section { padding: 84px 0; }
section.tight { padding: 56px 0; }
section.soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { margin-bottom: 0; }

.hero {
    /* синяя полоса уходит под шапку — та лежит на ней прозрачной */
    margin-top: -64px;
    padding: 142px 0 0;
    color: #fff;
    background: linear-gradient(158deg, #1b3b9e 0%, #3a2aa8 58%, #5c30b4 100%);
    /* Выгнутый низ: синяя полоса «провисает» под устройствами */
    border-radius: 0 0 50% 50% / 0 0 96px 96px;
    border-bottom: none;
}
.hero .wrap { text-align: center; }
.hero h1 { max-width: 16ch; margin-inline: auto; color: #fff; }
.hero .lead { max-width: 58ch; margin-inline: auto; color: rgba(255, 255, 255, .84); }
.hero .cta-row { justify-content: center; margin: 30px 0 14px; }
.hero-note { font-size: 14.5px; color: rgba(255, 255, 255, .62); }
.hero .btn { background: #fff; color: #23219c; box-shadow: 0 10px 26px rgba(10, 12, 60, .3); }
.hero .btn:hover { background: #eef1ff; }
.hero .btn.ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .42); box-shadow: none; }
.hero .btn.ghost:hover { background: rgba(255, 255, 255, .18); }

.badges { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; margin-top: 26px; font-size: 14.5px; color: rgba(255, 255, 255, .72); }
.badges span { display: inline-flex; align-items: center; gap: 7px; }
.badges b { color: #fff; font-weight: 600; }

/* ── Устройства под заголовком ─────────────────────────── */

.devices { position: relative; width: min(1000px, 100%); margin: 50px auto -130px; }
.devices img { display: block; width: 100%; height: auto; }

.display { width: 70%; margin: 0 auto; }
.display .bezel {
    background: #17171a; border-radius: 16px; padding: 13px 13px 34px;
    box-shadow: 0 26px 60px rgba(6, 8, 40, .45), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.display .bezel img { border-radius: 4px; }
.display .chin { height: 0; }
.display .stand { width: 16%; height: 40px; margin: -2px auto 0; background: linear-gradient(90deg, #8d93a1, #c3c8d2 40%, #949aa8); }
.display .foot { width: 34%; height: 12px; margin: 0 auto; border-radius: 0 0 8px 8px; background: linear-gradient(180deg, #b9bec8, #8e94a1); }

.laptop { position: absolute; left: 0; bottom: 44px; width: 45%; }
.laptop .bezel {
    background: #17171a; border-radius: 12px 12px 3px 3px; padding: 10px 10px 18px;
    box-shadow: 0 22px 46px rgba(6, 8, 40, .42), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.laptop .bezel img { border-radius: 3px; }
.laptop .base {
    width: 112%; margin-left: -6%; height: 14px;
    background: linear-gradient(180deg, #cfd3db, #9ba1ad);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 22px rgba(6, 8, 40, .32);
}
.laptop .notch { width: 22%; height: 7px; margin: 0 auto; background: #b3b8c2; border-radius: 0 0 5px 5px; }

.phone { position: absolute; right: 3%; bottom: 0; width: 15.5%; }
.phone .bezel {
    position: relative; background: #17171a; border-radius: 30px; padding: 7px;
    box-shadow: 0 20px 44px rgba(6, 8, 40, .5), inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.phone .bezel img { border-radius: 24px; }
.phone .island {
    position: absolute; top: 17px; left: 50%; transform: translateX(-50%);
    width: 32%; height: 11px; background: #0b0b0d; border-radius: 99px;
}

/* Первая секция после шапки уступает место устройствам */
.hero + section { padding-top: 175px; }

.shot { margin: 52px auto -1px; max-width: 980px; }
.shot img { width: 100%; height: auto; display: block; border-radius: 12px 12px 0 0; box-shadow: var(--shadow); }

/* Отрисовка окна программы — стоит, пока нет настоящего снимка */
.mock {
    border: 1px solid var(--line); border-bottom: none; border-radius: 12px 12px 0 0;
    background: var(--card); box-shadow: var(--shadow); overflow: hidden; text-align: left;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg-soft) 70%, var(--card)); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; display: block; }
.mock-bar i:nth-child(2) { background: #febc2e; }
.mock-bar i:nth-child(3) { background: #28c840; }
.mock-bar b { margin-left: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.mock-body { display: grid; grid-template-columns: 216px 1fr; min-height: 380px; }
.mock-side { border-right: 1px solid var(--line); padding: 14px; background: color-mix(in srgb, var(--bg-soft) 55%, var(--card)); }
.mock-phone { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 9px; font-size: 14px; }
.mock-phone.on { background: color-mix(in srgb, var(--blue) 14%, transparent); }
.mock-phone.off { opacity: .5; }
.mock-phone em { display: block; font-style: normal; font-size: 12px; color: var(--ink-faint); }
.mock-glyph { width: 22px; height: 34px; border-radius: 4px; border: 2px solid var(--ink-soft); flex: none; }
.mock-list { padding: 14px 16px; }
.mock-row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.mock-row:last-child { border-bottom: none; }
.mock-ico { width: 30px; height: 30px; border-radius: 7px; flex: none; background: linear-gradient(140deg, var(--blue), #7aa2ff); }
.mock-ico.b { background: linear-gradient(140deg, #ef6461, #f0a04b); }
.mock-ico.c { background: linear-gradient(140deg, #17936a, #63c49a); }
.mock-ico.d { background: linear-gradient(140deg, #8b5cf6, #c084fc); }
.mock-name { flex: 1; min-width: 0; }
.mock-name em { display: block; font-style: normal; font-size: 12.5px; color: var(--ink-faint); }
.tag { font-size: 12.5px; padding: 3px 9px; border-radius: 99px; font-weight: 600; white-space: nowrap; }
.tag.wait { background: color-mix(in srgb, var(--gold) 20%, transparent); color: var(--gold); }
.tag.done { background: color-mix(in srgb, var(--green) 17%, transparent); color: var(--green); }
.tag.run { background: color-mix(in srgb, var(--blue) 16%, transparent); color: var(--blue); }

/* ── Сетки ─────────────────────────────────────────────── */

.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }

.card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 24px;
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card .ico { display: block; margin-bottom: 16px; color: var(--blue); }
.card .ico svg {
    width: 46px; height: 46px;
    fill: none; stroke: currentColor;
    stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round;
}
.card .ico svg .fill { fill: color-mix(in srgb, currentColor 16%, transparent); }
.card .ico svg .solid { fill: currentColor; stroke: none; }
.card .ico svg .bg { fill: var(--card); }

.step { display: flex; gap: 18px; align-items: flex-start; }
.step .num {
    flex: none; width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 700;
    background: color-mix(in srgb, var(--blue) 13%, transparent); color: var(--blue);
}
.step h3 { margin-bottom: 4px; }
.step p { margin-bottom: 0; color: var(--ink-soft); }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 13px; color: var(--ink-soft); }
.checks li::before {
    content: ""; position: absolute; left: 4px; top: .45em;
    width: 7px; height: 12px; border: solid var(--green); border-width: 0 2.4px 2.4px 0;
    transform: rotate(42deg);
}
.checks b { color: var(--ink); font-weight: 620; }

/* ── Цена ──────────────────────────────────────────────── */

.prices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 840px; margin: 0 auto; }
.price { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; }
.price.hi { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 14%, transparent); position: relative; }
.price .amount { font-size: 42px; font-weight: 800; letter-spacing: -.03em; }
.price .per { color: var(--ink-faint); font-size: 15px; }
.price ul { margin: 20px 0 26px; }
.price .btn { margin-top: auto; }
.ribbon { position: absolute; top: -13px; left: 28px; background: var(--blue); color: #fff; font-size: 12.5px; font-weight: 650; padding: 4px 11px; border-radius: 99px; }

/* ── Вопросы и ответы ──────────────────────────────────── */

.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
    cursor: pointer; list-style: none; padding: 18px 34px 18px 0; position: relative;
    font-weight: 620; font-size: 17.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 6px; top: 15px;
    font-size: 24px; font-weight: 400; color: var(--ink-faint);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); margin: 0 0 18px; }

/* ── Полоса призыва ────────────────────────────────────── */

.band {
    background: linear-gradient(135deg, var(--blue-deep), var(--blue-dark));
    color: #fff; text-align: center; padding: 76px 0;
}
.band h2 { color: #fff; }
.band p { color: #c9d8ff; max-width: 56ch; margin-inline: auto; }
.band .btn { background: #fff; color: var(--blue-dark); box-shadow: 0 8px 26px rgba(0, 0, 0, .25); }
.band .btn:hover { background: #eef3ff; }
.band .cta-row { justify-content: center; margin-top: 26px; }

/* ── Подвал ────────────────────────────────────────────── */

footer.bottom { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); margin: 0 0 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a { color: var(--ink-soft); }
.foot-grid a:hover { color: var(--ink); }
.foot-note { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 14px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }

/* ── Текстовые страницы ────────────────────────────────── */

.doc { max-width: 760px; margin: 0 auto; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 8px; }
.doc .updated { color: var(--ink-faint); font-size: 14.5px; margin-bottom: 40px; }
.doc h2 { font-size: 24px; margin-top: 44px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 9px; color: var(--ink-soft); }
.doc p { color: var(--ink-soft); }
.doc strong { color: var(--ink); }

/* ── Страница загрузки ─────────────────────────────────── */

.dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.dl .card { display: flex; flex-direction: column; text-align: center; align-items: center; padding: 38px 28px; }
.dl .os { font-size: 46px; line-height: 1; margin-bottom: 16px; }
.dl .meta { color: var(--ink-faint); font-size: 14.5px; margin: 6px 0 22px; }
.dl .btn { margin-top: auto; }
.soon { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); font-size: 12.5px; font-weight: 650; padding: 3px 10px; border-radius: 99px; }

.install { max-width: 760px; margin: 56px auto 0; }
.install ol { padding-left: 22px; }
.install li { margin-bottom: 12px; color: var(--ink-soft); }
.hash { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; word-break: break-all; color: var(--ink-faint); }

/* ── Узкие экраны ──────────────────────────────────────── */

@media (max-width: 900px) {
    .g3, .g2, .prices, .dl, .foot-grid { grid-template-columns: 1fr; }
    .split { grid-template-columns: 1fr; gap: 34px; }
    .mock-body { grid-template-columns: 1fr; }
    .mock-side { display: none; }
    .laptop, .phone { display: none; }
    .display { width: 100%; }
    .devices { margin-bottom: -70px; }
    .hero + section { padding-top: 110px; }
    .hero { border-radius: 0 0 50% 50% / 0 0 48px 48px; padding-top: 118px; }
    nav.menu a:not(.btn):not(.lang) { display: none; }
    section { padding: 60px 0; }
    .hero { padding-top: 52px; }
}
