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

:root {
    --primary: #1a73e8;
    --primary-hover: #1557b0;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text: #202124;
    --text-muted: #5f6368;
    --border: #e8eaed;
    --bg: #f1f3f4;
    --bg-alt: #f8f9fa;
    --white: #ffffff;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================
   Шапка
   ============================ */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
}

.nav a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================
   Кнопки
   ============================ */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.15s, transform 0.1s;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--bg-alt);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}

.btn-ghost:hover {
    color: var(--primary);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

/* ============================
   Hero
   ============================ */
.hero {
    padding: 80px 0 100px;
    background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: #e8f0fe;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -1px;
    max-width: 780px;
    margin: 0 auto 20px;
}

.hero .subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: -28px;
    margin-bottom: 40px;
}

.hero-mock {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    padding: 24px;
    border: 1px solid var(--border);
}

.mock-window {
    background: var(--bg-alt);
    border-radius: 10px;
    padding: 20px;
    text-align: left;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
}

.mock-window .dot-row {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dadce0;
}

.mock-line-key {
    color: var(--primary);
    font-weight: 600;
}

/* ============================
   Секции (общее)
   ============================ */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

/* ============================
   Как работает
   ============================ */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step {
    text-align: center;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ============================
   Возможности
   ============================ */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.feature:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.feature h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================
   Тарифы
   ============================ */
.pricing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.plan {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
}

.plan.featured {
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(26, 115, 232, 0.15);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.plan-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.plan-speed {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.plan-price {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
}

.plan-price-free {
    color: var(--success);
}

.plan-price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
}

.plan-period {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.plan-features {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
    flex-grow: 1;
}

.plan-features li {
    padding: 8px 0 8px 24px;
    position: relative;
    font-size: 14px;
    color: var(--text);
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.plan .btn {
    width: 100%;
}

/* ============================
   FAQ
   ============================ */
.faq {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.faq-q::after {
    content: '+';
    font-size: 22px;
    font-weight: 400;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.faq-item.open .faq-q::after {
    transform: rotate(45deg);
}

.faq-a {
    display: none;
    padding: 0 0 20px;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-item.open .faq-a {
    display: block;
}

/* ============================
   CTA
   ============================ */
.cta {
    background: var(--gradient);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.cta p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta .btn {
    background: #fff;
    color: var(--primary);
}

.cta .btn:hover {
    background: var(--bg-alt);
}

/* ============================
   Футер
   ============================ */
.footer {
    background: #202124;
    color: #9aa0a6;
    padding: 40px 0;
    font-size: 14px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
    flex-wrap: wrap;
}

.footer-links a {
    color: #9aa0a6;
    text-decoration: none;
    transition: color 0.15s;
}

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

/* ============================
   Адаптив
   ============================ */
@media (max-width: 900px) {
    .features,
    .pricing {
        grid-template-columns: 1fr;
    }
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero h1 {
        font-size: 36px;
    }
}

@media (max-width: 720px) {
    .nav {
        display: none;
    }
    .hero {
        padding: 48px 0 64px;
    }
    .hero h1 {
        font-size: 30px;
    }
    .hero .subtitle {
        font-size: 16px;
    }
    .section {
        padding: 56px 0;
    }
    .section-title {
        font-size: 26px;
    }
    .steps {
        grid-template-columns: 1fr;
    }
    .cta h2 {
        font-size: 26px;
    }
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}