/* ============================================================
   HOME — стили главной страницы
   ============================================================ */

 /* ============================================================
   ЛОКАЛЬНЫЕ ШРИФТЫ
   ============================================================ */

/* --- Manrope --- */
@font-face {
    font-family: 'Manrope';
    src: url('/fonts/manrope-v20-cyrillic_latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('/fonts/manrope-v20-cyrillic_latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* --- Inter --- */
@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter-v20-cyrillic_latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter-v20-cyrillic_latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --- Old Standard TT --- */
@font-face {
    font-family: 'Old Standard TT';
    src: url('/fonts/old-standard-tt-v22-cyrillic_latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Old Standard TT';
    src: url('/fonts/old-standard-tt-v22-cyrillic_latin-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* ------------------------------------------------------------
   ПЕРЕМЕННЫЕ
   ------------------------------------------------------------ */
:root {
    /* Цвета */
    --text:            #292a2d;
    --text-dark:       #26363e;
    --text-muted:      #8e8e8f;
    --accent:          #bf946e;
    --accent-light:    #c8a47e;
    --accent-hover:    #e6c99f;
    --bg-soft:         #f9f8f6;
    --bg-hero:         #e8e4de;
    --bg-icon:         #f5f3ef;

    /* Радиусы */
    --radius-sm:  16px;
    --radius-md:  20px;
    --radius-lg:  30px;
    --radius-xl:  38px;
    --radius-pill: 999px;

    /* Размеры */
    --container:   1312px;
    --section-pad: 80px 64px;

    /* Шрифты */
    --font-serif: 'Times New Roman', serif;
    --font-sans:  'Manrope', sans-serif;

    /* Тени (Google-style) */
    --shadow-card:
        0 1px 2px rgba(60, 64, 67, 0.08),
        0 2px 6px rgba(60, 64, 67, 0.06),
        0 8px 20px rgba(60, 64, 67, 0.08);
    --shadow-card-hover:
        0 1px 2px rgba(60, 64, 67, 0.10),
        0 4px 10px rgba(60, 64, 67, 0.08),
        0 12px 28px rgba(60, 64, 67, 0.10);
}

/* ------------------------------------------------------------
   СБРОС
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: #fff;
}

img { max-width: 100%; display: block; }

/* ------------------------------------------------------------
   ОБЩИЕ УТИЛИТЫ СЕКЦИЙ
   (групповые селекторы — HTML менять не нужно)
   ------------------------------------------------------------ */

/* Внутренний контейнер сетки */
.courtyard-inner,
.nearby-inner,
.details-inner,
.arch-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    gap: 30px;
    align-items: start;
}

/* Заголовок секции (Times New Roman 60/65) */
.courtyard-title,
.nearby-title,
.details-title,
.arch-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 60px;
    line-height: 65px;
    letter-spacing: -0.6px;
    color: var(--text);
}

/* Описание секции (Manrope SemiBold 20/30) */
.nearby-address,
.details-desc,
.arch-desc {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
    color: var(--text);
}

/* ============================================================
   HERO
   ============================================================ */
/* ============================================================
   HERO — с LQIP-подложкой и AVIF/WebP
   ============================================================ */
.hero {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    aspect-ratio: 1440 / 766;
    overflow: hidden;
    /* Доминантный цвет — замени на средний цвет твоей картинки */
    background: #a8b0b8;
}

/* LQIP — крошечная размытая копия, видна МГНОВЕННО */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('data:image/webp;base64,UklGRr4AAABXRUJQVlA4ILIAAACQBACdASoYAA0APpE6mEeloyKhMAgAsBIJYwCxDIjgtxgTwkK8bR3fFaOrUiQA/vUgluCV8TnPNF7gW0DdTOlzeNNppWTrdcJ7gOCYXnIg+IwsnqdD8N4Mni6+P7yoABODLMnP2T5L+i4zsVqL9i8D+PF2aUVDll98jMJ8Eds4F5P9rnW9juLECdxOvsGaJAccz/G/XdJcgp6G48a4bw1Oe+/G2NvAiHNohAsgwWmnDgAA');
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    transform: scale(1.1);
}

/* Полная картинка — плавно проявляется поверх LQIP */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-size: cover;
    background-position: center;
    /* Fallback для старых браузеров */
    background-image: url('/images/home/uytnoe_kvartiry_evpatoria.webp');
    /* AVIF для современных браузеров */
    background-image: image-set(
        url('/images/home/uytnoe_kvartiry_evpatoria.avif') type('image/avif'),
        url('/images/home/uytnoe_kvartiry_evpatoria.webp') type('image/webp')
    );
    /* Начинаем невидимым — проявляемся с задержкой */
    opacity: 0;
    animation: heroFadeIn 0.7s ease 0.15s forwards;
}

@keyframes heroFadeIn {
    to { opacity: 1; }
}

.hero-circle {
    position: absolute;
    left: -24.1%;
    top: -46.3%;
    width: 73.3%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1.5px solid var(--accent-light);
    z-index: 2;
    pointer-events: none;
}

.hero-logo {
    position: absolute;
    left: 4.51%;
    top: 3.26%;
    width: 13.75%;
    z-index: 10;
}
.hero-logo img { width: 100%; height: auto; }

.hero-menu {
    position: absolute;
    left: 22.57%;
    top: 3.78%;
    right: 4.51%;
    height: 6.53%;
    background: #fff;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2%;
    z-index: 10;
}
.hero-menu a {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: clamp(11px, 1.11vw, 16px);
    color: var(--text-dark);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.hero-menu a:hover { opacity: 0.7; }

.hero-title {
    position: absolute;
    left: 4.44%;
    top: 28.06%;
    width: 44.72%;
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(28px, 6.67vw, 96px);
    line-height: 0.96;
    letter-spacing: -0.01em;
    color: var(--text-dark);
    z-index: 10;
    margin: 0;
}

.hero-button {
    position: absolute;
    left: 4.51%;
    top: 70.36%;
    width: clamp(240px, 21.11%, 340px);
    height: clamp(48px, 6.53%, 64px);
    background: #eed6b5;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(4px, 0.4vw, 6px) 0 clamp(20px, 2.7vw, 40px);
    gap: 12px;
    z-index: 10;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: background 0.2s, transform 0.15s;
}
.hero-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}
.hero-button span:first-child {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: clamp(15px, 1.39vw, 20px);
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hero-button .arrow-circle {
    width: clamp(34px, 2.64vw, 38px);
    height: clamp(34px, 2.64vw, 38px);
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    aspect-ratio: 1;
}
.hero-button .arrow-circle img {
    width: 42%;
    height: auto;
    display: block;
}

/* ============================================================
   FEATURES BAR
   ============================================================ */
.features-bar {
    position: relative;
    max-width: var(--container);
    margin: 32px auto 60px;
    padding: 24px 32px;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid #e8eaed;
    border-top-color: #dadce0;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: box-shadow 0.2s ease;
}
.features-bar:hover {
    box-shadow: var(--shadow-card-hover);
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.feature-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-icon);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.feature-icon img { width: 26px; height: 26px; object-fit: contain; }

.feature-icon--text {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    color: #786c5d;
    line-height: 1;
}
.feature-icon--ruble { position: relative; }
.feature-icon--ruble::after {
    content: '−';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    color: #786c5d;
}

.feature-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.feature-text .ft-title {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 18px;
    line-height: 22px;
    color: #222;
}
.feature-text .ft-desc {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.16px;
    color: #222;
}

/* ============================================================
   COURTYARD — «Всё важное — прямо во дворе»
   ============================================================ */
.courtyard {
    padding: 40px 64px 80px;
    background: #fff;
}
.courtyard-inner { grid-template-columns: 445fr 867fr; gap: 0; }

.courtyard-content { padding-top: 55px; padding-right: 40px; }
.courtyard-title { margin: 0 0 74px 0; }

.courtyard-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.courtyard-list li {
    display: flex;
    align-items: center;
    gap: 19px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
    color: var(--text);
}

.courtyard-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.courtyard-icon img { width: 14px; height: 14px; object-fit: contain; }

.courtyard-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    object-fit: cover;
}

/* ============================================================
   NEARBY — «Всё, что нужно рядом»
   ============================================================ */
.nearby {
    background: var(--bg-soft);
    padding: 66px 64px 80px;
}
.nearby-inner { grid-template-columns: 445fr 867fr; }

.nearby-title { margin: 0 0 60px 0; max-width: 419px; }

.nearby-address {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 33px;
    margin-bottom: 50px;
}
.nearby-pin {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.nearby-pin img { width: 100%; height: 100%; object-fit: contain; }

.nearby-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    height: 50px;
    padding: 0 6px 0 40px;
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.nearby-button:hover { background: #f5ede3; transform: translateY(-2px); }
.nearby-button > span:first-child {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
    color: var(--accent);
    white-space: nowrap;
}
.nearby-button-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.nearby-button-circle img { width: 12.6px; height: auto; }

.nearby-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.nearby-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
}
.nearby-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}
.nearby-card-image {
    width: 100%;
    aspect-ratio: 287 / 253;
    overflow: hidden;
}
.nearby-card-image img { width: 100%; height: 100%; object-fit: cover; }

.nearby-card-body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.nearby-card-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 24px;
    line-height: 1.1;
    color: var(--text);
    margin: 0;
}
.nearby-card-text {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 13.7px;
    line-height: 20.5px;
    color: var(--text);
    margin: 0;
}

