﻿/* Dombay Tours — стили сайта
   Палитра: хвойный лес, ледниковое озеро, снег и солнце на склоне. */
:root {
  --snow: #f3f6f6;
  --paper: #ffffff;
  --granite: #1b2427;
  --slate: #56656b;
  --line: #d5dfe0;
  --pine: #16362f;
  --pine-2: #1f4a40;
  --lake: #177f7b;
  --lake-soft: #d7ece9;
  --sun: #f2bf45;
  --sun-2: #e5ad2b;
  --danger: #b3261e;

  --f-display: "Unbounded", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Golos Text", "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1180px;
  --r: 12px;
  --topo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M-20 60c40-30 80 20 120-6s70-40 110-10 70 30 130-4'/%3E%3Cpath d='M-20 100c50-26 90 18 130-8s60-34 100-8 80 26 130-6'/%3E%3Cpath d='M-20 140c40-20 100 22 140-4s70-30 110-6 60 20 110-2'/%3E%3Cpath d='M-20 180c60-24 90 24 130 0s80-28 120-4 50 16 110-4'/%3E%3Cpath d='M-20 220c40-18 100 20 150-2s60-24 100-2 60 18 110 0'/%3E%3Cpath d='M-20 260c50-16 90 18 140 0s70-22 110 0 60 14 110-2'/%3E%3Cpath d='M-20 300c40-12 100 14 150 0s70-18 110 0 50 10 100 0'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--f-body);
  color: var(--granite);
  background: var(--snow);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lake); text-underline-offset: .18em; }
a:hover { color: var(--pine); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(1.6rem, 1rem + 3.2vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.2rem, 0.95rem + 1.6vw, 1.9rem); }
h3, .h3 { font-size: 1.12rem; font-family: var(--f-display); font-weight: 500; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sun); color: var(--granite); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.muted { color: var(--slate); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.4em; border-radius: 999px;
  font: 600 1rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-sun { background: var(--sun); color: var(--granite); }
.btn-sun:hover { background: var(--sun-2); color: var(--granite); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--pine); }
.btn-line { border-color: var(--pine); color: var(--pine); background: transparent; }
.btn-line:hover { background: var(--pine); color: #fff; }
.btn-small { min-height: 38px; padding: 0 1.1em; font-size: .92rem; background: var(--pine); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--pine); color: #fff; }
.header-row { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 1.08rem/1 var(--f-display); letter-spacing: -.01em; white-space: nowrap; flex-shrink: 0; }
.logo:hover { color: var(--sun); }
.logo-mark { width: 38px; height: 27px; color: var(--sun); flex-shrink: 0; }
.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.main-nav a { display: flex; align-items: center; min-height: 44px; color: rgba(255,255,255,.86); text-decoration: none; padding: 0 12px; border-radius: 8px; font-weight: 500; white-space: nowrap; line-height: 1; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.main-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--sun); border-radius: 0; }
.main-nav .nav-phone-mobile { display: none; }
.header-phone { color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.header-cta { min-height: 42px; white-space: nowrap; flex-shrink: 0; }
.lang-switch { display: inline-flex; align-items: center; gap: 3px; font-size: .86rem; font-weight: 600; letter-spacing: .04em; flex-shrink: 0; }
.lang-switch a { color: rgba(255,255,255,.68); text-decoration: none; padding: 8px 4px; border-radius: 6px; }
.lang-switch a:hover { color: #fff; }
.lang-switch a[aria-current="true"] { color: var(--sun); }
.lang-switch span { color: rgba(255,255,255,.32); }
.lang-switch-mobile { display: none; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; margin-left: auto; cursor: pointer; }
.burger, .burger::before, .burger::after { display: block; width: 22px; height: 2px; background: #fff; position: relative; transition: transform .2s; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; } .burger::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .burger { background: transparent; }
.nav-toggle[aria-expanded="true"] .burger::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1240px) { .header-phone { display: none; } }
@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--pine); padding: 8px 20px 20px; border-top: 1px solid rgba(255,255,255,.12);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav { align-items: stretch; }
  .main-nav a { min-height: 52px; padding: 0 4px; border-bottom: 1px solid rgba(255,255,255,.1); border-radius: 0; font-size: 1.1rem; }
  .main-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--sun); padding-left: 12px; }
  .main-nav .nav-phone-mobile { display: flex; color: var(--sun); font-weight: 600; }
  .header-row > .lang-switch { display: none; }
  .lang-switch-mobile { display: inline-flex; margin: 14px 0 4px; gap: 6px; font-size: 1rem; }
  .lang-switch-mobile a { min-height: 44px; padding: 8px 6px; border-bottom: 0; font-size: 1rem; }
  .lang-switch-mobile span { color: rgba(255,255,255,.32); align-self: center; }
  .nav-toggle { margin-left: auto; }
}

