/* ===================== Safar — дизайн-система =====================
   Палитра Шёлкового пути: лазурит, золото, бирюза изразцов, терракота.
   Иконки — SVG-спрайт (js/icons.js), класс .i. Все цвета — через токены ниже. */
:root {
  --font: "Montserrat", system-ui, sans-serif;
  /* бренд */
  --lapis: #0b1f3a;
  --lapis-2: #143766;
  --turq: #1fa7bd;
  --turq-2: #4fd1e0;
  --gold: #e6b450;
  --gold-2: #f7d98b;
  --terra: #c8553d;
  --green: #1f9d5c;
  --red: #e5484d;

  /* категории (градиенты плиток, маркеры) */
  --c-c: #1c3f75; --g-c: linear-gradient(135deg, #24508f, #0b1f3a);
  --c-h: #1898ad; --g-h: linear-gradient(135deg, #2bb8cc, #136a82);
  --c-a: #3554a5; --g-a: linear-gradient(135deg, #4a6cc4, #1a2f63);
  --c-s: #c98f22; --g-s: linear-gradient(135deg, #f0c25e, #b0741a);
  --c-f: #c8553d; --g-f: linear-gradient(135deg, #e0705a, #8e2c1c);
  --c-u: #2e9e6a; --g-u: linear-gradient(135deg, #3cbf83, #1d6e49);
  --g-gold: linear-gradient(135deg, #f7d98b, #e6b450);

  /* поверхности и текст — светлая тема */
  --bg: #f7f2e9;
  --bg-2: #efe7d8;
  --card: #ffffff;
  --card-2: #fbf8f2;
  --line: #e7dccb;
  --line-2: #d8cab2;
  --text: #18202e;
  --muted: #5f6b7d;
  --faint: #6b7587;   /* приглушённый, но читаемый: контраст 4.6 на белом */
  --accent: var(--lapis);
  --accent-text: #ffffff;
  --gold-ink: #8a6210;   /* контраст 5.5 на белом */
  --green-ink: #177a47;
  --glass: rgba(255, 255, 255, .94); --glass-ink: #1c2433;   /* кнопки поверх фото */
  --field: #fff; --field-ink: #1c2433;                      /* главное поле поиска */
  --turq-ink: #11798b;
  --tint-gold: #fff3d6;  --tint-gold-ink: #8a6210;
  --tint-turq: #dff5f8;  --tint-turq-ink: #126f7e;
  --tint-green: rgba(31, 157, 92, .12);
  --tint-red: rgba(200, 85, 61, .12);
  --star-off: #d9ceb8;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 20px rgba(11, 31, 58, .07);
  --shadow-lg: 0 2px 6px rgba(16, 24, 40, .06), 0 18px 44px rgba(11, 31, 58, .16);
  --ring: 0 0 0 3px rgba(31, 167, 189, .35);

  --r-sm: 10px;
  --rad: 14px;
  --radius: 18px;
  --r-lg: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ornament: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23e6b450' stroke-opacity='.35' stroke-width='1.2'%3E%3Cpath d='M28 4l7 17 17 7-17 7-7 17-7-17-17-7 17-7z'/%3E%3Cpath d='M28 14l4 10 10 4-10 4-4 10-4-10-10-4 10-4z'/%3E%3C/g%3E%3C/svg%3E");
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0a1424;
  --bg-2: #0f1d33;
  --card: #13233d;
  --card-2: #172a47;
  --line: #22385a;
  --line-2: #2e4a74;
  --text: #e8eef8;
  --muted: #9aaac3;
  --faint: #8899b5;   /* контраст ~5 на тёмной карточке */
  --accent: var(--gold);
  --accent-text: #0b1f3a;
  --gold-ink: #f0c661;
  --green-ink: #3fcf86;
  --glass: rgba(19, 35, 61, .92); --glass-ink: #e8eef8;
  --field: #13233d; --field-ink: #e8eef8;
  --turq-ink: #5ad6e4;
  --tint-gold: #3a2f12;  --tint-gold-ink: #f7d98b;
  --tint-turq: #0f3a44;  --tint-turq-ink: #6fdce8;
  --tint-green: rgba(46, 190, 120, .16);
  --tint-red: rgba(230, 110, 85, .16);
  --star-off: #3a4d6e;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 20px 48px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1424;
    --bg-2: #0f1d33;
    --card: #13233d;
    --card-2: #172a47;
    --line: #22385a;
    --line-2: #2e4a74;
    --text: #e8eef8;
    --muted: #9aaac3;
    --faint: #8899b5;   /* контраст ~5 на тёмной карточке */
    --accent: var(--gold);
    --accent-text: #0b1f3a;
    --gold-ink: #f0c661;
    --green-ink: #3fcf86;
    --glass: rgba(19, 35, 61, .92); --glass-ink: #e8eef8;
    --field: #13233d; --field-ink: #e8eef8;
    --turq-ink: #5ad6e4;
    --tint-gold: #3a2f12;  --tint-gold-ink: #f7d98b;
    --tint-turq: #0f3a44;  --tint-turq-ink: #6fdce8;
    --tint-green: rgba(46, 190, 120, .16);
    --tint-red: rgba(230, 110, 85, .16);
    --star-off: #3a4d6e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 20px 48px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

/* ================= ОСНОВА ================= */
* { box-sizing: border-box; }
html, body { margin: 0; }
/* Ползунки прокрутки скрыты везде: страница, списки, окна. Прокрутка пальцем, колесом и клавишами работает как обычно */
*, *::before, *::after { scrollbar-width: none; }
::-webkit-scrollbar { display: none; width: 0; height: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 0;
}
a { color: inherit; }
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; color: inherit; }
input, select, textarea { font-family: inherit; font-size: calc(15px * var(--fz, 1)); color: var(--text); background: var(--card); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--turq) !important; box-shadow: var(--ring); }
:focus-visible { outline: 2px solid var(--turq); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font); font-weight: 700; letter-spacing: -.015em; }
img { max-width: 100%; }
.muted { color: var(--muted); }
::selection { background: rgba(230, 180, 80, .35); }

/* Иконки: линия и заливка задаются здесь, а не в спрайте */
.i {
  width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
  overflow: visible;
}
.i.fill { fill: currentColor; }

/* Раскрывающиеся блоки: свой шеврон вместо системного треугольника */
details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .5em; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after {
  content: ""; flex: none; width: 16px; height: 16px; margin-left: auto; background: currentColor; opacity: .55;
  -webkit-mask: var(--chevron) center / contain no-repeat; mask: var(--chevron) center / contain no-repeat;
  transition: transform .2s var(--ease);
}
details[open] > summary::after { transform: rotate(180deg); }

/* ================= ЗАСТАВКА =================
   Только transform и opacity: такие анимации ведёт видеокарта, и они не подтормаживают,
   пока браузер загружает данные. Выход — растворение с лёгким приближением (класс .out). */
#splash {
  --sky1: #040b18; --sky2: #0b1f3a; --sky3: #1f3f73; --glow: #f2c062; --line: #f7d98b;
  position: fixed; inset: 0; z-index: 1000; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5vh;
  padding: 16px; color: #fff;
  background: radial-gradient(ellipse 130% 85% at 50% 105%, var(--sky3), var(--sky2) 55%, var(--sky1));
  transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
  will-change: opacity, transform;
}
#splash.out { opacity: 0; transform: scale(1.06); pointer-events: none; }
#splash[data-phase="dawn"] { --sky1: #17183f; --sky2: #5b3f7e; --sky3: #f29b6c; --glow: #ffd28a; --line: #ffe6c2; }
#splash[data-phase="day"]  { --sky1: #08355f; --sky2: #12709a; --sky3: #5cc6d6; --glow: #ffd766; --line: #fff2c2; }
#splash[data-phase="dusk"] { --sky1: #151640; --sky2: #6e2a57; --sky3: #f08b45; --glow: #ffc35a; --line: #ffe0b0; }

