@font-face {
    font-family: "TildaSans";
    src: url("../fonts/TildaSans-VF.woff2") format("woff2-variations");
    font-weight: 250 1000;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #041923;
    --ink-soft: #2d3f47;
    --muted: #687d86;
    --accent: #f7400a;
    --accent-dark: #e03604;
    --blue: #8ec7e3;
    --blue-light: #c7e7f7;
    --bg: #edf2f4;
    --white: #ffffff;
    --line: #dce7eb;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 16px 40px rgba(4, 25, 35, 0.09);
    --container: 1160px;
    --gutter: 20px;
    --font: "TildaSans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: clip;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.nav-open,
body.filters-open,
body.lightbox-open {
    overflow: hidden;
}

*[hidden] {
    display: none !important;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease;
}

a:hover {
    color: var(--accent);
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

/* типографика как на Тильде: H1 32px/600, H2 32px/600 и 26px в блоках */
h1 {
    margin-bottom: 16px;
    font-size: 32px;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 14px;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0;
}

h3 {
    font-weight: 600;
}

p {
    margin-bottom: 14px;
}

::selection {
    background: var(--blue-light);
    color: var(--ink);
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 13px 22px;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
    background: var(--accent-dark);
    color: var(--white);
    transform: translateY(-1px);
}

.btn--sm {
    min-height: 42px;
    padding: 10px 16px;
    font-size: 14px;
}

.btn--ghost {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
}

.btn--ghost:hover {
    border-color: var(--accent);
    background: var(--white);
    color: var(--accent);
}

.btn--light {
    background: var(--white);
    color: var(--ink);
}

.btn--light:hover {
    background: var(--blue-light);
    color: var(--ink);
}

.btn--block {
    width: 100%;
}

.eyebrow {
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

/* ---------- шапка: скруглённая «пилюля» как на go-namore.ru ---------- */
.site-head {
    position: sticky;
    top: 0;
    z-index: 60;
    padding: 10px 0 0;
    background: var(--bg);
}

/* шапка 1:1 с Тильдой: 1160×70, radius 30, логотип 100×13 */
.site-head > .container {
    max-width: calc(var(--container) + var(--gutter) * 2);
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    box-sizing: border-box;
}

.site-head__bar {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 70px;
    padding: 0 10px 0 30px;
    border-radius: 30px;
    background: var(--white);
    box-shadow: 0 12px 30px -18px rgba(4, 25, 35, 0.22);
}

.site-head.is-scrolled .site-head__bar {
    box-shadow: 0 14px 34px -16px rgba(4, 25, 35, 0.28);
}

.site-head__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.site-head__logo img {
    width: 100px;
    height: auto;
}

.site-head__nav {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 50px;
    /* логотип 100 + отступ, меню начинается на x=450 (Тильда) */
    padding-left: 87px;
}

.site-head__link,
.site-menu__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.18s ease;
}

.site-head__link:hover,
.site-head__link.is-active,
.site-menu__toggle:hover,
.site-menu__toggle.is-active,
.site-menu[data-open] .site-menu__toggle {
    color: var(--accent);
}

.site-menu {
    position: relative;
}

.site-menu__arrow {
    margin-top: 1px;
    transition: transform 0.2s ease;
}

.site-menu[data-open] .site-menu__arrow {
    transform: rotate(180deg);
}

.site-menu__panel {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    z-index: 5;
    min-width: 270px;
    padding: 10px;
    border: 1px solid #cfe8f6;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 22px 48px -20px rgba(4, 25, 35, 0.3);
    transform: translateX(-50%);
}

.site-menu__panel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -18px;
    height: 18px;
}

.site-menu__list {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-menu__link {
    display: block;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--ink);
    font-size: 15px;
    white-space: nowrap;
    transition: background 0.16s ease, color 0.16s ease;
}

.site-menu__link:hover,
.site-menu__link.is-active {
    background: #f2f8fc;
    color: var(--accent);
}

.site-menu__link--all {
    margin-top: 4px;
    border-top: 1px solid var(--line);
    border-radius: 0 0 12px 12px;
    color: var(--muted);
    font-size: 14px;
}

.site-head__actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 12px;
}

/* иконка кабинета: голубой круг 30×30 с белым силуэтом — как на Тильде */
.site-head__account {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #3aa8e0;
    color: #fff;
    transition: background 0.18s ease;
}

.site-head__account:hover {
    background: #2b96cc;
}

.site-head__account svg {
    width: 21px;
    height: 21px;
}

