/* ==========================================================================
   Melord TV — Официальный стиль лендинга (Dark & Light Glassmorphic Theme)
   ========================================================================== */

/* 1. Базовые стили и сброс
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #dbe7f3;
    color: #1e293b;
    line-height: 1.7;
    overflow-x: hidden;
}

/* 2. Шапка сайта (Header & Centered Navigation)
   ========================================================================== */
header {
    background-color: #182232;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.header-content {
    max-width: 1300px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: nowrap;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: #38bdf8;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 15px;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #f1f5f9;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 6px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: #38bdf8;
    background-color: rgba(255, 255, 255, 0.08);
}

.burger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #38bdf8;
}

/* 3. Основной контейнер и секции
   ========================================================================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.section-block {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.section-title {
    font-size: 26px;
    color: #0f172a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.section-title i {
    color: #0284c7;
}

.section-block p {
    font-size: 16px;
    text-align: justify;
    color: #334155;
    margin-bottom: 15px;
}

.section-block p:last-child {
    margin-bottom: 0;
}

/* 4. Кнопки действий
   ========================================================================== */
.buttons-group {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.buttons-group.center {
    justify-content: center;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
    transition: all 0.3s ease;
    text-align: center;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4);
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
}

.action-btn-alt {
    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

.action-btn-alt:hover {
    background: linear-gradient(135deg, #115e59 0%, #134e4a 100%);
    box-shadow: 0 6px 18px rgba(15, 118, 110, 0.4);
}

/* 5. Пошаговые сетки (Шаги 1-4)
   ========================================================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.step-card {
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 20px;
}

.step-num {
    display: inline-block;
    background-color: #0284c7;
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.step-card p {
    font-size: 15px;
    margin-bottom: 0;
}

/* 6. Таблица устройств
   ========================================================================== */
.devices-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 15px;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
}

.devices-table th, .devices-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.devices-table th {
    background-color: #f1f5f9;
    font-weight: 700;
    color: #0f172a;
}

.devices-table tr:last-child td {
    border-bottom: none;
}

/* 7. Тариф и Оплата
   ========================================================================== */
.price-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px dashed #0284c7;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin-top: 20px;
}

.price-title {
    font-size: 20px;
    font-weight: 700;
    color: #0369a1;
}

.price-value {
    font-size: 48px;
    font-weight: 900;
    color: #0284c7;
    margin: 10px 0;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.pay-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1e293b;
}

.pay-card i {
    color: #0284c7;
    font-size: 20px;
}

/* 8. Под-блоки ТВ Приставок
   ========================================================================== */
.box-sub-block {
    background-color: #f8fafc;
    border-left: 4px solid #0284c7;
    padding: 18px 20px;
    margin-top: 20px;
    border-radius: 0 10px 10px 0;
}

.box-sub-block h3 {
    font-size: 18px;
    color: #0f172a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.box-sub-block h3 i {
    color: #0284c7;
}

.margin-top {
    margin-top: 30px;
}

/* 9. Подвал (Footer)
   ========================================================================== */
footer {
    background-color: #182232;
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
    margin-top: 40px;
}

footer h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.soc-btn {
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.soc-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.vk { background-color: #0077ff; }
.tg { background-color: #229ed9; }
.ok { background-color: #f2720c; }

.copyright {
    margin-top: 30px;
    font-size: 14px;
    color: #94a3b8;
    text-align: center;
}

/* 10. Мобильная адаптивность (Бургер-меню)
   ========================================================================== */
@media (max-width: 1024px) {
    .header-content {
        justify-content: space-between;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #182232;
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
        gap: 12px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        justify-content: center;
    }

    .burger {
        display: block;
    }

    .section-block p {
        text-align: left;
    }
}
