/* ============================
   БАЗОВЫЕ СТИЛИ
============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

/* ============================
   ГЛАВНАЯ СТРАНИЦА (index.php)
============================ */
.energy-schedule {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
}

.schedule-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 10px 15px 15px 15px;
    text-align: center;
    position: relative;
}

/* Навигационное меню внутри header */
.header-nav {
    margin-bottom: 10px;
    width: 100%;
}

.nav-container {
    width: 100%;
}

/* СТИЛИ ДЛЯ ПК (с иконками и растянуто на всю ширину) */
.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.nav-item {
    flex: 1;
    text-align: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 3px;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s;
    display: block;
    font-size: 13px;
    white-space: nowrap;
    margin: 0 1px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Иконки для ПК версии */
.nav-link::before {
    content: '';
    display: inline-block;
    margin-right: 6px;
    font-size: 14px;
    flex-shrink: 0;
}

.nav-link[href="/"]::before {
    content: '🏠'; /* Иконка для главной */
}

.nav-link[href="/faq.php"]::before {
    content: 'ℹ️'; /* Иконка для FAQ */
}

.nav-link[href="/about.php"]::before {
    content: '❓'; /* Иконка для О проекте */
}

.nav-link[href="/contact.php"]::before {
    content: '📞'; /* Иконка для контактов */
}

.nav-link[href="/privacy.php"]::before {
    content: '🔒'; /* Иконка для политики */
}

.nav-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.nav-link.active {
    background: rgba(255,255,255,0.3);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.schedule-header h1 {
    margin: 5px 0 8px 0;
    font-size: 24px;
    font-weight: 700;
}

.schedule-header .subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.schedule-header .date-info {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
    flex-direction: column;
    align-items: center;
}

.schedule-date {
    font-size: 16px;
    font-weight: bold;
    background: rgba(255,255,255,0.2);
    padding: 6px 15px;
    border-radius: 8px;
    margin-bottom: 3px;
}

/* Анимации для текущего часа */
@keyframes brightPulse {
    0% { 
        box-shadow: 
            0 0 0 4px rgba(255, 235, 59, 0.6),
            0 0 30px rgba(255, 235, 59, 0.9);
    }
    50% { 
        box-shadow: 
            0 0 0 6px rgba(255, 235, 59, 0.8),
            0 0 40px rgba(255, 235, 59, 1);
    }
    100% { 
        box-shadow: 
            0 0 0 4px rgba(255, 235, 59, 0.6),
            0 0 30px rgba(255, 235, 59, 0.9);
    }
}

@keyframes alarmPulse {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
    50% { transform: scale(1.05); box-shadow: 0 6px 25px rgba(231, 76, 60, 0.8); }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(243, 156, 18, 0); }
    100% { box-shadow: 0 0 0 0 rgba(243, 156, 18, 0); }
}

.hour-slot.current {
    border: 4px solid #ffeb3b !important;
    box-shadow: 
        0 0 0 4px rgba(255, 235, 59, 0.6),
        0 0 30px rgba(255, 235, 59, 0.9) !important;
    animation: brightPulse 1s infinite !important;
    position: relative;
    z-index: 10;
    transform: scale(1.1);
}

.hour-slot.past {
    background: #95a5a6 !important;
    color: white !important;
    opacity: 0.7;
}

.alarm-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 16px;
    margin-top: 3px;
    margin-bottom: 3px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Класс для активной тревоги */
.alarm-status.active {
    border: 3px solid #c0392b;
    background: #e74c3c;
    animation: alarmPulse 1.5s infinite;
}

/* Класс для неактивной тревоги */
.alarm-status.inactive {
    border: 3px solid #229954;
    background: #27ae60;
}

/* Класс для неизвестного статуса */
.alarm-status.unknown {
    border: 3px solid #e67e22;
    background: #f39c12;
}

.alarm-status .alarm-checked-time {
    font-size: 12px;
    opacity: 0.95;
    margin-left: 10px;
    font-weight: normal;
}

.header-extra {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.weather-info {
   padding: 8px 15px;
   background: #f5f5dc;
   border: 2px solid #d2b48c;
   border-radius: 20px;
   display: flex;
   align-items: center;
   gap: 10px;
   color: #5d4037;
   font-weight: bold;
   box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.weather-details {
    display: flex;
    gap: 12px;
    font-size: 12px;
    font-weight: normal;
}

.weather-item {
    display: flex;
    align-items: center;
    gap: 3px;
}

.telegram-promo {
    padding: 8px 15px;
    background: #0088cc;
    border: 2px solid #006699;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    font-size: 14px;
}

.telegram-promo:hover {
    background: #006699;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.schedule-content {
    padding: 20px;
}

.location-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.location-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: between;
    align-items: center;
}

.location-name {
    font-size: 16px;
    font-weight: bold;
    flex: 1;
}

.location-link {
    color: white;
    text-decoration: none;
}

.location-group {
    background: rgba(255,255,255,0.2);
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: normal;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
    padding: 15px;
    background: #f8f9fa;
}

.hour-slot {
    text-align: center;
    padding: 10px 6px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 12px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
}

.hour-slot.available {
    background: #27ae60;
    color: white;
}

.hour-slot.unavailable {
    background: #e74c3c;
    color: white;
}

.hour-slot.current {
    border-color: #f39c12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.3);
    animation: pulse 2s infinite;
}

.hour-time {
    font-size: 11px;
    opacity: 0.9;
}

.periods-list {
    background: #fff3cd;
    padding: 12px 15px;
    border-top: 1px solid #ffeaa7;
}

.periods-title {
    font-weight: bold;
    color: #856404;
    margin-bottom: 6px;
    font-size: 13px;
}

.period-item {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 5px 10px;
    margin: 3px 6px 3px 0;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.period-item.no-outage {
    background: #27ae60;
    color: white;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #ddd;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

.legend-color {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.legend-available {
    background: #27ae60;
}

.legend-unavailable {
    background: #e74c3c;
}

.legend-past {
    background: #95a5a6;
}

.schedule-note {
    padding: 15px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-top: 1px solid #f39c12;
    text-align: center;
    font-size: 13px;
    color: #856404;
    line-height: 1.5;
}

.last-update {
    text-align: center;
    padding: 12px;
    background: #2c3e50;
    color: white;
    font-size: 11px;
    opacity: 0.8;
}

.text-schedule {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 15px;
    border: 1px solid #e0e0e0;
}

.text-schedule h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.social-share {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px dashed #f39c12;
}

.social-share strong {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #856404;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.social-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.social-button.facebook {
    background: #1877f2;
    color: white;
}

.social-button.telegram {
    background: #0088cc;
    color: white;
}

.social-button.whatsapp {
    background: #25d366;
    color: white;
}

.social-button.copy-link {
    background: #7f8c8d;
    color: white;
}

.social-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.social-button.facebook:hover {
    background: #166fe5;
}

.social-button.telegram:hover {
    background: #0077b5;
}

.social-button.whatsapp:hover {
    background: #1da851;
}

.social-button.copy-link:hover {
    background: #6c7b7d;
}

.social-icon {
    font-size: 14px;
}

.social-text {
    font-size: 11px;
}

/* ============================
   СТРАНИЦА "О ПРОЕКТЕ" (about.php)
============================ */
.about-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
}

.about-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 10px 15px 15px 15px;
    text-align: center;
    position: relative;
}

/* Навигация для страницы "О проекте" */
.about-nav .nav-list,
.contact-nav .nav-list,
.faq-nav .nav-list,
.privacy-nav .nav-list {
    display: flex;
    list-style: none;
    margin: 0 0 10px 0;
    padding: 0;
    width: 100%;
}

.about-nav .nav-item,
.contact-nav .nav-item,
.faq-nav .nav-item,
.privacy-nav .nav-item {
    flex: 1;
    text-align: center;
}

.about-nav .nav-link,
.contact-nav .nav-link,
.faq-nav .nav-link,
.privacy-nav .nav-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 3px;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s;
    display: block;
    font-size: 13px;
    white-space: nowrap;
    margin: 0 1px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Иконки для ПК версии на других страницах */
.about-nav .nav-link::before,
.contact-nav .nav-link::before,
.faq-nav .nav-link::before,
.privacy-nav .nav-link::before {
    content: '';
    display: inline-block;
    margin-right: 6px;
    font-size: 14px;
    flex-shrink: 0;
}

.about-nav .nav-link[href="/"]::before,
.contact-nav .nav-link[href="/"]::before,
.faq-nav .nav-link[href="/"]::before,
.privacy-nav .nav-link[href="/"]::before {
    content: '🏠';
}

.about-nav .nav-link[href="/faq.php"]::before,
.contact-nav .nav-link[href="/faq.php"]::before,
.faq-nav .nav-link[href="/faq.php"]::before,
.privacy-nav .nav-link[href="/faq.php"]::before {
    content: 'ℹ️';
}

.about-nav .nav-link[href="/about.php"]::before,
.contact-nav .nav-link[href="/about.php"]::before,
.faq-nav .nav-link[href="/about.php"]::before,
.privacy-nav .nav-link[href="/about.php"]::before {
    content: '❓';
}

.about-nav .nav-link[href="/contact.php"]::before,
.contact-nav .nav-link[href="/contact.php"]::before,
.faq-nav .nav-link[href="/contact.php"]::before,
.privacy-nav .nav-link[href="/contact.php"]::before {
    content: '📞';
}

.about-nav .nav-link[href="/privacy.php"]::before,
.contact-nav .nav-link[href="/privacy.php"]::before,
.faq-nav .nav-link[href="/privacy.php"]::before,
.privacy-nav .nav-link[href="/privacy.php"]::before {
    content: '🔒';
}

.about-nav .nav-link:hover,
.contact-nav .nav-link:hover,
.faq-nav .nav-link:hover,
.privacy-nav .nav-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.about-nav .nav-link.active,
.contact-nav .nav-link.active,
.faq-nav .nav-link.active,
.privacy-nav .nav-link.active {
    background: rgba(255,255,255,0.3);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.about-header h1 {
    margin: 5px 0 12px 0;
    font-size: 28px;
    font-weight: 700;
}

.about-header p {
    font-size: 14px;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.breadcrumbs {
    background: #f8f9fa;
    padding: 12px 20px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
}

.breadcrumbs a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.about-content {
    padding: 30px;
}

.mission-section {
    margin-bottom: 30px;
}

.section-title {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 24px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.section-text {
    color: #34495e;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.section-text p {
    margin-bottom: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.feature-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #3498db;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.feature-title {
    color: #2980b9;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: bold;
}

.feature-description {
    color: #34495e;
    font-size: 14px;
    line-height: 1.5;
}

.team-section {
    background: #f0f7ff;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
}

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

.team-member {
    text-align: center;
    padding: 15px;
}

.member-avatar {
    width: 80px;
    height: 80px;
    background: #3498db;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
}

.member-name {
    color: #2c3e50;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
}

.member-role {
    color: #7f8c8d;
    font-size: 13px;
    margin-bottom: 8px;
}

.tech-section {
    background: #fff3cd;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
}

.tech-list {
    list-style: none;
    padding: 0;
}

.tech-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #f39c12;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tech-list li:last-child {
    border-bottom: none;
}

.tech-icon {
    color: #f39c12;
    font-size: 18px;
}

.contact-promo {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #e8f4fc 0%, #d6eaf8 100%);
    border-radius: 8px;
    margin-top: 30px;
}

.contact-button {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 12px 30px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    margin-top: 15px;
    transition: all 0.3s;
}

.contact-button:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* ============================
   СТРАНИЦА "КОНТАКТЫ" (contact.php)
============================ */
.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
}

.contact-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 10px 15px 15px 15px;
    text-align: center;
    position: relative;
}

.contact-header h1 {
    margin: 5px 0 12px 0;
    font-size: 28px;
    font-weight: 700;
}

.contact-header p {
    font-size: 14px;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.contact-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    border-left: 4px solid #3498db;
    transition: transform 0.3s ease;
    text-align: center;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
}

.contact-title {
    color: #2980b9;
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: bold;
}

.contact-info {
    color: #34495e;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.contact-link {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 8px;
    transition: all 0.3s;
    font-size: 14px;
}

.contact-link:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.form-section {
    background: #f0f7ff;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
}

.form-title {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 22px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    color: #2c3e50;
    font-weight: bold;
    font-size: 14px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Arial', sans-serif;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    width: 100%;
    max-width: 180px;
    margin: 25px auto 0;
}

.submit-button:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.submit-button:active {
    transform: translateY(-1px);
}

.response-section {
    background: #d4edda;
    border: 2px solid #c3e6cb;
    border-radius: 8px;
    padding: 25px;
    margin-top: 25px;
    text-align: center;
    color: #155724;
}

.emergency-contacts {
    background: #fff3cd;
    border: 2px solid #f39c12;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
}

.emergency-title {
    color: #856404;
    margin-bottom: 15px;
    font-size: 20px;
    text-align: center;
}

.emergency-list {
    list-style: none;
    padding: 0;
}

.emergency-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #f39c12;
    display: flex;
    align-items: center;
    gap: 12px;
}

.emergency-list li:last-child {
    border-bottom: none;
}

.emergency-icon {
    color: #e74c3c;
    font-size: 20px;
    min-width: 25px;
}

.emergency-text {
    color: #856404;
    font-size: 14px;
    line-height: 1.5;
}

/* ============================
   СТРАНИЦА "FAQ" (faq.php)
============================ */
.faq-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
}

.faq-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 10px 15px 15px 15px;
    text-align: center;
    position: relative;
}

