@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/static/fonts/cormorant-cyrillic-500.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/static/fonts/cormorant-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("/static/fonts/literata-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("/static/fonts/literata-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }

/* «Тёмная комната»: графит домиков как фон, фото Сулака светятся на нём. Бирюза только на главной кнопке. */
:root {
  --bg: #0d1312;
  --surface: #151e1c;
  --surface-2: #1e2a27;
  --ink: #eef1ec;
  --muted: #b0bab5;
  --accent: #62cbc3;
  --accent-ink: #0d1312;
  --wood: #d9a465;
  --radius: 12px;
  --paper: #e4e9e4;
  --paper-ink: #0d1312;
  --paper-muted: #3c4744;
  --m: clamp(16px, 5vw, 72px);
  --gap: clamp(56px, 7vw, 104px);
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --step-head: clamp(1.625rem, 1.2rem + 1.3vw, 2.25rem);
  --step-display: clamp(2.125rem, 0.9rem + 5vw, 5.25rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.6 "Literata", Georgia, "Times New Roman", serif; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
h1, h2, h3 { font-weight: 300; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-head); }
p { margin: 0 0 1em; max-width: 60ch; }
figure { margin: 0; }
figcaption { font-size: var(--step-small); color: var(--muted); margin-top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: 12px 16px; z-index: 30; }
.skip:focus { left: 8px; top: 8px; }
.meta, .note { color: var(--muted); font-size: var(--step-small); }

/* Кнопки: одна форма на весь сайт, чуть скруглённые углы (по просьбе владельца) */
.btn, .dates button { font: inherit; font-weight: 500; min-height: 52px; padding: 0 28px; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; transition: transform 0.2s var(--ease), opacity 0.2s ease; }
.btn:hover, .dates button:hover { opacity: 0.86; }
.btn:active, .dates button:active { transform: translateY(2px); }
.textlink { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; transition: opacity 0.2s ease; }
.textlink:hover { opacity: 0.7; }

/* Первый экран: углы и светящаяся лента фото посередине */
.hero { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; gap: 24px; padding: 20px var(--m) clamp(28px, 4svh, 48px); }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.wordmark { font-weight: 500; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; }
.nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; transition: opacity 0.2s ease; }
.nav a:hover { opacity: 0.7; }
/* «Забронировать» в шапке и на телефоне: тёплый цвет дерева из домиков, бирюза остаётся на «Выбрать даты» */
.nav .nav-book { background: var(--wood); color: var(--accent-ink); font-weight: 500; padding: 0 20px; border-radius: var(--radius); margin-left: 8px; transition: opacity 0.2s ease, transform 0.2s var(--ease); }
.nav .nav-book:hover { opacity: 0.86; }
.nav .nav-book:active { transform: translateY(2px); }
.strip-wrap { align-self: center; margin-inline: calc(var(--m) * -1); min-width: 0; overflow: hidden; }
.strip { display: flex; gap: 10px; height: clamp(240px, 46svh, 520px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: 30vw; }
.strip::-webkit-scrollbar { display: none; }
.strip .frame { position: relative; height: 100%; flex: 0 0 auto; scroll-snap-align: center; }
.strip .frame img { height: 100%; width: auto; object-fit: cover; filter: brightness(0.5); transition: filter 0.6s ease; }
.strip .frame:hover img, .strip .frame.is-centre img { filter: brightness(0.95); }
.strip figcaption { position: absolute; left: 0; top: 0; margin: 0; padding: 8px 14px; max-width: 100%; background: rgba(13, 19, 18, 0.8); color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .js .strip figcaption { opacity: 0; transform: translateY(6px); transition: opacity 0.4s ease, transform 0.4s var(--ease); }
  .js .strip .frame.is-centre figcaption { opacity: 1; transform: none; }
}
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; }
.hero-title { max-width: 62rem; }
h1 { font-size: var(--step-display); line-height: 0.95; letter-spacing: -0.035em; max-width: 18ch; }
.lead { margin: 32px 0 0; max-width: 46ch; }

/* Общие отступы разделов */
.intro, .stay, .cafe, .events, .reviews, .around { padding: var(--gap) var(--m); }

