/*
Theme Name: GENERAL NARCOLOGY CENTER Premium Theme
Description: Премиальный дизайн с эффектом Glassmorphism и золотыми акцентами
Version: 3.0
Author: Партнер программиста
*/

/* Подключаем шрифты нового поколения с серверов Google */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap');

/* Глобальные переменные дизайна клиники */
:root {
    --bg-dark: #0a1120;
    --accent-gold: #c5a059;
    --text-light: #e2e8f0;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-blur: blur(12px);
}

/* Базовые настройки отображения */
html {
    scroll-behavior: smooth;
}
body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    padding-bottom: 75px; 
    line-height: 1.7;
}

/* ================= ГЛОБАЛЬНОЕ ОГРАНИЧЕНИЕ КАРТИНОК ================= */
img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
    box-sizing: border-box; 
}

/* Ограничитель ширины сайта */
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Большие воздушные отступы для секций */
.site-section {
    padding: 100px 0;
    box-sizing: border-box;
}

/* Элегантная типографика */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--accent-gold);
    font-weight: 700;
    margin-top: 0;
}
h2.section-title {
    text-align: center;
    font-size: 38px;
    margin-bottom: 50px;
    letter-spacing: 1px;
}

/* ================= ШАПКА И МЕНЮ ================= */
.main-header {
    background: rgba(10, 17, 32, 0.85); 
    backdrop-filter: var(--glass-blur); 
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 20px 0;
    position: sticky; 
    top: 0;
    z-index: 999;
    border-bottom: var(--glass-border);
}

.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--accent-gold);
    text-decoration: none;
    letter-spacing: 1px;
}

.main-menu {
    display: flex; 
    gap: 35px; 
    list-style: none; 
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-menu li a {
    text-decoration: none; 
    color: var(--text-light); 
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease; 
}

.main-menu li a:hover {
    color: var(--accent-gold); 
    text-shadow: 0 0 15px rgba(197, 160, 89, 0.4); 
}

/* Премиальный эффект Матового Стекла (Glassmorphism) для карточек */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}
.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(197, 160, 89, 0.4);
    box-shadow: 0 12px 40px 0 rgba(197, 160, 89, 0.15);
}

/* Золотые кнопки с неоновым свечением */
.btn-gold {
    background-color: var(--accent-gold);
    color: #0a1120;
    padding: 18px 38px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}
.btn-gold:hover {
    background-color: #d9b673;
    box-shadow: 0 0 25px rgba(197, 160, 89, 0.6);
    transform: translateY(-2px);
}

/* Сетки макетов */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    align-items: center;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Декоративные бейджи статуса */
.badge-gold {
    background: rgba(197, 160, 89, 0.1);
    color: var(--accent-gold);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(197, 160, 89, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Поля ввода информации */
.form-input {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}
.form-input:focus {
    border-color: var(--accent-gold);
    outline: none;
    background: rgba(255, 255, 255, 0.07);
}

/* Секция цифр статистики */
.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
    text-align: center;
}
.stat-item {
    flex: 1;
    min-width: 200px;
}
.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: bold;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 12px;
}
.stat-text {
    font-size: 15px;
    color: var(--text-muted);
}

/* Строки прайс-листа */
.price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 25px;
}
.price-line {
    flex-grow: 1;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
    margin: 0 15px;
}
.price-val {
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-gold);
    white-space: nowrap;
}

/* Элегантные цитаты */
.premium-quote {
    background: rgba(197, 160, 89, 0.04);
    border-left: 4px solid var(--accent-gold);
    margin: 25px 0;
    padding: 20px 25px;
    font-size: 16px;
    font-style: italic;
    color: var(--text-light);
    border-radius: 0 12px 12px 0;
}

