/* =========================================================
   ZEN DACHA — оформление сайта
   Все цвета и размеры собраны в переменных ниже.
   ========================================================= */
:root {
    --bg:        #FBF9F5;   /* тёплый белый фон */
    --bg-alt:    #F3EFE8;   /* фон чередующихся секций */
    --ink:       #232019;   /* основной текст */
    --ink-soft:  #6E675C;   /* приглушённый текст */
    --line:      #E3DCD0;   /* линии и рамки */
    --forest:    #405741;   /* глубокий зелёный — акцент */
    --clay:      #B0653F;   /* терракота — второй акцент */
    --white:     #FFFFFF;

    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans:  "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

    --wrap: 1180px;
    --gap: clamp(56px, 9vw, 120px);   /* вертикальные отступы секций */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
    font-family: var(--sans);
    font-weight: 300;
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.01em;
}

h2 { font-size: clamp(30px, 4.4vw, 50px); margin-bottom: 22px; }
h3 { font-size: 21px; }

p + p { margin-top: 16px; }

a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.section { padding: var(--gap) 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--forest);
    margin-bottom: 14px;
}

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-lead { color: var(--ink-soft); }

.muted { color: var(--ink-soft); font-size: 15px; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    font-family: var(--sans);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 15px 30px;
    border: 1px solid var(--forest);
    background: var(--forest);
    color: var(--white);
    cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover { background: #33452F; border-color: #33452F; }

/* кнопка со значком: значок и текст в одну строку */
.btn .ico-tg { vertical-align: -3px; margin-right: 7px; }

.btn-small { padding: 11px 20px; font-size: 12px; }

.btn-light { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn-light:hover { background: #EFEAE1; border-color: #EFEAE1; }

.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.7); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,0.14); border-color: var(--white); }

.btn-dark { background: var(--ink); border-color: var(--ink); }
.btn-dark:hover { background: #000; border-color: #000; }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.link {
    display: inline-block;
    margin-top: 12px;
    font-size: 15px;
    color: var(--forest);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}
.link:hover { color: var(--clay); }

.link-inline { margin-top: 0; }

/* =========================================================
   ШАПКА
   ========================================================= */
.site-header {
    position: sticky;          /* остаётся сверху и едет вместе со страницей */
    top: 0;
    z-index: 60;
    padding: 18px 0;
    background: var(--white);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    transition: padding 0.35s, box-shadow 0.35s;
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { text-decoration: none; line-height: 1.1; }

.brand-name {
    display: block;
    font-family: var(--serif);
    font-size: 25px;
    letter-spacing: 0.05em;
}

.brand-sub {
    display: block;
    white-space: nowrap;
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.nav { display: flex; gap: 16px; }

.nav a {
    font-size: 13px;
    white-space: nowrap;
    text-decoration: none;
    color: inherit;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { font-size: 15px; text-decoration: none; white-space: nowrap; }

/* После прокрутки шапка становится тоньше и отделяется тенью */
.site-header.scrolled {
    padding: 10px 0;
    box-shadow: 0 6px 18px rgba(35, 32, 25, 0.07);
}

/* Иконка Telegram в шапке */
.header-tg { display: flex; align-items: center; color: var(--forest); transition: color 0.2s; }
.header-tg:hover { color: var(--clay); }
.header-tg .ico-tg { width: 22px; height: 22px; }

.ico-tg { width: 17px; height: 17px; fill: currentColor; flex: none; }

.burger { display: none; width: 30px; height: 22px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span {
    position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
    transition: transform 0.3s, opacity 0.2s;
}
.burger span:nth-child(1) { top: 2px; }
.burger span:nth-child(2) { top: 10px; }
.burger span:nth-child(3) { top: 18px; }
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1240px) {
    .header-phone { display: none; }
}

/* =========================================================
   ПЕРВЫЙ ЭКРАН
   ========================================================= */
.hero { position: relative; height: calc(100svh - 76px); min-height: 520px; display: flex; align-items: center; }

.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.hero-veil {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20,22,18,0.45) 0%, rgba(20,22,18,0.18) 40%, rgba(20,22,18,0.55) 100%);
}

.hero-content { position: relative; color: var(--white); text-align: center; }
.hero-content .eyebrow { color: rgba(255,255,255,0.85); }

.hero h1 {
    font-size: clamp(52px, 11vw, 128px);
    font-weight: 300;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
}

.hero-text { font-size: clamp(17px, 2.2vw, 21px); margin-bottom: 38px; text-shadow: 0 1px 12px rgba(0,0,0,0.3); }

.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
    position: absolute; left: 50%; bottom: 30px;
    width: 1px; height: 46px; background: rgba(255,255,255,0.6);
    animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 0%,100% { transform: scaleY(0.4); transform-origin: top; } 50% { transform: scaleY(1); } }

/* =========================================================
   ЦИФРЫ
   ========================================================= */
.facts { background: var(--bg-alt); padding: 40px 0; }

.facts-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; text-align: center; }

