/* Шрифты хранятся на сайте: без запросов к Google Fonts (152-ФЗ). Лицензия OFL — public/fonts/ */
@font-face{font-family:'Forum';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/forum-cyrillic-400-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Forum';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/forum-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Golos Text';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/golos-text-cyrillic-400-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Golos Text';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/golos-text-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Golos Text';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/golos-text-cyrillic-500-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Golos Text';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/golos-text-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Golos Text';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/golos-text-cyrillic-600-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Golos Text';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/golos-text-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* Отель «1001 ночь» — публичный сайт.
   Палитра из самого отеля: лазурь фасадных изразцов, гранат текстиля в номерах, латунь светильников, светлый известняк. */
:root {
  --lapis: #1E3A6E;
  --lapis-deep: #132A52;
  --garnet: #7A2232;
  --garnet-dark: #5E1826;
  --brass: #A8823F;
  --stone: #EAE2D4;
  --stone-light: #F5F1EA;
  --paper: #FFFDF9;
  --ink: #23211D;
  --muted: #6B6559;
  --line: #DDD3C3;
  --arch: 50% 50% 6px 6px / 26% 26% 6px 6px;
  --wrap: 1240px;
  --display: Forum, 'Times New Roman', serif;
  --text: 'Golos Text', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--stone-light); color: var(--ink); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: var(--lapis); text-underline-offset: 3px; }