/* Как устроен Аул: текст стоит, фото и видео проходят справа */
.intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.intro-text { grid-column: 1 / span 5; }
.intro-text h2 { margin-bottom: 28px; }
.statement { font-size: var(--step-head); line-height: 1.2; letter-spacing: -0.015em; max-width: 22ch; margin-bottom: 36px; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.facts li { max-width: 40ch; }
.intro-pics { grid-column: 7 / -1; display: grid; gap: 10svh; padding-block: 4svh 0; }
.pic img, .pic video, .clip { width: 100%; object-fit: cover; background: var(--surface); }
.pic-a { width: 66%; } .pic-a video { aspect-ratio: 4 / 5; }
.pic-b { width: 100%; } .pic-b img { aspect-ratio: 16 / 10; }
.pic-c { width: 56%; margin-left: 34%; } .pic-c video { aspect-ratio: 1 / 1; }
@media (min-width: 960px) {
  .intro-text { position: sticky; top: 16svh; align-self: start; }
}

/* Жильё: полоса неравных панелей и подробности под ней */
.stay > h2 { padding-left: calc((100% / 12) * 2); margin-bottom: 64px; }
.band { display: flex; height: 68svh; min-height: 420px; margin-inline: calc(var(--m) * -1); }
.panel { position: relative; overflow: hidden; flex: 2 1 0; min-width: 0; transition: flex-grow 0.5s var(--ease); }
.panel:nth-child(1) { flex-grow: 5; } .panel:nth-child(3) { flex-grow: 3; }
.panel img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.9); transition: transform 0.8s var(--ease); }
.panel:hover { flex-grow: 6; }
.panel:hover img { transform: scale(1.03); }
.panel-title { position: absolute; left: 0; top: 0; margin: 0; padding: 20px 24px; background: rgba(13, 19, 18, 0.72); color: var(--ink); font-size: var(--step-head); font-weight: 300; line-height: 1.15; letter-spacing: -0.015em; }
.band-cap { color: var(--muted); font-size: var(--step-small); margin: 16px 0 0; max-width: none; }
.types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px clamp(32px, 6vw, 96px); margin-top: 72px; }
.type p { max-width: 52ch; }
.type h3 { margin-bottom: 12px; }
.type .price { font-weight: 500; font-variant-numeric: tabular-nums; margin-bottom: 12px; }
.type p { margin-bottom: 0.7em; }
.stay .note { margin-top: 48px; }

/* Фото: три кадра на весь экран, каждый наезжает на предыдущий */
.sequence { position: relative; }
.seq-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: var(--gap) var(--m) 56px; align-items: end; }
.seq-intro h2 { grid-column: 1 / span 4; }
.seq-intro p { grid-column: 7 / span 5; margin: 0; }
.seq-frame { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--surface); }
.seq-frame img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.88) contrast(1.04); }
.seq-frame figcaption { position: absolute; left: var(--m); bottom: 28px; margin: 0; padding: 8px 14px; background: rgba(13, 19, 18, 0.72); color: var(--ink); }

/* Кафе: меню одной строкой на блюдо */
.cafe-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.cafe-text { grid-column: 1 / span 6; }
.cafe-text h2 { margin-bottom: 28px; }
.cafe-pic { grid-column: 8 / -1; }
.cafe-pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: brightness(0.9); }
/* Меню свёрнуто: видны только разделы, блюда открываются по нажатию (просьба владельца, чтобы сайт не был длинным) */
.menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; margin-top: 72px; }
.menu-cat { background: var(--surface); border-radius: var(--radius); }
.menu-cat summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 22px; border-radius: var(--radius); transition: background-color 0.2s ease; }
.menu-cat summary::-webkit-details-marker { display: none; }
.menu-cat summary:hover { background: var(--surface-2); }
.menu-cat:not([open]) .dishes { display: none; }
.menu-cat summary::after { content: "+"; font-size: var(--step-head); font-weight: 300; line-height: 1; color: var(--accent); transition: transform 0.3s var(--ease); }
.menu-cat[open] summary::after { transform: rotate(45deg); }
.menu-cat h3 { font-size: var(--step-body); font-weight: 500; letter-spacing: 0; line-height: 1.3; }
.menu-cat .dishes { padding: 0 22px 18px; }
@media (max-width: 1179px) { .menu { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dishes { list-style: none; margin: 0; padding: 0; }
.dishes li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 6px 0; }
.dish { display: grid; gap: 2px; }
.dish small { color: var(--muted); font-size: var(--step-small); max-width: 42ch; }
.price { font-variant-numeric: tabular-nums; white-space: nowrap; margin: 0; }

/* События */
.events h2 { margin-bottom: 40px; }
.rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px 32px; }
.row h3 { margin-bottom: 8px; }