.fact b {
    display: block;
    font-family: var(--serif);
    font-size: 40px;
    font-weight: 400;
    line-height: 1;
    color: var(--forest);
    /* цифры одной высоты вместо «старостильных» с хвостиками */
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum" 1;
}
.fact span { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 8px; }

/* =========================================================
   ДВУХКОЛОНОЧНЫЕ БЛОКИ
   ========================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-reverse .split-text { order: 2; }

.split-text .btn { margin-top: 26px; }
.split-media img { width: 100%; }

.hosts { background: var(--bg-alt); }

/* =========================================================
   ГАЛЕРЕЯ
   ========================================================= */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }

.filter {
    font-family: var(--sans);
    font-size: 13px;
    padding: 9px 18px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
    transition: all 0.22s;
}
.filter:hover { border-color: var(--forest); color: var(--forest); }
.filter.is-active { background: var(--forest); border-color: var(--forest); color: var(--white); }

/* Кладка: три колонки разной высоты */
.gallery { column-count: 3; column-gap: 14px; }

.shot { break-inside: avoid; margin-bottom: 14px; overflow: hidden; cursor: zoom-in; }

.shot img { width: 100%; transition: transform 0.7s cubic-bezier(.2,.7,.3,1), filter 0.4s; }
.shot:hover img { transform: scale(1.04); filter: brightness(1.04); }

.shot.hidden { display: none; }

/* на телефоне показываем первые снимки, остальные — по кнопке */
.shot.beyond-limit { display: none; }

.gallery-more {
    display: none;
    width: 100%;
    margin-top: 6px;
    padding: 15px 20px;
    font-family: var(--sans);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--forest);
    background: transparent;
    border: 1px solid var(--line);
    cursor: pointer;
}
.gallery-more:hover { border-color: var(--forest); }
.gallery-more.visible { display: block; }

/* подпись под каруселью: сколько всего фото и где мы сейчас */
.gallery-hint {
    display: none;
    margin-top: 10px;
    font-size: 13px;
    color: var(--ink-soft);
    text-align: center;
}
.gallery-hint.visible { display: block; }
.gallery-hint b { font-weight: 500; color: var(--ink); }

/* =========================================================
   ПЛАНИРОВКА
   ========================================================= */
.plan-section { background: var(--bg-alt); }

.plan-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }

.plan-image { background: var(--white); padding: 18px; border: 1px solid var(--line); }

.plan-list { list-style: none; }

.plan-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.plan-list li:last-child { border-bottom: 0; }
.plan-list b { display: block; font-weight: 500; font-size: 16px; }
.plan-list span { display: block; font-size: 15px; color: var(--ink-soft); margin-top: 3px; }

/* =========================================================
   КАРТОЧКИ ТЕРРИТОРИИ
   ========================================================= */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.card {
    padding: 30px 26px;
    border: 1px solid var(--line);
    background: var(--white);
    transition: border-color 0.3s, transform 0.3s;
}
.card:hover { border-color: var(--forest); transform: translateY(-3px); }

.ico {
    width: 30px; height: 30px;
    fill: none; stroke: var(--forest); stroke-width: 1.3;
    stroke-linecap: round; stroke-linejoin: round;
    margin-bottom: 16px;
}