/* кнопка «Искать жильё» 146×40, фон #c7e7f7, 14px — как на Тильде */
.site-head__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 146px;
    height: 40px;
    padding: 0 20px;
    box-sizing: border-box;
    border-radius: 30px;
    background: #c7e7f7;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.18s ease;
}

.site-head__cta:hover {
    background: #b0ddf3;
}

.site-head__burger {
    position: relative;
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
}

.site-head__burger span {
    position: absolute;
    right: 12px;
    left: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.site-head__burger span:nth-child(1) {
    top: 15px;
}

.site-head__burger span:nth-child(2) {
    top: 20px;
}

.site-head__burger span:nth-child(3) {
    top: 25px;
}

body.nav-open .site-head__burger span:nth-child(1) {
    top: 20px;
    transform: rotate(45deg);
}

body.nav-open .site-head__burger span:nth-child(2) {
    opacity: 0;
}

body.nav-open .site-head__burger span:nth-child(3) {
    top: 20px;
    transform: rotate(-45deg);
}

/* ---------- мобильное меню ---------- */
.site-mobile {
    position: fixed;
    inset: 86px 0 0;
    z-index: 55;
    overflow-y: auto;
    padding: 20px 24px 40px;
    background: var(--bg);
}

.site-mobile__inner {
    display: flex;
    flex-direction: column;
    max-width: 520px;
    margin: 0 auto;
    padding: 8px 20px 20px;
    border-radius: 24px;
    background: var(--white);
}

.site-mobile__link,
.site-mobile__group > summary {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.site-mobile__group > summary::-webkit-details-marker {
    display: none;
}

.site-mobile__group > summary::after {
    content: "⌄";
    float: right;
    color: var(--muted);
}

.site-mobile__group[open] > summary::after {
    content: "⌃";
}

.site-mobile__sublink {
    display: block;
    padding: 10px 0 10px 14px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 15px;
}

.site-mobile__cta {
    margin-top: 18px;
}

.site-mobile__phone {
    margin-top: 12px;
    padding: 14px 0;
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 1080px) {
    .site-head__nav {
        display: none;
    }

    .site-head__burger {
        display: block;
    }

    .site-head__bar {
        gap: 12px;
        padding-left: 20px;
    }
}

@media (max-width: 720px) {
    .cards {
        gap: 18px;
    }

    .card__media {
        aspect-ratio: 16 / 10;
    }

    .card__body {
        gap: 4px;
        padding: 12px 14px 14px;
    }

    .card__title {
        font-size: 16px;
    }

    .card__address {
        font-size: 13px;
    }

    /* мобильная шапка: бургер слева, лого по центру, кабинет справа */
    .site-head__bar {
        position: relative;
        justify-content: center;
        min-height: 60px;
        padding: 8px;
        border-radius: 30px;
    }

    .site-head__logo {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .site-head__actions {
        width: 100%;
        justify-content: space-between;
    }

    .site-head__burger {
        order: -1;
    }

    .site-head__logo img {
        width: 96px;
        height: auto;
    }

    .site-head__account {
        width: 36px;
        height: 36px;
    }

    .site-head__cta {
        padding: 10px 16px;
        font-size: 14px;
    }

    .site-head__cta {
        display: none;
    }

    .site-head__burger {
        width: 36px;
        height: 36px;
    }

    .site-head__burger span {
        right: 10px;
        left: 10px;
    }

    .site-mobile {
        inset: 78px 0 0;
        padding: 12px 16px 32px;
    }

    .site-mobile__cta {
        display: inline-flex;
    }
}


.hero {
    position: relative;
    max-width: var(--container);
    margin: 24px auto 0;
    overflow: hidden;
    border-radius: 30px;
    background-color: var(--ink);
    background-position: center;
    background-size: cover;
    color: var(--white);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 25, 35, 0.35), rgba(4, 25, 35, 0.05));
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    padding: 96px 56px 104px;
}

.hero__eyebrow {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(38px, 5.2vw, 68px);
}

.hero__subtitle {
    max-width: 560px;
    margin: 18px 0 30px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.5;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero .btn--ghost {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.hero .btn--ghost:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
}

.section {
    padding: 64px 0;
}

#catalog {
    scroll-margin-top: 96px;
}

.section--tiles {
    padding-top: 52px;
    padding-bottom: 24px;
}

.section--map {
    padding-top: 24px;
    padding-bottom: 24px;
}

.section--catalog {
    padding-top: 40px;
}

.section--catalog-tight {
    padding-top: 8px;
}

.section--seo {
    padding-top: 24px;
}

.section--tiles-small {
    padding-top: 24px;
}

.section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
}