/* Отзывы */
.reviews-head { max-width: 56rem; margin-bottom: 48px; }
.reviews-head h2 { margin-bottom: 20px; }
.widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 12px; align-items: start; }
.widget:not([open]) .widget-body { display: none; }
.widget-body { padding: 0 22px 22px; }
.widget-body p { margin: 14px 0 0; }
.widget-box { position: relative; background: var(--surface); }
.widget-wait { position: absolute; inset: 0; margin: 0; padding: 32px; max-width: 40ch; color: var(--muted); }
.widget iframe { position: relative; z-index: 1; display: block; width: 100%; height: 620px; border: 0; background: transparent; color-scheme: light; }
.letter { margin: 48px 0 0; }
.letter p:first-child { font-size: var(--step-head); line-height: 1.25; max-width: 36ch; }
.sign { color: var(--muted); font-size: var(--step-small); }

/* Что рядом */
.around { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.around-pic { grid-column: 1 / span 5; }
.around-pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: brightness(0.9); }
.around-text { grid-column: 7 / -1; }
.around-text h2 { margin-bottom: 40px; }
.places { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 36px; }
.places h3 { font-size: var(--step-body); font-weight: 500; letter-spacing: 0; line-height: 1.3; }
.places .meta { margin: 4px 0 8px; }
.places p { margin-bottom: 0; }
@media (min-width: 960px) { .around-pic { position: sticky; top: 10svh; } }

