/* 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 Business ===== */
.bizmark { font: 700 11px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); background: var(--gold-soft); padding: 3px 8px; border-radius: 999px; }
.bizhero { background: var(--green); color: #fff; border-radius: var(--radius); padding: 28px 20px; display: flex; flex-direction: column; gap: 12px; }
.bizhero h1 { font-size: 26px; line-height: 1.2; margin: 0; color: #fff; }
.bizhero p { margin: 0; color: #cfe0db; }
.bizroles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.bizrole { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.bizrole b { font-size: 17px; }
.bizrole .btn { align-self: flex-start; margin-top: 4px; }
.bizsteps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.price-old { text-decoration: line-through; color: var(--muted); font-size: 13px; }
.price-ag { font-weight: 700; color: var(--green); }
.offer { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.offer img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex: none; }
.offer .grow { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 3px; }
.offer.off { opacity: .6; }
.subrows { display: flex; flex-direction: column; gap: 8px; }
.subrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--soft); font-size: 14px; }
.subrow .btn { min-height: 34px; padding: 0 12px; font-size: 13px; }
.switch { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; }
.switch input { width: 20px; min-height: 20px; height: 20px; }
.tourlink { white-space: nowrap; }
@media (max-width: 420px) { .brand .emb { height: 28px; } .brand .wm { height: 16px; } .bizmark { font-size: 10px; padding: 2px 6px; } }
/* Конструктор тура */
.titem { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: var(--soft); }
.titem-ctl { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; align-items: end; }
.titem-ctl input, .titem-ctl select { min-height: 40px; padding: 6px 10px; }
.titem-ctl .btn { min-height: 40px; }
.sumcard { border: 2px solid var(--green); }
/* Публичная страница тура */
.thero { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; background: var(--soft); }
.thero img { width: 100%; height: 100%; object-fit: cover; }
.thero .shade { position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,20,16,.75)); display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; gap: 6px; color: #fff; }
.thero h1 { color: #fff; margin: 0; font-size: 24px; line-height: 1.2; }
.tfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.tfacts div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.tfacts b { font-size: 17px; }
.tday { display: flex; flex-direction: column; gap: 8px; }
.tday h3 { margin: 0; }
.tstop { display: flex; gap: 10px; align-items: flex-start; }
.tstop .ic { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--lake-soft); color: var(--lake); display: grid; place-items: center; }
.tstop .ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tstop img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; margin-left: auto; }
.tmap { height: 260px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #EDEBE3; z-index: 0; }
.agencycard { display: flex; gap: 12px; align-items: center; }
.agencycard img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.printonly { display: none; }
@media print {
  .tabbar, .topbar, .noprint { display: none !important; }
  body { background: #fff; padding: 0 !important; }
  .wrap { max-width: none; gap: 14px; }
  .card { box-shadow: none; break-inside: avoid; }
  .thero { aspect-ratio: auto; height: 260px; }
  .printonly { display: block; }
  .tmap { display: none; }
}
.card.off { opacity: .65; }
/* ===== Компьютерная версия Tooda Business ===== */
.editor { display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 1000px) {
  .wrap { max-width: 1180px; }
  body.has-tabbar { padding-bottom: 48px; padding-top: 60px; }
  .tabbar { top: 0; bottom: auto; justify-content: center; gap: 6px; padding: 8px 16px; border-top: none; border-bottom: 1px solid var(--line); }
  .tabbar a { flex: none; max-width: none; flex-direction: row; gap: 8px; padding: 8px 18px; border-radius: 999px; font-size: 14px; }
  .tabbar a.on { background: var(--soft); }
  .editor { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
  .editor > .ed-basics, .editor > .ed-days, .editor > .ed-desc { grid-column: 1; }
  .editor > .ed-side { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; }
  .catlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .bizroles { grid-template-columns: repeat(3, 1fr); }
  .thero { aspect-ratio: auto; height: 420px; }
}

/* Заполняемость: тёмная полоска, заполняется жёлтым */
.seatbar { position: relative; height: 10px; border-radius: 5px; background: #1A2B28 !important; margin: 8px 0 4px; overflow: hidden; }
.seatbar .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: #D99A45; transition: width .4s; }
.seatbar .minmark { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.85); border-radius: 1px; }
.dephead .seatbar { width: 100%; max-width: 360px; }
.fillwrap { display: flex; flex-direction: column; gap: 0; max-width: 360px; width: 100%; }

/* Новый логотип (горы и солнце + 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; } }


/* ============================================================
   TOODA BUSINESS | SaaS desktop design system v12
   Presentation-only overrides. All pages; mobile unchanged.
   ============================================================ */
@media screen and (min-width:1000px) {
  :root {
    --bg:#F7F8F6;
    --surface:#FFFFFF;
    --soft:#F2F5F2;
    --ink:#142D29;
    --green:#0F3B34;
    --muted:#687873;
    --line:#E4EAE6;
    --gold:#D99A45;
    --gold-2:#C88B38;
    --lake:#17665B;
    --lake-soft:#EAF4F0;
    --radius:12px;
    --shadow:0 1px 3px rgba(18,48,40,.035),0 5px 16px rgba(18,48,40,.035);
  }
  html {scrollbar-gutter:stable;}
  body {font-size:14px;line-height:1.55;padding:0 28px 60px;background:var(--bg);}
  body.has-tabbar {padding-top:78px;padding-bottom:55px;}
  .wrap {width:100%;max-width:1320px;gap:22px;}
  h1,h2,h3 {letter-spacing:-.035em;text-wrap:pretty;}
  h1 {font-size:clamp(28px,2.65vw,38px);line-height:1.17;font-weight:800;}
  h2 {font-size:21px;font-weight:750;}
  h3 {font-size:15px;font-weight:750;}
  .lede {max-width:75ch;line-height:1.7;}
  .small {font-size:12.5px;}
  .muted {color:var(--muted);}
  .topbar {
    min-height:72px;
    padding:14px 0 12px;
    border-bottom:1px solid var(--line);
    margin-bottom:4px;
  }
  .brand img {max-height:35px;height:auto;}
  .toplinks {gap:24px;font-size:13px;font-weight:650;}
  .toplinks a {color:#34514A;transition:color .15s;}
  .toplinks a:hover {color:var(--gold-2);}
  .langsel {border-radius:9px;box-shadow:none;min-height:36px;}
  .tabbar {
    position:fixed;top:0;bottom:auto;left:0;right:0;
    min-height:58px;justify-content:center;gap:7px;
    padding:7px 18px;
    background:rgba(255,255,255,.97);
    border-bottom:1px solid var(--line);border-top:0;
    box-shadow:0 3px 14px rgba(15,59,52,.045);
    z-index:100;
  }
  .tabbar a {
    flex:none;max-width:none;flex-direction:row;gap:8px;
    padding:9px 15px;border-radius:9px;font-size:13px;
    font-weight:650;transition:background .15s;
  }
  .tabbar a.on {background:#EAF2EE;color:var(--green);}
  .card {
    border:1px solid var(--line);border-radius:14px;
    padding:22px;box-shadow:var(--shadow);
    background:#fff;
  }
  .stack {gap:15px;}
  .row {gap:15px;}
  .sechead {gap:20px;}
  .btn {min-height:42px;border-radius:9px;padding:0 16px;font-size:13px;font-weight:650;box-shadow:none;transition:background .15s,border-color .15s,transform .15s;}
  .btn:hover:not(:disabled) {transform:translateY(-1px);}
  .btn.primary {background:var(--gold);border-color:var(--gold);color:#1E332B;}
  .btn.primary:hover {background:#E5A957;border-color:#E5A957;}
  .btn.dark {background:var(--green);}
  .chip {min-height:35px;padding:0 13px;font-size:12.5px;border-radius:8px;font-weight:600;}
  .chips {gap:7px;}
  .tag,.badge {border-radius:7px;}
  input,select,textarea {
    min-height:43px;border-radius:9px;border-color:#DCE5DF;
    font-size:13px;background:#fff;
  }
  input:focus,select:focus,textarea:focus {outline:2px solid rgba(217,154,69,.24);outline-offset:1px;border-color:#D99A45;}
  label {font-size:12.5px;gap:6px;}
  .tabs {border-color:var(--line);gap:7px;}
  .tabs button,.tabs a {font-size:13px;}
  .note,.empty {border-radius:10px;}
  .subrows {gap:8px;}
  .subrow {border-radius:9px;padding:12px 15px;background:#FAFBF9;border:1px solid var(--line);gap:15px;}
  .catlist {grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;}
  .offer {border-radius:12px;}
  .thumbs {gap:8px;}
  .thumb {border-radius:9px;}
  .grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;}
  .tourcard {grid-template-columns:116px minmax(0,1fr);gap:13px;border-radius:12px;padding:10px;}
  .tourcard .cover {width:116px;height:104px;border-radius:8px;}
  .tourcard h3 {font-size:13.5px;}
  .tourcard .meta {font-size:11.5px;}
  .editor {grid-template-columns:minmax(0,1fr) 360px;gap:18px;}
  .editor > .ed-side {top:76px;}
  .tmap {border-radius:10px;}
  .tfacts {gap:12px;}
  .tfacts div {border-radius:10px;background:#F8FAF8;padding:14px;}
  .portalbar,.portalsheet {border-color:var(--line);}
  .bizhero {
    min-height:285px;padding:42px 50px;border-radius:17px;
    background:#0F3B34;color:white;position:relative;
    overflow:hidden;isolation:isolate;gap:15px;
    justify-content:center;
  }
  .bizhero::before {
    content:"";position:absolute;inset:0;z-index:-1;
    background:radial-gradient(circle at 93% 14%,rgba(217,154,69,.15),transparent 36%),linear-gradient(130deg,#0F3B34,#16483F);
  }
  .bizhero h1 {font-size:clamp(30px,3vw,44px);line-height:1.15;max-width:900px;color:#fff;}
  .bizhero p {max-width:800px;font-size:15px;line-height:1.7;color:#E1EDE7;}
  .bizmark {border:1px solid rgba(217,154,69,.45);background:rgba(217,154,69,.13);color:#F2C687;border-radius:7px;}
  .bizroles {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
  .bizrole {
    min-height:238px;border-radius:13px;gap:16px;
    padding:25px;background:#fff;box-shadow:var(--shadow);
    transition:transform .18s,box-shadow .18s;
  }
  .bizrole:hover {transform:translateY(-3px);box-shadow:0 12px 30px rgba(15,59,52,.09);}
  .bizrole > b {font-size:20px;line-height:1.25;letter-spacing:-.035em;}
  .bizrole .small {line-height:1.75;font-size:13px;flex:1;}
  .bizrole .btn {align-self:flex-start;min-height:43px;}
  .bizsteps {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding-left:0;list-style:none;counter-reset:steps;}
  .bizsteps li {counter-increment:steps;position:relative;padding:52px 6px 5px 0;font-size:13px;line-height:1.7;color:#526660;}
  .bizsteps li::before {
    content:counter(steps,decimal-leading-zero);
    position:absolute;left:0;top:0;display:grid;place-items:center;
    width:38px;height:38px;border-radius:10px;background:#E9F2ED;
    color:#0F3B34;font-weight:800;font-size:13px;
  }
}
@media screen and (min-width:1000px) and (max-width:1199px) {
  .grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  .wrap {max-width:1100px;}
  .bizhero {padding:35px;}
  .bizrole {padding:19px;}
  .bizsteps {gap:10px;}
}

/* Поправка: плашка BUSINESS в светлой шапке — тёмное золото, чтобы читалась */
@media screen and (min-width:1000px) {
  .topbar .bizmark { color: #8A5A1C; background: rgba(217,154,69,.16); border-color: rgba(217,154,69,.5); }
}

/* ============================================================
   Кабинет как SaaS (body.saas): меню слева, обзор, таблицы.
   Телефон: разделы — прокручиваемая строка, таблицы — карточки.
   ============================================================ */
.saas-shell { display: flex; flex-direction: column; gap: 14px; }
.sbar { display: block; }
.sbrand, .sfoot { display: none; }
.snav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.snav::-webkit-scrollbar { display: none; }
.snav button { flex: none; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 8px 13px; font: 600 13px var(--body); cursor: pointer; }
.snav button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.snav button.on { background: var(--green); border-color: var(--green); color: #fff; }
.smain { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.stop { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stitle { font-size: 24px; margin: 0; }
.sme { display: none; }
.spanel { gap: 16px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.toolbar-r { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.msel { min-height: 40px; border-radius: 10px; padding: 0 10px; width: auto; }
.tsearch { min-height: 40px; border-radius: 10px; min-width: 200px; }
.fchips { flex-wrap: wrap; }
.fchips .cnt { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 99px; background: rgba(15,59,52,.08); font-size: 11px; text-align: center; }
.fchips .chip[aria-pressed="true"] .cnt { background: rgba(255,255,255,.25); }
.kpis4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.kpi-l { font-size: 12.5px; color: var(--muted); }
.kpi-v { font: 800 22px var(--display, Manrope); color: var(--ink); letter-spacing: -.02em; }
.kpi-d { font-size: 11.5px; }
.kpi-d.up { color: #1F7A4D; }
.kpi-d.down { color: #B4452F; }
.kpi.k-gold { background: #FBF4EA; border-color: #F1E1C8; }
.kpi.k-blue { background: #EEF4F8; border-color: #DCE7EF; }
.kpi.k-rose { background: #FBF0EE; border-color: #F2DEDA; }
.kpi.k-green { background: #EDF5F0; border-color: #D9EADF; }
.ovgrid, .angrid { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.orow { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 12px; background: transparent; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.orow:hover { background: var(--soft, #F3F5F2); }
.orow img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.orow-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.orow-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orow > .small, .orow > .status { display: none; }
.orow-s { white-space: nowrap; }
.orow .chev { font-size: 22px; color: var(--muted); }
.qa { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: 600 14px var(--body); cursor: pointer; text-align: left; }
.qa:hover { border-color: var(--gold); }
.qa svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--green); }
.linkbtn { border: 0; background: none; color: var(--lake, #17665B); font: 600 13px var(--body); cursor: pointer; padding: 0; }
/* Таблицы: на телефоне — карточки */
.tcard { padding: 0; overflow: hidden; }
.dtable { width: 100%; border-collapse: collapse; }
.dtable thead { display: none; }
.dtable tr.trow { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.dtable tbody tr:not(.trow):not(.drow) { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 14px; border-bottom: 1px solid var(--line); }
.dtable td { display: flex; flex-direction: column; gap: 2px; font-size: 14px; min-width: 0; }
.dtable td[data-l]::before { content: attr(data-l); font-size: 11px; color: var(--muted); }
.dtable td.tcell, .dtable td.fillcell { grid-column: 1 / -1; }
.dtable td.tthumb { flex-direction: row; align-items: center; gap: 10px; }
.dtable td.tthumb::before { display: none; }
.dtable td.tthumb img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.dtable td.tthumb div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dtable td.chevcell { display: none; }
.dtable td.acts { grid-column: 1 / -1; flex-direction: row; gap: 8px; }
.dtable tr.drow > td { display: block; padding: 0 14px 14px; border-bottom: 1px solid var(--line); background: #FAFBF9; }
.dtable tr.drow[hidden] { display: none; }
.dtable .mono { font-variant-numeric: tabular-nums; }
.bdetail { padding-top: 12px; }
/* Графики */
.lchart { width: 100%; height: auto; display: block; }
.barrow { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.barname { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bartrack { height: 8px; border-radius: 4px; background: #EEF2EF; overflow: hidden; }
.barfill { display: block; height: 100%; border-radius: 4px; background: #17665B; }
.barval { white-space: nowrap; }

@media screen and (min-width: 1000px) {
  body.saas { padding: 0 !important; background: #F6F7F4 !important; }
  body.saas .tabbar { display: none !important; }
  body.saas #app { max-width: none; width: 100%; margin: 0; padding: 0; gap: 0; }
  body.saas #app > .topbar { display: none; }
  body.saas #app > .stack { gap: 0; }
  .saas-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; gap: 0; }
  .sbar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 22px 14px 18px; background: #fff; border-right: 1px solid #E4EAE6; }
  .sbrand { display: flex; align-items: center; gap: 6px; padding: 0 8px 6px; text-decoration: none; }
  .sbrand img:first-child { height: 27px; width: auto; }
  .sbrand img:nth-child(2) { height: 20px; width: auto; margin-top: 4px; }
  .sbrand .bizmark { font-size: 9.5px; padding: 2px 6px; margin-left: 2px; color: #8A5A1C; background: rgba(217,154,69,.16); }
  .snav { flex-direction: column; gap: 3px; overflow: visible; }
  .snav button { width: 100%; border: 0; border-radius: 10px; padding: 11px 12px; background: transparent; color: #4E605A; font-size: 14px; gap: 12px; }
  .snav button:hover { background: #F3F6F3; color: var(--green); }
  .snav button.on { background: #F1E6D4; color: #0F3B34; }
  .snav button.on svg { color: #B97A2C; }
  .sfoot { display: flex; flex-direction: column; gap: 4px; margin-top: auto; padding: 12px 10px 0; border-top: 1px solid #E4EAE6; }
  .sfoot .small.muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .smain { padding: 22px 36px 60px; gap: 18px; }
  .stop { min-height: 56px; padding-bottom: 14px; border-bottom: 1px solid #E4EAE6; }
  .stitle { font-size: 28px; }
  .sme { display: flex; align-items: center; gap: 10px; }
  .sme > div { display: flex; flex-direction: column; gap: 1px; }
  .sme b { font-size: 14px; }
  .sava { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--green); color: #fff; font: 700 14px var(--body); flex: none; }
  .kpis4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .kpi { padding: 18px; }
  .kpi-v { font-size: 28px; }
  .ovgrid { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); }
  .angrid { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); }
  .orow { grid-template-columns: 52px minmax(0, 1fr) 90px 130px 90px; padding: 10px 8px; }
  .orow > .small, .orow > .status { display: inline-flex; }
  .orow > .status { justify-self: start; }
  .orow-s { justify-self: end; }
  .pop .orow, .card .orow:has(.chev) { grid-template-columns: 52px minmax(0, 1fr) auto; }
  /* Таблицы как таблицы */
  .dtable thead { display: table-header-group; }
  .dtable th { text-align: left; font: 600 12px var(--body); color: var(--muted); padding: 12px 14px; border-bottom: 1px solid #E4EAE6; background: #FAFBF9; white-space: nowrap; }
  .dtable tr.trow, .dtable tbody tr:not(.trow):not(.drow) { display: table-row; padding: 0; }
  .dtable td, .dtable tr.trow td { display: table-cell; padding: 12px 14px; border-bottom: 1px solid #EEF2EF; vertical-align: middle; font-size: 13.5px; }
  .dtable td[data-l]::before { display: none; }
  .dtable td.tcell b, .dtable td.tcell .small { display: block; }
  .dtable td.tthumb { display: table-cell; }
  .dtable td.tthumb > img { float: left; margin-right: 12px; width: 46px; height: 46px; }
  .dtable td.tthumb > div { display: flex; }
  .dtable td.fillcell { min-width: 180px; }
  .dtable td.fillcell .fillwrap { max-width: 200px; }
  .dtable td.chevcell { display: table-cell; color: var(--muted); font-size: 20px; width: 24px; }
  .dtable td.acts { display: table-cell; white-space: nowrap; text-align: right; }
  .dtable td.acts .btn { min-height: 34px; padding: 0 12px; font-size: 12.5px; margin-left: 6px; }
  .dtable td.num { white-space: nowrap; }
  .dtable tr.trow:hover td { background: #FAFBF9; }
  .dtable tr.trow.open td { background: #F7F3EB; }
  .dtable tr.drow > td { padding: 4px 18px 18px; background: #FBFAF6; }
  .tcard { border-radius: 14px; }
}
@media screen and (min-width: 1000px) {
  .dtable tr.drow > td { display: table-cell; }
  .dtable td.nowrap { white-space: nowrap; }
  .dtable td.mono { width: 90px; color: var(--muted); }
  .toolbar-r { flex-wrap: nowrap; }
  .bdetail .subrows { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
}
@media screen and (min-width: 1000px) {
  body.saas .editor > .ed-side { top: 18px; max-height: calc(100vh - 36px); }
}
.dtable td .status { align-self: flex-start; }
.spick { display: flex; flex-direction: column; gap: 4px; }
.spick .msel { width: 100%; }
.oicon { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; background: #EDF5F0; color: var(--green); }
.oicon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.snav .badge { margin-left: auto; }
@media screen and (max-width: 999px) { .spick { flex-direction: row; align-items: center; gap: 8px; margin-top: 8px; } .spick .msel { flex: 1; } }
.orow .status { white-space: nowrap; }
.sside { display: none; }
@media screen and (min-width: 1000px) {
  .sside { display: flex; flex-direction: column; gap: 8px; }
  .sside .qa { font-size: 13px; padding: 9px 10px; }
  body.saas .portal, body.saas .portalsheet { display: none; }
}

/* Конструктор по шагам */
.stepper { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; overflow-x: auto; scrollbar-width: none; }
.stepper::-webkit-scrollbar { display: none; }
.stepper li { flex: 1; min-width: 150px; }
.stepper button { width: 100%; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; text-align: left; color: var(--ink); font: inherit; }
.stepn { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #EEF2EF; font: 700 13px var(--body); flex: none; color: var(--muted); }
.stept { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.stept b { font-size: 13.5px; }
.stepper li.on button { border-color: var(--gold); background: #FBF4EA; }
.stepper li.on .stepn { background: var(--green); color: #fff; }
.stepper li.done .stepn { background: #D9EADF; color: var(--green); }
.ed-nav { display: flex; justify-content: space-between; gap: 10px; }
.ed-nav .btn[hidden] { display: none; }
.ed-nav .btn.primary { margin-left: auto; }
.editor[data-step="0"] > .ed-side, .editor[data-step="2"] > .ed-side { display: none; }
@media screen and (min-width: 1000px) {
  .editor > .ed-final-note, .editor > .ed-nav { grid-column: 1; }
  .editor[data-step="0"] > .ed-side, .editor[data-step="2"] > .ed-side { display: flex; }
  .editor > .ed-side { grid-row: 1 / span 5; }
}

/* Tooda Business v16: safe focus and layout fixes */
:root{--tooda-biz-focus:#D99A45}
:where(button,a,input,select,textarea,[role="button"]):focus-visible{outline:3px solid var(--tooda-biz-focus);outline-offset:2px}
:where(input,select,textarea){max-width:100%}
@media(max-width:999px){body{overflow-x:clip} table{max-width:100%} .wrap{max-width:100%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Account actions must remain available below the desktop breakpoint. */
@media (max-width:999px) {
  .sfoot { display:flex; flex-wrap:wrap; gap:10px; align-items:center; padding:8px 0; font-size:12px; }
  .sfoot .muted { overflow-wrap:anywhere; }
}

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

/* Adapt internal booking rows to their card, not only the viewport. */
.ovgrid > .card { container-type:inline-size; }
@container (max-width:560px) {
  .orow { grid-template-columns:48px minmax(0,1fr) auto; }
  .orow-t { grid-column:2;grid-row:1; }
  .orow > img, .orow > .oicon { grid-column:1;grid-row:1 / span 3; }
  .orow > .small { grid-column:2;grid-row:2; }
  .orow > .status { grid-column:2;grid-row:3; }
  .orow-s { grid-column:3;grid-row:1 / span 3; }
}
@media(max-width:999px) { .sside { display:flex;flex-wrap:wrap;gap:8px;padding:8px 0; } }
.stepper { scrollbar-width:thin;padding-bottom:8px; }
.stepper::-webkit-scrollbar { display:block;height:6px; }
.stepper::-webkit-scrollbar-thumb { background:#8A5A1C;border-radius:6px; }
.stepper button { min-height:80px; }
.biz-install { padding:10px 16px;max-width:760px;margin:0 auto; }

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