/* ==========================================================================
   1. ОБЩИЕ СТИЛИ И СБРОС ОТСТУПОВ
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #1e293b;
    line-height: 1.5;
}

/* ==========================================================================
   2. ШАПКА САЙТА (HEADER)
   ========================================================================== */
.header {
    background: #0a1931; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.logo {
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
}

.logo span {
    color: #0088cc; 
}

.nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav a:hover, .nav a.active {
    color: #ffffff;
}

.nav a small {
    background: #ff9900;
    color: #0a1931;
    font-size: 9px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-left: -2px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.header-actions button {
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-region {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.btn-region:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-login {
    background: #0088cc;
    border: 1px solid #0088cc;
    color: #ffffff;
}

.btn-login:hover {
    background: #0077b3;
    box-shadow: 0 0 15px rgba(0, 136, 204, 0.4);
}

/* ==========================================================================
   3. ГЛАВНЫЙ БАННЕР И ФОРМЫ ПОИСКА
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, #0a1931 0%, #15305b 50%, #0a1931 100%);
    padding: 90px 20px 120px 20px;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(0, 136, 204, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 18px;
    color: #94a3b8;
    max-width: 680px;
    margin: 0 auto 40px auto;
}

.search-form {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    align-items: flex-end;
}

.input-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
    min-width: 180px;
}

.input-group label {
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #0f172a;

outline: none;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.input-group input:focus {
    border-color: #0088cc;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 136, 204, 0.1);
}

.btn-search {
    background: #ff9900; 
    color: #ffffff;
    border: none;
    padding: 15px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 50px;
}

.btn-search:hover {
    background: #e68a00;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
}

.subsidy-filter {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #cbd5e1;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #0088cc;
}

/* ==========================================================================
   4. СЕКЦИИ SPA И ТАБЫ
   ========================================================================== */
.page-section {
    display: none;
}

.page-section.active {
    display: block;
}

.bg-hotels {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
}

.bg-sea {
    background: linear-gradient(135deg, #0f766e 0%, #06b6d4 100%) !important;
}

/* ==========================================================================
   5. ИНТЕРАКТИВНОЕ ДАШБОРД-ТАБЛО
   ========================================================================== */
.dashboard {
    max-width: 1200px;
    margin: -40px auto 60px auto; 
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.dashboard h2 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff; 
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 900px) {
    .dashboard h2 { color: #0a1931; }
}

.filter-badge {
    background: #ff9900;
    color: #0a1931;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    margin-left: 10px;
    font-weight: bold;
}

.update-time {
    font-size: 12px;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.table-container {
    background: #ffffff;
    border-radius: 16px;
    overflow-x: auto; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.flights-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 850px;
}

.flights-table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    padding: 18px 24px;
}

.flights-table td {
    padding: 16px 24px;
    border-bottom: 1px solid #edf2f7;
    font-size: 14px;
}

.flights-table tr:hover td {
    background-color: #f8fafc;
}

.plane-icon { color: #0088cc; }
.ship-icon { color: #06b6d4; }

.status {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}
.status-ok { background: #e8f5e9; color: #2e7d32; }
.status-next { background: #f1f5f9; color: #475569; border: 1px dashed #cbd5e1; }

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}
.badge-yes { background: #e0f2fe; color: #0369a1; }
.badge-no { color: #94a3b8; }

.price {
    font-weight: 700;
    color: #0f172a;
}

.tg-link {
    color: #0088cc;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(0, 136, 204, 0.05);
    transition: all 0.2s ease;
}

.tg-link:hover {
    background: #0088cc;
    color: #ffffff;
}

/* ==========================================================================
   6. СЕКЦИЯ МЕДИАСЕТИ (TELEGRAM)
========================================================================== */
.media-network {
    max-width: 1200px;
    margin: 40px auto 80px auto;
    padding: 0 20px;
}

.media-info {
    text-align: center;
    margin-bottom: 35px;
}

.media-info h2 {
    font-size: 24px;
    color: #0a1931;
    font-weight: 700;
}

.media-info p { color: #64748b; }

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.media-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.media-card:hover {
    transform: translateY(-4px);
    border-color: #0088cc;
}

.media-card h3 { color: #0a1931; }
.media-card p { color: #64748b; font-size: 14px; margin: 10px 0 20px 0; }

.btn-sub {
    display: block;
    text-align: center;
    background: #f0f7ff;
    color: #0088cc;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
}

.media-card:hover .btn-sub {
    background: #0088cc;
    color: #ffffff;
}

/* ==========================================================================
   7. МОДАЛЬНОЕ ОКНО И ФУТЕР
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 25, 49, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    position: relative;
    text-align: center;
}

.modal-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    margin-bottom: 12px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
}
footer{
    background: #0f172a;
    color: #64748b;
    padding: 40px 20px;
    text-align: center;
    font-size: 13px;
}