/* Нативный HTML-аккордеон FAQ */
.faq-item {
    margin-bottom: 15px;
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
}
.faq-header {
    padding: 22px;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-light);
    outline: none;
    background: rgba(255, 255, 255, 0.01);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-header::-webkit-details-marker {
    display: none;
}
.faq-header::after {
    content: '+';
    color: var(--accent-gold);
    font-size: 24px;
    transition: transform 0.3s ease;
}
.faq-item[open] .faq-header::after {
    content: '−';
}
.faq-body {
    padding: 5px 22px 22px 22px;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* ================= БАННЕР TELEGRAM БОТА ================= */
.tg-bot-banner {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: center;
    border-color: rgba(0, 136, 204, 0.3);
}
.tg-bot-banner:hover {
    border-color: rgba(0, 136, 204, 0.6);
    box-shadow: 0 12px 40px 0 rgba(0, 136, 204, 0.15);
}

.btn-telegram {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
    color: #ffffff;
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
    transition: all 0.3s ease;
    text-align: center;
}
.btn-telegram:hover {
    background: linear-gradient(135deg, #2299dd 0%, #0077aa 100%);
    box-shadow: 0 0 25px rgba(0, 136, 204, 0.6);
    transform: translateY(-2px);
}

/* ================= СТИЛИ ДЛЯ ФОТОГАЛЕРЕИ (ЖЕСТКИЙ GRID) ================= */
#hospital-gallery {
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}
.premium-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}
.gallery-item-wrap {
    overflow: hidden;
    border-radius: 12px;
    border: var(--glass-border);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.premium-gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    transition: transform 0.3s ease;
}
.premium-gallery-grid .gallery-item-wrap:hover img {
    transform: scale(1.03);
}

/* ================= АНОНИМНЫЙ КВИЗ ================= */
.quiz-step {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.quiz-step.active-step {
    display: block;
    opacity: 1;
}
.quiz-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}
.quiz-btn {
    min-width: 150px;
    text-align: center;
}

/* ================= ПОДВАЛ САЙТА (FOOTER) ================= */
.site-footer {
    padding: 80px 0 30px 0;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 40px;
    margin-bottom: 40px;
}

.footer-phone {
    color: #ffffff; 
    font-size: 32px; 
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-phone:hover {
    color: var(--accent-gold); 
    text-shadow: 0 0 15px rgba(197, 160, 89, 0.5); 
}

/* ================= КРУГЛАЯ ПЛАВАЮЩАЯ КНОПКА СВЯЗИ ================= */
.floating-phone-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #d9534f 0%, #b52b27 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(217, 83, 79, 0.4);
    z-index: 9999;
    text-decoration: none;
    animation: pulse-ring 2s infinite;
    transition: transform 0.3s ease;
}

.floating-phone-btn:hover {
    transform: scale(1.1);
}

.floating-phone-btn svg {
    fill: #ffffff;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(217, 83, 79, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(217, 83, 79, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 83, 79, 0); }
}


/* ==================== СТРОГАЯ МОБИЛЬНАЯ АДАПТАЦИЯ (АГРЕССИВНАЯ) ==================== */
@media (max-width: 768px) {
    /* Убираем горизонтальную прокрутку */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    /* Жесткие рамки для контейнеров */
    .site-container, .site-section {
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        padding-top: 50px !important;
        padding-bottom: 50px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    /* Исправление Сломанной Шапки */
    .main-header nav {
        display: none !important;
    }
    .header-wrap {
        justify-content: center !important;
    }
    
    /* Ограничение гигантских шрифтов */
    h1, .hero-title {
        font-size: 28px !important;
        line-height: 1.2 !important;
        word-wrap: break-word !important;
        letter-spacing: 0px !important;
    }
    h2, h2.section-title {
        font-size: 28px !important;
        line-height: 1.2 !important;
        word-wrap: break-word !important;
        margin-bottom: 30px !important;
    }
    
    /* Перестройка Сжатого Прайс-листа */
    .price-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        margin-bottom: 25px !important;
    }
    .price-line {
        display: none !important; 
    }
    .price-info {
        width: 100% !important;
    }
    .price-val {
        margin-top: 8px !important;
        font-size: 20px !important;
        color: var(--accent-gold) !important;
        font-weight: 700 !important;
        display: block !important;
    }
    
    /* Полноширинные кнопки */
    .btn-gold, .btn-telegram, .quiz-btn, .form-input {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 16px 20px !important;
        margin-bottom: 12px !important;
        text-align: center !important;
    }
    
    /* Сетки в один столбец */
    .grid-2, .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .stats-container {
        gap: 20px !important;
    }
    .stat-number {
        font-size: 42px !important;
    }
    
    /* Подвал */
    .footer-top {
        flex-direction: column !important;
        text-align: center !important;
    }
    .footer-top > div {
        text-align: center !important;
    }
    .footer-phone {
        font-size: 26px !important;
    }
    .floating-phone-btn {
        bottom: 20px !important;
        right: 20px !important;
        width: 55px !important;
        height: 55px !important;
    }
}