/* Saturn: «скелет Notion, душа Perplexity» — бумага и тонкие линии для текста, космос для «моментов». */
:root {
    --bg: #F7F6F3;
    --surface: #FFFFFF;
    --ink: #191919;
    --muted: #73726E;
    --faint: #A5A39E;
    --line: #E7E5E0;
    --space: #0B0C10;
    --space-ink: #ECEAE4;
    --space-muted: rgba(236, 234, 228, 0.6);
    --accent: #1F8A8A;
    --accent-2: #8b6cf0;
    --error: #c53030;
    --radius: 14px;
    --serif: "New York", ui-serif, "Iowan Old Style", Georgia, "Times New Roman", serif;
    --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0D0E12;
        --surface: #16171C;
        --ink: #ECEAE4;
        --muted: #8B8A86;
        --faint: #5C5B58;
        --line: #24252B;
        --error: #fc8181;
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.55 var(--sans);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
em { font-style: italic; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -0.025em; }
h3 { font-size: 23px; line-height: 1.2; letter-spacing: -0.015em; }
.mono {
    font: 500 11px/1.4 var(--mono); letter-spacing: 0.09em; text-transform: uppercase;
    color: var(--muted); margin: 0 0 14px;
}
.muted { color: var(--muted); }

/* Кнопки */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
    font: 500 15px var(--sans); text-decoration: none; cursor: pointer;
    transition: transform .15s ease, background .15s ease, opacity .15s ease;
}
.button:active { transform: scale(0.98); }
.button.primary { background: var(--ink); color: var(--bg); }
.button.primary:hover { opacity: 0.88; }
.button.primary:disabled { opacity: 0.5; cursor: progress; }
.button.ghost { color: var(--space-ink); border-color: rgba(255, 255, 255, 0.22); }
.button.ghost:hover { background: rgba(255, 255, 255, 0.08); }
.hero .button.primary { background: var(--space-ink); color: var(--space); }

/* Первый экран — «момент» */
.hero, .moment {
    position: relative; overflow: hidden;
    background: radial-gradient(120% 90% at 50% 0%, #15192a 0%, var(--space) 60%);
    color: var(--space-ink);
}
.hero { min-height: min(100svh, 900px); display: flex; flex-direction: column; padding: 0 24px; }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.corners {
    position: relative; display: flex; justify-content: space-between; gap: 16px;
    font: 500 10.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(236, 234, 228, 0.45);
    padding: 18px 0 0;
}
.corners.bottom { padding: 0 0 20px; margin-top: auto; }
.top { position: relative; display: flex; align-items: center; justify-content: space-between; max-width: 1120px; width: 100%; margin: 14px auto 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 17px var(--sans); text-decoration: none; }
.planet-mark { width: 30px; height: 30px; }
.pill {
    font-size: 14px; text-decoration: none; padding: 7px 14px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2); color: var(--space-ink);
}
.pill:hover { background: rgba(255, 255, 255, 0.08); }
.hero-body {
    position: relative; max-width: 860px; margin: auto; padding: 72px 0 64px; text-align: center;
    display: flex; flex-direction: column; align-items: center;
}
.hero-body .mono { color: var(--space-muted); }
.hero-body .planet { width: 112px; height: 112px; margin-bottom: 28px; animation: float 7s ease-in-out infinite; }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--space-muted); max-width: 620px; margin: 24px auto 34px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .hero-body .planet { animation: none; } html { scroll-behavior: auto; } }

/* Рабочие поверхности */
main > section { max-width: 1120px; margin: 0 auto; padding: 96px 24px; }
.section-head { max-width: 700px; margin-bottom: 40px; }
.section-head p.muted { margin: 14px 0 0; }

.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.promises article { border-top: 1px solid var(--line); padding-top: 22px; }
.promises h3 { margin-bottom: 10px; }
.promises p:last-child { color: var(--muted); margin: 0; }

.features .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.features article {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.features .icon {
    display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
    background: var(--bg); border: 1px solid var(--line); font-size: 16px; margin-bottom: 18px;
}
.features h3 { font: 600 16px var(--sans); letter-spacing: 0; margin-bottom: 8px; }
.features p { margin: 0; color: var(--muted); font-size: 14.5px; }

.moment {
    max-width: 1120px !important; margin: 0 auto; border-radius: 22px; padding: 0 40px 56px !important;
    border: 1px solid var(--line);
}
.moment .corners { margin-bottom: 64px; }
.moment h2 { max-width: 640px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.steps li { counter-increment: step; border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: "0" counter(step); font: 500 11px var(--mono); letter-spacing: 0.1em; color: rgba(236, 234, 228, 0.45); }
.steps b { font: 400 22px var(--serif); }
.steps span { color: var(--space-muted); font-size: 14.5px; }

/* Форма */
.apply { max-width: 760px !important; }
.form {
    display: flex; flex-direction: column; gap: 18px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px;
}
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 500; }
.opt { font-weight: 400; color: var(--faint); margin-left: 4px; }
input, textarea, select {
    font: 15px var(--sans); color: var(--ink); background: var(--bg);
    border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; width: 100%;
}
textarea { resize: vertical; min-height: 96px; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
input[aria-invalid="true"] { border-color: var(--error); }
.form label.consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--muted); font-size: 13.5px; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.consent a { color: var(--ink); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.error { color: var(--error); margin: 0; font-size: 14px; }
.form .button { align-self: flex-start; }

.done {
    text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 48px 28px;
}
.done .planet { width: 72px; height: 72px; margin-bottom: 18px; }
.done h3 { font-size: 32px; margin-bottom: 12px; }
.done p { color: var(--muted); max-width: 460px; margin: 0 auto; }
.done b { color: var(--ink); font-weight: 500; }

footer {
    max-width: 1120px; margin: 0 auto; padding: 32px 24px 48px; display: flex; justify-content: space-between; gap: 16px;
    color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line);
}

/* Политика */
.doc { max-width: 720px; margin: 0 auto; padding: 64px 24px 96px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 28px; }
.doc h2 { font-size: 24px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--muted); }
.doc .back { display: inline-block; margin-bottom: 32px; color: var(--muted); text-decoration: none; }

@media (max-width: 860px) {
    .promises, .features .grid { grid-template-columns: 1fr; gap: 14px; }
    .promises { gap: 32px; }
    .steps { grid-template-columns: 1fr 1fr; }
    main > section { padding: 72px 16px; }
    .moment { margin: 0 16px; padding: 0 22px 40px !important; border-radius: 18px; }
    .hero { padding: 0 16px; }
}
@media (max-width: 560px) {
    .two, .steps { grid-template-columns: 1fr; }
    .form { padding: 20px; }
    .corners span:last-child { display: none; }
    .form .button { align-self: stretch; }
}