/* Бронь: карточка поверх вечернего фото */
.visit { position: relative; min-height: 100svh; padding: 60px var(--m); display: flex; justify-content: flex-end; align-items: flex-start; overflow: hidden; }
.visit-pic { position: absolute; inset: 0; }
.visit-pic img { width: 100%; height: 100%; object-fit: cover; }
.card { position: relative; width: min(440px, 100%); background: var(--surface); padding: 32px; }
.card h2 { margin-bottom: 24px; }
.dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.dates label { display: grid; gap: 6px; font-size: var(--step-small); color: var(--muted); }
.dates input, .dates select { font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface-2); border: 0; border-radius: var(--radius); padding: 10px 12px; min-height: 48px; width: 100%; color-scheme: dark; }
.estimate { grid-column: 1 / -1; margin: 6px 0 0; font-weight: 500; min-height: 3.2em; }
.dates button { grid-column: 1 / -1; width: 100%; }
.dates-hint { grid-column: 1 / -1; font-size: var(--step-small); color: var(--muted); margin: 0; }
.dates-hint.error { color: #ffb4a8; font-weight: 600; }
.card .phone { font-size: var(--step-head); font-weight: 300; letter-spacing: -0.015em; margin: 28px 0 12px; white-space: nowrap; }
.card .phone a { text-decoration: none; transition: opacity 0.2s ease; }
.card .phone a:hover { opacity: 0.75; }
/* Мессенджеры: скруглённые кнопки с иконкой и названием */
.msgr { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.msgr-link { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 14px; border-radius: var(--radius); background: var(--surface-2); color: var(--ink); text-decoration: none; font-weight: 500; transition: background-color 0.2s ease, transform 0.2s var(--ease); }
.msgr-link:hover { background: #283632; }
.msgr-link:active { transform: translateY(2px); }
.msgr-link .ico { flex: 0 0 auto; color: var(--accent); }
.msgr-lead { font-size: var(--step-small); color: var(--muted); margin: 28px 0 10px; }
.msgr-foot .msgr-link { background: #d3dad4; color: var(--paper-ink); min-height: 44px; }
.msgr-foot .msgr-link:hover { background: #c6cfc8; }
.msgr-foot .msgr-link .ico { color: var(--paper-ink); }
.addr { color: var(--muted); font-size: var(--step-small); margin-bottom: 0.5em; }

/* Подвал: светлый, как утро после вечера */
.foot { background: var(--paper); color: var(--paper-ink); min-height: 80svh; display: grid; grid-template-rows: auto 1fr auto auto; padding: 40px var(--m) 20px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot h2 { font-size: var(--step-body); font-weight: 500; letter-spacing: 0; line-height: 1.3; margin-bottom: 10px; }
.foot p, .foot li { color: var(--paper-muted); }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links a, .foot p a { display: inline-flex; min-height: 40px; align-items: center; transition: opacity 0.2s ease; }
.foot-links a:hover, .foot p a:hover { opacity: 0.6; }
.foot :focus-visible { outline-color: var(--paper-ink); }
.foot-mark { grid-row: 3; align-self: end; margin: 0; padding-bottom: 0.12em; max-width: none; font-size: calc((100vw - 2 * var(--m)) / 5.4); font-weight: 300; line-height: 0.9; letter-spacing: -0.05em; white-space: nowrap; color: var(--paper-ink); }
.fine { font-size: var(--step-small); margin: 16px 0 0; max-width: 60ch; }
.foot > .fine { grid-row: 4; }

/* Кнопка брони на телефоне */
.book-fab { display: none; }

@media (max-width: 959px) {
  .nav a:not(.nav-book) { display: none; }
  .strip { height: 46svh; padding-inline: 10vw; }
  .strip .frame img { max-width: 80vw; }
  .statement { max-width: none; }
  .around-pic { order: 2; margin-top: 48px; }
  .hero-foot { margin-top: 56px; }
  .statement { font-size: 1.5rem; }
  .intro, .cafe-head, .seq-intro, .around { grid-template-columns: minmax(0, 1fr); }
  .intro-text, .intro-pics, .cafe-text, .cafe-pic, .seq-intro h2, .seq-intro p, .around-pic, .around-text { grid-column: 1 / -1; }
  .intro-pics { gap: 48px; padding-top: 56px; }
  .pic-a { width: 72%; } .pic-b { width: 100%; } .pic-c { width: 60%; margin-left: 40%; }
  .stay > h2 { padding-left: 0; margin-bottom: 32px; }
  .band { flex-wrap: wrap; height: auto; min-height: 0; }
  .panel { height: 42svh; flex: 0 0 36%; }
  .panel:nth-child(1), .panel:nth-child(4) { flex: 0 0 64%; }
  .panel:hover { flex-grow: 0; }
  .types { grid-template-columns: minmax(0, 1fr); margin-top: 48px; }
  .seq-intro p { margin-top: 20px; }
  .seq-frame { height: 88svh; }
  .cafe-pic { margin-top: 40px; }
  .menu { margin-top: 48px; }
  .visit { display: block; padding: 0 0 var(--gap); min-height: 0; }
  .visit-pic { position: relative; height: 70svh; }
  .card { margin: -80px var(--m) 0; width: auto; }
  .foot { min-height: 0; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .foot-mark { margin-top: 20svh; }
  .book-fab { display: inline-flex; position: fixed; z-index: 20; right: 16px; bottom: 16px; min-height: 52px; padding: 0 22px; align-items: center; background: var(--wood); color: var(--accent-ink); font-weight: 500; text-decoration: none; border-radius: var(--radius); transition: transform 0.2s var(--ease), opacity 0.3s ease; }
  .book-fab.away { opacity: 0; transform: translateY(12px); pointer-events: none; }
}
@media (min-width: 600px) and (max-width: 959px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 599px) { #social { grid-column: 1 / -1; } .menu { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
@media (max-width: 520px) {
  .dates { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 24px 20px; }
  .card .phone { white-space: normal; }
}

/* Появление при прокрутке: только transform и opacity, и только когда работает скрипт (.js) */
/* Первый экран появляется сам при загрузке, за 1,2 секунды, без ожидания прокрутки */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero .bar, .hero .strip-wrap, .hero-title > *, .hero-foot > .btn { animation: rise 0.8s var(--ease) both; }
  .hero .strip-wrap { animation-delay: 0.08s; }
  .hero-title > h1 { animation-delay: 0.2s; }
  .hero-title > .lead { animation-delay: 0.3s; }
  .hero-foot > .btn { animation-delay: 0.4s; }
}
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease) var(--reveal-delay, 0ms), transform 0.9s var(--ease) var(--reveal-delay, 0ms); }
  .js [data-reveal].in { opacity: 1; transform: none; }
}
@keyframes breathe { from { transform: scale(1.06); } to { transform: scale(1); } }
.seq-frame.live img, .visit-pic.live img { animation: breathe 14s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .seq-frame img, .visit-pic img { animation: none; }
  .strip .frame img, .panel, .panel img { transition: none; transform: none; }
}

/* --- Правки владельца 09.11.2026 --- */
.stay .statement { max-width: 40ch; margin-bottom: 0; }
.types { margin-top: 48px; }
.amen { margin: 4px 0 8px; }
.amen summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: var(--step-small); color: var(--muted); }
.amen summary::-webkit-details-marker { display: none; }
.amen summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(45deg); transition: transform 0.25s var(--ease); margin-top: -3px; }
.amen[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.amen summary:hover { color: var(--ink); }
.amen dl { margin: 0 0 8px; display: grid; gap: 10px; padding-left: 14px; border-left: 1px solid var(--surface-2); }
.amen dl div { display: grid; gap: 2px; }
.amen dt { font-size: var(--step-small); color: var(--muted); }
.amen dd { margin: 0; font-size: var(--step-small); line-height: 1.5; }
.amen-site { margin-top: 40px; }

.gallery { padding: var(--gap) var(--m); }
.gallery h2 { margin-bottom: 40px; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gal-item { border-radius: var(--radius); overflow: hidden; background: var(--surface); aspect-ratio: 4 / 3; }
.gal-item img, .gal-item video { width: 100%; height: 100%; object-fit: cover; }

.menu-all { background: var(--surface); border-radius: var(--radius); margin-top: 32px; }
.menu-all > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 14px 22px; }
.menu-all > summary::-webkit-details-marker { display: none; }
.menu-all > summary::after { content: "+"; font-size: var(--step-head); font-weight: 300; color: var(--accent); transition: transform 0.3s var(--ease); }
.menu-all[open] > summary::after { transform: rotate(45deg); }
.menu-all .menu { padding: 0 12px 12px; display: grid; gap: 8px; }
.menu-all .menu-cat { background: var(--surface-2); }

.around { display: block; }
.around h2 { margin-bottom: 32px; }
.places { list-style: none; margin: 0 0 24px; padding: 0 0 8px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; }
.places li { flex: 0 0 min(240px, 70vw); scroll-snap-align: start; }
.place { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 6px; width: 100%; height: 100%; padding: 18px; border-radius: 22px; background: var(--surface); border: 1px solid transparent; transition: background-color .2s ease, border-color .2s ease; }
.place:hover { background: var(--surface-2); }
.place:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.place[aria-pressed="true"] { border-color: var(--accent); background: var(--surface-2); }
.place-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--surface-2); color: var(--accent); margin-bottom: 6px; }
.place[aria-pressed="true"] .place-ico { background: var(--accent); color: var(--accent-ink); }
.place-name { font-weight: 500; line-height: 1.25; }
.place-desc { font-size: var(--step-small); color: var(--muted); line-height: 1.45; }
.place-way { font-size: var(--step-small); margin-top: auto; padding-top: 6px; }
.route { margin-bottom: 24px; }
.route iframe { border: 0; border-radius: var(--radius); background: var(--surface); }
.route-cap { margin: 12px 0 4px; }
.route-open { font-size: var(--step-small); }
.places { scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent; }

/* --- Правки 09.11.2026 (2): главное фото, плитки жилья, свёрнутая галерея --- */
.hero { position: relative; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(13,19,18,.55) 0%, rgba(13,19,18,.15) 35%, rgba(13,19,18,.8) 100%); }
.hero-title h1 { text-shadow: 0 2px 24px rgba(0,0,0,.35); }

