/* ===== Базовый сброс и шрифты ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --accent: #0066ff;        /* Благородный синий Apple/iOS */
    --accent-light: #e6f0ff;  /* Нежно-синий для неактивных элементов */
    --green: #10b981;
    --bg-card: rgba(255, 255, 255, 0.85); /* Плотное белое стекло */
    --text-main: #0f172a;     /* Глубокий графитовый */
    --text-muted: #64748b;    /* Спокойный серый */
    --border-glass: rgba(15, 23, 42, 0.06); /* Едва заметная благородная граница */
    --shadow-sm: 0 4px 12px rgba(148, 163, 184, 0.05);
    --shadow-md: 0 12px 30px rgba(148, 163, 184, 0.08);
    --shadow-lg: 0 20px 40px rgba(148, 163, 184, 0.12);
}

html { scroll-behavior: smooth; }

body {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Inter', -apple-system, 'SF Pro Display', system-ui, sans-serif;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ===== Тонкая светлая сетка ===== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 102, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.01) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
    pointer-events: none;
    z-index: 0;
}

/* ===== Мягкие студийные блики света ===== */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    animation: floatOrb 20s infinite alternate ease-in-out;
    will-change: transform;
    opacity: 0.6;
}
@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(4%, 5%) scale(1.1); }
}

/* ===== Премиальная Жидкая Кнопка (Белый глянец) ===== */
.liquid-button {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border-radius: 60px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-sm), inset 0 1.5px 0 rgba(255, 255, 255, 1);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    letter-spacing: -0.1px;
    color: var(--text-main);
    text-decoration: none;
    padding: 12px 28px;
    font-size: 15px;
}
.liquid-button:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: var(--shadow-md), inset 0 1.5px 0 rgba(255, 255, 255, 1);
}
.liquid-button:active { transform: translateY(0) scale(0.98); }

/* Вторичная кнопка */
.liquid-button.secondary {
    background: rgba(148, 163, 184, 0.06);
    border: 1px solid transparent;
    box-shadow: none;
    color: var(--text-muted);
}
.liquid-button.secondary:hover {
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-main);
}

/* Акцентная синяя кнопка (Основное действие) ===== */
.btn-free {
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%) !important;
    border: 1px solid rgba(0, 102, 255, 0.2) !important;
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.15), inset 0 1px 0 rgba(255,255,255,0.2) !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}
.btn-free:hover {
    background: linear-gradient(135deg, #1a75ff 0%, #0056cc 100%) !important;
    box-shadow: 0 12px 32px rgba(0, 102, 255, 0.25), inset 0 1px 0 rgba(255,255,255,0.3) !important;
}

.btn-hero-cta { padding: 18px 38px !important; font-size: 16px !important; }
.btn-hero-cta .arrow { display: inline-block; transition: transform 0.2s ease; }
.btn-hero-cta:hover .arrow { transform: translateX(4px); }

/* ===== Белоснежная Шапка (Header) ===== */
.glass-header {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
    padding: 10px 24px; background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: 60px; border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-sm); margin-bottom: 32px; position: sticky; top: 16px; z-index: 100;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo {
    width: 44px; height: 44px; background: var(--text-main);
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 20px; color: #fff;
}
.brand div strong { font-size: 18px; font-weight: 800; color: var(--text-main); letter-spacing: -0.3px; }
.brand div small { color: var(--text-muted); font-size: 12px; font-weight: 500; }

nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
nav a {
    padding: 8px 16px; border-radius: 60px; font-weight: 500; font-size: 14px; transition: all 0.2s;
    color: var(--text-muted); text-decoration: none; cursor: pointer;
}
nav a:hover, nav a.active { background: rgba(15, 23, 42, 0.04); color: var(--text-main); }

.wrap { max-width: 1140px; margin: 0 auto; padding: 20px 20px 60px; position: relative; z-index: 10; }

/* ===== HERO Секция ===== */
.hero { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; margin: 40px 0 60px; }
@media (max-width: 980px) { .hero { grid-template-columns: 1fr; text-align: center; } .cta { justify-content: center; } .cta-perks { justify-content: center; } .badges { justify-content: center; } }

.ai-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; background: var(--accent-light);
    border-radius: 60px; font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 20px;
}
h1 {
    font-size: 54px; font-weight: 900; line-height: 1.1; margin: 0 0 20px;
    color: var(--text-main); letter-spacing: -1.5px;
}
@media (max-width: 600px) { h1 { font-size: 36px; } }
p.lead { font-size: 18px; color: var(--text-muted); margin: 0 0 32px; line-height: 1.6; }

.badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0; }
.badge { font-size: 12px; font-weight: 600; background: #ffffff; color: var(--text-main); padding: 6px 14px; border-radius: 60px; border: 1px solid var(--border-glass); box-shadow: var(--shadow-sm); }

.cta-perks { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px; font-size: 13px; color: var(--text-muted); font-weight: 500; }
.cta-perks .check { color: var(--green); font-weight: 800; }

/* Керамический 3D Сервер (White Edition) */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 400px; }
.server-3d { width: 100%; max-width: 340px; aspect-ratio: 1 / 1.05; position: relative; perspective: 1000px; }
.server-box { position: absolute; inset: 0; transform-style: preserve-3d; animation: serverFloat 6s ease-in-out infinite; }
@keyframes serverFloat { 0%, 100% { transform: rotateY(-8deg) rotateX(4deg) translateY(0); } 50% { transform: rotateY(-4deg) rotateX(2deg) translateY(-12px); } }
.server-face {
    position: absolute; inset: 0; border-radius: 28px; background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06); box-shadow: var(--shadow-lg), inset 0 2px 0 rgba(255, 255, 255, 1);
    padding: 24px; display: flex; flex-direction: column; justify-content: space-between;
}
.server-head { display: flex; align-items: center; justify-content: space-between; }
.server-dots { display: flex; gap: 6px; }
.server-dots span { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.server-dots span:first-child { background: #fee2e2; border: 1px solid #ef4444; } 
.server-status { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-muted); font-weight: 700; letter-spacing: 0.5px; }
.server-status .live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

.server-body { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; }
.server-lock-circle {
    width: 80px; height: 80px; border-radius: 50%; background: #f8fafc; border: 1px solid var(--border-glass);
    display: flex; align-items: center; justify-content: center; font-size: 36px;
}
.server-name { font-size: 22px; font-weight: 800; color: var(--text-main); letter-spacing: -0.5px; }
.server-sub { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.server-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.server-meta div { background: #f8fafc; border: 1px solid rgba(0,0,0,0.03); border-radius: 12px; padding: 10px; text-align: center; }
.server-meta strong { display: block; font-size: 14px; color: var(--text-main); font-weight: 700; }
.server-meta small { font-size: 10px; color: var(--text-muted); text-transform: uppercase; font-weight: 500; }

/* ===== СЕКЦИИ ===== */
.section-title { font-size: 38px; font-weight: 800; letter-spacing: -1px; margin-bottom: 12px; color: var(--text-main); text-align: center; }
.section-subtitle { font-size: 16px; color: var(--text-muted); margin-bottom: 40px; text-align: center; max-width: 540px; margin-left: auto; margin-right: auto; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0 64px; }
.feature { background: var(--bg-card); border-radius: 24px; border: 1px solid var(--border-glass); padding: 32px; transition: all 0.3s ease; box-shadow: var(--shadow-sm); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(0, 0, 0, 0.1); }
.feature-icon { width: 52px; height: 52px; border-radius: 16px; background: #f1f5f9; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; }
.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text-main); }
.feature p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
@media (max-width: 980px) { .features { grid-template-columns: 1fr; } }

/* ===== ТАРИФЫ (Porcelain White Cards) ===== */
.pricing-section { margin: 64px 0; text-align: center; }
.pricing-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 40px; }
.price-card-glass {
    background: #ffffff;
    border: 1px solid var(--border-glass); border-radius: 28px;
    padding: 40px 28px; width: 340px; box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column; text-align: left; position: relative;
}
.price-card-glass:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(0, 0, 0, 0.1); }
.price-card-glass.popular {
    border: 2px solid var(--accent); box-shadow: var(--shadow-md); transform: scale(1.03); z-index: 2;
}
.price-card-glass.popular:hover { transform: scale(1.03) translateY(-6px); box-shadow: var(--shadow-lg); }

