/* Байтерек мейман — сайт для гостей. Палитра: глубокая вода Иссык-Куля, абрикосовое солнце, тёплый песок.
   Mobile-first: базовые стили — для телефона, ниже — расширения для планшета и ПК. */

@font-face { font-family: 'Cera Pro'; src: url('fonts/CeraPro-Regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Cera Pro'; src: url('fonts/CeraPro-Medium.woff') format('woff'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'Cera Pro'; src: url('fonts/CeraPro-Bold.woff') format('woff'); font-weight: 700 900; font-display: swap; }

:root {
    --brand: #0b5f6b;
    --brand-ink: #fff;
    --brand-soft: #e3f1f2;
    --brand-tint: #f0f7f7;
    --accent: #f29f3d;
    --accent-deep: #d9822b;
    --accent-ink: #231303;
    --bg: #f7f4ee;
    --surface: #fff;
    --ink: #13232d;
    --ink-2: #33464f;
    --muted: #5f6f77;
    --line: #e4e1da;
    --ok: #157347;
    --ok-soft: #dcf5e6;
    --warn: #9a5a0a;
    --warn-soft: #fdf0d9;
    --danger: #b42318;
    --danger-soft: #fde4e1;
    --danger-line: #f6c7c0;
    --danger-ink: #fff;
    --ok-line: #b8e7cb;
    --ok-ink: #fff;
    --brand-hover: #073f48;
    --brand-line: #c9dfe0;
    --deep: #073f48;
    --green: #3f7d3a;
    --info-soft: #eef6f7;
    --info-line: #c6e1e3;
    --info-ink: #073f48;
    --neutral-soft: #f2efe9;
    --field-bg: #fff;
    --field-line: #d9d5cc;
    --field-invalid-bg: #fffafa;
    --focus-ring: rgb(11 95 107 / .16);
    --header-bg: rgb(255 255 255 / .9);
    --header-line: rgb(228 225 218 / .8);
    --glass: rgb(255 255 255 / .94);
    --timer-chip: rgb(255 255 255 / .75);
    --placeholder-ink: #9cc7ca;
    --placeholder-warm: #fbe7cd;
    color-scheme: light;

    --font: 'Cera Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgb(19 35 45 / .06);
    --shadow: 0 1px 2px rgb(19 35 45 / .05), 0 12px 30px -14px rgb(19 35 45 / .22);
    --shadow-lg: 0 26px 60px -24px rgb(7 63 72 / .45);
    --gutter: 16px;
    --header-h: 64px;
}

/* Тёмная тема — «ночной Иссык-Куль». Только на экране: печать всегда светлая. */
@media screen {
    :root[data-theme="dark"] {
        color-scheme: dark;
        --brand: #4fb8c4;
        --brand-ink: #04252a;
        --brand-hover: #82d2db;
        --brand-soft: #173b41;
        --brand-tint: #11272b;
        --brand-line: #25474c;
        --deep: #0a2c32;
        --green: #7cc474;
        --accent: #f2a54a;
        --accent-deep: #e48f34;
        --bg: #0e1619;
        --surface: #152125;
        --ink: #e7eef0;
        --ink-2: #c0cdd1;
        --muted: #8d9fa6;
        --line: #273a3f;
        --ok: #5fd394;
        --ok-ink: #062314;
        --ok-soft: #12301f;
        --ok-line: #1f5034;
        --warn: #f3b866;
        --warn-soft: #33270f;
        --danger: #ff8f81;
        --danger-ink: #2b0c08;
        --danger-soft: #3a1815;
        --danger-line: #6b2b24;
        --info-soft: #11292d;
        --info-line: #22474c;
        --info-ink: #a9dee4;
        --neutral-soft: #1e2c30;
        --field-bg: #0f1a1d;
        --field-line: #304449;
        --field-invalid-bg: #2a1614;
        --focus-ring: rgb(79 184 196 / .28);
        --header-bg: rgb(14 22 25 / .86);
        --header-line: rgb(39 58 63 / .9);
        --glass: rgb(21 33 37 / .9);
        --timer-chip: rgb(0 0 0 / .28);
        --placeholder-ink: #3d7c83;
        --placeholder-warm: #3b2d1d;
        --shadow-sm: 0 1px 2px rgb(0 0 0 / .35);
        --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 30px -14px rgb(0 0 0 / .65);
        --shadow-lg: 0 26px 60px -24px rgb(0 0 0 / .75);
    }
    :root[data-theme="dark"] .hero-art::after { background: linear-gradient(180deg, rgb(3 14 17 / .35), rgb(3 14 17 / .72)); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0; min-height: 100vh; display: flex; flex-direction: column;
    font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg);
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
main { flex: 1; outline: none; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
h1, h2, h3 { line-height: 1.18; letter-spacing: -0.015em; margin: 0 0 .5em; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.8rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.hint { margin: .5rem 0 0; color: var(--muted); font-size: .88rem; display: flex; gap: .35rem; align-items: flex-start; }
.hint .icon { margin-top: 2px; }
.center { text-align: center; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; padding: .6rem 1rem; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 700; }
.skip-link:focus { top: 8px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.icon { flex-shrink: 0; vertical-align: -3px; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 48px; padding: .7rem 1.25rem; border: 1px solid transparent; border-radius: var(--radius-sm);
    font: inherit; font-weight: 700; line-height: 1.1; cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s, opacity .15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-loading { opacity: .6; cursor: progress; }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 8px 18px -10px var(--brand); }
.btn-primary:hover { background: var(--brand-hover); color: var(--brand-ink); }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 22px -12px var(--accent-deep); }
.btn-accent:hover { background: var(--accent-deep); color: var(--accent-ink); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-link { background: none; color: var(--muted); padding-inline: .25rem; min-height: 44px; font-weight: 600; }
.btn-link:hover { color: var(--brand); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-line); }
.btn-danger:hover { background: var(--danger); color: var(--danger-ink); }
.btn-sm { min-height: 40px; padding: .5rem .95rem; font-size: .92rem; border-radius: 10px; }
.btn-lg { min-height: 54px; padding: .9rem 1.6rem; font-size: 1.05rem; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; color: var(--ink); cursor: pointer; }

/* ---------- Шапка ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--header-bg); backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--header-line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-logo { width: 40px; height: 40px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-tagline { font-size: .74rem; color: var(--muted); white-space: nowrap; }

.main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49; display: none; flex-direction: column; gap: .15rem;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
    padding: .5rem var(--gutter) calc(1.25rem + env(safe-area-inset-bottom)); background: var(--surface);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.main-nav.is-open { display: flex; }
.main-nav a { display: flex; align-items: center; gap: .5rem; padding: .9rem .6rem; color: var(--ink); font-weight: 600; font-size: 1.05rem; border-radius: 10px; text-decoration: none; }
.main-nav a:hover { background: var(--brand-tint); color: var(--brand); }
body.nav-open { overflow: hidden; }
body.nav-open::after { content: ""; position: fixed; inset: var(--header-h) 0 0; z-index: 48; background: rgb(7 20 26 / .45); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.logo-on-dark { display: none; }
:root[data-theme="dark"] .logo-on-dark { display: block; }
:root[data-theme="dark"] .logo-on-light { display: none; }

/* Язык: кнопка с флагом, по нажатию — список, который мягко выезжает. */
.lang-menu { position: relative; }
.lang-menu-button {
    display: inline-flex; align-items: center; gap: .4rem; height: 44px; padding: 0 .65rem 0 .55rem;
    border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink);
    font-size: .85rem; font-weight: 700; cursor: pointer; list-style: none; user-select: none; transition: border-color .15s, color .15s;
}
.lang-menu-button::-webkit-details-marker { display: none; }
.lang-menu-button:hover, .lang-menu[open] > .lang-menu-button { border-color: var(--brand); color: var(--brand); }
.lang-menu-chevron { color: var(--muted); transition: transform .25s ease; }
.lang-menu[open] .lang-menu-chevron { transform: rotate(180deg); }
.lang-menu-list {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 190px; margin: 0; padding: 6px; list-style: none;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
    transform-origin: top right; animation: menu-in .2s cubic-bezier(.2, .8, .2, 1);
}
.lang-menu.is-closing .lang-menu-list { animation: menu-out .14s ease-in forwards; }
.lang-menu-list a { display: flex; align-items: center; gap: .65rem; min-height: 44px; padding: .5rem .7rem; border-radius: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.lang-menu-list a:hover, .lang-menu-list a:focus-visible { background: var(--brand-tint); color: var(--brand); outline: none; }
.lang-menu-list [aria-current="true"] { color: var(--brand); font-weight: 800; }
.lang-menu-check { margin-left: auto; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.96); } }
@keyframes menu-out { to { opacity: 0; transform: translateY(-4px) scale(.98); } }
.flag { display: inline-block; width: 20px; height: 20px; border-radius: 50%; overflow: hidden; flex-shrink: 0; box-shadow: 0 0 0 1px rgb(0 0 0 / .12); }
.flag svg { display: block; width: 100%; height: 100%; }

/* Тема: луна и солнце сменяют друг друга поворотом с лёгким отскоком. */
.theme-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; overflow: hidden;
    border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); transition: border-color .15s, color .15s;
}
.theme-toggle:hover { border-color: var(--brand); color: var(--brand); }
.theme-toggle .icon { grid-area: 1 / 1; vertical-align: 0; transition: transform .6s cubic-bezier(.34, 1.56, .64, 1), opacity .3s ease; }
.theme-icon-sun { opacity: 0; transform: rotate(-120deg) scale(.3); }
:root[data-theme="dark"] .theme-icon-sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-icon-moon { opacity: 0; transform: rotate(120deg) scale(.3); }

/* ---------- Первый экран ---------- */
.hero { position: relative; isolation: isolate; color: #fff; padding: 2.25rem 0 1.5rem; overflow: hidden; background: var(--deep); }
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art svg { width: 100%; height: 100%; display: block; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(4 32 37 / .15), rgb(4 32 37 / .55)); }
.hero-inner { display: grid; gap: 1.4rem; }
.hero-text { max-width: 720px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 3.4vw, 3.4rem); text-shadow: 0 2px 30px rgb(0 0 0 / .25); }
.hero-subtitle { font-size: clamp(1rem, .95rem + .4vw, 1.2rem); color: rgb(255 255 255 / .92); max-width: 620px; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .35rem; margin: 0 0 .6rem; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.eyebrow-light { color: #fff; padding: .35rem .75rem; border-radius: 999px; background: rgb(255 255 255 / .16); backdrop-filter: blur(6px); }

/* ---------- Форма поиска ---------- */
.search-form { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .65rem; }
.sf-field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.sf-field label, .field label, .filter-group legend {
    display: flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 700; color: var(--muted);
    text-transform: uppercase; letter-spacing: .04em;
}
.sf-date { grid-column: span 3; }
.sf-num { grid-column: span 3; }
.sf-wide, .sf-submit { grid-column: 1 / -1; }
input, select, textarea { font: inherit; }
.search-form input, .search-form select, .field input, .field select, .field textarea {
    width: 100%; min-height: 50px; padding: .65rem .85rem; font-size: 16px; color: var(--ink);
    background: var(--field-bg); border: 1px solid var(--field-line); border-radius: 12px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 90px; resize: vertical; line-height: 1.4; }
.search-form input:focus, .search-form select:focus, .field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--focus-ring);
}
.sf-submit { min-height: 54px; }
.search-form--hero { background: var(--surface); color: var(--ink); padding: 1rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.search-form--stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.search-form--stack .sf-date, .search-form--stack .sf-num { grid-column: span 1; }

/* ---------- Секции ---------- */
.section { padding: 2.25rem 0; }
.section-tight { padding: 1.25rem 0 3rem; }
.section-tinted { background: linear-gradient(180deg, var(--brand-tint), var(--bg)); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.section-head h2 { margin: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; text-decoration: none; }

.why { padding: 1.25rem 0 0; }
.why-grid { display: grid; gap: .75rem; }
.why-item { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.1rem; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.why-item h2 { margin: 0 0 .2rem; font-size: 1rem; }
.why-item p { margin: 0; color: var(--muted); font-size: .93rem; }
.why-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); flex-shrink: 0; }

.type-grid { display: grid; gap: .75rem; }
.type-tile {
    position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-items: center; gap: .1rem .9rem;
    padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
    color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .2s, transform .2s;
}
.type-tile:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.type-icon { grid-row: 1 / span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand); color: var(--brand-ink); }
.type-tile--recreationarea .type-icon { background: var(--green); }
.type-tile--hotel .type-icon { background: var(--accent-deep); }
.type-name { font-weight: 800; font-size: 1.1rem; }
.type-count { color: var(--muted); font-size: .9rem; }
.type-arrow { grid-row: 1 / span 2; grid-column: 3; color: var(--brand); }

