/* Основные стили и сброс */
:root {
    --primary-color: #1e2b24; /* Зеленый */
    --secondary-color: #1e2b24; /* Темно-зеленый */
    --accent-color: #1e2b24; /* Оранжевый */
    --text-color: #333;
    --light-bg: #f8f8f8;
    --dark-bg: #e0e0e0;
    --white: #fff;
    --border-color: #ddd;
    --font-family: 'century schoolbook', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Заголовки */
h1, h2, h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

h1 {
    font-size: 2.8em;
    color: var(--white);
}

h2 {
    font-size: 2.2em;
    margin-top: 40px;
}

h3 {
    font-size: 1.6em;
}

p {
    margin-bottom: 15px;
    text-align: center;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 25px;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: rgba(30, 43, 36, 1.0);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}
.btn-primary a {
    color: var(--white);
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #e68a00;
    transform: translateY(-2px);
}

/* Шапка сайта */
.header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Для адаптивности */
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    margin-right: 20px;
}

.nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap; /* Для адаптивности */
    justify-content: center;
}

.nav li {
    margin: 0 15px;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--primary-color);
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 15px;
    
}

.header-contacts .phone-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
}

.menu-toggle {
    display: none; /* Скрыть на десктопе */
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Герой-секция */
.hero-section {
    background: url('../img/hero-bg.jpg') no-repeat center center/cover; /* Добавьте свое фоновое изображение */
    color: var(--white);
    text-align: center;
    padding: 150px 20px;
    display: flex;
    align-items: center;
    min-height: 850px;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Затемнение */
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section p {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Общие стили для секций */
.section-block {
    padding: 80px 0;
    text-align: center;
}

.section-block:nth-of-type(even) {
    background-color: rgba(251, 249, 246); /*цвет блоков*/
}

.section-block p {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

/* Секции с особенностями (Баня, Бассейн и т.д.) */
.feature-section .feature-content {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-top: 50px;
}

.feature-section.reverse-layout .feature-content {
    flex-direction: row-reverse;
    text-align: right;
}

.feature-section .feature-text {
    flex: 1;
}

.feature-section .feature-text h2 {
    text-align: left;
    margin-top: 0;
}
.feature-section.reverse-layout .feature-text h2 {
    text-align: left;
}

.feature-section .feature-text p {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}
.feature-section.reverse-layout .feature-text p {
    text-align: left;
}

.feature-section .feature-image {
    flex: 1;
    display: flex; /* Для центрирования изображения, если оно меньше контейнера */
    justify-content: center;
    align-items: center;

}
.video {
    max-width: 90%;
    border-radius: 10px;
   
}

.feature-section img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Секция "Новости" */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.news-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-item h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    text-align: left;
}

.news-item p {
    font-size: 0.95em;
    margin-bottom: 20px;
    text-align: left;
    flex-grow: 1;
}

.news-item .btn {
    align-self: flex-start;
}

/* Контакты */
.contacts-section .contact-info {
    font-size: 1.1em;
    margin-bottom: 30px;
}

.contacts-section .contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.contacts-section .contact-info a:hover {
    text-decoration: underline;
}

.map-placeholder {
    background-color: var(--dark-bg);
    height: 400px; /* Замените на реальную высоту карты */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden; /* Для iframe */
}

/* Подвал сайта */
.footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer p {
    margin-bottom: 0;
    text-align: left;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Модальные окна */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed; /* Позиция фиксирована */
    z-index: 1000; /* Поверх всего */
    left: 0;
    top: 0;
    width: 100%; /* Полная ширина */
    height: 100%; /* Полная высота */
    overflow: auto; /* Добавляем прокрутку при необходимости */
    background-color: rgba(0,0,0,0.6); /* Черный фон с прозрачностью */
    backdrop-filter: blur(5px); /* Эффект размытия фона */
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto; /* 10% сверху, по центру */
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    width: 90%; /* Ширина модального окна */
    max-width: 500px; /* Максимальная ширина */
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-button {
    color: var(--text-color);
    font-size: 2.5em;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--secondary-color);
}

.modal-content p.call-number {
    font-size: 1.3em;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
}
.modal-content p.call-number a {
    color: var(--primary-color);
    text-decoration: none;
}
.modal-content p.call-number a:hover {
    text-decoration: underline;
}

/* Формы внутри модальных окон */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    display: none; /* Скрыто по умолчанию, показывается JS */
}

.form-message.success {
    background-color: #e6ffe6;
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.form-message.error {
    background-color: #ffe6e6;
    color: #f44336;
    border: 1px solid #f44336;
}

/* Адаптивность */
@media (max-width: 992px) {
    .header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        width: 100%;
        order: 3; /* Переместить навигацию вниз */
        display: none; /* Скрыть по умолчанию, будет переключаться JS */
        flex-direction: column;
        text-align: center;
        background-color: var(--white);
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        padding: 10px 0;
    }

    .nav.active {
        display: flex;
    }

    .nav ul {
        flex-direction: column;
        padding: 10px 0;
    }

    .nav li {
        margin: 10px 0;
    }

    .header-contacts {
        width: 100%;
        justify-content: space-between;
        margin-top: 15px;
        margin-left: 0;
        order: 2; /* Переместить контакты на второе место */
    }

    .header-contacts .btn {
        padding: 8px 15px;
    }

    .menu-toggle {
        display: flex; /* Показать бургер-меню */
        position: absolute;
        right: 20px;
        top: 25px;
    }

    h1 {
        font-size: 2.2em;
    }

    h2 {
        font-size: 1.8em;
    }

    .hero-section {
        padding: 100px 20px;
        min-height: 500px;
    }

    .hero-section p {
        font-size: 1.1em;
    }

    .feature-section .feature-content {
        flex-direction: column;
        text-align: center;
    }
    .feature-section.reverse-layout .feature-content {
        flex-direction: column; /* Отменяем reverse-layout для мобильных */
        text-align: center;
    }

    .feature-section .feature-text {
        order: 2; /* Текст после изображения */
    }
    .feature-section .feature-image {
        order: 1; /* Изображение перед текстом */
        margin-bottom: 30px;
    }

    .feature-section .feature-text h2,
    .feature-section .feature-text p {
        text-align: ri; /* Центрируем текст */
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer .container {
        flex-direction: column;
        gap: 15px;
    }

    .footer p {
        text-align: center;
    }
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .footer-links a {
        margin-left: 0;
    }
}
.promo__video {
  position: absolute;     /* Абсолютное позиционирование относительно .promo */
  top: 50%;               /* Позиция от верха родительского элемента */
  left: 50%;              /* Позиция от левого края родительского элемента */
  transform: translate(-50%, -50%); /* Центрирование видео */
  width: 100%;            /* Ширина равна 100% .promo */
  height: 100%;           /* Высота равна 100% .promo */
  z-index: 1;             /* Наименьший порядок наложения, видео находится в самом низу */
  object-fit: cover;      /* Видео растягивается, чтобы покрыть весь контейнер, сохраняя пропорции */
}
.video {
    max-width: 100%;
    border-radius: 10px;
   
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.6em;
    }
    .hero-section {
        padding: 80px 15px;
        min-height: 400px;
    }
    .header-contacts {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    .header-contacts .btn {
        width: 100%;
    }
    .phone-link {
        font-size: 1em;
    }
    .modal-content {
        margin: 5% auto;
        padding: 20px;
    }
    .close-button {
        font-size: 2em;
        top: 5px;
        right: 15px;
    }
}
/*Новый блок цены*/
/* Общие стили для секции */
.pricing-section {
    padding: 80px 20px; /* Отступы сверху/снизу и по бокам */
    background-color: rgba(251, 249, 246, 1.0); /* Легкий фон, адаптируйте под свой сайт */
    font-family: 'Your_Font_Family', sans-serif; /* Используйте ваш основной шрифт */
    color: #333; /* Основной цвет текста */
}

.pricing-section .container {
    max-width: 1200px; /* Максимальная ширина контента */
    margin: 0 auto; /* Центрирование */
    text-align: center; /* Центрирование заголовков */
}

.pricing-section .section-title {
    font-size: 3em; /* Крупный заголовок */
    margin-bottom: 20px;
    color: #333; /* Цвет заголовка */
    font-weight: 700;
}

.pricing-section .section-subtitle {
    font-size: 1.2em;
    margin-bottom: 60px;
    color: #666; /* Цвет подзаголовка */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Контейнер для карточек */
.pricing-cards-wrapper {
    display: flex; /* Используем Flexbox для размещения карточек */
    flex-wrap: wrap; /* Разрешаем перенос на новую строку на маленьких экранах */
    justify-content: center; /* Центрируем карточки */
    gap: 30px; /* Расстояние между карточками */
}

/* Стили для одной карточки тарифного плана */
.pricing-card {
    background-color: #ffffff; /* Белый фон карточки */
    border-radius: 12px; /* Скругленные углы */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Мягкая тень */
    padding: 40px 30px;
    width: calc(33% - 30px); /* Ширина карточки (3 колонки, с учетом gap) */
    max-width: 380px; /* Максимальная ширина для адаптивности */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Плавные переходы */
    position: relative; /* Для позиционирования ленты */
}

.pricing-card:hover {
    transform: translateY(-10px); /* Приподнимаем карточку при наведении */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12); /* Усиливаем тень */
}

.pricing-card .plan-header {
    margin-bottom: 30px;
}

.pricing-card .plan-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.pricing-card .plan-description {
    font-size: 1em;
    color: #777;
    line-height: 1.5;
}

.pricing-card .plan-price {
    margin-bottom: 30px;
    text-align: center;
}

.pricing-card .currency {
    font-size: 1.5em;
    vertical-align: super;
    font-weight: 600;
    color: #555;
}

.pricing-card .amount {
    font-size: 2.5em; /* Очень крупный размер для суммы */
    font-weight: 800;
    color: #333;
    line-height: 1;
}

.pricing-card .frequency {
    font-size: 1.1em;
    color: #777;
    vertical-align: baseline;
    font-weight: 500;
}

.pricing-card .plan-features {
    list-style: none; /* Убираем стандартные маркеры списка */
    padding: 0;
    margin: 0 0 40px 0; /* Отступ снизу от списка */
    text-align: left; /* Выравнивание текста списка влево */
}

.pricing-card .plan-features li {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: #555;
    display: flex;
    align-items: center;
}

.pricing-card .feature-icon {
    font-size: 1.3em;
    margin-right: 12px;
    line-height: 1;
}
/* Стили для галочки (зеленая) */
.pricing-card .feature-icon[class*="10003"] { /* Целевой символ &#10003; */
    color: #28a745; /* Зеленый цвет */
}
/* Стили для крестика (красный) */
.pricing-card .feature-icon[class*="10007"] { /* Целевой символ &#10007; */
    color: #dc3545; /* Красный цвет */
}

/* Стили для кнопки CTA */
.pricing-card .cta-button {
    display: block;
    width: 100%;
    padding: 18px 25px;
    border: none;
    border-radius: 8px;
    background-color: [Ваш_Цвет_Акцента]; /* Используйте основной цвет акцента вашего сайта */
    color: #fff;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    -webkit-appearance: none; /* Для единообразия на разных браузерах */
    -moz-appearance: none;
    appearance: none;
}

.pricing-card .cta-button:hover {
    background-color: [Ваш_Цвет_Акцента_Темнее]; /* Немного темнее при наведении */
    transform: translateY(-2px);
}

/* Стили для выделенной карточки (Featured Plan) */
.pricing-card.featured {
    border: 3px solid [Ваш_Цвет_Акцента]; /* Рамка цветом акцента */
    transform: translateY(-20px); /* Приподнимаем сразу */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15); /* Более сильная тень */
}

.pricing-card.featured .plan-title {
    color: [Ваш_Цвет_Акцента_Темнее]; /* Заголовок цветом акцента */
}

.pricing-card.featured .plan-price .amount {
    color: [Ваш_Цвет_Акцента_Темнее];
}

/* Лента "Популярный" */
.pricing-card .ribbon {
    position: absolute;
    top: 76px;
    right: -32px; /* Выход за пределы карточки */
    background-color: rgba(255, 0, 0, 1.0); /* Цвет ленты */
    color: #fff;
    padding: 8px 30px;
    font-size: 0.9em;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(37deg); /* Поворот ленты */
    transform-origin: 100% 0; /* Ось вращения */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    pointer-events: none; /* Чтобы не мешало кликам */
}

/* Адаптивность для разных размеров экранов */
@media (max-width: 992px) {
    .pricing-card {
        width: calc(50% - 30px); /* Две колонки на средних экранах */
    }
}

@media (max-width: 768px) {
    .pricing-section {
        padding: 60px 15px;
    }

    .pricing-section .section-title {
        font-size: 2.5em;
    }

    .pricing-section .section-subtitle {
        font-size: 1.1em;
        margin-bottom: 40px;
    }

    .pricing-card {
        width: 90%; /* Одна колонка на мобильных */
        max-width: 450px; /* Ограничиваем ширину для больших мобильных */
        padding: 30px 20px;
    }

    .pricing-card.featured {
        transform: translateY(0); /* Убираем подъем для мобильных, чтобы не конфликтовало с прокруткой */
    }

    .pricing-card .plan-title {
        font-size: 1.8em;
    }

    .pricing-card .amount {
        font-size: 3.8em;
    }

    .pricing-card .ribbon {
        top: 64px;
        right: -15px;
        padding: 6px 20px;
        font-size: 0.8em;
    }
}
