/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #7C3AED;
    --primary-dark: #6D28D9;
    --primary-light: #EDE9FE;
    --secondary: #A78BFA;
    --text: #111827;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --bg: #F9FAFB;
    --white: #ffffff;
    --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
    --shadow-lg: 0 4px 24px rgba(0,0,0,.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: .2s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
}

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

img { max-width: 100%; height: auto; display: block; }

ul { list-style: none; }

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

/* ===========================
   BUTTONS
=========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 17px;
    border-radius: 10px;
}

.btn-xl {
    padding: 20px 48px;
    font-size: 18px;
    border-radius: 10px;
}

/* ===========================
   HEADER
=========================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}
.logo:hover { color: var(--primary); }
.logo svg { flex-shrink: 0; }

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

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--text-muted);
    transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-cta { margin-left: 8px; }

.mobile-cta { display: none; }

/* ===========================
   MAIN
=========================== */
.site-main { min-height: calc(100vh - 68px - 280px); }

/* ===========================
   SECTIONS
=========================== */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 100px 0; }

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ===========================
   HERO
=========================== */
.hero {
    background: linear-gradient(135deg, #5B21B6 0%, #7C3AED 60%, #8B5CF6 100%);
    color: var(--white);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,.04) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container { position: relative; z-index: 1; }

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

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.9);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.hero-tag::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4ADE80;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}

.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-title span { color: #C4B5FD; }

.hero-subtitle {
    font-size: 18px;
    opacity: .85;
    margin-bottom: 36px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-actions .btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.hero-actions .btn-primary:hover {
    background: #FAF5FF;
    color: var(--primary-dark);
}

.hero-actions .btn-outline {
    border-color: rgba(255,255,255,.5);
    color: var(--white);
}
.hero-actions .btn-outline:hover {
    background: rgba(255,255,255,.15);
    color: var(--white);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-value {
    font-size: 28px;
    font-weight: 800;
}

.hero-stat-label {
    font-size: 14px;
    opacity: .7;
}

/* ===========================
   VPN NOTICE
=========================== */
.vpn-notice {
    background: var(--bg);
    padding: 56px 0;
}

.vpn-notice-box {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--white);
    border: 2px solid var(--primary-light);
    border-radius: var(--radius);
    padding: 32px 40px;
    box-shadow: var(--shadow);
}

.vpn-notice-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vpn-notice-icon svg { width: 32px; height: 32px; }

.vpn-notice-text h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.vpn-notice-text p { color: var(--text-muted); }

/* ===========================
   HOW IT WORKS
=========================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    margin: 0 auto 20px;
}

.step-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

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

/* ===========================
   REVIEWS
=========================== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: box-shadow var(--transition);
}

.review-card:hover { box-shadow: var(--shadow-lg); }

.review-stars {
    color: #F59E0B;
    font-size: 18px;
    margin-bottom: 12px;
}

.review-text {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    font-size: 15px;
    flex-shrink: 0;
}

.review-name { font-weight: 600; font-size: 14px; }
.review-date { font-size: 12px; color: var(--text-muted); }

/* ===========================
   CTA SECTION
=========================== */
.cta-section {
    background: linear-gradient(135deg, #5B21B6, #7C3AED);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta-section .section-title { color: var(--white); }
.cta-section .section-subtitle { color: rgba(255,255,255,.8); }

.cta-section .btn-primary {
    background: var(--white);
    color: var(--primary);
}
.cta-section .btn-primary:hover {
    background: #FAF5FF;
    color: var(--primary-dark);
}

/* ===========================
   ABOUT PAGE
=========================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.stat-card-value {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-card-label {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.feature-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.feature-text h4 { font-weight: 700; margin-bottom: 6px; }
.feature-text p { color: var(--text-muted); font-size: 15px; }

/* ===========================
   CONTACTS PAGE
=========================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.contact-items { display: flex; flex-direction: column; gap: 16px; }

.contact-item {
    display: flex;
    gap: 14px;
    align-items: center;
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-form-wrap {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}

textarea.form-control { resize: vertical; min-height: 120px; }

.form-status {
    display: none;
    text-align: center;
    padding: 20px;
}

.form-status.sending {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--primary);
}

.form-status.success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--primary-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===========================
   SHOWCASE
=========================== */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.offer-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.offer-logo {
    height: 48px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.offer-logo-placeholder {
    height: 40px;
    width: 120px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    font-size: 13px;
}

.offer-params {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.offer-param { display: flex; flex-direction: column; }
.offer-param-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.offer-param-value { font-size: 16px; font-weight: 700; }

.offer-license {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: auto;
    margin-bottom: 16px;
}

.offer-card .btn { width: 100%; }

.showcase-disclaimer {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 48px;
}

.showcase-disclaimer h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.showcase-disclaimer p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 8px;
}

/* ===========================
   MFO TABLE
=========================== */
.mfo-comparison { margin-top: 16px; }

.mfo-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.mfo-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.mfo-body { padding: 20px; }

.mfo-name {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 12px;
    color: var(--text);
}

.mfo-conditions { display: flex; flex-direction: column; gap: 6px; }
.mfo-conditions > div { font-size: 13px; color: var(--text-muted); }
.mfo-conditions strong { color: var(--text); }

/* ===========================
   TEXT PAGES (terms, cookies)
=========================== */
.text-page { padding: 64px 0; }

.text-page-header {
    margin-bottom: 40px;
}

.text-page-header h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
}

.text-page-header p { color: var(--text-muted); }

.text-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 12px;
}

.text-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.8;
}

.text-content ul {
    list-style: disc;
    padding-left: 24px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.text-content ul li { margin-bottom: 6px; }

/* ===========================
   404
=========================== */
.page-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px;
}

.page-404 h1 { font-size: 80px; font-weight: 800; color: var(--primary); }
.page-404 h2 { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.page-404 p { color: var(--text-muted); margin-bottom: 32px; }

/* ===========================
   FOOTER
=========================== */
.site-footer {
    background: #0F172A;
    color: rgba(255,255,255,.7);
    padding: 64px 0 0;
}

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

.logo-footer span { color: var(--white); }
.logo-footer:hover span { color: #C4B5FD; }

.footer-desc {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.7;
    max-width: 280px;
}

.footer-nav h4,
.footer-contacts h4 {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 16px;
}

.footer-nav ul,
.footer-contacts ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a,
.footer-contacts a {
    color: rgba(255,255,255,.6);
    font-size: 14px;
    transition: color var(--transition);
}

.footer-nav a:hover,
.footer-contacts a:hover {
    color: var(--white);
}

.footer-contacts li { font-size: 14px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
    .showcase-grid { grid-template-columns: repeat(2, 1fr); }
    .mfo-list { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-cta { display: inline-flex; }

    .hero { padding: 64px 0 48px; }
    .hero-stats { gap: 24px; }

    .steps-grid,
    .reviews-grid { grid-template-columns: 1fr; }

    .stats-grid,
    .features-grid { grid-template-columns: 1fr; }

    .contact-grid { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 28px 20px; }

    .showcase-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .offer-card { text-align: center; }
    .offer-param-value { font-size: 12px; }
    .mfo-list { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }

    .vpn-notice-box { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .section { padding: 48px 0; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
}