.faq-header h1 {
    margin: 5px 0 12px 0;
    font-size: 28px;
    font-weight: 700;
}

.faq-header p {
    font-size: 14px;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.faq-content {
    padding: 25px;
}

.faq-section {
    margin-bottom: 30px;
}

.faq-section h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 22px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.faq-item {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    transition: transform 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-question {
    font-weight: bold;
    color: #2980b9;
    margin-bottom: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-answer {
    color: #34495e;
    font-size: 14px;
    line-height: 1.5;
}

.faq-answer p {
    margin-bottom: 8px;
}

.faq-answer ul, .faq-answer ol {
    margin: 8px 0 8px 18px;
}

.faq-answer li {
    margin-bottom: 4px;
}

.faq-answer a {
    color: #2980b9;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* ============================
   СТРАНИЦА "ПОЛИТИКА" (privacy.php)
============================ */
.privacy-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
}

.privacy-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 10px 15px 15px 15px;
    text-align: center;
    position: relative;
}

.privacy-header h1 {
    margin: 5px 0 12px 0;
    font-size: 28px;
    font-weight: 700;
}

.privacy-header p {
    font-size: 14px;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.privacy-content {
    padding: 30px;
}

.privacy-section {
    margin-bottom: 30px;
}

.section-subtitle {
    color: #2980b9;
    margin: 20px 0 12px 0;
    font-size: 20px;
    font-weight: bold;
}

.privacy-text {
    color: #34495e;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.privacy-text p {
    margin-bottom: 10px;
}

.privacy-list {
    margin: 12px 0 12px 25px;
    padding: 0;
}

.privacy-list li {
    margin-bottom: 8px;
    color: #34495e;
    font-size: 14px;
    line-height: 1.5;
}

.privacy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
}

.privacy-table th {
    background: #3498db;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: bold;
    font-size: 14px;
}

.privacy-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    color: #34495e;
    font-size: 14px;
}

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

.privacy-table tr:hover {
    background: #f0f7ff;
}

.cookie-section {
    background: #fff3cd;
    border: 2px solid #f39c12;
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
}

.gdpr-section {
    background: #e8f4fc;
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
}

.data-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.data-type {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    border-left: 4px solid #3498db;
}

.data-title {
    color: #2980b9;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: bold;
}

.data-description {
    color: #34495e;
    font-size: 14px;
    line-height: 1.5;
}

.update-date {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    margin: 15px 0;
    border-left: 4px solid #f39c12;
    font-size: 14px;
}

/* ============================
   АДАПТИВНОСТЬ
============================ */
@media (max-width: 768px) {
    body {
        padding: 8px;
    }
    
    /* Мобильная версия меню (без иконок, одна строка) */
    .nav-list {
        display: flex;
        flex-wrap: nowrap;
        overflow: visible;
        gap: 2px;
        padding: 0;
        width: 100%;
    }
    
    .nav-item {
        flex: 1;
        min-width: 0;
    }
    
    .nav-link {
        padding: 6px 2px;
        font-size: 10px;
        margin: 0;
        border-radius: 3px;
        height: 30px;
        font-weight: normal;
    }
    
    /* Скрываем иконки на мобильных */
    .nav-link::before,
    .about-nav .nav-link::before,
    .contact-nav .nav-link::before,
    .faq-nav .nav-link::before,
    .privacy-nav .nav-link::before {
        display: none !important;
    }
    
    /* Общие настройки для мобильных */
    .schedule-header,
    .about-header,
    .contact-header,
    .faq-header,
    .privacy-header {
        padding: 8px 10px 12px 10px;
    }
    
    .schedule-header h1,
    .about-header h1,
    .contact-header h1,
    .faq-header h1,
    .privacy-header h1 {
        font-size: 18px;
        margin: 3px 0 6px 0;
    }
    
    .schedule-header .subtitle {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .schedule-date {
        font-size: 14px;
        padding: 5px 12px;
    }
    
    .alarm-status {
        padding: 6px 15px;
        font-size: 14px;
        margin: 2px 0;
    }
    
    .alarm-status .alarm-checked-time {
        font-size: 10px;
    }
    
    .header-extra {
        flex-direction: column;
        gap: 8px;
        margin-top: 6px;
    }
    
    .weather-info {
        padding: 6px 12px;
        border-radius: 15px;
        gap: 8px;
        max-width: 350px;
    }
    
    .weather-main {
        font-size: 12px;
        gap: 4px;
    }
    
    .weather-details {
        font-size: 10px;
        gap: 8px;
    }
    
    .telegram-promo {
        padding: 6px 12px;
        font-size: 12px;
        max-width: 350px;
        gap: 6px;
    }
    
    .schedule-content {
        padding: 15px;
    }
    
    .location-header {
        padding: 10px 12px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .location-name {
        font-size: 14px;
    }
    
    .location-group {
        font-size: 11px;
        padding: 2px 6px;
    }
    
    .hours-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
        padding: 12px;
    }
    
    .hour-slot {
        padding: 8px 4px;
        font-size: 11px;
        border-radius: 4px;
    }
    
    .hour-time {
        font-size: 10px;
    }
    
    .periods-list {
        padding: 10px 12px;
    }
    
    .periods-title {
        font-size: 12px;
    }
    
    .period-item {
        font-size: 11px;
        padding: 4px 8px;
        margin: 2px 4px 2px 0;
    }
    
    .legend {
        flex-direction: column;
        gap: 10px;
        padding: 12px;
    }
    
    .legend-item {
        font-size: 12px;
    }
    
    .schedule-note {
        padding: 12px;
        font-size: 12px;
    }
    
    /* Для всех страниц контент */
    .about-content,
    .contact-content,
    .faq-content,
    .privacy-content {
        padding: 15px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .section-subtitle {
        font-size: 18px;
    }
    
    .features-grid,
    .contact-grid,
    .team-grid,
    .data-types {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    /* Еще более компактная версия для маленьких телефонов */
    .nav-link {
        font-size: 9px;
        padding: 5px 1px;
        height: 28px;
    }
    
    .schedule-header h1,
    .about-header h1,
    .contact-header h1,
    .faq-header h1,
    .privacy-header h1 {
        font-size: 16px;
    }
    
    .hours-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .weather-info,
    .telegram-promo {
        max-width: 300px;
    }
    
    .weather-details {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (min-width: 769px) {
    /* На ПК меню растянуто на всю ширину с иконками */
    .nav-container {
        display: flex;
        justify-content: center;
    }
    
    .nav-list {
        gap: 3px;
    }
    
    .nav-link {
        padding: 8px 4px;
        font-size: 12px;
    }
    
    /* Делаем чтобы на ПК все кнопки занимали всю ширину равномерно */
    .nav-item {
        flex: 1;
        min-width: 0;
    }
    
    /* Корректируем для других страниц */
    .about-nav .nav-list,
    .contact-nav .nav-list,
    .faq-nav .nav-list,
    .privacy-nav .nav-list {
        gap: 3px;
    }
    
    .about-nav .nav-link,
    .contact-nav .nav-link,
    .faq-nav .nav-link,
    .privacy-nav .nav-link {
        padding: 8px 4px;
        font-size: 12px;
    }
}

/* ============================================================
   ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ИЗ INDEX.PHP (АВТОМАТИЧЕСКИЙ ПЕРЕНОС)
   ============================================================ */

/* Стили для ссылок на локации */
.location-header .location-name .location-link {
    color: white !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    display: block !important;
    padding: 2px 0 !important;
}

.location-header .location-name .location-link:hover,
.location-header .location-name .location-link:focus {
    color: #f1f1f1 !important;
    text-decoration: underline !important;
    outline: none !important;
    transform: translateY(-1px);
}

/* Эффект при наведении на всю карточку */
.location-card:hover .location-header .location-name .location-link {
    color: #ffffff !important;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Стили для разделенных ячеек */
.hour-slot.split-cell {
    padding: 0;
    overflow: hidden;
    position: relative;
}

.half-hour-slot {
    display: flex;
    height: 100%;
    width: 100%;
}

.half-hour-part {
    flex: 1;
    height: 100%;
}

.half-hour-part.left {
    border-radius: 4px 0 0 4px;
}

.half-hour-part.right {
    border-radius: 0 4px 4px 0;
}

.half-hour-part.available {
    background: #27ae60;
}

.half-hour-part.unavailable {
    background: #e74c3c;
}

/* Время в разделенных ячейках */
.hour-time-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    z-index: 2;
    pointer-events: none;
}

/* Подсветка для целых ячеек (уточнение) */
.hour-slot.current:not(.split-cell) {
    border: 4px solid #ffeb3b !important;
    box-shadow: 
        0 0 0 4px rgba(255, 235, 59, 0.6),
        0 0 30px rgba(255, 235, 59, 0.9) !important;
    animation: brightPulse 1s infinite !important;
    position: relative;
    z-index: 10;
    transform: scale(1.1);
}

/* Подсветка для разделенных ячеек - только по периметру */
.hour-slot.split-cell.current {
    border: 3px solid #ffeb3b !important;
    box-shadow: 
        0 0 0 3px rgba(255, 235, 59, 0.6),
        0 0 20px rgba(255, 235, 59, 0.8) !important;
    animation: splitCellPulse 1s infinite !important;
    position: relative;
    z-index: 10;
}

@keyframes splitCellPulse {
    0%, 100% { 
        border-color: #ffeb3b;
        box-shadow: 
            0 0 0 3px rgba(255, 235, 59, 0.6),
            0 0 20px rgba(255, 235, 59, 0.8);
    }
    50% { 
        border-color: #ffeb3b;
        box-shadow: 
            0 0 0 6px rgba(255, 235, 59, 0.3),
            0 0 30px rgba(255, 235, 59, 1);
    }
}

/* Прошедшее время для всех ячеек */
.hour-slot.past:not(.split-cell) {
    background: #95a5a6 !important;
    color: white !important;
    opacity: 0.7;
}

.hour-slot.split-cell.past .half-hour-part {
    background: #95a5a6 !important;
    opacity: 0.7;
}

/* Белый текст в красных ячейках */
.hour-time-overlay {
    color: white !important;
    text-shadow: 
        1px 1px 2px rgba(0,0,0,0.8),
        -1px -1px 2px rgba(0,0,0,0.8),
        1px -1px 2px rgba(0,0,0,0.8),
        -1px 1px 2px rgba(0,0,0,0.8);
}
