/* =========================================
   1. НАСТРОЙКИ И ПЕРЕМЕННЫЕ
   ========================================= */
:root {
    /* Цвета */
    --bg-color: #f7f3ea;
    --text-color: #1a1a1a;
    --accent-color: #ba9b5d;
    --white: #ffffff;
    
    /* Шрифты */
    --font-main: 'Jost', sans-serif;
    --font-title: 'Noto Serif Display', serif;

    /* --- ТИПОГРАФИКА --- */
    /* Desktop: 64px */
    --h-size-d: 64px;  
    /* Mobile: Увеличили до 42px по рекомендации */
    --h-size-m: 42px;  
    --h-line-height: 1.1;

    --text-size-main: 16px;
    --text-size-small: 14px;
    --line-height-body: 1.6;
}

/* =========================================
   2. БАЗОВЫЕ СТИЛИ
   ========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    font-weight: 300;
    font-size: var(--text-size-main);
    line-height: var(--line-height-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; font-size: var(--text-size-main); }

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

/* Универсальный класс заголовков */
.section-title, .hero-title, .about-title, .ph-title, 
.exhale-title, .pe-title, .faq-title, .cta-title {
    font-family: var(--font-title);
    font-size: var(--h-size-d);
    line-height: var(--h-line-height);
    text-transform: uppercase;
    font-weight: 400;
    color: #000;
    margin-bottom: 60px;
    text-align: center;
}

/* =========================================
   3. ШАПКА (HEADER)
   ========================================= */

/* --- МОДИФИКАТОР: Упрощенная шапка (только логотип) --- */
/* Используем на страницах: Политика, Примеры */
.header-inner.header-simple {
    justify-content: center;
    /* Имитируем высоту иконки/меню, чтобы высота шапки была 1-в-1 как на главной */
    min-height: 24px;
}
.header-inner.header-simple .burger-btn,
.header-inner.header-simple .desktop-nav,
.header-inner.header-simple .header-icons {
    display: none !important;
}

header {
    padding: 15px 0;
    background-color: rgba(247, 243, 234, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 2000; /* ШАПКА ВСЕГДА СВЕРХУ */
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Меню (Desktop) */
nav.desktop-nav ul {
    display: flex;
    gap: 30px;
}

nav.desktop-nav a {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--accent-color);
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

nav.desktop-nav a::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
    background-color: #000; transition: width 0.3s ease;
}
nav.desktop-nav a:hover { color: #000; }
nav.desktop-nav a:hover::after { width: 100%; }

/* Логотип (Абсолютный центр) */
.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: max-content;
    z-index: 2;
}

.logo-title {
    font-family: var(--font-title);
    font-size: 28px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
    line-height: 1;
    font-weight: 400;
}

.logo-desc {
    font-size: 11px;
    color: #000;
    display: block;
    margin-top: 5px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Иконки справа */
.header-icons { display: flex; align-items: center; gap: 20px; }
.icon-link {
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-color); transition: all 0.3s ease;
    width: 24px; height: 24px;
}
.icon-link:hover { color: #000; transform: scale(1.1); }

/* Гамбургер (Mobile) */
.burger-btn {
    display: none; /* Скрыт на ПК */
    flex-direction: column;
    justify-content: space-between;
    width: 24px; /* Уменьшили ширину */
    height: 16px; /* Уменьшили высоту */
    background: transparent;
    border: none;
    padding: 0;
    z-index: 102;
}
.burger-btn span {
    width: 100%; height: 1.5px; /* Сделали линии чуть тоньше */ 
    background-color: var(--accent-color);
    transition: all 0.3s ease;
}

/* Мобильное меню (Шторка) */
.mobile-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--bg-color);
    z-index: 1500; /* Меню ниже шапки, но выше контента */
    padding-top: 80px; /* Отступ, чтобы пункты не прятались под шапкой */
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transform: translateX(100%); /* Спрятано справа */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu-overlay.active { transform: translateX(0); }
.mobile-menu-list { text-align: center; display: flex; flex-direction: column; gap: 30px; }
.mobile-menu-list a {
    font-family: var(--font-title); font-size: 32px; color: #000;
    text-transform: uppercase;
}

/* Анимация крестика гамбургера */
.burger-btn.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); } 
.burger-btn.active span:nth-child(2) { opacity: 0; }
.burger-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }


/* =========================================
   4. ПЛАВАЮЩИЕ КНОПКИ (FIXED)
   ========================================= */
.floating-buttons {
    position: fixed; bottom: 30px; right: 20px;
    display: flex; flex-direction: column; gap: 15px; z-index: 990;
}
.float-btn {
    width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}