/* ---------- Герой ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--topo), radial-gradient(120% 90% at 85% 10%, #2c6a5c 0%, var(--pine) 55%, #0f2823 100%);
  padding: clamp(64px, 10vw, 130px) 0 clamp(110px, 14vw, 180px);
}
.hero.has-photo { background: #0f2823; }
.hero.has-photo { min-height: min(88vh, 860px); display: flex; align-items: center; }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; overflow: hidden; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 9s ease-out; }
.hero-slide.is-active img { transform: scale(1); }
.hero-meta { position: absolute; left: 0; right: 0; bottom: clamp(62px, 9vw, 128px); z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.hero-caption { margin: 0; font-size: .92rem; color: rgba(255,255,255,.85); display: flex; align-items: center; gap: 8px; min-height: 1.5em; }
.hero-caption:not(:empty)::before { content: ""; width: 14px; height: 10px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 28'%3E%3Cpath d='M1 27 12 9l5 7 7-14 15 25z' fill='none' stroke='%23f2bf45' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.hero-controls { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.hero-dots { display: flex; gap: 4px; }
.hero-dots button { width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.hero-dots button::before { content: ""; position: absolute; left: 4px; right: 4px; top: 14px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.4); }
.hero-dots button[aria-current="true"]::before { background: var(--sun); }
.hero-pause { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.6); background: rgba(10,30,26,.35); cursor: pointer; display: grid; place-items: center; }
.hero-pause span { width: 10px; height: 12px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.hero-pause[aria-pressed="true"] span { width: 0; height: 0; border: 0; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
@media (max-width: 600px) { .hero-caption { font-size: .82rem; } .hero.has-photo { min-height: 78vh; } }
@media (prefers-reduced-motion: reduce) { .hero-slide, .hero-slide img { transition: none; transform: none; } }
.hero.has-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,30,26,.72) 0%, rgba(10,30,26,.35) 55%, rgba(10,30,26,.05) 100%), linear-gradient(0deg, rgba(10,30,26,.55) 0%, rgba(10,30,26,0) 35%); z-index: 1; }
.hero-inner { position: relative; z-index: 2; }
.hero-inner { width: min(100% - 40px, var(--wrap)); }
.hero-title { text-shadow: 0 2px 24px rgba(0,0,0,.25); max-width: 17ch; font-size: clamp(1.8rem, 1.1rem + 4.2vw, 4rem); line-height: 1.08; margin-bottom: .45em; overflow-wrap: anywhere; }
.hero-text { max-width: 54ch; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(255,255,255,.88); margin-bottom: 1.8em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(50px, 8vw, 120px); fill: var(--snow); z-index: 2; }

.booking-bar { position: relative; z-index: 3; margin-top: -10px; }
.booking-bar .wrap { background: var(--paper); border-radius: var(--r); padding: 18px; box-shadow: 0 10px 30px -18px rgba(22,54,47,.5); }
.booking-bar--inner { margin-top: 0; padding-top: 20px; }

/* ---------- Секции ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tight { padding-top: 32px; }
.section-alt { background: var(--paper); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-lead { color: var(--slate); max-width: 62ch; margin: .6em 0 2em; }
.link-more { font-weight: 600; white-space: nowrap; }
.empty { background: var(--paper); border: 1px dashed var(--line); border-radius: var(--r); padding: 28px; color: var(--slate); }

/* ---------- Заглушка изображения ---------- */
.ph {
  background: var(--topo), linear-gradient(160deg, var(--pine-2), var(--lake));
  background-size: 260px, cover;
  position: relative;
}
.ph::after {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 28'%3E%3Cpath d='M1 27 12 9l5 7 7-14 15 25z' fill='none' stroke='%23ffffff' stroke-opacity='.35' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") center / 64px no-repeat;
}

