/* ============================================
   style.css - Город Яровое
   Полная финальная версия
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a73e8;
    --primary-dark: #0d47a1;
    --secondary: #00838f;
    --accent: #f9a825;
    --lake: #00bcd4;
    --bg: #f0f4f8;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --radius: 16px;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    background: var(--bg);
    color: #1a2332;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
header {
    background: linear-gradient(135deg, #0d47a1 0%, #00838f 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255,255,255,0.15);
    padding: 3px;
    border: 2px solid rgba(255,255,255,0.2);
    transition: transform 0.3s;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 48px;
    background: rgba(255,255,255,0.15);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.slogan {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 1px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.datetime-widget {
    text-align: right;
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.clock {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    background: rgba(0,0,0,0.2);
    padding: 2px 10px;
    border-radius: 8px;
    display: inline-block;
}

.date {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 2px;
}

.admin-link {
    color: white;
    text-decoration: none;
    background: rgba(255,255,255,0.15);
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.admin-link:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.05);
}

/* ============================================
   SEARCH FORM
   ============================================ */
.search-form {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.15);
    border-radius: 25px;
    padding: 3px 3px 3px 15px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.search-form:focus-within {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.3);
}

.search-form input {
    background: transparent;
    border: none;
    padding: 8px 0;
    color: white;
    font-size: 14px;
    outline: none;
    min-width: 150px;
}

.search-form input::placeholder {
    color: rgba(255,255,255,0.6);
}

.search-form button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
    font-weight: 600;
    white-space: nowrap;
}

.search-form button:hover {
    background: rgba(255,255,255,0.35);
}

@media (max-width: 768px) {
    .search-form input {
        min-width: 100px;
        font-size: 13px;
    }
    .search-form {
        padding: 3px 3px 3px 10px;
    }
    .search-form button {
        padding: 4px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .search-form {
        width: 100%;
        justify-content: space-between;
    }
    .search-form input {
        flex: 1;
        min-width: 60px;
    }
}

/* ============================================
   HERO BANNER
   ============================================ */
.hero-banner {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: var(--radius);
    padding: 40px;
    margin: 20px 0 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.05), rgba(0, 131, 143, 0.05));
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 32px;
    color: #0d47a1;
    margin-bottom: 10px;
}

.hero-content h2 .highlight {
    color: #00838f;
}

.hero-content p {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #0d47a1;
    display: block;
}

.hero-stat-label {
    font-size: 13px;
    color: #666;
}