/* ============================================================
   DETAILS — «Дом в деталях»
   ============================================================ */
.details { padding: var(--section-pad); background: #fff; }
.details-inner { grid-template-columns: 445fr 867fr; }

.details-title { margin: 0 0 50px 0; }
.details-desc  { margin: 0 0 84px 0; }

.details-tabs { display: flex; gap: 25px; flex-wrap: wrap; }
.details-tab {
    background: none;
    border: none;
    padding: 0 0 4px 0;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 16px;
    line-height: 26px;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}
.details-tab:hover { color: var(--text); }
.details-tab.active { color: var(--text); }
.details-tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: var(--accent-light);
}

.details-gallery {
    display: grid;
    grid-template-columns: 532fr 309fr;
    gap: 26px;
    align-items: stretch;
}
.details-gallery-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 532 / 453;
}
.details-gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.details-gallery-side {
    display: grid;
    grid-template-rows: 221fr 222fr;
    gap: 10px;
}
.details-gallery-small {
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.details-gallery-small img { width: 100%; height: 100%; object-fit: cover; }

.details-wide {
    max-width: var(--container);
    margin: 83px auto 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 1312 / 472;
}
.details-wide img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   ARCH — «Современная архитектура»
   ============================================================ */
.arch { padding: var(--section-pad); background: #fff; }
.arch-inner {
    grid-template-columns: 531fr 644fr;
    gap: 137px;
    align-items: center;
}

.arch-title { margin: 0 0 50px 0; }
.arch-desc  { max-width: 531px; }

.arch-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 644 / 508;
}
.arch-image img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   АДАПТИВ — ПЛАНШЕТЫ (≤1200px)
   ============================================================ */
@media (max-width: 1200px) {
    /* Hero */
    .hero { aspect-ratio: 1440 / 900; }
    .hero-title { font-size: clamp(28px, 5.5vw, 72px); }
    .hero-menu { padding: 0 1.5%; }
    .hero-menu a { font-size: clamp(10px, 1.05vw, 14px); }

    /* Features */
    .features-bar {
        max-width: calc(100% - 40px);
        margin: 24px 20px 40px;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 20px;
        padding: 20px 24px;
    }
    .feature { flex: 1 1 calc(33.33% - 14px); min-width: 200px; }

    /* Общие заголовки/описания */
    .courtyard-title,
    .nearby-title,
    .details-title,
    .arch-title { font-size: 48px; line-height: 52px; }

    .nearby-address,
    .details-desc,
    .arch-desc { font-size: 18px; line-height: 26px; }

    /* Courtyard */
    .courtyard { padding: 40px 40px 60px; }
    .courtyard-title { margin-bottom: 40px; }
    .courtyard-content { padding-top: 40px; }
    .courtyard-list li { font-size: 18px; line-height: 26px; }

    /* Nearby */
    .nearby { padding: 50px 40px 60px; }
    .nearby-title { margin-bottom: 40px; }
    .nearby-address { margin-bottom: 36px; }
    .nearby-button > span:first-child { font-size: 18px; }
    .nearby-cards { gap: 12px; }
    .nearby-card-body { padding: 16px 18px 18px; }
    .nearby-card-title { font-size: 20px; }
    .nearby-card-text { font-size: 13px; line-height: 18px; }

    /* Details */
    .details { padding: 60px 40px; }
    .details-title { margin-bottom: 30px; }
    .details-desc { margin-bottom: 50px; }
    .details-tab { font-size: 15px; }
    .details-gallery { gap: 18px; }
    .details-wide { margin-top: 50px; border-radius: 28px; }

    /* Arch */
    .arch { padding: 60px 40px; }
    .arch-inner { gap: 60px; }
    .arch-title { margin-bottom: 30px; }
    .arch-image { border-radius: 24px; }
}

/* ============================================================
   АДАПТИВ — МАЛЫЕ ПЛАНШЕТЫ (≤992px)
   ============================================================ */
@media (max-width: 992px) {
    /* Hero */
    .hero { aspect-ratio: auto; min-height: 620px; }
    .hero-menu { display: none; }
    .hero-logo { left: 24px; top: 24px; width: 160px; }
    .hero-title {
        left: 24px;
        right: 24px;
        top: auto;
        bottom: 180px;
        width: auto;
        font-size: clamp(36px, 6vw, 64px);
        line-height: 1.02;
    }
    .hero-button {
        left: 24px;
        right: 24px;
        bottom: 60px;
        top: auto;
        width: auto;
        max-width: 340px;
        height: 56px;
        padding: 0 8px 0 24px;
    }
    .hero-button span:first-child { font-size: 17px; }
    .hero-circle { left: -30%; top: -30%; width: 90%; }

    /* Features */
    .features-bar { flex-wrap: wrap; gap: 16px; }
    .feature { flex: 1 1 calc(50% - 8px); min-width: 220px; }

    /* Все секции — в столбик */
    .courtyard-inner,
    .nearby-inner,
    .details-inner,
    .arch-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Общие заголовки */
    .courtyard-title,
    .nearby-title,
    .details-title,
    .arch-title { font-size: 40px; line-height: 44px; }

    .nearby-address,
    .details-desc,
    .arch-desc { font-size: 18px; line-height: 26px; }

    /* Courtyard */
    .courtyard-content { padding-top: 0; padding-right: 0; order: 2; }
    .courtyard-image { order: 1; }
    .courtyard-title { margin-bottom: 40px; }
    .courtyard-image img { border-radius: var(--radius-md); }

    /* Nearby */
    .nearby-title { margin-bottom: 30px; }
    .nearby-address { margin-left: 0; margin-bottom: 30px; }

    /* Details */
    .details-desc { margin-bottom: 30px; }
    .details-gallery { grid-template-columns: 1fr; gap: 12px; }
    .details-gallery-main { aspect-ratio: 16 / 10; }
    .details-gallery-side {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 12px;
    }
    .details-gallery-small { aspect-ratio: 16 / 10; }
    .details-wide { border-radius: var(--radius-md); }

    /* Arch */
    .arch-desc { max-width: none; }
}

/* ============================================================
   АДАПТИВ — МОБИЛЬНЫЕ (≤768px)
   ============================================================ */
@media (max-width: 768px) {
    .nearby { padding: 40px 20px 50px; }
    .nearby-title { font-size: 32px; line-height: 36px; }
    .nearby-cards { grid-template-columns: 1fr; gap: 16px; }
    .nearby-card-image { aspect-ratio: 16 / 10; }
    .nearby-card-body { padding: 18px 20px 22px; }
    .nearby-card-title { font-size: 22px; }
    .nearby-card-text { font-size: 14px; line-height: 20px; }
    .nearby-button {
        width: 100%;
        justify-content: space-between;
        padding: 0 6px 0 24px;
    }
}

/* ============================================================
   АДАПТИВ — ТЕЛЕФОНЫ (≤576px)
   ============================================================ */
@media (max-width: 576px) {
    /* Hero */
    .hero { min-height: 560px; }
    .hero-logo { left: 16px; top: 16px; width: 130px; }
    .hero-title {
        left: 16px;
        right: 16px;
        bottom: 150px;
        font-size: clamp(28px, 8vw, 40px);
        line-height: 1.05;
    }
    .hero-button {
        left: 16px;
        right: 16px;
        bottom: 30px;
        max-width: none;
        height: 52px;
        padding: 0 6px 0 18px;
    }
    .hero-button span:first-child { font-size: 15px; }

    /* Features */
    .features-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 20px;
        margin: 20px 12px 40px;
        border-radius: var(--radius-md);
    }
    .feature { flex: 1 1 100%; min-width: 0; }
    .feature-icon { width: 40px; height: 40px; }
    .feature-icon img { width: 22px; height: 22px; }
    .feature-icon--text { font-size: 20px; }
    .feature-text .ft-title { font-size: 16px; line-height: 20px; }
    .feature-text .ft-desc { font-size: 14px; line-height: 18px; }

    /* Общие заголовки */
    .courtyard-title,
    .nearby-title,
    .details-title,
    .arch-title { font-size: 30px; line-height: 34px; }

    .nearby-address,
    .details-desc,
    .arch-desc { font-size: 16px; line-height: 22px; }

    /* Courtyard */
    .courtyard { padding: 24px 16px 40px; }
    .courtyard-title { margin-bottom: 28px; }
    .courtyard-list { gap: 12px; }
    .courtyard-list li { font-size: 16px; line-height: 22px; gap: 14px; }
    .courtyard-icon { width: 26px; height: 26px; }
    .courtyard-icon img { width: 12px; height: 12px; }
    .courtyard-image img { border-radius: var(--radius-sm); }

    /* Nearby */
    .nearby { padding: 30px 16px 40px; }
    .nearby-title { font-size: 28px; line-height: 32px; }
    .nearby-address { font-size: 16px; line-height: 22px; gap: 10px; }
    .nearby-pin { width: 24px; height: 24px; }
    .nearby-button > span:first-child { font-size: 16px; }
    .nearby-button-circle { width: 34px; height: 34px; }

    /* Details */
    .details { padding: 40px 16px; }
    .details-title { margin-bottom: 20px; }
    .details-desc { margin-bottom: 24px; }
    .details-tab { font-size: 14px; }
    .details-tabs { gap: 16px; }
    .details-gallery-main,
    .details-gallery-small,
    .details-wide { border-radius: var(--radius-sm); }
    .details-wide { margin-top: 30px; }

    /* Arch */
    .arch { padding: 40px 16px; }
    .arch-title { margin-bottom: 20px; }
    .arch-image { border-radius: var(--radius-sm); }
}
/* ============================================================
   ARCH MATERIALS — сетка материалов (продолжение arch)
   ============================================================ */
