/* ==========================================================================
   Директ Бюджет — сайт direct-budget.ru
   ========================================================================== */

:root {
    --primary: #2b5cd9;
    --primary-dark: #1f45ad;
    --primary-soft: #eef3ff;
    --accent: #ffb020;
    --accent-soft: #fff6e6;
    --success: #12a150;
    --success-soft: #ecfdf3;
    --danger: #d92d20;
    --danger-soft: #fef3f2;

    --bg: #ffffff;
    --bg-alt: #f6f8fc;
    --border: #e4e8f0;
    --border-strong: #d3d9e5;
    --text: #16203a;
    --muted: #5f6a80;

    --radius: 14px;
    --radius-sm: 9px;
    --shadow-sm: 0 1px 2px rgba(21, 33, 63, .06);
    --shadow-md: 0 6px 24px rgba(21, 33, 63, .08);
    --shadow-lg: 0 18px 48px rgba(21, 33, 63, .12);
    --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { margin: 0 0 14px; letter-spacing: -.02em; line-height: 1.22; }
h1 { font-size: 44px; font-weight: 800; }
h2 { font-size: 32px; font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: 14px; font-weight: 700; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 7px; }

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

.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 660px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); font-size: 17px; margin-bottom: 0; }

.eyebrow {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 5px 13px;
    border-radius: 30px;
    margin-bottom: 16px;
}

/* --------------------------------------------------------------- Логотип */