/* ---------- Карточки туров ---------- */
.tour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 40px 28px; }
.tour-card { display: flex; flex-direction: column; }
.tour-card-media { display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--pine); }
.tour-card-media img, .tour-card-media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tour-card:hover .tour-card-media img { transform: scale(1.03); }
.tour-card-body { padding-top: 16px; display: flex; flex-direction: column; flex: 1; }
.tour-card-when { color: var(--lake); font-weight: 600; font-size: .95rem; margin-bottom: .35em; }
.tour-card-title { font-size: 1.2rem; margin-bottom: .45em; }
.tour-card-title a { color: var(--granite); text-decoration: none; }
.tour-card-title a:hover { color: var(--lake); }
.tour-card-title a::after { content: ""; position: absolute; inset: 0; }
.tour-card { position: relative; }
.tour-card-text { color: var(--slate); font-size: .98rem; }
.tour-card-foot { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.tour-card-foot strong { font-weight: 600; }

/* ---------- Список экскурсий ---------- */
.ex-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ex-row a {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) 220px 170px; align-items: center; gap: 22px;
  padding: 16px 12px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none;
  transition: background-color .15s;
}
.ex-row a:hover { background: var(--lake-soft); }
.ex-thumb { width: 96px; height: 72px; border-radius: 8px; overflow: hidden; }
.ex-thumb img, .ex-thumb .ph { width: 100%; height: 100%; object-fit: cover; }
.ex-thumb .ph::after { background-size: 34px; }
.ex-main { display: flex; flex-direction: column; gap: 4px; }
.ex-title { font: 500 1.08rem/1.25 var(--f-display); }
.ex-sub { color: var(--slate); font-size: .96rem; }
.ex-facts { display: flex; flex-direction: column; color: var(--slate); font-size: .95rem; }
.ex-price { text-align: right; font-weight: 600; display: flex; flex-direction: column; }
.ex-price small { font-weight: 400; color: var(--slate); font-size: .85rem; }
@media (max-width: 860px) {
  .ex-row a { grid-template-columns: 80px minmax(0, 1fr); gap: 6px 16px; }
  .ex-thumb { width: 80px; height: 64px; grid-row: span 3; align-self: start; }
  .ex-facts { flex-direction: row; gap: 14px; font-size: .9rem; }
  .ex-price { text-align: left; flex-direction: row; gap: 8px; align-items: baseline; }
}