.arch-materials {
    max-width: var(--container);
    margin: 80px auto 0;
    display: grid;
    grid-template-columns: 533fr 755fr;
    gap: 24px;
    align-items: start;
}

/* --- Левая колонка: одно большое фото --- */
.arch-materials-photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 533 / 626;
}
.arch-materials-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Правая колонка: сетка 2×2 с фиксированными пропорциями --- */
.arch-materials-grid {
    display: grid;
    grid-template-columns: 421fr 310fr;
    grid-template-rows: 336fr 269fr;      /* ← пропорции рядов */
    gap: 21px 24px;
    aspect-ratio: 755 / 626;              /* ← вся сетка 755×626 */
}

.arch-materials-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}
.arch-materials-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Нижний правый угол — под текстом */
.arch-materials-item--c { z-index: 1; }

/* --- Нижний левый блок: thumbs + текст --- */
.arch-materials-bottom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;       /* ← thumbs сверху, текст снизу */
    gap: 20px;
    position: relative;
    z-index: 2;
    align-self: stretch;                  /* ← ключ: растянуть на высоту ячейки */
    min-width: 0;                         /* ← ключ: не дать тексту распирать колонку */
    min-height: 0;
}

.arch-materials-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    flex-shrink: 0;
}
.arch-materials-item--thumb {
    aspect-ratio: 127 / 162;
}

