:root {
    --ink: #141b2d;
    --muted: #5d6b84;
    --line: #e3e8f1;
    --accent: #2f5fe0;
    --accent-dark: #2449b4;
    --accent-soft: #eef2fe;
    --page: #f7f9fc;
    --ok: #1f8a53;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.6;
    font-size: 16px;
}

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

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* Шапка */
.top { border-bottom: 1px solid var(--line); background: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 18px; font-weight: 600; }
.logo:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a.btn { color: #fff; }
.nav a.btn-line { color: var(--accent); }

/* Кнопки */
.btn {
    display: inline-block;
    padding: 9px 18px;
    border: 0;
    border-radius: 7px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-size: 15px;
    cursor: pointer;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn-line { background: #fff; color: var(--accent); border: 1px solid var(--line); }
.btn-line:hover { background: var(--accent-soft); }
.btn-wide { width: 100%; padding: 11px 18px; font-size: 16px; }

/* Главная */
.hero { padding: 54px 0 10px; text-align: center; }
.hero h1 { font-size: 34px; line-height: 1.25; letter-spacing: -0.4px; }
.hero p.lead { color: var(--muted); margin-top: 10px; font-size: 17px; }

.drop {
    margin: 26px auto 0;
    max-width: 620px;
    border: 2px dashed #c4d0f2;
    border-radius: 14px;
    background: #f8faff;
    padding: 38px 24px;
    text-align: center;
}
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop .arrow { width: 44px; height: 44px; }
.drop h2 { font-size: 19px; font-weight: 600; margin-top: 12px; }
.drop p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.drop .act { margin-top: 18px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.drop .file { font-size: 15px; word-break: break-all; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 44px 0 10px; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.card h3 { font-size: 16px; font-weight: 600; }
.card p { color: var(--muted); font-size: 14px; margin-top: 5px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.step { padding-left: 42px; position: relative; }
.step span {
    position: absolute; left: 0; top: 2px;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent);
    font-size: 14px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 15px; font-weight: 600; }
.step p { color: var(--muted); font-size: 14px; }

/* Текстовые страницы */
.page { padding: 42px 0 10px; max-width: 760px; }
.page h1 { font-size: 28px; letter-spacing: -0.3px; }
.page h2 { font-size: 19px; margin-top: 30px; }
.page h3 { font-size: 16px; margin-top: 22px; }
.page p, .page li { color: #2c3752; margin-top: 10px; }
.page ul, .page ol { margin-top: 6px; padding-left: 22px; }
.page li { margin-top: 6px; }
.muted { color: var(--muted); font-size: 14px; }
.sect { margin-top: 34px; }
.sect h2 { font-size: 22px; }

/* Таблицы */
table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; font-size: 14px; }

/* Тарифы */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.plan { border: 1px solid var(--line); border-radius: 12px; padding: 22px 20px; display: flex; flex-direction: column; }
.plan.pick { border-color: var(--accent); }
.plan .tag { color: var(--accent); font-size: 13px; font-weight: 600; }
.plan h2 { font-size: 18px; font-weight: 600; }
.plan .price { font-size: 28px; font-weight: 600; margin: 10px 0 2px; }
.plan .price small { font-size: 14px; font-weight: 400; color: var(--muted); }
.plan ul { list-style: none; margin: 16px 0 20px; font-size: 14px; color: #2c3752; }
.plan li { padding: 5px 0 5px 20px; position: relative; }
.plan li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.plan .btn { margin-top: auto; text-align: center; }

/* Формы */
.form { max-width: 420px; margin: 54px auto; border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.form.left { margin: 6px 0 0; }
.form h1 { font-size: 23px; text-align: center; }
.form p.sub { color: var(--muted); font-size: 14px; text-align: center; margin-top: 6px; }
.field { margin-top: 16px; }
.field label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 5px; }
.field label.check { display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; }
.field label.check input { margin-top: 4px; flex: none; }
input[type=text], input[type=email], input[type=password], input[type=url], select, textarea {
    width: 100%;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); }
textarea { min-height: 110px; resize: vertical; }
.form .btn { margin-top: 20px; }
.form .alt { margin-top: 16px; text-align: center; font-size: 14px; color: var(--muted); }
.alert { margin-top: 16px; border-radius: 7px; padding: 11px 13px; font-size: 14px; background: #fdeced; color: #a22430; }
.done { margin-top: 16px; border-radius: 7px; padding: 11px 13px; font-size: 14px; background: #eaf6ef; color: #1f6b43; }
.hide { display: none; }
.vh { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

/* Состояние */
.state { display: inline-flex; align-items: center; gap: 7px; color: var(--ok); font-size: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; }

/* Пустые страницы (404, 410) */
.empty { text-align: center; padding: 86px 0 40px; }
.empty h1 { font-size: 26px; }
.empty p { color: var(--muted); margin-top: 10px; }
.empty .btn { margin-top: 22px; }

/* Подвал */
.foot { margin-top: 64px; border-top: 1px solid var(--line); background: var(--page); padding: 28px 0; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; font-size: 14px; }
.foot a { color: var(--muted); }
.foot .col { display: flex; flex-wrap: wrap; gap: 14px 20px; }
.foot .copy { color: #8b97ab; }

@media (max-width: 760px) {
    .hero { padding-top: 34px; }
    .hero h1 { font-size: 26px; }
    .cards, .steps, .plans { grid-template-columns: 1fr; }
    .nav { gap: 14px; font-size: 14px; }
    .nav .hide-sm { display: none; }
    .drop { padding: 28px 16px; }
    .form { margin: 32px auto; padding: 22px 18px; border: 0; }
    table { font-size: 14px; }
    th, td { padding: 9px 8px; }
}