/* ---------- Тёмная секция ---------- */
.section-pine { background: var(--topo), var(--pine); color: #fff; }
.section-pine p { color: rgba(255,255,255,.86); max-width: 56ch; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.facts-big { margin: 0; display: grid; gap: 0; }
.facts-big div { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.facts-big div:first-child { border-top: 1px solid rgba(255,255,255,.16); }
.facts-big dt { font: 500 1.15rem/1.2 var(--f-display); color: var(--sun); }
.facts-big dd { margin: 4px 0 0; color: rgba(255,255,255,.86); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Заголовок внутренних страниц ---------- */
.page-head { background: var(--topo), var(--pine); color: #fff; padding: 40px 0 48px; }
.page-head h1 { max-width: 22ch; margin-bottom: .3em; }
.page-lead { color: rgba(255,255,255,.86); max-width: 62ch; margin: 0; }
.page-head .page-lead a { color: var(--sun); }
.page-thanks { padding: 90px 0; }
.page-thanks .btn { margin-top: 1.4em; margin-right: 8px; }
.page-thanks .btn-line { border-color: #fff; color: #fff; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .92rem; margin-bottom: 18px; color: rgba(255,255,255,.7); }
.crumbs a { color: rgba(255,255,255,.85); }
.crumbs a:hover { color: var(--sun); }
.page-body { padding: 48px 0 72px; max-width: 820px; }

/* ---------- Страница тура / экскурсии ---------- */
.item-hero { position: relative; background: var(--topo), linear-gradient(160deg, var(--pine) 30%, var(--pine-2)); color: #fff; padding: 44px 0 56px; overflow: hidden; }
.item-hero.has-photo { padding: clamp(120px, 20vw, 260px) 0 48px; background: #0f2823; }
.item-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.item-hero.has-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,30,26,.85), rgba(10,30,26,.1) 75%); z-index: 1; }
.item-hero-inner { position: relative; z-index: 2; }
.item-hero h1 { max-width: 20ch; margin-bottom: .3em; }
.item-hero .hero-meta { bottom: 16px; }
.item-hero .hero-slides, .item-hero .hero-slide { z-index: 0; }
.item-sub { font-size: 1.15rem; color: rgba(255,255,255,.88); max-width: 58ch; margin: 0; }

.item-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding: 48px 0 72px; align-items: start; }
.item-aside { position: sticky; top: 96px; }
.aside-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 12px; }
.aside-price { font: 700 1.5rem/1.1 var(--f-display); margin: 0; }
.aside-note { color: var(--slate); font-size: .92rem; margin: -6px 0 4px; }
.facts { margin: 4px 0 8px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.facts dt { color: var(--slate); }
.facts dd { margin: 0; text-align: right; font-weight: 500; }
@media (max-width: 960px) {
  .item-layout { grid-template-columns: 1fr; gap: 32px; }
  .item-aside { position: static; order: -1; }
}

.prose { max-width: 68ch; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .block ul { padding-left: 1.2em; }
.prose li, .block li { margin-bottom: .35em; }
.block { margin-top: 48px; }
.block h2 { margin-bottom: .8em; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--lake-soft); }
.timeline > li { position: relative; padding: 0 0 28px 40px; }
.timeline > li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--snow); border: 3px solid var(--lake); }
.timeline-day { font-weight: 600; color: var(--lake); margin: 0 0 .2em; font-size: .95rem; }
.timeline h3 { margin-bottom: .5em; }
.timeline ul { margin: 0; padding-left: 1.1em; color: var(--granite); }

.checks, .dashes { list-style: none; padding: 0 !important; margin: 0; }
.checks li, .dashes li { position: relative; padding-left: 28px; margin-bottom: .55em; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--lake); border-bottom: 2px solid var(--lake); transform: rotate(-45deg); }
.checks li span { display: block; color: var(--slate); font-size: .95rem; }
.dashes li::before { content: ""; position: absolute; left: 3px; top: .8em; width: 11px; height: 2px; background: var(--slate); }

.tab-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tab-list button { font: 600 1rem var(--f-body); padding: 10px 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--paper); color: var(--granite); cursor: pointer; }
.tab-list button small { font-weight: 400; color: var(--slate); margin-left: 4px; }
.tab-list button[aria-selected="true"] { border-color: var(--pine); background: var(--pine); color: #fff; }
.tab-list button[aria-selected="true"] small { color: rgba(255,255,255,.8); }
.incl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
@media (max-width: 700px) { .incl-grid { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.gallery a { display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gal-video .ph { width: 100%; height: 100%; }
.play-badge { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; background: rgba(10,30,26,.66); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform .2s ease; }
.play-badge::before { content: ''; width: 0; height: 0; margin-left: 4px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.gal-video:hover .play-badge { transform: scale(1.08); }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(8,20,18,.92); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox img { max-height: 100%; border-radius: 6px; }
.lightbox.is-video { cursor: default; }
.lightbox.is-video iframe, .lightbox.is-video video { width: min(92vw, 960px); aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 6px; background: #000; }
.lightbox-close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.6); background: rgba(10,30,26,.5); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; }

.note-block { margin-top: 36px; background: var(--paper); border-left: 4px solid var(--sun); border-radius: 0 var(--r) var(--r) 0; padding: 22px 26px; max-width: 760px; }
.note-block ul { margin: 0; padding-left: 1.1em; }
.tl-slot { min-height: 80px; }
.tl-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.tl-room { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r); overflow: hidden; box-shadow: 0 10px 30px -22px rgba(22,54,47,.4); }
.tl-room-media { display: block; aspect-ratio: 4 / 3; background: var(--pine); }
.tl-room-media img { width: 100%; height: 100%; object-fit: cover; }
.tl-room-media.ph { display: flex; }
.tl-room-body { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; text-align: center; flex: 1; }
.tl-room-name { font-weight: 500; line-height: 1.35; }
.tl-room a.btn { align-self: center; width: 100%; text-align: center; margin-top: auto; }
@media (max-width: 420px) { .tl-rooms { grid-template-columns: 1fr; } }

/* TravelLine: плавающая кнопка-виджет («ключ») — опускаем в нижний угол экрана */
.x-tl-booking-widget-container { top: auto !important; bottom: 24px !important; }


/* ---------- Контакты ---------- */
.contact-list { margin: 0; }
.contact-list div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--slate); }
.contact-list dd { margin: 0; font-weight: 500; }
@media (max-width: 600px) { .contact-list div { grid-template-columns: 1fr; gap: 2px; } }
.map { margin-top: 32px; border-radius: var(--r); overflow: hidden; }
.doc-links a { color: var(--lake); }

/* ---------- Форма заявки ---------- */
.lead { background: var(--paper); padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.lead-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; }
.lead-intro p { color: var(--slate); max-width: 44ch; }
.lead-direct a { font-weight: 600; }
.lead-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field span { font-weight: 500; font-size: .95rem; }
.field input, .field textarea, .field select {
  font: inherit; width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--snow); color: var(--granite);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--lake); background: #fff; box-shadow: 0 0 0 3px var(--lake-soft); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--slate); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--pine); flex: none; }