a:hover { color: var(--garnet); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.005em; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.3vw, 2.75rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; line-height: 1.55; color: #3d3a33; max-width: 40ch; }
.muted { color: var(--muted); }
small { font-size: .85em; }
.narrow { max-width: 760px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.visually-hidden, .skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 100; background: #fff; padding: 10px 14px; }
.preview-bar { background: var(--brass); color: #fff; font-size: .9rem; padding: 8px 28px; text-align: center; }
.preview-bar a { color: #fff; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 0; font: 600 1rem var(--text); text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn-garnet { background: var(--garnet); color: #fff; }
.btn-garnet:hover { background: var(--garnet-dark); color: #fff; }
.btn-line { background: transparent; color: var(--lapis); box-shadow: inset 0 0 0 1.5px var(--lapis); }
.btn-line:hover { background: var(--lapis); color: #fff; }
.btn-wide { width: 100%; }
.more { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }

/* Шапка */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--lapis); text-decoration: none; }
.brand svg { width: 28px; height: 36px; }
.brand span { font-family: var(--display); font-size: 1.6rem; line-height: 1; display: flex; flex-direction: column; }
.brand small { font-family: var(--text); font-size: .72rem; color: var(--muted); margin-top: 3px; }
.main-nav { display: flex; gap: 22px; margin-left: auto; }
.main-nav a { color: var(--ink); text-decoration: none; font-size: .97rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current] { border-bottom-color: var(--brass); color: var(--ink); }
.header-phone { color: var(--ink); text-decoration: none; font-weight: 500; white-space: nowrap; }
.header-book { min-height: 42px; padding: 9px 20px; }
.menu-toggle { display: none; background: none; border: 0; color: var(--ink); padding: 8px; margin-left: auto; cursor: pointer; }
@media (max-width: 1120px) { .header-phone { display: none; } }
@media (max-width: 960px) {
  .header-row { height: 64px; gap: 12px; }
  .main-nav { z-index: 60; display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 28px 16px; box-shadow: 0 18px 30px rgba(35, 33, 29, .08); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: block; }
  .header-book { display: none; }
}


/* Секции */
.section { padding: 96px 0; }
.section.first { padding-top: 32px; }
.section.tight { padding: 40px 0 72px; }
.section.stone { background: var(--stone); }
.section.dark { background: var(--lapis-deep); color: #E7EAF2; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 36px; }
@media (max-width: 760px) { .section { padding: 64px 0; } .wrap { padding: 0 20px; } }

.arch { border-radius: var(--arch); overflow: hidden; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); padding-top: 22px; }
.crumbs a { color: var(--muted); }

/* Главный экран */
.hero { background: var(--paper); padding: 40px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: end; }
.hero-text { padding-bottom: 56px; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); margin-bottom: 28px; }
.hero-media { aspect-ratio: 4 / 3.4; }
.hero-search { position: relative; margin-top: -64px; padding-bottom: 56px; }
@media (max-width: 900px) {
  .hero { padding-top: 20px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-text { padding-bottom: 0; order: 2; }
  .hero-media { aspect-ratio: 4 / 3; }
  .hero-search { margin-top: 24px; }
}

/* Поиск */
.search-form { position: relative; display: grid; grid-template-columns: 1.15fr 1.15fr 1.2fr .7fr 1fr auto; gap: 12px; align-items: end; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: 0 18px 50px rgba(19, 42, 82, .10); }
.sf-field { display: flex; flex-direction: column; gap: 6px; }
.sf-field label { font-size: .85rem; color: var(--muted); font-weight: 500; }
.search-form input, .search-form select, .field input, .field textarea { font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; min-height: 48px; width: 100%; }
.search-form input:focus, .search-form select:focus, .field input:focus, .field textarea:focus { outline: none; border-color: var(--lapis); box-shadow: 0 0 0 3px rgba(30, 58, 110, .15); }
.search-form .btn { height: 48px; }
@media (max-width: 900px) { .search-form { grid-template-columns: 1fr 1fr; } .search-form .btn { grid-column: 1 / -1; } }

/* Факты */
.facts-band { background: var(--lapis); color: #DCE3F0; padding: 28px 0; }
.facts { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.facts li { border-left: 1px solid rgba(255, 255, 255, .25); padding-left: 18px; line-height: 1.45; }
.facts b { display: block; color: #fff; font: 400 1.5rem/1.2 var(--display); margin-bottom: 4px; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } }

/* Карточки номеров */
.room-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.room-card-media { display: block; aspect-ratio: 4 / 4.4; margin-bottom: 18px; }
.room-card h3 a { color: var(--ink); text-decoration: none; }
.room-card h3 a:hover { color: var(--garnet); }
.room-card .muted { margin-bottom: .5em; }
.room-card-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; }
.from { font-family: var(--display); font-size: 1.35rem; color: var(--garnet); white-space: nowrap; }
.from small { font-family: var(--text); font-size: .8rem; color: var(--muted); }
@media (max-width: 960px) { .room-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .room-grid { grid-template-columns: 1fr; } .room-card-media { aspect-ratio: 4 / 3.4; } }

.room-list { display: grid; gap: 56px; margin-top: 48px; }
.room-row { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
.room-row:nth-child(even) .room-row-media { order: 2; }
.room-row-media { aspect-ratio: 4 / 3.3; display: block; }
.room-row h2 { font-size: 2.3rem; margin-bottom: .2em; }
.room-row h2 a { color: var(--ink); text-decoration: none; }
.specs { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 18px 0; }
.specs div, .room-facts div, .svc-facts div { display: flex; flex-direction: column; }
.specs dt, .room-facts dt, .svc-facts dt { font-size: .82rem; color: var(--muted); }
.specs dd, .room-facts dd, .svc-facts dd { margin: 0; }
.room-row-foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
@media (max-width: 800px) { .room-row { grid-template-columns: 1fr; gap: 20px; } .room-row:nth-child(even) .room-row-media { order: 0; } }

/* Страница номера */
.room-head { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; margin-bottom: 32px; }
.room-price { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 220px; gap: 12px; }
.g-item { padding: 0; border: 0; background: var(--stone); cursor: zoom-in; overflow: hidden; border-radius: 6px; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.g-item:hover img { transform: scale(1.03); }
.g-main { grid-row: span 2; border-radius: var(--arch); }
.gallery .g-item:nth-child(n+6) { display: none; }
.room-body { display: grid; grid-template-columns: 7fr 4fr; gap: 64px; }
.room-desc > p:first-child { font-size: 1.15rem; }
.room-desc h2 { font-size: 1.8rem; margin-top: 1.4em; }
.room-facts dl { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 8px 24px; position: sticky; top: 100px; }
.room-facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.room-facts div:last-child { border: 0; }
@media (max-width: 860px) {
  .room-head { grid-template-columns: 1fr; } .room-price { align-items: flex-start; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; } .g-main { grid-column: span 2; grid-row: span 2; }
  .room-body { grid-template-columns: 1fr; gap: 24px; }
}
.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(19, 22, 30, .9); }
.lightbox img { max-width: 96vw; max-height: 90vh; border-radius: 6px; }
.lightbox button { position: fixed; background: rgba(255, 255, 255, .9); border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lb-close { top: 16px; right: 16px; } .lb-prev { left: 16px; top: 50%; } .lb-next { right: 16px; top: 50%; }

/* Списки с отметкой */
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { position: relative; padding: 7px 0 7px 28px; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 16px; width: 9px; height: 9px; border: 1.5px solid var(--brass); transform: rotate(45deg); }
.ticks.cols { columns: 2; column-gap: 32px; }
.ticks.cols li { break-inside: avoid; }
@media (max-width: 600px) { .ticks.cols { columns: 1; } }

/* Раскладки */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media.tall { aspect-ratio: 4 / 5; border-radius: var(--arch); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 28px; }
.duo-item { color: inherit; text-decoration: none; }
.duo-item p { color: #C9D0E0; max-width: 46ch; }
.duo-item:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
.duo-media { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; margin-bottom: 18px; }
.duo-media img { width: 100%; height: 100%; object-fit: cover; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mosaic picture { aspect-ratio: 1; overflow: hidden; border-radius: 6px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .split, .two-col, .duo { grid-template-columns: 1fr; gap: 32px; } .split.reverse .split-media { order: 0; } }

.sights { list-style: none; padding: 0; margin: 0 0 24px; }
.sights li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(35, 33, 29, .14); }
.sight-list { list-style: none; padding: 0; margin: 0; }
.sight-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.sight-list h3 { font-size: 1.35rem; margin-bottom: .3em; }
.sight-list h3 .muted { font: .9rem var(--text); margin-left: 8px; }
.sight-list p { margin: 0; color: #4a463e; }

/* Заголовок обычной страницы */
.page-head { display: grid; gap: 48px; align-items: end; padding-bottom: 8px; }
.page-head.with-photo { grid-template-columns: 1fr 1fr; }
.page-photo { aspect-ratio: 4 / 3.4; }
@media (max-width: 900px) { .page-head.with-photo { grid-template-columns: 1fr; gap: 24px; } }

.svc-facts { margin: 24px 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.svc-facts div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.table-wrap { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; }
.price-table th, .price-table td { text-align: left; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-weight: 400; }
.price-table thead th { font-size: .85rem; color: var(--muted); }
.price-table td:last-child { text-align: right; white-space: nowrap; }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
.svc-card { color: inherit; text-decoration: none; }
.svc-media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; margin-bottom: 14px; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.svc-card:hover img { transform: scale(1.03); }
.svc-card h2 { font-size: 1.55rem; margin-bottom: .2em; }
@media (max-width: 860px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.offer-card { color: inherit; text-decoration: none; }
.offer-media { aspect-ratio: 4 / 4.2; margin-bottom: 16px; }
.offer-card h2 { font-size: 1.7rem; margin-bottom: .3em; }
.tag { display: inline-block; font-size: .8rem; background: #F3E7C9; color: #6B4E12; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.notice { background: #F6ECD6; border-left: 3px solid var(--brass); padding: 12px 16px; border-radius: 4px; }
.empty { font-size: 1.1rem; }
@media (max-width: 860px) { .offer-grid { grid-template-columns: 1fr; } }

.steps { padding-left: 1.2em; } .steps li { margin-bottom: 8px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-size: 1.12rem; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 14px; font-size: 1.6rem; color: var(--brass); }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: #4a463e; }
.prose h2 { font-size: 1.8rem; margin-top: 1.2em; }
.doc-list { list-style: none; padding: 0; } .doc-list li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }

/* Контакты внизу главной */
.contact-band { background: var(--paper); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; align-items: end; }
.big-phone { font-family: var(--display); font-size: clamp(2rem, 4.5vw, 3.4rem); margin: 0 0 8px; }
.big-phone a { color: var(--garnet); text-decoration: none; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* Бронирование */
.booking .search-form { margin-top: 28px; }
.form-error { background: #F8E3E3; color: #7A1D1D; border-radius: 10px; padding: 12px 16px; margin-top: 16px; }
.results-h { font-size: 1.6rem; margin-bottom: 24px; }
.results { display: grid; gap: 24px; margin-bottom: 32px; }
.result { display: grid; grid-template-columns: 260px 1fr; gap: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.result.unavailable { opacity: .72; }
.result-media { aspect-ratio: 4 / 3.6; }
.result h3 { font-size: 1.7rem; margin-bottom: .1em; } .result h3 a { color: var(--ink); text-decoration: none; }
.result-problem { color: var(--garnet); font-weight: 500; }
.scarce { color: var(--garnet); font-size: .92rem; font-weight: 600; margin: 0 0 8px; }
.offer { display: grid; grid-template-columns: 1fr auto; gap: 20px; border-top: 1px solid var(--line); padding: 16px 0 6px; }
.offer-name { font-weight: 600; margin: 0 0 2px; }
.offer .muted { font-size: .93rem; margin-bottom: 6px; }
.offer details summary { cursor: pointer; color: var(--lapis); font-size: .93rem; }
.offer-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.offer-price .price { font-family: var(--display); font-size: 1.8rem; margin: 0; line-height: 1.1; }
.offer-price .muted { margin: 0 0 10px; font-size: .88rem; }
.nights { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: .95rem; }
.nights th, .nights td { text-align: left; font-weight: 400; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.nights td { text-align: right; }
.nights tfoot th, .nights tfoot td { font-weight: 600; border: 0; padding-top: 10px; }
@media (max-width: 760px) { .result { grid-template-columns: 1fr; padding: 16px; } .offer { grid-template-columns: 1fr; } .offer-price { align-items: stretch; text-align: left; } }

.checkout { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; }
.hold-timer { color: var(--lapis); font-weight: 500; }
.guest-form { display: grid; gap: 16px; max-width: 560px; }
.field { display: flex; flex-direction: column; gap: 6px; } .field label { font-weight: 500; font-size: .93rem; } .field small { color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; } .check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.summary { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 24px; position: sticky; top: 100px; }
.summary h2 { font-size: 1.8rem; }
.prepay { border-top: 1px solid var(--line); padding-top: 12px; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .summary { position: static; order: -1; } }
.manage .svc-facts { margin-top: 8px; }
.cancel-form { margin: 36px 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); display: grid; gap: 12px; justify-items: start; }
.cancel-form h2 { font-size: 1.5rem; margin: 0; }

/* Подвал */
.site-footer { background: var(--lapis-deep); color: #C7CFE0; padding: 64px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 36px; }
.footer-brand { font: 2rem var(--display); color: #fff; margin-bottom: 12px; }
.footer-h { color: #fff; font-weight: 600; margin-bottom: 8px; }
.site-footer .muted { color: #95A1BC; }
.footer-legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .85rem; color: #95A1BC; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.ph { background: var(--stone); }
/* Картинка заполняет контейнер с заданными пропорциями */
.arch > picture, .split-media > picture, .duo-media > picture, .svc-media > picture, .result-media > picture,
.offer-media > picture, .page-photo > picture, .g-item > picture, .room-card-media > picture, .room-row-media > picture { width: 100%; height: 100%; }
.split-media img, .duo-media img, .svc-media img, .g-item img, .arch img { width: 100%; height: 100%; object-fit: cover; }
.contact-band .footer-h { color: var(--muted); font-weight: 500; }
.sf-field, .search-form input, .search-form select { min-width: 0; }
@media (max-width: 420px) { .search-form { padding: 14px; gap: 10px; } .facts { gap: 20px 16px; } .facts b { font-size: 1.25rem; } }

/* ===== Сквозная строка бронирования под меню ===== */
.book-bar { background: var(--lapis); color: #fff; border-top: 1px solid rgba(255,255,255,.08); }
.bb-form { position: relative; display: flex; align-items: stretch; gap: 0; height: 56px; }
.bb-form .sf-field { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 0; padding: 0 18px; border-right: 1px solid rgba(255,255,255,.16); min-width: 0; }
.bb-form .sf-field:first-child { padding-left: 0; }
.bb-form label, .bb-label { font-size: .72rem; color: #B9C5DE; font-weight: 500; line-height: 1.2; }
.bb-in, .bb-out { flex: 0 0 auto; }
.bb-guests { flex: 0 1 auto; }
.bb-room { flex: 1 1 auto; max-width: 260px; }
.bb-form select, .bb-form input[type=date] { background: transparent; color: #fff; border: 0; padding: 2px 0; font: 500 .98rem var(--text); min-height: 0; width: 100%; cursor: pointer; }
.bb-form select option { color: var(--ink); }
.bb-form .sf-date-btn, .bb-guests summary { width: auto; min-height: 0; border-radius: 0; box-shadow: none; background: none; border: 0; color: #fff; font: 500 .98rem var(--text); padding: 2px 0; text-align: left; cursor: pointer; white-space: nowrap; }
.bb-form .sf-date-btn.active { color: #F1D69A; box-shadow: none; }
.bb-form .bb-out .sf-date-btn::after { content: ' · ' attr(data-nights); color: #B9C5DE; font-weight: 400; font-size: .85rem; }
.bb-guests summary { list-style: none; display: flex; flex-direction: column; }
.bb-guests summary::-webkit-details-marker { display: none; }
.bb-val { white-space: nowrap; }
.bb-guests-pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; width: 280px; display: grid; gap: 6px; background: var(--paper); color: var(--ink); border-radius: 14px; padding: 16px; box-shadow: 0 20px 50px rgba(19,42,82,.25); }
.bb-guests-pop label { color: var(--muted); font-size: .85rem; }
.bb-guests-pop select, .bb-guests-pop input { font: inherit; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; color: var(--ink); }
.bb-hint { font-size: .8rem; color: var(--muted); margin: 4px 0 0; }
.bb-go { align-self: center; margin-left: auto; min-height: 40px; padding: 8px 22px; flex: none; }
.bb-form :focus-visible { outline-color: #F1D69A; }
@media (max-width: 960px) { .bb-form .bb-room { display: none; } }
@media (max-width: 640px) {
  .bb-form { height: 52px; }
  .bb-form .sf-field { padding: 0 10px; }
  .bb-form label, .bb-label { display: none; }
  .bb-form .sf-date-btn, .bb-guests summary { font-size: .9rem; }
  .bb-form .bb-out .sf-date-btn::after { content: none; }
  .bb-in .sf-date-btn::after { content: ' —'; color: #B9C5DE; }
  .bb-in { border-right: 0 !important; padding-right: 4px !important; }
  .bb-out { padding-left: 0 !important; }
  .bb-guests .bb-val { font-size: 0; }
  .bb-guests .bb-val::before { content: '👤 ' attr(data-short); font-size: .9rem; }
  .bb-go { padding: 6px 14px; font-size: .9rem; }
  .bb-go { font-size: 0; } .bb-go::after { content: 'Найти'; font-size: .92rem; }
  .bb-guests-pop { left: auto; right: -90px; width: min(300px, calc(100vw - 24px)); }
}

/* ===== Календарь выбора дат ===== */
.sf-date-btn { width: 100%; min-height: 48px; text-align: left; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-date-btn.active { border-color: var(--lapis); box-shadow: 0 0 0 3px rgba(30,58,110,.15); }
.dp { position: absolute; z-index: 45; top: calc(100% + 8px); left: 0; width: min(760px, calc(100vw - 32px)); background: var(--paper); color: var(--ink); border-radius: 18px; box-shadow: 0 24px 60px rgba(19,42,82,.28); padding: 18px 20px 14px; }
.search-form .dp { left: 20px; }
.dp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.dp-step { font-weight: 600; margin: 0; }
.dp-x { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); width: 40px; height: 40px; border-radius: 50%; }
.dp-x:hover { background: var(--stone-light); }
.dp-body { display: flex; align-items: flex-start; gap: 6px; }
.dp-months { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.dp-nav { flex: none; width: 36px; height: 36px; margin-top: -2px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink); }
.dp-nav:disabled { opacity: .3; cursor: default; }
.dp-title { text-align: center; font: 1.3rem var(--display); margin: 2px 0 8px; }
.dp-wd, .dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.dp-wd span { text-align: center; font-size: .75rem; color: var(--muted); padding-bottom: 4px; }
.dp-wd span:nth-child(n+6) { color: var(--garnet); }
.dp-day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 50px; border: 0; background: none; border-radius: 10px; cursor: pointer; font: inherit; color: var(--ink); padding: 0; }
.dp-day:hover:not([disabled]) { background: #EEF2F9; }
.dp-n { font-size: .98rem; font-weight: 500; line-height: 1.1; }
.dp-p { font-size: .68rem; color: #2E6B45; line-height: 1.1; font-variant-numeric: tabular-nums; min-height: .8em; }
.dp-day.we .dp-n { color: var(--garnet); }
.dp-day.few .dp-p { color: #A35A00; }
.dp-left { position: absolute; top: 2px; right: 2px; min-width: 14px; height: 14px; border-radius: 7px; background: #F5DDB5; color: #7A4300; font-size: .6rem; font-weight: 600; line-height: 14px; }
.dp-day.sold .dp-n { color: #9A958C; text-decoration: line-through; }
.dp-day.sold .dp-p { color: #9A958C; }
.dp-day.past { color: #C5C0B6; } .dp-day.past .dp-n { color: #C5C0B6; }
.dp-day.off { cursor: default; }
.dp-day.off:not(.sel) .dp-n { opacity: .55; }
.dp-day.no-arr .dp-n { text-decoration: underline dotted; }
.dp-day.in-range, .dp-day.hover-range { background: #E6ECF6; border-radius: 0; }
.dp-day.sel { background: var(--lapis); color: #fff; }
.dp-day.sel .dp-n, .dp-day.sel .dp-p { color: #fff; opacity: 1; text-decoration: none; }
.dp-day.start { border-radius: 10px 0 0 10px; } .dp-day.end { border-radius: 0 10px 10px 0; } .dp-day.start.end { border-radius: 10px; }
.dp-pad { height: 50px; }
.dp-foot { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.dp-msg { margin: 0 0 4px; font-weight: 500; }
.dp-msg.err { color: var(--garnet); }
.dp-legend { margin: 0; font-size: .78rem; color: var(--muted); }
.dp-legend span { display: inline-block; margin: 0 4px 0 10px; font-weight: 600; }
.dp-legend span:first-child { margin-left: 0; }
.lg-price { color: #2E6B45; } .lg-few { background: #F5DDB5; color: #7A4300; border-radius: 8px; padding: 0 5px; } .lg-sold { color: #9A958C; text-decoration: line-through; }
@media (max-width: 759px) {
  .dp { position: fixed; left: 0 !important; right: 0; bottom: 0; top: auto; width: 100%; max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 14px 12px 18px; }
  .dp-months { grid-template-columns: 1fr; }
  .dp-day { height: 52px; }
}

/* ===== Логотип ===== */
.brand .logo-mark { width: auto; height: 46px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .logo-mark { height: 52px; width: auto; }
@media (max-width: 960px) { .brand .logo-mark { height: 40px; } }

/* ===== Подменю ===== */
.nav-item { position: relative; display: flex; }
.nav-item > a { display: inline-flex; align-items: center; gap: 5px; }
.caret { transition: transform .15s; }
.sub-nav { position: absolute; top: 100%; left: -16px; min-width: 230px; padding: 8px; margin-top: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(19,42,82,.14); display: none; flex-direction: column; z-index: 50; }
.sub-nav::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.sub-nav a { padding: 10px 12px !important; border-radius: 8px; border-bottom: 0 !important; white-space: nowrap; }
.sub-nav a:hover, .sub-nav a[aria-current] { background: var(--stone-light); }
.nav-item:hover .sub-nav, .nav-item:focus-within .sub-nav { display: flex; }
.nav-item:hover .caret, .nav-item:focus-within .caret { transform: rotate(180deg); }
@media (max-width: 960px) {
  .nav-item { flex-direction: column; }
  .nav-item > a .caret { display: none; }
  .sub-nav { position: static; display: flex; margin: 0; padding: 0 0 6px 16px; border: 0; box-shadow: none; background: none; min-width: 0; }
  .sub-nav a { padding: 9px 0 !important; color: var(--muted); }
}

/* ===== Первый экран: фото на весь экран, восточная арка с лёгким затемнением ===== */
.hero-full { position: relative; min-height: calc(100svh - 132px); min-height: calc(100vh - 132px); display: flex; align-items: flex-end; overflow: hidden; background: var(--lapis-deep); }
.hero-full .hero-bg { position: absolute; inset: 0; }
.hero-full .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-full::after { content: ''; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(to top, rgba(10,16,34,.35), transparent); pointer-events: none; }
.hero-stage { position: relative; z-index: 1; width: 100%; display: flex; align-items: flex-end; }
.hero-arch { position: relative; width: min(500px, 88vw, calc((100svh - 170px) * .78)); aspect-ratio: 500 / 640; color: #fff; }
.arch-shape { position: absolute; inset: 0; width: 100%; height: 100%; }
.arch-fill { fill: rgba(12, 20, 44, .58); }
.arch-line { fill: none; stroke: #E2C17E; stroke-opacity: .75; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.arch-content { position: absolute; left: 11%; right: 11%; bottom: 9%; top: 30%; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-kicker { color: #E2C17E; font-size: .95rem; margin-bottom: .6em; }
.hero-full h1 { color: #fff; font-size: clamp(2.4rem, 4.6vw, 3.9rem); margin-bottom: .35em; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.hero-lead { color: #E8ECF5; font-size: 1.08rem; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; }
.btn-ghost-light { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.8); background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); color: #fff; }
@media (max-width: 760px) {
  .hero-full { min-height: calc(100svh - 116px); }
  .hero-stage { justify-content: center; }
  .hero-arch { width: min(420px, 92vw); aspect-ratio: 500 / 700; }
  .arch-content { left: 9%; right: 9%; bottom: 7%; top: 26%; }
  .hero-full h1 { font-size: 2.3rem; }
  .hero-lead { font-size: 1rem; }
  .hero-kicker { font-size: .85rem; }
}

/* ===== Услуги: вертикальное меню справа от заголовка ===== */
.services-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.svc-menu ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--brass); }
.svc-menu li a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0 9px 20px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.svc-menu li:last-child a { border-bottom: 0; }
.svc-menu li a span { font: 1.2rem var(--display); }
.svc-menu li a small { color: var(--muted); font-size: .85rem; text-align: right; }
.svc-menu li a:hover span { color: var(--garnet); }
.svc-menu li a:hover { background: linear-gradient(90deg, rgba(168,130,63,.10), transparent 70%); }
@media (max-width: 860px) { .services-head { grid-template-columns: 1fr; gap: 24px; } .svc-menu li a small { display: none; } }

/* ===== Массажи на странице СПА ===== */
.massage-short { list-style: none; padding: 0; margin: 18px 0; border-top: 1px solid var(--line); }
.massage-short li { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.massage-short li span:last-child { min-width: 7.5em; text-align: right; white-space: nowrap; }

/* Название отеля не переносится (в HTML — неразрывный пробел; здесь — страховка для блоков с названием) */
.brand span, .footer-brand span, .logo { white-space: nowrap; }
.hero-full h1 { overflow-wrap: normal; word-break: keep-all; hyphens: none; }
@media (max-width: 360px) { .hero-full h1 { font-size: 2rem; } .brand span { font-size: 1.4rem; } }
.massage-short li { grid-template-columns: minmax(0, 1fr) auto auto; }
@media (max-width: 480px) {
  .massage-short li { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
  .massage-short li span:nth-child(2) { grid-row: 2; font-size: .85rem; }
  .massage-short li span:last-child { min-width: 0; grid-row: 1 / span 2; grid-column: 2; align-self: center; }
}
@media (max-width: 380px) {
  .bb-form .sf-field { padding: 0 6px; }
  .bb-form .sf-date-btn, .bb-guests summary, .bb-guests .bb-val::before { font-size: .8rem !important; }
  .bb-go { padding: 6px 12px; margin-left: 6px; }
  .bb-go::after { font-size: .85rem; }
}
.cookie-bar{position:fixed;left:16px;right:16px;bottom:16px;z-index:60;max-width:720px;margin:0 auto;display:flex;gap:14px 20px;align-items:center;flex-wrap:wrap;padding:14px 18px;background:#fffdf8;border:1px solid #e3d9c6;box-shadow:0 10px 30px rgba(40,25,10,.15);font-size:14px}
.cookie-bar[hidden]{display:none}.cookie-bar p{margin:0;flex:1 1 320px}
.legal h2{margin-top:1.6em;font-size:1.25rem}.legal table{width:100%;border-collapse:collapse;font-size:14px}.legal th,.legal td{border:1px solid #e3d9c6;padding:8px 10px;text-align:left;vertical-align:top}