.section__head h2 {
    margin-bottom: 0;
}

.section__lead {
    max-width: 440px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.tile {
    display: flex;
    min-height: 134px;
    flex-direction: column;
    gap: 7px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tile:hover {
    border-color: #cfe0e6;
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.tile__title {
    font-size: 21px;
    font-weight: 600;
    line-height: 1.2;
}

.tile__count {
    color: var(--muted);
    font-size: 13px;
}

.tile__link {
    margin-top: auto;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
}

.tile--soon {
    background: var(--bg);
}

.tile--soon .tile__title,
.tile--soon .tile__link {
    color: var(--muted);
}

.tile--soon:hover {
    border-color: var(--line);
    box-shadow: none;
    transform: none;
}

.map {
    overflow: hidden;
    border-radius: 24px;
    background: var(--bg);
}

.map iframe {
    display: block;
    width: 100%;
    height: 380px;
    border: 0;
}

.map__caption {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.map__caption a {
    color: var(--accent);
}

.map--lazy {
    display: flex;
    min-height: 380px;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 20% 30%, rgba(142, 199, 227, 0.35), transparent 28%),
        radial-gradient(circle at 80% 70%, rgba(199, 231, 247, 0.55), transparent 32%),
        var(--bg);
}

.map--lazy iframe {
    display: block;
    width: 100%;
    height: 380px;
    border: 0;
}

.map__placeholder {
    display: flex;
    max-width: 460px;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 32px;
    text-align: center;
}

.map__pin {
    width: 38px;
    height: 38px;
    margin-bottom: 4px;
    fill: var(--accent);
}

.map__placeholder strong {
    font-size: 20px;
}

.map__placeholder span {
    color: var(--muted);
    font-size: 14px;
}

.map__placeholder .btn {
    margin-top: 12px;
}

.catalog__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.catalog__head h2 {
    margin-bottom: 0;
}

.catalog__tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.sort select {
    min-height: 42px;
    padding: 9px 38px 9px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    appearance: none;
    background-color: var(--white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23041923' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");
    background-position: right 14px center;
    background-repeat: no-repeat;
    color: var(--ink);
    font-size: 14px;
}

.catalog__layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.catalog__layout--single {
    grid-template-columns: minmax(0, 1fr);
}

.catalog__content {
    min-width: 0;
}

.catalog__count {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 13px;
}

.catalog__reset {
    color: var(--accent);
    text-decoration: underline;
}

.filters {
    position: sticky;
    top: 96px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.filters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.filters__heading {
    margin: 0;
    font-size: 18px;
}

.filters__close {
    display: none;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--white);
    color: var(--ink);
    font-size: 22px;
    line-height: 1;
}

.filters__group {
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.filters__group:first-of-type {
    padding-top: 6px;
    border-top: 0;
}

.filters__title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
}

.filters__price {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.filters__price label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--muted);
    font-size: 11px;
}

.filters__price input {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--white);
    color: var(--ink);
    font-size: 14px;
}

.filters__options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-soft);
    font-size: 14px;
    cursor: pointer;
}

.check input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--accent);
}

.check em {
    margin-left: auto;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.filters__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.filters__reset {
    color: var(--muted);
    font-size: 13px;
    text-align: center;
    text-decoration: underline;
}

.filters-overlay {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(4, 25, 35, 0.46);
}

.btn--filter {
    display: none;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.card__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--bg);
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.card:hover .card__media img {
    transform: scale(1.045);
}

.card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--muted);
    font-size: 13px;
}

.card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    font-size: 11.5px;
    font-weight: 700;
}

.card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px 18px;
}

.card__title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

.card__title a:hover {
    color: var(--accent);
}

.card__address {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11.5px;
}

.card__meta span {
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--bg);
}

.card__footer {
    margin-top: auto;
    padding-top: 10px;
}

