:root {
    --accent: #6366f1;
    --dark-bg: #0a0a0c;
    --glass: rgba(255, 255, 255, 0.03);
}

body {
    margin: 0;
    background: var(--dark-bg);
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Растягиваем Hero на весь экран */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    position: absolute;
    inset: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Картинка всегда во весь экран без искажений */
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, var(--dark-bg));
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 10;
}

.hero-content h1 {
    font-size: clamp(40px, 10vw, 80px);
    font-weight: 800;
    line-height: 0.9;
    margin-bottom: 20px;
}

.hero-content h1 span { color: var(--accent); }

/* Карточки с картинками из статика */
.benefits-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.benefit-card {
    background: var(--glass);
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.card-img {
    height: 300px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-text { padding: 30px; }

/* Форма в стиле Glassmorphism */
.form-wrapper {
    padding: 100px 20px;
    display: flex;
    justify-content: center;
}

.glass-form {
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(20px);
    padding: 60px;
    border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    max-width: 500px;
}

.glass-form input {
    width: 100%;
    padding: 20px;
    margin-bottom: 15px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    color: white;
    box-sizing: border-box;
}

.submit-btn {
    width: 100%;
    padding: 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 15px;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
}

/* Адаптив для телефонов */
@media (max-width: 768px) {
    .benefits-container { grid-template-columns: 1fr; }
    .hero-section { height: 80vh; }
}

/* Сетка тарифов */
.pricing-section {
    padding: 100px 20px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.section-title { font-size: 40px; margin-bottom: 50px; }

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

.price-card {
    background: rgba(255,255,255,0.03);
    padding: 40px;
    border-radius: 35px;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    transition: 0.3s;
}

.price-card.popular {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.05);
    transform: scale(1.05);
}

.price-card .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.price-header h3 { font-size: 24px; margin-bottom: 10px; }
.amount { font-size: 32px; font-weight: 800; margin-bottom: 30px; color: var(--accent); }

.price-features {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 40px;
}

.price-features li { margin-bottom: 15px; opacity: 0.9; }
.price-features li.disabled { opacity: 0.3; text-decoration: line-through; }

/* FAQ через нативные детали */
.faq-section { padding: 50px 20px; max-width: 800px; margin: 0 auto; }

.faq-item {
    background: rgba(255,255,255,0.02);
    margin-bottom: 10px;
    border-radius: 15px;
    overflow: hidden;
}

summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
}

summary::after { content: "+"; color: var(--accent); }

.faq-item[open] summary::after { content: "−"; }

.faq-item p { padding: 0 20px 20px; opacity: 0.7; line-height: 1.6; }

/* Плавающая кнопка */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #22c55e;
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
    z-index: 1000;
    transition: 0.3s;
}

.floating-contact:hover { transform: scale(1.05); }

@media (max-width: 768px) {
    .price-card.popular { transform: none; margin-top: 20px; }
    .floating-contact .text { display: none; } /* На мобилках только иконка */
    .floating-contact { padding: 15px; border-radius: 50%; }
}

/* Главный контейнер на всю высоту и ширину экрана */
.hero-fullscreen {
    position: relative;
    width: 100%;
    height: 100vh; /* 100% высоты вьюпорта */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000; /* Цвет фона, пока грузится фото */
}

/* Обертка для фото, чтобы оно не "вываливалось" */
.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* МАГИЯ ТУТ: подгонка изображения */
.hero-fit-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Сохраняет пропорции, заполняя весь блок */
    object-position: center; /* Всегда показывает центр картинки */
    display: block;
}

/* Продвинутый градиент, чтобы текст всегда читался */
.hero-overlay-v2 {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 60%, rgba(11, 15, 26, 1) 100%);
    z-index: 2;
}

/* Контент поверх всего */
.hero-content-centered {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 20px;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 5px 15px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.btn-primary-large {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 20px 45px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
}

.btn-primary-large:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(99, 102, 241, 0.6);
}

/* Фикс для мобилок (чтобы на маленьком экране было удобнее) */
@media (max-width: 768px) {
    .hero-fullscreen {
        height: 85vh; /* На мобилках лучше чуть меньше, чтобы сразу видеть контент внизу */
    }
}