.arch-materials-text {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 19px;                 /* было 20 → чуть уже */
    line-height: 28px;               /* было 30 → текст влезает в 3 строки */
    letter-spacing: -0.2px;          /* чуть плотнее — как в Figma */
    color: var(--text);
    margin: 0;
    width: 531px;
    max-width: none;
    /* страховка: если всё равно не влезет — обрежется, а не сдвинет соседей */
    max-height: 84px;                /* 3 строки × 28 = 84 */
    overflow: hidden;
}

/* --- Адаптив --- */
@media (max-width: 1200px) {
    .arch-materials { margin-top: 60px; gap: 18px; }
    .arch-materials-grid { gap: 16px 18px; }
    .arch-materials-thumbs { gap: 12px; }
    .arch-materials-text { font-size: 18px; line-height: 26px; width: 100%; max-width: 531px; }
    .arch-materials-photo,
    .arch-materials-item { border-radius: 24px; }
}

@media (max-width: 992px) {
    .arch-materials { grid-template-columns: 1fr; gap: 24px; }
    .arch-materials-photo { aspect-ratio: 16 / 10; }
    .arch-materials-grid {
        aspect-ratio: auto;
        grid-template-columns: 421fr 310fr;
        grid-template-rows: auto auto;
    }
    .arch-materials-item--a { aspect-ratio: 421 / 336; }
    .arch-materials-item--b { aspect-ratio: 310 / 336; }
    .arch-materials-item--c { aspect-ratio: 310 / 269; }
    .arch-materials-text { width: auto; max-width: none; }
}

@media (max-width: 576px) {
    .arch-materials { margin-top: 40px; gap: 16px; }
    .arch-materials-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .arch-materials-thumbs { gap: 8px; }
    .arch-materials-text { font-size: 16px; line-height: 22px; }
    .arch-materials-photo,
    .arch-materials-item { border-radius: var(--radius-sm); }
}
/* ============================================================
   LAYOUTS — «Выберите свою планировку»
   ============================================================ */
.layouts {
    padding: var(--section-pad);
    background: #f9f7f8;
}

.layouts-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 445fr 422fr 421fr;
    gap: 20px;
    align-items: start;
}

/* --- Блок заголовка + табов (первая ячейка сетки) --- */
.layouts-header {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.layouts-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 60px;
    line-height: 65px;
    letter-spacing: -0.6px;
    color: var(--text);
    margin: 0;
    max-width: 445px;
}

/* --- Табы --- */
.layouts-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 20px;
}