.price {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.price__from {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.price__unit {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.price--request {
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
}

.empty {
    padding: 56px 24px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    text-align: center;
}

.empty__icon {
    margin-bottom: 8px;
    color: var(--blue);
    font-size: 42px;
    line-height: 1;
}

.empty h3 {
    margin-bottom: 6px;
    font-size: 22px;
}

.empty p {
    margin-bottom: 18px;
    color: var(--muted);
}

.empty__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* описание региона — 1:1 с Тильдой: блок 1160 от x=133, текст 18px/27.9 */
.section--seo > .container {
    max-width: calc(var(--container) + var(--gutter) * 2);
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    box-sizing: border-box;
}

.seo-text {
    max-width: 1160px;
}

.seo-text h2 {
    margin: 0 0 22px;
    color: #041923;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.35;
}

.seo-text p {
    margin: 0 0 16px;
    color: #041923;
    font-size: 18px;
    line-height: 27.9px;
}

.seo-text__heading {
    margin: 28px 0 6px;
    color: #041923;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.cta {
    padding: 24px 0 64px;
}

.cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 48px;
    border-radius: 28px;
    background: var(--blue);
    color: var(--white);
}

.cta h2 {
    margin-bottom: 8px;
    color: var(--white);
}

.cta p {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.page-head {
    padding: 22px 0 42px;
    background: var(--bg);
}

.page-head__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-top: 18px;
}

.page-head h1 {
    margin-bottom: 10px;
    font-size: clamp(32px, 4vw, 50px);
}

.page-head__lead {
    max-width: 680px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 16px;
}

.page-head__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.page-head__count {
    min-width: 112px;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    text-align: center;
}

.page-head__count strong {
    display: block;
    font-size: 28px;
    line-height: 1.1;
}

.page-head__count span {
    color: var(--muted);
    font-size: 12px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs__sep {
    color: #b9c7cd;
}

.listing {
    padding: 18px 0 48px;
}

/* ---------- галерея объявления: 1 большая + сетка миниатюр ---------- */
.gallery {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    grid-template-rows: 400px;
    gap: 8px;
    margin-top: 18px;
}

.gallery--single {
    grid-template-columns: minmax(0, 1fr);
}

.gallery__main {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: var(--bg);
    cursor: zoom-in;
}

.gallery__main img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Сетка миниатюр: 1–4 -> 2x2, 5–9 -> 3x3. */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-height: 0;
}

.gallery--cols-1 .gallery__grid,
.gallery--cols-2 .gallery__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.gallery__thumb {
    position: relative;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: var(--bg);
    cursor: zoom-in;
}

.gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    object-position: center;
    transition: transform 0.25s ease;
}

.gallery__thumb:hover img,
.gallery__thumb:focus-visible img {
    transform: scale(1.04);
}

/* Кнопка «Все N фото» поверх большой картинки. */
.gallery__all {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    cursor: zoom-in;
    box-shadow: 0 2px 10px rgba(4, 25, 35, 0.18);
    transition: background 0.18s ease;
}

.gallery__all:hover {
    background: var(--white);
}

.listing__head {
    padding: 8px 0 0;
}

.listing__head h1 {
    margin-bottom: 10px;
    font-size: clamp(28px, 3.2vw, 42px);
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--bg);
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 600;
}

.badge--accent {
    background: #ffeadf;
    color: var(--accent-dark);
}

.listing__address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.listing__pin {
    flex-shrink: 0;
    font-size: 15px;
    line-height: 1.45;
}

.listing__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 40px;
    align-items: start;
    padding-top: 32px;
}

.listing__main {
    min-width: 0;
}

.prose {
    margin-bottom: 34px;
    overflow-wrap: anywhere;
}

.prose h2 {
    margin-bottom: 14px;
    font-size: 26px;
}

.prose h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.prose p {
    margin-bottom: 12px;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.75;
}

/* разделы описания — раскрывающиеся, как на Тильде */
.prose--fold {
    margin-bottom: 0;
    padding: 4px 0 14px;
    border-top: 1px solid #e2ebef;
}

.prose--fold > .prose__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    cursor: pointer;
    list-style: none;
}

.prose__summary::-webkit-details-marker {
    display: none;
}

.prose__summary h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}

.prose--fold:hover > .prose__summary h2 {
    color: var(--accent-orange);
}

.prose__toggle {
    position: relative;
    flex: none;
    width: 32px;
    height: 32px;
    border: 1px solid #cfe3ee;
    border-radius: 50%;
    color: #041923;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.prose__toggle::before,
.prose__toggle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
}

.prose__toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.prose--fold[open] > .prose__summary .prose__toggle {
    color: var(--accent-orange);
    border-color: #f7c3b3;
}

.prose--fold[open] > .prose__summary .prose__toggle::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.prose--fold[open] > .prose__summary .prose__toggle::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.prose--fold[open] > .prose__summary {
    padding-bottom: 8px;
}

.check-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 24px;
    color: var(--ink-soft);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.amenities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}

.amenity {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--ink-soft);
    font-size: 14.5px;
}

.amenity__check {
    color: var(--accent);
    font-weight: 700;
}

.rooms {
    display: grid;
    gap: 16px;
}

/* ---------- карточка варианта размещения ---------- */
.rv {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
}

