/* Turoro: чистая структура как у travel-приложений (белый, синий акцент, оранжевые цены) + лента в стиле Reels. */
:root {
  --bg: #FFFFFF;
  --soft: #F4F4F1;
  --surface: #FFFFFF;
  --ink: #17171A;
  --muted: #66666E;
  --line: #E6E6E1;
  --brand: #FFD21F;
  --brand-2: #F2C200;
  --brand-ink: #17171A;
  --brand-soft: #FFF6CF;
  --brand-text: #7A5800;
  --price: #17171A;
  --lake: var(--brand);
  --lake-soft: var(--brand-soft);
  --accent: var(--brand);
  --accent-ink: #17171A;
  --danger: #C62828;
  --ok: #1E7B45; --ok-bg: #E3F4EA;
  --easy: #1E7B45; --easy-bg: #E3F4EA;
  --mid: #8A5300; --mid-bg: #FFF1D9;
  --hard: #A3261B; --hard-bg: #FDE6E3;
  --star: #F5A300;
  --display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --body: "Golos Text", "Segoe UI", system-ui, sans-serif;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(23, 23, 26, .06), 0 4px 16px rgba(23, 23, 26, .07);
  --shadow-lg: 0 10px 30px rgba(23, 23, 26, .12);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; padding-block: 0 40px; -webkit-tap-highlight-color: transparent; }