.card h3 { font-size: 19px; margin-bottom: 7px; }
.card p { font-size: 15px; color: var(--ink-soft); line-height: 1.55; }

/* =========================================================
   ЧТО РЯДОМ
   ========================================================= */
.nearby { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.near { padding: 28px 24px; background: var(--white); border-left: 2px solid var(--clay); }

.near-time {
    display: block;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--clay);
    margin-bottom: 10px;
}
.near b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 400; }
.near b + span { display: block; font-size: 15px; color: var(--ink-soft); margin-top: 5px; }

/* =========================================================
   ОТЗЫВЫ (блок пока выключен в HTML)
   ========================================================= */
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.review { padding: 34px; background: var(--white); border: 1px solid var(--line); }
.review p { font-family: var(--serif); font-size: 22px; line-height: 1.45; }
.review footer { margin-top: 18px; font-size: 14px; color: var(--ink-soft); }

/* =========================================================
   ФОРМА БРОНИРОВАНИЯ
   ========================================================= */
.booking-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 860px; }

.field { display: flex; flex-direction: column; }
.field-wide { grid-column: 1 / -1; }

.field label { font-size: 13px; color: var(--ink-soft); margin-bottom: 7px; }

.field input, .field textarea {
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 300;
    color: var(--ink);
    padding: 13px 15px;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 0;
    transition: border-color 0.2s;
}

.field input:focus, .field textarea:focus { outline: none; border-color: var(--forest); }
.field textarea { resize: vertical; }

.field-check { flex-direction: row; align-items: center; gap: 10px; align-self: end; padding-bottom: 13px; }
.field-check input { width: 17px; height: 17px; accent-color: var(--forest); }
.field-check label { margin: 0; font-size: 15px; color: var(--ink); }

.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.form-note { font-size: 14px; color: var(--ink-soft); margin-top: -6px; }

.field input.invalid { border-color: var(--clay); background: #FDF4F0; }

/* =========================================================
   КОНТАКТЫ И ПОДВАЛ
   ========================================================= */
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

.contact h3 { font-size: 15px; font-family: var(--sans); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--forest); margin-bottom: 14px; }
.contact p { font-size: 16px; color: var(--ink-soft); }

.phone-big {
    font-family: var(--serif);
    font-size: 30px;
    color: var(--ink);
    text-decoration: none;
    /* цифры одной высоты, как в блоке с фактами о доме */
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum" 1;
}
.phone-big:hover { color: var(--forest); }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; }

.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--ink-soft); }
.footer-inner a { text-decoration: none; }

.footer-contacts { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }

.footer-tg { display: inline-flex; align-items: center; gap: 6px; color: var(--forest); }
.footer-tg:hover { color: var(--clay); }

/* =========================================================
   ПОЛНОЭКРАННЫЙ ПРОСМОТР ФОТО
   ========================================================= */
.lightbox {
    position: fixed; inset: 0; z-index: 100;
    display: none;
    align-items: center; justify-content: center;
    background: rgba(18,18,16,0.94);
    padding: 40px 70px;
}
.lightbox.open { display: flex; }

.lightbox img { max-width: 100%; max-height: 88vh; object-fit: contain; }

.lb-close, .lb-prev, .lb-next {
    position: absolute;
    background: none; border: 0; color: rgba(255,255,255,0.8);
    cursor: pointer; font-family: var(--sans); line-height: 1;
    transition: color 0.2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: var(--white); }

.lb-close { top: 22px; right: 26px; font-size: 40px; }
.lb-prev  { left: 18px;  font-size: 56px; padding: 10px 16px; }
.lb-next  { right: 18px; font-size: 56px; padding: 10px 16px; }

.lb-counter { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,0.6); font-size: 13px; }

/* =========================================================
   ЧТО В ДОМЕ
   ========================================================= */
.amenities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 40px; }

.amenity-group h3 {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--forest);
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.amenity-group ul { list-style: none; }

.amenity-group li {
    position: relative;
    padding-left: 24px;
    font-size: 16px;
    color: var(--ink-soft);
    line-height: 1.5;
    margin-bottom: 9px;
}

