/* Tooda: кремовый фон, тёмно-зелёный текст, золотые кнопки — по макетам. */
:root {
  --bg: #FCFBF6;
  --surface: #FFFFFF;
  --soft: #F5F1E8;
  --ink: #0E2B27;
  --green: #0F3B34;
  --muted: #6B756F;
  --line: #ECE6DA;
  --gold: #D99A45;
  --gold-2: #C98935;
  --gold-soft: #F8EBD6;
  --gold-ink: #7A4E12;
  --lake: #1F6E64;
  --lake-soft: #E3EFEB;
  --accent: var(--gold);
  --accent-ink: #FFFFFF;
  --danger: #D2463F;
  --ok: #2E7D4F; --ok-bg: #E4F2E9;
  --easy: #2E7D4F; --easy-bg: #E4F2E9;
  --mid: #8A5A12; --mid-bg: #F8EBD6;
  --hard: #A3261B; --hard-bg: #FBE4E1;
  --star: #E5A249;
  --display: "Inter", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(14, 43, 39, .05), 0 6px 20px rgba(14, 43, 39, .06);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.5; padding-inline: 16px; padding-block: 0 40px; -webkit-tap-highlight-color: transparent; }
body.has-tabbar { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
a { color: var(--lake); }
img { max-width: 100%; display: block; }
.wrap { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-weight: 700; font-size: clamp(24px, 6vw, 30px); line-height: 1.2; }
h2 { font-weight: 600; font-size: 19px; }
h3 { font-weight: 700; font-size: 15px; line-height: 1.3; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.lede { color: var(--muted); margin: 6px 0 0; max-width: 60ch; }
.pre { white-space: pre-line; }
.sechead { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sechead a, .sechead button { font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; background: none; border: none; cursor: pointer; padding: 0; white-space: nowrap; }

/* Верхняя панель */
.topbar { padding-block: calc(14px + env(safe-area-inset-top, 0px)) 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.tb-side { display: flex; align-items: center; gap: 10px; }
.tb-side.end { justify-content: flex-end; }
.brand { display: inline-flex; text-decoration: none; justify-self: center; }
.brand img { height: 22px; width: auto; }
.toplinks { display: flex; gap: 14px; align-items: center; font-size: 14px; font-weight: 500; }
.toplinks a { text-decoration: none; color: var(--ink); }
.langsel { width: auto; min-height: 36px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 480px) { .toplinks a { display: none; } }

/* Переключатель стран */
.dir { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.dir button { min-height: 44px; padding: 6px 10px; border-radius: 999px; border: none; background: transparent; color: var(--ink); font: 600 15px var(--display); cursor: pointer; }
.dir button small { display: none; }
.dir button[aria-pressed="true"] { background: var(--green); color: #fff; }

/* Обложка с поиском */
.hero { position: relative; border-radius: 24px; overflow: hidden; min-height: 290px; background: #2A3A36; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px 18px 74px; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { z-index: 1; }
.hero > :not(img) { z-index: 2; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,24,22,.65), rgba(8,24,22,.1) 70%), linear-gradient(180deg, transparent 50%, rgba(8,24,22,.35)); }
.hero h1 { position: relative; color: #fff; font-size: clamp(24px, 6.4vw, 34px); max-width: 15ch; }
.hero .tagline { position: relative; margin-top: 8px; font-size: 14px; letter-spacing: .08em; opacity: .9; }
.search { flex-direction: row; z-index: 3 !important; position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 4px 6px 4px 16px; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.search input { border: none; background: transparent; min-height: 44px; padding: 0; font-size: 15px; }
.search input:focus { outline: none; }

/* Куда поехать */
.dests { display: flex; gap: 10px; overflow-x: auto; margin-inline: -16px; padding: 0 16px 4px; scrollbar-width: none; }
.dests::-webkit-scrollbar { display: none; }
.dest { flex: 0 0 92px; display: flex; flex-direction: column; gap: 6px; border: none; background: none; padding: 0; cursor: pointer; text-align: left; color: var(--ink); }
.dest img { width: 92px; height: 92px; border-radius: 16px; object-fit: cover; background: var(--soft); }
.dest b { font: 700 13px/1.2 var(--display); }
.dest small { font-size: 12px; color: var(--muted); margin-top: -4px; }
.dest[aria-pressed="true"] img { box-shadow: 0 0 0 3px var(--gold); }

/* Фильтры и кнопки */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.wrapchips { flex-wrap: wrap; overflow: visible; }
.chip { flex: none; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 14px var(--body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green); }
.chip.hot { background: var(--gold); color: #fff; border-color: var(--gold); font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 15px var(--body); cursor: pointer; text-decoration: none; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.primary { background: var(--gold); color: #fff; border-color: var(--gold); font-weight: 700; }
.btn.primary:hover { background: var(--gold-2); }
.btn.dark { background: var(--green); color: #fff; border-color: var(--green); }
.btn.outline { background: transparent; border-color: var(--green); color: var(--green); }
.btn.danger { color: var(--danger); border-color: #F1C4C0; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.install { align-self: flex-start; }

/* Карточки туров — строкой */
.grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: 1fr 1fr; } }
.tourcard { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 10px; background: var(--surface); border-radius: var(--radius); text-decoration: none; color: var(--ink); min-width: 0; box-shadow: var(--shadow); border: 1px solid var(--line); }
.coverwrap { position: relative; }
.tourcard .cover { width: 112px; height: 104px; border-radius: 14px; object-fit: cover; background: var(--soft); }
.covertags { position: absolute; left: 6px; top: 6px; display: flex; gap: 4px; }
.tourcard .body { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 2px 2px 0 0; }
.tourcard h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tourcard .meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.cardfoot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.rate { font-size: 13px; font-weight: 600; color: var(--ink); }
.rate .star { color: var(--star); }
.rate span { color: var(--muted); font-weight: 400; }
.price { font: 800 16px var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price small { font: 400 12px var(--body); color: var(--muted); }

/* Баннеры */
.banner { position: relative; display: flex; align-items: center; gap: 14px; min-height: 108px; padding: 18px; border-radius: 20px; overflow: hidden; color: #fff; text-decoration: none; background: var(--green); }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,32,28,.92) 30%, rgba(10,32,28,.35)); }
.banner > :not(img) { position: relative; z-index: 2; }
.banner::before { z-index: 1; }
.banner .bic { flex: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,.4); display: grid; place-items: center; }
.banner .bic svg, .banner .arr svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.banner div { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.banner b { font: 700 16px/1.25 var(--display); color: #fff; }
.banner span { font-size: 13px; opacity: .85; }
.banner .arr { flex: none; }

/* Общие карточки */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; box-shadow: var(--shadow); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tag { display: inline-block; font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--ink); }
.tag.light { background: rgba(255,255,255,.94); color: var(--ink); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.lvl-easy { background: var(--easy-bg); color: var(--easy); }
.lvl-mid { background: var(--mid-bg); color: var(--mid); }
.lvl-hard { background: var(--hard-bg); color: var(--hard); }
.star { color: var(--star); }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; min-width: 0; }
input, select, textarea { min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 10px 14px; font: 400 15px var(--body); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: transparent; }
textarea { min-height: 110px; resize: vertical; }
.err { color: var(--danger); font-size: 13px; font-weight: 400; }
.note { padding: 12px 14px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-ink); font-size: 14px; }
.note.ok { background: var(--ok-bg); color: var(--ok); }
.note.bad { background: var(--hard-bg); color: var(--hard); }
.empty { color: var(--muted); padding: 20px; border: 1px dashed var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; grid-column: 1 / -1; background: var(--surface); }
.empty b { color: var(--ink); font: 700 16px var(--display); }
footer { color: var(--muted); font-size: 12px; text-align: center; }

/* eSIM (на странице тура) */
.esim { position: relative; display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 20px; text-decoration: none; color: #fff; background: var(--green); }
.esim > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.esim b { font: 700 16px/1.25 var(--display); }
.esim span:not(.btn) { opacity: .85; font-size: 13px; }
.esim-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,.4); display: grid; place-items: center; font-size: 20px; }
.esim .btn { min-height: 38px; padding: 0 14px; }

/* Страница тура */
.tourhero { position: relative; border-radius: 22px; overflow: hidden; background: var(--soft); }
.tourhero .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tourhero .gallery::-webkit-scrollbar { display: none; }
.tourhero .gallery img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: start; }
.tourhero .over { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; pointer-events: none; }
.tourhero .over > div { display: flex; gap: 8px; }
.roundbtn { pointer-events: auto; width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; text-decoration: none; cursor: pointer; }
.roundbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.counter { position: absolute; right: 12px; bottom: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; }
.thumbrow { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.thumbrow::-webkit-scrollbar { display: none; }
.thumbrow button { flex: 0 0 64px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; }
.thumbrow button[aria-current="true"] { border-color: var(--gold); }
.thumbrow img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-block: 12px; border-block: 1px solid var(--line); }
.facts div { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; min-width: 0; }
.facts span { font-size: 12px; color: var(--muted); }
.facts b { font: 700 15px var(--display); overflow-wrap: anywhere; }
.guidebox { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); }
.avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--soft); flex: 0 0 auto; }
.avatar.lg { width: 72px; height: 72px; }
.initials { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); font: 700 15px var(--display); }
.verified { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); }
.review { display: flex; flex-direction: column; gap: 6px; }
.reply { padding: 8px 10px; border-radius: 10px; background: var(--soft); font-size: 14px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--soft); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 16px; border: none; background: rgba(0,0,0,.6); color: #fff; font-size: 16px; cursor: pointer; }
.thumb .cover-badge { position: absolute; left: 4px; bottom: 4px; font-size: 11px; padding: 2px 7px; border-radius: 8px; background: var(--gold); color: #fff; }
.status { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.st-pending, .st-new { background: var(--mid-bg); color: var(--mid); }
.st-approved, .st-went { background: var(--ok-bg); color: var(--ok); }
.st-rejected, .st-cancelled { background: var(--hard-bg); color: var(--hard); }
.st-forwarded { background: var(--lake-soft); color: var(--lake); }
.stars-input { display: flex; gap: 4px; }
.stars-input button { width: 44px; height: 44px; border: none; background: none; font-size: 30px; line-height: 1; color: var(--line); cursor: pointer; padding: 0; }
.stars-input button.on { color: var(--star); }
.ratingrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.datepick { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.datepick button { flex: 0 0 auto; min-width: 132px; text-align: left; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 14px var(--body); cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.datepick button[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold) inset; background: #FFFBF3; }
.datepick button:disabled { opacity: .5; cursor: default; }

/* Вкладки (кабинет, админка) — подчёркнутые, с красными счётчиками */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs .chip { border: none; border-radius: 0; background: none; color: var(--muted); padding: 0 12px; min-height: 44px; font-weight: 600; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: 6px; }
.tabs .chip[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--green); background: none; }
.tabs .chip.hot { background: none; color: var(--ink); }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff; font: 700 11px var(--body); }

/* Кабинет гида */
.guidehead { display: flex; gap: 14px; align-items: center; }
.guidehead b { font: 800 18px var(--display); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 4px; }
.kpis div { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0 12px; }
.kpis div + div { border-left: 1px solid var(--line); }
.kpis span { font-size: 12px; color: var(--muted); order: 2; }
.kpis b { font: 800 19px var(--display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.depcard { padding: 0; overflow: hidden; }
.dephead { width: 100%; display: flex; gap: 14px; align-items: center; padding: 14px; border: none; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.depcard > .stack { padding: 0 14px 16px; }
.depdate { flex: 0 0 56px; height: 60px; border-radius: 14px; background: var(--soft); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.depdate b { font: 800 22px var(--display); }
.depdate span { font-size: 12px; font-weight: 600; text-transform: lowercase; color: var(--muted); }
.seatbar { position: relative; height: 6px; border-radius: 3px; background: var(--line); margin: 8px 0 4px; overflow: visible; }
.seatbar .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--ok); }
.seatbar .minmark { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); border-radius: 1px; }
.person { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.person select { width: auto; min-height: 36px; padding: 4px 10px; font-size: 13px; }
.srcT { color: var(--lake); font-weight: 600; }
.srcO { color: var(--ok); font-weight: 600; }
.addrow { display: grid; grid-template-columns: 2fr 2fr 70px auto; gap: 8px; }
@media (max-width: 560px) { .addrow { grid-template-columns: 1fr 1fr; } }
details summary { cursor: pointer; font-weight: 600; }

/* Программа по дням */
.itin-day { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); }
.itin-stop { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 12px; background: var(--surface); }
.itin-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 8px; align-items: center; }
.itin-row select { min-height: 44px; }
.itin-tools { display: flex; gap: 4px; }
.itin-tools .chip { min-height: 36px; padding: 0 10px; }
.itin-stop textarea { min-height: 60px; }
@media (max-width: 560px) { .itin-row { grid-template-columns: 1fr 1fr; } .itin-row .itin-tools { grid-column: 1 / -1; } }
.itin { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0 14px; }
.itin-vday { border-bottom: 1px solid var(--line); }
.itin-vday:last-child { border-bottom: none; }
.itin-vday summary { display: flex; align-items: center; gap: 10px; padding: 14px 0; cursor: pointer; list-style: none; font-family: var(--display); }
.itin-vday summary::-webkit-details-marker { display: none; }
.itin-vday summary::after { content: "⌄"; margin-left: auto; color: var(--muted); }
.itin-vday[open] summary::after { content: "⌃"; }
.itin-num { flex: 0 0 auto; height: auto; background: none; color: var(--ink); font-weight: 800; }
.itin-num::before { content: attr(data-day); }
.itin-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.itin-list li { display: flex; gap: 10px; }
.itin-list p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.itin-ic { flex: 0 0 24px; height: 24px; display: grid; place-items: center; color: var(--ink); background: none; }
.itin-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.itin-ic.t-stay { color: var(--gold-2); }

/* Нижнее меню */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-around; padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); }
.tabbar a { flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 500; }
.tabbar a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.on { color: var(--green); font-weight: 700; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrapchips .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }

/* Планнер по макету */
.statcard { display: flex; flex-direction: column; gap: 10px; }
.statcard .kpis { border: none; box-shadow: none; padding: 0; background: none; }
.statcard .kpis div:first-child { padding-left: 0; }
.grprow { display: flex; align-items: center; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.grprow .status { margin-left: 6px; }
.depprice { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.depprice b { font: 800 15px var(--display); }
.chev { color: var(--muted); font-size: 22px; flex: none; }
.paid { font-size: 12px; font-weight: 600; white-space: nowrap; }
.paid::before { content: "● "; }
.paid.yes { color: var(--ok); } .paid.no { color: var(--danger); } .paid.part { color: var(--gold-2); }
.tourcard .favbtn { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: none; background: rgba(255,255,255,.9); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.favbtn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.favbtn[aria-pressed="true"] { color: #D2463F; }
.favbtn[aria-pressed="true"] svg { fill: currentColor; }
.meta span { display: inline-flex; align-items: center; gap: 4px; }
.meta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.demo-badge { align-self: flex-start; display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.facts div { flex-direction: row; gap: 8px; align-items: flex-start; }
.facts svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.facts p { margin: 0; display: flex; flex-direction: column; }
.segtabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); }
.segtabs button { border: none; background: none; padding: 10px 0; font: 600 14px var(--body); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.segtabs button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--green); }
.pagehead { display: flex; align-items: center; gap: 12px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
.pagehead h1 { font-size: 20px; flex: 1; }
.pagehead a, .pagehead button { color: var(--ink); background: none; border: none; display: grid; place-items: center; cursor: pointer; padding: 4px; }
.pagehead svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.leadsum { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding-top: 8px; border-top: 1px solid var(--line); }
.leadbtns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.leadbtns .btn { min-height: 40px; padding: 0 8px; font-size: 13px; }

/* ===== Макет Recraft: главная ===== */
.hello { font-size: clamp(26px, 7vw, 30px); font-weight: 600; letter-spacing: -0.02em; }
.searchbox { flex-direction: row; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; box-shadow: var(--shadow); font-weight: 400; }
.searchbox svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.searchbox input { border: none; background: transparent; min-height: 48px; padding: 0; font-size: 15px; box-shadow: none; }
.searchbox input:focus { outline: none; }
.dir.sm { align-self: flex-start; padding: 3px; }
.dir.sm button { min-height: 34px; padding: 4px 14px; font: 600 13px var(--body); }
.cats { display: flex; gap: 14px; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 4px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: 0 0 auto; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 6px; border: none; background: none; padding: 0; cursor: pointer; color: var(--ink); font: 500 12px/1.25 var(--body); text-align: center; }
.catic { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: #E5EEE9; color: var(--green); transition: box-shadow .15s; }
.cat.c1 .catic { background: var(--gold-soft); color: var(--gold-ink); }
.catic svg { width: 30px; height: 30px; fill: currentColor; stroke: none; }
.cat[aria-pressed="true"] .catic { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold); }
.cat[aria-pressed="true"] .catname { font-weight: 700; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .grid2 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tcard { display: flex; flex-direction: column; background: var(--surface); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border: 1px solid var(--line); min-width: 0; }
.tphoto { position: relative; aspect-ratio: 4 / 3; background: var(--soft); }
.tphoto { overflow: hidden; }
.tphoto > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rbadge { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 8px; background: var(--gold); color: #fff; font: 700 12px/1.5 var(--body); }
.rbadge.new { background: rgba(255,255,255,.92); color: var(--green); }
.tcard .favbtn { position: absolute; top: 8px; left: 8px; width: 30px; height: 30px; border-radius: 50%; border: none; background: rgba(255,255,255,.9); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.tbody { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.tbody h3 { font: 600 14px/1.3 var(--body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tline { font-size: 13px; color: var(--muted); }
.tline b { color: var(--ink); font-weight: 700; }
.tcard.feat { border-radius: 20px; }
.tcard.feat .tphoto { aspect-ratio: 16 / 12; }
.tcard.feat .tphoto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8,22,20,.78)); }
.tover { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.tover h3 { color: #fff; font: 600 20px/1.25 var(--body); }
.tover .tline, .tover .tline b { color: rgba(255,255,255,.92); }
.tcard.feat .rbadge, .tcard.feat .favbtn { z-index: 2; }
.demo-badge.on-dark { background: rgba(255,255,255,.22); color: #fff; }

/* ===== Макет Recraft: страница тура ===== */
.tourtop { position: relative; margin: 0 -16px; background: var(--soft); }
.tourtop .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tourtop .gallery::-webkit-scrollbar { display: none; }
.tourtop .gallery img { flex: 0 0 100%; width: 100%; height: min(58vh, 460px); object-fit: cover; scroll-snap-align: start; }
.tourtop .over { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; }
.tourtop .over > div { display: flex; gap: 8px; }
.glass { border: none; color: #fff; background: rgba(20, 30, 28, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.glass svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.glass.pill { height: 38px; padding: 0 14px 0 10px; border-radius: 999px; gap: 4px; font: 600 14px var(--body); }
.glass.round { width: 40px; height: 40px; border-radius: 50%; }
.glass.favbtn[aria-pressed="true"] { color: #FF6B5E; }
.dots { position: absolute; left: 0; right: 0; bottom: 48px; display: flex; justify-content: center; gap: 6px; }
.dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); }
.dots span.on { background: #fff; width: 16px; border-radius: 3px; }
.sheet { position: relative; z-index: 2; margin: -58px -16px 0; padding: 22px 16px 0; background: var(--bg); border-radius: 26px 26px 0 0; display: flex; flex-direction: column; gap: 12px; }
.sheet h1 { font-size: clamp(24px, 6.4vw, 28px); font-weight: 600; }
.locrow { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14px; color: var(--ink); }
.locrow > span { display: inline-flex; align-items: center; gap: 4px; }
.locrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.locrow .rate { font-size: 14px; }
.gold { color: var(--gold-2) !important; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 500; }
.pills svg { width: 15px; height: 15px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hostrow { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-block: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; }
.hostrow .avatar { width: 44px; height: 44px; }
.bookbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(14,43,39,.06); }
.bookbar > div { display: flex; flex-direction: column; line-height: 1.2; }
.bookbar b { font: 700 24px var(--body); font-variant-numeric: tabular-nums; }
.bookbar .btn { flex: 0 1 200px; min-height: 50px; font-size: 16px; }
body.has-bookbar { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
/* Программа — линия с точками */
.itin { background: none; border: none; box-shadow: none; padding: 0 0 0 28px; position: relative; }
.itin::before { content: ""; position: absolute; left: 8px; top: 22px; bottom: 22px; width: 2px; background: linear-gradient(var(--gold), var(--line)); }
.itin-vday { position: relative; border-bottom: none; }
.itin-vday summary { font: 600 16px var(--body); }
.itin-vday summary::before { content: ""; position: absolute; left: -27px; top: 16px; width: 16px; height: 16px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--bg); }
.itin-vday:first-child summary::before { background: var(--gold); }
.itin-num { font-weight: 600; }
.itin-list { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }

/* ===== Макет Recraft: кабинет гида ===== */
.dashhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
.dashhead h1 { font-size: clamp(28px, 8vw, 32px); font-weight: 600; line-height: 1.1; max-width: 9ch; }
.avatarbtn { border: none; background: none; padding: 0; cursor: pointer; border-radius: 50%; }
.avatarbtn .avatar { width: 60px; height: 60px; box-shadow: 0 0 0 3px var(--surface), var(--shadow); }
.dashmeta { margin-top: -12px; }
.dashmeta a { color: var(--lake); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile span { font-size: 13px; color: var(--ink); }
.tile b { font: 700 28px/1.15 var(--body); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tile small { font-size: 12px; color: var(--muted); }
.tile.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.tile.wide > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.spark { width: 120px; height: 44px; flex: none; }
.depcard { border-radius: 16px; }
.dephead { align-items: center; }
.deptitle { font: 600 15px/1.3 var(--body); }
.guests { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; }
.guests svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.depthumb { position: relative; flex: 0 0 auto; width: 92px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--soft); }
.depthumb img { width: 100%; height: 100%; object-fit: cover; }
.depbadge { position: absolute; right: 6px; bottom: 6px; padding: 1px 8px; border-radius: 999px; background: var(--gold); color: #fff; font: 700 12px/1.5 var(--body); }
.depbadge.ok { background: var(--green); }
.tile b.txt { font-size: 22px; }

/* ===== Макет Recraft v2 ===== */
:root { --bg: #F8F5EE; --search: #EEEAE0; }
.topbar { display: flex; justify-content: space-between; grid-template-columns: none; padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
.brand { justify-self: auto; align-items: center; gap: 8px; }
.brand .emb { height: 36px; width: auto; }
.brand .wm { height: 19px; width: auto; }
.langsel { box-shadow: none; background: transparent; border-color: var(--line); }
.searchbox { background: var(--search); border: none; box-shadow: none; border-radius: 999px; padding: 0 16px; }
.searchbox input { min-height: 46px; }
.searchbox svg { stroke: #6E6A60; }
.sechead button { display: inline-flex; gap: 4px; align-items: center; font-size: 14px; font-weight: 500; color: var(--ink); }
.destcards { display: flex; gap: 12px; overflow-x: auto; margin-inline: -16px; padding: 0 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.destcards::-webkit-scrollbar { display: none; }
.destcard { position: relative; flex: 0 0 64%; max-width: 300px; aspect-ratio: 4 / 5.2; border: none; padding: 0; border-radius: 20px; overflow: hidden; cursor: pointer; scroll-snap-align: start; background: var(--soft); text-align: left; }
.destcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.destcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,20,18,.7)); }
.destcard > div { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; display: flex; flex-direction: column; gap: 2px; color: #fff; }
.destcard b { font: 600 20px/1.2 var(--body); }
.destcard span { font-size: 13px; opacity: .92; }
.destcard[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--gold); }
.chip { min-height: 38px; padding: 0 18px; background: transparent; border: 1px solid #DDD6C8; font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.triplist { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .triplist { grid-template-columns: 1fr 1fr; } }
.tcard { border-radius: 18px; background: var(--surface); border: 1px solid #E8E2D5; box-shadow: none; padding: 10px; }
.tcard .tphoto { aspect-ratio: 16 / 10; border-radius: 12px; }
.tcard .goldheart { position: absolute; top: 10px; right: 10px; left: auto; width: 34px; height: 34px; border-radius: 50%; border: none; background: #C79A62; color: #fff; display: grid; place-items: center; cursor: pointer; }
.tcard .goldheart svg { fill: #fff; stroke: #fff; width: 17px; height: 17px; }
.tcard .goldheart[aria-pressed="true"] { background: #D2463F; }
.tbody { padding: 12px 4px 4px; gap: 2px; }
.tbody h3 { font: 600 16px/1.3 var(--body); -webkit-line-clamp: 2; }
.tsub { font-size: 14px; color: var(--ink); }
.tfoot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; }
.trate { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--ink); flex-wrap: wrap; }
.trate .demo-badge { margin-left: 6px; }
.tprice { font: 700 18px var(--body); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabbar { background: var(--surface); }
.tabbar a.on svg { fill: currentColor; }
/* Тур v2 */
.tourtop .gallery img { height: min(36vh, 300px); }
.glass { background: rgba(255,255,255,.55); color: var(--ink); }
.dots { bottom: 10px; }
.sheet { margin: 0 -16px; padding: 18px 16px 0; border-radius: 0; background: var(--bg); gap: 12px; }
.titlerow { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.titlerow h1 { font: 800 clamp(28px, 8vw, 34px)/1.12 var(--body); color: var(--green); letter-spacing: -0.02em; }
.bigrate { flex: none; font: 700 18px var(--body); margin-top: 6px; white-space: nowrap; }
.bigrate .star { color: var(--gold); }
.pills span { border: none; padding: 6px 14px; font-size: 14px; }
.pills .p-gold { background: #F2D9AE; color: var(--ink); }
.pills .p-green { background: #D9E6DD; color: var(--ink); }
.itabs { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.itabs button, .itabs span { display: inline-flex; align-items: center; gap: 6px; border: none; background: none; padding: 0; font: 400 14px var(--body); color: var(--ink); cursor: pointer; }
.itabs svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.itabs button[aria-pressed="true"] { font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.routemap { height: 220px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #EDEBE3; z-index: 0; }
.bookbar { padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)); }
.bookbar b { font: 700 26px var(--body); color: var(--green); }
.bookbar .btn { border-radius: 999px; flex: 0 1 190px; background: #D2A060; border-color: #D2A060; }
.titlerow h1 { font-size: clamp(30px, 9vw, 36px); }
.pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
.pills::-webkit-scrollbar { display: none; }
.pills span { flex: none; }
hr.sep { border: none; border-top: 1px solid var(--line); margin: 2px 0; width: 100%; }
.routesvg { width: 100%; height: 100%; background: linear-gradient(135deg, #E9EFE4, #F1ECDF); }
.destcards { scroll-padding-inline: 16px; }
/* Кабинет v2 */
.portal { margin: 0 -16px; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 64px; background: var(--green); color: #fff; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.portalbar { width: 100%; display: flex; justify-content: space-between; }
.pbtn { width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; text-decoration: none; }
.pbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.portal h1 { color: #fff; font: 600 26px var(--body); margin: 2px 0 14px; }
.portalava { border: none; padding: 0; background: none; cursor: pointer; border-radius: 50%; }
.portalava img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; background: var(--soft); }
.pname { font: 600 17px var(--body); margin-top: 8px; color: #fff; }
.prate { font-size: 15px; color: rgba(255,255,255,.92); }
.prate .star { color: var(--gold); }
.pver { display: inline-flex; align-items: center; gap: 6px; color: #57C77E; font-size: 15px; }
.pver svg { width: 18px; height: 18px; color: #57C77E; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.portalsheet { position: relative; z-index: 2; margin: -60px -16px 0; padding: 12px 16px 0; background: var(--bg); border-radius: 26px 26px 0 0; display: flex; flex-direction: column; gap: 18px; }
.handle { align-self: center; width: 40px; height: 4px; border-radius: 2px; background: #D9D3C6; }
.portalsheet .dashmeta { margin: 0; text-align: center; }
.pstats { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid #E8E2D5; border-radius: 16px; padding: 16px 0; box-shadow: var(--shadow); }
.pstats div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pstats div + div { border-left: 1px solid var(--line); }
.pstats span { font-size: 15px; color: var(--ink); }
.pstats b { font: 700 30px var(--body); }
.monthstat summary { font-weight: 600; }
.depcard { border: 1px solid #E8E2D5; box-shadow: none; }
.dephead { padding: 16px; align-items: flex-end; }
.deptitle { font: 600 17px/1.3 var(--body); }
.deprange { font-size: 15px; color: var(--ink); }
.guests { font-size: 14px; margin-top: 8px; color: var(--ink); }
.depchat { flex: none; color: var(--ink); }
.depchat svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pillbtn { border-radius: 999px; min-height: 52px; font-size: 16px; }
.tabs { justify-content: flex-start; }
.tourtop .gallery img { height: min(32vh, 270px); }
/* Мои поездки и профиль туриста */
.tripcard { background: var(--surface); border: 1px solid #E8E2D5; border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.triptop { display: flex; gap: 12px; }
.triptop img { width: 92px; height: 92px; border-radius: 12px; object-fit: cover; flex: none; background: var(--soft); }
.triptop b { font: 600 16px/1.3 var(--body); }
.tripcard svg, .melist svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.tripbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.tripbtns .btn { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 999px; }
.mehead { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.meava { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font: 700 20px var(--body); flex: none; }
.mehead b { font: 600 18px var(--body); }
.mehead .btn { min-height: 38px; padding: 0 14px; border-radius: 999px; font-size: 14px; }
.melist { padding: 4px 14px; display: flex; flex-direction: column; }
.merow, .medet summary { display: flex; align-items: center; gap: 12px; min-height: 52px; color: var(--ink); text-decoration: none; background: none; border: none; width: 100%; padding: 0; font: 400 15px var(--body); cursor: pointer; text-align: left; list-style: none; }
.medet summary::-webkit-details-marker { display: none; }
.melist > * + * { border-top: 1px solid var(--line); }
.meic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #E5EEE9; color: var(--green); flex: none; }
.meic svg { width: 18px !important; height: 18px !important; vertical-align: 0 !important; }
.melabel { flex: 1; min-width: 0; }
.merow .langsel { box-shadow: none; }
.guidecta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px; border-radius: 20px; background: var(--green); color: #fff; text-decoration: none; }
.guidecta div { display: flex; flex-direction: column; gap: 4px; }
.guidecta b { font: 600 17px var(--body); color: #fff; }
.guidecta span:not(.btn) { font-size: 13px; opacity: .85; }
.guidecta .btn { flex: none; min-height: 42px; border-radius: 999px; font-size: 14px; }

/* ===== Лента (feed.html) ===== */
body.reelmode { background: #0B0F0E; overflow: hidden; }
body.reelmode .tabbar { background: #0B0F0E; border-top-color: #1f2a27; }
body.reelmode .tabbar a { color: #9aa7a3; }
body.reelmode .tabbar a.on { color: #fff; }
.reels { position: fixed; left: 0; right: 0; top: 0; bottom: calc(62px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.reels::-webkit-scrollbar { display: none; }
.reel { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #000; max-width: 520px; margin: 0 auto; }
.reelmedia { position: absolute; inset: 0; }
.reelposter { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.85); }
.reelframe { position: absolute; border: 0; background: #000; }
.reelframe.k-yt { pointer-events: none; left: 50%; top: 50%; height: 100%; width: calc(100vh * 9 / 16); min-width: 100%; transform: translate(-50%, -50%); }
.reelframe.k-ig, .reelframe.k-tt { left: 0; right: 0; top: 70px; bottom: 150px; width: 100%; height: calc(100% - 220px); background: #fff; }
.reelplay { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; border: 0; background: rgba(255,255,255,.22); backdrop-filter: blur(8px); color: #fff; font-size: 30px; cursor: pointer; }
.reelsound { position: absolute; right: 14px; top: 112px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.4); color: #fff; font-size: 18px; cursor: pointer; z-index: 3; }
.reelinfo { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 14px 14px; display: flex; flex-direction: column; gap: 10px; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.35) 70%, transparent); z-index: 2; }
.reelinfo p { margin: 0; font-size: 14px; line-height: 1.4; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.reelwho { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.reelava { width: 34px; height: 34px; border-radius: 50%; background: var(--gold, #E2B04A); color: #0F3B34; display: grid; place-items: center; font-weight: 800; }
.reelbadge { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 99px; background: rgba(255,255,255,.18); }
.reelfollow { margin-left: auto; color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; border: 1.5px solid rgba(255,255,255,.8); border-radius: 99px; padding: 5px 12px; }
.reeltour { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 16px; background: rgba(255,255,255,.95); color: #0F3B34; text-decoration: none; }
.reeltour img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: none; }
.reeltt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: #4b5a56; }
.reeltt b { font-size: 14px; color: #0F3B34; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reelgo { flex: none; font-size: 12px; font-weight: 700; background: #0F3B34; color: #fff; border-radius: 99px; padding: 8px 10px; }
.reelhead { position: fixed; left: 0; right: 0; top: 0; z-index: 5; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px; background: linear-gradient(to bottom, rgba(0,0,0,.6), transparent); max-width: 520px; margin: 0 auto; pointer-events: none; }
.reelhead > * { pointer-events: auto; }
.reeltop { display: flex; align-items: center; justify-content: space-between; color: #fff; font: 800 22px var(--display, Inter); }
.reeladd { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; color: #0F3B34; font-size: 24px; font-weight: 700; line-height: 1; cursor: pointer; }
.reelchips { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.reelchips button { flex: none; border: 0; border-radius: 99px; padding: 7px 14px; font: 600 13px var(--body, Inter); background: rgba(255,255,255,.2); color: #fff; backdrop-filter: blur(6px); cursor: pointer; }
.reelchips button[aria-pressed="true"] { background: #fff; color: #0F3B34; }
.reelempty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 0 30px; text-align: center; color: #cfd8d5; }
.reelempty b { color: #fff; font-size: 18px; }
.reelsheet { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.5); display: flex; align-items: flex-end; justify-content: center; }
.reelsheetbox { width: 100%; max-width: 520px; background: var(--bg, #F8F5EE); border-radius: 22px 22px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px)); max-height: 85vh; overflow-y: auto; }
.reelsheetbox h2 { margin: 0; }
/* Отзывы на странице тура */
.revhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.revcta { display: flex; flex-direction: column; gap: 8px; border: 1.5px solid var(--gold, #E2B04A); }
/* Видео на странице тура */
.vidrow { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.vidthumb { position: relative; flex: none; width: 120px; aspect-ratio: 9/16; border-radius: 14px; overflow: hidden; background: #0F3B34; }
.vidthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vidthumb span { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.3); backdrop-filter: blur(4px); color: #fff; display: grid; place-items: center; font-size: 16px; }
.upnext { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: #0F3B34; color: #fff; text-decoration: none; }
.upnext img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; }
.upnext .small { color: #cfe0db; }

/* =====================================================================
   Компьютерная версия tooda.app (по макету). На телефоне всё как раньше.
   ===================================================================== */
.dhead, .dfoot, .deskonly, .tguide, .tside-price { display: none; }
.tside { display: contents; }
#book { order: 10; }
@media (min-width: 1000px) {
  :root { --serif: "Lora", Georgia, "Times New Roman", serif; --dgreen: #0F3B34; }
  .mobonly, .tabbar, .topbar, .bookbar, .installbtn, .wrap > footer { display: none !important; }
  .deskonly { display: revert; }
  section.deskonly { display: block; }
  body.has-tabbar, body.has-bookbar { padding: 0 0 0; }
  body { padding-inline: 0; }
  .wrap { max-width: 1240px; padding-inline: 32px; padding-block: 28px 56px; gap: 40px; }
  h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
  h2 { font-size: 28px; }

  /* Шапка */
  .dhead { display: block; position: sticky; top: 0; z-index: 30; background: var(--dgreen); color: #fff; }
  .dhead-in { max-width: 1240px; margin: 0 auto; padding: 0 32px; height: 64px; display: flex; align-items: center; gap: 40px; }
  .dlogo img { display: block; height: 20px; width: auto; }
  .dnav { display: flex; gap: 6px; flex: 1; justify-content: center; }
  .dnav a { color: rgba(255,255,255,.82); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 14px; border-radius: 999px; position: relative; }
  .dnav a:hover { color: #fff; background: rgba(255,255,255,.08); }
  .dnav a.on { color: var(--gold); }
  .dnav a.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; border-radius: 2px; background: var(--gold); }
  .dside { display: flex; align-items: center; gap: 12px; }
  .dside .langsel { color: #fff; border-color: rgba(255,255,255,.3); background: transparent; }
  .dside .langsel option { color: #111; }
  .dguide { min-height: 40px; padding: 0 18px; font-size: 14px; }

  /* Футер */
  .dfoot { display: block; text-align: left; background: var(--dgreen); color: rgba(255,255,255,.78); margin-top: 24px; }
  .dfoot-in { max-width: 1240px; margin: 0 auto; padding: 48px 32px 28px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
  .dfoot-in > div { display: flex; flex-direction: column; gap: 10px; }
  .dfoot-in b { color: #fff; font-size: 15px; }
  .dfoot-in a { color: rgba(255,255,255,.78); text-decoration: none; font-size: 14px; }
  .dfoot-in a:hover { color: #fff; }
  .dfoot-brand img { height: 20px; width: auto; align-self: flex-start; }
  .dfoot-brand p { margin: 0; max-width: 34ch; font-size: 14px; line-height: 1.55; }
  .dfoot-bottom { max-width: 1240px; margin: 0 auto; padding: 18px 32px 28px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 20px; font-size: 13px; }

  /* Главная: баннер с поиском */
  .dhero { position: relative; margin: -28px -32px 0; min-height: 520px; display: flex !important; align-items: flex-end; overflow: hidden; border-radius: 0 0 28px 28px; }
  .dhero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .dhero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,30,26,.78) 0%, rgba(8,30,26,.35) 55%, rgba(8,30,26,.1) 100%), linear-gradient(0deg, rgba(8,30,26,.55), transparent 50%); }
  .dhero-in { position: relative; z-index: 2; padding: 72px 56px 48px; display: flex; flex-direction: column; gap: 16px; width: 100%; }
  .dhero h1 { color: #fff; font-size: 52px; line-height: 1.08; max-width: 14ch; text-wrap: balance; }
  .dhero p { color: rgba(255,255,255,.9); font-size: 18px; margin: 0; max-width: 46ch; }
  .dsearch { margin-top: 18px; background: #fff; border-radius: 18px; padding: 10px; display: grid; grid-template-columns: 1.4fr 1fr 0.8fr auto; gap: 10px; max-width: 900px; box-shadow: 0 12px 40px rgba(0,0,0,.18); }
  .dfield { flex-direction: row; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; font-weight: 400; color: var(--ink); background: #fff; }
  .dfield svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .dfield select, .dfield input { border: none; padding: 0; min-height: 48px; background: transparent; color: var(--ink); }
  .dfield select:focus, .dfield input:focus { outline: none; }
  .dsearch .btn { min-height: 50px; padding: 0 28px; font-size: 16px; }
  .dperks { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--dgreen); border-radius: 22px; padding: 22px 28px; margin-top: -12px; }
  .dperks > div { display: flex; gap: 12px; align-items: center; color: #fff; padding-inline: 12px; }
  .dperks > div + div { border-left: 1px solid rgba(255,255,255,.14); }
  .dperks > div > span:last-child { display: flex; flex-direction: column; font-size: 13px; color: rgba(255,255,255,.75); }
  .dperks b { color: #fff; font-size: 15px; font-weight: 600; }
  .dperk-ic { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; }
  .dperk-ic svg { width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

  /* Направления и туры */
  .destcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; overflow: visible; margin: 0; padding: 0; }
  .destcard { max-width: none; aspect-ratio: 16 / 11; border-radius: 20px; transition: transform .2s; }
  .destcard:hover { transform: translateY(-3px); }
  .destcard b { font: 600 26px/1.15 var(--serif); }
  .triplist { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .tcard { transition: transform .2s, box-shadow .2s; }
  .tcard:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(14,43,39,.12); }
  .tguide { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
  .tguide img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
  .tver { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 10px; font-weight: 700; }

  /* Видео и отзывы на главной */
  .dvideo { display: grid !important; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; background: var(--dgreen); border-radius: 28px; padding: 48px 56px; color: #fff; }
  .dvideo-txt { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
  .dvideo h2 { color: #fff; font-size: 40px; line-height: 1.12; }
  .dvideo p { color: rgba(255,255,255,.8); margin: 0; font-size: 16px; max-width: 42ch; }
  .dvideo-tag { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; }
  .dvideo-tag svg { width: 22px; height: 22px; fill: var(--gold); stroke: var(--dgreen); stroke-width: 1.5; }
  .dvideo-pic { position: relative; display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10; }
  .dvideo-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
  .dvideo-pic:hover img { transform: scale(1.03); }
  .dplay { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; }
  .dplay svg { width: 34px; height: 34px; fill: var(--dgreen); stroke: #fff; stroke-width: 1; }
  .drevs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .drev { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
  .drev p { margin: 0; font-size: 14.5px; line-height: 1.55; }
  .drev img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 12px; margin-top: auto; }
  .banner, .esim { min-height: 140px; padding: 28px 32px; }

  /* Каталог */
  .catbanner { position: relative; margin: -28px -32px 0; height: 260px; overflow: hidden; border-radius: 0 0 28px 28px; }
  .catbanner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .catbanner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,30,26,.72), rgba(8,30,26,.15)); }
  .catbanner-in { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 56px; }
  .catbanner h1 { color: #fff; font-size: 46px; }
  .catbanner p { color: rgba(255,255,255,.9); font-size: 17px; margin: 0; }
  .wrap > .searchbox { display: flex; max-width: 640px; margin-top: -60px; position: relative; z-index: 3; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.12); border-radius: 14px; }
  .wrap:has(.dhero) > .searchbox { display: none; }
  .catlayout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; }
  .catfilters { position: sticky; top: 88px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; gap: 18px !important; }
  .catgroup { display: flex; flex-direction: column; gap: 8px; }
  .catgroup + .catgroup { border-top: 1px solid var(--line); padding-top: 16px; }
  .catgroup b { font-size: 14px; }
  .catgroup .chips { flex-direction: column; overflow: visible; gap: 4px; }
  .catgroup .chip { justify-content: flex-start; min-height: 36px; border: none; background: transparent; text-align: left; padding: 0 10px; border-radius: 10px; }
  .catgroup .chip[aria-pressed="true"] { background: var(--soft); color: var(--green); font-weight: 700; }
  .catmain .triplist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .catmain .tcard { flex-direction: row; padding: 10px; gap: 4px; }
  .catmain .tcard .tphoto { flex: 0 0 44%; aspect-ratio: auto; min-height: 170px; }
  .catmain .tbody { padding: 6px 8px; justify-content: space-between; }

  /* Страница тура */
  .tourpage { display: grid; grid-template-columns: minmax(0, 1fr) 380px; column-gap: 40px; row-gap: 0; align-items: start; }
  .tourpage > * { grid-column: 1; margin-bottom: 28px; min-width: 0; }
  .tourpage > .tourtop, .tourpage > .note { grid-column: 1 / -1; }
  .tourpage > .tside { margin-top: 4px; grid-column: 2; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 88px; }
  .tourtop { margin: 0; border-radius: 22px; overflow: hidden; background: transparent; }
  .tourtop .gallery { display: grid; gap: 8px; overflow: hidden; height: 460px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .tourtop .gallery img { height: 100% !important; width: 100%; min-height: 0; }
  .tourtop .gallery img:first-child { grid-row: 1 / 3; }
  .tourtop .gallery img:nth-child(n+6) { display: none; }
  .tourtop .gallery.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .tourtop .gallery.n2 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; }
  .tourtop .gallery.n2 img:first-child { grid-row: auto; }
  .tourtop .gallery.n3 { grid-template-columns: 2fr 1fr; }
  .tourtop .gallery.n4 img:nth-child(2) { grid-column: 2 / 4; }
  .tourtop .dots { display: none; }
  .sheet { margin: 0; padding: 0; background: transparent; border-radius: 0; }
  .sheet h1 { font-family: var(--serif); font-size: 40px; line-height: 1.12; }
  .tside #book { order: 0; box-shadow: 0 12px 34px rgba(14,43,39,.1); border-radius: 20px; padding: 22px; }
  .tside-price { display: flex; flex-direction: column; }
  .tside-price b { font: 700 30px/1.1 var(--body); font-variant-numeric: tabular-nums; }
  .tside #book .row { grid-template-columns: 1fr; }
  .tside .datepick { flex-wrap: wrap; overflow: visible; }
  .tside .datepick button { flex: 1 1 140px; }
  .tside .hostrow { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
  .tside .hostrow .avatar { width: 56px; height: 56px; }
  .vidrow { flex-wrap: wrap; }
}
@media (min-width: 1000px) and (max-width: 1180px) {
  .tourpage { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 28px; }
  .triplist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catmain .triplist { grid-template-columns: 1fr; }
  .dhero h1 { font-size: 44px; }
}


/* TOODA DESKTOP HOME v48 — approved editorial marketplace direction.
   Only homepage selectors inside desktop breakpoint. Mobile untouched. */
@media (min-width:1000px) {
  .wrap:has(> .dhero) {max-width:1320px; padding-inline:40px; gap:38px;}
  .wrap:has(> .dhero) > .dhero {margin-inline:-40px; min-height:485px; border-radius:0 0 24px 24px;}
  .wrap:has(> .dhero) .dhero::after {background:linear-gradient(90deg,rgba(10,35,31,.78),rgba(10,35,31,.35) 60%,rgba(10,35,31,.10));}
  .wrap:has(> .dhero) .dhero-in {padding:64px 58px 52px;gap:15px;}
  .wrap:has(> .dhero) .dhero h1 {font-size:clamp(42px,4vw,56px);max-width:19ch;line-height:1.12;letter-spacing:-.035em;}
  .wrap:has(> .dhero) .dhero p {font-size:17px;max-width:58ch;line-height:1.55;}
  .wrap:has(> .dhero) .dsearch {max-width:1000px;grid-template-columns:minmax(210px,1.6fr) minmax(165px,1fr) minmax(115px,.65fr) auto; border-radius:14px;padding:8px;gap:8px;margin-top:22px;box-shadow:0 12px 32px rgba(0,0,0,.16);}
  .wrap:has(> .dhero) .dfield {min-width:0;border-radius:9px;}
  .wrap:has(> .dhero) .dfield select,.wrap:has(> .dhero) .dfield input {min-width:0;width:100%;}
  .wrap:has(> .dhero) .dsearch .btn.primary {background:#D99A45;color:#17352e;border-radius:9px;font-weight:700;white-space:nowrap;}
  .wrap:has(> .dhero) .dsearch .btn.primary:hover {background:#e9ad61;}
  .wrap:has(> .dhero) > .dperks {margin-top:-30px;z-index:3;position:relative;background:#0F3B34;border-radius:16px;padding:21px 18px;box-shadow:0 12px 26px rgba(15,59,52,.13);}
  .wrap:has(> .dhero) .dperks > div {padding-inline:12px;}
  .wrap:has(> .dhero) .dperk-ic {width:38px;height:38px;}
  .wrap:has(> .dhero) .dperks b {font-size:14px;}
  .wrap:has(> .dhero) .destcards {gap:18px;}
  .wrap:has(> .dhero) .destcard {aspect-ratio:1.5;border-radius:16px;}
  .wrap:has(> .dhero) .destcard b {font-size:25px;}
  .wrap:has(> .dhero) .triplist {gap:20px;}
  .wrap:has(> .dhero) .tcard {border-radius:16px;overflow:hidden;box-shadow:0 4px 18px rgba(15,59,52,.055);}
  .wrap:has(> .dhero) .dvideo {border-radius:20px;padding:42px 48px;gap:38px;}
  .wrap:has(> .dhero) .dvideo h2 {font-size:36px;}
  .wrap:has(> .dhero) .dvideo-pic {border-radius:14px;}
}
@media (min-width:1000px) and (max-width:1199px) {
  .wrap:has(> .dhero) .dhero-in {padding:55px 36px;}
  .wrap:has(> .dhero) .dperks > div {padding-inline:6px;}
  .wrap:has(> .dhero) .dperks b {font-size:12px;}
}


/* ============================================================
   TOODA DESKTOP HOMEPAGE v49 — approved marketplace visual
   Desktop-only, homepage-only. No JavaScript or mobile changes.
   ============================================================ */
@media (min-width:1000px) {
  body:has(.wrap > .dhero) { background:#FCFBF8; }
  .wrap:has(> .dhero) {
    max-width:1440px;
    padding:0 56px 64px;
    gap:26px;
  }
  .wrap:has(> .dhero) > .dhero {
    margin: -28px -56px 0;
    min-height:405px;
    border-radius:0;
    align-items:center;
  }
  .wrap:has(> .dhero) .dhero-bg {filter:saturate(.92);object-position:center 47%;}
  .wrap:has(> .dhero) .dhero::after {
    background:linear-gradient(90deg,rgba(5,31,28,.83) 0%,rgba(5,31,28,.58) 39%,rgba(5,31,28,.10) 82%),linear-gradient(0deg,rgba(5,31,28,.28),transparent 60%);
  }
  .wrap:has(> .dhero) .dhero-in {
    padding:52px 8% 52px;
    gap:13px;
    align-items:flex-start;
  }
  .wrap:has(> .dhero) .dhero h1 {
    font-family:var(--serif);
    font-size:clamp(38px,3.6vw,53px);
    max-width:22ch;
    line-height:1.13;
    letter-spacing:-.032em;
    text-wrap:balance;
  }
  .wrap:has(> .dhero) .dhero p {
    font-size:16px;
    max-width:56ch;
    line-height:1.55;
    color:#F6F4ED;
  }
  .wrap:has(> .dhero) .dsearch {
    width:min(1100px,100%);
    max-width:none;
    margin-top:16px;
    padding:7px;
    border-radius:15px;
    grid-template-columns:minmax(180px,1.5fr) minmax(155px,1fr) minmax(110px,.8fr) minmax(155px,.8fr);
    gap:5px;
    box-shadow:0 12px 35px rgba(0,0,0,.18);
  }
  .wrap:has(> .dhero) .dfield {
    min-width:0;
    border:0;
    border-right:1px solid #E9E8E2;
    border-radius:0;
    padding:0 13px;
    background:#fff;
  }
  .wrap:has(> .dhero) .dfield select,
  .wrap:has(> .dhero) .dfield input {
    min-width:0;width:100%;min-height:49px;font-size:14px;
  }
  .wrap:has(> .dhero) .dsearch .btn.primary {
    min-height:49px;
    padding:0 20px;
    border-radius:10px;
    background:#D99A45;
    color:#163A32;
    font-weight:750;
    white-space:nowrap;
    box-shadow:none;
  }
  .wrap:has(> .dhero) .dsearch .btn.primary:hover {background:#E6A958;}
  .wrap:has(> .dhero) > .dperks {
    margin:-26px 0 8px;
    position:relative;
    z-index:2;
    border-radius:14px;
    background:#0F3B34;
    padding:18px 18px;
    box-shadow:0 10px 25px rgba(15,59,52,.12);
  }
  .wrap:has(> .dhero) .dperks > div {padding-inline:13px;gap:10px;min-width:0;}
  .wrap:has(> .dhero) .dperk-ic {width:37px;height:37px;}
  .wrap:has(> .dhero) .dperk-ic svg {width:18px;height:18px;}
  .wrap:has(> .dhero) .dperks b {font-size:13px;}
  .wrap:has(> .dhero) .dperks > div > span:last-child {font-size:12px;}
  .wrap:has(> .dhero) > section.stack {gap:14px!important;min-width:0;}
  .wrap:has(> .dhero) .sechead h2,
  .wrap:has(> .dhero) > section.stack > h2 {
    font-family:var(--serif);
    font-size:29px;
    letter-spacing:-.025em;
    line-height:1.25;
  }
  .wrap:has(> .dhero) .destcards {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
  }
  .wrap:has(> .dhero) .destcard {
    position:relative;
    aspect-ratio:2.05;
    border-radius:13px;
    overflow:hidden;
    box-shadow:0 4px 14px rgba(10,35,31,.08);
  }
  .wrap:has(> .dhero) .destcard img {transition:transform .35s;filter:saturate(.94);}
  .wrap:has(> .dhero) .destcard:hover img {transform:scale(1.045);}
  .wrap:has(> .dhero) .destcard b {font-size:23px;line-height:1.1;}
  .wrap:has(> .dhero) .destcard span {font-size:12px;}
  .wrap:has(> .dhero) .triplist {
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
  }
  .wrap:has(> .dhero) .tcard {
    min-width:0;
    border:1px solid #EDEBE5;
    border-radius:13px;
    overflow:hidden;
    box-shadow:0 4px 15px rgba(15,59,52,.055);
    transition:transform .2s,box-shadow .2s;
  }
  .wrap:has(> .dhero) .tcard:hover {
    transform:translateY(-3px);
    box-shadow:0 12px 26px rgba(15,59,52,.12);
  }
  .wrap:has(> .dhero) .tphoto {aspect-ratio:1.7;}
  .wrap:has(> .dhero) .tbody {padding:12px;}
  .wrap:has(> .dhero) .dvideo {
    grid-template-columns:.85fr 1.15fr;
    padding:34px 42px;
    gap:38px;
    border-radius:16px;
    background:#0F3B34;
  }
  .wrap:has(> .dhero) .dvideo h2 {font-size:33px;line-height:1.17;}
  .wrap:has(> .dhero) .dvideo p {font-size:14px;line-height:1.65;}
  .wrap:has(> .dhero) .dvideo-pic {aspect-ratio:16/8;border-radius:12px;}
  .wrap:has(> .dhero) .dplay {width:60px;height:60px;}
  .wrap:has(> .dhero) .dplay svg {width:26px;height:26px;}
}
@media (min-width:1000px) and (max-width:1199px) {
  .wrap:has(> .dhero) {padding-inline:32px;}
  .wrap:has(> .dhero) > .dhero {margin-inline:-32px;}
  .wrap:has(> .dhero) .dhero-in {padding-inline:6%;}
  .wrap:has(> .dhero) .dhero h1 {font-size:42px;}
  .wrap:has(> .dhero) .dperks > div {padding-inline:6px;}
  .wrap:has(> .dhero) .dperks b {font-size:12px;}
  .wrap:has(> .dhero) .triplist {grid-template-columns:repeat(3,minmax(0,1fr));}
  .wrap:has(> .dhero) .destcard {aspect-ratio:1.65;}
}

/* Подгонка v50: шапка и подвал главной по ширине контента, воздух над заголовком */
@media (min-width:1000px) {
  body:has(.wrap > .dhero) .dhead-in,
  body:has(.wrap > .dhero) .dfoot-in { max-width:1440px; padding-left:56px; padding-right:56px; }
  .wrap:has(> .dhero) .dhero-in { padding-top:76px; padding-left:56px; padding-right:56px; }
}
@media (min-width:1000px) and (max-width:1199px) {
  body:has(.wrap > .dhero) .dhead-in,
  body:has(.wrap > .dhero) .dfoot-in { padding-left:32px; padding-right:32px; }
  .wrap:has(> .dhero) .dhero-in { padding-left:32px; padding-right:32px; }
}

/* v51: фото на главной — от края до края экрана, текст на линии контента */
@media (min-width:1000px) {
  body:has(.wrap > .dhero) { overflow-x: clip; }
  .wrap:has(> .dhero) > .dhero { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); border-radius: 0; }
  .wrap:has(> .dhero) .dhero-in { max-width: 1440px; margin-left: auto; margin-right: auto; }
}

/* v52: отзывы на главной как в макете — кружок с буквой, имя, звёзды под именем, фото снизу */
@media (min-width:1000px) {
  .drevs { gap: 18px; }
  .drev { padding: 18px; border-radius: 14px; border: 1px solid #EDEBE5; box-shadow: 0 4px 15px rgba(15,59,52,.05); gap: 12px; transition: transform .2s, box-shadow .2s; }
  a.drev:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(15,59,52,.1); }
  .drev-who { display: flex; align-items: center; gap: 12px; }
  .drev-who > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .drev-who b { font-size: 15px; }
  .drev-who .star { font-size: 14px; letter-spacing: 1px; }
  .drev-ava { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #F3E6D2; color: #0F3B34; font-weight: 700; font-size: 18px; font-family: var(--serif); }
  .drev p { font-size: 14px; }
  .drev img { aspect-ratio: 16 / 6; border-radius: 10px; }
}

/* Новый логотип (горы и солнце + Tooda) */
.brand .emb { height: 36px; width: auto; }
.brand .wm { height: 24px; width: auto; margin-top: 6px; }
@media (max-width: 420px) { .brand .emb { height: 30px; } .brand .wm { height: 20px; } }
@media (min-width:1000px) {
  .dlogo img { height: 40px; }
  .dfoot-brand img { height: 120px; }
}

/* v56: доводка компьютерной версии */
@media (min-width:1000px) {
  /* Лента: видео по центру на тёмном фоне, как в TikTok; подвал не нужен */
  body.reelmode .dfoot { display: none; }
  body.reelmode .reels { top: 64px; bottom: 0; padding-top: 16px; scroll-padding-top: 16px; }
  body.reelmode .reel { height: calc(100vh - 96px); width: calc((100vh - 96px) * 9 / 16); max-width: none; border-radius: 18px; margin: 0 auto 16px; }
  body.reelmode .reelhead { top: 80px; width: calc((100vh - 96px) * 9 / 16); max-width: none; border-radius: 18px 18px 0 0; padding-top: 14px; }
  body.reelmode .reelempty { height: calc(100vh - 96px); }
  .reelsheet { align-items: center; }
  .reelsheetbox { border-radius: 22px; }

  /* Каталог: фото на всю ширину, текст на линии меню */
  .catbanner { margin: -28px calc(50% - 50vw) 0; border-radius: 0; height: 300px; }
  .catbanner-in { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
  .catbanner h1 { font-size: 50px; letter-spacing: -.02em; }
  body:has(.catbanner) { overflow-x: clip; }

  /* Профиль туриста: удобная колонка по центру */
  .wrap:has(> .mehead) { max-width: 820px; }
}
@media (min-width:1000px) {
  body.reelmode .reelframe.k-ig, body.reelmode .reelframe.k-tt { top: 112px; height: calc(100% - 262px); }
}


/* TOODA mobile design system — approved light visual direction, 2026-10-16.
   Presentation-only overrides; original JS, routes and Supabase remain intact. */
@media (max-width: 999px) {
  :root { --bg:#FCFBF6; --surface:#fff; --soft:#F6F2E9; --ink:#102E29; --green:#0F3B34; --gold:#D99A45; --gold-2:#C8862C; --line:#EAE5DA; --muted:#718078; --radius:20px; --shadow:0 4px 22px rgba(24,48,40,.055); }
  html { background:var(--bg); }
  body { padding-inline:14px; background:var(--bg); font-size:14px; }
  .wrap { gap:19px; }
  h1,h2,h3 { letter-spacing:-.025em; }
  h2 { font-size:19px; font-weight:750; }
  .topbar { display:flex; position:relative; justify-content:center; align-items:center; min-height:74px; padding:calc(8px + env(safe-area-inset-top, 0px)) 0 9px; }
  .topbar .brand { display:flex; flex-direction:column; gap:0; align-items:center; justify-content:center; position:absolute; left:50%; transform:translateX(-50%); top:calc(7px + env(safe-area-inset-top, 0px)); z-index:1; }
  .topbar .brand .emb { width:auto; height:26px; object-fit:contain; }
  .topbar .brand .wm { width:auto; height:16px; object-fit:contain; margin-top:0; }
  .topbar .tb-side.end { margin-left:auto; z-index:2; }
  .topbar .langsel { background:transparent; border:0; box-shadow:none; min-height:36px; padding:3px 5px; }
  .dir { border:1px solid #D9E1D9; box-shadow:none; background:#F4F4EE; }
  .dir button { min-height:40px; font-size:13px; }
  .dir button[aria-pressed=true] { box-shadow:0 3px 10px rgba(15,59,52,.16); }
  .hero { min-height:310px; border-radius:25px 25px 42px 25px; padding:23px 19px 78px; isolation:isolate; }
  .hero::before { background:linear-gradient(0deg,rgba(4,33,30,.56),rgba(4,33,30,.06) 70%),linear-gradient(90deg,rgba(5,34,32,.42),transparent 90%); }
  .hero h1 { font-size:clamp(25px,7vw,33px); line-height:1.13; letter-spacing:-.035em; max-width:15ch; }
  .hero .tagline { font-size:12px; letter-spacing:.02em; }
  .search { border-radius:999px; padding-left:15px; box-shadow:0 8px 24px rgba(0,0,0,.14); }
  .search input { min-height:43px; font-size:14px; }
  .dests { gap:12px; }
  .dest { flex-basis:105px; }
  .dest img { width:105px; height:91px; border-radius:13px 20px 13px 13px; }
  .dest b { font-size:13px; }
  .chip { font-size:12px; min-height:35px; padding:0 13px; }
  .btn { border-radius:13px; font-size:14px; min-height:45px; }
  .btn.primary { background:linear-gradient(135deg,#DDA34F,#D08D32); border-color:#D2943D; }
  .btn.dark { background:#0F3B34; }
  .tourcard { grid-template-columns:104px minmax(0,1fr); padding:9px; gap:11px; border-radius:18px; box-shadow:0 3px 15px rgba(15,59,52,.045); }
  .tourcard .cover { width:104px; height:104px; border-radius:12px 17px 12px 12px; }
  .tourcard .body { gap:4px; }
  .tourcard h3 { font-size:13px; line-height:1.3; }
  .tourcard .meta { font-size:11px; gap:6px; }
  .tourcard .price { font-size:16px; }
  .card,.tripcard { border-radius:18px; box-shadow:0 4px 16px rgba(15,59,52,.035); }
  .banner { border-radius:18px 26px 18px 18px; }
  .tabbar { padding:7px 6px calc(7px + env(safe-area-inset-bottom,0px)); border-top:1px solid #ECE8DE; box-shadow:0 -5px 24px rgba(15,59,52,.045); }
  .tabbar a { gap:3px; font-size:10px; }
  .tabbar a svg { width:21px; height:21px; }
  .tabbar a[href="/feed"] { color:var(--gold-2); }
  .tabbar a[href="/feed"].on { color:var(--gold-2); }
  .tourtop { margin:0 -14px; border-radius:0 0 28px 28px; overflow:hidden; }
  .tourtop .gallery img { height:min(43vh,365px); }
  .sheet { margin:-33px -14px 0; padding:22px 17px 4px; background:var(--bg); border-radius:30px 30px 0 0; }
  .sheet h1 { font-size:25px; line-height:1.14; font-weight:750; }
  .bookbar { background:rgba(255,255,255,.97); padding:11px 15px calc(11px + env(safe-area-inset-bottom,0px)); }
  .bookbar .btn { border-radius:13px; }
  .triptop img { border-radius:13px; }
  .tag { border-radius:999px; }
  input,select,textarea { border-radius:12px; }
}
@media (max-width: 370px) {
  .topbar .brand .emb { height:23px; }
  .topbar .brand .wm { height:14px; }
  .tourcard { grid-template-columns:92px minmax(0,1fr); }
  .tourcard .cover { width:92px; height:98px; }
  .tabbar a { font-size:9px; }
}

/* TOODA v57 — light editorial mobile redesign. Added without removing legacy rules.
   Existing markup and business logic remain intact. */
@media (max-width:999px) {
  :root { --bg:#FCFBF6; --surface:#fff; --soft:#F4F1E9; --ink:#102E29; --green:#0F3B34; --gold:#D99A45; --gold-2:#C8862C; --line:#E9E6DE; --muted:#65746D; --radius:21px; --shadow:0 6px 26px rgba(14,43,36,.065); }
  html,body { background:#FCFBF6; }
  body { padding-inline:13px; }
  .wrap { gap:20px; padding-bottom:16px; }
  .wrap > .topbar { margin-bottom:0; }
  .topbar { min-height:78px; background:transparent; border:0; }
  .topbar .brand { top:calc(6px + env(safe-area-inset-top,0px)); gap:1px; }
  .topbar .brand .emb { height:30px; max-width:90px; }
  .topbar .brand .wm { height:18px; }
  .topbar .tb-side.end { margin-left:auto; }
  .topbar .langsel { font-size:12px; }
  .wrap > .searchbox { border:1px solid #E5E5DE; background:#fff; box-shadow:0 5px 15px rgba(15,59,52,.035); border-radius:999px; min-height:49px; }
  .wrap > .searchbox input { background:transparent; }
  .dir { border:1px solid #DFE5DC; background:#F4F4EF; padding:3px; border-radius:999px; }
  .dir button { font-size:13px; }
  .hero { min-height:345px; border-radius:24px 24px 46px 24px; padding:25px 19px 83px; box-shadow:0 12px 28px rgba(15,59,52,.1); }
  .hero::before { background:linear-gradient(0deg,rgba(4,33,30,.76),rgba(4,33,30,.02) 85%),linear-gradient(90deg,rgba(4,33,30,.25),transparent); }
  .hero h1 { font-size:clamp(29px,8vw,38px); line-height:1.1; max-width:14ch; text-wrap:balance; letter-spacing:-.045em; }
  .hero .tagline { font-size:12px; letter-spacing:.02em; }
  .search { left:15px;right:15px;bottom:16px;min-height:50px;border-radius:999px; }
  .search input { font-size:14px; }
  .sechead { align-items:baseline; }
  .sechead h2,.stack > h2 { font-size:19px; font-weight:800; letter-spacing:-.035em; }
  .sechead button { color:#C4822F; font-size:12px; }
  .destcards { display:flex;gap:11px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;margin-right:-13px;padding-right:13px;padding-bottom:4px; }
  .destcards::-webkit-scrollbar { display:none; }
  .destcard { flex:0 0 118px; max-width:118px; min-height:139px; aspect-ratio:auto; border-radius:14px; scroll-snap-align:start; box-shadow:none; }
  .destcard img { height:95px; width:100%; border-radius:13px; object-fit:cover; }
  .destcard > div { position:static; padding:7px 0 0; background:none; color:var(--ink); text-shadow:none; }
  .destcard b { font-size:13px; line-height:1.2; }
  .destcard span { font-size:10px; color:var(--muted); }
  .destcard[aria-pressed=true] img { outline:2px solid var(--gold);outline-offset:2px; }
  .chips { gap:7px; padding-bottom:3px; }
  .chip { min-height:36px; padding:0 13px; font-size:12px; border-color:#E6E6DF; background:#fff; }
  .chip[aria-pressed=true] { background:var(--green); border-color:var(--green); }
  .triplist { gap:11px; }
  .tourcard { grid-template-columns:116px minmax(0,1fr);padding:8px;gap:12px;border:1px solid #F0EEE7;border-radius:17px;box-shadow:0 5px 18px rgba(15,59,52,.04);background:#fff; }
  .tourcard .cover { width:116px;height:112px;border-radius:12px;object-fit:cover; }
  .tourcard .body { padding:3px 2px 3px 0;gap:5px; }
  .tourcard h3 { font-size:13px;line-height:1.3;font-weight:750; }
  .tourcard .meta { font-size:11px; }
  .tourcard .price { font-size:17px;color:var(--ink); }
  .tcard { background:#fff;border-radius:18px;overflow:hidden;border:1px solid #EFEBE3;box-shadow:0 5px 20px rgba(15,59,52,.05); }
  .tcard .tphoto img { object-fit:cover; }
  .tcard .tbody { padding:12px; }
  .tcard .tprice { font-size:18px; }
  .card,.tripcard { border-radius:19px; border-color:#ECE9E1;box-shadow:0 5px 20px rgba(15,59,52,.04); }
  .banner { border-radius:18px 27px 18px 18px;min-height:108px; }
  .btn { border-radius:13px;min-height:46px;font-weight:700; }
  .btn.primary { background:linear-gradient(120deg,#D99A45,#D18A30);color:white;border-color:#D99A45; }
  .btn.dark { background:#073D33;color:white;border-color:#073D33; }
  .tabbar { left:0;right:0;bottom:0;border-top:1px solid #EEEAE2;background:rgba(255,255,255,.97);box-shadow:0 -8px 28px rgba(15,59,52,.055);padding:8px 8px calc(9px + env(safe-area-inset-bottom,0px));backdrop-filter:blur(16px); }
  .tabbar a { font-size:10px;gap:4px;min-width:0; }
  .tabbar a svg { width:22px;height:22px; }
  .tabbar a.on { color:#D28C2F; }
  .tabbar a[href='/feed'] { color:#D28C2F; }
  .tourhero,.tourtop { margin-inline:-13px;border-radius:0 0 26px 26px;overflow:hidden; }
  .tourhero .gallery img,.tourtop .gallery img { height:min(43vh,370px);aspect-ratio:auto;object-fit:cover; }
  .tourhero .roundbtn { background:rgba(255,255,255,.94);box-shadow:0 3px 12px rgba(0,0,0,.1); }
  .sheet { margin-top:-26px;border-radius:27px 27px 0 0;position:relative;background:#FCFBF6; }
  .sheet h1 { font-size:25px;line-height:1.13;letter-spacing:-.04em; }
  .facts { gap:6px;border-color:#E9E6DE; }
  .facts b { font-size:14px; }
  .guidebox { border-radius:16px; }
  .thumbrow button { border-radius:11px; }
  .bookbar { background:rgba(255,255,255,.98);border-top:1px solid #EEEAE2;box-shadow:0 -6px 20px rgba(15,59,52,.045); }
  .bookbar .btn { background:#D99A45;color:white; }
  .tag { border-radius:999px; }
  input,select,textarea { border-radius:12px; }
  .reels,.feed { background:#101C1A; }
  .reelhead { color:#fff; }
  .reel { background:#101C1A; }
  .reel video,.reelframe video { object-fit:cover; }
  .reelsheetbox { border-radius:24px 24px 0 0; }
}
@media (max-width:370px) {
  .destcard { flex-basis:104px;max-width:104px; }
  .tourcard { grid-template-columns:96px minmax(0,1fr);gap:9px; }
  .tourcard .cover { width:96px;height:102px; }
  .hero h1 { font-size:27px; }
}

/* ================================================================
   TOODA v58 — approved light mobile experience, October 2026
   Mobile-only layout; business.tooda.app and desktop are untouched.
   ================================================================ */
@media (max-width: 999px) {
 :root { --bg:#FCFBF6; --surface:#fff; --soft:#F6F1E8; --search:#F6F3ED; --green:#0F3B34; --gold:#D99A45; --ink:#112E29; --radius:20px; }
 body:not(.reelmode) { background:var(--bg); padding-inline:14px; }
 .wrap { gap:19px; }
 .topbar { position:relative; display:grid; grid-template-columns:1fr auto 1fr; min-height:76px; align-items:center; padding-top:calc(7px + env(safe-area-inset-top,0px)); }
 .brand { grid-column:2; display:flex; flex-direction:column; justify-content:center; gap:0; align-items:center; justify-self:center; }
 .brand .emb { height:24px; width:auto; object-fit:contain; }
 .brand .wm { height:19px; width:auto; max-width:115px; object-fit:contain; }
 .topbar .tb-side.start { grid-column:1; grid-row:1; }
 .topbar .tb-side.end { grid-column:3; grid-row:1; justify-self:end; }
 .topbar-explore { display:grid; place-items:center; width:38px; height:38px; border-radius:50%; background:#fff; border:1px solid #EDE8DC; color:var(--green); }
 .topbar-explore svg { width:19px; height:19px; }
 .langsel { background:transparent; border:none; font-size:12px; padding-inline:2px; }
 .tooda-mobile-hero { display:block; position:relative; height:305px; overflow:hidden; border-radius:27px 27px 42px 27px; isolation:isolate; background:#173e39; margin-top:0; }
 .tooda-mobile-hero img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
 .tooda-mobile-hero:after { content:''; position:absolute; inset:0; z-index:0; background:linear-gradient(180deg,transparent 15%,rgba(6,36,32,.17) 36%,rgba(6,35,31,.81) 100%); }
 .tooda-mobile-hero-content { position:absolute; z-index:1; bottom:26px; left:22px; right:20px; color:white; }
 .tooda-mobile-hero-content h1 { color:white; font-size:clamp(26px,8vw,37px); font-weight:800; letter-spacing:-.045em; line-height:1.08; max-width:280px; margin:8px 0; }
 .tooda-mobile-hero-content p { margin:0; font-size:13px; color:#fff; opacity:.93; }
 .tooda-hero-eyebrow { font-size:10px; font-weight:800; letter-spacing:.15em; color:#FFE3A5; }
 .tooda-mobile-hero ~ .searchbox { position:relative; z-index:2; margin:-43px 13px 0; border-radius:22px; min-height:55px; box-shadow:0 9px 24px rgba(18,43,34,.13); border:1px solid #fff; background:#fff; }
 .tooda-mobile-hero ~ .searchbox input { min-height:52px; }
 .tooda-quick { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; margin:2px 0 1px; }
 .tooda-quick a { display:flex; flex-direction:column; align-items:center; gap:8px; text-decoration:none; color:var(--green); font-size:11px; font-weight:700; }
 .tooda-quick a > svg { width:55px; height:55px; padding:15px; background:#fff; border:1px solid #EEE9DF; border-radius:19px; stroke-width:1.7; box-shadow:0 3px 12px rgba(17,46,41,.04); }
 .wrap .sechead h2,.wrap > .stack > h2 { font-size:19px; font-weight:800; letter-spacing:-.035em; }
 .destcards { gap:11px; margin-inline:-14px; padding-inline:14px; }
 .destcard { flex-basis:42%; max-width:190px; aspect-ratio: .85; border-radius:19px 19px 27px 19px; }
 .destcard:after { background:linear-gradient(180deg,transparent 40%,rgba(9,33,29,.75)); }
 .destcard b { font-size:16px; }
 .destcard span { font-size:11px; }
 .chips { gap:8px; }
 .chip { border-radius:999px; }
 .tourcard { border:1px solid #EEE8DC; border-radius:20px; padding:10px; gap:12px; box-shadow:0 4px 20px rgba(21,44,35,.04); }
 .tourcard .cover { width:116px; height:113px; border-radius:14px; }
 .tourcard h3 { font-weight:800; }
 .tabbar { background:rgba(255,255,255,.97); border-top:1px solid #F0EBE2; backdrop-filter:blur(16px); }
 .tabbar a { font-size:10px; min-width:0; }
 .tabbar a.on { color:#CE8B2C; }
 .tabbar a.on svg { stroke:#CE8B2C; }
 .btn.primary { background:var(--gold); border-color:var(--gold); color:#fff; border-radius:14px; font-weight:700; }
 .catfilters { border-radius:20px; }
 .catmain .tourcard { margin-bottom:4px; }
 .catgroup { background:#fff; border-radius:16px; }
 .card,.tile,.depcard { border-radius:20px; }
}
@media (max-width: 999px) and (min-width: 650px) {
 .tooda-mobile-hero { height:350px; }
 .tooda-mobile-hero-content h1 { max-width:440px; }
}


/* Claude v58: поправки к мобильному блоку ChatGPT */
@media (max-width: 999px) {
  .topbar .brand { position:static; transform:none; left:auto; top:auto; grid-column:2; grid-row:1; }
  .topbar .brand .wm { height:17px; max-width:110px; }
  .tooda-quick a > svg, .topbar-explore svg { fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
}


/* ==========================================================
   TOODA / LIGHT EDITORIAL MOBILE DESIGN — v60
   Final, scoped overrides for the tourist application only.
   ========================================================== */
@media (max-width: 999px) {
  :root { --bg:#FCFBF6; --surface:#FFFFFF; --ink:#15352E; --green:#0F3B34; --gold:#D99A45; --line:#ECE8DE; --soft:#F5F0E7; --radius:22px; }
  html { background:#FCFBF6; }
  body:not(.reelmode) { padding-inline:16px; background:#FCFBF6; color:#15352E; }
  .wrap { max-width:600px; gap:23px; }
  .topbar { min-height:73px; margin-bottom:-4px; padding-top:calc(7px + env(safe-area-inset-top,0px)); }
  .brand { gap:1px; }
  .brand .emb { height:25px; max-width:43px; }
  .brand .wm { height:19px; max-width:115px; }
  .topbar-explore { border:1px solid #E8E3D8; box-shadow:0 3px 13px #18382c0a; }
  .tooda-mobile-hero { height:330px; border-radius:27px 27px 48px 27px; overflow:hidden; box-shadow:0 15px 28px #14372e18; }
  .tooda-mobile-hero img { width:100%;height:100%;object-fit:cover; }
  .tooda-mobile-hero::after { background:linear-gradient(180deg,rgba(10,30,26,.03) 10%,rgba(9,28,24,.12) 40%,rgba(7,30,25,.82) 100%); }
  .tooda-mobile-hero-content { left:24px; right:24px; bottom:37px; }
  .tooda-mobile-hero-content h1 { font-size:clamp(30px,8.6vw,40px);line-height:1.07;letter-spacing:-.055em;max-width:310px; }
  .tooda-mobile-hero-content p { font-size:13px; }
  .tooda-mobile-hero ~ .searchbox { margin:-47px 13px 0; border:1px solid #F4F0E7; border-radius:19px; min-height:57px; box-shadow:0 12px 27px #13392b20; }
  .tooda-mobile-hero ~ .searchbox input { min-height:55px; }
  .tooda-quick { gap:9px; margin-top:2px; }
  .tooda-quick a { font-size:11px;gap:7px; }
  .tooda-quick a > svg { width:100%;height:60px;max-width:76px;padding:18px;border-radius:19px;stroke:#18463B;background:white;box-shadow:0 3px 13px #143a2d0b; }
  .wrap .sechead h2,.wrap > .stack > h2 { font-size:21px; font-weight:800; letter-spacing:-.045em; }
  .destcards { display:flex; gap:13px; overflow-x:auto; scroll-snap-type:x mandatory; margin-inline:-16px; padding:3px 16px 8px; }
  .destcard { position:relative; display:block; flex:0 0 min(46%,194px);max-width:none; height:207px;min-height:0;aspect-ratio:auto;overflow:hidden;border:0;border-radius:21px 21px 32px 21px;scroll-snap-align:start;background:#1b4139;padding:0;box-shadow:0 8px 18px #13382e17; }
  .destcard img { display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit;filter:saturate(.92); }
  .destcard::after { content:"";display:block;position:absolute;inset:0;background:linear-gradient(180deg,transparent 28%,rgba(5,27,23,.76) 100%);pointer-events:none; }
  .destcard > div { position:absolute;z-index:2;bottom:0;left:0;right:0;padding:15px 13px 16px;text-align:left;color:#fff;background:transparent;text-shadow:none; }
  .destcard b { display:block;color:white;font-size:16px;font-weight:800;line-height:1.15; }
  .destcard span { display:block;color:#fff;font-size:10px;opacity:.88;margin-top:5px;line-height:1.3; }
  .destcard[aria-pressed=true] { outline:2px solid #D99A45;outline-offset:2px; }
  .destcard[aria-pressed=true] img { outline:0; }
  .chips { margin-right:-16px;padding:2px 16px 5px 0;gap:9px; }
  .chip { min-height:38px;border-radius:999px;padding:8px 15px;font-size:12px;white-space:nowrap; }
  .chip[aria-pressed=true] { background:#0F3B34;color:white;border-color:#0F3B34; }
  .triplist { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px; }
  .triplist .tcard,.triplist .tourcard { min-width:0;width:100%; }
  .tcard { border:1px solid #EEE9E0;border-radius:20px 20px 26px 20px;box-shadow:0 7px 20px #14372e0c;overflow:hidden; }
  .tcard .tphoto { position:relative;aspect-ratio:1.15;overflow:hidden; }
  .tcard .tphoto img { width:100%;height:100%;object-fit:cover; }
  .tcard .tbody { padding:12px 12px 14px;gap:5px; }
  .tcard h3 { font-size:13px;line-height:1.28;font-weight:800;letter-spacing:-.02em; }
  .tcard .tguide { font-size:10px; }
  .tcard .tprice { font-size:16px;white-space:nowrap; }
  .tcard .tfoot { gap:5px; }
  .tcard .trate { font-size:11px; }
  .tourcard { grid-template-columns:100px minmax(0,1fr);gap:10px; }
  .tourcard .cover { width:100px;height:112px; }
  .tooda-video-feature { position:relative;display:block;min-height:208px;overflow:hidden;border-radius:23px 23px 38px 23px;color:#fff;text-decoration:none;background:#0F3B34;box-shadow:0 12px 28px #16372c17; }
  .tooda-video-feature > img { position:absolute;inset:0;width:100%;height:100%;object-fit:cover; }
  .tooda-video-feature-shade { position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,32,26,.9),rgba(8,32,26,.08)); }
  .tooda-video-feature-kicker { position:absolute;top:19px;left:20px;font-size:10px;letter-spacing:.18em;font-weight:800;color:#F4D3A0; }
  .tooda-video-feature-copy { position:absolute;left:20px;bottom:23px;right:82px; }
  .tooda-video-feature-copy h2 { color:#fff;font-size:23px;line-height:1.12;letter-spacing:-.045em;margin:0 0 7px; }
  .tooda-video-feature-copy span { font-size:12px;color:#F2F0EA; }
  .tooda-video-feature-play { position:absolute;right:20px;bottom:26px;width:45px;height:45px;display:grid;place-items:center;border-radius:50%;background:#D99A45;color:white; }
  .tooda-video-feature-play svg { width:22px;height:22px; }
  .tabbar { padding:8px 7px calc(9px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid #EEEAE2;box-shadow:0 -7px 24px #17382e0c; }
  .tabbar a { font-size:10px;gap:4px; }
  .tabbar a[href="/feed"] svg { width:26px;height:26px;background:#F7EAD7;color:#B77A2E;border-radius:9px;padding:4px; }
  .tabbar a.on { color:#C58836; }
  .tourhero { border-radius:0 0 32px 32px; }
  .tourhero .gallery img { height:min(45vh,410px);object-fit:cover; }
  .sheet { background:#FCFBF6;border-radius:29px 29px 0 0; }
  .sheet h1 { font-size:26px;letter-spacing:-.045em; }
  .card,.depcard,.tripcard { border-color:#ECE7DC;border-radius:21px;box-shadow:0 5px 17px #153c300a; }
  .btn.primary,.bookbar .btn { background:#D99A45;color:#fff;border-color:#D99A45;border-radius:15px;min-height:47px; }
  input,select,textarea { max-width:100%; }
  .reels,.feed { background:#122720; }
}
@media (max-width:375px) {
  .tooda-mobile-hero { height:294px; }
  .destcard { flex-basis:47%;height:184px; }
  .triplist { gap:10px; }
  .tcard .tbody { padding:10px; }
  .tcard .tprice { font-size:14px; }
}

/* TOODA v61 — mobile catalog filters, consistent light design */
@media(max-width:999px){
  .tooda-filter-toggle{display:inline-flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:46px;border-radius:15px;border:1px solid #e9e2d7;background:#fff;color:#153b33;font-weight:700;box-shadow:0 4px 13px #0f3b3409}
  .tooda-filter-toggle svg{width:18px;height:18px}
  .catlayout{display:flex;flex-direction:column;gap:14px}
  .catfilters{display:none;padding:18px 15px;background:#fff;border:1px solid #ebe6dd;border-radius:23px;box-shadow:0 12px 30px #123b3010}
  .catfilters.tooda-filters-open{display:flex}
  .tooda-filter-title h2{font-size:20px;font-weight:800}
  .tooda-filter-label{display:block;font-size:12px;color:#55675e;margin-bottom:8px}
  .catfilters .chips{display:flex;flex-wrap:wrap;overflow:visible;padding:2px 0 4px}
  .catfilters .chip{white-space:normal;line-height:1.2;min-height:36px}
  .tooda-filter-apply{width:100%;margin-top:8px;min-height:48px}
  .catmain{min-width:0}
  .catmain .triplist{width:100%}
  .catmain .triplist .tcard{max-width:100%}
  .tabbar a:focus-visible,.tooda-filter-toggle:focus-visible,.chip:focus-visible{outline:3px solid #D99A45;outline-offset:3px}
}
@media(min-width:1000px){.tooda-filter-toggle,.tooda-filter-title,.tooda-filter-apply{display:none!important}}

/* Functional contrast fix: keep the existing gold background. */
.btn.primary, .bookbar .btn { color:#142D29; }

.connection-note { padding:12px;background:#F8EBD6;color:#142D29;text-align:center;position:relative;z-index:101; }


/* Иконка «play» в блоке видео: обводка, без заливки */
@media (max-width: 999px) {
  .tooda-video-feature-play svg { fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
}
/* Нижняя панель брони прячется, когда на экране уже есть форма заявки (одна кнопка вместо двух). */
.bookbar { transition: transform .2s ease, opacity .2s ease; }
.bookbar.bookbar-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
/* Каталог: блок «Когда едем?» — даты с/по, дни, люди. */
.tooda-when { display: grid; gap: 10px; padding: 14px; background: #fff; border: 1px solid #DCE2D9; border-radius: 16px; box-shadow: 0 4px 14px #173C340A; }
.tooda-when-title { font-size: 15px; color: var(--green, #0F3B34); }
.tooda-when-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tw-field { display: grid; gap: 4px; min-width: 0; font-size: 12px; font-weight: 600; color: #5C7164; }
.tw-field input, .tw-field select { width: 100%; min-width: 0; height: 46px; min-height: 46px; padding: 0 10px; font-size: 15px; font-weight: 600; color: var(--green, #0F3B34); background: #F6F7F2; border: 1px solid #E1E6DD; border-radius: 12px; box-sizing: border-box; }
.tw-field input:focus, .tw-field select:focus { outline: 2px solid #D99A45; outline-offset: 1px; background: #fff; }
.tw-clear { justify-self: start; background: none; border: 0; padding: 4px 0; min-height: 32px; color: #9D6A28; font-weight: 600; font-size: 13px; text-decoration: underline; cursor: pointer; }