.price-card-glass .badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--text-main); color: white; border: none;
    padding: 6px 16px; border-radius: 60px; font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
}
.price-card-glass .card-title { font-size: 20px; font-weight: 700; color: var(--text-main); }
.price-card-glass .price { font-size: 44px; font-weight: 800; margin: 12px 0 24px; color: var(--text-main); letter-spacing: -1px; }
.price-card-glass .price span { font-size: 15px; font-weight: 500; color: var(--text-muted); }

.features-list { list-style: none; padding: 0; margin: 0 0 32px 0; flex-grow: 1; }
.features-list li { margin-bottom: 12px; font-size: 14px; font-weight: 500; color: var(--text-muted); display: flex; align-items: center; gap: 10px; }
.features-list li::before { content: '✓'; color: var(--accent); font-weight: 900; }
.glass-btn { width: 100%; text-align: center; justify-content: center; padding: 14px; font-size: 15px; border-radius: 16px; }

@media (max-width: 980px) { .pricing-cards { flex-direction: column; align-items: center; } .price-card-glass { width: 100%; max-width: 380px; } .price-card-glass.popular { transform: none; } .price-card-glass.popular:hover { transform: translateY(-4px); } }

/* ===== FAQ & СТА ===== */
details { background: #ffffff; border-radius: 16px; border: 1px solid var(--border-glass); padding: 18px 24px; margin-bottom: 12px; transition: 0.2s; box-shadow: var(--shadow-sm); }
details:hover { border-color: rgba(0,0,0,0.1); }
summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--text-main); }
summary::-webkit-details-marker { display: none; }
summary::after { content: '→'; font-size: 18px; color: var(--text-muted); transition: transform 0.2s ease; }
details[open] summary::after { transform: rotate(90deg); color: var(--accent); }
details[open] { border-color: rgba(0, 102, 255, 0.2); }
details > div { margin-top: 12px; color: var(--text-muted); line-height: 1.6; font-size: 14px; }

.final-cta { background: #ffffff; border: 1px solid var(--border-glass); border-radius: 32px; padding: 56px 24px; text-align: center; margin: 64px 0; box-shadow: var(--shadow-md); }
.cta-glass { background: #ffffff; padding: 40px 24px; text-align: center; margin: 32px 0; border-radius: 32px; border: 1px solid var(--border-glass); box-shadow: var(--shadow-md); }
footer { margin: 48px 0 24px; padding-top: 24px; border-top: 1px solid rgba(0, 0, 0, 0.05); color: var(--text-muted); font-size: 13px; text-align: center; }

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.15); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    z-index: 1000; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.25s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
    background: #ffffff; border: 1px solid rgba(0,0,0,0.08); border-radius: 28px;
    padding: 40px 32px; max-width: 420px; width: 90%; text-align: center;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
    transform: translateY(20px) scale(0.98); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }
.modal-close {
    position: absolute; top: 16px; right: 16px;
    background: #f1f5f9; border: none; color: var(--text-main);
    width: 32px; height: 32px; border-radius: 50%; font-size: 14px;
    cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s;
}
.modal-close:hover { background: #e2e8f0; }
.modal-icon { font-size: 48px; margin-bottom: 16px; }
.modal-title { font-size: 24px; font-weight: 800; margin-bottom: 8px; color: var(--text-main); }
.modal-text { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.5; }

/* Эффект плавной загрузки */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.feature, .price-card-glass, details { animation: fadeUp 0.5s ease forwards; }