/* Базовые стили и сброс */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif; /* Замените на выбранный шрифт */
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #007bff; /* Примерный акцентный цвет */
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif; /* Отдельный шрифт для заголовков */
    font-weight: 600;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    font-size: 1em;
}

.btn--primary {
    background-color: #7a9c8b; /* Примерный акцентный цвет */
    color: #fff;
}

.btn--primary:hover {
    background-color: #6a8c7b;
    transform: translateY(-2px);
}

.btn--secondary {
    background-color: #e2e2e2;
    color: #333;
    border: 1px solid #ccc;
}

.btn--secondary:hover {
    background-color: #d4d4d4;
    transform: translateY(-2px);
}

/* Общие стили для секций */
section {
    padding: 60px 0;
    background-color: #fff;
    margin-bottom: 20px;
}

section:nth-of-type(even) { /* Чередование фона для читаемости */
    background-color: #f0f7f7; /* Немного светлее, чем #f9f9f9 */
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header__title {
    font-size: 2.2em;
    color: #333;
}

.section-header__link {
    color: #007bff;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}
.section-header__link i {
    font-size: 0.9em;
}

/* Карточки */
.card-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Адаптивная сетка */
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
}

.card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card__content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card__title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #333;
}

.card__description {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 10px;
}

.card__meta {
    font-size: 0.85em;
    color: #777;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.card__meta i {
    color: #f8c000; /* Цвет звезд */
}

.card__rating {
    font-weight: bold;
}

.card__price, .card__salon, .card__location, .card__expiry {
    font-size: 0.9em;
    color: #555;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.card__price {
    font-weight: bold;
    color: #333;
}
.card__location i, .card__expiry i {
    color: #777;
}

/* 1. Шапка сайта (Header) */
.header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap; /* Для адаптивности */
}

.header__logo a {
    font-size: 1.8em;
    font-weight: bold;
    color: #7a9c8b; /* Цвет логотипа */
}

.header__search {
    display: flex;
    flex-grow: 1;
    max-width: 500px;
}

.header__search input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    font-size: 1em;
    padding-right: 40px; /* Место для кнопки */
}

.header__search-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    margin-left: -35px; /* Наложение на поле ввода */
    color: #777;
    padding: 0;
}


.header__location {
    display: flex;
    align-items: center;
    font-size: 0.95em;
    color: #555;
    white-space: nowrap; /* Чтобы не переносилось */
}

.header__location-select {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8em;
    margin-left: 5px;
    color: #777;
}

.header__nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header__nav-link {
    color: #555;
    font-weight: 500;
    white-space: nowrap;
}

.header__nav-link--register {
    background-color: #7a9c8b;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
}

.header__nav-link--register:hover {
    background-color: #6a8c7b;
    text-decoration: none;
}

.header__menu-toggle {
    display: none; /* Скрыть на больших экранах, показать на мобильных */
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    color: #333;
    padding: 0 5px;
}

/* 2. Главный блок (Hero Section) */
.hero-section {
    background: url('https://placehold.co/1920x600/E0F2F7/2C3E50?text=Relaxing+SPA+Background') center center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 120px 0; /* Увеличили padding */
    position: relative;
    z-index: 1;
}