.region-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.region-chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .5rem .9rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none; }
.region-chip:hover { border-color: var(--brand); color: var(--brand); }
.region-chip .icon { color: var(--brand); }
.region-chip small { color: var(--muted); font-weight: 700; }

.cta-band { display: grid; gap: 1rem; align-items: center; padding: 1.5rem; border-radius: var(--radius); background: var(--deep); color: #fff; }
.cta-band h2 { color: #fff; margin-bottom: .25rem; }
.cta-band p { margin: 0; color: rgb(255 255 255 / .85); }

.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }

/* ---------- Карточки ---------- */
.card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--brand-soft); }
.card-media img, .card-media .img-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: .5rem; padding: 1.05rem 1.15rem 1.15rem; flex: 1; }
.card-kicker { display: flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .88rem; font-weight: 600; }
.card-title { margin: 0; font-size: 1.2rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--brand); }
.card-text { color: var(--ink-2); font-size: .95rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-footer { margin-top: auto; padding-top: .75rem; display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; flex-wrap: wrap; border-top: 1px dashed var(--line); }

.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .65rem; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--brand-soft); color: var(--brand); white-space: nowrap; }
.chip-on-media { position: absolute; left: .75rem; top: .75rem; background: var(--glass); color: var(--ink); backdrop-filter: blur(4px); }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.tags li { display: inline-flex; align-items: center; gap: .25rem; font-size: .8rem; padding: .25rem .55rem; border-radius: 8px; background: var(--neutral-soft); color: var(--ink-2); }
.tags .icon { color: var(--brand); }
.price { display: flex; align-items: baseline; gap: .3rem; flex-wrap: wrap; }
.price strong { font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.price-from, .price-unit { color: var(--muted); font-size: .88rem; }
.facts { display: flex; flex-wrap: wrap; gap: .4rem 1rem; list-style: none; margin: 0; padding: 0; color: var(--ink-2); font-size: .92rem; }
.facts li { display: inline-flex; align-items: center; gap: .35rem; }
.facts .icon { color: var(--brand); }
.img-placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: 120px; color: var(--placeholder-ink); background: linear-gradient(160deg, var(--brand-soft), var(--placeholder-warm)); }

