/* =========================================
   1. ШРИФТЫ (Mabry Pro)
   ========================================= */
@font-face {
    font-family: "Mabry Pro";
    src: url("https://files.reg.solutions/fonts/mabry-pro/MabryPro-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Mabry Pro";
    src: url("https://files.reg.solutions/fonts/mabry-pro/MabryPro-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Mabry Pro";
    src: url("https://files.reg.solutions/fonts/mabry-pro/MabryPro-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Mabry Pro";
    src: url("https://files.reg.solutions/fonts/mabry-pro/MabryPro-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* =========================================
   2. СБРОС СТИЛЕЙ И БАЗА (Reset CSS)
   ========================================= */
*, :after, :before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid #e5e7eb;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    font-family: "Mabry Pro", Arial, sans-serif;
}

body {
    min-height: 100vh;
    background-color: #FCF7F2;
    color: #232323;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, li {
    list-style: none;
}

button {
    cursor: pointer;
    background-color: transparent;
    font-family: inherit;
}

/* =========================================
   3. CSS ПЕРЕМЕННЫЕ (Цвета и Тема)
   ========================================= */
:root {
    --basic-100: #000;
    --basic-200: #151515;
    --basic-300: #232323;
    --basic-400: #585858;
    --basic-1100: #f7f7f7;
    --basic-1300: #fff;
    
    --accent: #00A0A0;
    --accent-hover: #0aaaaa;
    
    --bg-layout-default: #FCF7F2;
    --bg-header: #F7EDE4;
    --bg-footer: #F7EDE4;
    
    --font-primary: var(--basic-300);
    --font-thertiary: var(--basic-400);
    
    --radius-ms: 8px;
    --radius-m: 10px;
    --radius-l: 12px;
}

/* =========================================
   4. ГЛОБАЛЬНАЯ СЕТКА И КОНТЕЙНЕРЫ
   ========================================= */
.ds-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.ds-packer {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    padding: 32px 16px;
}

@media (min-width: 1024px) {
    .ds-packer {
        padding: 64px calc(50% - 570px);
    }
}

/* =========================================
   5. ШАПКА САЙТА (Header)
   ========================================= */
.lb-header {
    background-color: var(--bg-header);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 1px 2px #2b2d3314, 0 4px 12px #2b2d330a;
}

.lb-header__wrapper {
    height: 72px;
    margin: auto;
    padding: 0 24px;
    max-width: 1280px;
}

.lb-header__content {
    display: flex;
    height: 100%;
    justify-content: space-between;
    align-items: center;
}

.lb-header__group {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Логотип */
.ds-logo {
    display: flex;
    height: 56px;
    max-width: 200px;
}

.ds-logo__image {
    height: 100%;
    object-fit: contain;
}

/* Навигация в шапке */
.ds-menu__list {
    display: flex;
    gap: 32px;
    align-items: center;
}

.ds-menu-item__button, 
.ds-menu-item__link {
    color: var(--font-thertiary);
    font-size: 18px;
    font-weight: 400;
    transition: color 0.2s;
}

.ds-menu-item__button:hover, 
.ds-menu-item__link:hover {
    color: var(--font-primary);
    text-decoration: underline;
}

/* =========================================
   6. КНОПКИ (Buttons)
   ========================================= */
.ds-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-m);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s;
}

.ds-button_size_m {
    padding: 13px 24px;
}

.ds-button_color_primary {
    background-color: var(--accent);
    color: var(--basic-1300);
}

.ds-button_color_primary:hover {
    background-color: var(--accent-hover);
}

/* =========================================
   7. ГЛАВНЫЕ БЛОКИ И ТЕКСТ (Hero & Text)
   ========================================= */
.b-text__text {
    font-size: 20px;
    line-height: 28px;
    color: var(--font-primary);
}

.b-text__insert-title {
    font-weight: 700;
}

.b-cover-hero__wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 40px 0;
}

@media (min-width: 1024px) {
    .b-cover-hero__wrapper {
        flex-direction: row;
        justify-content: space-between;
    }
    .b-cover-hero__wrapper_reverse {
        flex-direction: row-reverse;
    }
}

/* Адаптив шапки для телефонов и планшетов (до 1023px) */
@media (max-width: 1023px) {
    .lb-header {
        position: relative;
    }
    
    .lb-header__wrapper {
        height: auto; 
        padding: 24px 16px;
    }

    .lb-header__content {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .lb-header__group_type_left {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .ds-logo {
        justify-content: center;
    }

    .ds-menu {
        width: 100%;
    }

    .ds-menu__list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 24px;
    }

    .lb-header__group_type_right {
        width: 100%;
    }
    
    .lb-header__buttons, 
    .lb-header__buttons .ds-button {
        width: 100%;
    }
}

.b-cover-hero__gallery {
    border-radius: var(--radius-m);
    overflow: hidden;
    width: 100%;
    max-width: 600px;
}

.b-cover-hero__image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.b-cover-hero__description {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 500px;
}

.b-cover-hero__description h2 {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 700;
    color: var(--font-primary);
    line-height: 1.1;
}

.b-cover-hero__description p {
    font-size: clamp(16px, 3vw, 18px);
    color: var(--font-thertiary);
    line-height: 1.5;
}

@media (max-width: 767px) {
    .ds-packer {
        padding: 24px 16px;
    }
    
    .b-cover-hero__wrapper {
        gap: 24px;
        padding: 24px 0;
    }
}

/* =========================================
   8. ПОДВАЛ (Footer)
   ========================================= */
.lb-footer-column {
    background-color: var(--bg-footer);
    padding: 64px 0 0;
}

/* Общий контейнер (верхняя часть с лого и меню) */
.lb-footer-column__content {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 48px;
}

/* Нижняя полоса с копирайтом */
.lb-footer-column__footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
    border-top: 1px solid #E6D8CC;
    color: var(--font-thertiary);
    font-size: 14px;
}

@media (min-width: 768px) {
    .lb-footer-column__footer {
        flex-direction: row;
    }
}

.lb-footer-column__attachments-item a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* =========================================
   9. СЕТКА КОЛОНОК В ПОДВАЛЕ
   ========================================= */

/* Мобильная версия колонок */
.lb-footer-column__groups {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.lb-footer-column__group-item {
    width: 100%;
}

.lb-footer-column__item-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--font-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lb-footer-column__group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Ссылки в подвале */
.ds-button-ghost {
    display: inline-block;
    color: var(--font-thertiary);
    font-size: 15px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.ds-button-ghost:hover {
    color: var(--accent);
}

/* --- АДАПТИВ ДЛЯ ПЛАНШЕТОВ --- */
@media (min-width: 768px) and (max-width: 1023px) {
    .lb-footer-column__groups {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .lb-footer-column__group-item {
        width: calc(50% - 16px);
    }
}

/* --- АДАПТИВ ДЛЯ ПК (КРАСИВАЯ СЕТКА) --- */
@media (min-width: 1024px) {
    .lb-footer-column__content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    /* Навигация занимает всю правую часть */
    .lb-footer-column__navigation {
        flex: 1;
        max-width: 900px;
    }

    /* Используем CSS Grid для идеального распределения колонок */
    .lb-footer-column__groups {
        display: grid;
        grid-template-columns: 1.5fr 1fr 1fr; 
        gap: 40px;
    }

    .lb-footer-column__group-item {
        width: auto;
    }
}

/* =========================================
   10. COOKIE БАННЕР
   ========================================= */
.ds-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    z-index: 9999;
    
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.ds-cookie-banner.show {
    transform: translateY(0);
}

.ds-cookie-banner__text {
    font-size: 14px;
    color: var(--font-primary);
    text-align: center;
    line-height: 1.4;
}

.ds-cookie-banner__link {
    color: var(--accent);
    text-decoration: underline;
    white-space: nowrap;
}

.ds-cookie-banner__link:hover {
    text-decoration: none;
}

@media (min-width: 1024px) {
    .ds-cookie-banner {
        flex-direction: row;
        justify-content: space-between;
        padding: 16px 64px;
    }
    .ds-cookie-banner__text {
        text-align: left;
    }
}

/* =========================================
   11. ВЫПАДАЮЩЕЕ МЕНЮ (Dropdown)
   ========================================= */
.ds-dropdown-container {
    position: relative;
}

.ds-dropdown-arrow {
    font-size: 10px;
    margin-left: 4px;
    opacity: 0.6;
    transition: transform 0.2s;
}

.ds-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--basic-1300);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-m);
    min-width: 280px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out;
    z-index: 300;
    text-align: center;
}

.ds-dropdown-link {
    display: block;
    padding: 12px 20px;
    color: var(--font-primary);
    font-size: 15px;
    line-height: 1.4;
    transition: background-color 0.2s, color 0.2s;
}

.ds-dropdown-link:hover {
    background-color: var(--bg-header);
    color: var(--accent);
}

@media (min-width: 1024px) {
    .ds-dropdown-container:hover .ds-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
    
    .ds-dropdown-container:hover .ds-dropdown-arrow {
        transform: rotate(180deg);
    }
}

@media (max-width: 1023px) {
    .ds-dropdown-menu {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        box-shadow: none;
        background-color: transparent;
        min-width: 100%;
        display: none;
        padding: 8px 0 0 0;
        margin-top: 4px;
    }

    .ds-dropdown-container:focus-within .ds-dropdown-menu,
    .ds-dropdown-container:active .ds-dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    .ds-dropdown-container:focus-within .ds-dropdown-arrow {
        transform: rotate(180deg);
    }

    .ds-dropdown-link {
        font-size: 14px;
        padding: 8px 16px;
        color: var(--font-thertiary);
    }
}

/* =========================================
   12. МОДАЛЬНОЕ ОКНО ПОЛИТИКИ (Modal)
   ========================================= */
.ds-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Класс для показа окна */
.ds-modal.show {
    opacity: 1;
    visibility: visible;
}

/* Затемнение фона */
.ds-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

/* Основной контейнер окна */
.ds-modal__content {
    position: relative;
    background-color: var(--basic-1300);
    width: 90%;
    max-width: 700px;
    max-height: 85vh; /* Окно не будет больше 85% высоты экрана */
    border-radius: var(--radius-l);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.ds-modal.show .ds-modal__content {
    transform: translateY(0);
}

/* Шапка с заголовком и крестиком */
.ds-modal__header {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ds-modal__header h3 {
    font-size: 20px;
    color: var(--font-primary);
    margin: 0;
}

.ds-modal__close-icon {
    font-size: 28px;
    color: var(--font-thertiary);
    line-height: 1;
    background: none;
    border: none;
    transition: color 0.2s;
}

.ds-modal__close-icon:hover {
    color: var(--accent);
}

/* Текстовый блок (со скроллом) */
.ds-modal__body {
    padding: 24px;
    overflow-y: auto; /* Добавляем прокрутку, если текст не влезает */
    font-size: 15px;
    line-height: 1.5;
    color: var(--font-primary);
}

.ds-modal__body p {
    margin-bottom: 12px;
}

/* Подвал окна с кнопкой */
.ds-modal__footer {
    padding: 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end; /* Кнопка прижата вправо */
}


/* =========================================
   HERO BANNER (Главная страница)
   ========================================= */
.hero-banner {
    position: relative;
    width: 100%;
    /* Высота блока — 80% от высоты экрана, чтобы было видно, что ниже есть контент */
    min-height: 80vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    /* Укажите путь к вашей красивой фотографии водоема или природы */
    background-image: url('../images/hero-bg.webp'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    padding: 40px 16px;
    margin-bottom: 24px;
}

.hero-banner__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Градиентное затемнение: от темного к вашему фирменному бирюзовому */
    background: linear-gradient(135deg, rgba(21, 21, 21, 0.85) 0%, rgba(0, 160, 160, 0.65) 100%);
    z-index: 1;
}

.hero-banner__content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    color: var(--basic-1300); /* Белый текст */
}

.hero-banner__title {
    font-size: clamp(32px, 6vw, 64px); /* Адаптивный размер заголовка */
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3); /* Тень для объема */
}

.hero-banner__subtitle {
    font-size: clamp(16px, 3vw, 22px);
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-banner__actions {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hero-banner__button {
    padding: 16px 32px;
    font-size: 18px;
    box-shadow: 0 4px 20px rgba(0, 160, 160, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-banner__button:hover {
    box-shadow: 0 6px 24px rgba(0, 160, 160, 0.6);
    transform: translateY(-2px); /* Эффект "поднятия" при наведении */
}

.hero-banner__link {
    color: var(--basic-1300);
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    border-bottom: 1px dashed var(--basic-1300);
    transition: color 0.2s, border-color 0.2s;
}

.hero-banner__link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* =========================================
   СТРАНИЦА КОНТАКТОВ
   ========================================= */
.contacts-title {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 700;
    color: var(--font-primary);
    margin-bottom: 40px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

/* На экранах от планшета и шире делаем 2 колонки */
@media (min-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr 1.5fr; /* Карта будет чуть шире блока с текстом */
        align-items: stretch;
    }
}

.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-block {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.contact-block__label {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--font-thertiary);
    margin-bottom: 8px;
}

.contact-block__value {
    font-size: 18px;
    line-height: 1.5;
    color: var(--font-primary);
}

.contact-block__link {
    color: var(--accent);
    font-weight: 700;
    font-size: 24px;
    transition: color 0.2s;
}

.contact-block__link_email {
    font-size: 20px;
    font-weight: 500;
}

.contact-block__link:hover {
    color: var(--accent-hover);
}

/* Контейнер для карты */
.contacts-map {
    width: 100%;
    min-height: 400px;
    border-radius: var(--radius-l); /* Скругляем углы карты как у других элементов на сайте */
    overflow: hidden;
    border: 1px solid #E6D8CC;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}