/* галочка нарисована рамкой одного элемента */
.amenity-group li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 7px;
    width: 10px;
    height: 5px;
    border-left: 1.4px solid var(--clay);
    border-bottom: 1.4px solid var(--clay);
    transform: rotate(-45deg);
}

/* =========================================================
   ЦЕНЫ И УСЛОВИЯ
   ========================================================= */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.price-card {
    padding: 34px 30px;
    background: var(--white);
    border: 1px solid var(--line);
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}
.price-card:hover { border-color: var(--forest); transform: translateY(-3px); }

.price-card-main { border-color: var(--forest); border-width: 2px; }

.price-when {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 14px;
}

.price-value {
    font-family: var(--serif);
    font-size: 46px;
    line-height: 1;
    color: var(--forest);
}
.price-value span { font-size: 28px; }

.price-from {
    font-family: var(--sans);
    font-size: 15px !important;
    font-weight: 300;
    color: var(--ink-soft);
    vertical-align: middle;
    margin-right: 2px;
}
.price-value-text { font-size: 34px; }

.price-unit { font-size: 14px; color: var(--ink-soft); margin-top: 12px; }

.terms {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 40px;
    margin-top: 40px;
    border-top: 1px solid var(--line);
}

.terms li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.terms b { display: block; font-weight: 500; font-size: 15px; }
.terms span { display: block; font-size: 15px; color: var(--ink-soft); margin-top: 2px; }

.prices-cta { margin-top: 36px; }

/* =========================================================
   ВОПРОСЫ И ОТВЕТЫ
   ========================================================= */
.faq-section { background: var(--bg-alt); }

.faq { max-width: 860px; border-top: 1px solid var(--line); }

.qa { border-bottom: 1px solid var(--line); }

.qa summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 22px 46px 22px 0;
    font-family: var(--serif);
    font-size: clamp(20px, 2.4vw, 24px);
    line-height: 1.3;
    transition: color 0.2s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--forest); }

/* плюс, который превращается в минус */
.qa summary::before,
.qa summary::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    background: var(--forest);
    transition: transform 0.3s, opacity 0.3s;
}
.qa summary::before { width: 16px; height: 1.4px; margin-top: -0.7px; }
.qa summary::after  { width: 1.4px; height: 16px; margin-top: -8px; right: 13.3px; }
.qa[open] summary::after { transform: rotate(90deg); opacity: 0; }

.qa-body { padding: 0 46px 24px 0; }
.qa-body p { color: var(--ink-soft); }
.qa-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
/* внутри ответа ссылки зелёные, но кнопкам нужен их собственный цвет */
.qa-actions .btn { color: var(--white); }
.qa-actions .btn-outline { color: var(--ink); }
.qa-actions .btn-outline:hover { color: var(--white); }
.qa-body a { color: var(--forest); }

/* =========================================================
   КАРТА
   ========================================================= */
.map { margin-top: 48px; border: 1px solid var(--line); background: var(--white); }

.map iframe { display: block; width: 100%; height: 420px; border: 0; }

/* =========================================================
   СТРАНИЦЫ ДОКУМЕНТОВ (политика, условия бронирования)
   ========================================================= */
.doc-header { padding: 18px 0; background: var(--white); border-bottom: 1px solid var(--line); }
.doc-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.doc-header .link-inline { margin-top: 0; }

.doc { max-width: 780px; padding-top: var(--gap); padding-bottom: var(--gap); }

.doc h1 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 20px; }