.rv__main {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) auto;
    gap: 20px;
    padding: 16px;
}

.rv__carousel {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: var(--bg);
    aspect-ratio: 1 / 1;
}

.rv__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rv__img--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 13px;
}

.rv__nav {
    position: absolute;
    top: 50%;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    font-size: 22px;
    line-height: 1;
    transform: translateY(-50%);
    box-shadow: 0 2px 8px rgba(4, 25, 35, 0.18);
}

.rv__nav--prev {
    left: 8px;
}

.rv__nav--next {
    right: 8px;
}

.rv__dots {
    position: absolute;
    right: 0;
    bottom: 8px;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.rv__dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
}

.rv__dot.is-active {
    background: var(--white);
}

.rv__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rv__title {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
}

.rv__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    color: var(--muted);
    font-size: 13px;
}

.rv__desc {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
}

.rv__amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rv__amenities li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--bg);
    font-size: 12px;
    color: var(--ink-soft);
}

.rv__amenities-more {
    font-weight: 600;
}

.rv__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    min-width: 150px;
}

.rv__price-label {
    color: var(--muted);
    font-size: 12px;
}

.rv__price {
    font-size: 22px;
    font-weight: 700;
    white-space: nowrap;
}

.rv__price small {
    margin-left: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.rv__more {
    min-height: 40px;
    padding: 10px 18px;
}

.rv__months {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    border-top: 1px solid var(--line);
}

.rv__month {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 4px;
    border-right: 1px solid var(--line);
}

.rv__month:last-child {
    border-right: 0;
}

.rv__month.is-current {
    background: #fff3ec;
}

.rv__month-name {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
}

.rv__month-price {
    font-size: 13px;
    white-space: nowrap;
}

/* ---------- модальное окно комнаты ---------- */
.rv-dialog {
    width: min(880px, 94vw);
    max-height: 90vh;
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: var(--white);
    color: var(--ink);
    overflow: auto;
}

.rv-dialog::backdrop {
    background: rgba(4, 25, 35, 0.62);
}

.rv-dialog__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
    padding: 22px;
}

.rv-dialog__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--bg);
    color: var(--ink);
    font-size: 22px;
    line-height: 1;
}

.rv-dialog__gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.rv-dialog__img {
    display: none;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    object-fit: cover;
}

.rv-dialog__img.is-active {
    display: block;
}

.rv-dialog__thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.rv-dialog__thumb {
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    background: var(--bg);
}

.rv-dialog__thumb.is-active {
    border-color: var(--accent);
}

.rv-dialog__thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.rv-dialog__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.rv-dialog__title {
    margin: 0;
    font-size: 24px;
}

.rv-dialog__desc {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
}

.rv-dialog__subtitle {
    margin: 6px 0 0;
    font-size: 15px;
}

.rv-dialog__amenities {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
}

.rv-dialog__amenities li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rv-dialog__icon {
    font-size: 16px;
}

.rv-dialog__months {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.rv-dialog__months .rv__month {
    border-bottom: 1px solid var(--line);
}

.room {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.room__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.room__head h3 {
    margin: 0;
    font-size: 18px;
}

.room__capacity {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.room p {
    margin-bottom: 12px;
    color: var(--ink-soft);
    font-size: 14px;
}

.room__prices {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.room__price {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--bg);
    font-size: 12px;
}

.room__price strong {
    font-size: 12px;
}

.map--listing iframe {
    height: 320px;
}

.map__link {
    margin-top: 10px;
    font-size: 13px;
}

.map__link a {
    color: var(--accent);
}

.listing__aside {
    position: sticky;
    top: 96px;
}

.contact-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.contact-card__label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-card__top strong {
    display: block;
    font-size: 20px;
    line-height: 1.3;
}

.contact-card__phone {
    margin-top: 18px;
    font-size: 18px;
}

.contact-card__messengers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.contact-card__note {
    margin: 16px 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.5;
}

.contact-card__facts {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.contact-card__facts li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}

.contact-card__facts span {
    color: var(--muted);
}

.mobile-bar {
    display: none;
}

.mobile-bar__label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 25, 35, 0.94);
}

.lightbox__img {
    max-width: 92vw;
    max-height: 86vh;
    border-radius: 12px;
}

.lightbox__close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    font-size: 28px;
    line-height: 1;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    font-size: 32px;
    line-height: 1;
    transform: translateY(-50%);
}

.lightbox__nav--prev {
    left: 22px;
}

.lightbox__nav--next {
    right: 22px;
}

.lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    transform: translateX(-50%);
}