.hero-section::before { /* Затемнение для читаемости текста */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-section__content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-section__title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section__subtitle {
    font-size: 1.3em;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-section__search-form {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 15px; /* Уменьшили padding */
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center; /* Выравнивание по центру */
    max-width: 600px; /* Ограничить ширину */
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-section__search-form input {
    flex-grow: 1;
    padding: 12px 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 1.05em;
}

.hero-section__search-form .btn {
    padding: 12px 30px;
    font-size: 1.05em;
    flex-shrink: 0;
}

/* 3. Блок преимуществ / Доверия */
.advantages-section {
    padding: 25px 0; /* Меньший padding */
    background-color: #e8f5e9; /* Светлый акцентный фон */
    margin-bottom: 20px;
}

.advantages-section__content {
    display: flex;
    justify-content: space-around; /* Распределение элементов */
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap; /* Важно: не переносить на новую строку на десктопе */
}

.advantage-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4a6d5c; /* Более темный цвет текста */
    font-weight: 600;
    font-size: 0.95em;
    white-space: nowrap; /* Не переносить на новую строку */
    flex-shrink: 0; /* Предотвратить сжатие */
    padding: 5px 0; /* Небольшой внутренний отступ */
}

.advantage-item__icon {
    font-size: 1.5em; /* Меньший размер иконок */
    color: #7a9c8b;
}

.advantage-item__text {
    /* Текст уже стилизован через .advantage-item */
}


/* 4, 5, 6, 7, 8, 10 - Блоки с карточками (общие стили уже выше) */

/* Дополнительные стили для специфичных карточек */
.card-grid--networks .card--network {
    text-align: center;
    padding: 20px;
    justify-content: center; /* Центрировать содержимое */
}

.card--network .card__logo {
    width: 100px; /* Примерный размер лого */
    height: auto;
    margin-bottom: 15px;
    object-fit: contain;
}

.card-grid--masters .card--master {
    align-items: center;
    text-align: center;
    padding: 20px;
}

.card--master .card__image--circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #7a9c8b;
}

.card--master .card__specialization {
    font-style: italic;
    color: #888;
    margin-bottom: 5px;
}

.card--master .card__salon {
    font-size: 0.85em;
    color: #777;
    margin-top: 5px;
}

.card-grid--promotions .card--promotion .card__content {
    justify-content: space-between; /* Распределение содержимого */
}

.card-grid--promotions .card--promotion .card__expiry {
    color: #d9534f; /* Красный цвет для срока действия */
    font-weight: bold;
    margin-top: 10px;
}

.card-grid--reviews .card--review {
    padding: 25px;
}

.card--review .card__review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.card--review .card__reviewer {
    font-weight: bold;
    font-size: 1.1em;
}

.card--review .card__rating {
    font-size: 1.2em;
    color: #f8c000;
}

.card--review .card__review-text {
    font-style: italic;
    color: #444;
    margin-bottom: 10px;
}

.card--review .card__salon-name,
.card--review .card__date {
    font-size: 0.8em;
    color: #999;
}


/* 9. Блок "SPA-центры на карте" */
.map-section {
    text-align: center;
}

.map-section__description {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 30px;
}

.map-container {
    background-color: #e0e0e0; /* Фоновый цвет для placeholder карты */
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.map-placeholder {
    width: 100%;
    height: 400px;
    display: block;
    object-fit: cover; /* Или contain, если это не карта, а заглушка */
}

.map-section__button {
    font-size: 1.1em;
    padding: 12px 40px;
}

/* 11. Блок "О нашем каталоге" */
.about-section {
    text-align: center;
    padding: 80px 0;
    background-color: #e8f5e9; /* Мягкий фон для этого блока */
}

.about-section__title {
    font-size: 2.8em;
    margin-bottom: 25px;
    color: #333;
}

.about-section__text {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.15em;
    line-height: 1.8;
    color: #555;
}

.about-section__cta {
    font-size: 1.2em;
    padding: 15px 40px;
}

/* 12. Подвал сайта (Footer) */
.footer {
    background-color: #2c3e50; /* Темно-синий/серый */
    color: #f4f4f4;
    padding: 50px 0 20px;
}

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

.footer__column ul {
    padding: 0;
}

.footer__column li {
    margin-bottom: 10px;
}

.footer__column a {
    color: #f4f4f4;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer__column a:hover {
    opacity: 1;
    text-decoration: none;
}

.footer__title {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #fff;
}

.footer__socials {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    display: inline-flex;
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
}

.footer__bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__copyright {
    font-size: 0.85em;
    opacity: 0.7;
}

/* Адаптивность (базовые медиа-запросы) */
@media (max-width: 992px) { /* Tablet landscape and smaller */
    .advantages-section__content {
        flex-wrap: wrap; /* Позволяем переноситься */
        justify-content: center;
        gap: 15px;
    }
    .advantage-item {
        flex: 0 0 auto; /* Элементы будут занимать столько места, сколько нужно */
        justify-content: center;
        margin: 5px 0; /* Добавим небольшой отступ между элементами при переносе */
    }
}

@media (max-width: 768px) {
    .header__content {
        flex-direction: column;
        align-items: flex-start;
    }
    .header__search {
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
    }
    .header__location, .header__nav {
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }
    .header__nav-link--register {
        margin-left: auto; /* Оттолкнуть кнопку вправо */
    }
    .hero-section__title {
        font-size: 2.5em;
    }
    .hero-section__subtitle {
        font-size: 1em;
    }
    .hero-section__search-form {
        flex-direction: column;
        max-width: 90%;
    }
    .hero-section__search-form input,
    .hero-section__search-form .btn {
        width: 100%;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .section-header__link {
        margin-top: 10px;
    }

    .advantages-section__content {
        flex-direction: column; /* Все элементы преимуществ в столбец */
    }
    .advantage-item {
        width: 100%;
        justify-content: flex-start; /* Выравнивание влево */
    }

    .card-grid,
    .footer__grid {
        grid-template-columns: 1fr;
    }

    .map-placeholder {
        height: 300px;
    }

    .about-section__title {
        font-size: 2em;
    }
    .about-section__text {
        font-size: 1em;
    }

    /* Cookie Popup on smaller screens */
    .cookie-consent-popup {
        padding: 15px;
    }
    .cookie-consent-popup__content {
        flex-direction: column;
        gap: 10px;
    }
    .cookie-consent-popup p {
        margin-bottom: 0;
    }

    /* Add SPA Popup on smaller screens */
    .add-spa-popup__content {
        width: 90%;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-section__title {
        font-size: 2em;
    }
    .header__nav-link--register {
        padding: 5px 10px;
    }
    .header__location {
        font-size: 0.85em;
    }
}


/* --- Floating Pop-up Styles --- */

/* Base styles for popups */
.cookie-consent-popup,
.add-spa-popup {
    position: fixed !important; /* Усилено */
    z-index: 10000 !important; /* Очень высокий z-index */
    display: none; /* Hidden by default, shown by JS */
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Cookie Consent Pop-up specific styles */
.cookie-consent-popup {
    bottom: 0 !important; /* Усилено */
    left: 0 !important;   /* Усилено */
    width: 100% !important; /* Усилено */
    background-color: rgba(44, 62, 80, 0.95); /* Darker background, slightly transparent */
    color: #fff;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(100%); /* Start off-screen */
    display: flex !important; /* Всегда flex для центрирования содержимого, скрываем через opacity/transform */
    justify-content: center;
    align-items: center;
}

.cookie-consent-popup.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.cookie-consent-popup__content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.cookie-consent-popup p {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.4;
    flex-grow: 1; /* Allow text to take available space */
}

.cookie-consent-popup p a {
    color: #aed581; /* Lighter green for links in dark popup */
    text-decoration: underline;
}

.cookie-consent-popup .btn--primary {
    background-color: #aed581; /* Brighter green for button */
    color: #333;
    flex-shrink: 0; /* Don't shrink button */
}

.cookie-consent-popup .btn--primary:hover {
    background-color: #9ccc65;
}


/* Add SPA Center Pop-up specific styles */
.add-spa-popup {
    top: 0 !important;      /* Усилено */
    left: 0 !important;     /* Усилено */
    width: 100% !important;  /* Усилено */
    height: 100% !important; /* Усилено */
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    display: flex !important; /* Всегда flex для центрирования, скрываем через opacity/transform */
    justify-content: center;
    align-items: center;
}

.add-spa-popup.show {
    opacity: 1 !important;
}

.add-spa-popup__content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
    text-align: center;
    position: relative; /* Relative to its flex container, used for close button */
    max-width: 450px; /* Max width for the popup content */
    width: 90%; /* Responsive width */
    transform: translateY(-50px); /* Start slightly above center */
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.add-spa-popup.show .add-spa-popup__content {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.add-spa-popup__close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2em;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
    transition: color 0.2s ease;
}

.add-spa-popup__close-btn:hover {
    color: #333;
}

.add-spa-popup__title {
    font-size: 1.8em;
    color: #7a9c8b;
    margin-bottom: 15px;
}

.add-spa-popup__text {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 25px;
}

.add-spa-popup .btn--primary {
    padding: 12px 30px;
    font-size: 1.05em;
}