.doc h2 {
    font-size: clamp(21px, 2.6vw, 26px);
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum" 1;
    margin: 44px 0 14px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.doc-lead { color: var(--ink-soft); font-size: 18px; }

.doc p { margin-top: 14px; }
.doc a { color: var(--forest); }

.doc-list { margin: 14px 0 0 20px; color: var(--ink-soft); }
.doc-list li { margin-bottom: 9px; padding-left: 4px; }

.doc-date { margin-top: 40px; font-size: 15px; color: var(--ink-soft); }
.doc-back { margin-top: 34px; }

.footer-links a { color: var(--forest); }

/* согласие на обработку данных под формой */
.field-consent { grid-column: 1 / -1; flex-direction: row; align-items: flex-start; gap: 10px; }
.field-consent input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--forest); flex: none; }
.field-consent label { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.field-consent a { color: var(--forest); }
.field-consent.invalid label { color: var(--clay); }

/* =========================================================
   ВСПЛЫВАЮЩАЯ ПОДСКАЗКА (скопированный номер, текст заявки)
   ========================================================= */
.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 20px);
    z-index: 200;
    max-width: min(92vw, 460px);
    padding: 14px 22px;
    background: var(--ink);
    color: var(--white);
    font-size: 15px;
    line-height: 1.45;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   ПОЯВЛЕНИЕ БЛОКОВ ПРИ ПРОКРУТКЕ
   ========================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .scroll-cue { animation: none; }
}

/* =========================================================
   ПЛАНШЕТЫ
   ========================================================= */
@media (max-width: 1000px) {
    .nav { display: none; }

    .nav.open {
        display: flex;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        gap: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        padding: 12px 24px 22px;
        color: var(--ink);
    }
    .nav.open a { padding: 13px 0; border-bottom: 1px solid var(--line); opacity: 1; }
    .nav.open a:last-child { border-bottom: 0; }

    .burger { display: block; }
    .header-phone { display: none; }

    .cards { grid-template-columns: repeat(2, 1fr); }
    .nearby { grid-template-columns: repeat(2, 1fr); }
    .facts-grid { grid-template-columns: repeat(3, 1fr); gap: 26px 12px; }
    .plan-layout { grid-template-columns: 1fr; }
    .contacts { grid-template-columns: 1fr 1fr; gap: 30px; }
    .gallery { column-count: 2; }
    .booking-form { grid-template-columns: repeat(2, 1fr); }
    .amenities { grid-template-columns: repeat(2, 1fr); }
    .prices { grid-template-columns: 1fr; }
    .terms { grid-template-columns: repeat(2, 1fr); }
    .map iframe { height: 340px; }
}

/* =========================================================
   ТЕЛЕФОНЫ
   ========================================================= */
@media (max-width: 640px) {
    body { font-size: 16px; }

    .split { grid-template-columns: 1fr; }
    .split-reverse .split-text { order: 0; }

    .cards { grid-template-columns: 1fr; }
    .nearby { grid-template-columns: 1fr; }
    .facts-grid { grid-template-columns: repeat(2, 1fr); }
    .contacts { grid-template-columns: 1fr; }
    .reviews { grid-template-columns: 1fr; }
    .booking-form { grid-template-columns: 1fr; }

    /* На телефоне галерея — карусель: занимает один экран по высоте
       и листается пальцем вбок, вместо длинной вертикальной ленты. */
    .gallery {
        column-count: initial;
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        margin: 0 -24px;
        padding: 0 24px 10px;
    }
    .gallery::-webkit-scrollbar { display: none; }

    .shot {
        flex: 0 0 82%;
        margin: 0;
        height: 64vw;
        scroll-snap-align: center;
    }
    .shot img { width: 100%; height: 100%; object-fit: cover; }
    .shot:hover img { transform: none; }

    /* кнопка «показать ещё» в карусели не нужна */
    .gallery-more.visible { display: none; }

    /* фильтры не переносятся на три строки, а прокручиваются вбок */
    .filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        margin-left: -24px;
        margin-right: -24px;
        padding: 0 24px 4px;
        scroll-snap-type: x proximity;
    }
    .filters::-webkit-scrollbar { display: none; }
    .filter { flex: none; scroll-snap-align: start; }

    .hero { height: 92svh; }
    .hero-buttons { flex-direction: column; align-items: stretch; }

    .lightbox { padding: 60px 12px; }
    .lb-prev, .lb-next { font-size: 40px; }
    .lb-prev { left: 0; }
    .lb-next { right: 0; }

    .form-actions { flex-direction: column; align-items: stretch; }
    .form-actions .btn { text-align: center; }

    .amenities { grid-template-columns: 1fr; }
    .terms { grid-template-columns: 1fr; }
    .price-card { padding: 28px 22px; }
    .map { margin-top: 34px; }
    .map iframe { height: 280px; }
}