/* ---------- Галерея ---------- */
.gallery { display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery-item { position: relative; flex: 0 0 88%; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; scroll-snap-align: start; background: var(--brand-soft); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(7 20 26 / .5); color: #fff; font-size: 1.6rem; font-weight: 800; }
.gallery--1 .gallery-item { flex-basis: 100%; }
.gallery--empty { aspect-ratio: 16 / 7; }
.gallery--empty .img-placeholder { border-radius: var(--radius); }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgb(7 20 26 / .94); padding: 3.5rem .5rem; }
.lightbox img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 10px; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .16); color: #fff; font-size: 1.4rem; cursor: pointer; }
.lightbox button:hover { background: rgb(255 255 255 / .3); }
.lightbox-close { top: .75rem; right: .75rem; }
.lightbox-prev { left: .75rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: .75rem; top: 50%; transform: translateY(-50%); }
.lightbox-count { position: absolute; top: 1.25rem; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 700; font-size: .9rem; }

/* ---------- Заголовки страниц ---------- */
.page-head { padding: 1.5rem 0 1rem; }
.page-head-compact { padding: 1.1rem 0 .75rem; }
.page-head h1 { margin-bottom: .35rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .88rem; color: var(--muted); margin-bottom: .6rem; }
.breadcrumbs a { color: var(--muted); }
.title-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .75rem; }
.title-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: 0; }
.title-meta > span { display: inline-flex; align-items: center; gap: .3rem; }
.title-price { color: var(--muted); }
.title-price strong { color: var(--ink); font-size: 1.4rem; font-weight: 800; }
.search-summary { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 0 0 1rem; color: var(--ink-2); font-weight: 600; }
.search-summary span { display: inline-flex; align-items: center; gap: .35rem; }