.hero-image {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.hero-placeholder {
    font-size: 120px;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 768px) {
    .hero-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    .hero-content h2 {
        font-size: 24px;
    }
    .hero-content p {
        font-size: 16px;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-placeholder {
        font-size: 80px;
    }
}

@media (max-width: 480px) {
    .hero-stat-number {
        font-size: 20px;
    }
}

/* ============================================
   STATUS BAR
   ============================================ */
.status-bar {
    padding: 12px 20px;
    border-radius: var(--radius);
    text-align: center;
    margin: 20px 0;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.status-bar.ok {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #1b5e20;
}

.status-bar.warning {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #e65100;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* ============================================
   NOTIFICATION BANNER
   ============================================ */
.notification-banner {
    background: #f8f9fa;
    padding: 12px 20px;
    border-radius: 12px;
    text-align: center;
    margin: 20px 0;
    border: 1px solid #e8e8e8;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-subscribe {
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
}

.btn-subscribe:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(26,115,232,0.4);
}

.btn-subscribed {
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
    background: linear-gradient(135deg, #f44336, #c62828);
}

.btn-subscribed:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(244,67,54,0.4);
}

.status-active {
    color: #1b5e20;
    font-weight: 600;
}

.status-inactive {
    color: #999;
    font-weight: 400;
}

/* ============================================
   INSTALL BANNER
   ============================================ */
.install-banner {
    background: linear-gradient(135deg, #00838f, #004d40);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    display: none;
}

.install-banner.show {
    display: flex;
}

.install-banner .install-btn {
    background: white;
    color: #0d47a1;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.install-banner .install-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

.install-banner .close-install {
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}

/* ============================================
   WEATHER
   ============================================ */
.weather-card {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: var(--radius);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 25px;
}

.weather-icon {
    font-size: 64px;
    flex-shrink: 0;
}

.weather-info {
    flex: 1;
}

.temp {
    font-size: 42px;
    font-weight: 700;
    color: #0d47a1;
}

.desc {
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.details {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .weather-card {
        flex-direction: column;
        text-align: center;
    }
    .temp {
        font-size: 32px;
    }
    .details {
        justify-content: center;
    }
}

/* ============================================
   SERVICES
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 15px;
}

.service-card {
    background: #f8f9fa;
    padding: 16px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    text-decoration: none;
    color: #333;
    border: 1px solid #e8e8e8;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.service-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.service-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #0d47a1;
    margin: 0;
}

.service-card p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* ============================================
   FORECAST (исправленный)
   ============================================ */
.forecast-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.forecast-day {
    background: #f8f9fa;
    padding: 12px 8px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #e8e8e8;
    min-width: 0;
}

.forecast-day:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.forecast-day.today {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 2px solid #1a73e8;
}

.forecast-day-name {
    font-weight: 700;
    font-size: 14px;
    color: #0d47a1;
    margin-bottom: 3px;
}

.forecast-day.today .forecast-day-name {
    color: #1a73e8;
}

.forecast-day-date {
    font-size: 11px;
    color: #888;
    margin-bottom: 5px;
}

.forecast-day-icon {
    font-size: 28px;
    margin: 4px 0;
}

.forecast-day-desc {
    font-size: 11px;
    color: #555;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.forecast-day-temp {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
}

.forecast-max {
    color: #f44336;
}

.forecast-min {
    color: #1a73e8;
}

/* Адаптив для планшетов */
@media (max-width: 992px) {
    .forecast-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
}

/* Адаптив для телефонов */
@media (max-width: 600px) {
    .forecast-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .forecast-day {
        padding: 10px 5px;
    }
    
    .forecast-day-icon {
        font-size: 24px;
    }
    
    .forecast-day-temp {
        font-size: 13px;
        gap: 5px;
    }
    
    .forecast-day-name {
        font-size: 12px;
    }
    
    .forecast-day-date {
        font-size: 10px;
    }
    
    .forecast-day-desc {
        font-size: 10px;
        white-space: normal;
    }
}

/* Адаптив для маленьких телефонов */
@media (max-width: 400px) {
    .forecast-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .forecast-day {
        padding: 8px 4px;
    }
    
    .forecast-day-icon {
        font-size: 20px;
    }
    
    .forecast-day-temp {
        font-size: 12px;
    }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    margin: 30px 0;
    box-shadow: var(--card-shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 10px;
}

.section-header h2 {
    font-size: 22px;
    color: #0d47a1;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-primary { background: #e3f2fd; color: #0d47a1; }
.badge-danger { background: #ffebee; color: #c62828; }
.badge-success { background: #e8f5e9; color: #1b5e20; }
.badge-info { background: #e0f7fa; color: #00838f; }

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.empty-hint {
    font-size: 14px;
    color: #999;
}

/* ============================================
   TARIFFS
   ============================================ */
.tariffs-block {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 18px;
    margin-top: 20px;
    border: 1px solid #e8e8e8;
}

.tariffs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.tariffs-header h3 {
    margin: 0;
    color: #0d47a1;
    font-size: 17px;
}

.tariffs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.tariff-item {
    background: white;
    padding: 10px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #e8e8e8;
    transition: transform 0.2s;
}

.tariff-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.tariff-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.tariff-name {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.tariff-value {
    font-size: 15px;
    font-weight: 700;
    color: #0d47a1;
}

/* ============================================
   OUTAGES
   ============================================ */
.outages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.outage-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    border-left: 5px solid #ccc;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    transition: transform 0.3s;
}

.outage-card:hover {
    transform: translateX(5px);
}

.outage-icon { font-size: 30px; flex-shrink: 0; }
.outage-info h3 { font-size: 16px; margin-bottom: 5px; }
.outage-type-desc { font-size: 13px; color: #666; margin: 2px 0; }
.outage-address { margin: 3px 0; font-size: 14px; }
.outage-time { margin: 3px 0; font-size: 13px; color: #666; }
.outage-desc { color: #555; font-style: italic; margin-top: 5px; }

/* ============================================
   NEWS
   ============================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.news-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.news-card img, .news-no-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.news-content { padding: 15px; }
.news-content h3 { font-size: 18px; margin-bottom: 10px; color: #0d47a1; }
.news-content p { font-size: 14px; color: #555; margin-bottom: 10px; }
.news-meta { font-size: 12px; color: #999; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 5px; }
.news-meta .read-more { color: #1a73e8; font-weight: 600; }
.news-meta .read-more:hover { text-decoration: underline; }

/* ============================================
   SCHEDULE PREVIEW
   ============================================ */
.schedule-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.schedule-preview-card {
    background: white;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e8e8e8;
    transition: transform 0.3s;
}

.schedule-preview-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.schedule-preview-card .preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.schedule-preview-card .preview-number {
    padding: 3px 14px;
    border-radius: 20px;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.schedule-preview-card .preview-name {
    font-weight: 600;
    color: #0d47a1;
}

.schedule-preview-card .preview-times {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.schedule-preview-card .preview-time {
    background: #f0f4f8;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 500;
    color: #0d47a1;
}

.schedule-preview-card .preview-more {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
}

.schedule-preview-card .preview-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
    font-size: 14px;
    color: #666;
}

/* ============================================
   TAXI
   ============================================ */
.taxi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.taxi-card {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s;
    border: 1px solid #e8e8e8;
}

.taxi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.taxi-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.taxi-card h3 {
    font-size: 16px;
    color: #0d47a1;
    margin-bottom: 5px;
}

.taxi-phone {
    font-size: 16px;
    font-weight: 600;
    margin: 5px 0;
}

.taxi-phone a {
    color: #1a73e8;
    text-decoration: none;
}

.taxi-phone a:hover {
    text-decoration: underline;
}

.taxi-desc {
    font-size: 13px;
    color: #666;
    margin: 3px 0;
}

/* ============================================
   POOL
   ============================================ */
.pool-section {
    background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
    border: 2px solid #00bcd4;
}

.pool-common {
    margin-bottom: 25px;
}

.pool-contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid #e8e8e8;
}

.pool-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.pool-contact-item a {
    color: #1a73e8;
    text-decoration: none;
}

.pool-contact-item a:hover {
    text-decoration: underline;
}

.pool-description {
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
}

.pool-description p {
    margin: 0;
}

.pool-baths {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.bath-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e8e8e8;
    transition: transform 0.3s;
}

.bath-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.bath-card.small-bath {
    border-top: 4px solid #4CAF50;
}

.bath-card.big-bath {
    border-top: 4px solid #2196F3;
}

.bath-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.bath-header h3 {
    margin: 0;
    color: #0d47a1;
    font-size: 18px;
}

.bath-status {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.status-free {
    background: #e8f5e9;
    color: #1b5e20;
}

.status-busy {
    background: #ffebee;
    color: #c62828;
    animation: pulse 2s infinite;
}

.bath-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.bath-stat {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bath-stat-icon {
    font-size: 20px;
}

.bath-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #0d47a1;
}

.bath-stat-label {
    font-size: 11px;
    color: #888;
}

.bath-schedule h4 {
    color: #0d47a1;
    margin-bottom: 10px;
    font-size: 15px;
}

.bath-schedule-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
}

.bath-schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.bath-schedule-table thead {
    background: #f0f4f8;
}

.bath-schedule-table thead th {
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    color: #0d47a1;
}

.bath-schedule-table tbody td {
    padding: 7px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.bath-schedule-table tbody tr:hover td {
    background: #f8f9fa;
}

.bath-schedule-table .bath-day {
    font-weight: 600;
    color: #0d47a1;
    white-space: nowrap;
}

.bath-schedule-table .bath-time {
    color: #00838f;
    white-space: nowrap;
    font-weight: 500;
}

.bath-schedule-table .bath-activity {
    color: #333;
}

/* ============================================
   MASTERS
   ============================================ */
.masters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.master-card {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s;
    border: 1px solid #e8e8e8;
    border-left: 4px solid #e91e63;
}

.master-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.master-card .master-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.master-card h3 {
    font-size: 16px;
    color: #0d47a1;
    margin-bottom: 5px;
}

.master-card .master-phone {
    font-size: 15px;
    font-weight: 600;
    margin: 3px 0;
}

.master-card .master-phone a {
    color: #1a73e8;
    text-decoration: none;
}

.master-card .master-phone a:hover {
    text-decoration: underline;
}

.master-card .master-service {
    font-size: 14px;
    color: #666;
    margin: 3px 0;
}

/* ============================================
   EDUCATION
   ============================================ */
.education-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.edu-block {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 18px;
    border: 1px solid #e8e8e8;
}

.edu-block h3 {
    color: #0d47a1;
    margin-bottom: 12px;
    font-size: 17px;
    border-bottom: 2px solid #e8e8e8;
    padding-bottom: 8px;
}

.edu-card {
    display: flex;
    gap: 12px;
    background: white;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: transform 0.3s;
    border: 1px solid #e8e8e8;
}

.edu-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.edu-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.edu-card h4 {
    font-size: 15px;
    color: #0d47a1;
    margin-bottom: 3px;
}

.edu-card .edu-address,
.edu-card .edu-phone,
.edu-card .edu-director,
.edu-card .edu-capacity {
    font-size: 13px;
    color: #666;
    margin: 2px 0;
}

.edu-card .edu-phone a {
    color: #1a73e8;
    text-decoration: none;
}

.edu-card .edu-phone a:hover {
    text-decoration: underline;
}

.edu-card .edu-website a {
    color: #1a73e8;
    text-decoration: none;
    font-size: 13px;
}

.edu-card .edu-website a:hover {
    text-decoration: underline;
}

/* ============================================
   CONTACTS
   ============================================ */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.contact-card {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 12px;
    transition: transform 0.3s;
    border: 1px solid #e8e8e8;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.contact-card h3 {
    font-size: 16px;
    color: #0d47a1;
    margin-bottom: 10px;
}

.contact-card .phone-list {
    margin: 5px 0;
}

.contact-card .phone {
    font-size: 16px;
    font-weight: 600;
    margin: 3px 0;
}

.contact-card .phone a {
    color: #1a73e8;
    text-decoration: none;
    display: inline-block;
    padding: 2px 0;
}

.contact-card .phone a:hover {
    text-decoration: underline;
}

.contact-card .address,
.contact-card .hours {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: linear-gradient(135deg, #0d47a1 0%, #00838f 100%);
    color: white;
    padding: 30px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-left h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.footer-left p {
    opacity: 0.8;
    font-size: 14px;
    margin: 3px 0;
}

.footer-copy {
    font-size: 12px;
    opacity: 0.6;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-info p {
    opacity: 0.8;
    font-size: 14px;
    margin: 3px 0;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .education-grid {
        grid-template-columns: 1fr;
    }
    .pool-baths {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .logo-text h1 { font-size: 20px; }
    .logo-img { width: 45px; height: 45px; }
    .logo-icon { font-size: 36px; width: 50px; height: 50px; }
    .clock { font-size: 18px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: 1fr; }
    .outages-grid { grid-template-columns: 1fr; }
    .contacts-grid { grid-template-columns: 1fr; }
    .schedule-preview-grid { grid-template-columns: 1fr; }
    .taxi-grid { grid-template-columns: 1fr; }
    .masters-grid { grid-template-columns: 1fr; }
    .tariffs-grid { grid-template-columns: 1fr 1fr; }
    .bath-stats { grid-template-columns: 1fr 1fr; }
    .bath-schedule-table { font-size: 12px; }
    .bath-schedule-table thead th,
    .bath-schedule-table tbody td { padding: 6px 8px; }
    .pool-contacts { grid-template-columns: 1fr; }
    .notification-banner { flex-direction: column; }
    .install-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
    .tariffs-grid { grid-template-columns: 1fr; }
    .tariffs-header { flex-direction: column; align-items: flex-start; }
    .education-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .services-grid { grid-template-columns: 1fr; }
    .header-right { width: 100%; justify-content: space-between; }
    .datetime-widget { width: 100%; text-align: center; }
    .temp { font-size: 28px; }
    .details { justify-content: center; }
    .schedule-preview-card .preview-header { flex-wrap: wrap; }
    .contact-card .phone { font-size: 15px; }
    .master-card { flex-direction: column; text-align: center; }
    .bath-stats { grid-template-columns: 1fr; }
    .edu-card { flex-direction: column; text-align: center; }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
    .admin-link, .services-grid, .weather-card, 
    .empty-state .empty-hint, .search-form,
    .notification-banner, .install-banner,
    .hero-banner {
        display: none !important;
    }
    .status-bar {
        background: #f0f0f0 !important;
        color: #333 !important;
        border: 1px solid #ddd;
    }
    .section {
        box-shadow: none !important;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    body { background: white !important; }
    .pool-section { border: 1px solid #ddd; }
}

/* ============================================
   MODAL WINDOW
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}
.modal-overlay.active { display: flex; }
.modal-content {
    background: white;
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    border-radius: 16px;
    padding: 30px;
    position: relative;
    overflow-y: auto;
    animation: slideUp 0.3s;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-content .close-modal {
    position: sticky;
    top: 0;
    float: right;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    background: white;
    padding: 0 10px;
    z-index: 10;
    border: none;
    transition: color 0.3s;
}
.modal-content .close-modal:hover { color: #f44336; }
.modal-content .modal-title {
    font-size: 28px;
    color: #0d47a1;
    margin: 0 0 15px 0;
    padding-right: 40px;
}
.modal-content .modal-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin: 10px 0 20px 0;
}
.modal-content .modal-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    white-space: pre-wrap;
}
.modal-content .modal-date {
    color: #999;
    font-size: 14px;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@media (max-width: 600px) {
    .modal-content { padding: 20px; max-height: 95vh; }
    .modal-content .modal-title { font-size: 20px; }
    .modal-content .modal-text { font-size: 15px; }
}