.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo:hover { text-decoration: none; }
.logo-mark { display: block; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-weight: 700; font-size: 17px; color: var(--text); letter-spacing: -.02em; white-space: nowrap; }
.logo-site { font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background .16s, border-color .16s, box-shadow .16s, transform .06s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(43, 92, 217, .28);
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline { background: #fff; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { background: #f5f7fb; border-color: #c3cbdb; }

.btn-ghost { background: transparent; color: var(--text); padding: 12px 16px; }
.btn-ghost:hover { background: #f2f5fa; }

.btn-light { background: #fff; color: var(--primary-dark); }
.btn-light:hover { background: #f0f4ff; }

/* Прозрачная кнопка на цветном фоне — текст всегда белый */
.btn-on-dark {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border-color: rgba(255, 255, 255, .5);
}
.btn-on-dark:hover {
    background: rgba(255, 255, 255, .2);
    border-color: rgba(255, 255, 255, .85);
    color: #fff;
}

.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ----------------------------------------------------------------- Шапка */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 72px;
    flex-wrap: wrap;
}
.site-nav { display: flex; gap: 6px; margin-right: auto; flex-wrap: wrap; }
.site-nav a {
    padding: 8px 13px;
    border-radius: 8px;
    color: #46516b;
    font-size: 14.5px;
    font-weight: 500;
}
.site-nav a:hover { background: #f2f5fa; color: var(--text); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }

/* ------------------------------------------------------------------ Hero */

.hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 76px;
    background:
        radial-gradient(900px 420px at 78% -10%, #e8efff 0%, rgba(232, 239, 255, 0) 62%),
        linear-gradient(180deg, #fbfcff 0%, #ffffff 100%);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero-lead { font-size: 18.5px; color: var(--muted); margin-bottom: 28px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-note { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note svg { flex: none; }

/* Макет уведомления в hero */
.mock {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.mock-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: #fafbfe;
    border-bottom: 1px solid var(--border);
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: #dfe4ee; }
.mock-title { font-size: 12.5px; color: var(--muted); margin-left: 8px; }
.mock-body { padding: 18px; }
.mock-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 4px;
    border-bottom: 1px solid #eff2f7;
}
.mock-row:last-child { border-bottom: none; }
.mock-acc { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.mock-acc b { font-size: 14.5px; font-weight: 600; }
.mock-acc span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.mock-val { font-size: 15px; font-weight: 700; white-space: nowrap; }
.mock-val.low { color: var(--danger); }
.mock-val.ok { color: var(--success); }
.mock-alert {
    margin-top: 14px;
    display: flex;
    gap: 11px;
    align-items: flex-start;
    background: var(--danger-soft);
    border: 1px solid #f5cec9;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 13px;
    color: #96271d;
    line-height: 1.45;
}

/* ------------------------------------------------------------------ Сетки */

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

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; margin-bottom: 0; }
.card ul { color: var(--muted); font-size: 15px; margin-bottom: 0; }

.icon-badge {
    width: 42px; height: 42px;
    border-radius: 11px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.icon-badge.amber { background: var(--accent-soft); color: #b26a00; }
.icon-badge.green { background: var(--success-soft); color: #0b7a41; }

/* --------------------------------------------------------------- Шаги ---- */

.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.step {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 22px;
    box-shadow: var(--shadow-sm);
}
.step-num {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 14px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
}
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14.5px; margin-bottom: 0; }

/* -------------------------------------------------------------- Тарифы --- */

.pricing-note {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--accent-soft);
    border: 1px solid #ffe1a8;
    color: #8a5a00;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 17px;
    border-radius: 30px;
    margin-top: 18px;
}

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }

.plan {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 26px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.plan.is-featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    position: relative;
}
.plan-tag {
    position: absolute;
    top: -12px; left: 26px;
    background: var(--primary);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
}
.plan h3 { margin-bottom: 4px; }
.plan-tagline { color: var(--muted); font-size: 14px; margin-bottom: 20px; min-height: 42px; }

.plan-price { display: flex; align-items: baseline; gap: 7px; margin-bottom: 6px; }
.plan-price .amount { font-size: 38px; font-weight: 800; letter-spacing: -.03em; }
.plan-price .period { color: var(--muted); font-size: 15px; }

.plan-year {
    font-size: 13.5px;
    color: var(--muted);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    margin-bottom: 20px;
    line-height: 1.45;
}
.plan-year b { color: var(--text); }
.plan-year .save { color: #0b7a41; font-weight: 600; }

.plan-limit {
    font-size: 14.5px;
    font-weight: 600;
    background: var(--primary-soft);
    color: var(--primary-dark);
    border-radius: var(--radius-sm);
    padding: 10px 13px;
    margin-bottom: 20px;
    text-align: center;
}

.plan-features { list-style: none; padding: 0; margin: 0 0 24px; }
.plan-features li {
    position: relative;
    padding-left: 26px;
    font-size: 14.5px;
    color: #3d475e;
    margin-bottom: 10px;
}
.plan-features li::before {
    content: "";
    position: absolute;
    left: 2px; top: 8px;
    width: 13px; height: 8px;
    border-left: 2px solid var(--success);
    border-bottom: 2px solid var(--success);
    transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; }

/* ----------------------------------------------------------------- FAQ --- */

.faq { max-width: 780px; margin: 0 auto; }
.faq details {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}
.faq summary {
    cursor: pointer;
    padding: 17px 52px 17px 20px;
    font-weight: 600;
    font-size: 16px;
    list-style: none;
    position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "";
    position: absolute;
    right: 22px; top: 24px;
    width: 9px; height: 9px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform .18s;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 27px; }
.faq details[open] summary { padding-bottom: 6px; }
.faq .faq-body { padding: 0 20px 18px; color: var(--muted); font-size: 15px; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ CTA -- */

.cta-band {
    background: linear-gradient(135deg, #2b5cd9 0%, #1e3fae 100%);
    color: #fff;
    border-radius: 20px;
    padding: 54px 48px;
    text-align: center;
    box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #d6e1ff; font-size: 17px; max-width: 560px; margin: 0 auto 26px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

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

.site-footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 56px 0 34px;
    font-size: 14.5px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.5fr 1fr;
    gap: 34px;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--border);
}
.footer-col { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.footer-col h4 { color: var(--text); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.footer-col a { color: var(--muted); font-size: 14.5px; }
.footer-col a:hover { color: var(--primary); }
.footer-note { color: var(--muted); font-size: 14px; margin: 14px 0 0; max-width: 300px; }
.footer-legal { padding-top: 26px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.footer-legal p { margin-bottom: 10px; }
.footer-copy { color: #8b93a5; font-size: 12.5px; }

/* ------------------------------------------------------------- Cookie ---- */

.cookie-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 24px rgba(21, 33, 63, .09);
    padding: 14px 0;
}
.cookie-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: space-between;
    flex-wrap: wrap;
}
.cookie-inner p { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 780px; }

/* ------------------------------------------------------- Текстовые стр. -- */

.legal { padding: 54px 0 76px; }
.legal-inner { max-width: 780px; margin: 0 auto; }
.legal h1 { font-size: 32px; margin-bottom: 8px; }
.legal .legal-date { color: var(--muted); font-size: 14px; margin-bottom: 34px; }
.legal h2 { font-size: 21px; margin: 36px 0 12px; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal li { font-size: 15.5px; color: #33405c; }
.legal ol, .legal ul { padding-left: 24px; }
.legal .req-box {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    font-size: 14.5px;
    line-height: 1.7;
}
.legal .req-box p:last-child { margin-bottom: 0; }
.back-link { display: inline-block; margin-bottom: 22px; font-size: 14.5px; }

/* -------------------------------------------------------------- Оплата --- */

.pay-wrap { padding: 64px 0 88px; }
.pay-card {
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 34px;
    text-align: center;
}
.pay-card h1 { font-size: 26px; }
.pay-summary {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px;
    margin: 22px 0;
    text-align: left;
}
.pay-summary .row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 15px; }
.pay-summary .row b { font-weight: 700; }
.pay-options { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-bottom: 22px; }
.pay-option {
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: left;
    cursor: pointer;
    display: block;
}
.pay-option:hover { border-color: var(--primary); text-decoration: none; }
.pay-option .t { font-size: 13px; color: var(--muted); }
.pay-option .p { font-size: 22px; font-weight: 800; color: var(--text); }
.pay-option .s { font-size: 12.5px; color: #0b7a41; font-weight: 600; }

/* -------------------------------------------------------------- Адаптив -- */

@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .grid-3, .grid-4, .plans, .steps { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    body { font-size: 15.5px; }
    h1 { font-size: 32px; }
    h2 { font-size: 25px; }
    .section { padding: 58px 0; }
    .hero { padding: 56px 0 52px; }
    .container { padding: 0 18px; }
    /* Шапка: компактная, с воздухом сверху и снизу */
    .header-inner {
        min-height: 0;
        gap: 10px;
        padding-top: 11px;
        padding-bottom: 11px;
        flex-wrap: nowrap;
    }
    .site-nav { display: none; }
    .header-actions { gap: 4px; margin-left: auto; }
    .header-actions .btn {
        padding: 8px 13px;
        font-size: 13.5px;
        border-radius: 8px;
    }
    .header-actions .btn-ghost { padding: 8px 10px; }
    .logo { gap: 9px; }
    .logo-mark { width: 32px; height: 32px; }
    .logo-name { font-size: 15px; }
    .logo-site { font-size: 10.5px; }
    .grid-3, .grid-4, .plans, .steps, .grid-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .cta-band { padding: 38px 24px; border-radius: 16px; }
    .pay-options { grid-template-columns: 1fr; }
    .plan-tagline { min-height: 0; }
}

@media (max-width: 400px) {
    .header-actions .btn-ghost { display: none; }
    .logo-text { display: none; }
    .header-actions .btn { padding: 8px 12px; }
}
