/* ============================================================
   Taskovik — лендинг, вариант A («Контроль владельца»)
   Палитра: синий + белый, акцент — зелёный галочки логотипа
   ============================================================ */

:root {
    --blue-950: #071A3E;
    --blue-900: #0B2B5C;
    --blue-800: #0F3A7D;
    --blue-700: #12438F;
    --blue-600: #1B54B8;
    --blue-500: #2B66CC;
    --green: #2FA34F;
    --green-dark: #268A42;
    --ink: #13233F;
    --muted: #5B6B85;
    --line: #DCE4F0;
    --bg-alt: #F3F7FC;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

section { scroll-margin-top: 84px; }

img { max-width: 100%; }

/* ---------- Общие блоки ---------- */

.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }

.section h2, .security h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
}

.section-sub {
    text-align: center;
    color: var(--muted);
    max-width: 720px;
    margin: 12px auto 48px;
    font-size: 1.05rem;
}

.grid { display: grid; gap: 24px; }

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 10px;
    border: 1.5px solid transparent;
    font: inherit;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}

.btn-lg { padding: 15px 34px; font-size: 1.08rem; }
.btn-sm { padding: 8px 18px; font-size: 0.92rem; }

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

.btn-outline { border-color: var(--blue-600); color: var(--blue-600); }
.btn-outline:hover { background: var(--blue-600); color: #fff; }

.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 64px;
}

.brand img { height: 36px; display: block; }

.nav-links {
    display: flex;
    gap: 16px;
    margin-left: 8px;
    flex: 1;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
}

.nav-links a:hover { color: var(--blue-600); }

.nav-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.nav-actions .btn-sm {
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 0.88rem;
}

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

.hero {
    color: #fff;
    background:
        radial-gradient(900px 420px at 15% -10%, rgba(43,102,204,.45), transparent 60%),
        radial-gradient(700px 380px at 90% 110%, rgba(43,102,204,.35), transparent 60%),
        linear-gradient(135deg, var(--blue-950), var(--blue-900) 45%, var(--blue-700));
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 44px),
        repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 44px);
    pointer-events: none;
}

.hero-body {
    position: relative;
    padding: 96px 20px 72px;
    text-align: center;
    max-width: 900px;
}

.hero-kicker {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.75);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    padding: 6px 16px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 2.9rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: 1.18rem;
    color: rgba(255,255,255,.82);
    max-width: 680px;
    margin: 20px auto 32px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-note {
    margin-top: 18px;
    font-size: 0.95rem;
    color: rgba(255,255,255,.7);
}

.hero-trust {
    display: flex;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,.14);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.85);
    font-size: 0.93rem;
    font-weight: 600;
}

.trust-item .icon { width: 20px; height: 20px; color: #7ED89A; flex: none; }

/* ---------- Степпер жизненного цикла ---------- */

.stepper {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.step { flex: 1; text-align: center; padding: 0 10px; }

.step-num {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--blue-600);
    color: var(--blue-600);
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(27,84,184,.15);
}

.step h3 { font-size: 1.02rem; font-weight: 800; }

.step p {
    font-size: 0.88rem;
    color: var(--muted);
    margin-top: 6px;
    line-height: 1.5;
}

.step-line {
    flex: 0 0 42px;
    height: 2px;
    margin-top: 27px;
    background: linear-gradient(90deg, var(--blue-600), var(--blue-500));
    border-radius: 2px;
    opacity: .5;
}

/* ---------- Боли → решения ---------- */

.pains-grid { grid-template-columns: repeat(2, 1fr); }

.pain-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 26px 28px;
}

.pain {
    display: flex;
    gap: 10px;
    color: var(--muted);
    font-size: 0.97rem;
    margin-bottom: 16px;
}

.pain .icon {
    width: 20px; height: 20px;
    flex: none;
    margin-top: 3px;
    color: #B9C4D6;
}

.solution {
    display: flex;
    gap: 10px;
    font-weight: 600;
    font-size: 0.98rem;
}

.solution::before {
    content: "✓";
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 3px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Возможности ---------- */

.features-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.feature-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 26px;
    transition: box-shadow .15s, transform .15s;
}

.feature-card:hover {
    box-shadow: 0 10px 30px rgba(11,43,92,.1);
    transform: translateY(-2px);
}

.feature-card .icon {
    width: 30px;
    height: 30px;
    color: var(--blue-600);
    margin-bottom: 14px;
}

.feature-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }

.feature-card p { font-size: 0.92rem; color: var(--muted); }

/* ---------- Скриншоты ---------- */

.screens-grid { grid-template-columns: repeat(2, 1fr); }

.shot {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(11,43,92,.08);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
}

.browser-bar span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #C9D4E5;
}

.browser-bar i {
    margin-left: 12px;
    font-style: normal;
    font-size: 0.78rem;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2px 12px;
}

.shot img { display: block; width: 100%; }

.shot figcaption {
    text-align: center;
    font-size: 0.88rem;
    color: var(--muted);
    padding: 12px 16px;
    border-top: 1px solid var(--line);
}

/* ---------- Безопасность ---------- */

