:root {
    --navy: #1c3348;
    --navy-2: #142636;
    --ink: #241f1b;
    --muted: #6d645c;
    --line: #e4d9cc;
    --sand: #b08958;
    --sand-deep: #8c6a3e;
    --cream: #f7f1e8;
    --paper: #fffdf9;
    --danger: #8e3b3b;
    --ok: #2d6a4f;
    --shadow: 0 18px 50px rgba(28, 51, 72, 0.1);
    --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --sans: Manrope, "Segoe UI", sans-serif;
    --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: clip;
}
img, svg, video, iframe { max-width: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.15rem, 6vw, 4.6rem); margin: 0 0 0.35em; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.5rem); margin: 0 0 0.45em; }
h3 { font-size: 1.35rem; margin: 0 0 0.35em; }
p { margin: 0 0 0.8em; overflow-wrap: break-word; }
ul { margin: 0; padding: 0; }

.container { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 32px)); margin-inline: auto; }
.skip {
    position: absolute; left: 12px; top: -40px; background: #fff; padding: 8px 12px; z-index: 50;
}
.skip:focus { top: 12px; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.kicker {
    margin: 0 0 0.6rem;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sand-deep);
    font-weight: 600;
}
.fine { color: var(--muted); font-size: 0.92rem; }
.text-link { color: var(--navy); font-weight: 600; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0.7rem 1.3rem; border-radius: 999px;
    border: 1px solid transparent; text-decoration: none; cursor: pointer;
    background: transparent; transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-sand { background: var(--sand); color: #1c140c; font-weight: 600; }
.btn-sand:hover { background: #c4a574; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }

.site-header {
    position: sticky; top: 0; z-index: 30;
    background: rgba(247, 241, 232, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(228, 217, 204, 0.8);
}
.topbar { background: var(--navy); color: #f6f1e8; font-size: 0.82rem; }
.topbar a { color: #f6f1e8; text-decoration: none; white-space: nowrap; }
.topbar__inner { display: flex; gap: 8px 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 8px 0; }
.topbar__address { display: none; }
.topbar__phones { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.header__bar { position: relative; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.logo { display: flex; gap: 10px; align-items: center; text-decoration: none; color: inherit; min-width: 0; }
.logo > span:last-child { min-width: 0; }
.logo__mark {
    width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center;
    border: 1px solid var(--sand); color: var(--navy); font-family: var(--serif); font-size: 1.4rem;
}
.logo__name { display: block; font-family: var(--serif); font-size: 1.45rem; line-height: 1; }
.logo__sub {
    display: block; max-width: 100%; font-size: 0.68rem; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-toggle-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 0 0 auto;
    min-height: 44px; min-width: 44px; padding: 0 14px;
    border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--paper);
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 16px; height: 1.5px; background: var(--navy); border-radius: 2px; position: relative;
    transition: transform .2s ease, top .2s ease, background .2s ease;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }
.nav-toggle-input:checked ~ .header__inner .nav-toggle__bars { background: transparent; }
.nav-toggle-input:checked ~ .header__inner .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle-input:checked ~ .header__inner .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }
.site-nav { display: none; }
.nav-toggle-input:focus-visible ~ .header__inner .nav-toggle { outline: 2px solid var(--sand); outline-offset: 3px; }
.nav-toggle-input:checked ~ .header__inner .site-nav {
    display: flex; position: absolute; left: 0; right: 0; top: 100%; z-index: 40;
    flex-direction: column; gap: 4px; margin: 0; height: 100dvh;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px 16px 28px; box-shadow: var(--shadow); overflow: auto;
}
body:has(#nav-toggle:checked) { overflow: hidden; }
.site-nav a { text-decoration: none; padding: 12px 8px; border-radius: 10px; }
.site-nav a[aria-current="page"] { color: var(--sand-deep); font-weight: 600; }
.nav-cta {
    background: var(--navy) !important; color: #fff !important; text-align: center; border-radius: 999px !important; margin-top: 6px;
}

.hero { position: relative; min-height: 0; display: grid; align-items: end; color: #fff; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20, 38, 54, 0.15) 0%, rgba(20, 38, 54, 0.78) 78%);
}
.hero__content { position: relative; z-index: 1; padding: 56px 0 28px; }
.hero h1, .hero .kicker, .hero__lead { color: #fff; }
.hero h1 { font-size: clamp(2.5rem, 8vw, 5.2rem); }
.hero__lead { max-width: 38rem; font-size: 1.05rem; }
.hero__search, .form-stay, .filters {
    display: grid; gap: 12px; margin-top: 18px;
    background: rgba(255, 253, 249, 0.96); color: var(--ink);
    padding: 16px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero__search .btn, .form-stay .btn { width: 100%; }
.filters { background: var(--paper); border: 1px solid var(--line); margin-bottom: 22px; box-shadow: none; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); }

.section { padding: clamp(36px, 6vw, 80px) 0; }
.section-tight { padding-top: 10px; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 16px; align-items: end; margin-bottom: 22px; }
.split { display: grid; gap: 28px; align-items: center; }
.split__photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; border-radius: var(--radius); }
.prose h2 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.2rem; margin-bottom: 1rem; }
.prose li + li { margin-top: 0.35rem; }

.perks { list-style: none; display: grid; gap: 14px; }
.perk {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
}
.perk svg { color: var(--sand-deep); }
.facts { display: grid; gap: 14px; }
.facts article {
    background: var(--navy); color: #f6f1e8; border-radius: var(--radius); padding: 22px;
}
.facts h3, .facts p { color: #f6f1e8; }
.facts__num { font-family: var(--serif); font-size: 2.4rem; margin: 0; }

.room-grid { display: grid; gap: 18px; }
.room-grid > *, .split > *, .footer__grid > *, .contact-grid > *, .review-layout > *, .confirm-grid > *, .choice > *, .perks > *, .facts > * { min-width: 0; }
.room-card {
    background: var(--paper); border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line); display: flex; flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}
.room-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.room-card__media { aspect-ratio: 4/3; overflow: hidden; background: #ddd4c8; }
.room-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.room-card:hover img { transform: scale(1.04); }
.room-card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.room-card__body h3 a { color: inherit; text-decoration: none; }
.room-card__meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 12px; color: var(--muted); font-size: 0.92rem; }
.room-card .btn { margin-top: auto; align-self: flex-start; }
.room-card .kicker { margin: 0; }
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.cat-filter a {
    display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px;
    border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
    color: inherit; text-decoration: none;
}
.cat-filter a.is-active { background: var(--navy, #1c2b3a); color: #fff; border-color: transparent; }
.price { font-family: var(--serif); font-size: 1.7rem; margin: 0; }
.price span { display: block; font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }
.media-fallback { display: grid; place-items: center; height: 100%; color: var(--muted); }

.page-hero { padding: 36px 0 10px; }
.breadcrumbs { padding-top: 14px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 0.92rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; }

.room-layout { display: grid; gap: 28px; }
.gallery-inline { display: grid; gap: 8px; margin: 12px 0 20px; }
.gallery-inline a { display: block; overflow: hidden; border-radius: 14px; background: #ddd4c8; }
.gallery-inline img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.amenities { list-style: none; display: grid; gap: 8px; }
.amenities li { padding-left: 1.4rem; position: relative; }
.amenities li::before { content: "✓"; position: absolute; left: 0; color: var(--sand-deep); }
.book-card {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.book-card ul { list-style: none; margin: 12px 0; }
.book-card li + li { margin-top: 4px; }
.book-card .btn { width: 100%; }

.steps { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; }
.steps li { padding: 6px 12px; border-radius: 999px; background: #efe6da; color: var(--muted); }
.steps .is-current { background: var(--navy); color: #fff; }
.steps .is-done { background: #e7d3b4; color: var(--ink); }
.booking-wrap { max-width: 920px; }
.form, .form-stay { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label, .form legend { font-size: 0.92rem; font-weight: 600; }
.field input, .field select, .field textarea, .form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="number"], .form input[type="date"], .form input[type="password"], .form select, .form textarea {
    width: 100%; max-width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 12px;
    border: 1px solid #d9cec1; background: #fff; font-size: 16px;
}
.field textarea, .form textarea { min-height: 120px; resize: vertical; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select, .field.is-invalid .date-ru__button { border-color: var(--danger); }
.field__error { min-height: 1.1em; color: var(--danger); font-size: 0.88rem; margin: 0; }
.field__error:empty { display: none; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.alert { padding: 12px 14px; border-radius: 12px; margin: 12px 0; }
.alert-success { background: #e7f3ec; color: var(--ok); }
.alert-error { background: #f8e8e8; color: var(--danger); }
.stay-line { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.choice-list { display: grid; gap: 12px; }
.choice, .confirm-grid {
    display: grid; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
}
.choice h2 { font-size: 1.5rem; }
.choice .kicker { margin-bottom: 4px; }
.unit-picks { display: grid; gap: 10px; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.unit-picks li {
    display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between;
    padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
}
.unit-picks strong { font-family: var(--serif); font-size: 1.25rem; }
.unit-picks .btn { min-height: 40px; }
.summary { display: grid; gap: 10px; margin: 18px 0; }
.summary div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }

.gallery-grid { display: grid; gap: 10px; }
.gallery-grid a { display: block; overflow: hidden; border-radius: 14px; background: #ddd4c8; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; transition: transform .4s ease; }
.gallery-grid a:hover img { transform: scale(1.03); }
.lightbox {
    position: fixed; inset: 0; z-index: 60; background: rgba(14, 22, 30, 0.92);
    display: grid; place-items: center; padding: 64px 56px 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: min(82vh, 900px); max-width: 100%; margin: 0 auto; object-fit: contain; }
.lightbox button {
    position: absolute; width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.16); color: #fff; cursor: pointer; font-size: 1.6rem;
}
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 8px; top: 50%; }
.lightbox__next { right: 8px; top: 50%; }
body.is-locked { overflow: hidden; }

.contact-grid, .review-layout { display: grid; gap: 28px; }
.nap { font-style: normal; display: grid; gap: 4px; margin-bottom: 12px; }
.nap strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.map-frame { margin-top: 16px; border-radius: var(--radius); overflow: hidden; min-height: 280px; background: #ddd4c8; }
.map-frame iframe { width: 100%; height: min(56vw, 420px); min-height: 240px; border: 0; }
.review-list, .review-grid { display: grid; gap: 14px; }
.review-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.review-card h2, .review-card h3 { font-size: 1.2rem; }
.stars { color: #d9cec1; letter-spacing: 2px; }
.stars .is-on { color: var(--sand); }
.rating-input { position: relative; display: flex; gap: 8px; flex-wrap: wrap; }
.rating-input input {
    position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0, 0, 0, 0);
}
.rating-input label {
    min-width: 44px; min-height: 44px; display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: #fff;
}
.rating-input input:checked + label { background: var(--navy); color: #fff; border-color: var(--navy); }
.rating-input input:focus-visible + label { outline: 2px solid var(--sand); outline-offset: 2px; }
.empty { padding: 18px; background: var(--paper); border-radius: 12px; }

.cta-band { background: var(--navy); color: #f6f1e8; padding: 48px 0; }
.cta-band h2 { color: #fff; max-width: 16ch; }
.site-footer { background: var(--navy-2); color: #f6f1e8; padding: 42px 0 18px; }
.site-footer a { color: #f6f1e8; overflow-wrap: anywhere; }
.site-footer h2 { font-size: 1.2rem; color: #fff; }
.footer__grid { display: grid; gap: 24px; }
.footer__grid ul { list-style: none; }
.footer__grid li + li { margin-top: 6px; }
.footer__bottom {
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 14px; font-size: 0.9rem;
}
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }
::selection { background: #ead9bf; }

@media (min-width: 480px) {
    .topbar { font-size: 0.86rem; }
    .topbar__phones { gap: 8px 18px; }
    .gallery-inline { grid-template-columns: 1fr 1fr; }
    .gallery-inline .is-cover { grid-column: 1 / -1; }
}

@media (min-width: 720px) {
    .topbar__address { display: inline; }
    .perks, .facts, .room-grid, .review-list { grid-template-columns: 1fr 1fr; }
    .filters { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .amenities { grid-template-columns: 1fr 1fr; }
    .choice { grid-template-columns: 1fr auto; align-items: center; }
    .hero { min-height: 78vh; }
    .hero__content { padding-top: 72px; }
    .footer__grid { grid-template-columns: 1.3fr 1fr; }
}

@media (min-width: 960px) {
    .nav-toggle { display: none; }
    .header__inner { gap: 24px; }
    .site-nav, .nav-toggle-input:checked ~ .header__inner .site-nav {
        display: flex; position: static; flex-direction: row; align-items: center;
        height: auto; max-height: none; overflow: visible; box-shadow: none;
        background: transparent; border: 0; padding: 0; margin-left: auto; width: auto;
    }
    .nav-cta { margin-top: 0; margin-left: 8px; }
    body:has(#nav-toggle:checked) { overflow: visible; }
    .hero__search, .form-stay { grid-template-columns: 1fr 1fr 120px auto; align-items: end; }
    .hero__search .btn, .form-stay .btn { width: auto; }
    .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
    .room-grid { grid-template-columns: repeat(3, 1fr); }
    .perks { grid-template-columns: repeat(4, 1fr); }
    .facts, .review-grid { grid-template-columns: repeat(3, 1fr); }
    .split, .room-layout, .contact-grid, .review-layout, .confirm-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.8fr); align-items: start;
    }
    .book-card { position: sticky; top: 112px; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid a:nth-child(1), .gallery-grid a:nth-child(6) { grid-column: span 2; }
    .gallery-grid a:nth-child(1) img, .gallery-grid a:nth-child(6) img { aspect-ratio: 16/9; }
    .gallery-inline { grid-template-columns: 1.5fr 1fr; }
    .gallery-inline .is-cover { grid-column: auto; grid-row: span 2; }
    .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 420px) {
    .container, .narrow { width: calc(100% - 20px); }
    .logo__sub { display: none; }
    .nav-toggle { width: 44px; padding: 0; font-size: 0; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}