/* ---------- Раскладки ---------- */
.layout-aside, .layout-checkout, .layout-catalog { display: grid; gap: 1.5rem; }
.stack { display: grid; gap: 1rem; }
.stack-lg { display: grid; gap: 1.25rem; min-width: 0; }
.block, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.panel { box-shadow: var(--shadow-sm); }
.block h2 { font-size: 1.3rem; }
.block p:last-child, .panel p:last-child { margin-bottom: 0; }
.panel-title { font-size: 1.15rem; margin-bottom: 1rem; }
.aside-sticky { align-self: start; }

.amenities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1rem; }
.amenities li { display: flex; align-items: center; gap: .5rem; color: var(--ink-2); }
.amenities .icon { color: var(--brand); }
.rules { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; gap: .6rem; }
.rules li { display: flex; gap: .55rem; align-items: flex-start; color: var(--ink-2); }
.rules .icon { color: var(--brand); margin-top: 2px; }
.prose { color: var(--ink-2); }
.prose h2 { font-size: 1.2rem; margin-top: 1.5rem; }
.prose-item { display: flex; gap: .5rem; align-items: flex-start; }
.prose-item .icon { color: var(--ok); margin-top: 4px; }
.legal { margin-top: .75rem; }

.room-list { display: grid; gap: .75rem; }
.room-row { display: grid; grid-template-columns: 96px 1fr; gap: .9rem; padding: .75rem; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.room-row:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); color: var(--ink); }
.room-row img, .room-row .img-placeholder { width: 96px; height: 80px; min-height: 0; object-fit: cover; border-radius: 10px; }
.room-row h3 { margin: 0 0 .25rem; }
.room-row p { margin: .35rem 0 0; font-size: .9rem; }
.room-row-price { grid-column: 1 / -1; display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; }
.room-row-price strong { font-size: 1.15rem; }
.room-row-price .link-arrow { margin-left: auto; color: var(--brand); }

.fact-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.fact-tile { display: flex; flex-direction: column; gap: .15rem; padding: .9rem; border-radius: 14px; background: var(--brand-tint); border: 1px solid var(--brand-soft); }
.fact-tile .icon { color: var(--brand); margin-bottom: .25rem; }
.fact-tile span { font-size: .8rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.fact-tile strong { font-size: 1.35rem; }
.rate-table { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .75rem; }
.rate-table li { padding: 1rem; border: 1px solid var(--line); border-radius: 14px; }
.rate-table p { margin: .4rem 0 0; }

.badges { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .55rem; border-radius: 8px; font-size: .8rem; font-weight: 700; background: var(--neutral-soft); color: var(--ink-2); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-muted { color: var(--muted); }

/* ---------- Каталог ---------- */
.filters { padding: 0; }
.filters-summary { display: flex; align-items: center; gap: .5rem; padding: 1rem 1.15rem; min-height: 56px; font-weight: 800; cursor: pointer; list-style: none; }
.filters-summary::-webkit-details-marker { display: none; }
.summary-chevron { margin-left: auto; transition: transform .2s; }
.filters[open] .summary-chevron { transform: rotate(180deg); }
.count-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 .35rem; border-radius: 11px; background: var(--accent); color: var(--accent-ink); font-size: .78rem; }
.filters-form { display: grid; gap: 1rem; padding: 0 1.15rem 1.15rem; }
.filter-group { border: 0; margin: 0; padding: 0; display: grid; gap: .35rem; min-width: 0; }
.filter-group legend { margin-bottom: .4rem; padding: 0; }
.date-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.date-pair label { font-size: .75rem; }
/* В узкой панели фильтров даты — на всю ширину, взрослые и дети — в одну строку. */
.date-pair .field:nth-child(-n+2) { grid-column: 1 / -1; }
.nowrap { white-space: nowrap; }
.choice { display: flex; align-items: center; gap: .55rem; min-height: 40px; padding: .2rem 0; cursor: pointer; color: var(--ink-2); }
.choice input { width: 20px; height: 20px; accent-color: var(--brand); flex-shrink: 0; }
.choice small { color: var(--muted); margin-left: auto; }
.choice .icon { color: var(--brand); }
/* Колонок столько, сколько влезает: в боковой панели на ПК — одна, в раскрытых фильтрах на планшете — несколько. */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0 .75rem; }
.filters-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.filters-actions .btn-primary { flex: 1; }
.results-count { color: var(--muted); font-weight: 700; margin-bottom: 1rem; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }

/* ---------- Предложения и тарифы ---------- */
.offer-list { display: grid; gap: 1rem; }
.offer { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.offer-media { display: block; aspect-ratio: 2 / 1; background: var(--brand-soft); }
.offer-media img, .offer-media .img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.offer--compact { display: block; border: 0; box-shadow: none; background: none; }
.offer--compact .offer-body { padding: 0; }
.offer-body { padding: 1rem 1.1rem 1.1rem; display: grid; gap: .6rem; min-width: 0; }
.offer-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.offer-title { margin: 0; font-size: 1.2rem; }
.offer-title a { color: var(--ink); text-decoration: none; }
.rates { list-style: none; margin: .25rem 0 0; padding: 0; display: grid; gap: .6rem; }
.rate { display: grid; gap: .75rem; padding: .95rem; border-radius: 14px; background: var(--brand-tint); border: 1px solid var(--brand-soft); }
.rate-amount { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.rate-name { font-size: 1.02rem; }
.rate-policy { margin-top: .45rem; font-size: .88rem; color: var(--ink-2); }
.rate-policy summary { cursor: pointer; font-weight: 700; color: var(--brand); min-height: 32px; display: flex; align-items: center; }
.rate-policy p { margin: .35rem 0 0; }
.rate-price { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-top: .75rem; border-top: 1px dashed var(--brand-line); }
.rate-price strong { font-size: 1.4rem; font-weight: 800; }
.rate-price .btn { min-width: 116px; }

.empty { display: grid; justify-items: center; text-align: center; gap: .5rem; padding: 2.5rem 1rem; color: var(--muted); }
.empty .icon { color: var(--brand); opacity: .75; }
.empty h1, .empty h2 { color: var(--ink); margin: .5rem 0 0; font-size: 1.35rem; }
.empty p { max-width: 480px; }
.empty-inline { padding: 1.5rem .5rem; }
.big-code { font-size: 3.5rem; font-weight: 800; color: var(--brand); line-height: 1; }

/* ---------- Сообщения ---------- */
.alert { display: flex; gap: .6rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 14px; margin-bottom: 1rem; border: 1px solid; font-weight: 600; text-align: left; }
.alert .icon { margin-top: 1px; }
.alert-info { background: var(--info-soft); border-color: var(--info-line); color: var(--info-ink); }
.alert-error { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }
.alert-success { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }

/* ---------- Оформление ---------- */
.steps { display: flex; gap: .5rem; list-style: none; margin: 0 0 1rem; padding: 0; font-size: .82rem; font-weight: 700; color: var(--muted); flex-wrap: wrap; }
.steps li { display: inline-flex; align-items: center; gap: .4rem; }
.steps li + li::before { content: ""; width: 16px; height: 2px; background: var(--line); margin-right: .1rem; }
.steps span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--line); color: var(--ink-2); font-size: .78rem; }
.steps .done span { background: var(--ok); color: var(--ok-ink); }
.steps .current { color: var(--ink); }
.steps .current span { background: var(--brand); color: var(--brand-ink); }

.hold-timer { position: sticky; top: calc(var(--header-h) + 8px); z-index: 15; display: flex; align-items: center; gap: .5rem; padding: .65rem .9rem; border-radius: 14px; background: var(--warn-soft); color: var(--warn); font-weight: 700; font-size: .93rem; box-shadow: 0 8px 18px -12px rgb(154 90 10 / .55); margin-bottom: 1rem; }
.hold-timer span { flex: 1 1 0; min-width: 0; }
.hold-timer strong { font-variant-numeric: tabular-nums; font-size: 1.1rem; padding: .1rem .5rem; border-radius: 8px; background: var(--timer-chip); }
.hold-timer.is-expired { background: var(--danger-soft); color: var(--danger); }

fieldset.panel { margin: 0; min-width: 0; }
fieldset.panel legend { float: left; width: 100%; padding: 0; margin-bottom: .75rem; font-size: 1.15rem; font-weight: 800; text-transform: none; letter-spacing: -0.01em; color: var(--ink); }
fieldset.panel legend + * { clear: both; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem .75rem; margin-top: .75rem; }
.field-wide { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field label { text-transform: none; letter-spacing: 0; font-size: .92rem; color: var(--ink); }
.req { color: var(--danger); }
.opt { color: var(--muted); font-weight: 500; font-size: .8rem; }
.validation-message { color: var(--danger); font-size: .86rem; font-weight: 600; }
.field input.invalid, .field select.invalid { border-color: var(--danger); background: var(--field-invalid-bg); }

.service-options, .payment-options { display: grid; gap: .6rem; margin-top: .75rem; }
.service-option { display: grid; grid-template-columns: 1fr auto; gap: .5rem .9rem; align-items: center; padding: .85rem; border: 1px solid var(--line); border-radius: 14px; }
.service-option:has(option:checked:not([value="0"])) { border-color: var(--brand); background: var(--brand-tint); }
.service-option select { min-height: 44px; padding: .3rem .6rem; border-radius: 10px; border: 1px solid var(--field-line); font-size: 16px; background: var(--field-bg); color: var(--ink); }
.service-option-text { display: flex; flex-direction: column; min-width: 0; gap: .1rem; }
.service-option-text small { color: var(--muted); }
.service-option-price { font-weight: 800; }
.service-option-price small { font-weight: 600; }
.payment-option { display: grid; grid-template-columns: auto 1fr auto; gap: .25rem .8rem; align-items: center; padding: .95rem; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.payment-option:hover { border-color: var(--brand); }
.payment-option:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); box-shadow: 0 0 0 1px var(--brand); }
.payment-option input, .consent input { width: 22px; height: 22px; accent-color: var(--brand); }
.payment-option span { display: flex; flex-direction: column; gap: .1rem; }
.payment-option small { color: var(--muted); }
.payment-option-icon { color: var(--brand); }