.layouts-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 40px;
    border: 2px solid #6e4a1a;
    border-radius: 30px;
    background: transparent;
    color: #6e4a1a;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
}
.layouts-tab:hover:not(.active) {
    background: #f5ede3;
}
.layouts-tab.active {
    background: #eed6b5;
    border-color: #eed6b5;
}

/* --- Карточка --- */
.layouts-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    aspect-ratio: 422 / 375;
    animation: layoutsFadeIn 0.3s ease;
}

@keyframes layoutsFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.layouts-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.layouts-card-type {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 25px;
    background: #eed6b5;
    border-radius: 43px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    color: #6e4a1a;
    white-space: nowrap;
}

.layouts-card-area {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    color: #222;
    white-space: nowrap;
}

.layouts-card-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
}
.layouts-card-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.layouts-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.layouts-card-price {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 26px;
    line-height: 1;
    color: #222;
    white-space: nowrap;
}

.layouts-card-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #eed6b5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.layouts-card-arrow:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}
.layouts-card-arrow img {
    width: 14px;
    height: auto;
    display: block;
}

/* Скрытая карточка — вылетает из потока, grid перестраивается */
.layouts-card.is-hidden {
    display: none;
}

/* --- Адаптив --- */
@media (max-width: 1200px) {
    .layouts { padding: 60px 40px; }
    .layouts-grid { gap: 16px; }
    .layouts-header { gap: 36px; }
    .layouts-title { font-size: 44px; line-height: 48px; }
    .layouts-tabs { gap: 14px 16px; }
    .layouts-tab { padding: 0 28px; font-size: 17px; height: 44px; }
    .layouts-card { padding: 16px; gap: 10px; border-radius: 24px; }
    .layouts-card-price { font-size: 22px; }
    .layouts-card-arrow { width: 34px; height: 34px; }
    .layouts-card-arrow img { width: 12px; }
}

@media (max-width: 992px) {
    .layouts-title { font-size: 38px; line-height: 42px; }
    .layouts-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .layouts-tab { font-size: 15px; padding: 0 22px; height: 42px; }
}

@media (max-width: 768px) {
    .layouts { padding: 40px 16px; }
    .layouts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .layouts-header { gap: 24px; }
    .layouts-title { font-size: 30px; line-height: 34px; }
    .layouts-tabs { gap: 10px; }
    .layouts-tab { font-size: 14px; padding: 0 18px; height: 38px; }
    .layouts-card { aspect-ratio: auto; border-radius: var(--radius-md); }
    .layouts-card-image { aspect-ratio: 1 / 1; }
    .layouts-card-price { font-size: 20px; }
    .layouts-card-type { font-size: 13px; height: 26px; padding: 0 16px; }
    .layouts-card-area { font-size: 14px; }
}
/* ============================================================
   ARCH WIDE — «Современная архитектура» (широкий блок)
   ============================================================ */
.arch-wide {
    padding: var(--section-pad);
    background: #fff;
}

.arch-wide-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 56px;
}

/* --- Верхний ряд: заголовок + описание --- */
.arch-wide-header {
    display: flex;
    align-items: flex-end;
    gap: 25px;
}

.arch-wide-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 80px;
    line-height: 80px;
    letter-spacing: -0.8px;
    color: var(--text);
    margin: 0;
    max-width: 976px;
    flex-shrink: 0;
}

.arch-wide-desc {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
    color: var(--text);
    margin: 0;
    flex: 1;
    min-width: 0;
}

/* --- Широкое фото --- */
.arch-wide-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 1312 / 472;
}
.arch-wide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Адаптив --- */
@media (max-width: 1200px) {
    .arch-wide { padding: 60px 40px; }
    .arch-wide-inner { gap: 40px; }
    .arch-wide-title { font-size: 60px; line-height: 62px; letter-spacing: -0.6px; max-width: none; }
    .arch-wide-header { gap: 20px; }
    .arch-wide-image { border-radius: 28px; }
}

@media (max-width: 992px) {
    .arch-wide-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .arch-wide-title { font-size: 44px; line-height: 48px; }
    .arch-wide-desc { max-width: none; }
}

@media (max-width: 576px) {
    .arch-wide { padding: 40px 16px; }
    .arch-wide-inner { gap: 24px; }
    .arch-wide-title { font-size: 30px; line-height: 34px; letter-spacing: -0.3px; }
    .arch-wide-desc { font-size: 16px; line-height: 22px; }
    .arch-wide-image { border-radius: var(--radius-md); aspect-ratio: 16 / 9; }
}
/* ============================================================
   MORNING — «Начните день без спешки»
   ============================================================ */
.morning {
    padding: var(--section-pad);
    background: #fff;
}

.morning-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 24px;
    align-items: start;
}

/* ---------- Левая колонка ---------- */
.morning-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 0;
}

.morning-photo {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1010 / 802;
}
.morning-photo > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Оверлей с заголовком и описанием поверх фото */
.morning-overlay {
    position: absolute;
    top: 46px;
    left: 32px;
    right: 32px;
    color: var(--text);
    pointer-events: none;
}

.morning-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 80px;
    line-height: 80px;
    letter-spacing: -0.8px;
    color: var(--text);
    margin: 0 0 30px 0;
    max-width: 700px;
}

.morning-desc {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
    color: var(--text);
    margin: 0;
}

/* Ссылка под фото */
.morning-link {
    display: inline-block;
    align-self: flex-start;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 16px;
    line-height: 26px;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-light);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}