.about { padding: var(--gap) var(--m); }
.about h2 { margin-bottom: 28px; }
.about p { max-width: 62ch; }

:root {
  --tile-wood: #d9a465; --tile-turq: #62cbc3; --tile-burg: #7b2d3b; --tile-cottage: #1e2a27;
}
.tiles { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; width: 100%; height: 100%; border-radius: 22px; overflow: hidden; background: var(--surface); border: 2px solid transparent; transition: transform .25s var(--ease), border-color .2s ease; }
.tile:hover { transform: translateY(-3px); }
.tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.tile[aria-pressed="true"] { border-color: var(--ink); }
.tile-photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; }
.tile-band { display: grid; gap: 2px; padding: 14px 16px 16px; }
.tile-name { font-weight: 500; font-size: var(--step-body); line-height: 1.2; }
.tile-meta { font-size: var(--step-small); opacity: .85; }
.tile-cottage .tile-band { background: var(--tile-cottage); color: var(--ink); }
.tile-standard .tile-band { background: var(--tile-wood); color: var(--accent-ink); }
.tile-standard_plus .tile-band { background: var(--tile-turq); color: var(--accent-ink); }
.tile-comfort .tile-band { background: var(--tile-burg); color: #fff; }

.type-panels { margin-top: 24px; }
.tiles-on .type[hidden] { display: none; }
.type { padding: 24px; border-radius: 22px; background: var(--surface); border-left: 6px solid var(--tile-cottage); margin-bottom: 16px; }
.type-standard { border-left-color: var(--tile-wood); }
.type-standard_plus { border-left-color: var(--tile-turq); }
.type-comfort { border-left-color: var(--tile-burg); }
.type-cottage { border-left-color: var(--ink); }
.type-photos { display: flex; gap: 10px; overflow-x: auto; margin: 12px 0 16px; scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent; }
.type-photos figure { flex: 0 0 min(280px, 70vw); aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; }
.type-photos img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 719px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.gal-all > summary h2 { font-size: var(--step-head); }
.gal-all .gal-grid { padding: 0 12px 12px; }
.gallery { padding-top: 0; }
.gallery h2 { margin-bottom: 0; }

.route-search { margin-bottom: 14px; }
.route-search label { display: block; font-size: var(--step-small); color: var(--muted); margin-bottom: 8px; }
.route-search-row { display: flex; gap: 10px; flex-wrap: wrap; }
.route-search input { flex: 1 1 260px; min-height: 52px; padding: 0 18px; border-radius: var(--radius); border: 1px solid var(--surface-2); background: var(--surface); color: var(--ink); font: inherit; }
.route-search input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.route-search button { min-height: 52px; padding: 0 24px; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 500; cursor: pointer; }
.route-search button:hover { opacity: .86; }

/* --- порядок: все раскрывашки одного вида --- */
.stay .menu-all, .gallery .menu-all, .cafe .menu-all { margin-top: 20px; }
.stay .menu-all h3, .gallery .menu-all h3, .cafe .menu-all h3 { font-size: var(--step-body); font-weight: 500; letter-spacing: 0; line-height: 1.3; }
.site-list { margin: 0; padding: 0 22px 20px; display: grid; gap: 12px; }
.site-list div { display: grid; gap: 2px; }
.site-list dt { font-size: var(--step-small); color: var(--muted); }
.site-list dd { margin: 0; }
.gallery { padding-top: 0; padding-bottom: 0; }
.stay { padding-bottom: 0; }
.cafe { padding-top: var(--gap); }
.route-search h3 { font-size: var(--step-head); margin-bottom: 8px; }
.route-search label { max-width: 60ch; font-size: var(--step-body); color: var(--ink); margin-bottom: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.stay > h2 { padding-left: 0; margin-bottom: 24px; }

/* Жильё в свёрнутой плашке; плитки выше */
.stay-all { margin-top: 0 !important; }
.stay-all > summary h3 { font-size: var(--step-head) !important; font-weight: 300 !important; letter-spacing: -0.02em; }
.stay-body { padding: 0 22px 22px; }
.stay-body .statement { font-size: var(--step-body); line-height: 1.4; max-width: 50ch; margin: 0; color: var(--muted); }
.stay-body .tiles { margin-top: 20px; }
.stay-all .menu-all { background: var(--surface-2); }
.stay-all .type { background: var(--surface-2); }
.tile-photo { aspect-ratio: 3 / 4; }
.stay .stay-all .site-all { margin-top: 20px; }
@media (max-width: 719px) { .stay-body { padding: 0 12px 14px; } }

.cafe-all { margin-top: 0 !important; }
.cafe-all > summary h3 { font-size: var(--step-head) !important; font-weight: 300 !important; letter-spacing: -0.02em; }
.cafe-body { padding: 0 22px 22px; }
.cafe-body > p { max-width: 60ch; }
.cafe-body .menu { margin-top: 20px; padding: 0; }
.cafe-body .menu-cat { background: var(--surface-2); }
.cafe { padding-top: 20px; padding-bottom: 0; }
@media (max-width: 719px) { .cafe-body { padding: 0 12px 14px; } }

/* --- Шрифты: заголовки Cormorant Garamond, текст Literata; одинаковый размер у всех плашек --- */
:root { --display: "Cormorant Garamond", "Literata", Georgia, serif; --step-head: clamp(1.9rem, 1.4rem + 1.5vw, 2.6rem); }
h1, h2, .statement, .wordmark, .type h3, .route-search h3,
.menu-all > summary h3, .stay-all > summary h3, .cafe-all > summary h3, .gal-all > summary h3, .around-all > summary h3, .reviews-all > summary h3 { font-family: var(--display); font-weight: 500; }
h1 { font-size: clamp(2.6rem, 1rem + 6vw, 6rem); letter-spacing: -0.02em; line-height: 0.95; }
h2 { letter-spacing: -0.01em; }
.menu-all > summary h3, .stay-all > summary h3, .cafe-all > summary h3, .gal-all > summary h3, .around-all > summary h3, .reviews-all > summary h3,
.stay .menu-all h3, .gallery .menu-all h3, .cafe .menu-all h3 { font-size: var(--step-head) !important; font-weight: 500 !important; letter-spacing: -0.005em !important; line-height: 1.1 !important; }
.menu-all .menu-cat h3 { font-family: "Literata", Georgia, serif; font-size: var(--step-body) !important; font-weight: 500 !important; }
.statement { font-weight: 500; }
.wordmark { font-size: 1.5rem; letter-spacing: 0.01em; }
.type h3 { font-size: 2rem; }
.tile-name { font-family: var(--display); font-size: 1.5rem; font-weight: 500; line-height: 1.1; }

.rev-tabs { display: inline-flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--surface); margin-bottom: 18px; }
.rev-tab { font: inherit; font-weight: 500; min-height: 44px; padding: 0 24px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.rev-tab:hover { color: var(--ink); }
.rev-tab[aria-selected="true"] { background: var(--wood); color: var(--accent-ink); }
.rev-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rev-panel[hidden] { display: none; }

/* Первый экран: тихая подпись рядом с кнопкой, чтобы не спорить с пейзажем */
.hero-bg::after { background: linear-gradient(to bottom, rgba(13,19,18,.35) 0%, rgba(13,19,18,0) 30%, rgba(13,19,18,0) 60%, rgba(13,19,18,.7) 100%); }
.hero-title h1 { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); line-height: 1.15; letter-spacing: 0; max-width: 26ch; text-shadow: 0 1px 14px rgba(0,0,0,.45); }
.hero-title .lead { margin: 8px 0 0; font-size: var(--step-small); color: rgba(238,241,236,.85); text-shadow: 0 1px 10px rgba(0,0,0,.45); }
.hero-foot { align-items: flex-end; }
.menu-all { scroll-margin-top: 12px; }
.hero-foot { grid-row: 3; margin-top: 0 !important; }
.hero-title h1 { max-width: 30ch; }

.trip-help { margin-top: 32px; padding: 24px; border-radius: 22px; background: var(--surface); }
.trip-help h3 { font-family: var(--display); font-weight: 500; font-size: var(--step-head); margin-bottom: 10px; }
.trip-help p { max-width: 56ch; }
.trip-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 0; }
.trip-actions .btn { display: inline-flex; align-items: center; text-decoration: none; }
.trip-phone { font-size: var(--step-body); }
@media (max-width: 959px) { .bar { flex-wrap: nowrap; } .nav .nav-book { margin-left: 0; } }
/* большие экраны (ТВ): текст и поля не растягиваются на всю ширину */
@media (min-width: 1700px) { html { font-size: 112.5%; } main > section:not(.hero), .foot { max-width: 1680px; margin-inline: auto; } .hero { padding-inline: max(var(--m), calc((100vw - 1680px) / 2)); } }
@media (min-width: 2500px) { html { font-size: 150%; } main > section:not(.hero), .foot { max-width: 2200px; } .hero { padding-inline: max(var(--m), calc((100vw - 2200px) / 2)); } }