.consents { display: grid; gap: .6rem; }
.consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .94rem; color: var(--ink-2); cursor: pointer; }
.consent input { margin-top: 1px; flex-shrink: 0; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.submit-row .btn { width: 100%; }
.submit-row .muted { display: inline-flex; align-items: center; gap: .3rem; }

.summary { display: grid; gap: 1rem; }
.summary .panel-title { margin: 0; }
.summary-room { display: grid; grid-template-columns: 72px 1fr; gap: .75rem; align-items: center; }
.summary-room img, .summary-room .img-placeholder { width: 72px; height: 60px; min-height: 0; border-radius: 10px; object-fit: cover; }
.summary-room div { display: flex; flex-direction: column; }
.summary-list { margin: 0; display: grid; gap: .5rem; }
.summary-list div { display: flex; justify-content: space-between; gap: 1rem; }
.summary-list dt { color: var(--muted); }
.summary-list dd { margin: 0; text-align: right; font-weight: 700; }
.summary-lines { display: grid; gap: .45rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.summary-lines div { display: flex; justify-content: space-between; gap: 1rem; }
.summary-total { padding-top: .6rem; margin-top: .25rem; border-top: 1px dashed var(--line); font-size: 1.1rem; }
.summary-total strong { font-size: 1.45rem; font-weight: 800; color: var(--brand); }
.summary-prepay { padding: .55rem .7rem; border-radius: 10px; background: var(--warn-soft); color: var(--warn); }
.summary-policy { padding: .85rem; border-radius: 12px; background: var(--neutral-soft); font-size: .9rem; color: var(--ink-2); text-align: left; }
.summary-policy p { margin: .25rem 0 0; }
.summary-mini { display: flex; gap: .75rem; align-items: center; padding: .7rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; margin-bottom: .75rem; }
.summary-mini img, .summary-mini .img-placeholder { width: 64px; height: 52px; min-height: 0; flex-shrink: 0; border-radius: 10px; object-fit: cover; }
.summary-mini span { display: flex; flex-direction: column; min-width: 0; }
.summary-mini small { color: var(--muted); font-size: .82rem; }

/* ---------- Оплата ---------- */
.pay-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.pay-head > div { display: flex; flex-direction: column; gap: .15rem; }
.pay-amount { text-align: right; }
.pay-amount strong { font-size: 1.6rem; color: var(--brand); }
.qr-panel { display: grid; justify-items: center; gap: 1rem; text-align: center; }
.qr { width: min(280px, 78vw); padding: .75rem; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.qr svg { width: 100%; height: auto; display: block; }
.qr-steps { text-align: left; margin: 0; padding-left: 1.25rem; color: var(--ink-2); display: grid; gap: .3rem; }
.qr-wait { display: flex; align-items: center; gap: .6rem; padding: 2rem 1rem; color: var(--muted); font-weight: 600; }
.payment-code { margin: 0; }
.payment-code strong { font-size: 1.2rem; letter-spacing: .08em; }
.pay-status { padding: .6rem .9rem; border-radius: 10px; background: var(--brand-tint); color: var(--info-ink); font-weight: 600; }
.pay-status.is-paid { background: var(--ok-soft); color: var(--ok); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--brand-soft); border-top-color: var(--brand); animation: spin .9s linear infinite; display: inline-block; }
.confirmation-icon .spinner { width: 34px; height: 34px; border-color: rgb(154 90 10 / .2); border-top-color: var(--warn); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Бронь гостя ---------- */
.confirmation { text-align: center; padding: 2rem 1.25rem; }
.confirmation h1 { margin: .75rem 0 .25rem; }
.confirmation-icon { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.confirmation-pending { background: var(--warn-soft); color: var(--warn); }
.confirmation-cancelled { background: var(--danger-soft); color: var(--danger); }
.res-number { font-size: 1.15rem; color: var(--brand); font-weight: 800; letter-spacing: .02em; margin: 0 0 .4rem; }
.status { display: inline-block; padding: .25rem .7rem; border-radius: 999px; font-size: .88rem; font-weight: 700; }
.status-confirmed { background: var(--ok-soft); color: var(--ok); }
.status-pending { background: var(--warn-soft); color: var(--warn); }
.status-cancelled { background: var(--danger-soft); color: var(--danger); }
.pay-callout { margin: 1rem 0; padding: 1rem; border-radius: 14px; background: var(--warn-soft); color: var(--warn); font-weight: 600; display: grid; gap: .75rem; justify-items: center; }
.pay-callout p { margin: 0; }
.details { margin: 1.25rem 0; display: grid; text-align: left; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.details > div { display: grid; grid-template-columns: 1fr; gap: .15rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.details > div:last-child { border-bottom: 0; }
.details dt { color: var(--muted); font-size: .88rem; }
.details dd { margin: 0; font-weight: 700; }
.details-total { background: var(--brand-tint); }
.details-total dd { font-size: 1.3rem; font-weight: 800; }
.confirmation-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; align-items: center; margin-top: 1.25rem; }
.cancel-box { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px dashed var(--line); text-align: left; }
.cancel-box summary { cursor: pointer; color: var(--danger); font-weight: 700; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.cancel-box form { margin-top: .75rem; }
.lookup { text-align: center; }
.lookup form { text-align: left; margin-top: 1rem; }
.lookup .btn { width: 100%; }
.contact-inline { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.contact-inline li { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink-2); }
.contact-inline .icon { color: var(--brand); }
.contact-center { justify-content: center; margin-top: 1rem; }
.contact-list { list-style: none; margin: 1.25rem 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .85rem; align-items: center; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; }
.contact-list a, .contact-list li > span > span { font-weight: 700; color: var(--ink); }
.contact-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); flex-shrink: 0; }
.map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--brand-soft); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-link { position: absolute; right: .6rem; bottom: .6rem; display: inline-flex; align-items: center; gap: .3rem; padding: .4rem .7rem; border-radius: 8px; background: var(--glass); font-size: .82rem; font-weight: 700; text-decoration: none; }

/* ---------- Подвал ---------- */
.site-footer { position: relative; margin-top: 3rem; background: var(--deep); color: rgb(255 255 255 / .82); padding: 2.5rem 0 1.5rem; }
.footer-mountains { position: absolute; left: 0; right: 0; top: -40px; height: 41px; color: var(--deep); pointer-events: none; }
.footer-mountains svg { width: 100%; height: 100%; display: block; }
.site-footer h2 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; }
.site-footer a { color: rgb(255 255 255 / .92); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 2rem; }
.brand-footer { color: #fff; margin-bottom: 1rem; }
.brand-footer:hover { color: #fff; }
.brand-footer .brand-tagline { color: rgb(255 255 255 / .7); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-contacts li { display: flex; gap: .5rem; align-items: flex-start; }
.footer-contacts .icon { margin-top: 4px; opacity: .75; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / .15); font-size: .84rem; color: rgb(255 255 255 / .65); }

/* ---------- Плашка внизу экрана на телефоне ---------- */
.mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    padding: .65rem var(--gutter) calc(.65rem + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px -16px rgb(19 35 45 / .35); transition: transform .25s ease;
}
.mobile-bar.is-hidden { transform: translateY(110%); }
.mobile-bar-price { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.mobile-bar-price strong { font-size: 1.2rem; font-weight: 800; white-space: nowrap; }
.mobile-bar-price .price-from, .mobile-bar-price .price-unit { font-size: .8rem; }
.mobile-bar .btn { flex-shrink: 0; min-height: 50px; }
body:has(.mobile-bar) .site-footer { padding-bottom: calc(1.5rem + 80px + env(safe-area-inset-bottom)); }

/* ---------- Cookie: плашка согласия и страница политики ---------- */
/* Плашка не перекрывает страницу и не держит фокус: сайтом можно пользоваться, не выбирая. */
.cookie-banner {
    position: fixed; left: var(--gutter); right: var(--gutter); bottom: calc(var(--gutter) + env(safe-area-inset-bottom)); z-index: 70;
    display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; max-width: 880px; margin-inline: auto; padding: 1rem 1.15rem;
    background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.cookie-banner p { flex: 1 1 320px; margin: 0; font-size: .95rem; color: var(--ink-2); }
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-left: auto; }
@media (prefers-reduced-motion: no-preference) {
    .cookie-banner { animation: cookie-in .45s cubic-bezier(.2, .7, .2, 1) .25s both; }
    .cookie-banner.is-leaving { animation: cookie-out .3s ease-in both; }
}
@keyframes cookie-in { from { transform: translateY(calc(100% + 2rem)); opacity: 0; } }
@keyframes cookie-out { to { transform: translateY(calc(100% + 2rem)); opacity: 0; } }

.page-subtitle { margin: 0; color: var(--muted); font-size: .92rem; }
.cookie-list { list-style: none; margin: 0 0 1.5rem; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.cookie-list-group { padding: .55rem .9rem; background: var(--brand-soft); color: var(--ink); font-weight: 700; font-size: .9rem; }
.cookie-list-row { display: grid; gap: .2rem; padding: .7rem .9rem; border-top: 1px solid var(--line); }
.cookie-list-row code { font-size: .88rem; color: var(--ink); overflow-wrap: anywhere; }
.cookie-list-row small { color: var(--muted); }
@media (min-width: 640px) {
    .cookie-list-row { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) 9rem; gap: 1rem; align-items: baseline; }
    .cookie-list-row small { text-align: right; }
}
.cookie-choice-state { font-weight: 600; color: var(--ink); }
.cookie-choice-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-choice-actions [aria-current="true"] { outline: 2px solid var(--brand); outline-offset: 2px; }

@supports (-webkit-touch-callout: none) {
    input[type=date] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; text-align: left; }
    input[type=date]::-webkit-date-and-time-value { text-align: left; }
}

/* ---------- Телефоны (< 640px) ---------- */
@media (max-width: 639px) {
    .brand-tagline { display: none; }
    .scroll-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .75rem; padding-bottom: .5rem; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
    .scroll-row::-webkit-scrollbar { display: none; }
    .scroll-row > * { flex: 0 0 min(84%, 320px); scroll-snap-align: start; }
    .block, .panel { padding: 1rem; }
    .field-sm-wide { grid-column: 1 / -1; }
    .form-grid .field:not(.field-wide):not(.field-sm-wide) .opt { display: none; }
    .steps li:not(.current) b { display: none; }
    .steps li + li::before { width: 10px; }
    .confirmation-actions .btn { flex: 1 1 100%; }
    .pay-amount { text-align: left; }
    .footer-bottom { flex-direction: column; }
    .amenities { grid-template-columns: 1fr; }
}

/* ---------- Узкие телефоны (< 480px): язык — круглая кнопка с одним флагом, иначе не влезает название ---------- */
@media (max-width: 479px) {
    .header-inner { gap: .5rem; }
    .header-actions { gap: .25rem; }
    .lang-menu-button { width: 44px; padding: 0; justify-content: center; }
    .lang-menu-code, .lang-menu-chevron { display: none; }
}
@media (max-width: 399px) {
    .brand-name { font-size: .95rem; }
}
@media (max-width: 359px) {
    .brand-text { display: none; }
}

/* ---------- Телефоны и планшеты (< 960px): блок брони сразу под фото ---------- */
@media (max-width: 959px) {
    .layout-aside { display: flex; flex-direction: column; gap: 1.25rem; }
    .layout-aside > .stack-lg { display: contents; }
    /* Сразу после фото — даты, затем номера, затем описание. */
    .layout-aside .aside-sticky { order: -3; }
    .layout-aside #rooms { order: -2; }
    .layout-checkout .submit-row .btn { min-height: 56px; }
}

/* ---------- ≥ 640px ---------- */
@media (min-width: 640px) {
    :root { --gutter: 24px; }
    .section { padding: 3rem 0; }
    .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .why-grid, .type-grid { grid-template-columns: repeat(3, 1fr); }
    .type-tile { grid-template-columns: 1fr auto; grid-template-rows: auto auto auto; padding: 1.4rem; }
    .type-icon { grid-row: auto; margin-bottom: .6rem; }
    .type-arrow { grid-row: 1; grid-column: 2; align-self: start; }
    .hero { padding: 3.5rem 0 2rem; }
    .search-form--hero { grid-template-columns: repeat(4, 1fr); padding: 1.1rem; }
    .search-form--hero .sf-date, .search-form--hero .sf-num { grid-column: span 1; }
    .search-form--hero .sf-wide { grid-column: span 4; }
    .search-form--hero .sf-submit { grid-column: span 4; }
    .cta-band { grid-template-columns: 1fr auto; padding: 2rem; }
    .gallery { display: grid; overflow: visible; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; height: clamp(300px, 42vw, 480px); }
    .gallery-item { aspect-ratio: auto; border-radius: 0; height: 100%; }
    .gallery-item:first-child { grid-row: 1 / span 2; }
    .gallery--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
    .gallery--2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
    .gallery--2 .gallery-item:first-child { grid-row: auto; }
    .gallery--3 { grid-template-columns: 2fr 1fr; }
    .gallery--4 .gallery-item:nth-child(4) { grid-column: span 2; }
    .offer { grid-template-columns: 240px 1fr; }
    .offer-media { aspect-ratio: auto; height: 100%; min-height: 220px; }
    .room-row { grid-template-columns: 120px 1fr auto; align-items: center; }
    .room-row img, .room-row .img-placeholder { width: 120px; height: 92px; }
    .room-row-price { grid-column: auto; flex-direction: column; align-items: flex-end; gap: .1rem; text-align: right; }
    .room-row-price .link-arrow { margin-left: 0; margin-top: .35rem; }
    .fact-tiles { grid-template-columns: repeat(3, 1fr); }
    .details > div { grid-template-columns: 210px 1fr; align-items: baseline; }
    .submit-row .btn { width: auto; }
    .lookup .btn { width: auto; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; }
}

/* ---------- ≥ 960px ---------- */
@media (min-width: 960px) {
    :root { --header-h: 72px; }
    .main-nav { position: static; display: flex; flex-direction: row; align-items: center; gap: .1rem; max-height: none; overflow: visible; padding: 0; margin-left: 1rem; background: none; border: 0; box-shadow: none; }
    .main-nav a { padding: .5rem .7rem; font-size: .95rem; }
    .main-nav a:last-child { margin-left: .5rem; border: 1px solid var(--line); }
    body.nav-open { overflow: visible; }
    body.nav-open::after { display: none; }
    .nav-toggle { display: none; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .hero { padding: 6rem 0 3rem; min-height: 600px; display: flex; align-items: flex-end; }
    .hero-inner { gap: 2.25rem; }
    .search-form--hero { grid-template-columns: 1.4fr 1fr 1fr .7fr .7fr auto; align-items: end; }
    .search-form--hero .sf-date, .search-form--hero .sf-num, .search-form--hero .sf-wide, .search-form--hero .sf-submit { grid-column: auto; }
    .section { padding: 4rem 0; }
    .layout-aside { grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; }
    .layout-checkout { grid-template-columns: minmax(0, 1fr) 380px; gap: 2rem; }
    .layout-catalog { grid-template-columns: 300px minmax(0, 1fr); gap: 2rem; align-items: start; }
    .filters-col { position: sticky; top: calc(var(--header-h) + 16px); }
    .filters-summary { cursor: default; pointer-events: none; }
    .summary-chevron { display: none; }
    .aside-sticky { position: sticky; top: calc(var(--header-h) + 16px); }
    .mobile-bar, .summary-mini { display: none; }
    body:has(.mobile-bar) .site-footer { padding-bottom: 1.5rem; }
    .offer { grid-template-columns: 280px 1fr; }
}

/* ---------- Анимация переходов ---------- */
/* Между страницами, в том числе при смене языка, содержимое мягко перетекает, а шапка стоит на месте. */
@media (prefers-reduced-motion: no-preference) {
    @view-transition { navigation: auto; }
}
:root:not([data-vt="theme"]) .site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: page-out .16s ease-in both; }
::view-transition-new(root) { animation: page-in .32s cubic-bezier(.2, .7, .2, 1) .05s both; }
::view-transition-old(site-header) { display: none; }
::view-transition-new(site-header) { animation: none; }
/* Смена темы — круг от кнопки (site.js) вместо затухания. */
:root[data-vt="theme"]::view-transition-old(root), :root[data-vt="theme"]::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
@keyframes page-out { to { opacity: 0; filter: blur(3px); } }
@keyframes page-in { from { opacity: 0; filter: blur(3px); transform: translateY(6px); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
    .site-header, .site-footer, .confirmation-actions, .steps, .lang-menu, .theme-toggle, .cancel-box, .mobile-bar, .skip-link, .cookie-banner { display: none !important; }
    body { background: #fff; }
    .panel { box-shadow: none; border: 0; }
}