.security {
    background:
        radial-gradient(800px 380px at 85% -10%, rgba(43,102,204,.4), transparent 60%),
        linear-gradient(150deg, var(--blue-950), var(--blue-900));
    color: #fff;
}

.security .section-sub.light { color: rgba(255,255,255,.72); }

.security-grid { grid-template-columns: repeat(4, 1fr); gap: 28px; }

.security-item .icon {
    width: 34px; height: 34px;
    color: #7ED89A;
    margin-bottom: 14px;
}

.security-item h3 { font-size: 1rem; font-weight: 800; margin-bottom: 8px; }

.security-item p { font-size: 0.9rem; color: rgba(255,255,255,.75); }

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

.billing-wrap { text-align: center; margin-bottom: 40px; }

.billing-toggle {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-alt);
    padding: 4px;
    gap: 4px;
}

.billing-toggle button {
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--muted);
    padding: 9px 22px;
    border-radius: 9px;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.billing-toggle button.active {
    background: var(--blue-600);
    color: #fff;
}

.billing-toggle button b { font-weight: 800; }

.billing-hint {
    margin-top: 12px;
    font-size: 0.88rem;
    color: var(--muted);
}

.pricing-grid { grid-template-columns: repeat(5, 1fr); gap: 18px; align-items: stretch; }

.price-card {
    position: relative;
    border: 2px solid var(--line);
    border-radius: 16px;
    padding: 26px 20px;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.price-card h3 { font-size: 1.08rem; font-weight: 800; }

.price { margin: 10px 0 2px; }

.price-val {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.price-cur { color: var(--muted); font-size: 0.95rem; font-weight: 600; }

/* Фиксированная высота: разделители карточек на одном уровне при переносе текста */
.price-for { color: var(--muted); font-size: 0.88rem; margin-bottom: 14px; min-height: 45px; }

.limits {
    list-style: none;
    font-size: 0.85rem;
    color: var(--ink);
    border-top: 1px solid var(--line);
    padding-top: 14px;
    margin-bottom: 14px;
    /* Минимальная высота: разделитель над «что входит» на одном уровне во всех карточках */
    min-height: 192px;
}

.limits li { padding: 3px 0; }

.diffs {
    list-style: none;
    font-size: 0.82rem;
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.diffs li { padding: 3px 0 3px 24px; position: relative; }

.diffs li.yes::before {
    content: "✓";
    position: absolute;
    left: 2px;
    color: var(--green);
    font-weight: 800;
}

.diffs li.no::before {
    content: "—";
    position: absolute;
    left: 4px;
    color: #B9C4D6;
    font-weight: 700;
}

.diffs li.no { color: var(--muted); }

.price-card.featured {
    border: 2px solid var(--blue-600);
    box-shadow: 0 14px 40px rgba(27,84,184,.18);
}

.price-card.featured .badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue-600);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 5px 16px;
    white-space: nowrap;
}

.pricing-note {
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
    max-width: 760px;
    margin: 34px auto 0;
}

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

.faq-wrap { max-width: 780px; }

.faq-wrap h2 { margin-bottom: 36px; }

.faq-wrap details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 24px;
    margin-bottom: 12px;
}

.faq-wrap summary {
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 36px;
}

.faq-wrap summary::-webkit-details-marker { display: none; }

.faq-wrap summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: -2px;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--blue-600);
    transition: transform .15s;
}

.faq-wrap details[open] summary::after { content: "–"; }

.faq-wrap details p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-top: 10px;
}

/* ---------- Финальный CTA ---------- */

.cta-final {
    background:
        radial-gradient(700px 320px at 20% 120%, rgba(43,102,204,.45), transparent 60%),
        linear-gradient(135deg, var(--blue-950), var(--blue-700));
    color: #fff;
    text-align: center;
    padding: 84px 0;
}

.cta-final h2 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }

.cta-final p {
    color: rgba(255,255,255,.8);
    margin: 14px 0 30px;
    font-size: 1.05rem;
}

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

.footer {
    background: var(--blue-950);
    color: rgba(255,255,255,.75);
    padding: 56px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.footer-text { font-size: 0.92rem; }

.footer h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 8px; }

.footer-links a { color: rgba(255,255,255,.75); text-decoration: none; font-size: 0.92rem; }

.footer-links a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.15);
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 0.88rem;
}

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

@media (max-width: 1199px) {
    .pricing-grid { grid-template-columns: repeat(3, 1fr); }
    .limits { min-height: 172px; }
}

@media (max-width: 1150px) {
    .security-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-links { display: none; }
}

@media (max-width: 760px) {
    .hero h1 { font-size: 2.1rem; }
    .hero-body { padding: 64px 20px 52px; }
    .section { padding: 60px 0; }
    .stepper { flex-direction: column; align-items: stretch; }
    .step { padding: 0 0 26px; }
    .step-line { display: none; }
    .pains-grid, .screens-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .limits { min-height: 128px; }
    .security-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .nav { height: auto; padding: 10px 0; gap: 14px; }
    .brand img { height: 30px; }
    .nav-actions { gap: 8px; }
    .nav-actions .btn-outline { display: none; }
    .nav-actions .btn-sm { white-space: nowrap; padding: 8px 14px; }
}
