/* === Сброс стилей и базовые настройки (стандартные системные шрифты) === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3c72;
    --secondary-color: #09b325;
    --text-color: #2d3748;
    --text-light: #4a5568;
    --bg-light: #f4f7f6;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --gradient-hero: linear-gradient(135deg, #eef2f3 0%, #8e9eab 100%);
    --gradient-text: linear-gradient(45deg, #1e3c72, #2a5298, #02aab0);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.max-width-md { max-width: 750px; }
.text-center { text-align: center; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* === Сетка и структуры === */
.grid-two-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

/* === Хедер с эффектом Apple Glassmorphism === */
.site-header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
}

.logo img {
    border-radius: 6px;
}

.main-nav {
    display: none; /* Mobile First: Скрываем на мобилках */
}

.header-phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 50%;
    color: white;
    text-decoration: none;
}

.svg-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* === Герой-секция === */
.hero-section {
    background: linear-gradient(180deg, #d9e4f5 0%, #f4f7f6 100%);
    padding: 48px 0;
    text-align: center;
}

.hero-content-box {
    max-width: 800px;
    margin: 0 auto;
}

/* Gradient Text Effect */
.gradient-title {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

/* === Заголовки и общие элементы === */
.section-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 24px;
    line-height: 1.2;
}

/* === Карточки услуг === */
.services-section { padding: 40px 0; }
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.service-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.card-img-wrapper img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.service-info { padding: 20px; }
.service-info h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.card-text {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.card-features-list {
    list-style: none;
    margin-bottom: 20px;
}

.card-features-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.card-features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.price-box {
    background: #f7fafc;
    padding: 16px;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
}

.price-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    display: block;
    margin-bottom: 6px;
}

.price-line {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.price-line strong { color: var(--primary-color); font-size: 1.25rem; }
.main-price strong { color: #d94600; font-size: 1.5rem; }
.price-extra { font-size: 0.9rem; color: #4a5568; margin-top: 8px; }
.price-warning { font-size: 0.85rem; color: #c53030; margin-top: 8px; font-weight: 500; }

.info-alert-block {
    background: #ebf8ff;
    border: 1px solid #bee3f8;
    border-radius: 12px;
    padding: 20px;
    margin-top: 32px;
}

.info-alert-block h3 { color: #2b6cb0; margin-bottom: 12px; font-size: 1.1rem; }
.info-alert-block ul { list-style-position: inside; }
.info-alert-block li { font-size: 0.95rem; margin-bottom: 6px; color: #2d3748; }

/* === Калькулятор и Таблица === */
.pricing-calc-section { padding: 40px 0; background: #edf2f7; }
.prices-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.prices-table th, .prices-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.prices-table th { background: var(--primary-color); color: white; font-weight: 600; }
.high-season { background: #fffaf0; font-weight: 600; }

/* Калькулятор Glassmorphism */
.calc-container {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05);
}

.calc-form .form-group { margin-bottom: 16px; }
.calc-form label { display: block; margin-bottom: 6px; font-size: 0.9rem; font-weight: 600; }
.calc-form select, .calc-form input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    background: #fff;
    font-size: 1rem;
}

.checkbox-group { display: flex; align-items: center; gap: 8px; }
.checkbox-group input { width: 18px; height: 18px; }
.calc-result-box {
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: center;
}

.result-text { font-size: 1.2rem; }
.result-text strong { color: var(--secondary-color); font-size: 1.5rem; }

/* === Шаги бронирования === */
.booking-steps-section { padding: 40px 0; background: white; }
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.step-item { text-align: center; padding: 16px; }
.step-num {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-weight: 700;
    font-size: 1.2rem;
}

/* === SEO Текст === */
.seo-content-section { padding: 40px 0; background: #f7fafc; }
.text-content-layout h2 { font-size: 1.4rem; color: var(--primary-color); margin: 20px 0 10px; }
.text-content-layout p { color: var(--text-light); margin-bottom: 12px; font-size: 0.95rem; }
.text-content-layout ul { padding-left: 20px; margin-bottom: 12px; }

/* === Галерея === */
.gallery-section { padding: 40px 0; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.gallery-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* === FAQ и Отзывы === */
.faq-section, .reviews-section { padding: 40px 0; background: #fff; }
.faq-item { margin-bottom: 20px; }
.faq-item h3 { font-size: 1.1rem; color: var(--primary-color); margin-bottom: 6px; }
.review-card { background: var(--bg-light); padding: 20px; border-radius: 12px; font-style: italic; }
.review-author { display: block; margin-top: 10px; font-weight: 600; font-style: normal; }
.yandex-link-wrapper { margin-top: 20px; }

/* === Контакты === */
.contacts-section { padding: 48px 0; background: linear-gradient(180deg, #fff 0%, #d9e4f5 100%); }
.buttons-flex { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }

/* === Кнопки === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    gap: 8px;
}

.btn-primary { background: var(--secondary-color); color: white; }
.btn-secondary { background: var(--primary-color); color: white; width: 100%; }
.btn-outline { border: 2px solid var(--primary-color); color: var(--primary-color); }
.btn-yandex { background: #e51e25; color: white; }
.btn-phone { background: #3182ce; color: white; }
.btn-whatsapp { background: #25d366; color: white; }
.btn-telegram { background: #0088cc; color: white; }
.btn-svg-icon { width: 20px; height: 20px; fill: currentColor; }

/* === Футер === */
.site-footer { background: #1a202c; color: #e2e8f0; padding: 40px 0 20px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 24px; text-align: center; }
.footer-brand { font-size: 1.4rem; font-weight: 700; color: white; }
.footer-docs a { color: #a0aec0; display: block; margin-bottom: 8px; }
.footer-contacts a { color: white; }
.copyright-wrapper { margin-top: 32px; border-top: 1px solid #4a5568; padding-top: 16px; text-align: center; opacity: 0.7; }

/* === Анимация плавного появления Fade-in Up === */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   МЕДИА-ЗАПРОСЫ (Адаптация под Планшеты и Десктопы)
   ========================================================================== */
@media (min-width: 768px) {
    html { font-size: 16px; }
    .section-title { font-size: 2.2rem; }
    .gradient-title { font-size: 3.5rem; }
    
    .main-nav { display: block; }
    .nav-links { display: flex; list-style: none; gap: 20px; }
    .nav-links a { text-decoration: none; color: var(--primary-color); font-weight: 600; }
    .header-phone-icon { display: none; } /* Скрываем круглую трубку на десктопе */

    .grid-two-columns { grid-template-columns: 1.1fr 0.9fr; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(4, 1fr); }
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
    .gallery-card img { height: 180px; }
    .buttons-flex { flex-direction: row; justify-content: center; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); text-align: left; }
    .partner-grid { display: flex; gap: 12px; justify-content: center; }
}


/* ==========================================
   1. ОБЩИЕ СТИЛИ ДЛЯ BODY
   ========================================== */
body {
    padding-bottom: clamp(75px, 15vw, 90px) !important;
}

/* ==========================================
   2. СТИЛИ ДЛЯ ПЕРВОЙ КНОПКИ (.custom-fixed-buttons)
   ========================================== */
.custom-fixed-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 2px solid #ffd900;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: clamp(8px, 2vw, 12px) clamp(8px, 3vw, 10px);
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    animation: customSlideUp 0.5s ease;
}

.custom-contact-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: clamp(6px, 2vw, 8px) clamp(4px, 2vw, 12px);
    border-radius: 12px;
    transition: all 0.3s ease;
    flex: 1;
    margin: 0 5px;
    min-height: clamp(50px, 10vw, 70px);
    background: transparent;
}

.custom-phone-button {
    background: linear-gradient(135deg, #ffd900 0%, #ffed4e 100%);
    color: #000;
}

.custom-telegram-button {
    background: linear-gradient(135deg, #0088cc 0%, #00acee 100%);
    color: white;
}

/* Стили для SVG-иконок */
.custom-icon {
    width: clamp(16px, 4vw, 24px);
    height: clamp(16px, 4vw, 24px);
    margin-bottom: 4px;
    flex-shrink: 0;
}

.custom-contact-button span {
    font-size: clamp(9px, 2.5vw, 14px);
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
}

.custom-phone-number {
    font-weight: 700 !important;
}

/* Адаптив для первой кнопки */
@media (min-width: 769px) {
    .custom-fixed-buttons {
        justify-content: center;
        gap: 30px;
    }
    .custom-contact-button {
        flex: 0 1 auto;
        min-width: 180px;
    }
}

/* ==========================================
   3. СТИЛИ ДЛЯ ВТОРЫХ КНОПОК (.fixed-buttons)
   ========================================== */
.fixed-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 2px solid #ffd900;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: clamp(8px, 2vw, 12px) clamp(8px, 3vw, 10px);
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    animation: customSlideUp 0.5s ease;
}

/* Адаптив для вторых кнопок */
@media (min-width: 769px) {
    .fixed-buttons {
        justify-content: center;
        gap: 30px;
    }
}

/* ==========================================
   4. ДРУГИЕ ВИДЖЕТЫ И СВЕРТЫВАНИЕ
   ========================================== */
@media (max-width: 1024px) {
    .desktop-only {
        display: none;
    }
}

/* ==========================================
   5. cookie-banner
   ========================================== */
    #cookie-banner {
        position: fixed;
        bottom: 95px;
        left: 50%;
        transform: translateX(-50%);
        background: #ffffff;
        box-shadow: 0 4px 25px rgba(0,0,0,0.18);
        padding: 24px 20px;
        display: none;
        flex-direction: column;
        gap: 10px;
        z-index: 99999;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
        font-size: 15px;
        line-height: 1.45;
        border-radius: 12px;
        border: 1px solid #e5e5e5;
        width: 92%;
        max-width: 380px;
    }

    #cookie-banner.show {
        display: flex;
    }

    #cookie-banner p {
        margin: 0 0 10px 0;
        color: #222;
        text-align: center;
    }

    /* Стиль ссылки — такой же цвет, как у зелёной кнопки */
    #cookie-banner a {
        color: #00b795;
        text-decoration: underline;
        transition: color 0.25s ease;
    }

    #cookie-banner a:hover {
        color: #009e80;
    }

    .cookie-buttons {
        display: flex;
        gap: 12px;
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
        padding: 14px 16px;
        border-radius: 10px;
        font-weight: 600;
        font-size: 15.5px;
        cursor: pointer;
        transition: all 0.25s ease;
        border: none;
    }

    .cookie-btn-accept {
        background: #00b795;
        color: white;
    }
    .cookie-btn-accept:hover {
        background: #009e80;
        transform: translateY(-1px);
    }

    /* ==================== ДЛЯ МОБИЛЬНЫХ ==================== */
    @media (max-width: 767px) {
        #cookie-banner {
            bottom: 55px;
            left: 5px;
            right: 5px;
            transform: none;
            padding: 16px 12px;
            width: auto;
            max-width: none;
            font-size: 14px;
            border-radius: 12px;
        }

        #cookie-banner p {
            margin: 0 0 8px 0;
            padding-right: 8px;
            font-size: 14px;
        }

        .cookie-buttons {
            gap: 10px;
        }

        .cookie-btn {
            padding: 12px 14px;
            font-size: 14px;
        }
    }

    /* ==================== ДЛЯ ПК ==================== */
    @media (min-width: 768px) {
        #cookie-banner {
            flex-direction: row;
            align-items: center;
            width: auto;
            min-width: 280px;
            max-width: 380px;
            padding: 14px 20px;
            gap: 16px;
            bottom: 95px;
            left: 20px;
            transform: none;
            border-radius: 12px;
        }

        #cookie-banner p {
            margin: 0;
            text-align: left;
            flex: 1;
            font-size: 13px;
        }

        .cookie-buttons {
            gap: 10px;
            width: auto;
            flex-shrink: 0;
        }

        .cookie-btn {
            flex: none;
            padding: 8px 18px;
            font-size: 13px;
            white-space: nowrap;
        }
    }