/* --- Логотип в шапке и темы оформления (data-theme на <html>) --- */
.wordmark { gap: 12px; }
.wordmark .logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px rgba(255,255,255,.75), 0 2px 10px rgba(0,0,0,.3); }
.hero { color: var(--hero-ink, #eef1ec); }

[data-theme="teal"] {
  --bg: #0b2127; --surface: #12303a; --surface-2: #194050; --ink: #f4f1e8; --muted: #a9c0c2;
  --accent: #35cfc8; --accent-ink: #052126; --wood: #e3b57c; --tile-cottage: #194050; --tile-burg: #8a2f3f;
}
[data-theme="teal"] .msgr-link:hover { background: #1f4a58; }

[data-theme="sand"] {
  --bg: #f5eddc; --surface: #ebe1cb; --surface-2: #e0d3b8; --ink: #14302f; --muted: #506766;
  --accent: #22bdb6; --accent-ink: #04211f; --wood: #d39a55; --paper: #fffaf0; --paper-ink: #14302f; --paper-muted: #4a5e5d;
  --tile-cottage: #2c6e6c; --tile-burg: #8a2f3f; --hero-ink: #f6f2e8;
}
[data-theme="sand"] .tile-cottage .tile-band { color: #fff; }
[data-theme="sand"] .msgr-link:hover { background: #d6c8aa; }
[data-theme="sand"] .menu-cat summary:hover { background: #d6c8aa; }
[data-theme="sand"] .book-fab, [data-theme="sand"] .nav .nav-book { color: #1d1608; }
.wordmark span { white-space: nowrap; }
@media (max-width: 480px) { .wordmark { gap: 10px; font-size: 1.2rem; } .nav .nav-book { padding: 0 14px; } }

.around-all { margin-top: 0 !important; }
.around-all > summary h3 { font-family: var(--display); font-size: var(--step-head) !important; font-weight: 500 !important; letter-spacing: -0.005em !important; line-height: 1.1 !important; }
.around-body { padding: 0 22px 22px; }
.around-body .places { margin-top: 4px; }
.around-body .route-search label { font-size: var(--step-body); }
.around { padding-top: 20px; padding-bottom: 0; }
.around-all .trip-help { background: var(--surface-2); }
@media (max-width: 719px) { .around-body { padding: 0 12px 14px; } }
.around-all .place { background: var(--surface-2); }
.around-all .place:hover { background: #21495a; }
.around-all .place-ico { background: var(--surface); }
.around-all .place[aria-pressed="true"] { border-color: var(--accent); }
.around-all .place[aria-pressed="true"] .place-ico { background: var(--accent); }
.around-all .route-search input { background: var(--surface-2); border-color: transparent; }

.reviews-all { margin-top: 0 !important; }
.reviews-all > summary h3 { font-family: var(--display); font-size: var(--step-head) !important; font-weight: 500 !important; letter-spacing: -0.005em !important; line-height: 1.1 !important; }
.reviews-body { padding: 0 22px 22px; }
.reviews-body .reviews-head h2 { display: none; }
.reviews { padding-top: 20px; padding-bottom: var(--gap); }
.reviews-all .rev-tabs { background: var(--surface-2); }
.reviews-all .letter { background: var(--surface-2); }
@media (max-width: 719px) { .reviews-body { padding: 0 12px 14px; } }

.card.has-widget { width: min(1000px, 100%); background: var(--paper); color: var(--paper-ink); }
.card.has-widget h2 { color: var(--paper-ink); }
.hr-wrap { min-height: 200px; }
.hr-fallback { padding: 16px; border-radius: var(--radius); background: #f3e2c8; color: #1d1608; }
.hr-frame { display: block; width: 100%; border: 0; background: transparent; }
.hr-loading { margin: 0 0 12px; color: var(--paper-muted, #4a5e5d); }

/* --- Блок «Забронировать» как плашка --- */
.booking { padding: 20px var(--m) var(--gap); }
.book-all { margin-top: 0 !important; }
.book-all > summary h3 { font-family: var(--display); font-size: var(--step-head) !important; font-weight: 500 !important; letter-spacing: -0.005em !important; line-height: 1.1 !important; }
.book-body { padding: 0 22px 26px; }
.book-body .phone { font-size: var(--step-head); font-weight: 300; letter-spacing: -0.015em; margin: 28px 0 12px; white-space: nowrap; }
.book-body .phone a { text-decoration: none; }
.book-body .addr { color: var(--muted); }
.book-body .msgr-lead { margin-top: 28px; }
.book-body .dates { max-width: 440px; }
.hr-wrap { margin-bottom: 8px; }
@media (max-width: 719px) { .book-body { padding: 0 12px 20px; } .book-body .phone { white-space: normal; } }
.hr-loading { color: var(--muted); }