body.has-tabbar { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
body.has-bookbar { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
body.feed-open { overflow: hidden; }
a { color: var(--brand-text); }
img { max-width: 100%; display: block; }
.wrap { max-width: 860px; margin: 0 auto; padding-inline: 16px; padding-top: 8px; display: flex; flex-direction: column; gap: 24px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-weight: 800; font-size: clamp(26px, 6vw, 38px); line-height: 1.12; }
h2 { font-weight: 800; font-size: 20px; }
h3 { font-weight: 700; font-size: 16px; line-height: 1.3; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.lede { margin: 6px 0 0; max-width: 56ch; }
.sechead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sechead a, .sechead button { white-space: nowrap; font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 3px; text-underline-offset: 4px; background: none; border: none; cursor: pointer; padding: 0; }

/* Верхняя панель */
.topbar { padding-block: calc(12px + env(safe-area-inset-top, 0px)) 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: flex-end; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -0.045em; text-decoration: none; color: var(--ink); }
.brand img { height: 40px; width: auto; }
.toplinks { display: flex; gap: 16px; font-size: 15px; font-weight: 500; }
.toplinks a { text-decoration: none; color: inherit; }

/* Шапка главной: синяя полоса + карточка поиска */
.head { position: relative; overflow: hidden; color: #fff; padding-bottom: 84px; background: #1F5FAE center 40% / cover no-repeat; }
.head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,24,58,.62) 0%, rgba(6,24,58,.38) 45%, rgba(6,24,58,.05) 80%); }
.head .topbar, .head .brand, .head .toplinks a { color: #fff; }
.head h1 { text-shadow: 0 2px 4px rgba(0,0,0,.35), 0 4px 18px rgba(0,0,0,.3); }
.head-inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; padding-inline: 16px; display: flex; flex-direction: column; gap: 22px; min-height: 240px; }
.head h1 { font-size: clamp(26px, 6.5vw, 36px); }
.head .lede { color: #fff; font-weight: 500; text-shadow: 0 1px 3px rgba(0,0,0,.55), 0 2px 14px rgba(0,0,0,.4); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search { position: relative; z-index: 2; max-width: 828px; margin: -60px auto 0; margin-inline: max(16px, calc((100% - 828px) / 2)); background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--soft); }
.seg button { min-height: 46px; border: none; border-radius: 11px; background: transparent; color: var(--muted); font: 600 15px var(--body); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.seg button small { font-weight: 400; font-size: 12px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.sfield { display: flex; align-items: center; gap: 12px; padding: 4px 4px 4px 12px; border-radius: 14px; border: 1px solid var(--line); }
.sfield svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sfield label { flex: 1; gap: 0; font-size: 12px; color: var(--muted); font-weight: 500; }
.sfield select { border: none; background: transparent; min-height: 30px; padding: 0; font: 600 16px var(--body); color: var(--ink); }
.btn.big { min-height: 54px; font-size: 17px; border-radius: 14px; width: 100%; }

/* Иконки категорий */
.cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 2px; min-width: 0; font-size: 12px; border: none; background: none; color: var(--ink); font: 500 12.5px/1.2 var(--body); text-align: center; cursor: pointer; border-radius: 14px; }
.cat i { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; font-size: 26px; font-style: normal; background: var(--surface); box-shadow: var(--shadow); transition: transform .15s; }
.cat[aria-pressed="true"] i { background: var(--brand); box-shadow: 0 6px 16px rgba(242, 194, 0, .45); }
.cat[aria-pressed="true"] { font-weight: 700; }
.cat:active i { transform: scale(.94); }

/* Лента-превью (как Reels) */
.reelrow { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.reelrow::-webkit-scrollbar { display: none; }
.reel { position: relative; flex: 0 0 clamp(128px, 36vw, 170px); aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; border: none; padding: 0; cursor: pointer; scroll-snap-align: start; background: #1b2238; text-align: left; color: #fff; }
.reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, transparent 25%, transparent 50%, rgba(0,0,0,.8) 100%); }
.reel .play { position: absolute; top: 10px; left: 10px; z-index: 1; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; }
.reel .play svg { width: 12px; height: 12px; fill: #fff; margin-left: 2px; }
.reel-text { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.reel-text b { font: 800 15px/1.2 var(--display); }
.reel-text small { font-size: 12px; opacity: .9; }
.reel-text .pp { align-self: flex-start; margin-top: 4px; font: 700 12px var(--body); color: #17171A; background: var(--brand); padding: 2px 8px; border-radius: 8px; }

/* Полноэкранная лента */
.feed { position: fixed; inset: 0; z-index: 100; background: #000; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.feed::-webkit-scrollbar { display: none; }
.slide { position: relative; height: 100vh; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; color: #fff; max-width: 520px; margin: 0 auto; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 40%; }
.slide.active img.on { animation: kb 9s ease-out forwards; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.12); } }
.slide img:not(.on) { opacity: 0; }
.slide img { transition: opacity .35s; }
.slide::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, transparent 18%, transparent 45%, rgba(0,0,0,.85) 100%); }
.bars { position: absolute; z-index: 2; top: calc(10px + env(safe-area-inset-top, 0px)); left: 12px; right: 12px; display: flex; gap: 4px; }
.bars span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); }
.bars span.on { background: #fff; }
.tapzone { position: absolute; z-index: 1; top: 0; bottom: 35%; width: 40%; border: none; background: none; cursor: pointer; }
.tapzone.prev { left: 0; } .tapzone.next { right: 0; }
.slide-info { position: absolute; z-index: 2; left: 16px; right: 76px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; }
.slide-info .who { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.slide-info .who img { position: static; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; animation: none; opacity: 1; }
.slide-info h2 { font-size: 24px; line-height: 1.15; }
.slide-info p { margin: 0; font-size: 14px; opacity: .9; }
.slide-info .meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.slide-info .meta span { padding: 3px 9px; border-radius: 8px; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.slide-info .meta .pp { background: var(--brand); color: #17171A; font-weight: 700; }
.slide-info .btns { display: flex; gap: 8px; margin-top: 4px; }
.slide-info .btn { min-height: 44px; }
.slide-info .btn.glass { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.side { position: absolute; z-index: 2; right: 10px; bottom: calc(36px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 18px; align-items: center; }
.side a, .side button { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; text-decoration: none; background: none; border: none; font: 600 11px var(--body); cursor: pointer; }
.side i { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; }
.side svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feed-close { position: fixed; z-index: 101; top: calc(22px + env(safe-area-inset-top, 0px)); right: max(12px, calc(50% - 248px)); width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(0,0,0,.35); color: #fff; font-size: 22px; cursor: pointer; display: grid; place-items: center; }
.feed-hint { position: fixed; z-index: 101; left: 50%; transform: translateX(-50%); bottom: calc(8px + env(safe-area-inset-bottom, 0px)); color: rgba(255,255,255,.7); font-size: 12px; pointer-events: none; animation: fadeout 3s 2s forwards; }
@keyframes fadeout { to { opacity: 0; } }

/* Кнопки, фильтры, карточки */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 38px; padding: 0 14px; border-radius: 19px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 14px var(--body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.tourcard { border: 1px solid var(--line); display: grid; grid-template-columns: 124px minmax(0, 1fr); background: var(--surface); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); min-width: 0; box-shadow: var(--shadow); }
.coverwrap { position: relative; }
.tourcard .cover { width: 100%; height: 100%; min-height: 150px; object-fit: cover; background: var(--brand-soft); }
.covertags { position: absolute; left: 8px; top: 8px; display: flex; gap: 6px; }
.tourcard .body { padding: 12px 12px 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tourcard h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rate { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.rate b { background: #17171A; color: #FFD21F; font: 700 12px var(--body); padding: 2px 6px; border-radius: 6px 6px 6px 2px; }
.cardfoot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; padding-top: 6px; }
.price { font: 800 19px var(--display); color: var(--price); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price small { font: 400 12px var(--body); color: var(--muted); }
@media (min-width: 700px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .tourcard { grid-template-columns: 1fr; }
  .tourcard .cover { aspect-ratio: 16 / 10; height: auto; min-height: 0; }
}
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.tag { display: inline-block; font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-text); }
.tag.light { background: rgba(255,255,255,.94); color: #0F1729; }
.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); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px; 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(--brand); color: #17171A; border-color: var(--brand); font-weight: 700; }
.btn.primary:active { background: var(--brand-2); }
.btn.primary:hover { background: var(--brand-2); }
.btn.orange { background: var(--brand); color: #17171A; border-color: var(--brand); font-weight: 700; }
.btn.dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.danger { color: var(--danger); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.install { align-self: flex-start; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; min-width: 0; }
input, select, textarea { min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); padding: 10px 14px; font: 400 16px var(--body); width: 100%; }
textarea { min-height: 110px; resize: vertical; }
.err { color: var(--danger); font-size: 13px; font-weight: 400; }
.note { padding: 14px 16px; border-radius: 14px; background: var(--brand-soft); font-size: 15px; }
.note.ok { background: var(--ok-bg); color: var(--ok); }
.note.bad { background: var(--hard-bg); color: var(--hard); }
.empty { color: var(--muted); padding: 22px; background: var(--soft); border-radius: var(--radius); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; grid-column: 1 / -1; box-shadow: var(--shadow); }
.empty b { color: var(--ink); font: 700 17px var(--display); }

/* Почему Turoro */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.trust div { background: var(--surface); border-radius: 14px; padding: 12px 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.3; }
.trust i { font-style: normal; font-size: 22px; }
.trust b { font: 700 14px var(--display); }
@media (max-width: 420px) { .trust { grid-template-columns: 1fr; } .trust div { flex-direction: row; align-items: center; } }

/* Промо-карточки */
.promos { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px) { .promos { grid-template-columns: 1fr 1fr; } }
.guidecta { position: relative; display: block; border-radius: 18px; overflow: hidden; color: #fff; text-decoration: none; min-height: 200px; background: #1b2238; }
.guidecta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.guidecta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,15,30,.85), rgba(10,15,30,.2)); }
.guidecta > div { position: relative; z-index: 1; padding: 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; max-width: 420px; }
.guidecta b { font: 800 21px/1.2 var(--display); }
.esim { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 18px; text-decoration: none; color: var(--ink); background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); }
.esim > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.esim b { font: 800 18px/1.2 var(--display); }
.esim span:not(.btn) { color: var(--muted); font-size: 14px; }
.esim-ic { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); display: grid; place-items: center; font-size: 24px; }

/* Страница тура */
.tourtop { position: relative; background: #1b2238; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 100%; width: 100%; height: min(62vh, 520px); object-fit: cover; scroll-snap-align: start; background: #1b2238; }
.tourtop .over { position: absolute; left: 0; right: 0; top: 0; padding: calc(12px + env(safe-area-inset-top, 0px)) 12px 0; display: flex; justify-content: space-between; pointer-events: none; }
.roundbtn { pointer-events: auto; width: 42px; height: 42px; border-radius: 50%; border: none; background: rgba(255,255,255,.92); color: #0F1729; display: grid; place-items: center; text-decoration: none; font-size: 22px; cursor: pointer; box-shadow: var(--shadow); }
.roundbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.counter { position: absolute; right: 12px; bottom: 36px; padding: 4px 10px; border-radius: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; font-variant-numeric: tabular-nums; }
.watch { position: absolute; left: 12px; bottom: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; border: none; background: rgba(0,0,0,.55); color: #fff; font: 600 13px var(--body); cursor: pointer; }
.watch svg { width: 12px; height: 12px; fill: #fff; }
.sheet { position: relative; z-index: 1; margin-top: -24px; border-radius: 24px 24px 0 0; background: var(--bg); padding-top: 20px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.facts div { background: var(--surface); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; box-shadow: var(--shadow); min-width: 0; }
.facts span { font-size: 12px; color: var(--muted); }
.facts b { font-family: var(--display); overflow-wrap: anywhere; }
.bookbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15,23,41,.08); padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
.bookbar > div { max-width: 828px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bookbar .btn { min-width: 160px; }
.guidebox { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--brand-soft); flex: 0 0 auto; }
.avatar.lg { width: 88px; height: 88px; }
.verified { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-text); }
.review { display: flex; flex-direction: column; gap: 6px; }
.reply { padding: 8px 10px; border-radius: 10px; background: var(--soft); font-size: 14px; }
.pre { white-space: pre-line; }
.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(--brand-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(--brand); color: #17171A; }
.status { font-size: 12px; padding: 3px 9px; border-radius: 8px; }
.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(--brand-soft); color: var(--brand-text); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.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; }
footer { color: var(--muted); font-size: 13px; }

/* Планнер гида */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kpis div { background: var(--surface); border-radius: 14px; padding: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpis span { font-size: 12px; color: var(--muted); }
.kpis b { font: 800 18px var(--display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.depcard { padding: 0; overflow: hidden; }
.dephead { width: 100%; display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: none; background: none; color: inherit; font: inherit; cursor: pointer; }
.depcard > .stack { padding: 0 14px 16px; }
.depdate { flex: 0 0 54px; height: 58px; border-radius: 14px; background: var(--brand); color: #17171A; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.depdate b { font: 800 22px var(--display); }
.depdate span { font-size: 12px; font-weight: 600; text-transform: lowercase; }
.seatbar { position: relative; height: 8px; border-radius: 4px; background: var(--line); margin: 8px 0 4px; overflow: visible; }
.seatbar .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.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 12px; border-radius: 12px; background: var(--soft); }
.person select { width: auto; min-height: 40px; padding: 6px 10px; font-size: 14px; }
.srcT { color: var(--brand-text); 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; } .kpis { grid-template-columns: 1fr; } }
details summary { cursor: pointer; font-weight: 600; }
.datepick { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.datepick button { flex: 0 0 auto; min-width: 128px; 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(--ink); box-shadow: 0 0 0 2px var(--ink) inset; background: var(--brand-soft); }
.datepick button:disabled { opacity: .5; cursor: default; }

/* Программа по дням */
.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; gap: 10px; }
.itin-vday { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 16px; }
.itin-vday summary { display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; list-style: none; font-family: var(--display); }
.itin-vday summary::-webkit-details-marker { display: none; }
.itin-num { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #17171A; display: grid; place-items: center; font-weight: 800; }
.itin-list { list-style: none; margin: 0 0 12px; padding: 0 0 0 15px; border-left: 2px dashed var(--line); display: flex; flex-direction: column; gap: 12px; }
.itin-list li { display: flex; gap: 12px; margin-left: -15px; }
.itin-list p { margin: 4px 0 0; font-size: 15px; }
.itin-ic { flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); }
.itin-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.itin-ic.t-food { background: var(--mid-bg); color: var(--mid); }
.itin-ic.t-move { background: var(--soft); color: var(--muted); }
.itin-ic.t-activity { background: var(--ok-bg); color: var(--ok); }
.itin-ic.t-stay { background: var(--ink); color: var(--bg); }

/* Нижнее меню приложения */
.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); box-shadow: 0 -4px 16px rgba(15,23,41,.05); }
.tabbar a { flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 12px; color: var(--muted); text-decoration: none; font-size: 11.5px; font-weight: 500; }
.tabbar a svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a { position: relative; }
.tabbar a.on { color: var(--ink); font-weight: 700; }
.tabbar a.on svg { stroke-width: 2.3; background: var(--brand); border-radius: 10px; padding: 3px; width: 40px; height: 30px; margin-block: -3px; color: #17171A; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .slide.active img.on { animation: none; } .feed-hint { animation: none; } }
.cardfoot { flex-wrap: wrap; }
.cardfoot > span:first-child { white-space: nowrap; }
.reel-text .pp { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* Куда поехать — фото-карточки */
.dests { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.dests::-webkit-scrollbar { display: none; }
.dest { position: relative; flex: 0 0 min(62%, 230px); aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; border: none; padding: 0; cursor: pointer; scroll-snap-align: start; background: var(--brand-soft); text-align: left; }
.dest img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.dest:hover img { transform: scale(1.04); }
.dest::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.78)); }
.dest-text { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; color: #fff; display: flex; flex-direction: column; }
.dest-text b { font: 800 19px/1.2 var(--display); }
.dest-text small { font-size: 13px; opacity: .88; }
/* Как это работает */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.steps div { display: flex; gap: 12px; align-items: center; background: var(--surface); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.steps b { flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #17171A; display: grid; place-items: center; font: 800 16px var(--display); }
.steps span { font-size: 15px; }
