/* =========================================================
   Рыбный Край — стили
   ========================================================= */
:root {
  --ink: #0F2E2C;        /* глубокая вода */
  --ink-2: #184340;
  --ink-3: #2A5A55;
  --water: #E8EEE9;      /* светлая протока */
  --paper: #F8FAF7;
  --reed: #CDBD8E;       /* сухой камыш */
  --reed-2: #E9E0C6;
  --amber: #E89A2E;      /* закат */
  --amber-2: #F2B456;
  --amber-ink: #8B520A;
  --text: #17211F;
  --muted: #56645F;
  --line: #C9D4CD;
  --line-dark: rgba(232, 238, 233, .16);

  --serif: 'Prata', 'Georgia', serif;
  --sans: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --r-s: 6px;
  --r-m: 14px;
  --r-l: 28px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--ink); padding: 8px 14px; z-index: 100; border-radius: var(--r-s); }
.skip:focus { left: 8px; }

/* ---------- Типографика ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 7.2vw, 92px); }
h2 { font-size: clamp(32px, 4.4vw, 56px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; max-width: 34em; }
.muted { color: var(--muted); }
.coord { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: var(--amber-2); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.on-light .btn-ghost:hover, .btn-ghost.dark:hover { background: rgba(15,46,44,.06); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-2); }
.btn-wa { background: #1FAF56; color: #fff; }
.btn-wa:hover { background: #18994A; }
.link { color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link:hover { color: var(--amber-ink); }

/* ---------- Шапка ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--paper);
  transition: background-color .25s, box-shadow .25s, color .25s;
}
.site-header.solid, .site-header.light-page {
  background: rgba(15, 46, 44, .96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line-dark);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo-mark { width: 40px; height: 40px; flex: none; }
.logo-text { font-family: var(--serif); font-size: 22px; line-height: 1; }
.logo-text small { display: block; font-family: var(--sans); font-size: 12px; opacity: .7; margin-top: 4px; letter-spacing: .01em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; opacity: .88; }
.nav a:hover { opacity: 1; background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { opacity: 1; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.header-phone { text-decoration: none; font-weight: 600; font-size: 16px; white-space: nowrap; }
.header-cta { min-height: 42px; padding: 0 20px; font-size: 15px; }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s, opacity .2s; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--ink); color: var(--paper);
  padding: 24px var(--gut) 40px;
  display: none; flex-direction: column; gap: 6px; overflow-y: auto;
}
.menu-open .mobile-menu { display: flex; }
.mobile-menu a.m-link { font-family: var(--serif); font-size: 30px; text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--line-dark); }
.mobile-menu .m-actions { display: grid; gap: 12px; margin-top: 24px; }

@media (max-width: 1080px) {
  .nav, .header-phone { display: none; }
  .header-cta { margin-left: auto; }
  .burger { display: inline-flex; margin-left: 0; }
}
@media (max-width: 520px) {
  .header-cta { display: none; }
  .burger { margin-left: auto; }
  .logo-text small { display: none; }
}

/* ---------- Первый экран ---------- */
.hero {
  position: relative; min-height: 100svh; color: var(--paper);
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--ink); overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scale(1.06); animation: heroIn 2.4s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes heroIn { from { transform: scale(1.14); opacity: .4; } to { transform: scale(1.03); opacity: 1; } }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(15,46,44,.55) 0%, rgba(15,46,44,0) 28%),
    linear-gradient(0deg, rgba(15,46,44,.96) 4%, rgba(15,46,44,.55) 45%, rgba(15,46,44,.1) 75%);
}
.hero-contours { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46%; z-index: -1; opacity: .5; pointer-events: none; }
.hero-contours path { fill: none; stroke: var(--reed); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hero-inner { padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(32px, 6vh, 64px); }
.hero-place { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; opacity: .85; margin-bottom: 22px; }
.hero h1 { max-width: 12em; }
.hero .lead { margin-top: 24px; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: clamp(40px, 7vh, 72px);
  border-top: 1px solid var(--line-dark);
}
.hero-facts div { padding: 18px 20px 0 0; }
.hero-facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.6vw, 34px); color: var(--amber-2); line-height: 1.1; }
.hero-facts span { font-size: 14px; opacity: .8; display: block; margin-top: 4px; max-width: 16em; }
@media (max-width: 760px) {
  .hero-facts { grid-template-columns: 1fr 1fr; row-gap: 8px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Внутренние заголовки страниц ---------- */
.page-head {
  position: relative; background: var(--ink); color: var(--paper);
  padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(40px, 6vw, 72px);
  overflow: hidden; isolation: isolate;
}
.page-head .hero-contours { height: 100%; opacity: .28; }
.page-head p.lead { margin-top: 18px; opacity: .88; }
.crumbs { font-size: 14px; opacity: .7; margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Секции ---------- */
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section-water { background: var(--water); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink .muted { color: rgba(232,238,233,.72); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head p { max-width: 30em; margin: 0; }
.sec-head h2 { max-width: 14em; }

/* О базе */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-text p { max-width: 36em; }
.about-text h2 { margin-bottom: 28px; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: sticky; top: calc(var(--header-h) + 24px); }
.about-photos figure { margin: 0; border-radius: var(--r-m); overflow: hidden; background: var(--water); }
.about-photos figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.about-photos figure:not(:first-child) { aspect-ratio: 1; }
.about-photos img { width: 100%; height: 100%; object-fit: cover; }
.about-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.about-list li { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.about-list li b { font-weight: 600; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about-photos { position: static; }
}
@media (max-width: 520px) { .about-list li { grid-template-columns: 1fr; gap: 2px; } }

/* Карточки проживания */
.stay-tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); gap: 4px; }
.stay-tabs button { border: 0; background: transparent; padding: 10px 20px; border-radius: 999px; cursor: pointer; font-weight: 500; font-size: 15px; }
.stay-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.rooms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.room-card {
  background: var(--paper); border-radius: var(--r-m); overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid var(--line); min-width: 0;
  transition: border-color .2s;
}
.room-card:hover { border-color: var(--ink-3); }
.room-card .ph { aspect-ratio: 4 / 3; background: var(--water); overflow: hidden; }
.room-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.room-card:hover .ph img { transform: scale(1.04); }
.room-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.room-card h3 { font-size: 23px; hyphens: manual; overflow-wrap: anywhere; }
.room-card .meta { font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.room-card .price { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.room-card .price > span:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.room-card .price b { font-family: var(--serif); font-weight: 400; font-size: 26px; white-space: nowrap; }
.room-card .price small { color: var(--muted); font-size: 13px; }
.room-card .more { font-size: 14px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }

/* Лодки (тизер) */
.boats { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.boats h2 { margin-bottom: 24px; }
.price-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.price-list li { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.price-list .t { flex: 1; }
.price-list .t small { display: block; color: var(--muted); font-size: 14px; }
.price-list .p { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-list .p small { font-weight: 400; color: var(--muted); font-size: 14px; }
.section-ink .price-list, .section-ink .price-list li { border-color: var(--line-dark); }
.section-ink .price-list .t small, .section-ink .price-list .p small { color: rgba(232,238,233,.65); }
@media (max-width: 900px) { .boats { grid-template-columns: 1fr; } }

/* Услуги на базе */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-dark); }
.feature { padding: 28px 28px 8px 0; border-right: 1px solid var(--line-dark); padding-left: 28px; }
.feature:first-child { padding-left: 0; }
.feature:last-child { border-right: 0; }
.feature svg { width: 36px; height: 36px; color: var(--amber-2); margin-bottom: 18px; }
.feature h3 { font-size: 24px; margin-bottom: 10px; }
.feature p { font-size: 16px; color: rgba(232,238,233,.78); margin: 0; }
@media (max-width: 960px) {
  .features { grid-template-columns: 1fr 1fr; }
  .feature { padding: 28px 20px 24px 0 !important; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .feature:nth-child(odd) { padding-right: 24px !important; }
  .feature:nth-child(even) { padding-left: 24px !important; border-left: 1px solid var(--line-dark); }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .feature:nth-child(even) { padding-left: 0 !important; border-left: 0; }
}

/* Лента улова */
.catch-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 30%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.catch-strip button { scroll-snap-align: start; border: 0; padding: 0; background: var(--water); border-radius: var(--r-m); overflow: hidden; aspect-ratio: 4 / 5; cursor: zoom-in; }
.catch-strip img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .catch-strip { grid-auto-columns: 78%; } }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--serif); font-size: clamp(20px, 2vw, 25px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 14px; height: 14px; flex: none; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-4px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq .answer { padding: 0 0 24px; max-width: 40em; }
.faq .answer ol { padding-left: 1.2em; margin: 0 0 1em; }
.faq .answer li { margin-bottom: 8px; }
.note { background: var(--reed-2); border-radius: var(--r-s); padding: 14px 18px; font-size: 16px; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }

/* Как добраться / карта */
.where { display: grid; grid-template-columns: 1fr 1.3fr; gap: 0; border-radius: var(--r-l); overflow: hidden; background: var(--ink); color: var(--paper); }
.where-info { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 22px; }
.where-info h2 { font-size: clamp(30px, 3.4vw, 46px); }
.where-info dl { margin: 0; display: grid; gap: 16px; }
.where-info dt { font-size: 14px; opacity: .65; }
.where-info dd { margin: 2px 0 0; font-size: 18px; }
.where-info dd a { text-decoration: none; }
.where-info dd a:hover { text-decoration: underline; }
.where-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.map { min-height: 420px; background: var(--ink-2); position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) { .where { grid-template-columns: 1fr; } .map { min-height: 340px; } }

/* Финальный CTA */
.cta-band { text-align: left; display: grid; grid-template-columns: 1.3fr 1fr; align-items: end; gap: 32px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-band .actions { justify-content: flex-start; } }

/* ---------- Подвал ---------- */
.site-footer { background: #0A2321; color: rgba(232,238,233,.82); padding: 64px 0 28px; font-size: 15px; position: relative; overflow: hidden; isolation: isolate; }
.site-footer .hero-contours { height: 100%; opacity: .12; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { font-family: var(--sans); font-weight: 600; font-size: 15px; color: var(--paper); margin: 0 0 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--paper); text-decoration: underline; }
.foot-grid .logo { color: var(--paper); margin-bottom: 16px; }
.footer-social { display: grid; gap: 10px; margin-bottom: 18px; }
.foot-grid .footer-social-btn {
  display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 12px 14px;
  border: 1px solid rgba(232,238,233,.25); border-radius: 12px;
  background: rgba(232,238,233,.05); color: var(--paper);
  font-size: 14px; font-weight: 500; line-height: 1.4;
  transition: background-color .2s, border-color .2s;
}
.foot-grid .footer-social-btn:hover { background: rgba(232,238,233,.12); border-color: rgba(232,238,233,.5); text-decoration: none; }
.footer-social-btn svg { width: 24px; height: 24px; flex: none; }
.footer-social-telegram svg { color: #69C9F1; }
.footer-social-maps svg { color: #FF8073; }
.footer-social-btn span { min-width: 0; overflow-wrap: anywhere; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: 14px; opacity: .75; }
.foot-bottom a { text-decoration: none; } .foot-bottom a:hover { text-decoration: underline; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* Плавающие кнопки связи на телефоне */
.quick-contact { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: none; gap: 10px; }
.quick-contact a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(10,35,33,.3); }
.quick-contact a svg { width: 26px; height: 26px; }
.quick-contact .q-wa { background: #1FAF56; color: #fff; }
.quick-contact .q-tel { background: var(--amber); color: var(--ink); }
@media (max-width: 760px) { .quick-contact { display: flex; } }

/* ---------- Страница номеров ---------- */
.room-nav { position: sticky; top: var(--header-h); z-index: 20; background: rgba(248,250,247,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.room-nav .wrap { display: grid; gap: 10px; padding-top: 16px; padding-bottom: 16px; }
.room-nav-group { display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: start; gap: 16px; }
.room-nav-label { padding-top: 11px; font-size: 14px; font-weight: 500; color: var(--muted); }
.room-nav-links { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.room-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; max-width: 100%; text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: 14px; line-height: 1.4; border: 1px solid var(--line); text-align: center; }
.room-nav a:hover { border-color: var(--ink-3); }
.room-nav a.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.room-section { padding-block: clamp(24px, 3vw, 40px); }
@media (max-width: 760px), (max-height: 600px) {
  .room-nav { position: static; }
}
@media (max-width: 600px) {
  .room-nav .wrap { gap: 18px; padding-top: 20px; padding-bottom: 20px; }
  .room-nav-group { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .room-nav-label { padding-top: 0; }
  .room-nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-nav a { min-width: 0; padding: 9px 10px; font-size: 13px; overflow-wrap: anywhere; text-wrap: balance; }
}

.room-group-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.room-row { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 56px); padding: clamp(32px, 4vw, 48px) 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + var(--room-nav-h, 0px) + 24px); }
.room-row:last-child { border-bottom: 1px solid var(--line); }
.slider { position: relative; border-radius: var(--r-m); overflow: hidden; background: var(--water); }
.slider .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 3 / 2; }
.slider .track::-webkit-scrollbar { display: none; }
.slider .track button { flex: 0 0 100%; scroll-snap-align: start; border: 0; padding: 0; background: none; cursor: zoom-in; }
.slider .track img { width: 100%; height: 100%; object-fit: cover; }
.slider .arrows { position: absolute; inset: auto 12px 12px auto; display: flex; gap: 8px; }
.slider .arrows button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(248,250,247,.92); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.slider .arrows button:hover { background: #fff; }
.slider .arrows svg { width: 18px; height: 18px; }
.slider .count { position: absolute; left: 12px; bottom: 12px; background: rgba(15,46,44,.75); color: var(--paper); font-size: 13px; padding: 4px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.thumbs button { flex: 0 0 76px; height: 56px; border: 2px solid transparent; border-radius: 8px; overflow: hidden; padding: 0; cursor: pointer; background: var(--water); opacity: .7; }
.thumbs button.on { border-color: var(--amber); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.room-info h3 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 10px; }
.room-info .numbers { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.amen { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.amen li { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.amen svg { width: 22px; height: 22px; color: var(--ink-3); flex: none; }
.room-price { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 8px; }
.room-price b { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; }
.room-price span { color: var(--muted); font-size: 15px; }
.room-info .note { margin: 18px 0 22px; }
.room-info .actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) { .room-row { grid-template-columns: 1fr; } }

.tables { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.tables h3 { margin-bottom: 18px; }
@media (max-width: 900px) { .tables { grid-template-columns: 1fr; } }

/* ---------- Бронирование ---------- */
.book { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.book-form { display: grid; gap: 36px; }
.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; }
.fieldset legend { font-family: var(--serif); font-size: 26px; padding: 0; margin-bottom: 16px; display: flex; align-items: baseline; gap: 14px; }
.fieldset legend span { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .row-2, .row-3 { grid-template-columns: 1fr; } }
.field { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; min-width: 0; gap: 6px; }
.field label, .field .lbl { font-size: 14px; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; font-size: 16px;
  transition: border-color .2s;
}
.field input, .field select { height: 52px; margin: 0; line-height: 1.4; }
.select-control { position: relative; min-width: 0; }
.select-control select { appearance: none; -webkit-appearance: none; padding-right: 44px; }
.select-control::after { content: ''; position: absolute; right: 17.5px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink-3); box-shadow: 0 0 0 3px rgba(42,90,85,.15); }
.field.invalid input, .field.invalid select { border-color: #B3402A; }
.field .err { color: #B3402A; font-size: 14px; display: none; }
.field.invalid .err { display: block; }
.stepper { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; height: 52px; }
.stepper button { width: 52px; height: 100%; border: 0; background: none; cursor: pointer; font-size: 22px; color: var(--ink-3); }
.stepper button:hover { background: var(--water); }
.stepper input { border: 0 !important; text-align: center; min-height: 0 !important; height: 100%; padding: 0 !important; box-shadow: none !important; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.boat-picker { min-width: 0; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; }
.boat-picker summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 16px; cursor: pointer; list-style: none; font-size: 16px; font-weight: 500; }
.boat-picker summary::-webkit-details-marker { display: none; }
.boat-picker summary::after { content: ''; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-left: auto; transition: transform .15s; }
.boat-picker[open] summary::after { transform: rotate(225deg); }
.boat-picker-count { background: var(--water); color: var(--ink-3); padding: 3px 8px; border-radius: 6px; font-size: 12px; }
.boat-picker-content { padding: 0 16px 16px; }
.boat-picker-hint { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
#boat-choices { display: grid; gap: 8px; }
.boat-choice { display: grid; grid-template-columns: minmax(0, 1fr) 132px; align-items: center; gap: 12px 16px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.boat-choice.selected { background: #EEF4F0; border-color: var(--ink-3); }
.boat-choice-info { display: grid; gap: 4px; min-width: 0; }
.boat-choice-info b { font-size: 15px; font-weight: 500; line-height: 1.4; }
.boat-choice-price { font-size: 15px; color: var(--ink); }
.boat-choice-price small, .boat-choice-note { font-size: 12px; color: var(--muted); }
.boat-choice .stepper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; width: 132px; height: 44px; overflow: hidden; }
.boat-choice .stepper button { display: grid; place-items: center; width: 100%; padding: 0; }
.boat-choice .stepper button:disabled { opacity: .3; cursor: default; background: none; }
.boat-choice .stepper input { width: 100%; min-width: 0; background: transparent; font-size: 16px; }
.boat-quantity [data-d="1"] { background: var(--ink); color: var(--paper); }
.boat-quantity [data-d="1"]:hover { background: var(--ink-2); }
.boat-rental-days { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.boat-rental-days label { font-size: 13px; color: var(--muted); }
.boat-choice-total { margin-left: auto; font-weight: 500; font-size: 15px; }
.guide-choice { margin-top: 8px; }
.guide-controls { display: grid; gap: 6px; }
.guide-controls label { font-size: 12px; color: var(--muted); }
.boat-selection-summary { font-size: 14px; color: var(--ink-3); white-space: pre-line; margin: 0; line-height: 1.7; }
.boat-picker[open] + .boat-selection-summary { display: none; }
@media (max-width: 520px) {
  .boat-picker-content { padding: 0 12px 12px; }
  .boat-choice { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .boat-quantity { justify-self: start; }
  .boat-rental-days { gap: 8px 12px; }
}

.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.choice label { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; height: 100%; transition: border-color .15s, background-color .15s; }
.choice label b { font-weight: 600; font-size: 16px; }
.choice label span { font-size: 14px; color: var(--muted); }
.choice input:checked + label { border-color: var(--ink); background: #EEF4F0; box-shadow: inset 0 0 0 1px var(--ink); }
.choice input:focus-visible + label { outline: 3px solid var(--amber); outline-offset: 2px; }
#room-choices { grid-auto-rows: 1fr; }
.room-choice-error { margin: 0; color: #B3402A; font-size: 14px; }
#room-choices .choice { min-width: 0; }
#room-choices label { gap: 8px; padding: 16px; }
#room-choices .room-choice-title { min-height: 2.7em; line-height: 1.35; overflow-wrap: anywhere; }
#room-choices .room-choice-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: auto; color: var(--ink); }
.room-choice-price strong { font-family: var(--serif); font-size: 24px; line-height: 1.25; font-weight: 400; white-space: nowrap; }
.room-choice-price small { font-size: 12px; color: var(--muted); white-space: nowrap; }
#room-choices .room-choice-guests { align-self: flex-start; padding: 3px 9px; border-radius: 6px; background: var(--water); color: var(--ink-3); font-size: 12px; font-weight: 500; line-height: 1.5; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }

.summary { position: sticky; top: var(--booking-summary-top, calc(var(--header-h) + var(--wp-toolbar-h, 0px) + 24px)); background: var(--ink); color: var(--paper); border-radius: var(--r-l); padding: 28px; overflow: hidden; isolation: isolate; }
.summary .hero-contours { height: 100%; opacity: .14; }
.summary h2 { font-size: 30px; margin-bottom: 6px; }
.summary .dates { font-size: 15px; opacity: .75; margin-bottom: 18px; min-height: 1.6em; }
.sum-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.sum-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); font-size: 15px; }
.sum-lines li span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.sum-lines li.empty { opacity: .65; justify-content: flex-start; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 6px; }
.sum-total b { font-family: var(--serif); font-weight: 400; font-size: 40px; color: var(--amber-2); font-variant-numeric: tabular-nums; }
.summary .fine { font-size: 13px; opacity: .65; margin: 0 0 20px; }
.summary .send { display: grid; gap: 10px; }
.summary .send .btn { width: 100%; }
.form-msg { margin-top: 14px; font-size: 15px; padding: 12px 14px; border-radius: 10px; background: rgba(232,238,233,.1); display: none; }
.form-msg.show { display: block; }
@media (max-width: 960px) { .book { grid-template-columns: minmax(0, 1fr); } .summary { position: relative; top: auto; } }

/* ---------- Галерея ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter button { border: 1px solid var(--line); background: var(--paper); padding: 10px 18px; border-radius: 999px; cursor: pointer; font-weight: 500; font-size: 15px; }
.filter button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter button span { opacity: .6; margin-left: 4px; font-variant-numeric: tabular-nums; }
.masonry { columns: 4 260px; column-gap: 12px; }
.masonry button { display: block; width: 100%; margin: 0 0 12px; border: 0; padding: 0; border-radius: var(--r-s); overflow: hidden; cursor: zoom-in; background: var(--water); break-inside: avoid; }
.masonry img { width: 100%; height: auto; transition: transform .4s; }
.masonry button:hover img { transform: scale(1.03); }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-m); overflow: hidden; background: var(--ink-2); }
.video button { position: absolute; inset: 0; border: 0; background: var(--ink-2); color: var(--paper); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.video button:hover .play { background: var(--amber-2); }
.video .play { width: 64px; height: 64px; border-radius: 50%; background: var(--amber); color: var(--ink); display: grid; place-items: center; transition: background-color .2s; }
.video .play svg { display: block; width: 24px; height: 24px; margin: 0; }
.video .vlabel { font-size: 15px; opacity: .8; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .hero-contours { height: 100%; opacity: .18; }
@media (max-width: 400px) { .videos { grid-template-columns: 1fr; } }

/* ---------- Лайтбокс ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,24,23,.96); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 4px; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.1); color: #fff; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.2); }
.lightbox button svg { width: 22px; height: 22px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.75); font-size: 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; } }

.mt-0 { margin-top: 0; } .mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* защита от переполнения сеток */
.room-row > *, .book > *, .about > *, .boats > *, .faq > *, .tables > *, .where > * { min-width: 0; }
.summary .send .btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 10px; padding-bottom: 10px; }
@media (max-width: 640px) {
  .price-list li { flex-wrap: wrap; gap: 4px 16px; }
  .price-list .p { white-space: normal; }
}

/* правки после просмотра */
.nav a { white-space: nowrap; padding: 8px 12px; }
.site-header .wrap { gap: 20px; }
@media (max-width: 1240px) {
  .nav, .header-phone { display: none; }
  .header-cta { margin-left: auto; }
  .burger { display: inline-flex; margin-left: 0; }
}
@media (max-width: 520px) { .burger { margin-left: auto; } }
.rooms-grid { grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 16px; }
.catch-strip button { background: var(--line); }
@media (max-width: 560px) {
  .rooms-grid { grid-template-columns: minmax(0, 1fr); }
  .room-card { flex-direction: row; }
  .room-card .ph { width: 40%; flex: none; aspect-ratio: auto; min-height: 150px; }
  .room-card .body { padding: 14px 16px; }
  .room-card h3 { font-size: 20px; }
  .room-card .price { flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 8px; }
  .room-card .price b { font-size: 22px; }
}
.cta-band p { margin: 14px 0 0; max-width: 30em; }
[hidden] { display: none !important; }
h1, h2 { text-wrap: balance; }

/* =========================================================
   Логотип
   ========================================================= */
.logo-mark { width: 48px; height: 48px; display: grid; place-items: center; flex: none; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,.28)); }
.site-footer .logo-mark { width: 56px; height: 56px; }

/* =========================================================
   Живая карта базы (первый экран)
   ========================================================= */
.hero-scene { position: relative; height: 100svh; min-height: 640px; max-height: 1100px; overflow: hidden; background: #0b1f2a; color: var(--paper); isolation: isolate; }
.scene-pan { position: absolute; inset: 0; overflow: hidden; }
.scene-art {
  position: absolute; left: 50%; top: 50%;
  width: max(100%, calc(100svh * 1.5), 960px); aspect-ratio: 3 / 2;
  transform: translate(-50%, -50%);
}
.scene-art picture, .scene-art > picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-art > picture img { object-fit: cover; }
.hero-scene::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6,20,28,.7) 0, rgba(6,20,28,0) 140px),
    radial-gradient(ellipse 52% 62% at 14% 30%, rgba(6,20,28,.88) 0%, rgba(6,20,28,.6) 45%, rgba(6,20,28,0) 100%);
}
.hero-copy { position: absolute; inset: 0 0 auto 0; z-index: 2; padding-top: calc(var(--header-h) + clamp(24px, 6vh, 64px)); pointer-events: none; }
.hero-copy .wrap > * { pointer-events: auto; max-width: 540px; }
.hero-copy h1 { font-size: clamp(40px, 5.2vw, 72px); text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero-copy .lead { margin-top: 18px; opacity: .92; max-width: 26em; }
.hero-copy .hero-place { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; opacity: .8; margin-bottom: 16px; }
.hero-copy .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.scene-hint { position: absolute; left: var(--gut); bottom: 22px; z-index: 2; font-size: 14px; background: rgba(6,20,28,.62); backdrop-filter: blur(6px); padding: 8px 14px; border-radius: 999px; pointer-events: none; }
.scene-hint .hint-touch { display: none; }
@media (hover: none) { .scene-hint .hint-mouse { display: none; } .scene-hint .hint-touch { display: inline; } }
.hero-scene.ready .scene-hint { animation: hintOut 1s 7s forwards; }
@keyframes hintOut { to { opacity: 0; } }

/* точки */
.spot { position: absolute; z-index: 3; width: 44px; height: 44px; transform: translate(-50%, -50%); display: grid; place-items: center; text-decoration: none; color: var(--text); }
.spot .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px #fff, 0 4px 14px rgba(0,0,0,.45); transform: scale(0); transition: transform .25s; position: relative; }
.hero-scene.ready .spot .dot { animation: dotIn .5s var(--d) cubic-bezier(.3,1.6,.5,1) forwards; }
@keyframes dotIn { to { transform: scale(1); } }
.spot .dot::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid #fff; opacity: 0; animation: pulse 3.2s var(--d) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(2.4); opacity: 0; } }
.spot:hover .dot, .spot:focus-visible .dot, .spot.open .dot { background: #fff; box-shadow: 0 0 0 3px var(--amber), 0 4px 14px rgba(0,0,0,.45); }
.spot:focus-visible { outline: none; }
.tip {
  position: absolute; bottom: calc(100% + 4px); left: 50%; width: 248px;
  transform: translate(-50%, 6px); opacity: 0; pointer-events: none;
  background: var(--paper); border-radius: 14px; padding: 14px 16px; box-shadow: 0 14px 40px rgba(0,0,0,.4);
  display: grid; gap: 4px; text-align: left; transition: opacity .18s, transform .18s;
}
.tip b { font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.2; }
.tip span { font-size: 14px; color: var(--muted); line-height: 1.4; }
.tip em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--ink-3); margin-top: 4px; }
.spot.flip .tip { left: auto; right: -8px; transform: translate(0, 6px); }
.spot.below .tip { bottom: auto; top: calc(100% + 4px); }
.spot:hover .tip, .spot:focus-visible .tip, .spot.open .tip { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.spot.flip:hover .tip, .spot.flip:focus-visible .tip, .spot.flip.open .tip { transform: translate(0, 0); }
.spot:hover, .spot:focus-visible, .spot.open { z-index: 6; }

/* фонари */
.lamp { position: absolute; z-index: 2; width: calc(70px * var(--s)); height: calc(70px * var(--s)); transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,200,110,.55) 0%, rgba(255,170,70,.18) 35%, rgba(255,160,60,0) 70%);
  mix-blend-mode: screen; animation: flicker 4.5s infinite; }
@keyframes flicker { 0%, 100% { opacity: .75; } 18% { opacity: 1; } 22% { opacity: .62; } 40% { opacity: .9; } 63% { opacity: .7; } 80% { opacity: 1; } }

/* круги на воде и осётр */
.splash { position: absolute; z-index: 2; width: 0; height: 0; pointer-events: none; }
.splash i { position: absolute; left: -40px; top: -14px; width: 80px; height: 28px; border-radius: 50%; border: 1.5px solid rgba(220,235,240,.55); opacity: 0; animation: ripple 9s infinite; }
.splash i:nth-child(2) { animation-delay: .5s; }
.splash i:nth-child(3) { animation-delay: 1s; }
@keyframes ripple { 0%, 36% { transform: scale(.2); opacity: 0; } 38% { opacity: .9; } 60%, 100% { transform: scale(1.8); opacity: 0; } }
.sturgeon { position: absolute; left: -30px; top: -40px; width: 64px; opacity: 0; animation: jump 9s infinite; transform-origin: 50% 50%; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
@keyframes jump {
  0%, 22% { opacity: 0; transform: translate(-26px, 26px) rotate(40deg); }
  24% { opacity: 1; }
  30% { transform: translate(0, -18px) rotate(0deg); }
  36% { opacity: 1; transform: translate(26px, 24px) rotate(-40deg); }
  38%, 100% { opacity: 0; transform: translate(30px, 30px) rotate(-45deg); }
}

/* полоса с фактами под картой */
.facts-band { background: var(--ink); color: var(--paper); padding: 8px 0 36px; }
.facts-band .hero-facts { margin-top: 0; border-top: 0; }
.hero-facts--services .fact-icon { display: block; width: 30px; height: 30px; color: var(--amber-2); margin-bottom: 14px; }
.hero-facts--services b { font-size: clamp(21px, 2.2vw, 27px); color: var(--paper); line-height: 1.25; }
.hero-facts--services span { margin-top: 8px; }
@media (max-width: 760px) {
  .hero-facts--services { gap: 14px 16px; }
  .hero-facts--services div { padding-right: 0; min-width: 0; }
}


/* телефон: картинку можно листать, текст под ней */
@media (max-width: 760px) {
  .hero-scene { height: auto; min-height: 0; max-height: none; background: var(--ink); }
  .hero-scene::before { display: none; }
  .scene-pan { position: relative; height: min(64svh, 560px); margin-top: var(--header-h); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .scene-pan::-webkit-scrollbar { display: none; }
  .scene-art { position: relative; left: 0; top: 0; transform: none; height: 100%; width: auto; }
  .scene-hint { top: calc(var(--header-h) + 12px); bottom: auto; }
  .hero-copy { position: relative; padding: 28px 0 8px; }
  .hero-copy h1 { font-size: clamp(34px, 9vw, 44px); }
  .tip { width: 210px; }
}

/* текст первого экрана — внизу, над водой */
.hero-scene::before {
  background:
    linear-gradient(180deg, rgba(6,20,28,.7) 0, rgba(6,20,28,0) 150px),
    linear-gradient(0deg, rgba(6,20,28,.92) 0, rgba(6,20,28,.55) 170px, rgba(6,20,28,0) 300px);
}
.hero-copy { inset: auto 0 0 0; padding-top: 0; padding-bottom: clamp(24px, 5vh, 52px); }
.hero-copy .wrap > * { max-width: none; }
.hero-copy h1 { font-size: clamp(36px, 3.7vw, 58px); }
.hero-copy .hero-actions { margin-top: 20px; }
.only-mobile { display: none; }
.scene-hint { top: calc(var(--header-h) + 18px); bottom: auto; }
@media (max-width: 760px) {
  .only-mobile { display: block; }
  .hero-copy { padding: 26px 0 8px; }
  .hero-copy .lead { margin-top: 14px; }
  .hero-copy .hero-actions { margin-top: 24px; }
}

/* затемнение — внутри сцены, под точками */
.hero-scene::before { display: none; }
.scene-art::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6,20,28,.75) 0, rgba(6,20,28,0) 16%),
    linear-gradient(0deg, rgba(6,20,28,.95) 0, rgba(6,20,28,.6) 18%, rgba(6,20,28,0) 34%);
}
@media (max-width: 760px) {
  .scene-art::after { background: linear-gradient(180deg, rgba(6,20,28,.55) 0, rgba(6,20,28,0) 22%); }
}

/* ---------- Окно выбранного номера ---------- */
body.room-dialog-open { overflow: hidden; }
.room-dialog {
  width: min(1100px, calc(100% - 40px)); max-width: none;
  max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
  margin: auto; padding: 0; border: 1px solid var(--line); border-radius: var(--r-l);
  overflow: hidden; color: var(--text); background: var(--paper);
  box-shadow: 0 28px 100px rgba(6, 20, 28, .35);
}
.room-dialog::backdrop { background: rgba(6, 20, 28, .72); backdrop-filter: blur(5px); }
.room-dialog-shell {
  display: flex; flex-direction: column;
  max-height: calc(100vh - 42px); max-height: calc(100dvh - 42px);
}
.room-dialog-top {
  display: flex; flex: none; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 65px; padding: 10px 24px 10px 30px; border-bottom: 1px solid var(--line);
}
.room-dialog-top > span { color: var(--muted); font-size: 14px; }
.room-dialog-close {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px;
  padding: 0; border: 1px solid var(--line); border-radius: 50%;
  color: var(--ink); background: transparent; cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.room-dialog-close:hover { background: var(--water); border-color: var(--ink-3); }
.room-dialog-close svg { width: 20px; height: 20px; }
.room-dialog-body {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 32px; min-height: 0; padding: 30px; overflow-y: auto; overscroll-behavior: contain;
}
.room-dialog-gallery, .room-dialog-info { min-width: 0; }
.room-dialog-photo {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--r-m); background: var(--water);
}
.room-dialog-photo > img { width: 100%; height: 100%; object-fit: contain; }
.room-dialog-count {
  position: absolute; left: 14px; bottom: 14px; padding: 5px 11px;
  border-radius: 999px; background: rgba(15, 46, 44, .86); color: var(--paper);
  font-size: 13px; font-variant-numeric: tabular-nums; line-height: 1.5;
}
.room-dialog-arrows { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; }
.room-dialog-arrows button {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid rgba(248, 250, 247, .28); border-radius: 50%;
  background: rgba(15, 46, 44, .9); color: var(--paper); cursor: pointer;
  transition: background-color .2s;
}
.room-dialog-arrows button:hover { background: var(--ink-3); }
.room-dialog-arrows svg { width: 20px; height: 20px; }
.room-dialog-thumbs {
  display: flex; gap: 8px; margin-top: 12px; padding: 4px 4px 8px;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin;
}
.room-dialog-thumbs button {
  flex: 0 0 84px; height: 64px; padding: 2px; border: 2px solid transparent;
  border-radius: 10px; background: var(--paper); cursor: pointer; opacity: .68;
  transition: opacity .2s, border-color .2s;
}
.room-dialog-thumbs button:hover { opacity: 1; }
.room-dialog-thumbs button[aria-pressed="true"] { border-color: var(--amber); opacity: 1; }
.room-dialog-thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.room-dialog-kind { color: var(--ink-3); font-size: 14px; margin-bottom: 12px; }
.room-dialog-info h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.2; overflow-wrap: break-word; }
.room-dialog-numbers { color: var(--muted); font-size: 14px; margin: 12px 0 22px; }
.room-dialog-info .room-price { flex-wrap: wrap; margin: 24px 0; gap: 8px 12px; }
.room-dialog-info .room-price b { font-size: 36px; white-space: nowrap; }
.room-dialog-info .amen { margin-bottom: 24px; gap: 12px 16px; }
.room-dialog-info .amen li { align-items: flex-start; font-size: 15px; line-height: 1.45; }
.room-dialog-info .note { margin-bottom: 24px; font-size: 15px; }
.room-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.room-dialog-actions .btn { flex: 1 1 180px; padding: 12px 20px; white-space: normal; text-align: center; }
@media (max-width: 760px) {
  .room-dialog {
    width: calc(100% - 20px); max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px);
    border-radius: 22px;
  }
  .room-dialog-shell { max-height: calc(100vh - 22px); max-height: calc(100dvh - 22px); }
  .room-dialog-top { min-height: 61px; padding: 8px 14px 8px 20px; }
  .room-dialog-body { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 18px; }
  .room-dialog-info h2 { font-size: clamp(28px, 7vw, 36px); }
  .room-dialog-info .room-price { margin: 22px 0; }
}
@media (max-width: 380px) {
  .room-dialog-body { padding: 14px; }
  .room-dialog-info .amen { grid-template-columns: 1fr; }
  .room-dialog-actions .btn { flex-basis: 100%; }
}

/* Shared catalog content. */
.catalog-description{white-space:pre-line;overflow-wrap:anywhere;line-height:1.65;margin:18px 0}
.room-choice-description{font-size:12px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
.room-booking-details{display:block;margin:14px 0 20px;padding:0;background:none;border:0;color:#35655e;text-align:left;text-decoration:underline;cursor:pointer;font:inherit;font-size:14px}
.room-booking-details[hidden]{display:none}
.room-card .meta,.room-info h3,.room-dialog-info h2,.room-choice-title{overflow-wrap:anywhere}

/* Hidden catalog services must remain hidden despite component display rules. */
#guide-choice[hidden],.fieldset[hidden],.room-nav-group[hidden],.stay-tabs button[hidden]{display:none!important}

/* Explain the required consent next to the checkbox. */
.consent-error { margin: 8px 0 0 32px; color: #B3402A; font-size: 14px; line-height: 1.5; }
.consent-error[hidden] { display: none; }
.check.invalid input { outline: 2px solid #B3402A; outline-offset: 2px; }

.video .video-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.video .play, .video .vlabel { position: relative; z-index: 1; }
.video .vlabel { max-width: 90%; text-align: center; line-height: 1.4; opacity: 1; text-shadow: 0 1px 5px #000; }

/* Keep custom cover titles readable, with a compact play control. */
.video .video-cover ~ .play { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; box-shadow: 0 2px 8px #0003; }
.video .video-cover ~ .play svg { width: 18px; height: 18px; }
.video .video-cover ~ .vlabel { display: none; }

/* Native date controls must be allowed to shrink inside mobile grids, including Safari. */
.book-form, .book-form .fieldset, .book-form .row-2, .book-form .row-3 { min-width: 0; min-inline-size: 0; }
.book-form .row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.book-form .row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.book-form .field input, .book-form .field select, .book-form .field textarea { min-width: 0; max-width: 100%; box-sizing: border-box; }
.book-form .field .stepper input { flex: 1 1 0; width: 0; }
.book-form .field .stepper button { flex: 0 0 52px; }
.date-control { position: relative; min-width: 0; }
.date-control input[type="date"] { display: block; appearance: none; -webkit-appearance: none; width: 100%; min-width: 0; height: 52px; min-height: 52px; padding: 12px 44px 12px 16px; text-align: left; background: #fff; }
.date-control input::-webkit-date-and-time-value { min-height: 1.4em; text-align: left; }
.date-control input::-webkit-calendar-picker-indicator { position: absolute; right: 12px; width: 24px; height: 24px; margin: 0; opacity: 0; }
.date-control.is-empty input { color: transparent; -webkit-text-fill-color: transparent; }
.date-control-hint { position: absolute; left: 16px; right: 44px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; line-height: 1.4; pointer-events: none; }
.date-control:not(.is-empty) .date-control-hint { display: none; }
.date-control::after { content: ''; position: absolute; right: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); pointer-events: none; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356645F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 11h18'/%3E%3C/svg%3E"); }
@media (max-width: 640px) { .book-form .row-2, .book-form .row-3 { grid-template-columns: minmax(0, 1fr); } }