.sp-stars {
  position: absolute; inset: 0; opacity: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 8%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 52% 14%, #fff, transparent), radial-gradient(1px 1px at 71% 6%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 86% 22%, #fff, transparent), radial-gradient(1px 1px at 40% 4%, #fff, transparent),
    radial-gradient(1px 1px at 6% 40%, #fff, transparent), radial-gradient(1px 1px at 94% 44%, #fff, transparent);
}
#splash[data-phase="night"] .sp-stars { animation: spFade .8s forwards; }
.sp-glow {
  position: absolute; left: 50%; bottom: -30vh; width: 120vmax; height: 60vh; margin-left: -60vmax;
  background: radial-gradient(ellipse at 50% 100%, var(--glow), transparent 65%); opacity: 0;
  animation: spGlow 1.4s .1s ease-out forwards;
}
.sp-pattern {
  position: absolute; inset: -8%; background: var(--ornament); opacity: 0;
  animation: spPattern 1.4s cubic-bezier(.2, .7, .2, 1) forwards;
}
#spMap {
  position: relative; width: min(94vw, 100vh, 820px); height: auto; overflow: hidden; margin: -4vh 0 -6vh;
  /* мягкий край: карта растворяется к краям (маска статичная, на плавность не влияет) */
  -webkit-mask-image: radial-gradient(50% 50% at 50% 50%, #000 70%, transparent 100%);
  mask-image: radial-gradient(50% 50% at 50% 50%, #000 70%, transparent 100%);
  animation: spMapIn .9s cubic-bezier(.2, .8, .2, 1) both;
}
.sp-country { fill: rgba(255, 255, 255, .07); stroke: var(--line); stroke-width: 1.8px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sp-route-bg { fill: none; stroke: rgba(255, 255, 255, .25); stroke-width: 2.5px; stroke-dasharray: 2 10; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.sp-route {
  fill: none; stroke: var(--glow); stroke-width: 4px; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: spDraw 1s .3s cubic-bezier(.45, 0, .2, 1) forwards;
}
.sp-city .sp-dot, .sp-city .sp-ring { transform-box: fill-box; transform-origin: center; }
.sp-city .sp-dot { fill: var(--glow); stroke: #fff; stroke-width: 2; transform: scale(0); animation: spPop .4s calc(.35s + var(--k) * .22s) cubic-bezier(.3, 1.9, .5, 1) forwards; }
.sp-city .sp-ring { fill: none; stroke: var(--glow); stroke-width: 3; opacity: 0; animation: spRing .9s calc(.35s + var(--k) * .22s) ease-out; }
.sp-city text {
  font: 700 30px var(--font); fill: #fff; opacity: 0;
  paint-order: stroke; stroke: rgba(0, 0, 0, .35); stroke-width: 6px;
  animation: spFade .3s calc(.42s + var(--k) * .22s) forwards;
}

.sp-brand { position: relative; text-align: center; }
.sp-logo {
  margin: 0; display: flex; justify-content: center;
  font: 800 clamp(34px, min(9vw, 11vh), 92px) "Cinzel", serif; letter-spacing: .1em; line-height: 1.15;
}
.sp-logo span { display: inline-block; overflow: hidden; padding: 0 .01em; }
.sp-logo b {
  display: inline-block; transform: translateY(110%);
  background: linear-gradient(180deg, #fff1c9, #f2c062 55%, #b5791d);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: spRise .55s calc(.25s + var(--i) * 55ms) cubic-bezier(.2, .9, .25, 1) forwards;
}
.sp-tag {
  margin: 4px 0 0; text-transform: uppercase; font-size: calc(13px * var(--fz, 1)); font-weight: 600; letter-spacing: .3em; opacity: 0;
  color: rgba(255, 255, 255, .88); animation: spUp .6s .65s cubic-bezier(.2, .8, .2, 1) forwards;
}
.sp-dest { margin: 10px 0 0; min-height: 1.4em; font-size: calc(15px * var(--fz, 1)); font-weight: 700; color: var(--glow); }
.sp-dest span { opacity: 0; display: inline-block; animation: spUp .35s calc(.4s + var(--k) * .22s) forwards; }

/* Вертикальный экран (телефон): места хватает, карта не должна заходить под логотип */
@media (max-aspect-ratio: 1/1) { #spMap { margin: 0 0 1vh; width: min(100vw, 70vh, 820px); } }

/* Повторный вход: только логотип */
#splash.short #spMap, #splash.short .sp-dest { display: none; }
#splash.short .sp-logo b { animation-delay: calc(var(--i) * 35ms); animation-duration: .4s; }
#splash.short .sp-tag { animation-delay: .15s; animation-duration: .4s; }

@keyframes spFade { to { opacity: 1; } }
@keyframes spGlow { to { opacity: .55; } }
@keyframes spPattern { from { opacity: 0; transform: scale(1.12) rotate(3deg); } to { opacity: .5; transform: none; } }
@keyframes spMapIn { from { opacity: 0; transform: scale(.92) translateY(12px); } }
@keyframes spDraw { to { stroke-dashoffset: 0; } }
@keyframes spPop { to { transform: scale(1); } }
@keyframes spRing { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(4.5); } }
@keyframes spRise { to { transform: none; } }
@keyframes spUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fadeup { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ================= КАРКАС ================= */
#app { background: var(--bg); min-height: 100vh; }   /* непрозрачный фон — заставка не просвечивает в арке */

.topbar {
  position: sticky; top: 0; z-index: 600;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 22px;
  background: rgba(11, 31, 58, .9); color: #fff;
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgba(230, 180, 80, .22);
  box-shadow: 0 6px 22px rgba(4, 11, 24, .22);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: var(--g-gold); color: var(--lapis);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 4px 12px rgba(230, 180, 80, .35);
}
.brand-mark .i { width: 22px; height: 22px; stroke-width: 1.5; transition: transform .6s var(--ease); }
.brand:hover .brand-mark .i { transform: rotate(45deg); }
.brand-word { font-family: "Cinzel", serif; font-weight: 800; font-size: calc(21px * var(--fz, 1)); letter-spacing: .08em; color: var(--gold-2); }
.tabs { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.tabs a {
  color: #c3d1e6; text-decoration: none; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: calc(14px * var(--fz, 1)); transition: background .2s, color .2s;
}
.tabs a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.tabs a.active { background: var(--gold); color: var(--lapis); }
.tools { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.pill-select {
  background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px; padding: 7px 10px; font-size: calc(13px * var(--fz, 1)); font-weight: 600;
}
.pill-select:hover { background: rgba(255, 255, 255, .14); }
.pill-select option { color: var(--text); background: var(--card); }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08); color: #fff; position: relative;
  display: inline-grid; place-items: center; padding: 0; transition: background .2s, transform .15s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .16); }
.icon-btn:active { transform: scale(.94); }
.icon-btn .i { width: 19px; height: 19px; }
#themeBtn { color: var(--gold-2); }
.fav-btn { color: #ff9b9b; }
.fav-btn .i { fill: currentColor; fill-opacity: .2; }
.fav-btn b { position: absolute; top: -4px; right: -4px; background: var(--terra); color: #fff; font-size: calc(10px * var(--fz, 1)); min-width: 18px; height: 18px; border-radius: 9px; line-height: 18px; padding: 0 4px; border: 2px solid var(--lapis); box-sizing: content-box; }
.fav-btn b:empty { display: none; }

main { max-width: 1240px; margin: 0 auto; padding: 20px 16px 90px; }
.tab { display: none; }
.tab.active { display: block; animation: fadeup .35s ease; }

.bottom-nav { display: none; }

/* ================= КНОПКИ, ЗНАЧКИ, ЧИПЫ ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; text-decoration: none;
  background: var(--accent); color: var(--accent-text); border: 1px solid transparent; border-radius: 12px;
  padding: 9px 15px; font-weight: 700; font-size: calc(14px * var(--fz, 1)); line-height: 1.2;
  transition: background .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.btn:hover { box-shadow: 0 4px 14px rgba(11, 31, 58, .18); }
.btn:active { transform: translateY(1px); }
.btn .i { width: 1.15em; height: 1.15em; }
.btn.gold-btn { background: var(--g-gold); color: var(--lapis); }
.btn.gold-btn:hover { box-shadow: 0 6px 18px rgba(230, 180, 80, .4); }
.btn.ghost { background: var(--card); color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.btn.ghost .i { color: var(--turq-ink); }
.btn.ghost.on { color: var(--red); border-color: rgba(229, 72, 77, .35); background: rgba(229, 72, 77, .06); }
.btn.ghost.on .i { color: var(--red); fill: currentColor; }
.btn.small { padding: 6px 11px; font-size: calc(12.5px * var(--fz, 1)); border-radius: 9px; gap: .4em; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: calc(11px * var(--fz, 1)); padding: 2px 9px; border-radius: 999px;
  background: var(--tint-gold); color: var(--tint-gold-ink); margin-left: 6px; vertical-align: middle; font-weight: 700;
  font-family: var(--font); letter-spacing: 0;
}
.badge .i { width: 12px; height: 12px; stroke-width: 2.2; }
.badge.type { background: var(--tint-turq); color: var(--tint-turq-ink); }
.badge.owner { background: var(--tint-green); color: var(--green); }
.badge.pro { background: var(--g-gold); color: var(--lapis); }
.gold { color: var(--gold-ink); }
.stars { display: inline-flex; gap: 1px; vertical-align: -.15em; color: var(--gold); }
.stars .i { width: 1em; height: 1em; stroke-width: 1.6; }
.stars .i:not(.fill) { color: var(--star-off); }
.rating { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.rating .gold { font-weight: 800; display: inline-flex; align-items: center; gap: 3px; }
.rating .gold .i { color: var(--gold); width: 1em; height: 1em; }
.rating.none { color: var(--faint); }
/* Разделитель « · » перед оценкой — только когда оценка есть */
.badge-sep:not(:empty)::before { content: " · "; white-space: pre; }
.rating.none .i { width: 1em; height: 1em; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: calc(14px * var(--fz, 1));
  text-decoration: none; cursor: pointer; transition: border-color .2s, background .2s;
}
.chip:hover { border-color: var(--turq); }
.chip .i { color: var(--turq-ink); }
.chip b { color: var(--turq-ink); margin-left: 2px; font-size: calc(12px * var(--fz, 1)); background: var(--tint-turq); padding: 1px 7px; border-radius: 999px; }

.hint { color: var(--muted); font-size: calc(13px * var(--fz, 1)); }
.empty { display: grid; justify-items: center; gap: 10px; text-align: center; color: var(--muted); padding: 44px 20px; }
.empty .empty-ico { width: 46px; height: 46px; stroke-width: 1.4; color: var(--faint); }
.more-wrap { text-align: center; padding: 18px; }
.skeleton { background: linear-gradient(90deg, var(--bg-2), var(--card), var(--bg-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 10px; height: 14px; margin: 8px 0; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Плитка с иконкой — общий приём для карточек, списков и меню */
.stat i, .guide-tile i, .svc-row > i, .sos-card i, .tip i, .sr-item .ic, .acc-perks .i, .col-icon, .big-ico {
  font-style: normal; display: grid; place-items: center; flex: none;
}

/* ================= ГЛАВНАЯ ================= */
.hero {
  position: relative; border-radius: var(--r-lg); overflow: visible; min-height: 400px;
  display: flex; align-items: flex-end; color: #fff;
  background: var(--lapis) center / cover no-repeat;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: linear-gradient(180deg, rgba(11, 31, 58, .1) 0%, rgba(11, 31, 58, .5) 48%, rgba(7, 18, 36, .94) 100%), var(--ornament);
}
.hero-inner { position: relative; padding: 40px 36px; width: 100%; }
.hero h1 { margin: 0 0 10px; font-size: calc(clamp(34px, 5.2vw, 60px) * min(var(--fz, 1), 1.15)); color: var(--gold-2); line-height: 1.04; text-shadow: 0 2px 18px rgba(0, 0, 0, .3); }
.hero p { margin: 0 0 24px; color: #dbe6f6; font-size: calc(17px * var(--fz, 1)); max-width: 640px; line-height: 1.5; }
.search-wrap { position: relative; max-width: 660px; }
.search-wrap .search-ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: #8a94a6; pointer-events: none; z-index: 1; }
.search-wrap input {
  width: 100%; padding: 17px 20px 17px 52px; border-radius: 16px; border: 0; font-size: calc(16px * var(--fz, 1));
  background: var(--field); color: var(--field-ink); box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
}
.search-wrap input:focus { box-shadow: 0 14px 34px rgba(0, 0, 0, .28), 0 0 0 3px rgba(230, 180, 80, .6); }
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20;
  background: var(--card); color: var(--text); border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  max-height: 420px; overflow-y: auto; padding: 6px;
}
.sr-item { display: flex; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 12px; cursor: pointer; }
.sr-item:hover, .sr-item:focus { background: var(--bg-2); outline: none; }
.sr-item .ic { width: 38px; height: 38px; border-radius: 11px; background: var(--tint-turq); color: var(--tint-turq-ink); }
.sr-item .ic .i { width: 20px; height: 20px; }
.sr-item small { display: block; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 18px 0 8px; }
.stat {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  background: var(--card); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow);
  text-decoration: none; border: 1px solid transparent; transition: transform .2s var(--ease), border-color .2s;
}
.stat:hover { transform: translateY(-2px); border-color: var(--line); }
.stat i { grid-row: span 2; width: 44px; height: 44px; border-radius: 13px; color: #fff; background: var(--g-c); }
.stat i .i { width: 22px; height: 22px; }
.stat:nth-child(2) i { background: var(--g-h); }
.stat:nth-child(3) i { background: var(--g-a); }
.stat:nth-child(4) i { background: var(--g-s); }
.stat:nth-child(5) i { background: var(--g-f); }
.stat b { font-size: calc(24px * var(--fz, 1)); font-family: var(--font); line-height: 1.1; }
.stat span { color: var(--muted); font-size: calc(13px * var(--fz, 1)); min-width: 0; hyphens: auto; overflow-wrap: break-word; }

.block { margin-top: 34px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.block-head h2 { margin: 0; font-size: calc(25px * var(--fz, 1)); display: flex; align-items: center; gap: 12px; }
.block-head h2 > .i {
  width: 36px; height: 36px; padding: 8px; border-radius: 11px; flex: none;
  background: var(--tint-gold); color: var(--gold-ink); stroke-width: 2;
}
.block-head > a { display: inline-flex; align-items: center; gap: 4px; flex: none; white-space: nowrap; color: var(--turq-ink); font-weight: 700; text-decoration: none; font-size: calc(14px * var(--fz, 1)); }
.block-head > a:hover { text-decoration: underline; }

/* Погода: цвет иконки — по типу погоды */
.wx { color: #8fa3bf; }
.wx-clear { color: #f5b829; }
.wx-night { color: #b9c6f5; }
.wx-partly { color: #f0b43c; }
.wx-fog { color: #9aa8bb; }
.wx-drizzle, .wx-rain { color: #3b8beb; }
.wx-snow { color: #6cbbe9; }
.wx-storm { color: #8b6cf0; }
.wcard .wx-cloudy, .now-weather .wx-cloudy, .wcard .wx-fog, .now-weather .wx-fog { color: #c9d6ea; }
.wcard .wx-rain, .wcard .wx-drizzle, .now-weather .wx-rain, .now-weather .wx-drizzle { color: #74b6ff; }
.wcard .wx-storm, .now-weather .wx-storm { color: #b7a2ff; }

.weather-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(138px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.wcard {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, rgba(79, 209, 224, .18), transparent 60%), linear-gradient(160deg, var(--lapis-2), var(--lapis));
  color: #fff; border-radius: var(--radius); padding: 14px 16px; cursor: pointer; box-shadow: var(--shadow);
  transition: transform .2s var(--ease);
}
.wcard:hover { transform: translateY(-2px); }
.wcard .wi .i { width: 34px; height: 34px; stroke-width: 1.6; }
.wcard b { font-size: calc(28px * var(--fz, 1)); display: block; margin-top: 4px; font-weight: 800; }
.wcard small { opacity: .75; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.two-col .block { margin-top: 34px; }
.rates-box { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.rate { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.rate b { display: block; font-size: calc(18px * var(--fz, 1)); font-variant-numeric: tabular-nums; }
.rate small { color: var(--muted); }
.up { color: var(--green); } .down { color: var(--terra); }
.rate small.up, .rate small.down { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.rate small .i { width: 14px; height: 14px; stroke-width: 2.2; }
.converter { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 10px; align-items: center; }
.converter input, .converter select { min-width: 0; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 12px; font-size: calc(18px * var(--fz, 1)); font-weight: 700; }
.conv-eq { grid-column: 1 / -1; text-align: center; color: var(--faint); }
.conv-result { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.conv-result div { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-weight: 700; font-variant-numeric: tabular-nums; }

.footer { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: calc(13px * var(--fz, 1)); text-align: center; }
.footer .btn { margin-top: 6px; }

/* ================= ФИЛЬТРЫ / СПИСКИ ================= */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; align-items: center; }
.filters input, .filters select { padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; max-width: 100%; }
.filters input { flex: 1 1 240px; }
.filters select { flex: 0 1 auto; }
.filters .btn { padding: 10px 14px; }
.count { margin: 6px 2px 14px; }
.btn.ghost.near-btn.on { background: #11798b; color: #fff; border-color: transparent; }
.btn.ghost.near-btn.on .i { color: #fff; fill: none; }

.toggle { cursor: pointer; user-select: none; position: relative; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.dot-open { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); transition: background .2s, box-shadow .2s; }
.toggle:has(input:checked) { border-color: rgba(31, 157, 92, .45); background: var(--tint-green); color: var(--green); }
.toggle:has(input:checked) .dot-open { background: var(--green); box-shadow: 0 0 0 4px rgba(31, 157, 92, .2); }
.toggle:has(input:focus-visible) { box-shadow: var(--ring); }

.seg { display: flex; gap: 4px; background: var(--card); padding: 5px; border-radius: 999px; box-shadow: var(--shadow); margin-bottom: 14px; width: fit-content; max-width: 100%; overflow-x: auto; }
.seg button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; font-weight: 700; white-space: nowrap; color: var(--muted); transition: background .2s, color .2s; }
.seg button:hover { color: var(--text); }
.seg button.active { background: var(--accent); color: var(--accent-text); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s;
  display: flex; flex-direction: column; text-decoration: none; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img {
  height: 156px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background-size: cover; background-position: center; color: #fff;
}
.card-img.has-img { transition: background-size .5s; }
.card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, transparent 35%, transparent 55%, rgba(0, 0, 0, .5)); pointer-events: none; }
.card-mono {
  position: absolute; right: -6px; bottom: -34px; font: 800 150px/1 "Cinzel", serif; color: rgba(255, 255, 255, .1);
  pointer-events: none; user-select: none;
}
.card-ico {
  position: absolute; left: 10px; top: 10px; z-index: 1; width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center; color: #fff;
  background: rgba(11, 31, 58, .42); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.card-ico .i { width: 18px; height: 18px; }
.card-img:not(.has-img) .card-ico { position: relative; left: auto; top: auto; width: 66px; height: 66px; border-radius: 20px; background: rgba(255, 255, 255, .1); color: var(--gold-2); }
.card-img:not(.has-img) .card-ico .i { width: 32px; height: 32px; stroke-width: 1.5; }
.card-img .tag { position: absolute; left: 10px; bottom: 9px; z-index: 1; font-size: calc(11px * var(--fz, 1)); font-weight: 600; color: #fff; background: rgba(0, 0, 0, .35); padding: 3px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.card-body { padding: 13px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 0 0 2px; font-size: calc(19px * var(--fz, 1)); }
.card-body .sub { color: var(--muted); font-size: calc(13px * var(--fz, 1)); }
.card-body .meta { display: flex; gap: 6px 12px; margin-top: auto; padding-top: 10px; font-size: calc(13px * var(--fz, 1)); color: var(--muted); flex-wrap: wrap; align-items: center; }
.card-body .meta > span { display: inline-flex; align-items: center; gap: 4px; }
.card-body .meta .i { color: var(--faint); width: 15px; height: 15px; }
.dist { display: inline-flex; align-items: center; gap: 4px; color: var(--turq-ink); font-weight: 600; }
.dist .i { width: 14px; height: 14px; }
.heart {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: var(--glass); color: var(--muted); box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
  display: grid; place-items: center; padding: 0; transition: transform .15s, color .2s;
}
.heart .i { width: 18px; height: 18px; }
.heart:hover { color: var(--red); }
.heart:active { transform: scale(.88); }
.heart.on { color: var(--red); }
.heart.on .i { fill: currentColor; animation: heartPop .35s var(--ease); }
@keyframes heartPop { 40% { transform: scale(1.3); } }
.story { font-size: calc(13px * var(--fz, 1)); color: var(--muted); margin-top: 6px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.list { display: grid; gap: 12px; }
.row {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 68px 1fr auto; gap: 14px; align-items: start; padding: 14px 16px;
  cursor: pointer; transition: box-shadow .2s, transform .2s var(--ease);
}
.row:hover { box-shadow: var(--shadow-lg); }
.row .ico {
  width: 68px; height: 68px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: var(--g-c); background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.row .ico .i { width: 30px; height: 30px; stroke-width: 1.6; }
.ico.cat-h { background: var(--g-h); }
.ico.cat-a { background: var(--g-a); }
.ico.cat-s { background: var(--g-s); }
.ico.cat-f { background: var(--g-f); }
.row h4 { margin: 0; font-size: calc(16px * var(--fz, 1)); line-height: 1.35; }
.row h4 .stars { margin-left: 4px; font-size: calc(13px * var(--fz, 1)); }
.row .sub { color: var(--muted); font-size: calc(13px * var(--fz, 1)); margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.row .sub > span { display: inline-flex; align-items: center; gap: 4px; }
.row .sub .i { width: 14px; height: 14px; color: var(--faint); }
.row .sub .flags { gap: 6px; }
.row .sub .flag { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--bg-2); }
.row .sub .flag .i { color: var(--turq-ink); }
.row .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.row .acts:not(:has(*)) { display: none; }
.row .side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.row .price { font-weight: 800; font-size: calc(17px * var(--fz, 1)); white-space: nowrap; }
.row .heart { position: static; box-shadow: none; background: var(--bg-2); }
/* «На карте» — маленький круглый значок рядом с сердечком, а не широкая кнопка посреди строки:
   по ней не попадают, когда хотят открыть карточку места */
.side-btns { display: flex; gap: 8px; align-items: center; margin-inline-start: auto; }
.side-btns .heart { top: auto; right: auto; }
.row-map { width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; background: var(--bg-2); color: var(--muted); cursor: pointer; transition: transform .15s, color .2s; }
.row-map .i { width: 18px; height: 18px; }
.row-map:hover { color: var(--accent-text, var(--text)); }
.row-map:active { transform: scale(.88); }
.oh { display: inline-flex; align-items: center; gap: 5px; color: var(--green-ink, var(--green)); font-weight: 700; font-size: calc(12px * var(--fz, 1)); white-space: nowrap; }
.oh::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(31, 157, 92, .18); }
.oh.closed { color: var(--terra); }
.oh.closed::before { box-shadow: 0 0 0 3px rgba(200, 85, 61, .18); }

/* ================= КАРТА ================= */
.map-controls { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.map-controls label {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px 7px 8px;
  font-weight: 600; font-size: calc(14px * var(--fz, 1)); cursor: pointer; user-select: none; transition: background .2s, color .2s, border-color .2s;
}
.map-controls label input { position: absolute; opacity: 0; pointer-events: none; }
.map-controls label .i { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--bg-2); color: var(--lc, var(--c-c)); transition: background .2s, color .2s; }
.layer-c { --lc: var(--c-c); } .layer-h { --lc: var(--c-h); } .layer-a { --lc: var(--c-a); }
.layer-s { --lc: var(--c-s); } .layer-f { --lc: var(--c-f); } .layer-u { --lc: var(--c-u); }
.map-controls label:has(input:checked) { border-color: var(--lc); }
.map-controls label:has(input:checked) .i { background: var(--lc); color: #fff; }
.map-controls label:not(:has(input:checked)) { color: var(--muted); }
.map-controls label:has(input:focus-visible) { box-shadow: var(--ring); }
#bigMap { height: calc(100vh - 200px); min-height: 420px; border-radius: var(--radius); box-shadow: var(--shadow); }
.leaflet-container { font-family: var(--font); background: var(--bg-2); isolation: isolate; }
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.85) saturate(.5); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.85) saturate(.5); }
}
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--shadow-lg); }
.leaflet-popup-content { margin: 12px 14px; }
.leaflet-popup-content b { font-size: calc(14px * var(--fz, 1)); }
.leaflet-popup-content .i { width: 14px; height: 14px; }

/* Маркеры: белая иконка в круге цвета категории */
.pin {
  --pc: var(--c-c);
  display: grid !important; place-items: center; border-radius: 50%; color: #fff;
  background: var(--pc); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.pin .i { width: 15px; height: 15px; stroke-width: 2.1; }
.pin-h { --pc: var(--c-h); } .pin-a { --pc: var(--c-a); } .pin-s { --pc: var(--c-s); } .pin-f { --pc: var(--c-f); }
.pin.pin-u { background: none; border: 0; box-shadow: none; }
.pin-u > span { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.num-pin span {
  background: var(--lapis); color: var(--gold-2); border: 2px solid var(--gold-2); border-radius: 50%;
  display: grid; place-items: center; width: 28px; height: 28px; font-size: calc(13px * var(--fz, 1)); font-weight: 800; box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.me-pin { width: 18px; height: 18px; border-radius: 50%; background: #2f80ed; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(47, 128, 237, .25); animation: mePulse 2s infinite; }
@keyframes mePulse { 50% { box-shadow: 0 0 0 11px rgba(47, 128, 237, .08); } }
.cl-bubble {
  --cc: var(--c-c);
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cc); color: #fff; font-weight: 800; font-size: calc(13px * var(--fz, 1));
  border: 3px solid rgba(255, 255, 255, .92);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cc) 28%, transparent), 0 3px 10px rgba(0, 0, 0, .3);
}
.cl-h { --cc: var(--c-h); } .cl-a { --cc: var(--c-a); } .cl-s { --cc: var(--c-s); } .cl-f { --cc: var(--c-f); }
.svc-cluster {
  background: var(--c-u); color: #fff; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  font-weight: 800; font-size: calc(12px * var(--fz, 1)); border: 3px solid rgba(255, 255, 255, .9); box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

/* ================= БЮДЖЕТ ================= */
.budget { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.panel h3 { margin: 6px 0 12px; display: flex; align-items: center; gap: 10px; font-size: calc(21px * var(--fz, 1)); }
.panel h3 > .i, .sec-title > .i, .acc-section h3 > .i, .when-go h3 > .i {
  width: 32px; height: 32px; padding: 7px; border-radius: 10px; flex: none;
  background: var(--tint-gold); color: var(--gold-ink); stroke-width: 2;
}
.sec-title { display: flex; align-items: center; gap: 10px; margin: 22px 0 10px; }
.route-add { display: flex; gap: 8px; flex-wrap: wrap; }
.route-add #routeCity { flex: 1 1 180px; }
.route-add #routeNights { width: 80px; }
.route-add input, .form-grid input, .form-grid select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; width: 100%; }
.route-list { list-style: none; counter-reset: stop; padding: 0; margin: 14px 0; }
.route-list li { counter-increment: stop; position: relative; padding: 10px 0 10px 38px; border-bottom: 1px dashed var(--line); }
.route-list li::before {
  content: counter(stop); position: absolute; left: 0; top: 10px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--lapis); color: var(--gold-2); font-size: calc(12px * var(--fz, 1)); font-weight: 800; display: grid; place-items: center;
}
.route-list .r-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 26px; }
.route-list .r-line b { display: inline-flex; align-items: center; gap: 6px; }
.route-list .r-line b .i { color: var(--gold-ink); }
.route-list .leg { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: calc(12.5px * var(--fz, 1)); margin-top: 4px; }
.route-list .leg .i { width: 14px; height: 14px; color: var(--turq-ink); }
.route-list input { width: 64px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; }
.route-list .mv, .route-list .rm {
  width: 30px; height: 30px; display: inline-grid; place-items: center; padding: 0;
  border: 1px solid var(--line); background: var(--card); border-radius: 9px; color: var(--muted);
}
.route-list .mv:hover { color: var(--text); border-color: var(--line-2); }
.route-list .mv[disabled] { opacity: .35; pointer-events: none; }
.route-list .mv .i, .route-list .rm .i { width: 16px; height: 16px; }
.route-list .rm { margin-left: auto; color: var(--terra); }
.route-list .rm:hover { background: var(--tint-red); border-color: transparent; }
#routeMap { height: 260px; border-radius: 12px; margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.form-grid label { font-size: calc(13px * var(--fz, 1)); color: var(--muted); display: flex; flex-direction: column; gap: 5px; font-weight: 600; }
.rates { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.rates summary { font-weight: 700; margin-bottom: 10px; }
.rates summary .i { color: var(--turq-ink); }
.rates .btn { margin-top: 10px; }
.result { position: sticky; top: 80px; }
.total { font-size: calc(38px * var(--fz, 1)); font-weight: 800; font-family: var(--font); font-variant-numeric: tabular-nums; }
.total small { display: block; font-size: calc(14px * var(--fz, 1)); color: var(--muted); font-weight: 500; font-family: var(--font); margin-top: 4px; }
.bar { display: flex; gap: 2px; height: 12px; border-radius: 999px; overflow: hidden; margin: 14px 0; background: var(--line); }
.bar span { height: 100%; transition: width .4s; }
.breakdown { list-style: none; padding: 0; margin: 0 0 14px; }
.breakdown li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); gap: 8px; font-variant-numeric: tabular-nums; }
.breakdown .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }

/* ================= МОДАЛКА ================= */
.modal { position: fixed; inset: 0; z-index: 900; background: rgba(5, 13, 28, .62); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 28px 12px; overflow-y: auto; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } }
.modal-box { background: var(--bg); width: min(940px, 100%); border-radius: var(--r-lg); position: relative; overflow: hidden; box-shadow: var(--shadow-lg); animation: fadeup .3s var(--ease); }
.close {
  position: absolute; right: 12px; top: 12px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center; background: var(--glass); color: var(--glass-ink); box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
  transition: transform .2s var(--ease);
}
.close:hover { transform: rotate(90deg); }
.close .i { width: 20px; height: 20px; }
.m-head { position: relative; padding: 110px 28px 24px; color: #fff; background: var(--lapis) center / cover no-repeat; min-height: 250px; display: flex; flex-direction: column; justify-content: flex-end; }
.m-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(7, 18, 36, .9)); }
.m-head > * { position: relative; }
.m-head .big-ico {
  width: 64px; height: 64px; border-radius: 20px; margin-bottom: 14px; color: var(--gold-2);
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(8px);
}
.m-head .big-ico .i { width: 32px; height: 32px; stroke-width: 1.5; }
.m-head h2 { margin: 0; font-size: calc(clamp(28px, 5vw, 44px) * min(var(--fz, 1), 1.15)); line-height: 1.1; }
.m-head h2 > .i { width: .82em; height: .82em; color: var(--gold-2); vertical-align: -.08em; margin-right: .12em; stroke-width: 1.8; }
.m-head p { margin: 8px 0 0; opacity: .92; }
.m-head p .i { width: 15px; height: 15px; }
.m-head .alt { font-size: calc(13px * var(--fz, 1)); opacity: .75; margin-top: 2px; }
.m-head .credit { position: absolute; right: 10px; bottom: 6px; font-size: calc(10px * var(--fz, 1)); opacity: .6; }
.m-head .badge { margin: 6px 6px 0 0; }
.m-body { padding: 18px 26px 30px; }
.m-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.m-tabs { display: flex; gap: 6px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.m-tabs button {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 14px; font-weight: 600; white-space: nowrap;
  transition: background .2s, border-color .2s;
}
.m-tabs button:hover { border-color: var(--line-2); }
.m-tabs button .i { width: 16px; height: 16px; color: var(--turq-ink); }
.m-tabs button .n { font-size: calc(11px * var(--fz, 1)); font-weight: 800; padding: 1px 7px; border-radius: 999px; background: var(--bg-2); color: var(--muted); }
.m-tabs button.active { background: var(--accent); color: var(--accent-text); border-color: transparent; }
.m-tabs button.active .i { color: inherit; }
.m-tabs button.active .n { background: rgba(255, 255, 255, .18); color: inherit; }
.m-pane { display: none; }
.m-pane.active { display: block; animation: fadeup .25s ease; }
.wiki { background: var(--card); border-radius: var(--rad); padding: 14px 18px; line-height: 1.65; box-shadow: var(--shadow); }
.wiki a { display: inline-flex; align-items: center; gap: 4px; color: var(--turq-ink); font-weight: 700; text-decoration: none; }
.wiki a:hover { text-decoration: underline; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 14px 0; }
.fact { background: var(--card); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); word-break: break-word; }
.fact small { display: block; color: var(--muted); font-size: calc(12px * var(--fz, 1)); margin-bottom: 2px; }
.fact a { color: var(--turq-ink); }
.forecast { display: grid; grid-template-columns: repeat(7, minmax(72px, 1fr)); gap: 8px; overflow-x: auto; margin: 10px 0 4px; }
.forecast div { background: var(--card); border-radius: 12px; padding: 10px 8px; text-align: center; font-size: calc(13px * var(--fz, 1)); box-shadow: var(--shadow); }
.forecast small { color: var(--muted); text-transform: capitalize; }
.forecast i { font-style: normal; display: block; margin: 4px 0; }
.forecast i .i { width: 26px; height: 26px; stroke-width: 1.7; }
.now-weather {
  display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; color: #fff; border-radius: var(--rad); padding: 14px 18px; margin: 14px 0 6px;
  background: radial-gradient(120% 120% at 100% 0%, rgba(79, 209, 224, .2), transparent 60%), linear-gradient(135deg, var(--lapis-2), var(--lapis));
}
.now-weather .now-ico .i { width: 42px; height: 42px; stroke-width: 1.5; }
.now-weather b { font-size: calc(32px * var(--fz, 1)); }
.now-weather span { display: inline-flex; align-items: center; gap: 5px; }
.now-weather span .i { opacity: .8; }
#miniMap { height: 300px; border-radius: var(--rad); margin-top: 16px; }

/* Отзывы */
.stars-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; justify-self: start; }
.stars-input input { position: absolute; opacity: 0; pointer-events: none; }
.stars-input label { color: var(--star-off); cursor: pointer; transition: transform .12s, color .12s; line-height: 0; padding: 2px; }
.stars-input label .i { width: 32px; height: 32px; stroke-width: 1.5; }
.stars-input label:hover, .stars-input label:hover ~ label, .stars-input input:checked ~ label { color: var(--gold); }
.stars-input label:hover .i, .stars-input label:hover ~ label .i, .stars-input input:checked ~ label .i { fill: currentColor; }
.stars-input label:hover { transform: scale(1.15); }
.stars-input input:focus-visible + label { outline: 2px solid var(--turq); border-radius: 8px; }
.review-form { background: var(--card); border-radius: var(--rad); padding: 14px; display: grid; gap: 10px; margin-bottom: 14px; box-shadow: var(--shadow); }
.review-form input, .review-form textarea { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: calc(15px * var(--fz, 1)); resize: vertical; }
.review-form .btn { justify-self: start; }
.review { background: var(--card); border-radius: var(--rad); padding: 12px 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
.review .r-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: center; }
.review .r-date { color: var(--muted); font-size: calc(12px * var(--fz, 1)); }
.review p { margin: 6px 0 0; white-space: pre-wrap; word-break: break-word; line-height: 1.5; }
.rating-sum { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.rating-sum b { font-size: calc(34px * var(--fz, 1)); font-family: var(--font); }
.rating-sum .stars { font-size: calc(20px * var(--fz, 1)); }
.verified { display: inline-flex; align-items: center; gap: 3px; font-size: calc(11px * var(--fz, 1)); font-weight: 700; color: #2aabee; margin-left: 6px; }
.verified .i { width: 13px; height: 13px; }
.owner-reply { margin-top: 8px; padding: 8px 12px; border-left: 3px solid var(--gold); background: var(--bg-2); border-radius: 0 10px 10px 0; }
.owner-reply p { margin: 2px 0 0; }

.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); z-index: 1100;
  background: var(--lapis); color: #fff; padding: 11px 20px; border-radius: 999px; font-weight: 600;
  border: 1px solid rgba(230, 180, 80, .3);
  opacity: 0; pointer-events: none; transition: .3s var(--ease); box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ================= ПУТЕВОДИТЕЛЬ ================= */
.guide-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.guide-tile {
  --tg: var(--g-h);
  position: relative; display: grid; grid-template-columns: 50px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  background: var(--card); border-radius: var(--radius); padding: 16px 40px 16px 16px; box-shadow: var(--shadow); text-decoration: none;
  border: 1px solid transparent; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.guide-tile:nth-child(2) { --tg: var(--g-f); }
.guide-tile:nth-child(3) { --tg: var(--g-s); }
.guide-tile:nth-child(4) { --tg: var(--g-u); }
.guide-tile:nth-child(5) { --tg: var(--g-a); }
.guide-tile:nth-child(6) { --tg: var(--g-c); }
.guide-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line); }
.guide-tile i { grid-row: span 2; width: 50px; height: 50px; border-radius: 15px; background: var(--tg); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.guide-tile i .i { width: 24px; height: 24px; }
.guide-tile b { font-size: calc(16px * var(--fz, 1)); }
.guide-tile span { color: var(--muted); font-size: calc(13px * var(--fz, 1)); line-height: 1.4; }
.guide-tile .tile-go { position: absolute; right: 14px; top: 14px; width: 18px; height: 18px; color: var(--faint); transition: transform .2s var(--ease), color .2s; }
.guide-tile:hover .tile-go { transform: translate(2px, -2px); color: var(--turq-ink); }

.phrases { display: grid; gap: 8px; }
.phrase { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: var(--rad); padding: 12px 14px; box-shadow: var(--shadow); }
.phrase > div { flex: 1; min-width: 0; }
.phrase b { font-size: calc(17px * var(--fz, 1)); display: block; }
.phrase small { color: var(--turq-ink); font-size: calc(13px * var(--fz, 1)); margin-right: 8px; }
.phrase span { color: var(--muted); font-size: calc(14px * var(--fz, 1)); }
.say {
  width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--card-2);
  display: grid; place-items: center; padding: 0; color: var(--turq-ink); transition: background .2s, color .2s, transform .15s;
}
.say .i { width: 20px; height: 20px; }
.say:hover { background: var(--turq); color: #fff; border-color: var(--turq); }
.say:active { transform: scale(.92); }

.sos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 10px; }
.sos-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 12px; border-radius: var(--radius);
  background: var(--g-f); color: #fff; text-decoration: none; box-shadow: var(--shadow); transition: transform .2s var(--ease);
}
.sos-card:hover { transform: translateY(-2px); }
.sos-card i { width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); }
.sos-card i .i { width: 24px; height: 24px; }
.sos-card b { font-size: calc(34px * var(--fz, 1)); font-family: var(--font); line-height: 1; }
.sos-card span { font-size: calc(13px * var(--fz, 1)); opacity: .92; text-align: center; }

.tips { display: grid; gap: 10px; }
.tip { display: flex; gap: 14px; background: var(--card); border-radius: var(--rad); padding: 14px 16px; box-shadow: var(--shadow); }
.tip i { width: 42px; height: 42px; border-radius: 12px; background: var(--tint-gold); color: var(--gold-ink); }
.tip i .i { width: 21px; height: 21px; }
.tip b { font-size: calc(16px * var(--fz, 1)); }
.tip p { margin: 4px 0 0; color: var(--muted); line-height: 1.55; font-size: calc(14px * var(--fz, 1)); }

/* ================= ПЛАН НА ДЕНЬ ================= */
.timeline { list-style: none; padding: 0; margin: 14px 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 25px; top: 10px; bottom: 10px; width: 2px; background: repeating-linear-gradient(var(--gold) 0 6px, transparent 6px 12px); }
.timeline .stop {
  position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center;
  background: var(--card); border-radius: var(--rad); padding: 10px 14px 10px 0; box-shadow: var(--shadow); cursor: pointer;
  transition: box-shadow .2s;
}
.timeline .stop:hover { box-shadow: var(--shadow-lg); }
.timeline .stop time {
  justify-self: center; background: var(--lapis); color: var(--gold-2); font-weight: 800; font-size: calc(12px * var(--fz, 1));
  border-radius: 999px; padding: 4px 7px; position: relative; z-index: 1; font-variant-numeric: tabular-nums;
}
.timeline .stop b { display: flex; align-items: center; gap: 7px; font-size: calc(15px * var(--fz, 1)); }
.timeline .stop b .i { color: var(--turq-ink); width: 17px; height: 17px; }
.timeline .stop small { color: var(--muted); font-size: calc(12px * var(--fz, 1)); }
.timeline .lunch { background: linear-gradient(90deg, rgba(230, 180, 80, .18), var(--card)); }
.timeline .lunch b .i { color: var(--terra); }
.timeline .move { padding: 8px 0 8px 64px; color: var(--muted); font-size: calc(13px * var(--fz, 1)); }
.plan-total { font-weight: 700; }
#planMap { height: 300px; border-radius: var(--rad); margin-top: 14px; }

/* ================= ПОЛЕЗНОЕ ================= */
.svc-h { margin: 20px 0 8px; font-size: calc(19px * var(--fz, 1)); }
.svc-list { display: grid; gap: 8px; }
.svc-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--card); border-radius: var(--rad); padding: 10px 12px; box-shadow: var(--shadow); }
.svc-row > i { width: 42px; height: 42px; border-radius: 12px; color: #fff; }
.svc-row > i .i { width: 21px; height: 21px; }
.svc-row b { display: block; font-size: calc(15px * var(--fz, 1)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-row small { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; color: var(--muted); font-size: calc(12px * var(--fz, 1)); }
.svc-row small .i { width: 13px; height: 13px; }
.svc-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.svc-counts { margin-bottom: 10px; }
.svc-type { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font-size: calc(14px * var(--fz, 1)); }
@media (max-width: 520px) { .svc-row { grid-template-columns: 42px minmax(0, 1fr); } .svc-acts { grid-column: 2; justify-content: flex-start; } }

/* ================= ПОЕЗДКА ПО ДНЯМ ================= */
.trip-date { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600; flex-wrap: wrap; }
.trip-date > .i { color: var(--turq-ink); }
.trip-date input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.trip-days { margin-top: 18px; }
.trip-days .block-head { flex-wrap: wrap; }
.trip-actions { display: flex; gap: 8px; flex-wrap: wrap; }
#tripDays { display: grid; gap: 12px; }
.day-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; background: var(--card-2); }
.day-card header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.day-n { background: var(--accent); color: var(--accent-text); padding: 3px 11px; border-radius: 999px; font-size: calc(13px * var(--fz, 1)); font-weight: 700; }
.day-date { color: var(--muted); font-size: calc(14px * var(--fz, 1)); }
.day-city { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; text-decoration: none; }
.day-city .i { color: var(--gold-ink); }
.day-city:hover { color: var(--turq-ink); }
.day-w { margin-left: auto; font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.day-w .i { width: 20px; height: 20px; }
.day-travel { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--bg-2); font-size: calc(14px * var(--fz, 1)); font-weight: 600; }
.day-card details { margin-top: 8px; }
.day-card summary { color: var(--muted); font-size: calc(14px * var(--fz, 1)); line-height: 1.5; align-items: flex-start; }
.day-card .timeline { margin-bottom: 4px; }

@media print {
  body { background: #fff; color: #000; }
  #splash, .topbar, .bottom-nav, .tab:not(#tab-budget), .budget > .panel:first-child, .trip-actions, .toast, .modal, .ai-fab { display: none !important; }
  main { padding: 0; max-width: none; }
  #tab-budget { display: block !important; }
  .panel, .day-card, .timeline .stop { box-shadow: none !important; background: #fff !important; color: #000; border-color: #ccc; }
  .budget { grid-template-columns: 1fr; }
  .day-card { break-inside: avoid; }
  .timeline .stop time { background: #eee; color: #000; }
}

/* ================= КОГДА ЕХАТЬ (графики) ================= */
.viz {
  --viz-temp: #eb6834; --viz-rain: #2a78d6; --viz-dim: #d9d6cc; --viz-grid: #ece8de; --viz-zero: #c3c2b7;
  background: var(--card); border-radius: var(--rad); padding: 14px 16px; box-shadow: var(--shadow);
}
:root[data-theme="dark"] .viz { --viz-temp: #d95926; --viz-rain: #3987e5; --viz-dim: #3a4c6b; --viz-grid: #22385a; --viz-zero: #4a5d7e; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .viz { --viz-temp: #d95926; --viz-rain: #3987e5; --viz-dim: #3a4c6b; --viz-grid: #22385a; --viz-zero: #4a5d7e; }
}
.when-go { margin-top: 16px; }
.when-go h3 { margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.best-line { margin: 0 0 10px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.best-line .i { color: var(--gold); }
.viz-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: calc(13px * var(--fz, 1)); margin: 4px 0; }
.viz-head .i { width: 14px; height: 14px; }
.viz-key { color: var(--muted); display: flex; align-items: center; gap: 6px; }
.viz-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--viz-dim); margin-left: 6px; }
.viz-key i.best { background: var(--viz-temp); }
.viz-plot { position: relative; }
.viz-svg { width: 100%; height: auto; display: block; overflow: visible; }
.viz-grid { stroke: var(--viz-grid); stroke-width: 1; }
.viz-grid.zero { stroke: var(--viz-zero); }
.viz-tick { fill: var(--muted); font: 600 11px var(--font); font-variant-numeric: tabular-nums; }
.viz-label { fill: var(--text); font: 700 12px var(--font); }
.viz-bar { fill: var(--viz-dim); }
.viz-bar.best { fill: var(--viz-temp); }
.viz-rain { fill: var(--viz-rain); }
.viz-hit { fill: transparent; cursor: default; outline: none; }
.viz-hit:hover, .viz-hit:focus { fill: rgba(127, 127, 127, .08); }
.viz-tip {
  position: absolute; top: 0; transform: translateX(-50%); pointer-events: none; z-index: 2;
  background: var(--lapis); color: #fff; font-size: calc(12px * var(--fz, 1)); line-height: 1.45; padding: 8px 10px; border-radius: 10px; box-shadow: var(--shadow-lg); white-space: nowrap;
}
.viz-table summary { color: var(--muted); font-size: calc(13px * var(--fz, 1)); margin-top: 6px; }
.viz-table table { width: 100%; border-collapse: collapse; font-size: calc(13px * var(--fz, 1)); margin-top: 6px; font-variant-numeric: tabular-nums; }
.viz-table th, .viz-table td { text-align: right; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.viz-table th:first-child { text-align: left; text-transform: capitalize; }
.viz-table tr.best th:first-child::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--viz-temp); margin-right: 7px; vertical-align: 1px; }

/* ================= ФИЛЬТРЫ ЕДЫ ================= */
.food-flags { margin: 2px 0 8px; align-items: center; }
.food-flags .chip { font-family: inherit; }
.food-flags .chip.on { background: var(--accent); color: var(--accent-text); border-color: transparent; }
.food-flags .chip.on .i { color: inherit; }
.food-flags .chip.on b { color: inherit; background: rgba(255, 255, 255, .2); }
.food-flags .hint { margin-left: 4px; }

/* ================= ГОТОВЫЕ МАРШРУТЫ ================= */
.col-card .card-img { height: 146px; }
.col-icon {
  position: absolute; left: 12px; top: 12px; z-index: 1; width: 44px; height: 44px; border-radius: 13px; color: var(--gold-2);
  background: rgba(11, 31, 58, .5); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.col-icon .i { width: 22px; height: 22px; }
.col-card .card-img .tag { left: auto; right: 10px; }
.col-chain { margin-top: 8px; font-size: calc(13px * var(--fz, 1)); font-weight: 700; color: var(--text); line-height: 1.45; }
.col-card .meta { flex-direction: column; align-items: flex-start; gap: 4px; }
.col-card .meta .i { color: var(--gold-ink); }

/* Текст для поисковиков (виден только без JavaScript) */
.seo { max-width: 900px; margin: 24px auto; padding: 0 16px; line-height: 1.6; }
.seo h1 { font-size: calc(32px * var(--fz, 1)); }
.seo a { color: var(--turq-ink); }

/* ================= АККАУНТ ================= */
.acc-btn { overflow: hidden; padding: 0; font-weight: 800; font-size: calc(13px * var(--fz, 1)); }
.acc-btn img { width: 100%; height: 100%; object-fit: cover; }
.acc-btn.on { border-color: var(--gold); background: var(--gold); color: var(--lapis); }
.acc-login p { margin-top: 0; }
.acc-perks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.acc-perks li { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); }
.acc-perks .i { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--tint-turq); color: var(--tint-turq-ink); }
.tg-btn { background: #1772b0; color: #fff; padding: 12px 20px; font-size: calc(16px * var(--fz, 1)); }
.tg-btn:hover { background: #12639a; box-shadow: 0 6px 18px rgba(42, 171, 238, .35); }
.acc-wait { text-align: center; display: grid; gap: 10px; justify-items: center; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--line); border-top-color: #2aabee; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.acc-card { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.acc-card .avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #2aabee, #143766); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: calc(20px * var(--fz, 1)); overflow: hidden; flex: none; }
.acc-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.acc-card b { display: block; font-size: calc(18px * var(--fz, 1)); }
.acc-card small { color: var(--muted); }
.acc-sync { font-weight: 600; display: flex; align-items: center; gap: 8px; color: var(--green); }
.acc-section { margin: 20px 0; }
.acc-section h3 { margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.acc-section h4 { margin: 14px 0 8px; }
.acc-section details { margin-top: 10px; }
.acc-section summary { font-weight: 700; }
.acc-section summary .i { color: var(--turq-ink); }
/* Внутри Telegram: шапка Telegram уже есть, нижнее меню — с запасом под жесты */
.in-telegram .topbar { padding-top: 6px; }

/* ================= ИИ-ГИД ================= */
.ai-fab {
  position: fixed; right: 18px; bottom: 22px; z-index: 640; border: 0; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px 12px 16px; font-weight: 800; font-size: calc(15px * var(--fz, 1)); color: var(--lapis);
  background: var(--g-gold); box-shadow: 0 10px 28px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(255, 255, 255, .35);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.ai-fab .i { width: 20px; height: 20px; }
.ai-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0, 0, 0, .32), inset 0 0 0 1px rgba(255, 255, 255, .35); }
@media (max-width: 760px) { .ai-fab { bottom: calc(80px + env(safe-area-inset-bottom)); right: 12px; padding: 10px 16px 10px 13px; font-size: calc(14px * var(--fz, 1)); } }
.ai-head p { opacity: .85; }
.ai-body { display: flex; flex-direction: column; gap: 10px; }
.ai-messages { display: flex; flex-direction: column; gap: 10px; max-height: 55vh; overflow-y: auto; padding: 4px; }
.ai-msg { display: flex; }
.ai-msg.user { justify-content: flex-end; }
.ai-bubble { max-width: 88%; padding: 10px 14px; border-radius: 16px; line-height: 1.55; box-shadow: var(--shadow); overflow-wrap: anywhere; }
.ai-msg.user .ai-bubble { background: var(--accent); color: var(--accent-text); border-bottom-right-radius: 4px; }
.ai-msg.bot .ai-bubble { background: var(--card); border-bottom-left-radius: 4px; }
.ai-bubble p { margin: 0 0 8px; }
.ai-bubble p:last-child { margin-bottom: 0; }
.ai-bubble ul, .ai-bubble ol { margin: 4px 0 8px; padding-left: 20px; }
.ai-bubble a { color: var(--turq-ink); font-weight: 700; }
.ai-status { color: var(--muted); font-size: calc(14px * var(--fz, 1)); animation: aiPulse 1.2s ease-in-out infinite; }
@keyframes aiPulse { 50% { opacity: .45; } }
.ai-error { color: var(--terra); }
.ai-trip { display: grid; gap: 6px; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.ai-trip b { display: flex; align-items: center; gap: 6px; }
.ai-trip b .i { color: var(--turq-ink); }
.ai-trip .btn { justify-self: start; }
.ai-form { display: flex; gap: 8px; align-items: flex-end; }
.ai-form textarea { flex: 1; resize: none; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; font-size: calc(15px * var(--fz, 1)); max-height: 140px; }
.ai-form .btn { height: 46px; width: 50px; padding: 0; justify-content: center; }
.ai-form .btn .i { width: 20px; height: 20px; }
.ai-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.ai-suggest .chip { font-family: inherit; text-align: left; }
.in-telegram .ai-fab { bottom: calc(80px + env(safe-area-inset-bottom)); }

/* ================= ЭКСКУРСИИ И КАБИНЕТ ГИДА ================= */
.tour-list { display: grid; gap: 12px; }
.tour-card { background: var(--card); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: grid; gap: 8px; }
.tour-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.tour-top h4 { margin: 0 0 4px; font-size: calc(17px * var(--fz, 1)); }
.tour-top small { color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.tour-top small .i { width: 14px; height: 14px; color: var(--faint); }
.tour-price { font-weight: 800; font-size: calc(18px * var(--fz, 1)); text-align: right; white-space: nowrap; }
.tour-price small { display: block; font-weight: 500; font-size: calc(11px * var(--fz, 1)); color: var(--muted); }
.tour-card p { margin: 0; line-height: 1.5; }
.tour-card .meta { display: flex; gap: 14px; color: var(--muted); font-size: calc(13px * var(--fz, 1)); }
.tour-card .meta span { display: inline-flex; align-items: center; gap: 5px; }
.tour-card .meta .i { color: var(--turq-ink); }
.tour-card > .btn { justify-self: start; }
.book-form, .guide-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; background: var(--bg-2); border-radius: var(--rad); padding: 12px; margin-top: 4px; }
.book-form label, .guide-form label { display: flex; flex-direction: column; gap: 4px; font-size: calc(13px * var(--fz, 1)); color: var(--muted); }
.book-form .wide, .guide-form .wide { grid-column: 1 / -1; }
.book-form input, .book-form textarea, .guide-form input, .guide-form textarea, .guide-form select { padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: calc(15px * var(--fz, 1)); }
.guide-form fieldset { border: 1px solid var(--line); border-radius: 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 12px; }
.guide-form legend { font-size: calc(13px * var(--fz, 1)); color: var(--muted); }
.guide-form label.check { flex-direction: row; align-items: center; gap: 6px; color: var(--text); }
.guide-form .chip { cursor: pointer; }
.guide-form .chip .i { width: 14px; height: 14px; color: var(--muted); }
.ok-note { display: flex; align-items: center; gap: 8px; background: var(--tint-green); color: var(--green); border-radius: 10px; padding: 10px 12px; font-weight: 600; }
.bk-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--card); border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow); margin-bottom: 8px; }
.bk-row > div { flex: 1 1 220px; min-width: 0; }
.bk-row b { display: block; }
.bk-row small { color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.bk-row small .i { width: 13px; height: 13px; }
.bk-row p { margin: 4px 0 0; font-size: calc(14px * var(--fz, 1)); }
.bk-status { display: inline-flex; align-items: center; gap: 5px; font-size: calc(12px * var(--fz, 1)); font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--bg-2); white-space: nowrap; }
.bk-status .i { width: 14px; height: 14px; }
.bk-status.confirmed, .bk-status.approved { background: var(--tint-green); color: var(--green); }
.bk-status.declined, .bk-status.rejected, .bk-status.blocked, .bk-status.cancelled { background: var(--tint-red); color: var(--terra); }
.bk-status.new, .bk-status.pending { background: var(--tint-gold); color: var(--tint-gold-ink); }

/* ================= БИЗНЕС И АДМИНКА ================= */
.claim-box { margin: 14px 0; background: var(--card); border-radius: var(--rad); padding: 12px 16px; box-shadow: var(--shadow); }
.claim-box summary { font-weight: 700; }
.claim-box summary .i { color: var(--gold-ink); }
.biz-place { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; background: var(--card-2); }
.biz-place details { margin: 8px 0; }
.biz-place summary { font-weight: 700; }
.biz-place summary .i { color: var(--turq-ink); }
.reply-form { display: grid; gap: 6px; margin-top: 8px; }
.reply-form textarea { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-family: inherit; font-size: calc(14px * var(--fz, 1)); }
.reply-form .btn { justify-self: start; }
.admin-stats { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.admin-stats .stat { grid-template-columns: 1fr; }
.review.is-hidden { opacity: .5; }

/* ================= АДАПТИВ ================= */
@media (max-width: 900px) {
  .budget, .two-col { grid-template-columns: minmax(0, 1fr); }
  .result { position: static; }
}
@media (max-width: 760px) {
  .topbar { padding: 8px 12px; gap: 8px; }
  .topbar .tabs { display: none; }
  .brand-word { font-size: calc(18px * var(--fz, 1)); }
  .brand-mark { width: 30px; height: 30px; border-radius: 10px; }
  .brand-mark .i { width: 19px; height: 19px; }
  .pill-select { padding: 6px 6px; font-size: calc(12px * var(--fz, 1)); }
  .icon-btn { width: 34px; height: 34px; }
  .icon-btn .i { width: 17px; height: 17px; }
  main { padding: 12px 12px 100px; }
  .hero { min-height: 360px; border-radius: 20px; }
  .hero-inner { padding: 26px 18px; }
  .hero p { font-size: calc(15px * var(--fz, 1)); }
  /* Счётчики — лента с прокруткой: подписи не переносятся посреди слова */
  .stats { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 12px; scrollbar-width: none; margin: 14px -12px 4px; padding: 2px 12px 8px; }
  .stats::-webkit-scrollbar { display: none; }
  .stat { flex: none; scroll-snap-align: start; padding: 11px 16px 11px 12px; grid-template-columns: 38px auto; column-gap: 10px; }
  .stat:hover { transform: none; }
  .stat i { width: 38px; height: 38px; border-radius: 11px; }
  .stat i .i { width: 19px; height: 19px; }
  .stat b { font-size: calc(20px * var(--fz, 1)); }
  .stat span { font-size: calc(12px * var(--fz, 1)); white-space: nowrap; }
  .block { margin-top: 28px; }
  .block-head h2 { font-size: calc(22px * var(--fz, 1)); }
  .block-head h2 > .i { width: 32px; height: 32px; padding: 7px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .card-img { height: 116px; }
  .card-img:not(.has-img) .card-ico { width: 54px; height: 54px; border-radius: 16px; }
  .card-img:not(.has-img) .card-ico .i { width: 26px; height: 26px; }
  .card-body { padding: 11px 13px 13px; }
  .card-body h3 { font-size: calc(16px * var(--fz, 1)); }
  .row { grid-template-columns: 54px 1fr; padding: 12px; gap: 12px; }
  .row .ico { width: 54px; height: 54px; border-radius: 14px; }
  .row .ico .i { width: 25px; height: 25px; }
  .row .side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .filters select { flex: 1 1 45%; }
  .m-head { padding: 90px 18px 20px; min-height: 210px; }
  .m-body { padding: 14px 14px 24px; }
  .modal { padding: 0; }
  .modal-box { border-radius: 0; min-height: 100%; }
  #bigMap { height: calc(100vh - 230px); }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(6, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 650;
    background: rgba(11, 31, 58, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(230, 180, 80, .18);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
    color: #98a9c5; text-decoration: none; font-size: calc(10px * var(--fz, 1)); font-weight: 600; padding: 5px 0 3px; border-radius: 12px; overflow: hidden;
  }
  .bottom-nav a .i { width: 22px; height: 22px; stroke-width: 1.8; transition: transform .2s var(--ease); }
  .bottom-nav a span { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bottom-nav a.active { color: var(--gold-2); }
  .bottom-nav a.active .i { transform: translateY(-1px); }
  .bottom-nav a.active::before { content: ""; position: absolute; top: 0; left: 32%; right: 32%; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); }
}
@media (max-width: 420px) {
  .brand-word { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ===================================================================
   ДВИЖЕНИЕ
   1. Появление элементов при прокрутке (js/motion.js ставит .rv и data-rv)
   2. Иконки: у каждой своё движение при наведении на кнопку или карточку
   3. Живые иконки погоды, пульс «Открыто», SOS, ИИ-гид
   4. Окна, вкладки, меню, карта, маршрут, избранное, бюджет
   При «Уменьшить движение» всё отключает правило prefers-reduced-motion выше.
   =================================================================== */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-back: cubic-bezier(.34, 1.56, .64, 1); }

/* ---------- 1. Появление ---------- */
.rv { opacity: 0; }
.rv-in { animation: var(--rv-a, rv-fade) .65s var(--ease-out) both; animation-delay: var(--rv-d, 0ms); }
[data-rv="rise"] { --rv-a: rv-rise; }
[data-rv="slide"] { --rv-a: rv-slide; }
[data-rv="pop"] { --rv-a: rv-pop; }
[data-rv="fade"] { --rv-a: rv-fade; }
@keyframes rv-rise { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes rv-slide { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
@keyframes rv-pop { from { opacity: 0; transform: scale(.86); } 70% { opacity: 1; transform: scale(1.02); } to { opacity: 1; transform: none; } }
@keyframes rv-fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media print { .rv { opacity: 1 !important; animation: none !important; } }

/* ---------- 2. Иконки ----------
   Каждая иконка задаёт своё движение (--ic) и длительность (--icd); запускает его наведение на кнопку,
   ссылку, переключатель или карточку, в которой она стоит. */
.i { --ic: ic-pop; --icd: .5s; }
:is(a, button, label, summary, .sr-item):is(:hover, :focus-visible) .i,
.card:hover .card-ico .i, .row:hover > .ico .i, .tip:hover > i .i, .svc-row:hover > i .i, .phrase:hover .say .i {
  animation: var(--ic) var(--icd) var(--ease-out);
}
/* сердце бьётся */
.i-heart { --ic: ic-beat; --icd: .9s; }
/* солнце, гирих, обновить — оборот */
.i-sun, .i-girih, .i-refresh, .i-reset { --ic: ic-spin; --icd: .9s; }
.i-reset { --ic: ic-spin-back; }
/* телефон, колокол, сирена, компас, еда, сообщения, люди — покачивание */
.i-phone { --ic: ic-ring; --icd: .7s; }
.i-bell, .i-siren, .i-compass, .i-directions, .i-food, .i-chef, .i-coffee, .i-message, .i-user, .i-users, .i-flag, .i-teapot, .i-pot { --ic: ic-wiggle; --icd: .6s; }
/* самолёт и отправка — улетают и возвращаются */
.i-plane, .i-tg, .i-send { --ic: ic-fly; --icd: .7s; }
/* транспорт и шаги — едут */
.i-train, .i-train-fast, .i-bus, .i-taxi, .i-car, .i-ship, .i-walk, .i-delivery { --ic: ic-drive; --icd: .6s; }
/* булавка, загрузка, печать, календарь, кошелёк — подпрыгивают */
.i-pin, .i-download, .i-print, .i-calendar, .i-calendar-plus, .i-calendar-range, .i-calendar-check, .i-wallet, .i-coins, .i-basket, .i-ticket, .i-banknote, .i-credit-card, .i-hourglass { --ic: ic-drop; --icd: .6s; }
/* сумки, подарок, ярлык, ключ — качаются на ручке */
.i-shopping, .i-gift, .i-tag, .i-key, .i-mall { --ic: ic-swing; --icd: .7s; }
/* здания — «вырастают» */
.i-dome, .i-sight, .i-museum, .i-city, .i-hotel, .i-house, .i-building, .i-monument, .i-minaret, .i-gate, .i-castle, .i-mountain, .i-store, .i-bank, .i-hospital, .i-ruins, .i-home, .i-bed, .i-bed-single { --ic: ic-rise; --icd: .55s; }
/* звёзды, искры, корона, лампочка — мерцают */
.i-star, .i-sparkles, .i-crown, .i-gem, .i-lightbulb, .i-award, .i-badge-check, .i-zap { --ic: ic-twinkle; --icd: .6s; }
/* поиск и бинокль — присматриваются */
.i-search, .i-viewpoint, .i-eye { --ic: ic-tilt; --icd: .55s; }
/* карандаш пишет */
.i-edit { --ic: ic-write; --icd: .6s; }
/* звук, геолокация, сеть — пульс */
.i-volume, .i-locate, .i-wifi, .i-layers { --ic: ic-pulse; --icd: .7s; }
/* обмен валют, языки — переворот */
.i-exchange, .i-languages, .i-copy { --ic: ic-flip; --icd: .6s; }
/* стрелки — подталкивание */
.i-arrow-right, .i-chevron-right, .i-route { --ic: ic-nudge; --icd: .5s; }
.i-arrow-up-right, .i-external, .i-share { --ic: ic-nudge-ur; --icd: .5s; }
.i-chevron-up { --ic: ic-up; --icd: .4s; }
.i-chevron-down { --ic: ic-down; --icd: .4s; }
/* плюс и крестик — поворот */
.i-plus, .i-x { --ic: ic-quarter; --icd: .4s; }
/* луна, тренд, фильтр */
.i-moon { --ic: ic-rock; --icd: .7s; }
.i-trending { --ic: ic-up; } .i-trending-down { --ic: ic-down; }
.i-filter { --ic: ic-slide; --icd: .6s; }
.i-map { --ic: ic-unfold; --icd: .6s; }

@keyframes ic-pop { 40% { transform: scale(1.22); } 70% { transform: scale(.94); } }
@keyframes ic-beat { 14% { transform: scale(1.3); } 28% { transform: scale(1); } 42% { transform: scale(1.2); } 70% { transform: scale(1); } }
@keyframes ic-spin { to { transform: rotate(360deg); } }
@keyframes ic-spin-back { to { transform: rotate(-360deg); } }
@keyframes ic-ring { 10%, 30%, 50% { transform: rotate(-16deg); } 20%, 40% { transform: rotate(16deg); } 60% { transform: rotate(0); } }
@keyframes ic-wiggle { 20% { transform: rotate(-14deg); } 40% { transform: rotate(11deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(3deg); } }
@keyframes ic-fly { 40% { transform: translate(10px, -10px) scale(.8); opacity: 0; } 41% { transform: translate(-10px, 10px) scale(.8); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes ic-drive { 30% { transform: translateX(-3px); } 65% { transform: translateX(4px); } }
@keyframes ic-drop { 30% { transform: translateY(-6px); } 55% { transform: translateY(1px) scaleY(.92); } 75% { transform: translateY(-1.5px); } }
@keyframes ic-swing { 25% { transform: rotate(13deg); } 50% { transform: rotate(-10deg); } 75% { transform: rotate(5deg); } }
.i-shopping, .i-gift, .i-tag, .i-key, .i-mall { transform-origin: 50% 8%; }
@keyframes ic-rise { 0% { transform: translateY(3px) scaleY(.85); } 55% { transform: translateY(-3px) scaleY(1.06); } 100% { transform: none; } }
.i-dome, .i-sight, .i-museum, .i-city, .i-hotel, .i-house, .i-building, .i-monument, .i-minaret, .i-gate, .i-castle, .i-mountain, .i-store, .i-bank, .i-hospital, .i-ruins, .i-home, .i-bed, .i-bed-single { transform-origin: 50% 100%; }
@keyframes ic-twinkle { 30% { transform: rotate(20deg) scale(1.28); } 60% { transform: rotate(-8deg) scale(.94); } }
@keyframes ic-tilt { 50% { transform: rotate(-16deg) scale(1.14); } }
@keyframes ic-write { 20% { transform: translate(-2px, 2px) rotate(-10deg); } 45% { transform: translate(2px, -1px) rotate(4deg); } 70% { transform: translate(-1px, 1px) rotate(-4deg); } }
@keyframes ic-pulse { 35% { transform: scale(1.2); opacity: .75; } 70% { transform: scale(.96); opacity: 1; } }
@keyframes ic-flip { 50% { transform: scaleX(-1); } }
@keyframes ic-nudge { 50% { transform: translateX(5px); } }
@keyframes ic-nudge-ur { 50% { transform: translate(3px, -3px); } }
@keyframes ic-up { 50% { transform: translateY(-4px); } }
@keyframes ic-down { 50% { transform: translateY(4px); } }
@keyframes ic-quarter { from { transform: rotate(-90deg) scale(.7); } }
@keyframes ic-rock { 30% { transform: rotate(-22deg); } 65% { transform: rotate(10deg); } }
@keyframes ic-slide { 35% { transform: translateX(-3px); } 70% { transform: translateX(3px); } }
@keyframes ic-unfold { 0% { transform: scaleX(.6); } 60% { transform: scaleX(1.1); } }

/* ---------- 3. Живые иконки ---------- */
/* Погода: солнце медленно вращается, облака плывут, дождь капает, снег кружится, гроза вспыхивает */
.wcard .wx, .forecast .wx, .now-weather .wx, .day-w .wx { animation: var(--wxa, none); }
.wx-clear { --wxa: wx-spin 22s linear infinite; }
.wx-night { --wxa: wx-rock 6s ease-in-out infinite; }
.wx-partly, .wx-cloudy, .wx-fog { --wxa: wx-drift 5s ease-in-out infinite; }
.wx-drizzle, .wx-rain { --wxa: wx-bob 1.6s ease-in-out infinite; }
.wx-snow { --wxa: wx-sway 3.6s ease-in-out infinite; }
.wx-storm { --wxa: wx-flash 3.2s linear infinite; }
.forecast div:nth-child(2n) .wx { animation-delay: -1.1s; }
.forecast div:nth-child(3n) .wx { animation-delay: -2.3s; }
@keyframes wx-spin { to { transform: rotate(360deg); } }
@keyframes wx-rock { 50% { transform: rotate(-12deg); } }
@keyframes wx-drift { 50% { transform: translateX(4px); } }
@keyframes wx-bob { 50% { transform: translateY(2.5px); } }
@keyframes wx-sway { 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
@keyframes wx-flash { 0%, 86%, 92%, 100% { opacity: 1; } 88%, 94% { opacity: .25; } }

/* «Открыто сейчас» — живой пульс */

@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(31, 157, 92, .45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(31, 157, 92, 0); } }


/* Экстренные номера — сигнальный пульс */
.sos-card i { animation: sos 2.2s ease-out infinite; }
.sos-card:nth-child(2) i { animation-delay: .5s; } .sos-card:nth-child(3) i { animation-delay: 1s; } .sos-card:nth-child(4) i { animation-delay: 1.5s; }
@keyframes sos { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .5); } 70%, 100% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); } }

/* Знак Safar: оборот при загрузке */
.brand-mark .i { animation: ic-spin 1.4s var(--ease-out) .2s backwards; }

/* ИИ-гид: кнопка выезжает, искры время от времени вспыхивают, вокруг — мягкое свечение */
.ai-fab:not(.hidden) { animation: fabIn .7s var(--ease-back) .6s backwards; }
.ai-fab .i { animation: idleTwinkle 4.5s ease-in-out 2s infinite; }
@keyframes fabIn { from { opacity: 0; transform: translateY(30px) scale(.8); } }
@keyframes fabGlow { 50% { box-shadow: 0 10px 34px rgba(230, 180, 80, .55), inset 0 0 0 1px rgba(255, 255, 255, .35); } }
@keyframes idleTwinkle { 0%, 80%, 100% { transform: none; } 86% { transform: rotate(22deg) scale(1.3); } 93% { transform: rotate(-8deg) scale(.95); } }

/* Скелетоны — мягкое «дыхание» вместо резкого блеска */
.skeleton { animation: shimmer 1.4s ease-in-out infinite; }

/* ---------- 4. Элементы ---------- */
/* Волна от нажатия */
.btn, .seg button, .m-tabs button, .chip, .tabs a, .say { position: relative; overflow: hidden; isolation: isolate; }
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: -1;
  background: currentColor; opacity: .18; transform: scale(0); animation: ripple .6s var(--ease-out) forwards;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* Золотые кнопки: блик пробегает при наведении */
.btn.gold-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.btn.gold-btn:hover::before { transform: translateX(120%); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }

/* Карточки: фото слегка приближается, карточка приподнимается */
.card-img { transition: transform .8s var(--ease-out); }
.card:hover .card-img { transform: scale(1.06); }
.card:hover .card-ico { background: rgba(230, 180, 80, .9); color: var(--lapis); border-color: transparent; transition: background .3s, color .3s; }
.card-img:not(.has-img) .card-ico { transition: transform .5s var(--ease-back); }
.card:hover .card-img:not(.has-img) .card-ico { transform: scale(1.08) rotate(-4deg); background: rgba(255, 255, 255, .16); color: var(--gold-2); }
.row .ico { transition: transform .4s var(--ease-back); }
.row:hover .ico { transform: scale(1.05) rotate(-2deg); }
.stat i, .guide-tile i, .tip i, .svc-row > i { transition: transform .4s var(--ease-back); }
.stat:hover i, .guide-tile:hover i { transform: scale(1.08) rotate(-4deg); }

/* Избранное: сердце «взрывается» искрами, счётчик в шапке подпрыгивает */
.row .heart { position: relative; }
.burst .i { animation: ic-beat .7s var(--ease-out); }
.heart.burst::before, .heart.burst::after { content: ""; position: absolute; pointer-events: none; }
.heart.burst::after { inset: -2px; border-radius: 50%; border: 2px solid var(--red); animation: burstRing .6s var(--ease-out) forwards; }
.heart.burst::before {
  left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%;
  box-shadow: 0 -17px var(--red), 15px -9px var(--gold), 15px 9px var(--red), 0 17px var(--gold), -15px 9px var(--red), -15px -9px var(--gold);
  animation: burstDots .65s var(--ease-out) forwards;
}
@keyframes burstRing { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
@keyframes burstDots { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
#favBtn.bump .i { animation: ic-beat .7s var(--ease-out); }
#favBtn.bump b { animation: ic-pop .5s var(--ease-back); }

/* Переключатель темы: новая иконка вкатывается */
#themeBtn .i { animation: themeIn .55s var(--ease-back); }
@keyframes themeIn { from { transform: rotate(-120deg) scale(.4); opacity: 0; } }

/* Меню: активный пункт подпрыгивает, полоска выезжает */
.tabs a.active { animation: ic-pop .4s var(--ease-out); }
.bottom-nav a.active .i { animation: navHop .5s var(--ease-back); }
.bottom-nav a.active::before { animation: navBar .35s var(--ease-out); }
@keyframes navHop { 40% { transform: translateY(-5px) scale(1.12); } }
@keyframes navBar { from { transform: scaleX(0); } }

/* Сегменты и вкладки окон */
.seg button.active, .m-tabs button.active { animation: segIn .35s var(--ease-out); }
@keyframes segIn { from { transform: scale(.94); } }
.m-tabs button { animation: rv-pop .5s var(--ease-out) both; }
.m-tabs button:nth-child(2) { animation-delay: .04s; } .m-tabs button:nth-child(3) { animation-delay: .08s; }
.m-tabs button:nth-child(4) { animation-delay: .12s; } .m-tabs button:nth-child(5) { animation-delay: .16s; }
.m-tabs button:nth-child(6) { animation-delay: .2s; } .m-tabs button:nth-child(n+7) { animation-delay: .24s; }
.m-pane.active { animation: paneIn .35s var(--ease-out); }
@keyframes paneIn { from { opacity: 0; transform: translateY(8px); } }

/* Окна: фон затемняется, окно всплывает, шапка собирается по частям; закрытие — обратно */
.modal:not(.hidden) { animation: fadeIn .25s ease; }
.modal:not(.hidden) .modal-box { animation: modalIn .5s var(--ease-out); }
.modal.closing { animation: fadeOut .22s ease forwards; pointer-events: none; }
.modal.closing .modal-box { animation: modalOut .22s ease forwards; }
@keyframes modalIn { from { opacity: 0; transform: translateY(40px) scale(.96); } }
@keyframes modalOut { to { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes fadeOut { to { opacity: 0; } }
.m-head > :not(.credit) { animation: rv-rise .6s var(--ease-out) both; }
.m-head > :nth-child(1) { animation-delay: .08s; } .m-head > :nth-child(2) { animation-delay: .14s; }
.m-head > :nth-child(3) { animation-delay: .2s; } .m-head > :nth-child(4) { animation-delay: .26s; }
.m-head > :nth-child(5) { animation-delay: .32s; }
.m-head .big-ico { animation-name: rv-pop; }
.close { animation: closeIn .5s var(--ease-back) .2s backwards; }
@keyframes closeIn { from { opacity: 0; transform: rotate(-90deg) scale(.5); } }

/* Поиск: подсказки выпадают */
.search-results:not(.hidden) { animation: dropIn .22s var(--ease-out); transform-origin: top; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px) scaleY(.96); } }
.search-wrap .search-ico { transition: color .2s, transform .3s var(--ease-back); }
.search-wrap:focus-within .search-ico { color: var(--gold); transform: translateY(-50%) scale(1.12); }

/* Всплывающее сообщение — пружинит */
.toast { transition: opacity .3s, transform .45s var(--ease-back); }

/* Бюджет: сумма подпрыгивает и вспыхивает золотом при пересчёте */
#budgetTotal.bump { animation: bump .5s var(--ease-out); }
@keyframes bump { 30% { transform: scale(1.04); color: var(--gold-ink); } }
.bar span { transition: width .6s var(--ease-out); }

/* План дня: пунктир между остановками «бежит», как путь */
.timeline::before { animation: march 1.4s linear infinite; }
@keyframes march { to { background-position: 0 12px; } }
.timeline .stop time { transition: transform .3s var(--ease-back); }
.timeline .stop:hover time { transform: scale(1.1); }

/* Маршрут: номера остановок вырастают */
.route-list li::before { animation: rv-pop .45s var(--ease-back) both; }

/* Карта: маркеры выпрыгивают, кластеры раскрываются, линия маршрута рисуется или бежит пунктиром */

@keyframes pinIn { from { scale: 0; opacity: 0; } }

@keyframes popIn { from { transform: scale(0); opacity: 0; } }
.route-line.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawLine 1.8s var(--ease-out) .2s forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.route-line.march { animation: marchLine 1s linear infinite; }
@keyframes marchLine { to { stroke-dashoffset: -14; } }
.map-controls label .i { transition: background .25s, color .25s, transform .35s var(--ease-back); }
.map-controls label:has(input:checked) .i { transform: scale(1.06); }

/* Отзыв: звёзды при выборе вспыхивают по очереди */
.stars-input input:checked ~ label .i { animation: ic-pop .4s var(--ease-back); }
.stars-input input:checked ~ label:nth-of-type(2) .i { animation-delay: .04s; }
.stars-input input:checked ~ label:nth-of-type(3) .i { animation-delay: .08s; }
.stars-input input:checked ~ label:nth-of-type(4) .i { animation-delay: .12s; }
.stars-input input:checked ~ label:nth-of-type(5) .i { animation-delay: .16s; }

/* Раскрывающиеся блоки: содержимое проявляется */
details[open] > :not(summary) { animation: paneIn .35s var(--ease-out); }

/* ИИ-гид: новое сообщение всплывает */
.ai-msg.user .ai-bubble { animation: bubbleR .35s var(--ease-back); }
.ai-msg.bot .ai-bubble { animation: bubbleL .35s var(--ease-back); }
@keyframes bubbleR { from { opacity: 0; transform: translateX(14px) scale(.95); } }
@keyframes bubbleL { from { opacity: 0; transform: translateX(-14px) scale(.95); } }

@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; } }

/* ================= ВЫПАДАЮЩИЕ СПИСКИ: язык и валюта (js/picker.js) ================= */
.picker { position: relative; }
.picker-native { position: absolute; inset: 0; width: 100%; opacity: 0; pointer-events: none; }
.picker-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 6px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .08);
  color: #fff; font-weight: 700; font-size: calc(13.5px * var(--fz, 1)); white-space: nowrap;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.picker-btn:hover { background: rgba(255, 255, 255, .14); }
.picker.open .picker-btn { border-color: rgba(230, 180, 80, .6); background: rgba(255, 255, 255, .14); box-shadow: 0 0 0 3px rgba(230, 180, 80, .15); }
.pk-code {
  display: inline-grid; place-items: center; min-width: 28px; height: 26px; padding: 0 7px; border-radius: 999px;
  background: var(--g-gold); color: var(--lapis); font-size: calc(11.5px * var(--fz, 1)); font-weight: 800; letter-spacing: .02em;
}
.picker-chev { width: 16px; height: 16px; opacity: .7; transition: transform .3s var(--ease-back); }
.picker.open .picker-chev { transform: rotate(180deg); }
.picker-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 700; min-width: 220px; max-height: min(70vh, 430px); overflow-y: auto;
  padding: 6px; border-radius: 16px; border: 1px solid rgba(230, 180, 80, .22);
  background: rgba(12, 28, 52, .97); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .45);
  transform-origin: top right; animation: pickerIn .25s var(--ease-out);
}
@keyframes pickerIn { from { opacity: 0; transform: translateY(-8px) scale(.95); } }
.picker-opt {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 11px;
  color: #cfdbee; font-weight: 600; font-size: calc(14px * var(--fz, 1)); cursor: pointer; outline: none;
  transition: background .15s, color .15s;
  animation: pickerOpt .3s var(--ease-out) both; animation-delay: calc(var(--n) * 20ms);
}
@keyframes pickerOpt { from { opacity: 0; transform: translateX(8px); } }
.picker-opt .pk-code { background: rgba(255, 255, 255, .09); color: #fff; min-width: 34px; transition: background .2s, color .2s; }
.picker-opt:hover, .picker-opt:focus { background: rgba(255, 255, 255, .08); color: #fff; }
.picker-opt:hover .pk-code, .picker-opt:focus .pk-code { background: rgba(255, 255, 255, .16); }
.picker-opt.on { color: var(--gold-2); background: rgba(230, 180, 80, .1); }
.picker-opt.on .pk-code { background: var(--g-gold); color: var(--lapis); }
.picker-check { margin-left: auto; width: 17px; height: 17px; color: var(--gold); opacity: 0; transform: scale(.5); transition: opacity .2s, transform .3s var(--ease-back); }
.picker-opt.on .picker-check { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .picker-btn { height: 34px; gap: 5px; padding: 0 8px 0 4px; }
  .picker-langSelect .picker-btn .pk-name { display: none; }
  .picker-currency .picker-btn .pk-code { display: none; }
  .picker-currency .picker-btn { padding-left: 11px; }
}

/* ================= СМЕНА ТЕМЫ: заливка кругом от кнопки ================= */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }
::view-transition-old(root) { z-index: 1; }
/* Запасной вариант без View Transitions: цвета перетекают */
.theme-fade, .theme-fade *, .theme-fade *::before, .theme-fade *::after {
  transition: background-color .5s ease, color .5s ease, border-color .5s ease, fill .5s ease, stroke .5s ease, box-shadow .5s ease !important;
}

/* ================= УСТАНОВКА НА iPHONE ================= */
/* Полноэкранный режим с полупрозрачной строкой состояния: шапка не уходит под часы и «чёлку» */
.topbar { padding-top: calc(10px + env(safe-area-inset-top)); }
@media (max-width: 760px) { .topbar { padding-top: calc(8px + env(safe-area-inset-top)); } }
.ios-steps { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.ios-steps li {
  display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: var(--rad); padding: 14px 16px;
  box-shadow: var(--shadow); line-height: 1.5; animation: rv-slide .5s var(--ease-out) both;
}
.ios-steps li:nth-child(2) { animation-delay: .08s; } .ios-steps li:nth-child(3) { animation-delay: .16s; }
.ios-steps b {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--g-gold); color: var(--lapis); font-weight: 800;
}
.ios-steps .i { width: 1.35em; height: 1.35em; vertical-align: -.3em; color: #0a84ff; margin: 0 2px; }
.ios-warn { display: flex; gap: 10px; align-items: flex-start; background: var(--tint-gold); color: var(--tint-gold-ink); border-radius: var(--rad); padding: 12px 14px; font-weight: 600; line-height: 1.5; }
.ios-warn .i { flex: none; margin-top: 2px; }
.ios-banner {
  position: fixed; left: 12px; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 660;
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 18px;
  background: rgba(12, 28, 52, .96); color: #fff; border: 1px solid rgba(230, 180, 80, .3);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
  animation: bannerIn .6s var(--ease-back);
}
.ios-banner.out { transition: opacity .35s, transform .35s; opacity: 0; transform: translateY(20px); }
.ios-banner p { margin: 0; flex: 1; font-size: calc(13px * var(--fz, 1)); font-weight: 600; line-height: 1.35; }
.ios-banner-ico { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--g-gold); color: var(--lapis); }
.ios-banner-ico .i { width: 24px; height: 24px; stroke-width: 1.5; }
.ios-x { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; padding: 0; }
.ios-x .i { width: 16px; height: 16px; }
@keyframes bannerIn { from { opacity: 0; transform: translateY(40px) scale(.95); } }
@media (min-width: 761px) { .ios-banner { left: auto; right: 24px; bottom: 90px; max-width: 420px; } }
/* Указатель на кнопку «Поделиться» Safari: внизу на iPhone, вверху справа на iPad */
.ios-pointer {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 950; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none;
  color: var(--gold-2); font-weight: 800; font-size: calc(14px * var(--fz, 1)); text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
  animation: pointerIn .5s var(--ease-back) .4s backwards;
}
.ios-pointer .i {
  width: 46px; height: 46px; padding: 9px; border-radius: 50%; stroke-width: 2.4;
  background: var(--g-gold); color: var(--lapis); box-shadow: 0 0 0 0 rgba(230, 180, 80, .6);
  animation: pointerBob 1.1s ease-in-out infinite, pointerPulse 1.6s ease-out infinite;
}
.ios-pointer.pad { left: auto; right: 70px; bottom: auto; top: calc(8px + env(safe-area-inset-top)); transform: none; flex-direction: column-reverse; }
.ios-pointer.pad .i { animation-name: pointerBobUp, pointerPulse; }
.ios-pointer.pad { animation-name: fadeIn; }
@keyframes pointerIn { from { opacity: 0; transform: translate(-50%, 20px); } }
@keyframes pointerBob { 50% { transform: translateY(8px); } }
@keyframes pointerBobUp { 50% { transform: translate(5px, -6px); } }
@keyframes pointerPulse { 70%, 100% { box-shadow: 0 0 0 16px rgba(230, 180, 80, 0); } }

/* ================= УСТАНОВКА НА ANDROID ================= */
.and-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.and-opt {
  display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; text-align: left;
  padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); color: var(--text);
  text-decoration: none; box-shadow: var(--shadow); font: inherit; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.and-opt:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.and-opt i { grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--g-h); color: #fff; font-style: normal; }
.and-opt i .i { width: 24px; height: 24px; }
.and-opt b { font-size: calc(16px * var(--fz, 1)); }
.and-opt span { color: var(--muted); font-size: calc(13px * var(--fz, 1)); }
.and-opt.main { background: var(--g-gold); border-color: transparent; color: var(--lapis); }
.and-opt.main i { background: var(--lapis); color: var(--gold-2); }
.and-opt.main span { color: rgba(11, 31, 58, .7); }
.and-opt.main i .i { animation: ic-drop 1.6s var(--ease-out) 1s infinite; }
.and-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; line-height: 1.5; }
.and-note .i { flex: none; margin-top: 2px; color: var(--green); }

/* ================= ОКНА В ПОЛНОЭКРАННОМ РЕЖИМЕ ================= */
/* На телефоне окно занимает весь экран: крестик закреплён и стоит ниже строки состояния (часы, батарея) */
@media (max-width: 760px) {
  .close { position: fixed; top: calc(10px + env(safe-area-inset-top)); right: 12px; }
  .m-head { padding-top: max(90px, calc(64px + env(safe-area-inset-top))) !important; }
}

/* ================= АККАУНТ ================= */
.acc-card {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 18px;
  border-radius: var(--r-lg); color: #fff; overflow: hidden;
  background: var(--ornament), radial-gradient(120% 140% at 100% 0%, rgba(79, 209, 224, .22), transparent 55%), linear-gradient(135deg, var(--lapis-2), var(--lapis));
  box-shadow: var(--shadow-lg);
}
.acc-card .avatar {
  width: 64px; height: 64px; font-size: calc(22px * var(--fz, 1)); flex: none;
  box-shadow: 0 0 0 3px var(--lapis), 0 0 0 5px var(--gold);
}
.acc-who { min-width: 0; flex: 1; }
.acc-card .acc-who b { display: block; font-size: calc(20px * var(--fz, 1)); font-family: var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-card .acc-who small { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; color: #b9c8de; font-size: calc(13px * var(--fz, 1)); margin-top: 2px; }
.acc-card .acc-who small .i { color: #2aabee; width: 14px; height: 14px; }
.acc-out {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; transition: background .2s, color .2s;
}
.acc-out:hover { background: rgba(229, 72, 77, .25); color: #ffb3b5; }
.acc-out .i { width: 19px; height: 19px; }

.acc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 18px; }
.acc-stat {
  display: grid; justify-items: center; gap: 4px; padding: 14px 8px; border-radius: var(--radius); text-align: center;
  background: var(--card); box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform .2s var(--ease);
}
a.acc-stat:hover { transform: translateY(-2px); }
.acc-stat i { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-style: normal; background: var(--tint-gold); color: var(--gold-ink); }
.acc-stat:first-child i { background: rgba(229, 72, 77, .12); color: var(--red); }
.acc-stat.ok i { background: var(--tint-green); color: var(--green); }
.acc-stat i .i { width: 19px; height: 19px; }
.acc-stat b { font-size: calc(17px * var(--fz, 1)); white-space: nowrap; }
.acc-stat span { font-size: calc(12px * var(--fz, 1)); color: var(--muted); }

details.acc-section { margin: 0 0 12px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
details.acc-section > summary { padding: 14px 16px; gap: 12px; font-weight: 700; }
details.acc-section > summary i { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-style: normal; background: var(--tint-turq); color: var(--tint-turq-ink); flex: none; }
details.acc-section > summary i .i { width: 18px; height: 18px; }
details.acc-section > summary b { font-size: calc(16px * var(--fz, 1)); }
details.acc-section[open] > summary { border-bottom: 1px solid var(--line); }
.acc-body { padding: 14px 16px 16px; }
.acc-body > .hint:first-child { margin-top: 0; }
.acc-body h4 { margin: 16px 0 8px; font-size: calc(14px * var(--fz, 1)); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.acc-body .bk-row { box-shadow: none; border: 1px solid var(--line); background: var(--card-2); }
.acc-body details { margin-top: 10px; }
.acc-form > summary { display: inline-flex; width: auto; }
.acc-form > summary::after { display: none; }
.acc-form[open] > summary { margin-bottom: 12px; opacity: .6; }
@media (max-width: 420px) {
  .acc-card { padding: 16px 14px; gap: 12px; }
  .acc-card .avatar { width: 54px; height: 54px; font-size: calc(19px * var(--fz, 1)); }
  .acc-stat b { font-size: calc(15px * var(--fz, 1)); }
}

/* ================= ПОЕЗДКА: маршрут ================= */
.route-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; counter-reset: none; }
.route-list li.stop {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; grid-template-areas: "n main nights acts";
  align-items: center; gap: 10px 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card-2); transition: border-color .2s, box-shadow .2s;
}
.route-list li.stop:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.route-list li.stop::before { display: none; }
.st-n {
  grid-area: n; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--g-gold); color: var(--lapis); font-weight: 800; box-shadow: 0 0 0 4px rgba(230, 180, 80, .15);
}
.st-main { grid-area: main; min-width: 0; }
.st-main b { display: flex; align-items: center; gap: 7px; font-size: calc(16px * var(--fz, 1)); }
.st-main b .i { color: var(--gold-ink); }
.route-list .st-main .leg { margin-top: 3px; }
.st-nights {
  grid-area: nights; display: flex; align-items: center; gap: 2px; padding: 3px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
}
.st-btn {
  width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center;
  background: var(--bg-2); color: var(--text); transition: background .2s, color .2s, transform .15s;
}
.st-btn:hover { background: var(--gold); color: var(--lapis); }
.st-btn:active { transform: scale(.9); }
.st-btn[disabled] { opacity: .35; pointer-events: none; }
.st-btn .i { width: 15px; height: 15px; stroke-width: 2.4; }
.route-list .st-nights input {
  width: 32px; padding: 0; border: 0 !important; box-shadow: none !important; background: transparent;
  text-align: center; font-weight: 800; font-size: calc(16px * var(--fz, 1)); -moz-appearance: textfield; appearance: textfield;
}
.st-nights input::-webkit-inner-spin-button, .st-nights input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.st-nights input.bump { animation: bump .45s var(--ease-out); }
.st-nights span { font-size: calc(12px * var(--fz, 1)); color: var(--muted); padding-right: 8px; }
.st-acts { grid-area: acts; display: flex; gap: 4px; }
.route-list .st-acts .rm { margin-left: 0; }
@media (max-width: 600px) {
  .route-list li.stop { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "n main main" "n nights acts"; padding: 12px; }
  .st-nights { justify-self: start; }
  .st-n { align-self: start; }
}

/* ================= ПОЕЗДКА: параметры и итог ================= */
@media (max-width: 760px) {
  .budget .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
.panel.result {
  color: #fff; overflow: hidden; position: relative;
  background: var(--ornament), radial-gradient(120% 90% at 100% 0%, rgba(79, 209, 224, .2), transparent 55%), linear-gradient(160deg, var(--lapis-2), var(--lapis));
  box-shadow: var(--shadow-lg);
}
.panel.result h3 > .i { background: rgba(230, 180, 80, .18); color: var(--gold-2); }
.panel.result .total { color: var(--gold-2); font-size: calc(46px * var(--fz, 1)); line-height: 1.05; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.panel.result .total small { color: #b9c8de; }
.panel.result .bar { background: rgba(255, 255, 255, .12); height: 10px; }
.panel.result .breakdown li { border-color: rgba(255, 255, 255, .1); }
.panel.result .hint { color: #9fb0cc; }
.panel.result .btn.ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .18); }
.panel.result .btn.ghost .i { color: var(--gold-2); }

/* ================= ПОЕЗДКА: дни ================= */
#tripDays { gap: 12px; }
.day-card {
  display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 14px; padding: 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card-2); transition: box-shadow .2s, border-color .2s;
}
.day-card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.day-side {
  display: grid; justify-items: center; align-content: start; padding: 10px 4px; border-radius: 16px; text-align: center;
  background: var(--g-c); color: #fff; align-self: start; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.day-side small { font-size: calc(10px * var(--fz, 1)); text-transform: uppercase; letter-spacing: .1em; opacity: .75; }
.day-side b { font: 800 calc(28px * var(--fz, 1))/1.1 var(--font); color: var(--gold-2); }
.day-side span { font-size: calc(10.5px * var(--fz, 1)); line-height: 1.25; opacity: .85; margin-top: 3px; }
.day-main { min-width: 0; }
.day-main header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.day-card .day-city { font-size: calc(17px * var(--fz, 1)); }
.day-card .day-w { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: calc(13px * var(--fz, 1)); }
.day-card .day-w:empty { display: none; }
.day-card .day-travel {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin-top: 8px; padding: 7px 12px; border-radius: 12px; line-height: 1.35;
  background: var(--tint-turq); color: var(--tint-turq-ink); font-size: calc(13px * var(--fz, 1)); font-weight: 600;
}
.day-card .day-travel .i { flex: none; }
.day-pois { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.day-poi {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 5px 10px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); font-size: calc(12.5px * var(--fz, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.day-poi .i { width: 14px; height: 14px; color: var(--turq-ink); flex: none; }
.day-poi.more { background: var(--tint-gold); color: var(--tint-gold-ink); border-color: transparent; font-weight: 700; }
.day-card details.day-plan { margin-top: 8px; }
.day-card .day-plan > summary { display: inline-flex; width: auto; gap: 6px; padding: 6px 0; color: var(--turq-ink); font-size: calc(13.5px * var(--fz, 1)); font-weight: 700; }
.day-card .day-plan > summary::after { margin-left: 2px; }
.day-free { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; }
.day-free .i { color: var(--gold); }
@media (max-width: 600px) {
  .day-card { grid-template-columns: 54px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .day-side b { font-size: calc(24px * var(--fz, 1)); }
  .day-card .day-w { margin-left: 0; }
}

/* ================= АККАУНТ: анимации ================= */
/* Открытие: профиль выезжает, аватар вкатывается, плитки и разделы появляются по очереди */
#accBox .acc-card { animation: accIn .65s var(--ease-out) .08s backwards; }
#accBox .acc-card .avatar { animation: avatarIn .75s var(--ease-back) .25s backwards; }
#accBox .acc-card .acc-who { animation: rv-slide .55s var(--ease-out) .3s backwards; }
#accBox .acc-out { animation: closeIn .5s var(--ease-back) .4s backwards; }
#accBox .acc-stat { animation: rv-pop .55s var(--ease-out) backwards; }
#accBox .acc-stat:nth-child(1) { animation-delay: .22s; }
#accBox .acc-stat:nth-child(2) { animation-delay: .3s; }
#accBox .acc-stat:nth-child(3) { animation-delay: .38s; }
#accBox .acc-stat i .i { animation: ic-pop .5s var(--ease-back) backwards; }
#accBox .acc-stat:nth-child(1) i .i { animation-delay: .5s; }
#accBox .acc-stat:nth-child(2) i .i { animation-delay: .58s; }
#accBox .acc-stat:nth-child(3) i .i { animation-delay: .66s; }
#accBox .acc-section { animation: rv-slide .55s var(--ease-out) backwards; }
#accBox .acc-section:nth-of-type(1) { animation-delay: .4s; }
#accBox .acc-section:nth-of-type(2) { animation-delay: .48s; }
#accBox .acc-section:nth-of-type(3) { animation-delay: .56s; }
#accBox .acc-login > * { animation: rv-rise .55s var(--ease-out) backwards; }
#accBox .acc-login > :nth-child(2) { animation-delay: .1s; }
#accBox .acc-login > :nth-child(3) { animation-delay: .2s; }
@keyframes accIn { from { opacity: 0; transform: translateY(20px) scale(.97); } }
@keyframes avatarIn { from { opacity: 0; transform: scale(.4) rotate(-25deg); } }
/* Раздел открывается: иконка подпрыгивает и загорается, содержимое проявляется; при закрытии — гаснет */
details.acc-section > summary i { transition: background .25s, color .25s; }
details.acc-section[open]:not(.closing) > summary i { animation: ic-pop .45s var(--ease-back); background: var(--g-h); color: #fff; }
details.closing > :not(summary) { opacity: 0; transform: translateY(-6px); transition: opacity .2s ease, transform .25s ease; }
details.closing > summary::after { transform: none; }

/* ================= КНОПКА «НАЗАД» ================= */
/* Крупная, с подписью, куда ведёт: чтобы никто не терялся, где был до этого */
.back-btn {
  display: inline-flex; align-items: center; gap: 10px; max-width: min(70vw, 340px);
  padding: 6px 16px 6px 6px; border-radius: 999px; cursor: pointer; text-align: left;
  font: inherit; line-height: 1.15; transition: transform .2s var(--ease), box-shadow .2s, background .2s;
}
.back-btn > .i {
  flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 50%; stroke-width: 2.4;
  background: var(--g-gold); color: var(--lapis); transition: transform .3s var(--ease-back);
}
.back-btn span { display: grid; min-width: 0; }
.back-btn b { font-size: calc(15px * var(--fz, 1)); }
.back-btn small { font-size: calc(11.5px * var(--fz, 1)); opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.back-btn:hover > .i, .back-btn:focus-visible > .i { transform: translateX(-3px); }
.back-btn:active { transform: scale(.97); }

/* В окне: слева вверху, напротив крестика */
.m-back {
  position: absolute; left: 12px; top: 12px; z-index: 5; border: 0;
  background: var(--glass); color: var(--glass-ink); box-shadow: 0 2px 12px rgba(0, 0, 0, .22);
  animation: backIn .5s var(--ease-back) .15s backwards;
}
@keyframes backIn { from { opacity: 0; transform: translateX(-16px); } }

/* На вкладках: полоса над содержимым */
.back-bar {
  margin: 0 0 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); box-shadow: var(--shadow);
  animation: backIn .45s var(--ease-out);
}
.back-bar:hover { box-shadow: var(--shadow-lg); }

@media (max-width: 760px) {
  .m-back { position: fixed; top: calc(10px + env(safe-area-inset-top)); left: 12px; }
  .back-btn { max-width: calc(100vw - 90px); }
}
@media print { .back-btn { display: none !important; } }

/* ================= ОФЛАЙН-НАБОРЫ ГОРОДОВ ================= */
.off-btn { position: relative; }
.off-btn.busy { opacity: 1; pointer-events: none; }
.off-btn .off-bar {
  position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--p, 0) * 100%); border-radius: 0 3px 3px 0;
  background: var(--g-gold); transition: width .3s var(--ease-out);
}
.off-btn.busy .i { animation: ic-drop 1.2s var(--ease-out) infinite; }
.off-btn.ready { border-color: rgba(31, 157, 92, .45); background: var(--tint-green); color: var(--green); }
.off-btn.ready .i { color: var(--green); }
.off-chip .i { color: var(--green); }

/* Нет интернета — плашка над нижним меню */
.net-banner {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 1050; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 24px); padding: 9px 16px; border-radius: 999px;
  background: #3a2f12; color: #f7d98b; font-weight: 700; font-size: calc(13.5px * var(--fz, 1)); box-shadow: var(--shadow-lg);
  border: 1px solid rgba(230, 180, 80, .35); animation: bannerIn .5s var(--ease-back);
}
.net-banner.out { transition: opacity .35s, transform .35s; opacity: 0; transform: translate(-50%, 16px); }
@media (min-width: 761px) { .net-banner { bottom: 24px; } }

/* Расстояние и направление до места */
.you-fact { margin: 14px 0; }
.you-dist { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.you-dist b { font-size: calc(18px * var(--fz, 1)); }
.you-arrow {
  width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--g-gold); color: var(--lapis);
  stroke-width: 2.6; transition: transform .6s var(--ease-back);
}

/* Карта без интернета: вместо серого фона — схема-сетка, на ней видны места и ваше положение */
.leaflet-container {
  background-color: var(--bg-2);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ================= ПЛАНШЕТ (до 1000 px): нижнее меню вместо сжатых верхних вкладок ================= */
@media (max-width: 1000px) {
  .topbar .tabs { display: none; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(6, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 650;
    background: rgba(11, 31, 58, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(230, 180, 80, .18);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
    color: #98a9c5; text-decoration: none; font-size: calc(11px * var(--fz, 1)); font-weight: 700; padding: 5px 0 3px; border-radius: 12px; overflow: hidden;
  }
  .bottom-nav a .i { width: 22px; height: 22px; stroke-width: 1.8; transition: transform .2s var(--ease); }
  .bottom-nav a span { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bottom-nav a.active { color: var(--gold-2); }
  .bottom-nav a.active::before { content: ""; position: absolute; top: 0; left: 32%; right: 32%; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); }
  main { padding-bottom: 100px; }
  .ai-fab { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .net-banner { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* Счётчики на главной: иконка сверху, число и подпись под ней — длинным словам хватает места */
@media (min-width: 761px) {
  .stat { grid-template-columns: minmax(0, 1fr); align-items: start; padding: 16px; }
  .stat i { grid-row: auto; margin-bottom: 10px; }
  .stat span { overflow-wrap: normal; hyphens: manual; }
}

/* Плашка на фото карточки — в одну строку */
.card-img .tag { max-width: calc(100% - 20px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ================= ЦЕНЫ НА МЕСТЕ ================= */
.pr-city { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; font-weight: 700; }
.pr-city .i { color: var(--gold-ink); }
.pr-city select { flex: 1 1 200px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; }
.pr-group { margin-top: 18px; }
.pr-group .sec-title { margin: 0 0 10px; }
details.pr-item { margin-bottom: 8px; background: var(--card); border-radius: var(--rad); box-shadow: var(--shadow); overflow: hidden; }
details.pr-item > summary { gap: 12px; padding: 12px 14px; }
details.pr-item > summary::after { margin-left: 4px; }
.pr-item summary > i {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-style: normal;
  background: var(--tint-gold); color: var(--gold-ink);
}
.pr-item summary > i .i { width: 20px; height: 20px; }
.pr-name { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pr-name b { font-size: calc(14.5px * var(--fz, 1)); line-height: 1.3; }
.pr-name small { color: var(--muted); font-size: calc(12px * var(--fz, 1)); line-height: 1.35; }
.pr-val { display: grid; justify-items: end; text-align: right; gap: 2px; flex: none; max-width: 46%; }
.pr-val b { font-size: calc(15px * var(--fz, 1)); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pr-val small { color: var(--muted); font-size: calc(11.5px * var(--fz, 1)); }
.pr-val em { font-style: normal; padding: 1px 7px; border-radius: 999px; background: var(--bg-2); }
.pr-val em.real { background: var(--tint-green); color: var(--green); font-weight: 700; }
.pr-tools { padding: 4px 14px 14px; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.pr-tools label { display: grid; gap: 5px; font-size: calc(13px * var(--fz, 1)); color: var(--muted); font-weight: 600; }
.pr-tools input { padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: calc(17px * var(--fz, 1)); font-weight: 700; }
.pr-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.pr-msg { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 12px; font-weight: 700; line-height: 1.4; animation: rv-pop .4s var(--ease-out); }
.pr-msg .i { flex: none; margin-top: 1px; }
.pr-msg.ok { background: var(--tint-green); color: var(--green); }
.pr-msg.bit { background: var(--tint-gold); color: var(--tint-gold-ink); }
.pr-msg.high { background: var(--tint-red); color: var(--terra); }
.pr-bargain { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); line-height: 1.45; animation: rv-pop .4s var(--ease-out) .1s backwards; }
.pr-bargain .i { flex: none; color: var(--turq-ink); margin-top: 2px; }
.pr-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; line-height: 1.5; }
.pr-note .i { flex: none; margin-top: 2px; }
@media (max-width: 480px) {
  details.pr-item > summary { flex-wrap: wrap; }
  .pr-val { max-width: none; flex-basis: 100%; justify-items: start; text-align: left; padding-left: 52px; }
}
/* Шеврон строки цены — в правом верхнем углу, не переносится на отдельную строку */
details.pr-item > summary { position: relative; padding-right: 36px; }
details.pr-item > summary::after { position: absolute; right: 14px; top: 24px; margin: 0; }

/* ================= КРУПНЫЙ ТЕКСТ (кнопка «Aa» в шапке, класс html.big) ================= */
/* Размеры в стилях заданы в пикселях, поэтому увеличиваем содержимое целиком (zoom): текст, кнопки и поля
   растут пропорционально. Шапку не трогаем — иначе она не поместится на узком экране. */
#bigBtn[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--lapis); }
#bigBtn.bump .i { animation: ic-pop .5s var(--ease-back); }
/* Узбекский Safar (html.fs-text): растут только буквы и значки (размеры шрифтов — calc(… * var(--fz))),
   а ширины и отступы остаются прежними — текст переносится, страница растёт вниз, а не вбок.
   Мекка (без fs-text) пока по-старому — увеличиваем содержимое целиком (zoom). */
:root { --fz: 1; }
html.fs-text main, html.fs-text #modal, html.fs-text .back-btn { --fz: var(--uz, 1); font-size: calc(16px * var(--fz)); }
html.fs-text .leaflet-container { --fz: 1; }
/* Крупный текст: длинное слово переносится, а не раздвигает карточку за край экрана */
html.big.fs-text main, html.big.fs-text #modal { overflow-wrap: break-word; }
html.big.fs-text :is(main, #modal) :is(.chip, .badge) { max-width: 100%; min-width: 0; }
html.big.fs-text .block-head > :not(h2) { flex-shrink: 0; }
html.big.fs-text .block-head h2 { min-width: 0; }
html.big.fs-text .guide-tiles .guide-tile b { overflow-wrap: anywhere; }
html:not(.fs-text) main, html:not(.fs-text) #modalBody, html:not(.fs-text) .back-btn, html:not(.fs-text) .close { zoom: var(--uz, 1); }
html.big .toast, html.big .net-banner, html.big .ios-banner p { font-size: calc(16px * var(--fz, 1)); }
/* Всплывающее сообщение: ширина по тексту, а не половина экрана */
.toast { width: max-content; max-width: calc(100vw - 32px); text-align: center; }
html.big .bottom-nav a { font-size: calc(12.5px * var(--fz, 1)); }
html.big .bottom-nav a .i { width: 25px; height: 25px; }
html.big .ai-fab { zoom: 1.1; }
/* Карты: масштаб компенсируем обратно, чтобы координаты нажатий и плитки работали как обычно */
html:not(.fs-text) .leaflet-container { zoom: calc(1 / var(--uz, 1)); }
/* Подписи и подсказки — контрастнее */
html.big { --muted: #3f4a5c; --faint: #5f6b7d; }
html.big .hint, html.big small { font-weight: 600; }
:root.big[data-theme="dark"] { --muted: #c6d1e2; --faint: #9aaac3; }
@media (prefers-color-scheme: dark) { :root.big:not([data-theme="light"]) { --muted: #c6d1e2; --faint: #9aaac3; } }

/* Шапка на узких экранах: шесть кнопок должны поместиться */
@media (max-width: 400px) {
  .topbar { gap: 6px; padding-left: 10px; padding-right: 10px; }
  .tools { gap: 5px; }
  .icon-btn { width: 32px; height: 32px; }
  .icon-btn .i { width: 16px; height: 16px; }
  .picker-btn { height: 32px; padding: 0 6px 0 3px; gap: 3px; }
  .picker-currency .picker-btn { padding-left: 8px; }
  .picker-chev { width: 13px; height: 13px; }
  .brand-mark { width: 28px; height: 28px; }
}

/* Таблица климата по месяцам — прокрутка вбок, если не помещается (узкий экран, крупный текст) */
.viz-table { overflow-x: auto; }

/* ================= ФОТО В ОТЗЫВАХ ================= */
.rv-add { display: grid; gap: 8px; }
.rv-photo-btn { justify-self: start; cursor: pointer; }
.rv-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.rv-thumbs:empty { display: none; }
.rv-thumb { position: relative; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); animation: rv-pop .35s var(--ease-back); }
.rv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-thumb button {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0, 0, 0, .6); color: #fff;
}
.rv-thumb button .i { width: 14px; height: 14px; }
.rv-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.rv-ph { width: 92px; height: 92px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--bg-2); transition: transform .2s var(--ease-back); }
.rv-ph:hover { transform: scale(1.04); }
.rv-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox {
  position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 16px;
  background: rgba(5, 13, 28, .9); backdrop-filter: blur(4px); cursor: zoom-out; animation: fadeIn .25s ease;
}
.lightbox img { max-width: 100%; max-height: calc(100vh - 32px); border-radius: 14px; box-shadow: var(--shadow-lg); animation: modalIn .4s var(--ease-out); }
.lightbox .close { position: fixed; top: calc(12px + env(safe-area-inset-top)); right: 12px; }
.lightbox.out { animation: fadeOut .25s ease forwards; pointer-events: none; }

/* Напоминания о поездке */
.push-btn.on { border-color: rgba(31, 157, 92, .45); background: var(--tint-green); color: var(--green); }
.push-btn.on .i { color: var(--green); animation: ic-wiggle .6s var(--ease-out); }

/* ================= НАВИГАЦИЯ (js/nav.js) ================= */
.nav-wrap { position: relative; }
#navMap { height: min(56vh, 520px); }
.nav-wrap.following #navMap { height: calc(100vh - 150px); height: calc(100dvh - 150px); }
.nav-sheet { padding: 16px 18px 22px; display: grid; gap: 12px; }
.nav-wrap.following .nav-ends, .nav-wrap.following .nav-modes, .nav-wrap.following .nav-steps, .nav-wrap.following .nav-sum { display: none; }
.nav-ends { display: grid; gap: 8px; position: relative; }
.nav-ends::before { content: ""; position: absolute; left: 6px; top: 20px; bottom: 20px; border-left: 2px dashed var(--line-2); }
.nav-end { display: flex; align-items: center; gap: 12px; }
.nav-end .dot { flex: none; width: 14px; height: 14px; border-radius: 50%; position: relative; z-index: 1; }
.nav-end .dot.from { background: #2f80ed; box-shadow: 0 0 0 4px rgba(47, 128, 237, .2); }
.nav-end .dot.to { background: var(--gold); box-shadow: 0 0 0 4px rgba(230, 180, 80, .25); }
.nav-end span { display: grid; min-width: 0; }
.nav-end small { color: var(--muted); font-size: calc(12px * var(--fz, 1)); }
.nav-end b { display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-end b .i { color: var(--gold-ink); flex: none; }
.nav-modes { margin: 0; width: 100%; }
.nav-modes button { flex: 1; justify-content: center; }
.nav-sum { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-height: 34px; }
.nav-sum > b { font-size: calc(26px * var(--fz, 1)); color: var(--green); }
.nav-sum > span { color: var(--muted); font-weight: 600; }
.nav-sum .skeleton { width: 100%; }
.nav-msg { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: var(--muted); line-height: 1.45; }
.nav-msg .i { flex: none; margin-top: 2px; color: var(--gold-ink); }
.nav-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-acts #navGo { flex: 1 1 180px; padding: 13px 18px; font-size: calc(16px * var(--fz, 1)); }
.nav-wrap.following #navGo { background: var(--terra); color: #fff; }
#navVoice.off { opacity: .6; }
.nav-steps ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.nav-steps li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: calc(14px * var(--fz, 1)); }
.nav-steps li .i { width: 22px; height: 22px; color: var(--turq-ink); }
.nav-steps li small { color: var(--muted); white-space: nowrap; }

/* Подсказка о следующем манёвре — поверх карты */
.nav-banner {
  position: absolute; left: 12px; right: 12px; top: 64px; z-index: 600;
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 18px; color: #fff;
  background: rgba(11, 31, 58, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(230, 180, 80, .3); animation: rv-rise .4s var(--ease-out);
}
.nav-banner .nb-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--g-gold); color: var(--lapis); }
.nav-banner .nb-ic .i { width: 34px; height: 34px; stroke-width: 2.4; }
.nav-banner .nb-txt { display: grid; gap: 2px; min-width: 0; }
.nav-banner .nb-txt b { font-size: calc(24px * var(--fz, 1)); color: var(--gold-2); }
.nav-banner .nb-txt b:empty { display: none; }
.nav-banner .nb-txt span { font-size: calc(15px * var(--fz, 1)); font-weight: 600; line-height: 1.3; }
.nav-banner .nb-left { display: grid; justify-items: end; text-align: right; }
.nav-banner .nb-left small { color: #b9c8de; }
.nav-banner.bump { animation: bump .6s var(--ease-out); }

/* Я на карте: синяя стрелка по направлению движения */
.nav-me { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #2f80ed; color: #fff; border: 3px solid #fff; box-shadow: 0 0 0 8px rgba(47, 128, 237, .25), 0 2px 8px rgba(0, 0, 0, .35); }
.nav-me .i { width: 18px; height: 18px; fill: currentColor; transform: rotate(var(--hd, 0deg)); transition: transform .4s ease; }
.btn.nav-main { border-color: var(--gold); }
.btn.nav-main .i { color: var(--gold-ink); }
@media (max-width: 760px) {
  #navMap { height: 50vh; }
  .nav-banner { top: calc(58px + env(safe-area-inset-top)); grid-template-columns: 48px minmax(0, 1fr) auto; }
  .nav-banner .nb-ic { width: 48px; height: 48px; }
  .nav-banner .nb-txt b { font-size: calc(21px * var(--fz, 1)); }
}

/* План дня: кнопки маршрута */
.plan-acts { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 2px; }

/* ================= ДОКУМЕНТЫ И КОНФИДЕНЦИАЛЬНОСТЬ ================= */
.legal { line-height: 1.7; max-width: 760px; }
.legal section h3 { font-size: calc(18px * var(--fz, 1)); margin: 22px 0 6px; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal a, .legal-accept a, .legal-foot a, .legal-acc a { color: var(--turq-ink); font-weight: 700; }
.legal-note { display: flex; gap: 8px; align-items: center; }
.legal-links { margin-top: 24px; }
.legal-links a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.legal-foot { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.legal-foot a, .legal-acc a { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.legal-acc { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.legal-accept { margin: 0; font-size: calc(12.5px * var(--fz, 1)); line-height: 1.5; }
.btn.danger-btn { color: var(--terra); border-color: rgba(200, 85, 61, .4); }
.btn.danger-btn .i { color: var(--terra); }
.btn.danger-btn:hover { background: var(--tint-red); }

/* ================= СКОРОСТЬ ================= */
/* Маркеры карты не анимируем и не увеличиваем: на телефоне касание = наведение, и маркер «уезжал» из-под пальца,
   а группы маркеров перерисовываются при каждом сдвиге карты. Размытие фона под шапкой и меню на телефонах
   заменено сплошным фоном — оно дорого перерисовывается над картой и списками. */
@media (max-width: 1000px) {
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: #0b1f3a; }
  .bottom-nav { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: #0b1f3a !important; }
  .modal { backdrop-filter: none; }
}
.leaflet-marker-icon, .leaflet-marker-icon * { transition: none; }

/* ================= ПРИВЕТСТВИЕ ПРИ ПЕРВОМ ЗАПУСКЕ ================= */
.onb {
  position: fixed; inset: 0; z-index: 1150; display: grid; place-items: center; padding: 16px;
  background: rgba(5, 13, 28, .78); animation: fadeIn .3s ease;
}
.onb.out { animation: fadeOut .35s ease forwards; pointer-events: none; }
.onb-card {
  position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto;
  padding: 26px 22px 18px; border-radius: var(--r-lg); color: #fff;
  background: radial-gradient(120% 80% at 50% 0%, rgba(79, 209, 224, .22), transparent 60%), linear-gradient(170deg, var(--lapis-2), var(--lapis));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5); border: 1px solid rgba(230, 180, 80, .25); animation: modalIn .5s var(--ease-out);
}
.onb-skip { position: absolute; top: 12px; right: 14px; border: 0; background: none; color: #b9c8de; font-weight: 700; font-size: calc(14px * var(--fz, 1)); padding: 6px; }
.onb-slide { display: grid; gap: 12px; justify-items: center; text-align: center; animation: onbIn .45s var(--ease-out); }
@keyframes onbIn { from { opacity: 0; transform: translateX(26px); } }
.onb-slide h2 { margin: 4px 0 0; font-size: calc(24px * var(--fz, 1)); color: var(--gold-2); }
.onb-slide > p { margin: 0; color: #d3deef; line-height: 1.55; }
.onb-hero { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; background: var(--g-gold); color: var(--lapis); box-shadow: 0 10px 30px rgba(230, 180, 80, .35); }
.onb-hero .i { width: 50px; height: 50px; stroke-width: 1.4; animation: ic-spin 1.4s var(--ease-out) .2s backwards; }
.onb-hero.geo { background: rgba(47, 128, 237, .2); color: #8fc1ff; box-shadow: 0 0 0 12px rgba(47, 128, 237, .1); }
.onb-hero.geo .i { width: 40px; height: 40px; stroke-width: 2; animation: ic-pulse 1.6s ease-in-out infinite; }
.onb-langs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
.onb-langs .chip { justify-content: flex-start; background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .14); color: #fff; padding: 10px 12px; }
.onb-langs .chip b { background: rgba(255, 255, 255, .12); color: #fff; margin: 0 4px 0 0; }
.onb-langs .chip.on { background: var(--g-gold); color: var(--lapis); border-color: transparent; }
.onb-langs .chip.on b { background: rgba(11, 31, 58, .15); color: var(--lapis); }
.onb-big {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: left; font: inherit; color: #fff; cursor: pointer;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06);
}
.onb-big > .i { width: 26px; height: 26px; color: var(--gold-2); flex: none; }
.onb-big span { flex: 1; display: grid; }
.onb-big small { color: #b9c8de; }
.onb-switch { flex: none; width: 46px; height: 26px; border-radius: 999px; background: rgba(255, 255, 255, .2); position: relative; transition: background .2s; }
.onb-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease-back); }
.onb-big.on .onb-switch { background: var(--green); }
.onb-big.on .onb-switch::after { transform: translateX(20px); }
.onb-feats { display: grid; gap: 10px; width: 100%; text-align: left; }
.onb-feat { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); animation: rv-slide .5s var(--ease-out) backwards; animation-delay: calc(var(--n) * 90ms); }
.onb-feat i { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-style: normal; background: var(--g-gold); color: var(--lapis); }
.onb-feat i .i { width: 22px; height: 22px; }
.onb-feat span { display: grid; gap: 2px; }
.onb-feat small { color: #b9c8de; line-height: 1.4; }
.onb-geo-btn { width: 100%; padding: 13px; font-size: calc(16px * var(--fz, 1)); }
.onb-geo-btn.done { background: var(--green); color: #fff; }
.onb-geo-note { display: flex; gap: 6px; align-items: flex-start; text-align: left; color: #9fb0cc !important; }
.onb-geo-note .i { flex: none; margin-top: 2px; color: var(--green); }
.onb-foot { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin-top: 20px; }
.onb-foot [data-onb-prev] { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .16); }
.onb-foot [data-onb-prev].hidden { display: inline-flex !important; visibility: hidden; }
.onb-foot [data-onb-next] { padding: 12px 20px; }
.onb-dots { display: flex; justify-content: center; gap: 6px; }
.onb-dots i { width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .25); transition: width .3s var(--ease-out), background .3s; }
.onb-dots i.on { width: 24px; background: var(--gold); }

/* ================= АНИМАЦИИ ЗАКРЫТИЯ ================= */
/* Всё, что красиво открывается, так же плавно закрывается */
.picker-menu.closing { animation: pickerOut .17s ease forwards; pointer-events: none; }
@keyframes pickerOut { to { opacity: 0; transform: translateY(-8px) scale(.95); } }
.search-results.closing { animation: dropOut .18s ease forwards; pointer-events: none; }
@keyframes dropOut { to { opacity: 0; transform: translateY(-6px) scaleY(.96); } }
.toast { transition: opacity .25s ease, transform .35s var(--ease-out); }
.toast:not(.show) { transform: translate(-50%, 16px) scale(.96); }
/* Окна на карте: только прозрачность — положение Leaflet задаёт через transform, его трогать нельзя */
.leaflet-popup { animation: popupIn .25s ease; }
@keyframes popupIn { from { opacity: 0; } }

/* ================= СОГЛАСИЕ НА ДАННЫЕ ================= */
.consent-bar { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 1200; max-width: 560px; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center; padding: 14px 40px 14px 14px; overflow: hidden;
  background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  animation: csBarIn .45s var(--ease); }
.consent-bar.out { animation: csBarOut .16s ease forwards; pointer-events: none; }
@keyframes csBarIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes csBarOut { to { opacity: 0; transform: translateY(24px) scale(.97); } }
.consent-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tint-gold); color: var(--gold-ink); }
.consent-ic .i { width: 22px; height: 22px; }
.consent-bar p { margin: 0; display: grid; gap: 2px; font-size: calc(.9rem * var(--fz, 1)); line-height: 1.35; }
.consent-bar p small { color: var(--muted); font-size: calc(.82rem * var(--fz, 1)); }
.consent-acts { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; }
.consent-x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.consent-x .i { width: 16px; height: 16px; }
/* Полоска: сколько осталось до автоскрытия */
.consent-timer { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--gold); opacity: .6; transform-origin: left; animation: csTimer 20s linear forwards; }
.consent-bar.hold .consent-timer { animation-play-state: paused; }
@keyframes csTimer { to { transform: scaleX(0); } }
@media (min-width: 1001px) { .consent-bar { bottom: 20px; } }

.consent-dlg { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 16px; background: rgba(10,14,20,.55); animation: csFade .25s ease; }
.consent-dlg.out { animation: csFadeOut .16s ease forwards; pointer-events: none; }
.consent-dlg.out .consent-card { animation: csCardOut .16s ease forwards; }
@keyframes csFade { from { opacity: 0; } }
@keyframes csFadeOut { to { opacity: 0; } }
.consent-card { width: min(420px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--card); color: var(--text); border-radius: 24px; padding: 26px 22px 18px; text-align: center;
  display: grid; gap: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: csCardIn .4s var(--ease); }
@keyframes csCardIn { from { opacity: 0; transform: translateY(20px) scale(.94); } }
@keyframes csCardOut { to { opacity: 0; transform: translateY(14px) scale(.95); } }
.consent-hero { width: 64px; height: 64px; margin: 0 auto 4px; border-radius: 20px; display: grid; place-items: center; background: var(--tint-gold); color: var(--gold-ink); }
.consent-hero .i { width: 32px; height: 32px; }
.consent-card h2 { margin: 0; font-size: calc(1.25rem * var(--fz, 1)); }
.consent-card p { margin: 0; color: var(--muted); line-height: 1.45; }
.consent-card ul { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 8px; text-align: left; }
.consent-card li { display: flex; gap: 10px; align-items: flex-start; font-size: calc(.92rem * var(--fz, 1)); line-height: 1.35; }
.consent-card li .i { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--gold-ink); }
.consent-card .btn { width: 100%; justify-content: center; }
.consent-link { color: var(--muted); font-size: calc(.88rem * var(--fz, 1)); text-decoration: underline; padding: 4px; }
@media (prefers-reduced-motion: reduce) { .consent-bar, .consent-dlg, .consent-card, .consent-timer { animation: none !important; } }

/* ================= СОБРАТЬ ПОЕЗДКУ ================= */
.qt-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); background-image: var(--ornament); background-position: right -20px top -20px; background-repeat: no-repeat; }
.qt-box h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.qt-box h2 .i { color: var(--gold-ink); }
.qt-form { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 10px; align-items: end; margin-top: 12px; }
.qt-form label { display: grid; gap: 4px; font-size: calc(.82rem * var(--fz, 1)); color: var(--muted); min-width: 0; }
.qt-form select, .qt-form input { width: 100%; min-width: 0; }
@media (max-width: 640px) { .qt-form { grid-template-columns: 1fr 1fr; } .qt-form .btn { grid-column: 1 / -1; } }
.qt-card { margin-top: 14px; padding: 16px; border-radius: var(--radius); background: var(--tint-gold); color: var(--text); display: grid; gap: 10px; animation: csCardIn .35s var(--ease); }
.qt-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.qt-chain span { display: grid; line-height: 1.2; }
.qt-chain small { color: var(--muted); font-size: calc(.75rem * var(--fz, 1)); }
.qt-chain > .i { width: 16px; height: 16px; color: var(--gold-ink); }
.qt-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: calc(.9rem * var(--fz, 1)); }
.qt-meta span { display: inline-flex; align-items: center; gap: 6px; }
.qt-sum { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-weight: 600; }
.qt-parts { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .86em; color: var(--muted); }
.qt-parts span { display: inline-flex; gap: 5px; align-items: center; }
.qt-sum.ok .i { color: var(--green); } .qt-sum.over .i { color: var(--terra); }
.qt-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.qt-acts .btn { flex: 1 1 auto; justify-content: center; }
.qt-acts small { opacity: .7; font-weight: 600; }

/* ================= СВАЙПЫ ================= */
/* Соседний раздел, который выезжает из-за края за пальцем */
.tab.swipe-peer { display: block; position: fixed; z-index: 5; height: 100vh; overflow: hidden; animation: none; background: var(--bg); will-change: transform; }
.tab.swiped, .tab.swiped.active { animation: none; }
html.swiping, body.swiping { overflow-x: hidden; }
/* Стрелка «Назад» при свайпе от левого края */
.swipe-back { position: fixed; left: 0; top: 50%; z-index: 1400; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%;
  display: grid; place-items: center; background: var(--card); color: var(--text); box-shadow: var(--shadow-lg); pointer-events: none;
  transform: translateX(calc(-46px + var(--p, 0) * 64px)) scale(calc(.6 + var(--p, 0) * .4)); opacity: calc(.3 + var(--p, 0) * .7); }
.swipe-back .i { width: 22px; height: 22px; }
.swipe-back.ready { background: var(--gold); color: #1b1404; }
.swipe-back.out { transition: opacity .18s ease, transform .18s ease; opacity: 0; transform: translateX(-46px) scale(.6); }

/* ================= ОФЛАЙН: ФОНОВОЕ СОХРАНЕНИЕ ================= */
.auto-status { display: grid; gap: 8px; margin-bottom: 14px; padding: 12px 14px; border-radius: var(--radius); background: var(--tint-gold); color: var(--text); animation: autoIn .35s var(--ease); }
.auto-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.auto-head > .i { color: var(--gold-ink); flex: none; }
.auto-head b { flex: 1; min-width: 0; font-size: calc(.92rem * var(--fz, 1)); }
.auto-bar { display: block; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; position: relative; }
.auto-bar::after { content: ""; position: absolute; inset: 0; width: calc(var(--p, 0) * 100%); border-radius: inherit; background: var(--gold); transition: width .5s var(--ease); }
.auto-status.running .auto-bar::after { background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); background-color: var(--gold); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.auto-status .hint { margin: 0; }
.acc-body .auto-status { margin: 0; }
@keyframes autoIn { from { opacity: 0; transform: translateY(6px); } }

/* ================= ДЕЛЁЖ РАСХОДОВ ================= */
.split { margin-top: 18px; }
.split .block-head { flex-wrap: wrap; }
.split .block-head h2 > .i { color: var(--gold-ink); }
.sp-people { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.sp-person { display: inline-flex; align-items: center; gap: 6px; padding-right: 4px; animation: spIn .3s var(--ease); }
.sp-person button, .sp-del { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; padding: 0; transition: background .2s, color .2s; }
.sp-person button:hover, .sp-del:hover { background: var(--line); color: var(--text); }
.sp-person button .i, .sp-del .i { width: 15px; height: 15px; }
.sp-add-person { display: flex; gap: 6px; flex: 1 1 220px; min-width: 0; }
.sp-add-person input { flex: 1; min-width: 0; }
.sp-add { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; align-items: end; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); animation: spIn .3s var(--ease); }
.sp-add input, .sp-add select { width: 100%; min-width: 0; }
.sp-amt { position: relative; display: block; }
.sp-amt input { padding-right: 52px; }
.sp-amt span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: calc(.8rem * var(--fz, 1)); font-weight: 700; pointer-events: none; }
.sp-by { display: grid; gap: 4px; font-size: calc(.82rem * var(--fz, 1)); color: var(--muted); }
.sp-for { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: calc(.9rem * var(--fz, 1)); }
.sp-for > span { color: var(--muted); font-size: calc(.82rem * var(--fz, 1)); width: 100%; }
.sp-for label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.sp-add .btn { grid-column: 1 / -1; justify-self: start; }
.sp-empty { padding: 20px; display: flex; justify-content: center; }
.sp-items { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.sp-items li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--bg, transparent); border: 1px solid var(--line); animation: spIn .3s var(--ease); }
.sp-items li.closing { animation: spOut .2s var(--ease) forwards; }
.sp-items li > div { flex: 1; min-width: 0; display: grid; }
.sp-items li small { color: var(--muted); font-size: calc(.78rem * var(--fz, 1)); overflow-wrap: anywhere; }
.sp-sum { display: grid; text-align: right; font-weight: 700; white-space: nowrap; }
.sp-sum small { font-weight: 500; }
.sp-result { margin-top: 14px; padding: 14px; border-radius: var(--radius); background: var(--tint-gold); display: grid; gap: 10px; }
.sp-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sp-total b { font-size: calc(1.3rem * var(--fz, 1)); color: var(--gold-ink); }
.sp-bal { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: calc(.88rem * var(--fz, 1)); }
.sp-bal .plus b { color: var(--green); }
.sp-bal .minus b { color: var(--terra); }
.sp-result h3 { margin: 4px 0 0; display: flex; align-items: center; gap: 8px; font-size: calc(1rem * var(--fz, 1)); }
.sp-result h3 .i { color: var(--gold-ink); }
.sp-moves { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.sp-moves li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border-radius: 12px; background: var(--card); animation: spIn .3s var(--ease); }
.sp-moves li .i { width: 16px; height: 16px; color: var(--gold-ink); }
.sp-moves li span { margin-left: auto; font-weight: 800; }
.sp-result > .btn { justify-self: start; }
.sp-even { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--green); font-weight: 600; }
@keyframes spIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes spOut { to { opacity: 0; transform: translateX(16px); } }
@media (max-width: 640px) {
  .sp-add { grid-template-columns: 1fr 1fr; }
  .sp-add > input[name=what] { grid-column: 1 / -1; }
}
@media print { .split { display: none; } }

/* Поля «Собрать поездку» и «Делёж расходов» — как остальные формы приложения */
.qt-form input, .qt-form select, .sp-add input:not([type=checkbox]), .sp-add select, .sp-add-person input {
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); min-height: 44px; }
.sp-amt input { padding-right: 52px; }

/* ================= ПОЕЗДА, «БЕЗОПАСНО ЛИ?», ПЕРЕД ПОЕЗДКОЙ ================= */
.tn-list { display: grid; gap: 10px; margin: 12px 0; }
.tn-row { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); display: grid; gap: 6px;
  animation: fadeup .35s var(--ease) both; animation-delay: calc(var(--n, 0) * 40ms); }
.tn-cities { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tn-cities .i { width: 16px; height: 16px; color: var(--gold-ink); }
.tn-opts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: calc(.9rem * var(--fz, 1)); color: var(--muted); }
.tn-opts span { display: inline-flex; align-items: center; gap: 6px; }
.tn-opts .i { width: 16px; height: 16px; }
.tn-note { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: calc(.88rem * var(--fz, 1)); margin: 10px 0; }
.tn-note .i { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.tn-buy { width: 100%; justify-content: center; }
.sf-list { display: grid; gap: 8px; margin: 12px 0; }
.sf-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 0 14px; }
.sf-item summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; }
.sf-item summary::-webkit-details-marker { display: none; }
.sf-item summary i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--tint-gold); color: var(--gold-ink); flex: none; }
.sf-item summary i .i { width: 18px; height: 18px; }
.sf-item summary::after { content: ""; margin-left: auto; width: 16px; height: 16px; background: currentColor; opacity: .5;
  -webkit-mask: var(--chevron) center / contain no-repeat; mask: var(--chevron) center / contain no-repeat; transition: transform .25s var(--ease); }
.sf-item[open] summary::after { transform: rotate(180deg); }
.sf-item p { margin: 0 0 12px; line-height: 1.5; color: var(--text); }
.sf-item .btn { margin: 0 6px 12px 0; }
.trip-extras { margin-top: 18px; }
.trip-extras h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.trip-extras h3 .i { color: var(--gold-ink); }
.trip-extras-btns { display: flex; flex-wrap: wrap; gap: 8px; }
@media print { .trip-extras { display: none; } }

/* ================= НАСТРОЙКИ ОТОБРАЖЕНИЯ («Aa») ================= */
html[data-font="nunito"] { --font: "Nunito", system-ui, sans-serif; }
html[data-font="atkinson"] { --font: "Atkinson Hyperlegible", system-ui, sans-serif; }
html[data-font="system"] { --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
html.bold-text body { font-weight: 600; }
html.bold-text .hint, html.bold-text small, html.bold-text p { font-weight: 600; }
html.airy body { line-height: 1.75; }
html.airy p, html.airy li { line-height: 1.8; }
/* Меньше движения: без анимаций и плавных переходов */
html.calm *, html.calm *::before, html.calm *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
html.calm .rv { opacity: 1 !important; transform: none !important; }

.ds-sheet { position: fixed; inset: 0; z-index: 1250; display: flex; align-items: flex-end; justify-content: center; background: rgba(10,14,20,.5); animation: csFade .22s ease; }
.ds-sheet.out { animation: csFadeOut .24s ease forwards; pointer-events: none; }
.ds-card { width: min(520px, 100%); max-height: 88dvh; overflow: auto; background: var(--card); color: var(--text); border-radius: 24px 24px 0 0;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -20px 60px rgba(0,0,0,.3); animation: dsUp .35s var(--ease); }
.ds-sheet.out .ds-card { animation: dsDown .24s ease forwards; }
@keyframes dsUp { from { transform: translateY(100%); } }
@keyframes dsDown { to { transform: translateY(100%); } }
@media (min-width: 700px) { .ds-sheet { align-items: center; } .ds-card { border-radius: 24px; } }
.ds-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ds-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: calc(1.2rem * var(--fz, 1)); }
.ds-head h2 .i { color: var(--gold-ink); }
.ds-x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; }
.ds-x .i { width: 18px; height: 18px; }
.ds-preview { margin: 12px 0 4px; padding: 12px 14px; border-radius: 14px; background: var(--tint-gold); color: var(--text); }
.ds-card h3 { margin: 16px 0 8px; font-size: calc(.85rem * var(--fz, 1)); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ds-seg { display: flex; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; }
.ds-seg button { flex: 1; min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 6px; transition: background .2s, color .2s; min-width: 0; }
.ds-seg button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-seg button.on { background: var(--gold); color: #1b1404; }
.ds-seg button .i { width: 16px; height: 16px; }
.ds-switches { display: grid; gap: 8px; margin-top: 16px; }
.ds-switch { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: transparent; color: var(--text); text-align: left; }
.ds-switch > i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--tint-gold); color: var(--gold-ink); flex: none; }
.ds-switch > i .i { width: 18px; height: 18px; }
.ds-switch span { display: grid; gap: 2px; flex: 1; }
.ds-switch small { color: var(--muted); font-size: calc(.8rem * var(--fz, 1)); }
.ds-switch em { flex: none; width: 44px; height: 26px; border-radius: 99px; background: var(--line); position: relative; transition: background .2s; }
.ds-switch em::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.ds-switch.on em { background: var(--gold); }
.ds-switch.on em::after { transform: translateX(18px); }
/* Панель настроек сама не масштабируется — чтобы кнопки размера не уезжали */
#dispSheet { zoom: 1; }
.ds-seg-font { display: grid; grid-template-columns: 1fr 1fr; }

/* ================= МЕНЮ «ОФЛАЙН» (#offline) ================= */
.off-menu .ds-switch { margin-bottom: 10px; }
.off-menu .auto-slot:empty { display: none; }
.off-count { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; background: var(--tint-gold); color: var(--gold-ink); font-size: calc(.8rem * var(--fz, 1)); display: inline-grid; place-items: center; }
.off-count:empty { display: none; }
.off-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.off-list li { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.off-list li.closing { animation: offOut .22s var(--ease) forwards; pointer-events: none; }
.off-list li > a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-height: 44px; }
.off-list li > a > .i { flex: none; width: 20px; height: 20px; color: var(--green); }
.off-found li > a > .i { color: var(--gold-ink); }
.off-list li > a span { display: grid; min-width: 0; }
.off-list li > a b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.off-list li > a small { color: var(--muted); font-size: calc(.78rem * var(--fz, 1)); overflow-wrap: anywhere; }
.off-list .btn { flex: none; min-height: 36px; }
.off-del:hover { color: var(--terra); border-color: var(--terra); }
.off-empty { padding: 20px; display: flex; justify-content: center; gap: 8px; }
.off-search { display: block; width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); min-height: 44px; margin-bottom: 10px; }
.off-search:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.off-menu > .hint .i { width: 15px; height: 15px; vertical-align: -3px; }
/* Кнопка «Офлайн-города» в «Избранном» */
.off-link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 16px; border-radius: var(--r-lg, var(--radius)); background: var(--tint-gold); color: var(--text); text-decoration: none; box-shadow: var(--shadow); transition: transform .2s var(--ease); animation: offIn .35s var(--ease); }
.off-link:hover { transform: translateY(-2px); }
.off-link > .i:first-child { flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--gold); color: #1b1404; }
.off-link span { flex: 1; min-width: 0; display: grid; }
.off-link small { color: var(--muted); font-size: calc(.8rem * var(--fz, 1)); }
.off-link em { font-style: normal; font-weight: 800; color: var(--gold-ink); }
.off-link > .i:last-child { width: 18px; height: 18px; color: var(--muted); }
@keyframes offIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes offOut { to { opacity: 0; transform: translateX(16px); } }

/* ================= НЕДАВНО СМОТРЕЛИ ================= */
.recent .block-head h2 > .i { color: var(--gold-ink); }
.recent.closing { animation: offOut .22s var(--ease) forwards; }
.rc-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 12px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
.rc-card { display: grid; gap: 4px; align-content: start; color: var(--text); text-decoration: none; scroll-snap-align: start; min-width: 0; }
.rc-img { display: grid; place-items: center; height: 100px; border-radius: var(--radius); box-shadow: var(--shadow); color: #fff; transition: transform .25s var(--ease); }
.rc-img .i { width: 30px; height: 30px; stroke-width: 1.5; }
.rc-card:hover .rc-img { transform: translateY(-3px); }
.rc-card b { font-size: calc(.92rem * var(--fz, 1)); line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rc-card small { color: var(--muted); font-size: calc(.76rem * var(--fz, 1)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) { .rc-strip { grid-auto-columns: 132px; } .rc-img { height: 88px; } }

/* ================= ЧЕК-ЛИСТ СБОРОВ ================= */
.packing { margin-top: 18px; }
.packing .block-head { flex-wrap: wrap; margin-bottom: 8px; }
.packing .block-head h2 > .i { color: var(--gold-ink); }
.pk-count { font-weight: 800; color: var(--gold-ink); background: var(--tint-gold); padding: 4px 10px; border-radius: 99px; font-size: calc(.85rem * var(--fz, 1)); transition: background .3s, color .3s; }
.pk-count.all { background: var(--tint-green); color: var(--green); }
.pk-bar { display: block; height: 6px; border-radius: 99px; background: var(--line); position: relative; overflow: hidden; }
.pk-bar::after { content: ""; position: absolute; inset: 0; width: calc(var(--p, 0) * 100%); border-radius: inherit; background: var(--gold); transition: width .4s var(--ease); }
.pk-season { display: flex; align-items: center; gap: 6px; margin: 10px 0; }
.pk-season .i { width: 16px; height: 16px; color: var(--gold-ink); flex: none; }
.pk-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; }
.pk-list li { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 12px; transition: background .2s, border-color .2s; }
.pk-list li.closing { animation: offOut .2s var(--ease) forwards; }
.pk-list label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px 12px; min-height: 44px; cursor: pointer; }
.pk-list input { width: 20px; height: 20px; flex: none; accent-color: var(--gold); margin: 0; }
.pk-list label > i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--tint-gold); color: var(--gold-ink); flex: none; }
.pk-list label > i .i { width: 16px; height: 16px; }
.pk-list label span { overflow-wrap: anywhere; transition: color .2s; }
.pk-list li.done { background: var(--tint-green); border-color: transparent; }
.pk-list li.done label span { color: var(--muted); text-decoration: line-through; }
.pk-list li.done label > i { background: transparent; color: var(--green); }
.pk-del { display: grid; place-items: center; width: 36px; height: 36px; margin-right: 4px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; padding: 0; flex: none; }
.pk-del:hover { background: var(--line); color: var(--text); }
.pk-del .i { width: 15px; height: 15px; }
.pk-add { display: flex; gap: 8px; margin-top: 12px; }
.pk-add input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); min-height: 44px; }
.pk-add .btn { flex: none; }
.pk-note { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; color: var(--muted); font-size: calc(.88rem * var(--fz, 1)); }
.pk-note .i { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--gold-ink); }
@media (max-width: 400px) { .pk-list { grid-template-columns: 1fr; } }
@media print { .packing .pk-add, .pk-del { display: none; } }

/* ================= СООБЩИТЬ ОБ ОШИБКЕ ================= */
.rp-open { margin: 4px 0 16px; color: var(--muted); }
.rp-open .i { color: var(--terra); }
.rp-card { display: grid; gap: 10px; }
.rp-card > .hint { margin: 0; }
.rp-reasons { display: grid; gap: 6px; }
.rp-reason { display: flex; align-items: center; gap: 10px; padding: 8px 12px; min-height: 48px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.rp-reason input { width: 18px; height: 18px; accent-color: var(--gold); margin: 0; flex: none; }
.rp-reason > i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--tint-gold); color: var(--gold-ink); flex: none; }
.rp-reason > i .i { width: 16px; height: 16px; }
.rp-reason:has(input:checked) { border-color: var(--gold); background: var(--tint-gold); }
.rp-comment { display: grid; gap: 6px; font-size: calc(.88rem * var(--fz, 1)); color: var(--muted); }
.rp-comment textarea { padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); min-height: 88px; resize: vertical; font-size: calc(15px * var(--fz, 1)); }
.rp-left { justify-self: end; font-size: calc(.76rem * var(--fz, 1)); }
.rp-send { justify-content: center; }
.rp-send:disabled { opacity: .6; }
.rp-privacy { display: flex; gap: 6px; align-items: center; margin: 0; font-size: calc(.8rem * var(--fz, 1)); }
.rp-privacy .i { width: 14px; height: 14px; flex: none; }

/* ================= ДЛИННЫЕ СПИСКИ: не отрисовывать то, что за экраном ================= */
/* Браузер пропускает отрисовку (и фоновые фото) карточек вне экрана; «auto» запоминает настоящую высоту.
   Появление .rv не ломается: наблюдатель видит карточку по её примерной высоте */
.grid > .card { content-visibility: auto; contain-intrinsic-size: auto 330px; }
.list > .row { content-visibility: auto; contain-intrinsic-size: auto 130px; }

/* ================= ПОКАЗАТЬ ТАКСИСТУ ================= */
.taxi-card-btn { margin-top: 8px; }
.tc { position: fixed; inset: 0; z-index: 1350; background: #fffdf6; color: #111; display: flex; flex-direction: column; justify-content: center;
  padding: 24px 22px calc(24px + env(safe-area-inset-bottom)); overflow: auto; text-align: center; animation: csFade .25s ease; }
.tc.out { animation: csFadeOut .22s ease forwards; pointer-events: none; }
.tc h2 { font-size: calc(clamp(30px, 9vw, 52px) * min(var(--fz, 1), 1.15)); line-height: 1.15; margin: 4px 0; color: #111; overflow-wrap: anywhere; }
.tc-ask { margin: 22px 0 0; font-size: calc(18px * var(--fz, 1)); color: #555; }
.tc-city { margin: 2px 0 0; font-size: calc(22px * var(--fz, 1)); font-weight: 700; color: #a8761a; }
.tc-addr { margin: 24px 0 0; font-size: calc(20px * var(--fz, 1)); color: #333; }
.tc-hint { position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 0; right: 0; margin: 0; font-size: calc(13px * var(--fz, 1)); color: #888; }
.tc-x { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #ddd; background: #fff; color: #111; display: grid; place-items: center; }
.tc-x .i { width: 20px; height: 20px; }

/* ================= ЧАЕВЫЕ И СЧЁТ ================= */
.tipcalc { margin-top: 20px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); display: grid; gap: 12px; }
.tipcalc h3 { display: flex; align-items: center; gap: 8px; margin: 0; }
.tipcalc h3 .i { color: var(--gold-ink); }
.tipcalc .hint { margin: 0; }
.tip-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.tip-grid label { display: grid; gap: 4px; font-size: calc(.82rem * var(--fz, 1)); color: var(--muted); min-width: 0; }
.tip-grid input { padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); min-height: 44px; width: 100%; min-width: 0; font-size: calc(18px * var(--fz, 1)); font-weight: 700; }
.tip-steps { display: flex; gap: 8px; flex-wrap: wrap; }
.tip-steps .chip { min-height: 40px; min-width: 64px; justify-content: center; }
.tip-out { display: grid; gap: 6px; }
.tip-out > div { display: flex; justify-content: space-between; gap: 10px; }
.tip-out span { color: var(--muted); }
.tip-out .tip-each { padding-top: 8px; border-top: 1px dashed var(--line); font-size: calc(1.15rem * var(--fz, 1)); }
.tip-out .tip-each b { color: var(--gold-ink); }
.tip-out .hint { display: flex; gap: 6px; align-items: flex-start; }
.tip-out .hint .i { flex: none; width: 16px; height: 16px; margin-top: 2px; }

/* ================= ДЛЯ БИЗНЕСА ================= */
.bz-perks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 6px 0 18px; }
.bz-perk { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  animation: fadeup .35s var(--ease) both; animation-delay: calc(var(--n, 0) * 50ms); }
.bz-perk > i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tint-gold); color: var(--gold-ink); flex: none; }
.bz-perk span { display: grid; gap: 2px; }
.bz-perk small { color: var(--muted); }
.bz-steps { margin: 8px 0 16px; padding-left: 22px; display: grid; gap: 8px; line-height: 1.5; }
.bz-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.bz-cta .btn { flex: 1 1 220px; justify-content: center; }

/* ================= QR-ПОСТЕР ================= */
.poster-tools { display: grid; gap: 8px; margin-bottom: 14px; }
.poster { background: #fffdf6; color: #14213d; border-radius: 18px; padding: 28px 22px; text-align: center; display: grid; gap: 14px; justify-items: center;
  border: 2px solid #e6b450; background-image: var(--ornament); background-size: 56px; }
.poster-brand { display: flex; align-items: center; gap: 10px; font: 800 30px "Cinzel", serif; letter-spacing: .16em; color: #0b1f3a; }
.poster-brand .i { width: 38px; height: 38px; color: #c98f22; }
.poster h1 { margin: 0; font-size: calc(clamp(22px, 6vw, 34px) * min(var(--fz, 1), 1.15)); color: #0b1f3a; }
.poster-langs { margin: 0; display: grid; gap: 4px; font-size: calc(15px * var(--fz, 1)); line-height: 1.4; }
.poster-qr { width: min(300px, 78vw); aspect-ratio: 1; background: #fff; padding: 10px; border-radius: 14px; display: grid; place-items: center; box-shadow: 0 6px 24px rgba(11,31,58,.12); }
.poster-qr svg { width: 100%; height: 100%; }
.poster-url { margin: 0; font-weight: 700; font-size: calc(18px * var(--fz, 1)); color: #a8761a; word-break: break-all; }
.poster-feats { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.poster-feats span { padding: 4px 10px; border-radius: 99px; background: #fff3d6; color: #8a6210; font-weight: 700; font-size: calc(13px * var(--fz, 1)); }


/* ================= ПРАЗДНИКИ ================= */
.hd-note { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--tint-gold); color: var(--text); font-size: calc(.9rem * var(--fz, 1)); line-height: 1.4; }
.hd-note .i { flex: none; width: 18px; height: 18px; color: var(--gold-ink); margin-top: 1px; }
.hd-trip { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.hd-trip p { margin: 0 0 6px; display: flex; gap: 6px; align-items: center; }
.hd-trip ul { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 4px; }

/* ================= ПАСПОРТ ПУТЕШЕСТВЕННИКА ================= */
.checkin-btn { width: 100%; justify-content: center; margin-bottom: 14px; }
.pp-medals { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 8px 0 20px; }
.pp-medal { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 14px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); opacity: .55;
  animation: fadeup .35s var(--ease) both; animation-delay: calc(var(--n, 0) * 50ms); }
.pp-medal.on { opacity: 1; border-color: var(--gold); }
.pp-medal i { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--muted); }
.pp-medal.on i { background: var(--g-gold); color: #1b1404; box-shadow: 0 6px 18px rgba(230,180,80,.35); }
.pp-medal i .i { width: 26px; height: 26px; }
.pp-medal small { color: var(--muted); font-size: calc(.78rem * var(--fz, 1)); }
.pp-stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; margin: 10px 0 16px; }
.pp-stamp { display: grid; place-items: center; text-align: center; aspect-ratio: 1; border: 3px double var(--gold-ink); border-radius: 50%; color: var(--gold-ink); padding: 10px;
  transform: rotate(var(--r, 0deg)); text-decoration: none; text-transform: uppercase; letter-spacing: .04em; animation: ppStamp .45s var(--ease) both; animation-delay: calc(var(--n, 0) * 70ms); }
.pp-stamp b { font-size: calc(.95rem * var(--fz, 1)); line-height: 1.15; }
.pp-stamp small { font-size: calc(.72rem * var(--fz, 1)); opacity: .8; }
@keyframes ppStamp { from { opacity: 0; transform: rotate(var(--r, 0deg)) scale(1.6); } }

/* «Aa»: панель обновляется на месте — плавные переходы вместо мигания */
.ds-card.ds-static { animation: none; }
.ds-head { position: sticky; top: -18px; z-index: 2; margin: -18px -18px 0; padding: 18px 18px 10px; background: var(--card); }
.ds-preview { margin: 6px 0 4px; padding: 12px 14px; border-radius: 14px; background: var(--tint-gold); color: var(--text); min-height: 74px; }
.ds-preview small { display: block; color: var(--gold-ink); font-size: calc(11px * var(--fz, 1)); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.ds-preview p { margin: 0; transition: font-size .2s var(--ease), line-height .2s var(--ease); }
.ds-card h3 { display: flex; align-items: center; justify-content: space-between; }
.ds-val { color: var(--gold-ink); font-weight: 800; text-transform: none; letter-spacing: 0; font-size: calc(.9rem * var(--fz, 1)); }
.ds-seg button, .ds-switch, .ds-switch em, .ds-switch em::after { transition: background .2s ease, color .2s ease, transform .25s var(--ease), border-color .2s ease; }
.ds-seg button:active, .ds-switch:active { transform: scale(.97); }
.ds-switch.on { border-color: var(--gold); }
.ds-foot { position: sticky; bottom: calc(-18px - env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin: 16px -18px calc(-18px - env(safe-area-inset-bottom)); padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); }
.ds-foot .btn { justify-content: center; }

/* ================= «ПОЕЗДКА»: ШАГИ, ПУСТОЕ СОСТОЯНИЕ, ВКЛАДКИ ================= */
.step-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; margin-right: 8px; flex: none;
  background: var(--gold); color: #1b1404; font-size: calc(14px * var(--fz, 1)); font-weight: 800; vertical-align: middle; }
#tab-budget h3, #tab-budget .trip-days h2, .trip-more h2 { display: flex; align-items: center; gap: 6px; }
/* Пустая поездка: только подсказка и строка добавления города */
.trip-empty { display: none; }
#tab-budget.trip-is-empty .trip-empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 26px 18px 22px; margin-bottom: 14px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); animation: fadeup .4s var(--ease); }
#tab-budget.trip-is-empty .panel.result, #tab-budget.trip-is-empty .trip-days, #tab-budget.trip-is-empty .trip-more,
#tab-budget.trip-is-empty #routeMap, #tab-budget.trip-is-empty #routeList, #tab-budget.trip-is-empty .trip-date { display: none !important; }
#tab-budget.trip-is-empty .budget { grid-template-columns: 1fr; }
.te-hero { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--tint-gold); color: var(--gold-ink); }
.te-hero .i { width: 32px; height: 32px; }
.trip-empty h2 { margin: 4px 0 0; }
.trip-empty > p { margin: 0; color: var(--muted); max-width: 440px; }
.te-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 640px; margin-top: 10px; }
.te-way { display: grid; justify-items: center; gap: 4px; padding: 16px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--text);
  transition: border-color .2s, transform .2s var(--ease); }
.te-way:hover { border-color: var(--gold); transform: translateY(-2px); }
.te-way i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--tint-gold); color: var(--gold-ink); }
.te-way small { color: var(--muted); font-size: calc(.8rem * var(--fz, 1)); }
@media (max-width: 560px) { .te-ways { grid-template-columns: 1fr; } .te-way { grid-template-columns: auto 1fr; justify-items: start; text-align: left; column-gap: 12px; } .te-way i { grid-row: span 2; } }
.te-or { margin: 12px 0 0 !important; font-size: calc(.88rem * var(--fz, 1)); }
.te-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
/* Настройки бюджета — одной строкой, раскрываются по нажатию */
.trip-settings { margin: 14px 0 10px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 14px; }
.trip-settings summary { list-style: none; cursor: pointer; display: grid; gap: 4px; padding: 12px 0; }
.trip-settings summary::-webkit-details-marker { display: none; }
.trip-settings .ts-t { display: flex; align-items: center; gap: 8px; }
.trip-settings .ts-sum { color: var(--muted); font-size: calc(.88rem * var(--fz, 1)); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.trip-settings .ts-sum .i { width: 15px; height: 15px; }
.trip-settings .form-grid { padding-bottom: 12px; }
.trip-settings details.rates { margin-bottom: 12px; }
/* «В дорогу»: блоки по вкладкам, видна одна */
.trip-more { margin-top: 18px; }
.trip-more h2 { margin: 0 0 10px; }
.tm-tabs { margin-bottom: 12px; }
.tm-panes > .tm-pane { display: none; margin: 0 !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; background: none !important; }
.tm-panes > .tm-pane.active { display: block; animation: fadeup .3s var(--ease); }

/* «Собрать поездку»: результат подсвечивается, чтобы его было видно */
.qt-card.qt-flash { animation: qtFlash 1.1s var(--ease); }
@keyframes qtFlash { 0% { box-shadow: 0 0 0 0 rgba(230,180,80,.7); transform: scale(.98); } 40% { box-shadow: 0 0 0 10px rgba(230,180,80,0); transform: scale(1); } 100% { box-shadow: none; } }
/* Отступ между «Собрать поездку» и «Готовыми маршрутами», чтобы результат не терялся среди карточек */
#quickTrip { margin-bottom: 28px; }

/* ================= ИТОГ ПОЕЗДКИ — новый вид ================= */
.panel.result { background: radial-gradient(120% 80% at 100% 0%, rgba(230,180,80,.16), transparent 60%), linear-gradient(165deg, var(--lapis-2), var(--lapis)); }
.panel.result .total { font-size: inherit; text-shadow: none; color: #fff; display: grid; gap: 12px; margin-top: 4px; }
.bt-main { display: grid; gap: 2px; padding: 16px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(230,180,80,.35); }
.bt-main small { color: #b9c8de; font-size: calc(13px * var(--fz, 1)); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.bt-main .bt-sum { font-size: calc(clamp(36px, 11vw, 52px) * min(var(--fz, 1), 1.15)); line-height: 1.05; font-weight: 800; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.bt-main span { color: #b9c8de; font-size: calc(15px * var(--fz, 1)); font-weight: 600; }
.bt-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bt-tiles > div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.06); }
.bt-tiles b { font-size: calc(20px * var(--fz, 1)); font-weight: 800; font-variant-numeric: tabular-nums; }
.bt-tiles span { color: #b9c8de; font-size: calc(13px * var(--fz, 1)); }
.bt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bt-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.08); color: #dbe5f3; font-size: calc(13px * var(--fz, 1)); font-weight: 600; }
.bt-chips .i { width: 15px; height: 15px; color: var(--gold-2); }
.panel.result .bar { height: 12px; margin: 16px 0 6px; }
.panel.result .breakdown li { align-items: center; padding: 10px 0; }
.bk-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); }
.bk-ic .i { width: 18px; height: 18px; }
.bk-name { flex: 1; display: grid; gap: 1px; min-width: 0; }
.bk-name small { color: #9fb0cc; font-size: calc(12px * var(--fz, 1)); }
.panel.result .breakdown b { font-size: calc(16px * var(--fz, 1)); }
.panel.result #copyBudget { width: 100%; justify-content: center; }
/* Настройки бюджета на тёмной карточке */
.panel.result .trip-settings { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.04); }
.panel.result .trip-settings .ts-sum { color: #b9c8de; }
.panel.result .trip-settings label > span { color: #b9c8de; }

/* ================= БЕЗ СЛУЧАЙНОГО ПРИБЛИЖЕНИЯ ================= */
/* Двойное касание не увеличивает страницу (и нажатия срабатывают без задержки) */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* iPhone приближает поле ввода, если шрифт в нём меньше 16 px */
@media (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { font-size: calc(16px * var(--fz, 1)) !important; }
}
/* «Настройки бюджета»: одна стрелка справа от заголовка */
.trip-settings > summary { position: relative; padding-right: 26px; }
.trip-settings > summary::after { position: absolute; right: 0; top: 14px; margin: 0; }

/* ================= КАРТА НА ВЕСЬ ВИДИМЫЙ ЭКРАН ================= */
/* Высоту карты задаёт js/mapfit.js; сама страница на этой вкладке не прокручивается */
html.map-tab, html.map-tab body { overflow: hidden; overscroll-behavior: none; }
html.map-tab #tabBack { display: none; }
#bigMap { touch-action: none; }

/* ================= ГЛАВНАЯ: ФОТО, ОДНА ГЛАВНАЯ КНОПКА, КРУПНЫЕ КАРТОЧКИ ================= */
/* Большое фото: на телефоне — почти весь первый экран, узор поверх фото убран — фото говорит само */
.hero { min-height: min(78svh, 640px); }
.hero::before { background: linear-gradient(180deg, rgba(7,18,36,.05) 0%, rgba(7,18,36,.35) 45%, rgba(7,18,36,.92) 100%); }
.hero h1 { color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hero-cta .btn { min-height: 50px; padding: 0 22px; font-size: calc(16px * var(--fz, 1)); }
.hero-cta .gold-btn { flex: 1 1 220px; justify-content: center; box-shadow: 0 10px 30px rgba(230,180,80,.35); }
.hero-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.hero-facts { margin: 14px 0 0 !important; font-size: calc(13px * var(--fz, 1)) !important; color: #c9d6ea !important; letter-spacing: .02em; }
/* Счётчики-плитки дублируют строку в hero — на главной убираем */
#tab-home > .stats { display: none; }
/* Популярные города и готовые маршруты на телефоне — лента крупных карточек, листается пальцем */
@media (max-width: 760px) {
  .hero { margin: 0 -14px; border-radius: 0 0 26px 26px; min-height: 74svh; }
  #popularGrid, #collectionsGrid { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82%; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -14px; padding: 2px 14px 10px; scrollbar-width: none; }
  #popularGrid::-webkit-scrollbar, #collectionsGrid::-webkit-scrollbar { display: none; }
  #popularGrid > *, #collectionsGrid > * { scroll-snap-align: start; content-visibility: visible; }
  #popularGrid .card-img { height: 210px; }
  .guide-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .guide-tiles .guide-tile span { display: none; }
}
/* Погода, курсы и регионы — одним раскрывающимся блоком внизу */
.home-more { margin-top: 30px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); padding: 0 16px; }
.home-more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 16px 0; font-weight: 700; font-size: calc(1.05rem * var(--fz, 1)); }
.home-more > summary::-webkit-details-marker { display: none; }
.home-more > summary > .i { color: var(--gold-ink); width: 22px; height: 22px; }
.home-more[open] { padding-bottom: 16px; }
.home-more > .block, .home-more > .two-col { margin-top: 8px; }
.home-more .two-col .block { margin-top: 12px; }
/* Плитки «Полезно знать» в две колонки — без вылезания за экран; отступы под padding main (12px) */
@media (max-width: 760px) {
  .guide-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-tiles .guide-tile { min-width: 0; padding: 14px; }
  .guide-tiles .guide-tile b { white-space: normal; overflow-wrap: anywhere; font-size: calc(.95rem * var(--fz, 1)); }
  .hero { margin: 0 -12px; }
  #popularGrid, #collectionsGrid { margin: 0 -12px; padding: 2px 12px 10px; }
}
/* Плитки на телефоне: иконка сверху, название под ней — слова не рвутся */
@media (max-width: 760px) {
  .guide-tiles .guide-tile { display: grid; grid-template-columns: 1fr; grid-auto-rows: auto; justify-items: start; align-content: start; gap: 10px; }
  .guide-tiles .guide-tile > i { grid-row: auto; grid-column: auto; }
  .guide-tiles .guide-tile b { overflow-wrap: normal; word-break: normal; hyphens: auto; line-height: 1.25; }
  .guide-tiles .tile-go { display: none; }
}

/* ================= ВЫБОР ГОРОДА С ПОИСКОМ ================= */
.cp { position: relative; margin-bottom: 14px; }
.cp-btn { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 56px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--card); color: var(--text); text-align: left; cursor: pointer; transition: border-color .2s; }
.cp-btn:hover, .cp-btn[aria-expanded="true"] { border-color: var(--gold); }
.cp-btn > .i:first-child { width: 22px; height: 22px; color: var(--gold-ink); flex: none; }
.cp-btn > .i:last-child { margin-left: auto; width: 18px; height: 18px; opacity: .6; transition: transform .2s var(--ease); }
.cp-btn[aria-expanded="true"] > .i:last-child { transform: rotate(180deg); }
.cp-cur { display: grid; line-height: 1.2; }
.cp-cur small { color: var(--muted); font-size: calc(12px * var(--fz, 1)); }
.cp-cur b { font-size: calc(17px * var(--fz, 1)); }
.cp-panel { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; padding: 12px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--card); box-shadow: var(--shadow-lg); display: grid; gap: 10px; animation: pickerIn .18s var(--ease); }
.cp-panel.closing { animation: pickerOut .17s ease forwards; pointer-events: none; }
@keyframes pickerIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.cp-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.cp-search .i { width: 18px; height: 18px; color: var(--muted); flex: none; }
.cp-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 0; outline: none; color: var(--text); }
.cp-pop { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-pop[hidden] { display: none; }
.cp-list { max-height: min(46vh, 360px); overflow-y: auto; display: grid; gap: 2px; overscroll-behavior: contain; }
.cp-h { margin: 4px 4px 2px; color: var(--muted); font-size: calc(12px * var(--fz, 1)); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.cp-row { display: flex; align-items: center; gap: 10px; padding: 10px; border: 0; border-radius: 10px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.cp-row:hover, .cp-row.on { background: var(--tint-gold); }
.cp-row > .i:first-child { width: 18px; height: 18px; color: var(--muted); flex: none; }
.cp-row span { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.cp-row small { color: var(--muted); font-size: calc(12px * var(--fz, 1)); }
.cp-row > .i:last-child { width: 18px; height: 18px; color: var(--gold-ink); }
.cp-empty { padding: 10px; }

/* ================= МОИ БИЛЕТЫ ================= */
.tk-add { display: flex; flex-wrap: wrap; gap: 10px; }
.tk-add .btn { flex: 1 1 200px; justify-content: center; min-height: 48px; }
.tk-file { cursor: pointer; }
.tk-how { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0; }
.tk-how .i { flex: none; width: 16px; height: 16px; margin-top: 2px; }
#tkList h3 { margin: 18px 0 8px; font-size: calc(.85rem * var(--fz, 1)); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tk-row { display: flex; align-items: center; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-bottom: 8px; animation: fadeup .3s var(--ease); }
.tk-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 8px; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; }
.tk-open > i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--tint-gold); color: var(--gold-ink); flex: none; }
.tk-open span { display: grid; min-width: 0; line-height: 1.3; }
.tk-open b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-open small { color: var(--muted); font-size: calc(12px * var(--fz, 1)); }
.tk-more { width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: var(--muted); display: grid; place-items: center; flex: none; }
.tk-empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 26px 10px; color: var(--muted); }
.tk-empty > .i { width: 40px; height: 40px; color: var(--gold-ink); }
.tk-past { margin-top: 16px; }
.tk-past > summary { cursor: pointer; padding: 8px 0; color: var(--muted); font-weight: 700; }
.tk-edit { display: grid; gap: 10px; padding: 14px; margin: 6px 0 14px; border: 1px solid var(--gold); border-radius: var(--radius); background: var(--card); animation: csCardIn .3s var(--ease); }
.tk-edit label { display: grid; gap: 4px; font-size: calc(.82rem * var(--fz, 1)); color: var(--muted); min-width: 0; }
.tk-edit input, .tk-edit select { padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); min-height: 44px; width: 100%; min-width: 0; }
.tk-edit-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tk-edit-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-edit-acts .btn { flex: 1 1 140px; justify-content: center; }
.tk-view { position: fixed; inset: 0; z-index: 1350; background: #fff; color: #111; display: flex; flex-direction: column; animation: csFade .2s ease; }
.tk-view.out { animation: csFadeOut .2s ease forwards; pointer-events: none; }
.tk-view-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; border-bottom: 1px solid #eee; }
.tk-view-bar b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-view-bar .tc-x { position: static; }
.tk-view img { flex: 1; min-height: 0; width: 100%; object-fit: contain; background: #fff; }
.tk-view iframe { flex: 1; width: 100%; border: 0; background: #f4f4f4; }
.tk-view .tk-pdf { margin: 10px 14px 0; justify-content: center; }
.tk-view-hint { margin: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); text-align: center; color: #777; font-size: calc(13px * var(--fz, 1)); }
#ticketsBox .tk-all { width: 100%; justify-content: center; margin-top: 4px; }

/* ================= QR-ПОСТЕР — чистый вид ================= */
/* Кнопки сверху — под «Назад» и крестиком, не растягиваются на всю ширину */
.poster-wrap { padding-top: 84px !important; }
.poster-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 16px; }
.poster-tools .btn { flex: none; width: auto; }
.poster-tools .hint { margin: 0; flex: 1 1 240px; }
/* Сам постер: белый лист, тонкая золотая рамка, никакого узора на фоне */
.poster { background: #fff; background-image: none; border: 0; border-top: 10px solid #e6b450; border-radius: 20px;
  box-shadow: 0 10px 40px rgba(11,31,58,.18); padding: 30px 24px 26px; gap: 18px; max-width: 620px; margin: 0 auto; }
.poster-brand { font-size: calc(34px * var(--fz, 1)); }
.poster h1 { font-size: calc(clamp(24px, 6vw, 38px) * min(var(--fz, 1), 1.15)); letter-spacing: -.01em; }
.poster-qr { width: min(320px, 74vw); padding: 14px; border: 2px solid #f1e3bf; border-radius: 18px; box-shadow: none; }
.poster-scan { margin: -6px 0 0; display: flex; align-items: center; gap: 8px; font-weight: 700; color: #0b1f3a; font-size: calc(15px * var(--fz, 1)); }
.poster-scan .i { width: 18px; height: 18px; color: #c98f22; }
.poster-langs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; width: 100%; max-width: 520px; text-align: left; }
.poster-langs span { display: flex; align-items: center; gap: 10px; font-size: calc(14px * var(--fz, 1)); color: #14213d; min-width: 0; }
.poster-langs em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flag { width: 26px; height: 17px; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.poster-feats span { background: #fdf3dc; }
.poster-url { font-size: calc(13px * var(--fz, 1)) !important; color: #8a6210 !important; font-weight: 600 !important; opacity: .85; }
@media (max-width: 480px) { .poster-langs { grid-template-columns: 1fr; } }

/* QR-постер: кнопка «Печать / PDF» закреплена внизу экрана (сверху — строка состояния телефона и «Назад») */
.poster-wrap { padding-top: calc(84px + env(safe-area-inset-top)) !important; padding-bottom: 0 !important; }
.poster-hint { text-align: center; margin: 0 auto 14px; max-width: 520px; }
.poster-tools { position: sticky; bottom: 0; z-index: 3; display: block; margin: 18px -14px 0; padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, var(--bg) 30%); }
.poster-tools .btn { width: 100%; max-width: 520px; margin: 0 auto; display: flex; justify-content: center; min-height: 54px; font-size: calc(17px * var(--fz, 1));
  box-shadow: 0 10px 30px rgba(230,180,80,.35); }
@media print { .poster-tools, .poster-hint { display: none !important; } }
/* Кнопка печати постера — закреплена внизу экрана поверх окна */
#posterBar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 950; margin: 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(7,18,36,.92) 35%); animation: fadeup .3s var(--ease); }
.poster-wrap { padding-bottom: calc(100px + env(safe-area-inset-bottom)) !important; }
@media print { #posterBar { display: none !important; } }

/* ================= ПЕЧАТЬ: ТОЛЬКО НУЖНЫЙ ЛИСТ (js/print.js) ================= */
#printRoot { display: none; }
@media print {
  @page { size: A4; margin: 12mm; }
  html.printing, html.printing body { background: #fff !important; color: #000 !important; overflow: visible !important; height: auto !important; }
  html.printing body > *:not(#printRoot) { display: none !important; }
  html.printing #printRoot { display: block !important; zoom: 1 !important; font-family: var(--font); }
  #printRoot * { animation: none !important; transition: none !important; box-shadow: none !important; }

  /* QR-постер — ровно один лист A4 (273 мм по высоте с полями) */
  #printRoot.print-poster { height: 270mm; display: flex !important; align-items: center; justify-content: center; }
  #posterPrint { width: 100%; max-width: none; margin: 0; padding: 12mm 10mm 10mm; border: 1.2mm solid #e6b450; border-top-width: 5mm; border-radius: 6mm;
    background: #fff; color: #0b1f3a; display: grid; justify-items: center; gap: 6mm; text-align: center; break-inside: avoid; page-break-inside: avoid; }
  #posterPrint .poster-brand { font-size: 26pt; }
  #posterPrint .poster-brand .i { width: 11mm; height: 11mm; }
  #posterPrint h1 { margin: 0; font-size: 24pt; color: #0b1f3a; }
  #posterPrint .poster-qr { width: 95mm; height: 95mm; padding: 3mm; border: 0.6mm solid #f1e3bf; border-radius: 4mm; }
  #posterPrint .poster-qr svg { width: 100%; height: 100%; }
  #posterPrint .poster-scan { font-size: 13pt; margin: 0; }
  #posterPrint .poster-langs { grid-template-columns: 1fr 1fr; gap: 2.5mm 8mm; max-width: 165mm; font-size: 11pt; }
  #posterPrint .poster-langs span { font-size: 11pt; }
  #posterPrint .flag { width: 8mm; height: 5.3mm; }
  #posterPrint .poster-feats span { font-size: 10pt; padding: 1mm 3mm; background: #fdf3dc !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #posterPrint .poster-url { font-size: 11pt !important; }
  #posterPrint, #posterPrint * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* План поездки — чистый текст по дням, без карт и кнопок */
  #printRoot.print-trip { color: #000; font-size: 10.5pt; line-height: 1.45; }
  #printRoot .pr-head { display: flex; justify-content: space-between; border-bottom: 0.6mm solid #e6b450; padding-bottom: 2mm; margin-bottom: 4mm; }
  #printRoot .pr-head b { font-family: "Cinzel", serif; letter-spacing: .15em; font-size: 14pt; }
  #printRoot h1 { font-size: 18pt; margin: 0 0 2mm; color: #000; }
  #printRoot .pr-route { margin: 0 0 1.5mm; font-weight: 700; }
  #printRoot .pr-total { margin: 0 0 5mm; }
  #printRoot .pr-days * { color: #000 !important; background: none !important; border-color: #ccc !important; max-width: 100% !important; }
  #printRoot .pr-days .day-card { break-inside: avoid; page-break-inside: avoid; border: 0.3mm solid #ccc !important; border-radius: 3mm; padding: 3mm 4mm; margin-bottom: 3mm; display: block; }
  #printRoot .pr-days img, #printRoot .pr-days svg.i { display: none !important; }
  #printRoot .pr-days details > summary { list-style: none; }
  #printRoot .pr-days details > summary::after { display: none !important; }
}
/* Печать плана: компактно — дни в две колонки, без повторного списка мест (они есть в «Плане на день») */
@media print {
  #printRoot.print-trip { font-size: 9pt; line-height: 1.35; }
  #printRoot .pr-days { columns: 2; column-gap: 6mm; }
  #printRoot .pr-days .day-card { display: block !important; padding: 2mm 3mm; margin: 0 0 3mm; }
  #printRoot .pr-days .day-pois, #printRoot .pr-days .day-side small { display: none !important; }
  #printRoot .pr-days .day-side { display: inline !important; font-weight: 800; margin-right: 2mm; }
  #printRoot .pr-days .day-side b { font-size: 11pt !important; }
  #printRoot .pr-days header { display: inline; font-weight: 800; font-size: 11pt; }
  #printRoot .pr-days .day-plan > summary { display: none !important; }
  #printRoot .pr-days .day-plan * { margin-top: 0 !important; margin-bottom: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
  #printRoot .pr-days .day-plan li, #printRoot .pr-days .day-plan .stop { padding: .6mm 0 !important; }
  #printRoot .pr-days .day-travel { font-style: italic; }
}

/* ================= АККАУНТ: БЫСТРЫЕ ПЛИТКИ И АККУРАТНЫЕ РАЗДЕЛЫ ================= */
.acc-card { border: 1px solid var(--line); box-shadow: none; padding: 16px; }
.acc-card .acc-who { display: grid; gap: 2px; min-width: 0; }
.acc-card .acc-sync { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-weight: 600; }
.acc-card .acc-sync .i { width: 14px; height: 14px; }
.acc-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 18px; }
.acc-q { position: relative; display: grid; justify-items: center; gap: 6px; padding: 14px 6px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); color: var(--text); text-decoration: none; text-align: center; cursor: pointer; font: inherit; transition: border-color .2s, transform .2s var(--ease); }
.acc-q:hover { border-color: var(--gold); transform: translateY(-2px); }
.acc-q:active { transform: scale(.97); }
.acc-q > i { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--tint-gold); color: var(--gold-ink); }
.acc-q > i .i { width: 21px; height: 21px; }
.acc-q span { font-size: calc(13px * var(--fz, 1)); font-weight: 700; line-height: 1.2; text-align: center; max-width: 100%; min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.acc-q em { position: absolute; top: 8px; right: 8px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--gold); color: #1b1404;
  font-style: normal; font-size: calc(11px * var(--fz, 1)); font-weight: 800; display: grid; place-items: center; }
.acc-q em:empty, .acc-q em.hidden { display: none; }
.acc-more-h { margin: 6px 0 8px; font-size: calc(.85rem * var(--fz, 1)); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
/* Разделы — ровный список: строка с иконкой и стрелкой, раскрываются по нажатию */
.acc-section { margin: 0 0 8px !important; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.acc-section > summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
.acc-section > summary::-webkit-details-marker { display: none; }
.acc-section > summary > i { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--tint-turq); color: var(--tint-turq-ink); flex: none; }
.acc-section > summary > i .i { width: 18px; height: 18px; }
.acc-section > summary b { font-size: calc(15px * var(--fz, 1)); }
.acc-section > .acc-body { padding: 0 14px 14px; }
.acc-section[open] { border-color: var(--gold); }
@media (max-width: 380px) { .acc-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* «Мои билеты»: поле даты на iPhone — той же высоты и ширины, что соседнее, без вылезания */
.tk-edit-row > label { min-width: 0; }
.tk-edit input[type="date"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; max-width: 100%; height: 48px; line-height: 24px; box-sizing: border-box; }
.tk-edit input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.tk-edit select { height: 48px; box-sizing: border-box; }
/* Заголовок окон не прячется под «Назад»: учитываем строку состояния и размер текста из «Aa» */
@media (max-width: 760px) {
  .m-head { padding-top: max(100px, calc(84px * var(--uz, 1) + env(safe-area-inset-top))) !important; }
}

/* ================= ЖАЛОБЫ И ПРЕДЛОЖЕНИЯ ================= */
.fb-cta { display: flex; align-items: center; gap: 14px; margin: 28px 0 8px; padding: 16px; border: 1px dashed var(--gold); border-radius: var(--r-lg);
  background: var(--card); color: var(--text); text-decoration: none; transition: transform .2s var(--ease), border-color .2s; }
.fb-cta:hover { transform: translateY(-2px); border-style: solid; }
.fb-cta > i { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--tint-gold); color: var(--gold-ink); flex: none; }
.fb-cta span { display: grid; gap: 2px; flex: 1; min-width: 0; }
.fb-cta small { color: var(--muted); }
.fb-cta > .i:last-child { width: 20px; height: 20px; color: var(--gold-ink); flex: none; }
.acc-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 0 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--text); text-decoration: none; }
.acc-link > i { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--tint-gold); color: var(--gold-ink); flex: none; }
.acc-link > i .i { width: 18px; height: 18px; }
.acc-link b { flex: 1; font-size: calc(15px * var(--fz, 1)); }
.acc-link > .i:last-child { width: 18px; height: 18px; opacity: .6; }
.fb-form { display: grid; gap: 12px; }
.fb-label { margin: 0; font-weight: 700; }
.fb-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-kind input { position: absolute; opacity: 0; pointer-events: none; }
.fb-kind span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 99px; cursor: pointer; font-weight: 600; font-size: calc(14px * var(--fz, 1)); transition: background .2s, border-color .2s; }
.fb-kind span .i { width: 16px; height: 16px; }
.fb-kind input:checked + span { background: var(--gold); border-color: var(--gold); color: #1b1404; }
.fb-kind input:focus-visible + span { box-shadow: var(--ring); }
.fb-field { display: grid; gap: 4px; font-size: calc(.85rem * var(--fz, 1)); color: var(--muted); position: relative; }
.fb-field textarea, .fb-field input { padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); min-height: 44px; width: 100%; font: inherit; resize: vertical; }
.fb-count { justify-self: end; font-size: calc(12px * var(--fz, 1)); }
.fb-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.fb-note .i { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.fb-send { width: 100%; justify-content: center; min-height: 50px; }
.fb-ok { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 18px 8px; animation: csCardIn .35s var(--ease); }
.fb-ok > .i { width: 48px; height: 48px; color: var(--green); }
.fb-ok h3, .fb-ok p { margin: 0; }
#fbMine h3 { margin: 22px 0 8px; font-size: calc(.85rem * var(--fz, 1)); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.fb-item { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-bottom: 8px; }
.fb-item.done { border-color: var(--green); }
.fb-item-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fb-item p { margin: 6px 0 0; color: var(--muted); font-size: calc(.9rem * var(--fz, 1)); }
.fb-adm-reply { width: 100%; margin-top: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); font: inherit; }
/* Фото первого экрана проявляется, когда загрузилось; до этого — фирменный градиент, а не пустой тёмный блок */
.hero { background-color: var(--lapis); background-image: linear-gradient(160deg, var(--lapis-2), var(--lapis)); transition: background-image .2s; }
.hero.photo-in { animation: heroIn .6s var(--ease); }
@keyframes heroIn { from { filter: brightness(.6); } }
/* Фото первого экрана — ниже: под ним сразу видно начало ленты городов */
.hero { min-height: min(56svh, 520px); }
@media (max-width: 760px) { .hero { min-height: 52svh; } .hero-inner { padding-top: 18px; padding-bottom: 20px; } }

/* Билет в карточке дня поездки */
.day-tk { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.day-tk-btn { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 7px 12px; border: 1px solid var(--gold); border-radius: 99px;
  background: var(--tint-gold); color: var(--text); font: inherit; font-size: calc(13px * var(--fz, 1)); font-weight: 700; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-tk-btn .i { width: 16px; height: 16px; color: var(--gold-ink); flex: none; }
/* Фильтр «Город» с поиском — вместо длинного списка */
.cp-hidden-select { display: none !important; }
.cp-filter { margin: 0; min-width: 0; }
.cp-filter .cp-btn { min-height: 44px; padding: 8px 12px; border-radius: 12px; gap: 8px; }
.cp-filter .cp-btn > .i:first-child { width: 18px; height: 18px; }
.cp-filter .cp-cur b { font-size: calc(15px * var(--fz, 1)); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-filter .cp-cur { min-width: 0; }
.cp-filter .cp-panel { min-width: min(320px, 92vw); }
.cp-n { margin-left: auto; font-style: normal; font-size: calc(12px * var(--fz, 1)); font-weight: 700; color: var(--muted); padding: 2px 8px; border-radius: 99px; background: var(--line); }
.cp-row.cp-all { border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; }

/* ================= СТРАНИЦА МЕСТА: КРУПНЫЕ ДЕЙСТВИЯ, ФАКТЫ С ИКОНКАМИ ================= */
@media (max-width: 760px) { .pl-head { min-height: 42svh !important; } }
.pl-acts { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 6px; margin: 2px 0 10px; }
.pl-act { display: grid; justify-items: center; gap: 6px; padding: 6px 2px; border: 0; background: none; color: var(--text); text-decoration: none; font: inherit; cursor: pointer; min-width: 0; }
.pl-act > i { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--card); color: var(--gold-ink);
  transition: transform .2s var(--ease), background .2s, border-color .2s; }
.pl-act > i .i { width: 22px; height: 22px; }
.pl-act span { font-size: calc(12.5px * var(--fz, 1)); font-weight: 700; line-height: 1.2; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.pl-act:active > i { transform: scale(.92); }
.pl-act.main > i { background: var(--gold); border-color: var(--gold); color: #1b1404; box-shadow: 0 8px 20px rgba(230,180,80,.35); }
.pl-act.on > i { background: var(--tint-gold); border-color: var(--gold); }
.pl-act.on > i .i { fill: currentColor; }
.pl-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; padding: 0 0 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.pl-more a, .pl-more button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 6px 2px; color: var(--muted); font: inherit; font-size: calc(13px * var(--fz, 1)); font-weight: 600; text-decoration: none; cursor: pointer; }
.pl-more .i { width: 15px; height: 15px; }
.pl-facts { display: grid; gap: 2px; }
.pl-facts .fact { display: flex; gap: 12px; align-items: flex-start; padding: 10px 2px; border-bottom: 1px solid var(--line); background: none; box-shadow: none; }
.pl-facts .fact:last-child { border-bottom: 0; }
.pl-facts .fact > i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--tint-gold); color: var(--gold-ink); flex: none; }
.pl-facts .fact > i .i { width: 17px; height: 17px; }
.pl-facts .fact > div { min-width: 0; overflow-wrap: anywhere; }
.pl-facts .fact small { display: block; color: var(--muted); font-size: calc(12px * var(--fz, 1)); margin-bottom: 1px; }

/* ================= ОТЗЫВЫ ПО ПУНКТАМ ================= */
.rc-sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin: 4px 0 14px; }
@media (max-width: 480px) { .rc-sum { grid-template-columns: 1fr; } }
.rc-line { display: grid; grid-template-columns: minmax(0, 1fr) 90px 28px; align-items: center; gap: 8px; font-size: calc(13.5px * var(--fz, 1)); }
.rc-line i { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.rc-line i b { display: block; height: 100%; border-radius: inherit; background: var(--gold); }
.rc-line em { font-style: normal; font-weight: 800; text-align: right; }
.rv-crit-form { border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; }
.rv-crit-form > summary { cursor: pointer; padding: 10px 0; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: calc(14px * var(--fz, 1)); color: var(--muted); }
.rv-crit-form[open] { padding-bottom: 10px; }
.rc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: calc(14px * var(--fz, 1)); }
.rc-pick { display: flex; gap: 4px; }
.rc-pick input { position: absolute; opacity: 0; pointer-events: none; }
.rc-pick b { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 9px; font-size: calc(13px * var(--fz, 1)); cursor: pointer; transition: background .15s, border-color .15s; }
.rc-pick input:checked + b { background: var(--gold); border-color: var(--gold); color: #1b1404; }
.rc-pick input:focus-visible + b { box-shadow: var(--ring); }

/* Быстрые фильтры отелей — лента кнопок, на телефоне листается вбок */
.hq { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; margin: 4px 0 2px; }
.hq::-webkit-scrollbar { display: none; }
.hq .chip { flex: none; white-space: nowrap; min-height: 38px; }
.hq .chip .i { width: 15px; height: 15px; }

/* ================= ДНЕВНИК ПОЕЗДКИ ================= */
.dy-open { width: 100%; justify-content: center; margin: 4px 0 6px; }
.dy-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.dy-stats > div { display: grid; justify-items: center; gap: 2px; padding: 12px 4px; border-radius: var(--radius); background: var(--tint-gold); text-align: center; }
.dy-stats b { font-size: calc(22px * var(--fz, 1)); font-weight: 800; color: var(--gold-ink); }
.dy-stats span { font-size: calc(12px * var(--fz, 1)); color: var(--muted); }
#diaryMap { height: 240px; border-radius: var(--radius); margin-bottom: 14px; }
.dy-pin { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #e6b450; color: #0b1f3a; font: 800 13px var(--font); box-shadow: 0 2px 8px rgba(0,0,0,.35); border: 2px solid #fff; }
.dy-line { list-style: none; margin: 0 0 14px; padding: 0 0 0 14px; border-left: 2px dashed var(--gold); display: grid; gap: 10px; }
.dy-line li { animation: fadeup .35s var(--ease) both; animation-delay: calc(var(--n, 0) * 60ms); }
.dy-stop { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.dy-ph { width: 54px; height: 54px; border-radius: 12px; background-size: cover; background-position: center; flex: none; }
.dy-stop span:last-child { display: grid; gap: 2px; min-width: 0; }
.dy-stop small { color: var(--muted); }
.dy-share { width: 100%; justify-content: center; min-height: 50px; }

/* ================= ВОПРОСЫ И ОТВЕТЫ У МЕСТ ================= */
.qa { margin-top: 18px; }
.qa-q { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-bottom: 10px; }
.qa-text { margin: 0 0 2px; font-weight: 700; display: flex; gap: 8px; align-items: flex-start; }
.qa-text .i { width: 18px; height: 18px; color: var(--gold-ink); flex: none; margin-top: 2px; }
.qa-a { margin: 10px 0 0 10px; padding: 8px 12px; border-left: 3px solid var(--gold); background: var(--tint-gold); border-radius: 0 10px 10px 0; }
.qa-a p { margin: 0 0 2px; }
.qa-role { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; padding: 1px 8px; border-radius: 99px; font-size: calc(11px * var(--fz, 1)); font-weight: 800; }
.qa-role .i { width: 12px; height: 12px; }
.qa-role.owner { background: var(--gold); color: #1b1404; }
.qa-role.guide { background: var(--tint-turq); color: var(--tint-turq-ink); }
.qa-reply { margin-top: 8px; }
.qa-reply > summary { list-style: none; cursor: pointer; color: var(--muted); font-size: calc(13px * var(--fz, 1)); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.qa-reply > summary::-webkit-details-marker, .qa-ask > summary::-webkit-details-marker { display: none; }
.qa-reply > summary::after, .qa-ask > summary::after { display: none !important; }
.qa-ask > summary { list-style: none; width: 100%; justify-content: center; }
.qa-form { display: grid; gap: 8px; margin-top: 8px; }
.qa-form input, .qa-form textarea { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); font: inherit; width: 100%; }
.qa-form .btn { justify-self: start; }

/* Общие списки избранного */
.sl-share { width: 100%; justify-content: center; margin-bottom: 14px; }
.sl-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.sl-acts .btn { flex: 1 1 200px; justify-content: center; min-height: 48px; }

/* «Слово дня» на главной */
.wod-card { display: grid; gap: 6px; padding: 18px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--tint-gold), var(--card)); border: 1px solid var(--gold); }
.wod-card small { display: flex; align-items: center; gap: 6px; color: var(--gold-ink); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: calc(12px * var(--fz, 1)); }
.wod-card small .i { width: 16px; height: 16px; }
.wod-card > b { font-size: calc(clamp(24px, 7vw, 32px) * min(var(--fz, 1), 1.15)); line-height: 1.15; }
.wod-card > span { color: var(--muted); font-size: calc(16px * var(--fz, 1)); }
.wod-card em { font-style: normal; opacity: .8; }
.wod-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

/* Приветствие: «Кто вы?» */
.onb-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0 14px; }
.onb-role { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text); font: inherit; font-weight: 700; font-size: calc(14px * var(--fz, 1)); text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.onb-role > i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--tint-gold); color: var(--gold-ink); flex: none; }
.onb-role > i .i { width: 18px; height: 18px; }
.onb-role.on { border-color: var(--gold); background: var(--tint-gold); }
.onb-can-h { margin: 4px 0 8px; font-size: calc(.9rem * var(--fz, 1)); color: var(--muted); }

/* «Выбор путешественников» */
.tc-choice { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: var(--gold); color: #1b1404; font-size: calc(11px * var(--fz, 1)); font-weight: 800; white-space: nowrap; vertical-align: middle; }
.tc-choice .i { width: 12px; height: 12px; }

/* ================= ПРОВЕРКА СТИЛЯ: ИСПРАВЛЕНИЯ ================= */
/* Кнопки в прокручиваемых рядах (вкладки окна, быстрые фильтры, чипы) не сжимаются: у кнопок overflow: hidden
   ради эффекта «волны», а с ним flex-элемент ужимается почти в ноль — вкладки города превращались в обрывки */
.m-tabs > *, .hq > *, .chips > *, .tm-tabs > *, .cp-pop > *, .pl-more > *, .bt-chips > * { flex-shrink: 0; }
/* Маленькие кнопки — не ниже 36 px: по ним удобно попадать пальцем */
@media (pointer: coarse) {
  .btn.small { min-height: 36px; }
  .pl-more a, .pl-more button { min-height: 36px; }
  .m-tabs button { min-height: 38px; }
}

/* Подпись карты (OpenStreetMap) — читаемая в обеих темах */
.leaflet-container .leaflet-control-attribution { background: rgba(255, 255, 255, .88); color: #3b4556; }
.leaflet-container .leaflet-control-attribution a { color: #14548a; }
:root[data-theme="dark"] .leaflet-container .leaflet-control-attribution { background: rgba(15, 22, 36, .85); color: #c5cfe0; }
:root[data-theme="dark"] .leaflet-container .leaflet-control-attribution a { color: #8cc4ff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .leaflet-container .leaflet-control-attribution { background: rgba(15, 22, 36, .85); color: #c5cfe0; }
  :root:not([data-theme="light"]) .leaflet-container .leaflet-control-attribution a { color: #8cc4ff; }
}

/* «Когда людно» — столбики по часам, текущий час выделен */
.crowd { margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.crowd .sec-title { margin-top: 0; }
.crowd-now { margin: 0 0 10px; display: flex; align-items: center; gap: 6px; }
.crowd-now.crowd_calm b { color: var(--green-ink, var(--green)); }
.crowd-now.crowd_mid b { color: var(--gold-ink); }
.crowd-now.crowd_busy b { color: var(--terra); }
.crowd-bars { display: flex; align-items: flex-end; gap: 3px; height: 72px; }
.crowd-bars i { flex: 1 1 0; min-width: 0; height: var(--h); border-radius: 4px 4px 0 0; background: var(--line-2); }
.crowd-bars i.now { background: var(--gold); }
.crowd-axis { display: flex; justify-content: space-between; font-size: calc(11px * var(--fz, 1)); color: var(--faint); margin: 4px 0 12px; }
.crowd-note { margin: 8px 0 0; font-size: calc(12px * var(--fz, 1)); }

/* «Поездка с друзьями» — полоса над «По дням» */
.tw-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; margin: 16px 0; }
.tw-bar.on { border-color: var(--gold); background: linear-gradient(0deg, var(--tint-gold), var(--tint-gold)) padding-box; }
.tw-text { flex: 1 1 220px; min-width: 0; display: grid; gap: 2px; }
.tw-text b { display: flex; align-items: center; gap: 6px; }
.tw-text small { color: var(--muted); }
.tw-bar.on .tw-text small { color: var(--tint-gold-ink); }
.tw-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.trip-is-empty .tw-bar:not(.on) { display: none; }

/* Итог бюджета: «.panel.result { position: relative }» перебивал sticky, а top: 80px сдвигал блок вниз
   на следующий раздел. На телефоне — обычный поток, на широком экране — прилипает при прокрутке */
.panel.result { top: auto; }
@media (min-width: 901px) { .panel.result { position: sticky; top: 80px; } }

/* Опрос «Как вам Safar?» — плашка в стиле согласия */
.sv-stars { grid-column: 1 / -1; display: flex; justify-content: center; gap: 6px; }
.sv-stars button { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--card-2); color: var(--line-2); display: grid; place-items: center; cursor: pointer; transition: transform .15s, color .15s; }
.sv-stars button .i { width: 26px; height: 26px; }
.sv-stars button.on { color: var(--gold); }
.sv-stars button.on .i { fill: currentColor; }
.sv-stars button:active { transform: scale(.9); }
.sv-more { grid-column: 1 / -1; display: grid; gap: 8px; }
.sv-more textarea { width: 100%; resize: vertical; min-height: 56px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card-2); font: inherit; font-size: calc(16px * var(--fz, 1)); }
.sv-later { margin-top: -4px; }

/* Статистика в админке */
.st-days { width: 100%; border-collapse: collapse; font-size: calc(.9rem * var(--fz, 1)); }
.st-days th, .st-days td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.st-days th { color: var(--muted); font-weight: 600; }
.st-days td:nth-child(2) { position: relative; width: 55%; }
.st-bar { display: inline-block; vertical-align: middle; height: 8px; width: calc(var(--w) * .7); min-width: 2px; margin-right: 8px; border-radius: 4px; background: var(--gold); }

/* Метка «это место» / «куда» (destPin в js/app.js): золотая капля, остриём точно в точку */
.dest-pin { background: none; border: 0; }
.dest-pin span { position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--g-gold, #e6b450); border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); display: grid; place-items: center; }
.dest-pin span .i { width: 18px; height: 18px; transform: rotate(45deg); color: #14213d; }
.dest-pin::after { content: ""; position: absolute; left: 14px; bottom: -2px; width: 8px; height: 4px; border-radius: 50%; background: rgba(0, 0, 0, .3); filter: blur(1px); }
.leaflet-tooltip.dest-tip { font-weight: 700; font-size: calc(13px * var(--fz, 1)); padding: 4px 10px; border-radius: 10px; border: 0; background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.leaflet-tooltip.dest-tip::before { border-top-color: var(--card); }

/* Панель «Aa»: прокручивается только сама панель, страница под ней стоит на месте */
html.ds-lock, html.ds-lock body { overflow: hidden; }
.ds-sheet { overscroll-behavior: contain; touch-action: none; }
.ds-card { overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; }

/* «В поездке» — город уже добавлен: зелёная галочка вместо золотого плюса */
.pl-act.main.in > i { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(31, 157, 92, .3); }
.pl-act.main.in span { color: var(--green-ink, var(--green)); }

/* Окно подтверждения (askConfirm в js/app.js) */
.cf-wrap { position: fixed; inset: 0; z-index: 1400; display: grid; place-items: center; padding: 16px; background: rgba(10, 14, 20, .55); animation: csFade .2s ease; }
.cf-wrap.out { animation: csFadeOut .2s ease forwards; pointer-events: none; }
.cf-card { width: min(380px, 100%); background: var(--card); color: var(--text); border-radius: 22px; padding: 22px 20px 18px; text-align: center; box-shadow: var(--shadow-lg); animation: dsUp .3s var(--ease); }
.cf-ic { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 16px; display: grid; place-items: center; background: var(--tint-gold); color: var(--gold-ink); }
.cf-ic .i { width: 28px; height: 28px; }
.cf-ic.danger { background: rgba(200, 85, 61, .12); color: var(--terra); }
.cf-card h3 { margin: 0 0 6px; font-size: calc(1.2rem * var(--fz, 1)); }
.cf-card p { margin: 0 0 16px; color: var(--muted); line-height: 1.45; }
.cf-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cf-acts .btn { min-height: 48px; font-size: calc(16px * var(--fz, 1)); }
.btn.danger-btn { background: #b8432c; color: #fff; border-color: #b8432c; }
.btn.danger-btn:hover { background: #a03a26; }

/* Способы входа */
.acc-ways { display: grid; gap: 10px; justify-items: center; margin: 6px 0 4px; }
.acc-ways .tg-btn { width: min(360px, 100%); justify-content: center; min-height: 44px; border-radius: 99px; }
.g-btn-box { width: min(360px, 100%); min-height: 44px; display: flex; justify-content: center; }
.acc-nologin { display: flex; gap: 6px; align-items: flex-start; text-align: left; }
.acc-nologin .i { flex: 0 0 auto; color: var(--green-ink, var(--green)); margin-top: 2px; }

/* «Жалобы и предложения» — заметная красная строка */
.acc-link.acc-fb { display: flex; align-items: center; gap: 12px; margin: 14px 0; padding: 14px 16px; border-radius: var(--radius); text-decoration: none;
  background: rgba(200, 85, 61, .08); border: 1px solid rgba(200, 85, 61, .35); color: var(--text); }
.acc-link.acc-fb > i { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; background: #b8432c; color: #fff; }
.acc-link.acc-fb > i .i { width: 22px; height: 22px; }
.acc-link.acc-fb span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.acc-link.acc-fb b { color: #b8432c; }
.acc-link.acc-fb small { color: var(--muted); }
.acc-link.acc-fb > .i { color: #b8432c; }
:root[data-theme="dark"] .acc-link.acc-fb b, :root[data-theme="dark"] .acc-link.acc-fb > .i { color: #ff8a73; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .acc-link.acc-fb b, :root:not([data-theme="light"]) .acc-link.acc-fb > .i { color: #ff8a73; } }
.g-btn-box { overflow: hidden; max-width: 100%; }

/* Тема для элементов карты Leaflet (кнопки масштаба, всплывающие окна, подсказки) — раньше были всегда белыми */
.leaflet-bar { border: 1px solid var(--line) !important; box-shadow: var(--shadow) !important; }
.leaflet-bar a, .leaflet-bar a:hover { background: var(--card); color: var(--text); border-bottom-color: var(--line); }
.leaflet-bar a:hover { background: var(--card-2); }
.leaflet-bar a.leaflet-disabled { background: var(--card); color: var(--faint); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--card); color: var(--text); }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.leaflet-tooltip { background: var(--card); color: var(--text); border-color: var(--line); box-shadow: var(--shadow); }
.leaflet-tooltip-top::before { border-top-color: var(--card); }
.leaflet-tooltip-bottom::before { border-bottom-color: var(--card); }
.leaflet-tooltip-left::before { border-left-color: var(--card); }
.leaflet-tooltip-right::before { border-right-color: var(--card); }
.search-wrap input::placeholder { color: var(--faint); }

/* Кнопка Google: окно Google (iframe) светлое, а у Safar тёмная тема — браузер подкладывал под него белый прямоугольник.
   color-scheme как у самого окна Google убирает подложку: видна только «таблетка» кнопки */
.g-btn-box, .g-btn-box iframe { color-scheme: light; background: transparent; }
.g-btn-box { border-radius: 999px; }
.acc-ways { width: 100%; }
.acc-ways .tg-btn, .g-btn-box { width: min(360px, 100%); }

/* Длинные слова («путешественника», «Достопримечательности») при крупном тексте переносятся, а не вылезают за рамку */
h1, h2, h3, .m-head h2, .sec-title { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.pp-medal, .pp-stamp, .acc-q, .pl-act, .te-way, .tile, .card { min-width: 0; }
.pp-medal b, .pp-medal small, .pp-stamp b, .te-way b, .te-way small, .tile b, .tile small { max-width: 100%; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }

/* Крупный текст (130–150 %): строки не вылезают за экран, а переносятся */
.timeline .stop { grid-template-columns: 52px minmax(0, 1fr); }
.timeline .stop > *, .timeline .stop b, .timeline .stop small { min-width: 0; overflow-wrap: anywhere; }
.timeline .stop b { flex-wrap: wrap; }
.rc-row { flex-wrap: wrap; }
.rc-pick { margin-left: auto; flex-wrap: wrap; }
.pr-tools { grid-template-columns: minmax(0, 1fr); }
.pr-tools label, .pr-tools input { min-width: 0; width: 100%; }
.pr-btns .btn { flex: 1 1 auto; white-space: normal; }
.pr-item :has(> .pr-val) { flex-wrap: wrap; row-gap: 4px; }
.pr-val { min-width: 0; max-width: 100%; margin-left: auto; text-align: right; }
.pr-val b { overflow-wrap: anywhere; }
.tipcalc h3 { flex-wrap: wrap; }
.pr-val b { white-space: normal; }
.tipcalc { grid-template-columns: minmax(0, 1fr); }
.tipcalc > * { min-width: 0; }
.tipcalc h3 { overflow-wrap: anywhere; }
.pr-val em:empty { display: none; }

/* Окна на телефоне: сзади не просвечивает страница, прокрутка не «уезжает» за край и не передаётся странице */
.modal { overscroll-behavior: contain; }
@media (max-width: 1000px) {
  .modal { background: var(--bg); overscroll-behavior-y: none; }
  .modal.closing { background: transparent; }
  html.modal-open, html.modal-open body { overflow: hidden; overscroll-behavior: none; }
}

/* «Мои документы» и медицинская карточка */
.med-card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; width: 100%; padding: 14px; margin: 0 0 18px; border: 1px solid rgba(200, 85, 61, .35);
  border-radius: var(--radius); background: rgba(200, 85, 61, .07); color: var(--text); text-align: left; font: inherit; }
.med-card.empty { cursor: pointer; border-style: dashed; }
.med-card > i { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: #b8432c; color: #fff; }
.med-card > i .i { width: 24px; height: 24px; }
.med-card > span { flex: 1 1 160px; min-width: 0; display: grid; gap: 2px; }
.med-card > span small { color: var(--muted); overflow-wrap: anywhere; }
.med-card > .i { color: #b8432c; }
.med-acts { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.med-acts .btn { flex: 1 1 140px; justify-content: center; min-height: 44px; }
.med-form h3 { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: calc(.95rem * var(--fz, 1)); color: var(--text); }
.med-form textarea { padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); font: inherit; font-size: calc(16px * var(--fz, 1)); resize: vertical; width: 100%; }
.doc-row small span, .doc-row small em { font-style: normal; }
.doc-warn { color: var(--gold-ink); font-weight: 700; }
.doc-bad { color: #b8432c; font-weight: 700; }
.doc-private { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; }
.doc-private .i { flex: none; width: 16px; height: 16px; margin-top: 2px; }
/* Карточка для врача — как «Показать таксисту»: светлая, крупная, экран не гаснет */
.mc { justify-content: flex-start; text-align: left; padding: calc(64px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; gap: 0; }
.mc-title { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: calc(13px * var(--fz, 1)); font-weight: 800; letter-spacing: .04em; color: #b8432c; }
.mc-title .i { width: 20px; height: 20px; }
.mc-row { padding: 10px 0; border-bottom: 1px solid #e8e1d2; }
.mc-row small { display: block; font-size: calc(12px * var(--fz, 1)); color: #6b6b6b; }
.mc-row b { display: block; font-size: calc(20px * var(--fz, 1)); line-height: 1.3; color: #111; overflow-wrap: anywhere; }
.mc-row.big b { font-size: calc(26px * var(--fz, 1)); }
.mc-row a { color: #14548a; }
.mc-sos { margin: 18px 0 0; font-size: calc(18px * var(--fz, 1)); font-weight: 800; color: #b8432c; }

/* «Экстренная помощь» (#sos) */
.sos-head { background: var(--ornament), linear-gradient(135deg, #b8432c, #6e1f12); min-height: 150px; padding-top: 60px; }
.sos-test { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--tint-gold); color: var(--tint-gold-ink); font-weight: 700; font-size: calc(14px * var(--fz, 1)); }
.sos-test.small { font-size: calc(12.5px * var(--fz, 1)); margin-bottom: 8px; }
.sos-test .i { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.sos-calls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sos-call { display: grid; justify-items: center; gap: 4px; padding: 14px 6px; border: 0; border-radius: 18px; color: #fff; cursor: pointer; font: inherit; min-width: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18); transition: transform .15s; }
.sos-call:active { transform: scale(.96); }
.sos-call > i .i { width: 28px; height: 28px; }
.sos-call b { font-size: calc(30px * var(--fz, 1)); line-height: 1; letter-spacing: .02em; }
.sos-call span { font-size: calc(13px * var(--fz, 1)); font-weight: 700; text-align: center; overflow-wrap: anywhere; }
.sos-ambulance { background: #c0392b; }
.sos-police { background: #1f4fa3; }
.sos-fire { background: #d35400; }
.em-note { margin: 10px 0 18px; }
.sos-where, .sos-car, #sosNear:not(:empty) { margin: 0 0 18px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.sos-where .sec-title, .sos-car .sec-title, #sosNear .sec-title { margin-top: 0; }
.sos-where-acts, .sos-place-acts, .sos-send, .sos-links { display: flex; flex-wrap: wrap; gap: 8px; }
.sos-where-acts .btn, .sos-place-acts .btn { flex: 1 1 180px; justify-content: center; min-height: 48px; }
.sos-send { margin-top: 8px; }
.sos-send .btn { flex: 1 1 90px; justify-content: center; }
.sos-place { margin-top: 12px; }
.sos-line { display: grid; gap: 1px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sos-line small { color: var(--muted); font-size: calc(12px * var(--fz, 1)); }
.sos-line b { font-size: calc(17px * var(--fz, 1)); overflow-wrap: anywhere; }
.sos-line b span, .sos-line > span { color: var(--muted); font-weight: 600; font-size: calc(14px * var(--fz, 1)); }
.sos-coords { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.sos-place-acts { margin-top: 12px; }
.sos-err { display: flex; gap: 8px; margin-top: 10px; }
.sos-group { margin-top: 10px; }
.sos-group h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: calc(.95rem * var(--fz, 1)); }
.sos-near { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.sos-near > span { flex: 1; min-width: 0; display: grid; }
.sos-near b { overflow-wrap: anywhere; }
.sos-near small { color: var(--muted); }
.sos-near .btn { flex: none; width: 44px; height: 44px; padding: 0; justify-content: center; }
.sos-steps { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 6px; line-height: 1.45; }
.sos-ins { width: 100%; justify-content: center; min-height: 48px; }
.sos-links .btn { flex: 1 1 160px; justify-content: center; }
.em-open { margin-top: 12px; width: 100%; justify-content: center; min-height: 48px; }
/* Плитка «Экстренная помощь» на главной — красная, чтобы найти за секунду */
.guide-tile.tile-sos { border-color: rgba(200, 85, 61, .45); background: rgba(200, 85, 61, .08); }
.guide-tile.tile-sos > i { background: #b8432c; color: #fff; }
.guide-tile.tile-sos b { color: #b8432c; }
:root[data-theme="dark"] .guide-tile.tile-sos b { color: #ff8a73; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .guide-tile.tile-sos b { color: #ff8a73; } }

/* Настоящий режим SOS (SOS_LIVE=1): крупное красное предупреждение, мигает рамка — не перепутать с тестом */
.sos-live { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; padding: 14px; border-radius: 16px; background: #b8432c; color: #fff;
  border: 3px solid #ffd3c9; box-shadow: 0 8px 24px rgba(184, 67, 44, .4); animation: sosPulse 1.6s ease-in-out infinite; }
.sos-live > i { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); }
.sos-live > i .i { width: 26px; height: 26px; }
.sos-live b { display: block; font-size: calc(18px * var(--fz, 1)); line-height: 1.25; letter-spacing: .02em; margin-bottom: 4px; }
.sos-live span { display: block; font-size: calc(14.5px * var(--fz, 1)); line-height: 1.45; }
@keyframes sosPulse { 50% { border-color: #fff; box-shadow: 0 8px 30px rgba(184, 67, 44, .65); } }
@media (prefers-reduced-motion: reduce) { .sos-live { animation: none; } }
.sos-live-warn { display: block; margin-bottom: 6px; color: #b8432c; font-size: calc(16px * var(--fz, 1)); }
:root[data-theme="dark"] .sos-live-warn { color: #ff8a73; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sos-live-warn { color: #ff8a73; } }

/* Кнопка SOS: посередине нижнего меню — красный круг над остальными; на компьютере — в верхней панели */
@media (max-width: 1000px) {
  .bottom-nav { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .bottom-nav a.nav-sos { overflow: visible; color: #ffb4a6; padding-top: 0; }
  .nav-sos-dot { width: 52px; height: 52px; margin-top: -24px; border-radius: 50%; display: grid; place-items: center;
    background: radial-gradient(circle at 35% 30%, #e0593f, #b8432c 60%, #8f2f1d); color: #fff;
    border: 3px solid #0b1f3a; box-shadow: 0 6px 18px rgba(184, 67, 44, .55); transition: transform .15s; }
  .nav-sos-dot .i { width: 24px !important; height: 24px !important; }
  .bottom-nav a.nav-sos span { font-weight: 800; letter-spacing: .06em; color: #ff8a73; }
  .bottom-nav a.nav-sos:active .nav-sos-dot { transform: scale(.92); }
  .sos-top { display: none !important; }
}
.sos-top { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px; border-radius: 99px; background: #b8432c; color: #fff;
  font-weight: 800; font-size: calc(13px * var(--fz, 1)); letter-spacing: .05em; text-decoration: none; box-shadow: 0 4px 12px rgba(184, 67, 44, .4); }
.sos-top .i { width: 16px; height: 16px; }
.sos-top:hover { background: #a03a26; }
@media (max-width: 1000px) {
  /* 7 кнопок: длинные подписи (узбекский, немецкий) — в две строки, а не многоточием */
  .bottom-nav a span { white-space: normal; overflow: visible; text-overflow: clip; text-align: center; line-height: 1.1; font-size: calc(9.5px * var(--fz, 1));
    overflow-wrap: anywhere; hyphens: auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .bottom-nav a { padding-left: 1px; padding-right: 1px; }
}

/* «Где я»: поиск точного места и точность */
.sos-finding { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--tint-gold); color: var(--tint-gold-ink); }
.sos-finding > span:last-child { display: grid; gap: 2px; }
.sos-finding small { font-size: calc(13px * var(--fz, 1)); }
.sos-acc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; border-radius: 12px; margin-bottom: 4px; }
.sos-acc > .i { width: 22px; height: 22px; flex: none; }
.sos-acc > span { flex: 1 1 160px; display: grid; gap: 1px; min-width: 0; }
.sos-acc small { font-size: calc(12.5px * var(--fz, 1)); overflow-wrap: anywhere; }
.sos-acc .btn { flex: none; }
.sos-acc.good { background: rgba(31, 157, 92, .12); color: var(--green-ink, var(--green)); }
.sos-acc.mid { background: var(--tint-gold); color: var(--tint-gold-ink); }
.sos-acc.bad { background: rgba(200, 85, 61, .12); color: #b8432c; }
:root[data-theme="dark"] .sos-acc.bad { color: #ff8a73; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sos-acc.bad { color: #ff8a73; } }
.sos-about { display: block; margin-top: 4px; font-style: normal; font-size: calc(13px * var(--fz, 1)); font-weight: 600; color: var(--gold-ink); }

.sos-calls.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sos-calls.n1 { grid-template-columns: 1fr; }
.sos-unified { background: #8e1b0f; }
.sos-civil { background: #d35400; }

/* ================= ПЕРЕВОДЧИК ================= */
.tr-head, .mc-head { background: var(--ornament), linear-gradient(135deg, #0f5a43, #0a3a2e 60%, #06261e); min-height: 150px; padding-top: 60px; }
.tr-box { display: grid; gap: 12px; padding: 14px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tr-langs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; }
.tr-lang { width: 100%; min-width: 0; height: 46px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card-2); color: var(--text); font: inherit; font-size: calc(15px * var(--fz, 1)); font-weight: 700; }
.tr-swap { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--g-gold); color: #1b1404; display: grid; place-items: center; cursor: pointer; transition: transform .25s var(--ease); }
.tr-swap:active { transform: rotate(180deg) scale(.95); }
.tr-input { border: 1px solid var(--line-2); border-radius: 16px; background: var(--card-2); overflow: hidden; }
.tr-input:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(230, 180, 80, .25); }
.tr-input textarea { width: 100%; min-height: 96px; padding: 14px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: calc(18px * var(--fz, 1)); line-height: 1.4; resize: vertical; outline: none; }
.tr-input-bar { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-top: 1px solid var(--line); }
.tr-input-bar small { margin-left: auto; color: var(--faint); font-variant-numeric: tabular-nums; }
.tr-mic { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 0; border-radius: 99px; background: #0f5a43; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.tr-mic .i { width: 18px; height: 18px; }
.tr-offline-voice { text-decoration: none; white-space: nowrap; }
.tr-mic.on { background: #b8432c; animation: sosPulse 1.2s ease-in-out infinite; }
.tr-clear { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.tr-go { min-height: 52px; justify-content: center; font-size: calc(17px * var(--fz, 1)); }
.tr-res { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(15, 90, 67, .12), rgba(230, 180, 80, .1)); border: 1px solid rgba(15, 90, 67, .25); }
.tr-res-lang { display: flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 700; }
.tr-res-lang .i { width: 14px; height: 14px; }
.tr-res-text { margin: 0; font-size: calc(26px * var(--fz, 1)); line-height: 1.45; font-weight: 700; overflow-wrap: anywhere; }
.tr-res-text[dir="rtl"] { font-size: calc(30px * var(--fz, 1)); font-family: "Noto Naskh Arabic", "Geeza Pro", "Arial", sans-serif; }
.tr-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tr-acts .btn { justify-content: center; min-height: 46px; }
.tr-off { justify-items: center; text-align: center; }
.tr-off > .i { width: 28px; height: 28px; color: var(--gold-ink); }
.tr-off p { margin: 0; }
.tr-g { justify-content: center; }
.tr-sec { margin-top: 18px; }
.tr-groups { margin: 8px 0 10px; }
.tr-phrase { display: flex; align-items: stretch; gap: 6px; margin-bottom: 8px; }
.tr-ph-main { flex: 1; min-width: 0; display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.tr-ph-main:active { transform: scale(.99); }
.tr-ph-mine { font-weight: 700; }
.tr-ph-ar { font-size: calc(22px * var(--fz, 1)); line-height: 1.5; text-align: right; color: #0f5a43; font-family: "Noto Naskh Arabic", "Geeza Pro", "Arial", sans-serif; }
:root[data-theme="dark"] .tr-ph-ar { color: #6fd3a8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tr-ph-ar { color: #6fd3a8; } }
.tr-ph-tr { color: var(--muted); font-style: italic; }
.tr-ph-say { width: 52px; flex: none; border: 0; border-radius: 14px; background: #0f5a43; color: #fff; display: grid; place-items: center; cursor: pointer; }
.tr-ph-say .i { width: 22px; height: 22px; }
.tr-hist { display: grid; gap: 2px; width: 100%; margin-bottom: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.tr-hist small { color: var(--faint); font-size: calc(11.5px * var(--fz, 1)); }
.tr-hist span { color: var(--muted); overflow-wrap: anywhere; }
.tr-hist b { font-size: calc(17px * var(--fz, 1)); overflow-wrap: anywhere; }
.tr-hist b[dir="rtl"] { text-align: right; }
.tr-hist-clear { margin-left: auto; font-size: calc(12px * var(--fz, 1)); }
.tr-google { padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: 14px; }
.tr-google summary { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.tr-google .sos-steps { margin-top: 10px; }
.tr-note { display: flex; gap: 8px; margin-top: 14px; }
.tr-note .i { flex: none; width: 16px; height: 16px; margin-top: 2px; }
/* Показать собеседнику — крупно, тёмно-зелёный фон, белый текст */
.tr-bigview { background: #0a3a2e; color: #fff; gap: 18px; padding: 24px; }
.tr-big-text { margin: 0; font-size: calc(clamp(30px, 9vw, 56px) * min(var(--fz, 1), 1.15)); line-height: 1.35; font-weight: 800; color: #fff; overflow-wrap: anywhere; }
.tr-big-text[dir="rtl"] { font-family: "Noto Naskh Arabic", "Geeza Pro", "Arial", sans-serif; }
.tr-big-small { margin: 0; font-size: calc(18px * var(--fz, 1)); color: rgba(255, 255, 255, .75); }
.tr-big-say { align-self: center; min-height: 52px; padding: 0 24px; }
.tr-bigview .tc-x { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .25); }

/* ================= МЕККА И МЕДИНА ================= */
.mk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mk-tile { display: grid; justify-items: start; align-content: start; gap: 4px; padding: 14px; min-height: 118px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--text); text-decoration: none; text-align: left; font: inherit; cursor: pointer; box-shadow: var(--shadow); min-width: 0; transition: transform .15s; }
.mk-tile:active { transform: scale(.97); }
.mk-tile > i { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(15, 90, 67, .14); color: #0f5a43; }
:root[data-theme="dark"] .mk-tile > i { color: #6fd3a8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mk-tile > i { color: #6fd3a8; } }
.mk-tile > i .i { width: 24px; height: 24px; }
.mk-tile b { font-size: calc(16px * var(--fz, 1)); overflow-wrap: anywhere; }
.mk-tile small { color: var(--muted); font-size: calc(12.5px * var(--fz, 1)); line-height: 1.3; overflow-wrap: anywhere; }
.mk-tile.mk-tr { background: linear-gradient(135deg, #0f5a43, #0a3a2e); border-color: transparent; color: #fff; }
.mk-tile.mk-tr > i { background: rgba(255, 255, 255, .15); color: #f7d98b; }
.mk-tile.mk-tr small { color: rgba(255, 255, 255, .8); }
.mk-tile.mk-lost { background: linear-gradient(135deg, #f7d98b, #e6b450); border-color: transparent; color: #1b1404; }
.mk-tile.mk-lost > i { background: rgba(27, 20, 4, .12); color: #1b1404; }
.mk-tile.mk-lost small { color: rgba(27, 20, 4, .75); }
.mk-tile.mk-sos { border-color: rgba(200, 85, 61, .45); background: rgba(200, 85, 61, .08); }
.mk-tile.mk-sos > i { background: #b8432c; color: #fff; }
.mk-sec { margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.mk-sec .sec-title { margin-top: 0; }
.mk-wide { width: 100%; justify-content: center; min-height: 48px; margin-top: 8px; }
.mk-hotel-on { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; }
.mk-hotel-on .i { color: var(--green-ink, var(--green)); width: 22px; height: 22px; flex: none; }
.mk-hotel-on span { display: grid; }
.mk-hotel-on small { color: var(--muted); }
.mk-cities { margin: 4px 0 8px; }
.mk-date { margin: 0 0 12px; }
.mk-times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mk-time { position: relative; display: grid; justify-items: center; gap: 2px; padding: 12px 6px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); }
.mk-time small { color: var(--muted); font-weight: 700; font-size: calc(12.5px * var(--fz, 1)); text-align: center; }
.mk-time b { font-size: calc(22px * var(--fz, 1)); font-variant-numeric: tabular-nums; }
.mk-time.sun { opacity: .75; }
.mk-time.next { background: linear-gradient(135deg, #0f5a43, #0a3a2e); border-color: transparent; color: #fff; }
.mk-time.next small { color: rgba(255, 255, 255, .8); }
.mk-time em { position: absolute; top: -8px; padding: 1px 8px; border-radius: 99px; background: var(--gold); color: #1b1404; font-style: normal; font-size: calc(11px * var(--fz, 1)); font-weight: 800; }
.mk-digits { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 8px 0 12px; }
.mk-digits span { display: grid; justify-items: center; padding: 8px 0; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); }
.mk-digits b { font-size: calc(26px * var(--fz, 1)); line-height: 1.1; font-family: "Noto Naskh Arabic", "Geeza Pro", "Arial", sans-serif; }
.mk-digits small { color: var(--muted); font-weight: 700; }
.mk-conv { display: grid; gap: 6px; font-size: calc(13px * var(--fz, 1)); color: var(--muted); }
.mk-conv input { height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card-2); color: var(--text); font: inherit; font-size: calc(18px * var(--fz, 1)); font-weight: 700; }
.mk-conv output { font-size: calc(22px * var(--fz, 1)); color: var(--text); }
.mk-switch { width: 100%; justify-content: center; margin-top: 18px; min-height: 48px; }
.mk-form label input { width: 100%; }
/* «Я потерялся» — большой экран для прохожего */
.lost-card { gap: 0; }
.lost-big { margin: 0 0 4px; font-size: calc(clamp(30px, 9vw, 48px) * min(var(--fz, 1), 1.15)); line-height: 1.35; font-weight: 800; color: #b8432c; text-align: right; font-family: "Noto Naskh Arabic", "Geeza Pro", "Arial", sans-serif; }
.lost-en { margin: 0 0 12px; font-size: calc(16px * var(--fz, 1)); color: #555; }
.lost-map { margin-top: 16px; justify-content: center; min-height: 52px; }
/* Выбор направления при открытии */
.rg-card { text-align: center; }
.rg-opts { display: grid; gap: 10px; margin: 14px 0 10px; }
.rg-opt { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px; border: 2px solid var(--line); background: var(--card-2); color: var(--text); text-align: left; font: inherit; cursor: pointer; transition: transform .15s, border-color .15s; }
.rg-opt:active { transform: scale(.98); }
.rg-opt:hover { border-color: var(--gold); }
.rg-flag { grid-row: span 2; font-size: calc(36px * var(--fz, 1)); line-height: 1; }
.rg-opt b { font-size: calc(18px * var(--fz, 1)); }
.rg-opt small { color: var(--muted); font-size: calc(13px * var(--fz, 1)); }
.rg-mecca { border-color: rgba(15, 90, 67, .45); background: linear-gradient(135deg, rgba(15, 90, 67, .12), rgba(230, 180, 80, .08)); }
.mk-conv { min-width: 0; }
.mk-conv > * { min-width: 0; width: 100%; max-width: 100%; box-sizing: border-box; overflow-wrap: anywhere; }

/* Цены на карте (js/map-prices.js): подпись под значком — при приближении, строка в карточке */
.pin .pin-price { position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%); white-space: nowrap; font: 700 11px/1.25 var(--font); font-style: normal;
  background: #fff; color: #1c2433; padding: 1px 6px; border-radius: 99px; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); pointer-events: none; }
.pin .pin-price.exact { background: #177a47; color: #fff; }
.map-far .pin-price { display: none; }
.map-price-line { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin: 6px 0 2px; }
.map-price-line .i { width: 16px; height: 16px; color: var(--green-ink); }
.map-price-line small { flex-basis: 100%; color: var(--muted); }
.pin .pin-price.hide { visibility: hidden; }

/* Внутри сайта-витрины (рамка телефона на компьютере): прокрутка есть, полос нет */
html.framed, html.framed * { scrollbar-width: none; }
html.framed ::-webkit-scrollbar { display: none; }

/* «Работает без интернета» на главной — кнопка к экрану офлайна (js/country.js: offChipFacts) */
.off-chip { display: inline-flex; align-items: center; gap: 5px; margin: 2px 0; padding: 3px 10px 3px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.1); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; vertical-align: middle; }
.off-chip:hover { background: rgba(255,255,255,.2); }
.off-chip-i { width: 14px; height: 14px; flex: none; }
.off-chip::after { content: "›"; font-weight: 800; opacity: .8; }

/* «Что работает без интернета» вверху экрана «Офлайн» (js/offline.js) */
.off-what { margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--r, 16px); background: var(--bg-2); padding: 12px 14px; }
.off-what summary { cursor: pointer; font-weight: 800; display: flex; align-items: center; gap: 8px; list-style: none; }
.off-what summary::-webkit-details-marker { display: none; }
.off-what summary .i { width: 18px; height: 18px; color: #d9a23a; }
.off-w-grid { display: grid; gap: 12px; margin-top: 12px; }
@media (min-width: 720px) { .off-w-grid { grid-template-columns: repeat(3, 1fr); } }
.off-w b { display: flex; align-items: center; gap: 6px; font-size: calc(.92rem * var(--fz, 1)); }
.off-w b .i { width: 16px; height: 16px; flex: none; }
.off-w.ok b { color: #2fb67c; } .off-w.dl b { color: #d9a23a; } .off-w.net b { color: var(--muted); }
.off-w ul { margin: 6px 0 0; padding-inline-start: 20px; display: grid; gap: 3px; font-size: calc(.88rem * var(--fz, 1)); color: var(--text); }

/* «Предложить место» (js/suggest.js) */
.sg-cta { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; padding: 14px 16px; border: 1px dashed var(--gold); border-radius: 18px; background: var(--tint-gold); color: var(--text); text-decoration: none; }
.sg-cta > i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--gold); color: #1a1405; flex: none; }
.sg-cta span { display: grid; gap: 2px; flex: 1; } .sg-cta small { color: var(--muted); }
.sg-cta > .i { color: var(--gold-ink); flex: none; }
.sg-card { display: grid; gap: 12px; overflow-x: hidden; }
.sg-card > *, .sg-field > * { min-width: 0; }
.sg-field { display: grid; gap: 6px; font-size: calc(.88rem * var(--fz, 1)); color: var(--muted); }
.sg-field > input, .sg-field > select, .sg-field > textarea { width: 100%; box-sizing: border-box; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); font-size: calc(15px * var(--fz, 1)); min-height: 46px; }
.sg-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.sg-kinds .rp-reason { color: var(--text); min-width: 0; padding: 8px 10px; gap: 8px; }
.sg-kinds .rp-reason span { min-width: 0; overflow-wrap: break-word; font-size: calc(.9rem * var(--fz, 1)); line-height: 1.2; }
.sg-kinds .rp-reason > i { width: 28px; height: 28px; }
.sg-map-wrap { position: relative; height: 220px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.sg-map { position: absolute; inset: 0; }
.sg-cross { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); z-index: 500; pointer-events: none; color: var(--terra, #c0392b); filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.sg-cross .i { width: 34px; height: 34px; }
.sg-here { justify-self: start; }
.sg-more { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.sg-more summary { cursor: pointer; font-weight: 600; min-height: 28px; }
.sg-more[open] { display: grid; gap: 10px; }
.sg-photo { display: flex; align-items: center; gap: 10px; }
.sg-thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.pl-user { width: fit-content; align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; margin: 4px 0; padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,.35); color: #fff; font-size: .82em; }
.sg-adm-img { display: block; width: 100%; max-width: 280px; border-radius: 12px; margin-bottom: 6px; }

/* Флаг страны общего приложения в списках «Другие приложения» (SVG из js/country.js) */
.tl-flag { display: grid; place-items: center; }
.tl-flag .cty-flag { width: 2.4rem; height: auto; aspect-ratio: 3 / 2; border-radius: 5px; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
