/* =========================================
   1. СБРОС СТИЛЕЙ (RESET)
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Важно для адаптивности */
}

body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td {
    margin: 0;
    padding: 0;
}

table { border-collapse: collapse; border-spacing: 0; }
fieldset, img { border: 0; }
address, caption, cite, code, dfn, em, strong, th, var { font-style: normal; font-weight: normal; }
ol, ul { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-size: 100%; font-weight: normal; }
a { text-decoration: none; }

/* =========================================
   2. БАЗОВЫЕ СТИЛИ И ШРИФТЫ
   ========================================= */
body {
    font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
    font-size: 16px; /* Замена 12pt */
    line-height: 1.4;
    color: #333;
}

/* Контейнер для центровки контента */
.container {
    width: 100%;
    max-width: 1200px; /* Ограничиваем ширину на больших экранах */
    margin: 0 auto;
    padding: 0 15px; /* Отступы по бокам на мобильных */
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
}

img {
    max-width: 100%; /* Картинки не будут вылезать за экран */
    height: auto;
}

/* =========================================
   3. HEADER И НАВИГАЦИЯ
   ========================================= */
.background_img {
    background-image: url(../img/pikchi_gl_s/main.png);
    background-size: cover;
    background-position: center;
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

/* Верхняя часть с лого и телефонами */
.header_top_container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.logo_wrapper .logo {
    width: 125px;
    height: auto;
}

.contacts_wrapper {
    display: flex;
    gap: 30px;
}

.contact_item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon_small {
    width: 30px;
    height: 30px;
}

.text_block, .telephone {
    font-family: 'Century Gothic', sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #635d5d;
}

//* =========================================
   МЕНЮ И НАВИГАЦИЯ (ФИНАЛЬНАЯ ВЕРСИЯ)
   ========================================= */

.nav_wrapper {
    width: 100%;
    margin-bottom: 20px;
}

/* Кнопка "Меню" - по умолчанию скрыта на ПК */
.menu-toggle {
    display: none;
    width: 100%;
    padding: 15px;
    background: #018fbf; /* Чуть темнее основного цвета для акцента */
    color: white;
    border: none;
    font-size: 18px;
    font-family: 'Century Gothic', sans-serif;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
}

.navigation {
    display: flex;
    width: 100%;
    list-style: none;
    background: #018fbf;
    margin: 0 auto;
    padding: 0;
    overflow: hidden; /* Важно для анимации */
}

/* Стили элементов на десктопе */
.navigation > li {
    flex: 1;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.navigation > li a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    color: #ffffff;
    font-size: 15px;
    transition: background 0.3s;
}

.navigation > li.icons-wrapper {
    flex: 0 0 auto;
    display: flex;
    border-right: none;
}

.icons-row {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.icon-btn {
    width: 60px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}
.active {
    font-weight: 600;
}

/* Выравнивание иконки и текста в футере */
.footer_contact {
    display: flex;         /* Включаем гибкий контейнер */
    align-items: center;   /* Выравниваем элементы по вертикали по центру */
    gap: 10px;            /* Задаем фиксированный отступ между иконкой и текстом */
}

/* Сбрасываем возможные лишние отступы у иконки */
.footer_contact .icon_small {
    display: block;
    margin: 0; 
}
/* =========================================
   АДАПТАЦИЯ (МОБИЛЬНАЯ ВЕРСИЯ)
   ========================================= */
@media (max-width: 900px) {
    .menu-toggle {
        display: block; /* Показываем кнопку на мобильном */
    }

    .navigation {
        flex-direction: column;
        display: none; /* СКРЫВАЕМ ОСНОВНОЕ МЕНЮ ПО УМОЛЧАНИЮ */
        background: #018fbf;
    }

    /* Обычные пункты на весь экран */
    .navigation > li {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Блок иконок ВСЕГДА виден под кнопкой "Меню" */
    /* Для этого в HTML его можно вынести, но мы сделаем хитрее через CSS */
    .navigation > li.icons-wrapper {
        display: flex;
        order: -1; /* Перемещаем иконки в самый верх списка (опционально) */
    }

    /* Если вы хотите, чтобы иконки были видны ВСЕГДА, а текст скрыт: */
    .navigation.active {
        display: flex; /* Показываем при нажатии */
    }

    /* Чтобы иконки были видны сразу под кнопкой, а меню скрывалось под ними: */
    .navigation {
        display: flex;
        flex-wrap: wrap;
        max-height: 60px; /* Высота только для строки иконок */
        transition: max-height 0.4s ease-out;
    }

    .navigation.active {
        max-height: 1000px; /* Раскрываем полностью */
    }

    /* Скрываем текстовые пункты, пока меню не активно */
    .navigation > li:not(.icons-wrapper) {
        display: none;
    }

    .navigation.active > li:not(.icons-wrapper) {
        display: block;
    }

    /* Настройка строки иконок */
    .icons-row { width: 100%; }
    .icon-btn {
        flex: 1;
        width: auto;
        height: 60px;
        border-left: none;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }
	.navigation > li a {
    
		font-size: 20px;
    
	}
}



/* Главный баннер */
.main_banner {
    display: flex;
    align-items: flex-end; /* Выравнивание по низу как в оригинале */
    justify-content: center;
    position: relative;
    margin-top: auto; /* Прижимает к низу секции */
    padding-bottom: 0px;
}

.women {
    height: 340px;
    width: auto;
    margin-bottom: -6px;

}

.t_main {
    font-size: 40px; /* 31pt approx */
    color: #708090;
    margin-left: -50px;
    margin-bottom: 120px;
    z-index: 2;
    text-shadow: 1px 1px 2px white; /* Для читаемости */
}

/* =========================================
   4. ИНФОРМАЦИОННЫЕ БЛОКИ (СЕРЫЕ)
   ========================================= */
.info_section {
    margin: 30px auto;
}

.info_grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.info_card {
    background-color: #e8e8e8;
    width: 300px; /* Фиксируем базу, но даем сжаться */
    max-width: 100%;
    min-height: 152px;
    display: flex;
    font-family: "Clear Sans Medium", sans-serif, Arial, Helvetica;
    font-size: 15px;
    overflow: hidden;
}

.info_name {
    background-color: #018fbf;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info_name span {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    color: white;
    white-space: nowrap;
    padding: 10px 0;
}

.card_content {
    flex-grow: 1;
    padding: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.card_icon {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: auto;
}

.schedule_list, .contacts_list, .text_content {
    margin-top: auto;
    /*margin-left: 30px;*/
}

.schedule_row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.contacts_list a {
    display: block;
    color: #333;
    margin-bottom: 5px;
}

/* =========================================
   5. ПРЕИМУЩЕСТВА И О НАС
   ========================================= */
.fon_info {
    background: #e8e8e8;
    width: 100%;
    padding: 40px 0;
}

.section_title {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section_title p {
    font-size: 24px;
    margin-bottom: 10px;
}

.pl2 {
    width: 110px;
}

.pl {
   width: 300px;
}


.advantages_grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.advantages_grid figure {
    text-align: center;
    width: 200px;
}

.advantages_grid img {
    padding: 10px;
}

figcaption {
    font-size: 16px;
    font-family: Century Gothic;
    margin-top: 10px;
}

/* О нас */
.about_section {
    padding: 40px 15px;
}

.about_wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}

.about_img_wrap {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
}

.img_about {
    max-width: 530px;
    width: 100%;
}

.about_text {
    flex: 1 1 300px;
    max-width: 500px;
}

.about_text h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.about_text p {
    margin-top: 20px;
    text-align: justify;
}

/* =========================================
   6. СЛАЙДЕР
   ========================================= */
.reviews_section {
    text-align: center;
}

.slider_wrap {
    margin: 20px auto;
    width: 100%;
    max-width: 501px;
    height: auto;
    min-height: 210px; /* Чтобы не скакал */
    position: relative;
    overflow: hidden;
}

.slider_wrap img {
    width: 100%;
    display: none;
    position: absolute; /* Для работы старого скрипта */
    top: 0;
    left: 0;
}

.slider_wrap img:first-child {
    display: block;
    position: relative; /* Первый слайд задает высоту */
}

/* =========================================
   7. КАРТА
   ========================================= */
.fon_map {
    width: 100%;
    height: 175px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

/* =========================================
   8. FOOTER
   ========================================= */
.footer {
    width: 100%;
}

.f1 {
    background: #dcdcdc;
    padding: 20px 0;
}

.f2 {
    background: #1e90ff;
    padding: 30px 0;
    color: white;
}

.footer_top {
    display: flex;
    justify-content: center; /* Как в оригинале - прижато вправо */
    gap: 50px;
}

.footer_bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer_socials {
    display: flex;
    gap: 30px;
}

.social_item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.credentials {
    color: white;
    font-weight: bold;
}

/* =========================================
   9. МОБИЛЬНАЯ АДАПТАЦИЯ (MEDIA QUERIES)
   ========================================= */
@media (max-width: 900px) {
    /* Header */
    .header_top_container {
        flex-direction: column;
        gap: 20px;
    }
    
    .contacts_wrapper {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .navigation {
        flex-direction: column;
        width: 100%;
    }

    .navigation li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    /* Banner */
    .main_banner {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }

    .women {
        height: auto;
        width: 100%;
        margin-top: 0px;
    }

    .t_main {
        margin-left: 0;
        font-size: 28px;
        text-align: center;
        margin-top: 20px;
        margin-bottom: 0px;
    }

    /* Footer */
    .footer_top {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .footer_bottom {
        flex-direction: column;
        gap: 20px;
    }

    .footer_socials {
        flex-direction: column;
        align-items: center;
    }
}


#cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #018fbf;
    color: #fff;
    padding: 15px;
    text-align: center;
    z-index: 1000;
    display: none;
    font-family: Arial, sans-serif;
}
#cookie-consent p {
    margin: 0;
    display: inline;
}
#cookie-consent button {
    background-color: #abdbeb;
    color: black;
    border: none;
    padding: 8px 16px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 4px;
}
#cookie-consent button:hover {
    background-color: #d1effa;;
}



/* --- Стили модального окна --- */
    .modal-overlay {
        display: none; /* Скрыто по умолчанию */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7); /* Темный фон */
        z-index: 9999; /* Поверх всего */
        justify-content: center;
        align-items: flex-start; /* Чтобы окно было сверху, а не по центру, если контента много */
        padding: 40px 10px;
        overflow-y: auto; /* Прокрутка, если окно не влезает */
    }

    .modal-window {
        background: #fff;
        width: 100%;
        max-width: 900px; /* Ширина по вашему запросу */
        border-radius: 8px; /* Скругление как в ваших стилях */
        padding: 30px;
        position: relative;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        margin: auto; /* Центровка */
    }

    /* Кнопка закрытия */
    .close-modal {
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 35px;
        font-weight: bold;
        color: #018fbf; /* Ваш фирменный синий */
        cursor: pointer;
        line-height: 1;
        transition: color 0.3s;
    }

    .close-modal:hover {
        color: #333;
    }

    .modal-title {
        text-align: center;
        font-size: 24px;
        color: #333;
        margin-bottom: 25px;
        border-bottom: 2px solid #018fbf;
        padding-bottom: 10px;
        display: inline-block;
    }
    
    .modal-header {
        text-align: center;
    }

    /* Контейнер для изображений */
    .docs-container {
        text-align: center;
    }

    .docs-container img {
        max-width: 100%;
        height: auto;
        margin-bottom: 20px;
        border: 1px solid #ddd;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    /* Сообщение, если фото не найдены */
    .no-docs {
        color: #777;
        font-style: italic;
        padding: 20px;
    }