.morning-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ---------- Правая колонка ---------- */
.morning-side {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.morning-time {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 40px;
    line-height: 1;
    color: var(--text);
    padding-top: 22px;
    margin-bottom: 13px;
}

/* Полоски-фичи */
.morning-features {
    list-style: none;
    margin: 0 0 46px 0;
    padding: 0;
}
.morning-features li {
    min-height: 65px;
    border-top: 1px solid var(--accent-light);
    display: flex;
    align-items: center;
    padding-bottom: 10px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 20px;
    line-height: 1;
    color: var(--text);
}

/* Маленькое фото */
.morning-photo-small {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 310 / 391;
}
.morning-photo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Подпись под маленьким фото */
.morning-note {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
    color: var(--text);
    margin: 24px 0 0 0;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1200px) {
    .morning { padding: 60px 40px; }
    .morning-inner { grid-template-columns: 1fr 280px; gap: 20px; }
    .morning-title { font-size: 60px; line-height: 62px; letter-spacing: -0.6px; margin-bottom: 24px; }
    .morning-desc { font-size: 18px; line-height: 26px; }
    .morning-overlay { top: 36px; left: 24px; right: 24px; }
    .morning-time { font-size: 34px; padding-top: 14px; margin-bottom: 12px; }
    .morning-features { margin-bottom: 32px; }
    .morning-features li { min-height: 56px; font-size: 18px; padding-bottom: 8px; }
    .morning-note { font-size: 17px; line-height: 24px; margin-top: 18px; }
    .morning-main { gap: 24px; }
}

@media (max-width: 992px) {
    .morning-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .morning-title { font-size: 48px; line-height: 50px; }
    .morning-overlay { top: 28px; left: 20px; right: 20px; }
    .morning-side {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        align-items: start;
    }
    .morning-time { grid-column: 1 / -1; padding-top: 0; }
    .morning-features { margin-bottom: 0; }
    .morning-photo-small { aspect-ratio: 16 / 10; }
    .morning-note { grid-column: 1 / -1; margin-top: 0; }
}

@media (max-width: 576px) {
    .morning { padding: 40px 16px; }
    .morning-main { gap: 20px; }
    .morning-photo { border-radius: var(--radius-md); aspect-ratio: 4 / 5; }
    .morning-overlay { top: 20px; left: 16px; right: 16px; }
    .morning-title { font-size: 30px; line-height: 32px; letter-spacing: -0.3px; margin-bottom: 16px; }
    .morning-desc { font-size: 15px; line-height: 22px; }
    .morning-link { font-size: 15px; line-height: 22px; }

    .morning-side { grid-template-columns: 1fr; gap: 20px; }
    .morning-time { font-size: 28px; }
    .morning-features li { min-height: 52px; font-size: 17px; }
    .morning-photo-small { border-radius: var(--radius-md); aspect-ratio: 16 / 10; }
    .morning-note { font-size: 16px; line-height: 22px; }
}
/* ============================================================
   FLOOR PLANS — «Пространство для вашего ритма»
   ============================================================ */
.floor-plans {
    padding: var(--section-pad);
    background: #fff;
}

.floor-plans-inner {
    max-width: var(--container);
    margin: 0 auto;
}

/* --- Верхний ряд: заголовок + описание --- */
.floor-plans-header {
    display: flex;
    align-items: flex-end;
    gap: 25px;
    margin-bottom: 46px;
}

.floor-plans-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 80px;
    line-height: 80px;
    letter-spacing: -0.8px;
    color: var(--text);
    margin: 0;
    flex-shrink: 0;
}

.floor-plans-desc {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
    color: var(--text);
    margin: 0;
    flex: 1;
    min-width: 0;
}

/* --- Основная часть: карточка + схема + сайдбар --- */
.floor-plans-body {
    display: grid;
    grid-template-columns: minmax(280px, 400px) 1fr 310px;
    gap: 40px 64px;
    align-items: start;
}

/* ---------- Карточка выбранной квартиры ---------- */
.floor-plans-card {
    position: relative;
    border-radius: 36px;
    background: #f9f7f8;
    padding: 48px 32px 32px;
    overflow: hidden;
    aspect-ratio: 499 / 450;
    display: flex;
    flex-direction: column;
}

.floor-plans-card-watermark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-46%);
    font-family: 'Old Standard TT', 'Times New Roman', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(220px, 34vw, 503px);
    line-height: 0.18;
    letter-spacing: -5px;
    color: #f3e8e1;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    white-space: nowrap;
}

.floor-plans-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.floor-plans-card-meta {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 34px;
}

.floor-plans-card-room {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 20px;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 16px;
}

.floor-plans-card-area {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 20px;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 27px;
}

.floor-plans-card-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
}
.floor-plans-card-price-num {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 40px;
    line-height: 1;
    letter-spacing: 0;
    color: var(--text);
}
.floor-plans-card-price-cur {
    font-family: 'Old Standard TT', 'Times New Roman', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 40px;
    line-height: 1;
    color: var(--text);
}

.floor-plans-card-button {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 40px;
    background: #eed6b5;
    border: none;
    border-radius: 30px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 20px;
    color: var(--text);
    cursor: pointer;
    margin-top: auto;
    transition: background 0.2s, transform 0.15s;
}
.floor-plans-card-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* ---------- Большая схема этажа ---------- */
.floor-plans-scheme {
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}
.floor-plans-scheme img {
    width: 100%;
    max-width: 564px;
    height: auto;
    display: block;
}

/* ---------- Сайдбар ---------- */
.floor-plans-side {
    display: flex;
    flex-direction: column;
}

/* Табы */
.floor-plans-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 46px;
}
.floor-plans-tab {
    background: none;
    border: none;
    padding: 0 0 4px 0;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 16px;
    line-height: 26px;
    color: #8e8e8f;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}
.floor-plans-tab:hover {
    color: var(--text);
}
.floor-plans-tab.active {
    color: var(--text);
}
.floor-plans-tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: var(--accent-light);
}

/* Список квартир */
.floor-plans-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.floor-plans-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 22px 0;
    border-top: 1px solid var(--accent-light);
}
.floor-plans-item:last-child {
    border-bottom: 1px solid var(--accent-light);
}

