/* ============================================================
   ЯЩИК ПАНДОРЫ — Стили лендинга
   Тёмная тема, золотой акцент, Helvetica
============================================================ */

/* === ПЕРЕМЕННЫЕ === */
:root {
    --bg: #0a0a0a;
    --bg-light: #141414;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --accent: #d4af37;
    --accent-hover: #e5c158;
    --accent-dark: #b8952e;
    --text: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border: #2a2a2a;
    --border-accent: rgba(212, 175, 55, 0.3);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-accent: 0 4px 30px rgba(212, 175, 55, 0.2);
}

/* === СБРОС === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

/* === КОНТЕЙНЕР === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === КНОПКИ === */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--bg);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ============================================================
   HEADER
============================================================ */

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.logo-text {
    white-space: nowrap;
}

.nav {
    display: flex;
    gap: 24px;
    font-size: 15px;
}

.nav a {
    color: var(--text-secondary);
}

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

/* ============================================================
   HERO
============================================================ */

.hero {
    padding: 100px 0 80px;
    text-align: center;
    background: 
        radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.15) 0%, transparent 60%),
        var(--bg);
}

.hero-inner {
    max-width: 900px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-title .accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.5;
}

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

.hero-features {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 15px;
    color: var(--text-secondary);
}

/* ============================================================
   ОБЩИЕ СЕКЦИИ
============================================================ */

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

.section-title-left {
    text-align: left;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 48px;
}

section {
    padding: 80px 0;
}

/* ============================================================
   ПРЕИМУЩЕСТВА
============================================================ */

.benefits {
    background: var(--bg-light);
}

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

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

.benefit-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

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

.benefit-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.benefit-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================================
   КАК ЭТО РАБОТАЕТ
============================================================ */

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.how-step {
    text-align: center;
    padding: 24px;
}

.how-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg);
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-accent);
}

.how-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.how-text {
    font-size: 15px;
    color: var(--text-secondary);
}

/* ============================================================
   РОУТЕРЫ
============================================================ */

.routers {
    background: var(--bg-light);
}

.routers-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.routers-content {
    max-width: 500px;
}

.routers-description {
    font-size: 17px;
    color: var(--text-secondary);
    margin: 24px 0;
    line-height: 1.6;
}

.routers-features {
    margin: 24px 0;
}

.routers-features li {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text);
}

.routers-price {
    margin: 32px 0;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius);
    display: inline-block;
}

.price-value {
    font-size: 40px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.price-detail {
    font-size: 15px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.routers-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.routers-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

/* ============================================================
   ТАРИФЫ
============================================================ */

.tariffs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.tariff-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tariff-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.tariff-popular {
    border-color: var(--accent);
    box-shadow: var(--shadow-accent);
}

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

.tariff-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.tariff-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.tariff-period {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.tariff-save {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 24px;
    min-height: 20px;
}

.tariff-card .btn {
    margin-top: auto;
}

/* ============================================================
   FAQ
============================================================ */

.faq {
    background: var(--bg-light);
}

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

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

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

.faq-question {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.faq-answer {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-answer a {
    color: var(--accent);
    text-decoration: underline;
}

.faq-answer a:hover {
    color: var(--accent-hover);
}

/* ============================================================
   КОНТАКТЫ
============================================================ */

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-accent);
}

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

.contact-title {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.contact-value {
    font-size: 17px;
    font-weight: 600;
    color: var(--accent);
}

/* ============================================================
   FOOTER
============================================================ */

.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 40px 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--accent);
}

.footer-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

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

/* ============================================================
   АДАПТИВНОСТЬ
============================================================ */

@media (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tariffs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 17px;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 12px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .how-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .routers-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .routers-image {
        order: -1;
    }
    
    .benefits-grid,
    .tariffs-grid,
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    
    section {
        padding: 60px 0;
    }
    
    .routers-buttons {
        flex-direction: column;
    }
    
    .routers-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .price-value {
        font-size: 32px;
    }
    
    .tariff-price {
        font-size: 28px;
    }
}

/* ============================================================
   КОНТАКТЫ — компактные кнопки
============================================================ */

.contacts-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    transition: all 0.3s ease;
}

.contact-btn:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.contact-btn-icon {
    font-size: 22px;
    line-height: 1;
}

@media (max-width: 480px) {
    .contacts-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .contact-btn {
        justify-content: center;
    }
}
