:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-bg: #f8f9fa;
    --dark-text: #2c3e50;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
}

.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

/* Стили для таблицы тарифов */
.tariff-table-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.tariff-table-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2980b9 100%);
    color: white;
    padding: 25px;
    text-align: center;
}

.tariff-table-header h4 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.community-link {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
}

.community-link:hover {
    color: white;
    text-decoration: underline;
}

.tariff-table {
    width: 100%;
    border-collapse: collapse;
}

.tariff-table th {
    background: var(--light-bg);
    padding: 15px;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.tariff-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.time-slot-header {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.price-cell {
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-color);
}

.discount-price {
    color: var(--accent-color);
    font-weight: bold;
}

.tariff-table-footer {
    padding: 20px;
    text-align: center;
    background: var(--light-bg);
    border-top: 1px solid #dee2e6;
}

.btn-book {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    color: white;
}

.section-title {
    position: relative;
    margin-bottom: 40px;
    text-align: center;
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 15px auto;
}

.stat-card {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.contact-info {
    background: var(--light-bg);
    border-radius: 15px;
    padding: 30px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
}

footer {
    background: var(--primary-color);
    color: white;
    padding: 40px 0;
}

.footer-links a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Стили для Cookie уведомления */
.cookie-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 2px solid var(--secondary-color);
    z-index: 9999;
    animation: slideUp 0.5s ease-out;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    gap: 20px;
}

.cookie-text {
    flex: 1;
}

.cookie-text h6 {
    color: white;
    margin-bottom: 8px;
    font-weight: 600;
}

.cookie-text p {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0;
}

.cookie-text a {
    color: var(--secondary-color);
    font-weight: 500;
}

.cookie-text a:hover {
    color: white;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Адаптивность для таблицы */
@media (max-width: 768px) {
    .tariff-table-container {
        margin-bottom: 20px;
    }
    
    .tariff-table {
        font-size: 0.8rem;
    }
    
    .tariff-table th,
    .tariff-table td {
        padding: 10px 8px;
    }
    
    .price-cell {
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .btn-book {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    /* Адаптивность для cookie уведомления */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-buttons .btn {
        min-width: 120px;
    }
    
    /* Адаптивность для футера */
    footer .text-end {
        text-align: left !important;
        margin-top: 20px;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-links a {
        margin-right: 0 !important;
    }
}

@media (max-width: 576px) {
    .tariff-table {
        font-size: 0.8rem;
    }
    
    .tariff-table th,
    .tariff-table td {
        padding: 8px 5px;
    }
    
    .tariff-table-header h4 {
        font-size: 1.2rem;
    }
    
    /* Адаптивность для cookie уведомления */
    .cookie-notification {
        bottom: 10px;
        width: 95%;
    }
    
    .cookie-content {
        padding: 15px;
    }
}

/* Стили для загрузки */
.tariff-loading {
    text-align: center;
    padding: 40px;
}

.tariff-error {
    text-align: center;
    padding: 40px;
    color: var(--accent-color);
}

/* Стили для пустых ячеек */
.empty-price {
    color: #6c757d;
    font-style: italic;
    font-size: 0.9rem;
}

/* Ховер эффекты для строк */
.tariff-table tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

/* Стили для заголовков объемов */
.volume-header {
    background: var(--light-bg) !important;
    color: var(--dark-text);
    font-weight: 600;
}