.lead-form .btn { justify-self: start; }
.form-error { background: #fdecea; color: var(--danger); padding: 12px 14px; border-radius: 10px; margin: 0; }
@media (max-width: 860px) { .lead-grid { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } .lead-form .btn { justify-self: stretch; } }

/* ---------- Подвал ---------- */
.site-footer { background: #10261f; color: rgba(255,255,255,.8); padding: 56px 0 24px; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-h { font: 500 1rem var(--f-display); color: #fff; margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.86); text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.site-footer .muted { color: rgba(255,255,255,.6); }
.logo-footer { margin-bottom: 14px; }
.registry { color: var(--sun); font-size: .92rem; max-width: 30ch; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; color: rgba(255,255,255,.55); font-size: .88rem; }
.footer-legal p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Cookie ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 560px; margin-left: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 40px -16px rgba(0,0,0,.35); padding: 16px 18px; display: flex; gap: 16px; align-items: center; font-size: .92rem; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }

/* ---------- Даты туров ---------- */
.dep-list { list-style: none; margin: 0; padding: 0 !important; border-top: 1px solid var(--line); }
.dep { display: grid; grid-template-columns: 190px minmax(0, 1fr) 150px auto; gap: 18px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); margin: 0 !important; }
.dep-when { font: 500 1.02rem/1.3 var(--f-display); }
.dep-avail { display: flex; flex-direction: column; gap: 4px; font-size: .94rem; color: var(--slate); }
.dep-badge { align-self: flex-start; font-size: .82rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--lake-soft); color: var(--pine); }
.dep-badge.is-low { background: #fbeccb; color: #7a5200; }
.dep-badge.is-off { background: #eceff0; color: var(--slate); }
.dep-price { font-weight: 600; display: flex; flex-direction: column; }
.dep-price small { font-weight: 400; color: var(--slate); font-size: .82rem; }
.dep .btn { min-height: 42px; }
.dep.is-soldout .dep-when { color: var(--slate); }
@media (max-width: 760px), (min-width: 961px) and (max-width: 1180px) {
  .dep { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .dep-avail { grid-column: 1 / -1; grid-row: 2; }
  .dep-price { grid-column: 1; grid-row: 3; }
  .dep .btn { grid-column: 2; grid-row: 3; }
}

/* ---------- Бронирование ---------- */
.book-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; padding: 40px 0 80px; align-items: start; }
.book-aside { position: sticky; top: 96px; }
.book-step { border: 0; margin: 0 0 32px; padding: 0; min-width: 0; }
.book-step legend { font: 500 1.2rem/1.2 var(--f-display); margin-bottom: 14px; padding: 0; }
.book-form .field { margin-bottom: 14px; }
.book-form select { font: inherit; width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--snow); color: var(--granite); }
.book-form select:focus { outline: none; border-color: var(--lake); box-shadow: 0 0 0 3px var(--lake-soft); }
.book-form .form-error { margin-bottom: 16px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice-body { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--paper); transition: border-color .15s, box-shadow .15s; }
.choice-body b { font-weight: 600; }
.choice-body span { color: var(--slate); font-size: .92rem; }
.choice input:checked + .choice-body { border-color: var(--pine); box-shadow: inset 0 0 0 1px var(--pine); background: #f7fbfa; }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--sun); outline-offset: 2px; }
.ages { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 12px; }
.ages [hidden] { display: none; }
.hint-line { color: var(--slate); font-size: .9rem; margin: -4px 0 12px; }
.fit-warn { margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; background: #fbeccb; color: #6b4700; font-size: .95rem; }
.small-cap { font-size: .9rem; margin: 0; }
.aside-dates { font: 500 1.05rem/1.3 var(--f-display); margin: 0; }
.done-list { margin: 24px 0 0; max-width: 520px; }
.done-list div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.done-list dt { color: rgba(255,255,255,.7); }
.done-list dd { margin: 0; text-align: right; font-weight: 500; }
@media (max-width: 960px) { .book-layout { grid-template-columns: 1fr; gap: 24px; } .book-aside { position: static; } }

.field span small { font-weight: 400; color: var(--slate); }
.field input[type="date"] { min-height: 48px; cursor: pointer; }
.field input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .7; }
.field select { min-height: 48px; cursor: pointer; }

/* ---------- Бронь экскурсии ---------- */
.exc-book form { display: grid; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.exc-book .field { margin-bottom: 12px; }
.two-sel { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.slots { display: flex; flex-wrap: wrap; gap: 10px; }
.slots p { margin: 0; }
.slot { position: relative; cursor: pointer; }
.slot input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.slot > span { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 10px; min-width: 150px; }
.slot b { font: 500 1.1rem/1.2 var(--f-display); }
.slot small { color: var(--slate); font-size: .84rem; }
.slot input:checked + span { border-color: var(--pine); box-shadow: inset 0 0 0 1px var(--pine); background: #f7fbfa; }
.slot input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.slot.is-off > span { opacity: .6; }
.private-toggle { margin: 6px 0 4px; font-size: .98rem; color: var(--granite); }
.private-toggle b { font-weight: 600; }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin: 6px 0 8px; }
.sizes[hidden] { display: none; }
.exc-quote { background: var(--lake-soft); border-radius: 10px; padding: 12px 14px; line-height: 1.55; margin: 6px 0; }
.exc-quote b { font-weight: 700; }
.exc-book .btn { justify-self: start; margin-top: 6px; }
@media (max-width: 560px) { .exc-book form { padding: 16px; } .exc-book .btn { justify-self: stretch; } }

/* ---------- Страница брони гостя ---------- */
.status-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; max-width: 720px; }
.status-badge { display: inline-block; font-weight: 600; font-size: .9rem; padding: 4px 12px; border-radius: 999px; background: var(--lake-soft); color: var(--pine); margin: 0 0 10px; }
.status-badge.st-waitlist { background: #fbeccb; color: #6b4700; }
.status-badge.st-cancelled { background: #eceff0; color: var(--slate); }
.status-price { font: 700 2rem/1.1 var(--f-display); margin: 4px 0 12px; }
.status-card .contact-list { margin-top: 20px; }

/* ---------- Языки: переключатель, шрифты CJK/арабского, RTL ---------- */
/* Переключатель из четырёх языков — компактнее */
.lang-switch { gap: 1px; }
.lang-switch a { padding: 8px 5px; }
@media (max-width: 560px) { .lang-switch { font-size: .8rem; } .lang-switch a { padding: 8px 3px; } }

/* Упрощённый китайский: системные CJK-шрифты, без веб-загрузки */
:lang(zh) { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", var(--f-body); }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(zh) .btn { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; letter-spacing: 0; }
:lang(zh) .hero-title, :lang(zh) .hero-text { max-width: 30ch; }

/* Арабский: системные арабские шрифты, чуть больше межстрочный */
:lang(ar) { font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", "Helvetica Neue", Arial, sans-serif; line-height: 1.75; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) .btn { font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", sans-serif; letter-spacing: 0; }
:lang(ar) .hero-title { line-height: 1.25; max-width: 24ch; }
:lang(ar) .status-price, :lang(ar) .price { letter-spacing: 0; }

/* RTL (арабская версия): зеркалим физические отступы и декор */
[dir="rtl"] .skip { left: auto; right: -999px; }
[dir="rtl"] .skip:focus { left: auto; right: 8px; }
[dir="rtl"] .prose ul, [dir="rtl"] .block ul, [dir="rtl"] .timeline ul, [dir="rtl"] .note-block ul { padding-left: 0; padding-right: 1.2em; }
[dir="rtl"] .timeline::before { left: auto; right: 7px; }
[dir="rtl"] .timeline > li::before { left: auto; right: 0; }
[dir="rtl"] .checks li, [dir="rtl"] .dashes li { padding-left: 0; padding-right: 28px; }
[dir="rtl"] .checks li::before { left: auto; right: 2px; border-left: 0; border-right: 2px solid var(--lake); transform: rotate(45deg); }
[dir="rtl"] .dashes li::before { left: auto; right: 3px; }
[dir="rtl"] .note-block { border-left: 0; border-right: 4px solid var(--sun); border-radius: var(--r) 0 0 var(--r); }
[dir="rtl"] .facts dd, [dir="rtl"] .done-list dd { text-align: left; }
[dir="rtl"] .ex-price { text-align: left; }
@media (max-width: 1000px) { [dir="rtl"] .ex-price { text-align: right; } }
[dir="rtl"] .main-nav a[aria-current="page"] { box-shadow: inset -3px 0 0 var(--sun); padding-left: 0; padding-right: 12px; }
[dir="rtl"] .tab-list button small { margin-left: 0; margin-right: 4px; }
[dir="rtl"] .page-thanks .btn { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .lightbox-close { right: auto; left: 18px; }
[dir="rtl"] .cookie { margin-left: 0; margin-right: auto; }
[dir="rtl"] .hero.has-photo::before { transform: scaleX(-1); }