.float-btn:hover { transform: scale(1.1); }
.float-wa { background-color: #25D366; color: #fff; }
.float-tg { background-color: #0088cc; color: #fff; }

/* =========================================
   5. ГЛАВНЫЙ ЭКРАН (HERO)
   ========================================= */
/* --- Настройки сетки --- */
.hero { padding: 40px 0 100px 0; background-color: var(--bg-color); }
.hero-grid-layout { 
    display: grid; 
    grid-template-columns: 1.2fr 1.4fr 1fr; 
    gap: 40px; 
    align-items: center; 
}

/* --- ЛЕВАЯ КОЛОНКА (Коллаж) --- */
.hero-col-left { display: flex; flex-direction: column; gap: 30px; }
.hero-collage { display: flex; align-items: flex-end; position: relative; margin-bottom: 20px; }

/* Фото 1: Узкое вертикальное (Слева сверху) */
.collage-item-tall {
    width: 50%;           /* Ширина */
    aspect-ratio: 0.6;    /* Пропорции */
    z-index: 2;           /* Слой (выше/ниже) */
    margin-bottom: 0px;   /* Отступ снизу */
    box-shadow: 10px 10px 30px rgba(0,0,0,0.05);
}
.collage-item-tall img { width: 100%; height: 100%; object-fit: cover; }

/* Фото 2: Широкое горизонтальное (Слева снизу) */
.collage-item-wide {
    width: 70%;           /* Ширина */
    aspect-ratio: 1.28;   /* Пропорции */
    margin-left: -20%;    /* Сдвиг влево (наезд на первое фото) */
    margin-bottom: -40px; /* Сдвиг вниз */
    z-index: 1;
    position: relative;
}
.collage-item-wide img { width: 100%; height: 100%; object-fit: cover; }

/* --- ЦЕНТРАЛЬНАЯ КОЛОНКА (Главное фото) --- */
.hero-col-center { display: flex; flex-direction: column; align-items: center; margin-top: 0; }

/* Фото 3: Главное */
.hero-main-image {
    width: 100%;          /* Ширина внутри колонки */
    box-shadow: 0 20px 40px rgba(0,0,0,0.07);
}
.hero-main-image img {
    width: 100%;
    aspect-ratio: 0.83;   /* Пропорции */
    object-fit: cover;
}
.hero-quote { margin-top: 25px; font-family: var(--font-title); font-size: 18px; text-align: center; line-height: 1.5; max-width: 80%; font-style: italic; color: #444; }

/* --- ПРАВАЯ КОЛОНКА (Маленькое фото) --- */
.hero-col-right { display: flex; align-items: center; justify-content: flex-end; }

/* Фото 4: Квадрат справа */
.hero-right-image {
    width: 100%;
    max-width: 300px;     /* Ограничение ширины */
}
.hero-right-image img {
    width: 100%;
    aspect-ratio: 1;      /* Квадрат */
    object-fit: cover;
    box-shadow: -10px 10px 30px rgba(0,0,0,0.05);
}
.hero { padding: 40px 0 100px 0; background-color: var(--bg-color); }
.hero-grid-layout { 
    display: grid; 
    grid-template-columns: 1.2fr 1.4fr 1fr; 
    gap: 40px; 
    align-items: center; 
}
.hero-col-left { display: flex; flex-direction: column; gap: 30px; }
.hero-title { 
    text-align: left; 
    text-transform: uppercase; 
    color: var(--accent-color); 
    padding-left: 0;
    margin-bottom: 20px;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.1;
}
.hero-collage { 
    display: flex; 
    align-items: flex-end; 
    position: relative; 
    margin-bottom: 20px;
}
.collage-item-tall { 
    width: 50%; 
    z-index: 2; 
    box-shadow: 10px 10px 30px rgba(0,0,0,0.05);
}
.collage-item-tall img { 
    width: 100%;
    aspect-ratio: 0.6; /* main_1.jpg */
    object-fit: cover; 
}
.collage-item-wide { 
    width: 70%; 
    margin-left: -20%; 
    margin-bottom: -40px; 
    z-index: 1; 
}
.collage-item-wide img { 
    width: 100%;
    aspect-ratio: 1.28; /* main_2.jpg */
    object-fit: cover; 
}

/* Кнопка Hero */
.hero-link-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 15px; 
    margin-left: 0;
    background-color: transparent; border: 1px solid var(--accent-color); color: var(--accent-color);
    padding: 18px 45px; border-radius: 50px; font-size: var(--text-size-main);
    text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s ease;
    align-self: flex-start;
}
.hero-link-btn:hover { background-color: var(--accent-color); color: #fff; }
.hero-link-btn:hover .arrow-long { transform: translateX(5px); }
.hero-link-btn .arrow-long { transition: transform 0.3s; font-size: 20px; }

.hero-col-center { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    margin-top: 0; 
}
.hero-main-image {
    width: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.07);
}
.hero-main-image img { 
    width: 100%;
    aspect-ratio: 0.83; /* main_3.jpg */
    object-fit: cover; 
}
.hero-quote { 
    margin-top: 25px; 
    font-family: var(--font-title); 
    font-size: 18px; 
    text-align: center; 
    line-height: 1.5; 
    max-width: 80%; 
    font-style: italic;
    color: #444;
}

.hero-col-right { 
    display: flex; 
    align-items: center; 
    justify-content: flex-end;
}
.hero-right-image {
    width: 100%;
    max-width: 300px;
}
.hero-right-image img { 
    width: 100%;
    aspect-ratio: 1; /* main_4.jpg */
    object-fit: cover; 
    box-shadow: -10px 10px 30px rgba(0,0,0,0.05);
}

/* =========================================
   6. О НАС / ФИЛОСОФИЯ / СЕТКИ
   ========================================= */
.about, .philosophy { padding: 100px 0; background: var(--white); }
.about-grid, .philosophy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.philosophy-grid { grid-template-columns: 1.2fr 1fr; }

.about-title { text-align: left; margin-bottom: 40px; }
.about-description, .ph-description { font-style: italic; color: #333; margin-bottom: 30px; }
.about-list, .ph-list { display: flex; flex-direction: column; gap: 40px; }
.about-item { text-align: center; padding: 0 10px; }
.item-num { font-weight: 600; font-size: 20px; margin-bottom: 15px; }
/* --- СЕКЦИЯ "О НАС" (Настройка картинок) --- */
.collage-wrapper { 
    display: grid; 
    grid-template-columns: 1.2fr 0.8fr; 
    grid-template-rows: auto auto; 
    gap: 20px; 
}

/* Фото 1: Портрет (Слева) */
.collage-img-main {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 100%;
    aspect-ratio: 0.67;
    object-fit: cover;
}

/* Фото 2: Маленькое (Справа сверху) */
.collage-img-small {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    align-self: center;
    margin-top: 40px;
}

/* Фото 3: Широкое (Снизу) */
.collage-img-bottom {
    grid-column: 1 / span 2;
    grid-row: 3;
    width: 80%;           /* Можно менять ширину */
    aspect-ratio: 1.2;
    object-fit: cover;
    margin: -50px auto 0; /* Отрицательный отступ поднимает фото вверх */
    z-index: 2;
    border: 5px solid #fff;
}
.collage-img-main { grid-column: 1; grid-row: 1 / span 2; width: 100%; aspect-ratio: 0.67; object-fit: cover; }
.collage-img-small { grid-column: 2; grid-row: 1; width: 100%; align-self: center; margin-top: 40px; }
.collage-img-bottom { grid-column: 1 / span 2; grid-row: 3; width: 80%; aspect-ratio: 1.2; object-fit: cover; margin: -50px auto 0; z-index: 2; border: 5px solid #fff; }

/* Философия сетка */
.ph-logo { display: flex; align-items: center; gap: 15px; margin-bottom: 30px; }
.ph-logo-img { width: 50px; height: auto; object-fit: contain; }
.ph-logo-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.2; }
.ph-logo-main { font-family: var(--font-title); font-size: 20px; color: #000; letter-spacing: 1px; text-transform: uppercase; }
.ph-logo-sub { font-family: var(--font-main); font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: #666; margin-top: 2px; }

.ph-title { margin-bottom: 30px; letter-spacing: 1px; }
/* --- СЕКЦИЯ "ФИЛОСОФИЯ" (Настройка картинок) --- */
.philosophy-collage { 
    display: grid; 
    grid-template-columns: 1fr 0.9fr; 
    grid-template-rows: auto auto; 
    gap: 20px; 
}

/* Фото 1: Высокое (Слева) */
.ph-img-tall {
    grid-column: 1;
    grid-row: 1 / 2;
}
.ph-img-tall img {
    width: 100%;
    aspect-ratio: 0.67;
    object-fit: cover;
}

/* Фото 2: Маленькое (Справа) */
.ph-img-small {
    grid-column: 2;
    grid-row: 1;
    padding-top: 40px;    /* Отступ сверху */
}
.ph-img-small img {
    width: 100%;
    height: auto;
    aspect-ratio: 0.85;
    object-fit: cover;
}

/* Фото 3: Широкое (Снизу) */
.ph-img-wide {
    grid-column: 1 / span 2;
    grid-row: 2;
    width: 85%;           /* Ширина блока */
    margin-top: -80px;    /* Наезд на верхние фото */
    margin-left: auto;    /* Прижато вправо */
    z-index: 2;
}
.ph-img-wide img {
    width: 100%;
    aspect-ratio: 0.67;
    object-fit: cover;
    object-position: top;
    border: 10px solid #fff;
}
.ph-img-tall { grid-column: 1; grid-row: 1 / 2; }
.ph-img-tall img { width: 100%; aspect-ratio: 0.67; object-fit: cover; }
.ph-img-small { grid-column: 2; grid-row: 1; padding-top: 40px; }
.ph-img-small img { width: 100%; height: auto; aspect-ratio: 0.85; object-fit: cover; }
.ph-img-wide { grid-column: 1 / span 2; grid-row: 2; margin-top: -80px; z-index: 2; width: 85%; margin-left: auto; }
.ph-img-wide img { width: 100%; aspect-ratio: 0.67; object-fit: cover; border: 10px solid #fff; object-position: top; }

/* =========================================
   7. СЛАЙДЕР (ИСПРАВЛЕННЫЙ)
   ========================================= */
.trust { padding: 100px 0; background-color: var(--white); }
.slider-wrapper { position: relative; display: flex; align-items: center; justify-content: center; margin-top: 60px; padding: 0 80px; }
.slider-track-container { overflow: hidden; width: 100%; max-width: 1090px; }
.slider-track { display: flex; gap: 20px; transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); }
.trust-card { position: relative; min-width: 350px; height: 350px; overflow: hidden; flex-shrink: 0; }
.trust-bg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.trust-card:hover .trust-bg { transform: scale(1.1); }
.trust-content { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); padding: 30px; display: flex; flex-direction: column; justify-content: space-between; }
.trust-text { color: #fff; font-size: 16px; line-height: 1.5; }

/* ИСПРАВЛЕННЫЕ СТРЕЛКИ (Золотые) */
.slider-arrow {
    background-color: transparent; border: 1px solid var(--accent-color);
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10; transition: all 0.3s ease;
}
.slider-arrow svg path { stroke: var(--accent-color); transition: stroke 0.3s ease; }
.slider-arrow:hover { background-color: var(--accent-color); }
.slider-arrow:hover svg path { stroke: #fff; }
.prev-btn { left: 0; }
.next-btn { right: 0; }
.slider-arrow.disabled { opacity: 0.2; cursor: default; pointer-events: none; border-color: #ccc; }
.slider-arrow.disabled svg path { stroke: #ccc; }

.slider-dots { 
        display: flex; 
        justify-content: center; 
        gap: 12px; 
        margin-top: 20px; /* Уменьшили отступ сверху для мобилки */
        padding-bottom: 20px;
    }
.dot { width: 10px; height: 10px; background-color: #bbb; /* Сделали темнее, чтобы было видно */ margin: 0 4px; border-radius: 50%; cursor: pointer; }
.dot.active { background-color: var(--accent-color); transform: scale(1.2); }

/* =========================================
   8. ОСТАЛЬНЫЕ БЛОКИ
   ========================================= */
/* Выдохнуть */
.exhale { padding: 100px 0; background: var(--white); }
.exhale-list { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 60px; column-gap: 40px; }
.exhale-item { width: 30%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.exhale-circle { font-family: var(--font-title); font-size: 64px; color: rgba(186, 155, 93, 0.4); margin-bottom: 10px; }
.exhale-text { font-family: var(--font-title); font-size: 18px; color: #000; max-width: 350px; }

/* --- ГАЛЕРЕЯ ИЗ 2 ФОТО --- */
.gallery-duo { padding: 100px 0; background: var(--white); }
.gallery-duo-grid { 
    display: grid; 
    grid-template-columns: 0.8fr 1.2fr; /* Пропорции колонок */
    gap: 40px; 
    align-items: center; 
}
/* Левое фото */
.duo-item:nth-child(1) img {
    width: 100%;
    aspect-ratio: 1.26; /* gallery_1.jpg */
    object-fit: cover;
}
/* Правое фото */
.duo-item:nth-child(2) img {
    width: 100%;
    aspect-ratio: 1.2;  /* gallery_2.jpg */
    object-fit: cover;
}
.work-stages, .prices-section, .gallery-scatter, .faq-section, .project-example { padding: 100px 0; background: var(--white); }
/* ЭТАПЫ (Исправлено выравнивание линии) */
.timeline-list { max-width: 900px; margin: 0 auto; padding-left: 0; }
.timeline-item { display: flex; gap: 30px; padding-bottom: 50px; }

.t-num { 
    font-family: var(--font-title); font-size: 20px; 
    width: 40px; text-align: right; margin-top: 2px; 
}

/* Колонка с графикой (точка и линия) */
.t-graphic {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 24px; /* Фиксируем ширину по размеру точки */
    flex-shrink: 0;
}

.t-dot { 
    width: 24px; height: 24px; 
    background: #000; border-radius: 50%; 
    z-index: 2; 
}

.t-line { 
    width: 1px; background: #e0e0e0; 
    position: absolute; 
    top: 20px; /* Начало линии */
    bottom: -50px; /* Тянется до следующего элемента */
    left: 50%; 
    transform: translateX(-50%); 
    z-index: 1; 
}

.t-content { flex-grow: 1; }
.timeline-item:last-child .t-line { display: none; }

.price-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 30px; font-size: 20px; font-weight: 300; }
.price-dots { flex-grow: 1; border-bottom: 1px dashed #000; opacity: 0.4; margin: 0 10px; }

/* --- СТИЛИ ДЛЯ СТРАНИЦЫ УСЛУГ --- */
.service-block { border: 1px solid #e0e0e0; padding: 40px; margin-bottom: 40px; background: #fff; transition: 0.3s; }
.service-block:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-color: var(--accent-color); }
.sb-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.sb-title { font-family: var(--font-title); font-size: 32px; color: var(--accent-color); }
.sb-price { font-size: 24px; font-weight: 400; }
.sb-desc { font-size: 18px; color: #555; margin-bottom: 30px; line-height: 1.6; max-width: 800px; }
.sb-content h3 { font-family: var(--font-title); font-size: 20px; margin-bottom: 15px; text-transform: uppercase; }
.sb-list { list-style: disc; padding-left: 20px; margin-bottom: 30px; color: #333; }
.sb-list li { margin-bottom: 10px; }
.sb-note { font-style: italic; color: #777; margin-bottom: 30px; border-left: 2px solid var(--accent-color); padding-left: 15px; }
/* Ссылка на пример */
.example-link { 
    display: inline-flex; align-items: center; gap: 8px; 
    margin-bottom: 25px; font-size: 15px; 
    text-decoration: none; color: #555; 
    border-bottom: 1px dashed #ccc; padding-bottom: 2px; 
    transition: 0.3s; 
}
.example-link:hover { color: var(--accent-color); border-bottom-color: var(--accent-color); }
.doc-icon { font-size: 18px; }

/* СТИЛИ СЛАЙДЕРА (PREVIEW) */
.swiper { width: 100%; height: 100%; margin-left: auto; margin-right: auto; }
.swiper-slide { background-size: cover; background-position: center; }
/* СТИЛИ СЛАЙДЕРА 3D (COVERFLOW) */
.mySwiper2 { 
    height: 65%; width: 100%; padding-top: 20px; padding-bottom: 20px; 
}

.mySwiper2 .swiper-slide { 
    background-position: center; background-size: cover; 
    width: 60%; /* Центральный слайд занимает 60% ширины */
    height: 100%;
    border-radius: 4px; 
    opacity: 0.4; 
    transform: scale(0.85); 
    transition: all 0.4s ease; 
    position: relative; 
    overflow: hidden;
    box-shadow: none;
}

.mySwiper2 .swiper-slide img { 
    display: block; width: 100%; height: 100%; object-fit: cover; 
}

/* Активный слайд (Центральный) */
.mySwiper2 .swiper-slide-active { 
    opacity: 1; 
    transform: scale(1); 
    z-index: 2; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.15); 
}

/* Адаптив слайдера */
@media (max-width: 768px) {
    .mySwiper2 .swiper-slide { width: 85%; }
}
.thumbs-slider { height: 20%; box-sizing: border-box; padding: 15px 0; }
.thumbs-slider .swiper-slide { width: 25%; height: 100%; opacity: 0.4; cursor: pointer; transition: 0.3s; border: 2px solid transparent; }
.thumbs-slider .swiper-slide img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.thumbs-slider .swiper-slide-thumb-active { opacity: 1; border-color: var(--accent-color); }
.swiper-button-next, .swiper-button-prev { color: var(--accent-color) !important; }

.sb-btn { display: inline-block; padding: 12px 30px; background: #000; color: #fff; text-transform: uppercase; font-size: 14px; letter-spacing: 1px; transition: 0.3s; }
.sb-btn:hover { background: var(--accent-color); }
@media(max-width: 768px) { .sb-header { flex-direction: column; } .sb-title { font-size: 26px; } }

/* =========================================
   ГАЛЕРЕЯ: РУЧНАЯ НАСТРОЙКА (DESKTOP)
   Меняйте значения ниже, чтобы двигать фото
   ========================================= */
.scatter-grid {
    display: grid;
    /* Три колонки разной ширины. Можете менять fr на % или px */
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 30px;
    align-items: start;
}

/* --- 1. ФОТО: ТВ Зона (Левая) --- */
.item-tv {
    grid-column: 1;       /* В какой колонке стоит */
    grid-row: 1;          /* В каком ряду */
    aspect-ratio: 1.1;    /* Пропорция (ширина / высота) */
    width: 100%;          /* Ширина внутри колонки */
    margin-top: 0px;      /* Сдвиг ВНИЗ */
    margin-left: 0px;     /* Сдвиг ВПРАВО */
}

/* --- 2. ФОТО: Столовая (Центр) --- */
.item-dining {
    grid-column: 2;
    grid-row: 1;
    aspect-ratio: 0.83;
    width: 20%;
    margin-top: 60px;     /* Опустили ниже первой */
    margin-left: 0px;
}

/* --- 3. ФОТО: Ванная (Правая) --- */
.item-bedroom-wide {
    grid-column: 3;
    grid-row: 1;
    aspect-ratio: 0.66;
    width: 100%;
    margin-top: 120px;    /* Опустили еще ниже (водопад) */
    margin-right: 0px;
}

/* --- 4. ФОТО: Детали (Левая нижняя) --- */
.item-bed-detail {
    grid-column: 1;
    grid-row: 2;
    aspect-ratio: 1.0;
    width: 90%;           /* Чуть уже колонки */
    margin-top: -50px;    /* Подтянули ВВЕРХ к верхнему фото */
    margin-left: auto;    /* Выравнивание по правому краю колонки */
}

/* --- 5. ФОТО: Балкон (Центр нижняя) --- */
.item-balcony {
    grid-column: 2;
    grid-row: 2;
    aspect-ratio: 0.9;
    width: 100%;
    margin-top: 20px;     /* Небольшой отступ от верхней */
    margin-left: 0px;
}

/* Общие настройки для плавности */
.scatter-item {
    position: relative;
    transition: transform 0.5s ease;
}
.scatter-item:hover {
    transform: translateY(-10px);
}
.scatter-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

/* Игнорируем старый код, который мог остаться ниже: */
.scatter-grid-old {
    display: grid;
    /* Делаем колонки разной ширины: левая широкая, правая узкая */
    grid-template-columns: 1.3fr 1fr 0.9fr;
    gap: 30px;
    align-items: start;
}

/* 1. Левая (ТВ) - Большая и главная */
.item-tv {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 1.1;
}

/* 2. Средняя (Стол) - Смещаем вниз для ритма */
.item-dining {
    grid-column: 2;
    grid-row: 1;
    aspect-ratio: 0.83;
    margin-top: 60px; /* Сдвиг вниз */
}

/* 3. Правая (Ванная) - Высокая, смещаем еще ниже */
.item-bedroom-wide {
    grid-column: 3;
    grid-row: 1 / span 2; /* Занимает высоту */
    aspect-ratio: 0.66;
    margin-top: 120px; /* Эффект водопада */
}

/* 4. Низ левый (Детали) */
.item-bed-detail {
    grid-column: 1;
    grid-row: 2;
    aspect-ratio: 1;
    margin-top: -40px; /* Подтягиваем к верхней */
}

/* 5. Низ средний (Балкон) */
.item-balcony {
    grid-column: 2;
    grid-row: 2;
    aspect-ratio: 0.9;
    /* margin-top наследуется от потока, встанет под столом */
}

.scatter-item {
    width: 100%;
    position: relative;
    transition: transform 0.5s ease;
}
.scatter-item:hover {
    transform: translateY(-10px); /* Легкое всплытие при наведении */
}
.scatter-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

/* === ПРИМЕР ПРОЕКТА (ИСПРАВЛЕННЫЙ) === */
.project-example {
    padding: 100px 0;
    background-color: var(--white);
}

/* Принудительно центрируем содержимое контейнера */
.project-example .container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрирование по горизонтали */
    justify-content: center;
    text-align: center;
}

.pe-title {
    font-family: var(--font-title);
    font-size: 64px;
    color: #000;
    margin-bottom: 40px;
    width: 100%; /* Заголовок на всю ширину */
}

/* Обертка кнопки */
.pe-button-wrapper {
    position: relative;
    display: inline-block;
    margin-top: 30px;
    /* На всякий случай сбрасываем отступы */
    margin-left: auto;
    margin-right: auto;
}

/* Кнопка */
.pe-btn {
    display: inline-block;
    padding: 15px 50px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-family: var(--font-main);
    font-size: var(--text-size-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: transparent;
}

/* Ховер (становится черной) */
.pe-btn:hover {
    border-color: #000;
    color: #000;
}

/* Стрелка */
.pe-arrow {
    position: absolute;
    /* Прижимаем к левому краю кнопки */
    right: 100%; 
    top: 50%;
    /* Сдвигаем чуть выше (-85%) и левее (-15px) */
    transform: translateY(-85%) translateX(-15px); 
    width: 60px;
    height: 60px;
    pointer-events: none;
}

.pe-arrow path {
    stroke: #000;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    .pe-title { font-size: 40px; }
    
    /* Скрываем стрелку на телефоне, чтобы не вылезала за экран */
    .pe-arrow { 
        display: none; 
    }
}

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: start; }
.faq-image-col img { max-height: 900px; object-fit: cover; }
.faq-item { border-bottom: 1px solid #000; }
.faq-question { width: 100%; background: none; border: none; padding: 30px 0; display: flex; justify-content: space-between; }
.faq-q-text { font-size: 18px; font-style: italic; color: #000; }
.faq-answer { max-height: 0; overflow: hidden; transition: 0.3s; }
.faq-answer p { padding-bottom: 30px; color: #444; }

/* CTA и Футер */
.final-cta { padding: 120px 0 150px 0; background: linear-gradient(to bottom, #ffffff 0%, #f7f3ea 100%); text-align: center; }
.cta-title { line-height: 0.9; margin-bottom: 80px; }
.gold-text { color: var(--accent-color); }
.cta-links { display: flex; justify-content: center; gap: 60px; }
.cta-link { text-transform: uppercase; letter-spacing: 1px; color: var(--accent-color); border-bottom: 1px solid var(--accent-color); padding-bottom: 5px; }
.cta-link:hover { color: #000; border-bottom-color: #000; }

footer { background: #f7f3ea; padding-bottom: 50px; text-align: center; }
.footer-brand { margin-bottom: 40px; opacity: 0.8; }
.footer-logo-text { font-size: 24px; color: var(--accent-color); font-family: var(--font-title); margin-bottom: 10px; }
.footer-slogan { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; }
.footer-copy { font-size: 11px; color: #a0a0a0; }
.footer-policy-link { color: #a0a0a0; text-decoration: underline; margin-left: 15px; transition: 0.3s; }
.footer-policy-link:hover { color: var(--accent-color); }

/* Анимация появления (Fade In) */
.fade-in-section { opacity: 1 !important; transform: none !important; }
.fade-in-section .container { opacity: 0; transform: translateY(40px); transition: 0.8s ease-out; }
.fade-in-section.is-visible .container { opacity: 1; transform: translateY(0); }

/* =========================================
   9. АДАПТИВНОСТЬ (MEDIA QUERIES)
   ========================================= */
@media (max-width: 1200px) {
    /* Промежуточный размер для планшетов, чтобы меню не наезжало */
    nav.desktop-nav ul { gap: 15px; }
    .header-inner { padding: 0 10px; }
    
    .slider-wrapper { padding: 0; }
    .slider-arrow { display: none; }
    .slider-track-container { overflow-x: auto; scroll-snap-type: x mandatory; }
    /* СЛАЙДЕР (ФИКС: Прижимаем влево + Выглядывание) */
    .slider-wrapper { 
        display: block !important; /* Убираем flex-центр родителя */
        padding: 0; 
    }
    .slider-track-container { 
        width: 100%; 
        overflow-x: scroll; 
        scroll-snap-type: x mandatory; 
    }
    .slider-track {
        display: flex;
        justify-content: flex-start !important; /* Принудительно влево */
        padding-left: 20px !important; /* Отступ первой карточки от края экрана */
        padding-right: 20px;
        width: max-content; /* Трек растягивается на всю длину карточек */
        gap: 15px;
    }
    .trust-card {
        scroll-snap-align: start; /* Привязка к левому краю */
        min-width: 80vw; /* 80% ширины = 20% видно следующую */
        height: 300px;
        margin-right: 0;
    }
}

@media (max-width: 1024px) {
    /* Чуть уменьшаем заголовки на планшетах */
    :root { --h-size-d: 48px; }
    .hero-grid-layout { gap: 15px; }
}

@media (max-width: 992px) {
    .about-grid, .philosophy-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
    .faq-image-col { display: none; }
    .scatter-grid { gap: 15px; }
    .exhale-item { width: 45%; }
}

@media (max-width: 768px) {
    :root {
        --h-size-d: var(--h-size-m); /* 42px */
        --h3-size-d: var(--h3-size-m);
    }

    /* Шапка - Гамбургер */
    .header-inner { justify-content: space-between; }
    nav.desktop-nav { display: none; } /* Скрываем обычное меню */
    .burger-btn { display: flex; } /* Показываем гамбургер */
    
    /* Логотип возвращаем в поток на мобильном или оставляем по центру */
    .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: max-content;
        margin: 0;
        z-index: 105;
        text-align: center;
    }
    /* Уменьшаем шрифт на телефоне, чтобы не вылезал */
    .logo-title { font-size: 20px; }
    .logo-desc { font-size: 8px; margin-top: 2px; }
    .header-icons { display: none; } /* Скрываем иконки сверху, они есть в меню или плавающие */
    .burger-btn { order: 1; } /* Гамбургер слева */
    /* Можно добавить кнопку звонка справа */
    
    .hero-grid-layout { display: flex; flex-direction: column; gap: 40px; }
    .hero-col-left, .hero-col-center, .hero-col-right { width: 100%; }
    .hero-title { padding-left: 0; text-align: center; }
    .hero-collage { width: 100%; }
    /* Кнопки не на всю ширину, а по центру */
    .hero-link-btn { 
        margin: 0 auto; 
        width: max-content; /* Ширина по тексту */
        min-width: 220px; /* Минимальный размер, чтобы не были крошечными */
    }
    /* Кнопки на странице услуг */
    .sb-btn { 
        width: max-content; 
        margin: 0 auto; 
        display: block; 
        min-width: 200px;
        text-align: center;
    }
    .hero-col-center { order: -1; margin-top: 0; }
    .hero-col-right { padding-bottom: 50px; }

    .about-info { text-align: center; }
    .collage-wrapper { display: block; }
    .collage-img-main { margin-bottom: 20px; }
    .collage-img-small { display: none; }
    .collage-img-bottom { width: 100%; margin-top: 0; border: none; }

    .philosophy-collage { display: flex; flex-direction: column; gap: 20px; }
    .ph-img-wide { margin-top: 0; width: 100%; border: none; }
    .ph-img-small { display: none; } /* Упрощаем коллаж */

    /* КОМПАКТНЫЙ БЛОК ВЫДОХНУТЬ */
    .exhale-list { 
        display: grid; 
        grid-template-columns: 1fr 1fr; /* Две колонки */
        gap: 15px; 
        row-gap: 30px;
    }
    .exhale-item { 
        width: auto; 
        margin-bottom: 0; 
    }
    /* Последний элемент (5-й) по центру */
    .exhale-item:last-child { 
        grid-column: 1 / -1; 
        width: 60%; 
        margin: 0 auto; 
    }
    /* Уменьшаем цифры и текст */
    .exhale-circle { font-size: 42px; margin-bottom: 5px; }
    .exhale-text { font-size: 14px; line-height: 1.3; }
    .gallery-duo-grid { grid-template-columns: 1fr; gap: 30px; }

    .timeline-list { padding-left: 0; }
    .t-num { width: 30px; font-size: 16px; }
    
    /* ЦЕНЫ (Стильные карточки на мобильном) */
    .price-row { 
        flex-direction: column; 
        text-align: center; 
        margin-bottom: 15px; 
        background: #fff; /* Белая подложка */
        padding: 25px 20px; 
        border: 1px solid rgba(186, 155, 93, 0.2); /* Легкая золотая рамка */
        box-shadow: 0 4px 20px rgba(0,0,0,0.03); /* Мягкая тень */
    }
    /* Название услуги */
    .price-row .price-name {
        font-family: var(--font-title);
        font-size: 20px;
        margin-bottom: 5px;
        text-transform: uppercase;
        letter-spacing: 1px;
        display: block;
    }
    /* Цена */
    .price-row .price-cost {
        font-family: var(--font-main);
        font-size: 16px;
        color: var(--accent-color);
        font-weight: 500;
    }
    .price-dots { display: none; }

    /* ГАЛЕРЕЯ НА МОБИЛЬНОМ (Простая колонка) */
    .scatter-grid { 
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .scatter-item {
        width: 100%;
        margin: 0 !important;
    }
    
    .pe-arrow { display: none; }
    .cta-links { flex-direction: column; gap: 30px; }

    /* ФИКС FAQ (Выравнивание слева) */
    .faq-question { 
        text-align: left; 
        align-items: center;
    }
    .faq-q-text { 
        text-align: left; 
        font-size: 16px; 
        line-height: 1.35;
        max-width: 90%; /* Оставляем место для плюсика справа */
    }
}

/* МОДАЛКА (Минимализм - Ссылки) */
.modal-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.4); backdrop-filter: blur(8px); 
    z-index: 2100; /* ВЫШЕ ШАПКИ (2000) */
    display: none; justify-content: center; align-items: center; 
    opacity: 0; transition: opacity 0.4s ease; 
}
.modal-overlay.active { display: flex; opacity: 1; }

.modal-window { 
    background: #fff; width: 100%; max-width: 650px; padding: 60px 40px; 
    position: relative; margin: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.1); 
    transform: translateY(30px); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); 
    border: 1px solid rgba(186, 155, 93, 0.3);
}
.modal-overlay.active .modal-window { transform: translateY(0); }

.modal-close-btn { 
    position: absolute; top: 15px; right: 15px; width: 40px; height: 40px; 
    background: transparent; border: none; color: #000; cursor: pointer; transition: 0.3s; 
}
.modal-close-btn:hover { transform: rotate(90deg); color: var(--accent-color); }

.modal-title { 
    font-family: var(--font-title); font-size: 32px; text-align: center; 
    text-transform: uppercase; margin-bottom: 30px; line-height: 1.1; 
}

.modal-description-block { 
    text-align: center; color: #000; font-size: 16px; 
    margin-bottom: 50px; line-height: 1.6; 
}

.modal-links-row { 
    display: flex; justify-content: center; gap: 40px; 
    flex-wrap: wrap; /* Чтобы на телефоне переносились, если не влезут */
}

.modal-text-link { 
    font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; 
    color: var(--accent-color); border-bottom: 1px solid var(--accent-color); 
    padding-bottom: 5px; transition: 0.3s; white-space: nowrap;
}

.modal-text-link:hover { 
    color: #000; border-bottom-color: #000; 
}

.modal-text-link .arrow { margin-left: 5px; }