/* ── FS VPN — полный рестайлинг ────────────────────────────────────────── */
/* Цветовая схема: тёмная тема с бирюзовым акцентом (как на FSVPN 2.0)    */

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

:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-elevated: #1a1a26;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(1,105,111,0.3);
    --text: #e8e8ed;
    --text-muted: #8888a0;
    --text-dim: #555570;
    --accent: #0d9488;
    --accent-light: #14b8a6;
    --accent-glow: rgba(13,148,136,0.15);
    --accent-glow-strong: rgba(13,148,136,0.3);
    --gradient: linear-gradient(135deg, #0d9488, #0891b2);
    --gradient-text: linear-gradient(135deg, #0d9488, #22d3ee);
    --radius: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

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

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #5eead4;
}

/* ── Header ────────────────────────────────────────────────────────────── */

header {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    height: 44px;
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

nav a {
    font-size: 14px;
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.25s ease;
    font-weight: 500;
}

nav a:hover {
    color: var(--text);
    background: rgba(255,255,255,0.04);
}

.nav-cabinet {
    background: rgba(13,148,136,0.12) !important;
    padding: 8px 18px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(13,148,136,0.25) !important;
    color: var(--accent-light) !important;
    font-weight: 600;
}

.nav-cabinet:hover {
    background: rgba(13,148,136,0.2) !important;
    border-color: rgba(13,148,136,0.4) !important;
    color: #5eead4 !important;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero {
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -20%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(13,148,136,0.08), transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 50%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(8,145,178,0.06), transparent 70%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 520px;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
    max-width: 460px;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */

.cta-button {
    display: inline-block;
    background: var(--gradient);
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px var(--accent-glow-strong);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-secondary {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent-light);
    margin-left: 16px;
}

.cta-secondary:hover {
    background: rgba(13,148,136,0.1);
    box-shadow: 0 8px 25px var(--accent-glow);
}

/* ── Hero badges ───────────────────────────────────────────────────────── */

.hero-badge {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.badge {
    padding: 6px 14px;
    background: rgba(13,148,136,0.08);
    border: 1px solid rgba(13,148,136,0.15);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    max-width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: contain;
    border-radius: 16px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* ── Sections ──────────────────────────────────────────────────────────── */

section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
}

section h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 60px;
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ── How it works ──────────────────────────────────────────────────────── */

.how-it-works {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
}

.step {
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.step:hover::before {
    opacity: 1;
}

.step-number {
    font-size: 42px;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 17px;
    margin-bottom: 10px;
    color: #fff;
}

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

/* ── Benefits ──────────────────────────────────────────────────────────── */

.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.benefit-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(13,148,136,0.04), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.benefit-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.benefit-card:hover::after {
    opacity: 1;
}

.benefit-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #fff;
    position: relative;
    z-index: 1;
}

.benefit-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ── Pricing ───────────────────────────────────────────────────────────── */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.pricing-card {
    padding: 40px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(13,148,136,0.04), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pricing-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.pricing-card:hover::before {
    opacity: 1;
}

.pricing-card.featured {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(13,148,136,0.08), rgba(8,145,178,0.04));
    transform: scale(1.04);
    box-shadow: 0 8px 32px rgba(13,148,136,0.1);
}

.pricing-card.featured:hover {
    transform: scale(1.04) translateY(-4px);
}

.pricing-card .badge {
    position: absolute;
    top: -10px;
    left: 24px;
    background: var(--gradient);
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 12px;
    padding: 5px 12px;
}

.pricing-card h3 {
    font-size: 20px;
    margin: 16px 0 8px;
    color: #fff;
    position: relative;
    z-index: 1;
}

.pricing-card .subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.pricing-card .price {
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 20px 0;
    position: relative;
    z-index: 1;
}

.pricing-card .description {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.pricing-card .features {
    text-align: left;
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    list-style: none;
    position: relative;
    z-index: 1;
}

.pricing-card .features li {
    list-style: none;
    padding: 7px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.pricing-card .features li::before {
    content: "✓ ";
    color: var(--accent-light);
    margin-right: 8px;
    font-weight: bold;
}

/* ── Testimonials ──────────────────────────────────────────────────────── */

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial {
    padding: 28px 32px;
    background: var(--bg-card);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.testimonial:hover {
    background: var(--bg-elevated);
    transform: translateX(4px);
}

.testimonial p {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 16px;
    font-style: italic;
    line-height: 1.7;
}

.testimonial-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-light);
}

/* ── FAQ ───────────────────────────────────────────────────────────────── */

.faq-list {
    max-width: 640px;
    margin: 0 auto;
}

.faq-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.faq-item:first-child {
    padding-top: 0;
}

.faq-item h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #fff;
    cursor: pointer;
    transition: color 0.2s ease;
    font-weight: 600;
}

.faq-item h3:hover {
    color: var(--accent-light);
}

.faq-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── Final CTA ─────────────────────────────────────────────────────────── */

.final-cta {
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    border-bottom: none;
}

.final-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(13,148,136,0.06), transparent 60%);
    pointer-events: none;
}

.final-cta h2 {
    font-size: 40px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.final-cta p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* ── Footer ────────────────────────────────────────────────────────────── */

footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-dim);
    font-size: 13px;
}

footer p {
    margin-bottom: 8px;
}

footer a {
    color: var(--accent-light);
}

footer a:hover {
    color: #5eead4;
}

/* ── Animations ────────────────────────────────────────────────────────── */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

section {
    animation: fadeInUp 0.6s ease both;
}

section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.15s; }
section:nth-child(4) { animation-delay: 0.2s; }
section:nth-child(5) { animation-delay: 0.25s; }
section:nth-child(6) { animation-delay: 0.3s; }

/* Glow effect for featured elements */
.pricing-card.featured .cta-button {
    box-shadow: 0 4px 20px rgba(13,148,136,0.3);
}

/* Subtle grid background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: -1;
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-badge {
        justify-content: center;
    }
    .hero-image {
        order: -1;
    }
    section h2 {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 40px;
    }
    .hero-content h1 {
        font-size: 32px;
    }
    section {
        padding: 60px 0;
    }
    section h2 {
        font-size: 26px;
        margin-bottom: 40px;
    }
    .pricing-card.featured {
        transform: scale(1);
    }
    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }
    nav {
        gap: 4px;
    }
    nav a {
        font-size: 12px;
        padding: 6px 10px;
    }
    .nav-cabinet {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
    .cta-secondary {
        margin-left: 0;
        margin-top: 12px;
        display: block;
        text-align: center;
    }
    .final-cta h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 26px;
    }
    .hero-logo {
        max-height: 200px;
    }
    .container {
        padding: 0 16px;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        padding: 0 4px;
    }
    .benefits {
        grid-template-columns: 1fr;
    }
}