.floor-plans-item-num {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 60px;
}
.floor-plans-item-num-main {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 50px;
    line-height: 0.9;
    letter-spacing: -0.5px;
    color: var(--accent-light);
}
.floor-plans-item-num-unit {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 16px;
    color: var(--accent-light);
}

.floor-plans-item-info {
    min-width: 0;
}
.floor-plans-item-rooms {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 12px;
}
.floor-plans-item-area {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    color: var(--text);
}

.floor-plans-item-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.floor-plans-item-thumb img {
    max-width: 100px;
    max-height: 100px;
    width: auto;
    height: auto;
    display: block;
}

/* Ссылка "Смотреть все" */
.floor-plans-more {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 46px;
    padding-bottom: 6px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
    color: var(--text);
    text-decoration: none;
    border-bottom: 2px solid var(--accent-light);
    transition: color 0.2s, border-color 0.2s;
}
.floor-plans-more:hover {
    color: var(--accent);
    border-color: var(--accent);
}
.floor-plans-more-arrow {
    font-size: 20px;
    line-height: 1;
}

/* Скрытые карточки при фильтрации */
.floor-plans-item.is-hidden { display: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1200px) {
    .floor-plans { padding: 60px 40px; }
    .floor-plans-title { font-size: 60px; line-height: 62px; letter-spacing: -0.6px; }
    .floor-plans-body {
        grid-template-columns: minmax(260px, 340px) 1fr 280px;
        gap: 30px 40px;
    }
    .floor-plans-card { padding: 36px 24px 24px; border-radius: 28px; }
    .floor-plans-card-meta { margin-bottom: 24px; }
    .floor-plans-card-area { margin-bottom: 20px; }
    .floor-plans-card-price-num,
    .floor-plans-card-price-cur { font-size: 34px; }
    .floor-plans-card-button { font-size: 18px; height: 44px; padding: 0 30px; }
    .floor-plans-item { padding: 18px 0; gap: 16px; }
    .floor-plans-item-num-main { font-size: 40px; }
    .floor-plans-item-thumb img { max-width: 80px; max-height: 80px; }
}

@media (max-width: 992px) {
    .floor-plans-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 32px;
    }
    .floor-plans-title { font-size: 44px; line-height: 48px; }
    .floor-plans-body {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .floor-plans-card { order: 2; aspect-ratio: 4 / 3; }
    .floor-plans-scheme { order: 1; }
    .floor-plans-side {
        order: 3;
        grid-column: 1 / -1;
    }
    .floor-plans-tabs { margin-bottom: 24px; }
    .floor-plans-more { margin-top: 24px; }
}

@media (max-width: 576px) {
    .floor-plans { padding: 40px 16px; }
    .floor-plans-title { font-size: 30px; line-height: 34px; }
    .floor-plans-desc { font-size: 16px; line-height: 22px; }
    .floor-plans-body { grid-template-columns: 1fr; gap: 24px; }
    .floor-plans-card { aspect-ratio: auto; padding: 32px 20px 20px; border-radius: 20px; }
    .floor-plans-card-watermark { font-size: 220px; }
    .floor-plans-card-meta { font-size: 14px; margin-bottom: 20px; }
    .floor-plans-card-room,
    .floor-plans-card-area { font-size: 17px; margin-bottom: 12px; }
    .floor-plans-card-price { margin-bottom: 20px; }
    .floor-plans-card-price-num,
    .floor-plans-card-price-cur { font-size: 30px; }
    .floor-plans-card-button { font-size: 16px; height: 42px; padding: 0 24px; }
    .floor-plans-tabs { gap: 16px; margin-bottom: 20px; }
    .floor-plans-tab { font-size: 14px; }
    .floor-plans-item { padding: 16px 0; gap: 12px; grid-template-columns: auto 1fr auto; }
    .floor-plans-item-num-main { font-size: 32px; }
    .floor-plans-item-num-unit { font-size: 13px; }
    .floor-plans-item-rooms,
    .floor-plans-item-area { font-size: 14px; margin-bottom: 8px; }
    .floor-plans-item-thumb img { max-width: 60px; max-height: 60px; }
    .floor-plans-more { font-size: 17px; margin-top: 20px; }
}
/* ============================================================
   SITE FOOTER — CTA + карта + закат
   ============================================================ */

/* ---------- CTA-плашка ---------- */
.footer-cta {
    position: relative;
    width: 100%;
    background-image: url('/images/home/image_9c57374888255e59f5a86c44e46491540e6d3d37.webp');
    background-size: cover;
    background-position: center;
}
.footer-cta-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 50px 64px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}
.footer-cta-question {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
    text-decoration: none;
    transition: opacity 0.2s;
}
.footer-cta-question:hover { opacity: 0.7; }

.footer-cta-link {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
    color: var(--text);
    text-decoration: none;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--accent-light);
    transition: color 0.2s, border-color 0.2s;
}
.footer-cta-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ---------- Карта + закат ---------- */
.footer-map {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    aspect-ratio: 1440 / 1205;
    overflow: hidden;
    background: #1d2e1d;
    color: #fff;
}

/* Карта — верхние 69.2% */
.footer-map-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 69.2%;
    z-index: 1;
    pointer-events: none;
}
.footer-map-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.footer-map-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.20) 0%,
        rgba(0, 0, 0, 0.00) 40%,
        rgba(0, 0, 0, 0.20) 100%
    );
}

/* Закат — нижние 49.05%, поверх карты */
.footer-map-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 49.05%;
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.footer-map-wave img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    display: block;
}

/* Верхний текст — заголовок + дистанция */
.footer-map-header {
    position: absolute;
    top: 12.4%;
    left: 0;
    right: 0;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;               /* ← центрирование через margin, не transform */
    padding: 0 4.44%;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    box-sizing: border-box;
}