.footer {
    padding: 56px 0 24px;
    background: var(--ink);
    color: var(--white);
}

.footer__top {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 32px;
}

.footer__brand img {
    width: auto;
    height: 36px;
}

.footer__brand p {
    max-width: 320px;
    margin: 16px 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
}

.footer__phone {
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
}

.footer__phone:hover {
    color: var(--blue);
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__col h3 {
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer__col a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.footer__col a:hover {
    color: var(--blue);
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.footer__bottom a {
    color: rgba(255, 255, 255, 0.7);
}

.notfound {
    padding: 80px 0 100px;
    text-align: center;
}

.notfound__code {
    color: var(--bg);
    font-size: clamp(96px, 18vw, 180px);
    font-weight: 700;
    line-height: 0.9;
}

.notfound h1 {
    margin-top: 8px;
}

.notfound p {
    max-width: 560px;
    margin: 0 auto 24px;
    color: var(--muted);
}

.notfound__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

@media (max-width: 1280px) {
    .header__phone {
        display: none;
    }
}

@media (max-width: 1120px) {
    .header__nav {
        gap: 10px;
    }

    .header__link {
        font-size: 13px;
    }

    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .listing__layout {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 28px;
    }
}

@media (max-width: 1080px) {
    .header__nav {
        display: none;
    }

    .burger {
        display: block;
    }

    .header__phone {
        display: none;
    }

    .header__actions {
        margin-left: auto;
    }
}

@media (max-width: 980px) {
    .header__nav {
        display: none;
    }

    .burger {
        display: block;
    }

    .header__inner {
        height: 70px;
        gap: 16px;
    }

    .header__logo img {
        height: 30px;
    }

    .header__actions {
        margin-left: auto;
    }

    .mobile-nav {
        inset: 70px 0 0;
    }

    .hero {
        margin: 16px var(--gutter) 0;
        border-radius: 24px;
    }

    .hero__content {
        padding: 64px 32px 72px;
    }

    .tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .filters {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 80;
        width: min(370px, 88vw);
        overflow-y: auto;
        padding: 20px;
        border-radius: 0 20px 20px 0;
        transform: translateX(-105%);
        transition: transform 0.25s ease;
    }

    .filters.is-open {
        transform: translateX(0);
    }

    .filters__close {
        display: block;
    }

    .btn--filter {
        display: inline-flex;
    }

    .listing__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .listing__aside {
        position: static;
        order: -1;
    }

    .contact-card {
        max-width: 520px;
    }

    .mobile-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 50;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 12px 16px;
        border-top: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(12px);
    }

    .listing {
        padding-bottom: 92px;
    }

    .footer__top {
        grid-template-columns: 1fr 1fr;
    }

    .section__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .section__lead {
        max-width: 680px;
    }
}

@media (max-width: 1080px) {
    .gallery {
        grid-template-rows: 340px;
        gap: 6px;
    }

    .gallery__grid {
        gap: 6px;
    }

    .rv__main {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .rv__aside {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-width: 0;
    }

    .rv__months {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    :root {
        --gutter: 16px;
    }

    .header__cta {
        display: none;
    }

    .header__logo img {
        height: 30px;
    }

    .header__inner {
        gap: 12px;
    }

    .section {
        padding: 46px 0;
    }

    .section--tiles {
        padding-top: 36px;
    }

    .hero {
        margin: 12px var(--gutter) 0;
        border-radius: 20px;
    }

    .hero__content {
        padding: 48px 22px 56px;
    }

    .hero__subtitle {
        font-size: 16px;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .tiles {
        grid-template-columns: 1fr;
    }

    .tile {
        min-height: 112px;
    }

    .catalog__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .catalog__tools {
        width: 100%;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .sort {
        margin-left: auto;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .card__media img {
        aspect-ratio: 4 / 3;
    }

    .cta__inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 24px;
        border-radius: 22px;
    }

    .cta__inner .btn {
        width: 100%;
    }

    .page-head__row {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-head__count {
        min-width: 0;
        padding: 10px 16px;
    }

    .page-head__count strong {
        display: inline;
        margin-right: 6px;
        font-size: 20px;
    }

    .listing__head {
        gap: 18px;
    }

    .gallery {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        gap: 6px;
    }

    /* На телефоне большая картинка сверху, ниже миниатюры в ряд. */
    .gallery__main,
    .gallery--cols-1 .gallery__main,
    .gallery--cols-2 .gallery__main {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .gallery__grid,
    .gallery--cols-1 .gallery__grid,
    .gallery--cols-2 .gallery__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: none;
        grid-auto-rows: auto;
        gap: 6px;
    }

    .gallery__thumb {
        aspect-ratio: 1 / 1;
    }

    /* Комнаты на телефоне: фото сверху, месяцы в горизонтальный скролл. */
    .rv__main {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .rv__aside {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .rv__months {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .rv__month {
        flex: 0 0 68px;
        scroll-snap-align: start;
    }

    .rv-dialog__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 16px;
    }

    .rv-dialog__amenities {
        grid-template-columns: minmax(0, 1fr);
    }

    .rv-dialog__months {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gallery__main img,
    .gallery--cols-1 .gallery__main img,
    .gallery--cols-2 .gallery__main img {
        height: 100%;
        aspect-ratio: auto;
    }

    .gallery__thumb img {
        height: 100%;
        aspect-ratio: auto;
    }

    .amenities {
        grid-template-columns: 1fr;
    }

    .room__prices {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer {
        padding-top: 42px;
    }

    .footer__top {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 8px;
    }

    .lightbox__nav {
        width: 40px;
        height: 40px;
        font-size: 26px;
    }

    .lightbox__nav--prev {
        left: 8px;
    }

    .lightbox__nav--next {
        right: 8px;
    }

    .map iframe,
    .map--lazy iframe {
        height: 300px;
    }

    .map--lazy {
        min-height: 300px;
    }
}

@media (max-width: 420px) {
    .header__cta {
        display: none;
    }

    .btn {
        min-height: 46px;
        padding: 12px 18px;
    }

    .badge {
        font-size: 11px;
    }
}

/* === Пилот: плитки с фото, цены по датам, схема === */

.tiles--photo {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tile--photo {
    position: relative;
    min-height: 210px;
    justify-content: flex-end;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    background-color: var(--ink);
    background-position: center;
    background-size: cover;
    color: var(--white);
}

.tile--photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 25, 35, 0.04) 10%, rgba(4, 25, 35, 0.88) 100%);
}

.tile--photo .tile__body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px;
    text-shadow: 0 1px 14px rgba(4, 25, 35, 0.62);
}

.tile--photo .tile__title {
    font-size: 22px;
    color: var(--white);
}

.tile--photo .tile__count {
    color: rgba(255, 255, 255, 0.78);
}

.tile--photo .tile__link {
    color: var(--white);
    opacity: 0.92;
}

.tile--photo:hover .tile__link {
    opacity: 1;
    text-decoration: underline;
}

.tile--photo.tile--empty {
    background-image: linear-gradient(135deg, #0b2c3a, #155066) !important;
}

.tile--photo.tile--empty::after {
    background: linear-gradient(135deg, rgba(4, 25, 35, 0.35), rgba(4, 25, 35, 0.1));
}

.tile.tile--empty {
    background: var(--bg);
}

.tile.tile--empty .tile__title {
    color: var(--ink-soft);
}

.tile.tile--empty .tile__link {
    color: var(--muted);
}

.tile.tile--photo.tile--empty .tile__title {
    color: var(--white);
}

.tile.tile--photo.tile--empty .tile__count {
    color: rgba(255, 255, 255, 0.78);
}

.tile.tile--photo.tile--empty .tile__link {
    color: rgba(255, 255, 255, 0.92);
}

.room__table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 4px;
    font-size: 14px;
}

.room__table th {
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.room__table td {
    padding: 10px;
    border-bottom: 1px solid var(--line);
}

.room__table tr:last-child td {
    border-bottom: 0;
}

.room__table td:last-child {
    font-weight: 600;
    white-space: nowrap;
}

.scheme {
    padding-top: 24px;
}

.scheme__step {
    display: flex;
    gap: 20px;
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.scheme__num {
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
}

.scheme__info h2 {
    margin: 0 0 6px;
    font-size: 22px;
}

.scheme__info p {
    max-width: 720px;
    margin: 0 0 14px;
    color: var(--muted);
}

.scheme__locations {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-self: flex-end;
    margin-left: auto;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    font-size: 14px;
}

.chip--active {
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
}

.legacy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

@media (max-width: 960px) {
    .tiles--photo {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .scheme__step {
        flex-wrap: wrap;
    }

    .scheme__locations {
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .tiles--photo {
        grid-template-columns: 1fr;
    }

    .tile--photo {
        min-height: 170px;
    }
}

.room__note {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(247, 64, 10, 0.1);
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    opacity: 1;
}

.room__empty {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
}

/* Регионы без объектов: сплошная заливка, чтобы фото-заглушка не выглядела дублем */
.tile--photo.tile--empty {
    background-image: linear-gradient(135deg, #0d3446 0%, #1b6079 100%) !important;
    background-color: #0d3446;
}


/* === «Выберите курорт»: белые компактные плитки, 4 в ряд (как на Тильде) === */
.section--resorts {
    padding: 56px 0 40px;
}

.resorts-h2 {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    color: var(--ink);
}

.resorts-lead {
    margin: 0 0 34px;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
    color: var(--ink-soft);
}

.resorts-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.resort {
    display: flex;
    flex-direction: column;
    min-height: 118px;
    padding: 20px 24px 18px;
    border-radius: 20px;
    background: #fff;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.resort:hover {
    box-shadow: 0 14px 30px -20px rgba(4, 25, 35, 0.38);
    transform: translateY(-1px);
}

.resort__title {
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.resort__link {
    margin-top: auto;
    padding-top: 14px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
}

.resort:hover .resort__link {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .resorts-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .resorts-h2 {
        font-size: 22px;
    }

    .resorts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .resort {
        min-height: 104px;
        padding: 16px 18px 14px;
    }

    .resort__title {
        font-size: 15px;
    }
}

/* Калькулятор проживания */
.stay-calc {
    margin: 22px 0 30px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
}

.stay-calc__head h3 {
    margin: 0 0 4px;
    font-size: 20px;
}

.stay-calc__head p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 13.5px;
}

.stay-calc__grid {
    display: grid;
    grid-template-columns: minmax(180px, 1.4fr) minmax(210px, 1.6fr) minmax(90px, .6fr) auto;
    gap: 12px;
    align-items: end;
}

.stay-calc__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    color: var(--muted);
    font-size: 12px;
}

.stay-calc__field select,
.stay-calc__field input {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
}

.stay-calc__field select {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stay-calc__field--range input {
    cursor: pointer;
}

.stay-calc__basis {
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.2;
}

.stay-calc__room-full {
    color: var(--ink-soft);
    font-size: 11.5px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

/* На широких экранах подпись «цена за человека» не должна увеличивать высоту
   колонки: иначе селект и кнопка съезжают относительно дат и гостей.
   На планшете и телефоне поля стоят в своих строках — там оставляем подпись в потоке. */
@media (min-width: 901px) {
    .stay-calc__grid {
        padding-bottom: 22px;
    }

    .stay-calc__field--room {
        position: relative;
    }

    .stay-calc__basis {
        position: absolute;
        top: calc(100% + 5px);
        left: 0;
        right: 0;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    /* Полное название длинной комнаты на десктопе показывает сам select и title. */
    .stay-calc__room-full {
        display: none;
    }
}

.stay-calc__submit {
    white-space: nowrap;
}

.stay-calc__result {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--bg);
    font-size: 14px;
    line-height: 1.5;
}

.stay-calc__result--error {
    background: #fdecec;
    color: #b42318;
}

.stay-calc__total {
    font-size: 17px;
}

.stay-calc__total strong {
    color: var(--accent-orange);
    font-size: 22px;
}

.stay-calc__breakdown {
    margin: 8px 0;
    padding-left: 18px;
    color: var(--muted);
}

.stay-calc__formula,
.stay-calc__note {
    color: var(--muted);
    font-size: 12.5px;
}

.stay-calc__note {
    margin-top: 4px;
}

.rv__price--unavailable {
    color: var(--muted);
    font-size: 14px;
}

.dates-card__price--error {
    color: #b42318;
}

.rv__calc {
    margin-bottom: 6px;
}

@media (max-width: 900px) {
    .stay-calc__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stay-calc__submit {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .stay-calc {
        padding: 16px;
    }

    .stay-calc__grid {
        grid-template-columns: 1fr;
    }
}

/* Flatpickr в цветах сайта */
.flatpickr-calendar {
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: 0 22px 55px -28px rgba(4, 25, 35, .45);
    font-family: inherit;
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months {
    color: var(--ink);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    border-color: var(--accent-orange);
    background: var(--accent-orange);
    color: #fff;
}

.flatpickr-day.inRange {
    border-color: #fdece9;
    background: #fdece9;
    box-shadow: -5px 0 0 #fdece9, 5px 0 0 #fdece9;
    color: var(--ink);
}

.flatpickr-day:hover {
    border-color: var(--blue);
    background: var(--bg);
}

.flatpickr-day.today {
    border-color: var(--blue);
}

@media (max-width: 900px) {
    .stay-calc__field--range {
        grid-column: 1 / -1;
    }
}