.footer-map-header-left { max-width: 500px; }

.footer-map-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(28px, 5.56vw, 80px);
    line-height: 1;
    letter-spacing: -0.8px;
    color: #fff;
    margin: 0 0 36px 0;
}

.footer-map-desc {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: clamp(13px, 1.39vw, 20px);
    line-height: 1.5;
    color: #fff;
    margin: 0;
}

.footer-map-distance {
    text-align: right;
    flex-shrink: 0;
    margin-top: 10.8%;
}
.footer-map-distance-num {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(28px, 3.47vw, 50px);
    line-height: 1;
    letter-spacing: -0.5px;
    color: var(--accent-light);
    margin-bottom: 18px;
}
.footer-map-distance-text {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: clamp(12px, 1.11vw, 16px);
    color: var(--accent-light);
}

/* Метки на карте */
.footer-map-marker {
    position: absolute;
    z-index: 3;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: clamp(10px, 1.11vw, 16px);
    letter-spacing: 1.6px;
    color: #fff;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
}
.footer-map-marker--evpatoria { top: 17.3%; left: 39.6%; }
.footer-map-marker--uyutnoe    { top: 18.8%; left: 75.9%; }
.footer-map-marker--beach      { top: 44.8%; left: 71.3%; }
.footer-map-marker--home       { top: 29.9%; left: 79.8%; color: var(--accent-light); }

/* Низ: адрес + кнопка (поверх заката) */
.footer-map-footer {
     position: absolute;
    top: 46%;
    left: 4.44%;        /* ← уже без transform, ок */
    bottom: auto;
    transform: none;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
}

.footer-map-address {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: clamp(12px, 1.11vw, 16px);
    line-height: 1.6;
    color: #fff;
    margin: 0;
}

.footer-map-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    height: clamp(38px, 3.47vw, 50px);
    padding: 0 6px 0 clamp(20px, 2.78vw, 40px);
    background: #eed6b5;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: clamp(14px, 1.39vw, 20px);
    color: var(--text);
    transition: background 0.2s, transform 0.15s;
}
.footer-map-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}
.footer-map-button-circle {
    width: clamp(30px, 2.64vw, 38px);
    height: clamp(30px, 2.64vw, 38px);
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.footer-map-button-circle img {
    width: 40%;
    height: auto;
    display: block;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 992px) {
    .footer-cta-inner { padding: 32px 24px; }
    .footer-cta-link { font-size: 18px; line-height: 26px; }

    /* Отключаем aspect-ratio — на планшете работаем от min-height */
    .footer-map {
        aspect-ratio: auto;
        min-height: 900px;
    }
    .footer-map-bg { height: 620px; }
    .footer-map-wave { height: 380px; }

    .footer-map-header {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        padding: 60px 24px 0;
        flex-direction: column;
        gap: 24px;
    }
    .footer-map-title { font-size: 44px; line-height: 48px; margin-bottom: 24px; }
    .footer-map-desc { font-size: 18px; line-height: 26px; }
    .footer-map-distance { text-align: left; margin-top: 0; }
    .footer-map-distance-num { font-size: 40px; }
    .footer-map-distance-text { font-size: 15px; }

    .footer-map-marker { font-size: 12px; letter-spacing: 1.2px; }
    .footer-map-marker--evpatoria { top: 30%; left: 12%; }
    .footer-map-marker--uyutnoe    { top: 42%; left: 65%; }
    .footer-map-marker--beach      { top: 58%; left: 60%; }
    .footer-map-marker--home       { top: 50%; left: 78%; }

    .footer-map-footer {
        left: 24px;
        right: auto;
        top: 62%;
        bottom: auto;
        transform: none;
        padding: 0;
        gap: 20px;
    }
    .footer-map-address { font-size: 15px; line-height: 22px; }
    .footer-map-button { font-size: 17px; height: 46px; padding: 0 6px 0 28px; }
    .footer-map-button-circle { width: 34px; height: 34px; }
}

@media (max-width: 576px) {
    .footer-cta-inner { padding: 24px 16px; gap: 12px; }
    .footer-cta-question { font-size: 14px; }
    .footer-cta-link { font-size: 16px; line-height: 22px; }

    .footer-map { min-height: 720px; }
    .footer-map-bg { height: 500px; }
    .footer-map-wave { height: 260px; }

    .footer-map-header { padding: 40px 16px 0; gap: 20px; }
    .footer-map-title { font-size: 28px; line-height: 30px; margin-bottom: 16px; }
    .footer-map-desc { font-size: 15px; line-height: 22px; }
    .footer-map-distance-num { font-size: 32px; margin-bottom: 8px; }
    .footer-map-distance-text { font-size: 13px; }
    .footer-map-marker { font-size: 10px; letter-spacing: 1px; }
    .footer-map-footer {
        left: 16px;
        right: auto;
        top: 64%;
        bottom: auto;
        transform: none;
        padding: 0;
        gap: 14px;
    }
    .footer-map-address { font-size: 13px; line-height: 20px; }
    .footer-map-button { font-size: 15px; height: 42px; padding: 0 6px 0 20px; }
    .footer-map-button-circle { width: 30px; height: 30px; }
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ============================================================
   REVEAL — появление блоков при скролле
   ============================================================ */

/* Двойной класс .reveal.reveal повышает специфичность,
   чтобы перебить возможные opacity: 1 из других мест */
.reveal.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.1s ease, transform 0.1s ease;
    will-change: opacity, transform;
}

.reveal.reveal--left {
    transform: translateX(-60px);
}

.reveal.reveal--right {
    transform: translateX(60px);
}

/* Когда блок вошёл в viewport — плавно проявляем */
.reveal.reveal.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Для тех, кто не хочет анимаций */
@media (prefers-reduced-motion: reduce) {
    .reveal.reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}