/* ============================================================
   Wanderlist — дизайн-система
   Тёмная, спокойная, фотоцентричная. Manrope. Иконки — SVG.
   Отступы: 4/8/12/16/20/24/32/44. Радиусы: 10/14/18/24.
   ============================================================ */
:root {
  --bg: #0a0b0e;
  --s1: #101218;
  --s2: #161922;
  --s3: #1d212c;
  --line: rgba(255, 255, 255, .065);
  --line-2: rgba(255, 255, 255, .12);
  --text: #f2f0ea;
  --t2: #a6adba;
  --t3: #6c7482;
  --amber: #f5a524; --rose: #f472b6; --green: #34d399; --blue: #60a5fa; --red: #f87171;
  --green-dim: rgba(52, 211, 153, .13);
  --amber-dim: rgba(245, 165, 36, .13);
  --red-dim: rgba(248, 113, 113, .12);
  --r-s: 10px; --r-m: 14px; --r-l: 18px; --r-xl: 24px;
  --nav-h: 64px;
  --shadow-1: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-2: 0 24px 60px rgba(0, 0, 0, .5);
  font-size: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Manrope', -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 470; line-height: 1.55; font-size: 15px;
  min-height: 100dvh; overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(245, 165, 36, .3); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: var(--text); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #232936; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.015em; }

/* ---------- иконки ---------- */
.ic { width: 18px; height: 18px; flex: none; }
.ic-s { width: 15px; height: 15px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 12px;
  background: var(--s2); border: 1px solid var(--line-2);
  font-weight: 700; font-size: 14px; letter-spacing: .01em;
  transition: background .15s, border-color .15s, transform .1s, opacity .15s;
  position: relative; white-space: nowrap;
}
.btn:hover { background: var(--s3); }
.btn:active { transform: scale(.97); }
.btn.accent { background: var(--text); color: #12141a; border-color: transparent; }
.btn.accent:hover { background: #fff; }
.btn.danger { color: var(--red); border-color: rgba(248, 113, 113, .35); background: transparent; }
.btn.danger:hover { background: var(--red-dim); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--t2); }
.btn.ghost:hover { background: var(--s2); color: var(--text); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 10px; gap: 6px; }
.btn[data-busy] { pointer-events: none; color: transparent !important; }
.btn[data-busy] .ic { opacity: 0; }
.btn[data-busy]::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, .25); border-top-color: var(--text);
  border-radius: 50%; animation: spin .7s linear infinite;
}
.btn.accent[data-busy]::after { border-color: rgba(0, 0, 0, .2); border-top-color: #12141a; }
@keyframes spin { to { transform: rotate(360deg); } }
.mini-btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 28px; padding: 0 10px; border-radius: 9px;
  background: var(--s2); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 700; color: var(--t2); transition: .15s;
}
.mini-btn:hover { color: var(--text); border-color: var(--line-2); }
.tool-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--t3); font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 9px; transition: .15s; }
.tool-btn:hover { color: var(--text); background: var(--s2); }
.tool-btn .ic { width: 14px; height: 14px; }

/* ---------- поля ---------- */
.fin {
  width: 100%; height: 42px; padding: 0 14px; border-radius: 12px;
  background: var(--s2); border: 1px solid var(--line); outline: none;
  transition: border-color .15s, background .15s;
}
.fin::placeholder { color: var(--t3); }
.fin:focus { border-color: var(--line-2); background: var(--s3); }
textarea.fin { height: auto; padding: 11px 14px; resize: vertical; line-height: 1.55; }
input[type="month"].fin, input[type="date"].fin { color-scheme: dark; width: auto; }
input[type=range] { accent-color: var(--amber); width: 100%; }
.edit-area { width: 100%; min-height: 280px; background: var(--s2); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px; outline: none; line-height: 1.65; resize: vertical; }
.edit-area:focus { border-color: var(--line-2); }

/* ---------- чипы и бейджи ---------- */
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--s1);
  color: var(--t2); font-size: 13px; font-weight: 700; transition: .15s;
}
.chip:hover { border-color: var(--line-2); color: var(--text); }
.chip.on { color: #12141a; background: var(--text); border-color: var(--text); }
.chip.on.chip-green { background: var(--green); border-color: var(--green); }
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 750; color: var(--text);
  background: rgba(10, 11, 14, .66); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.pill .ic { width: 13px; height: 13px; }
.pill.yes { color: #7ff0c0; } .pill.warn { color: #ffd08a; } .pill.no { color: #ffa6a6; }
.pill.plan-sure { color: #7ff0c0; border-color: rgba(52, 211, 153, .45); }
.pill.plan-maybe { color: #ffd08a; border-color: rgba(245, 165, 36, .45); }
.tagchip {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px;
  border-radius: 7px; background: var(--s2); border: 1px solid var(--line);
  font-size: 11px; font-weight: 700; color: var(--t2); letter-spacing: .02em;
}

/* ---------- каркас ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 20px;
  height: 60px; padding: 0 clamp(16px, 3vw, 28px);
  background: rgba(10, 11, 14, .8); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; font-size: 20px; letter-spacing: -.02em; white-space: nowrap; }
.brand span { color: var(--amber); }
.top-tabs { display: flex; gap: 2px; }
.top-tabs a {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px;
  border-radius: 10px; color: var(--t2); font-weight: 700; font-size: 14px; transition: .15s; position: relative;
}
.top-tabs a:hover { color: var(--text); background: var(--s2); }
.top-tabs a.on { color: var(--text); background: var(--s2); box-shadow: inset 0 -2px 0 var(--amber); }
.top-spacer { flex: 1; }
.userchip { display: flex; align-items: center; gap: 10px; color: var(--t2); font-size: 14px; font-weight: 600; }
.userchip .ava { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #12141a; font-size: 14px; }
.ava-aleksei { background: var(--amber); } .ava-yulia { background: var(--rose); } .ava-jorik { background: var(--blue); }
.userchip button { color: var(--t3); font-size: 13px; font-weight: 600; }
.userchip button:hover { color: var(--text); }

#view { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 28px) 72px; }
#view.full { max-width: none; padding: 0; }
.vfade { animation: vfade .28s ease both; }
@keyframes vfade { from { opacity: 0; transform: translateY(6px); } }
.badge-dot { position: absolute; top: 5px; right: 7px; width: 8px; height: 8px; border-radius: 8px; background: var(--blue); box-shadow: 0 0 0 3px var(--bg); }

.bottom-nav { display: none; }
@media (max-width: 900px) {
  .top-tabs { display: none; }
  .bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: flex; justify-content: space-around; align-items: stretch;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    background: rgba(12, 13, 17, .88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--line);
  }
  .bottom-nav a {
    position: relative; display: grid; justify-items: center; gap: 3px;
    padding: 5px 0 3px; min-width: 52px; border-radius: 12px;
    color: var(--t3); font-size: 10px; font-weight: 700; letter-spacing: .02em; transition: .15s;
  }
  .bottom-nav a .ic { width: 21px; height: 21px; }
  .bottom-nav a.on { color: var(--text); }
  .bottom-nav a.on .ic { color: var(--amber); }
  body.app { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
}

/* ---------- заголовки страниц ---------- */
.page-h { display: flex; align-items: center; gap: 14px; margin: 26px 0 4px; flex-wrap: wrap; }
.page-h h1 { font-size: clamp(24px, 3.6vw, 30px); }
.page-h .cnt { color: var(--t3); font-size: 15px; font-weight: 700; }
.page-h .tools { margin-left: auto; display: flex; gap: 8px; }
.page-sub { color: var(--t2); font-size: 14px; margin: 2px 0 18px; max-width: 660px; line-height: 1.55; }
.page-sub b { color: var(--text); }

/* ---------- поиск ---------- */
.searchwrap { position: sticky; top: 60px; z-index: 30; margin: 0 -4px; padding: 8px 4px 6px; background: linear-gradient(var(--bg) 78%, transparent); }
.searchbar {
  display: flex; align-items: center; gap: 10px;
  background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-m);
  height: 46px; padding: 0 16px; transition: border-color .15s;
}
.searchbar:focus-within { border-color: var(--line-2); }
.searchbar .ic { color: var(--t3); }
.searchbar input { flex: 1; background: none; border: 0; outline: none; font-size: 15px; min-width: 0; }
.searchbar input::placeholder { color: var(--t3); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }

/* ---------- секции вишлиста ---------- */
.group { margin-top: 34px; }
.group-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.group-h h2 { font-size: 19px; }
.group-h .cnt { color: var(--t3); font-size: 13.5px; font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }
@media (max-width: 700px) { .grid { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- карточка места ---------- */
.card2 {
  border-radius: var(--r-l); overflow: hidden; cursor: pointer; isolation: isolate;
  background: var(--s1); border: 1px solid var(--line);
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s, border-color .2s;
}
.card2:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.card2:active { transform: scale(.985); }
.card2 .cimg { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--s2); }
.card2 .cimg.loading { background: linear-gradient(110deg, var(--s2) 8%, var(--s3) 18%, var(--s2) 33%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position-x: -200%; } }
.card2 .cimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .4s; }
.card2:hover .cimg img { transform: scale(1.045); }
.card2 .noimg-fill { height: 100%; display: grid; place-items: center; color: var(--t3); }
.card2 .noimg-fill .ic { width: 34px; height: 34px; opacity: .5; }
.card2 .ctop { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.card2 .cbody { padding: 14px 16px; }
.card2 h3 { font-size: 17px; line-height: 1.3; }
.cstars { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.stars-mini { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 750; color: var(--t2); }
.stars-mini .star { font-size: 13px; line-height: 1; }
.sm-a .star { color: var(--amber); } .sm-y .star { color: var(--rose); }
.sm-off { color: var(--t3); }
.sm-dot { color: var(--t3); }
.when-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px;
  border-radius: 999px; background: var(--s2); border: 1px solid var(--line);
  color: var(--t2); font-size: 11.5px; font-weight: 700;
}
.cgeo { color: var(--t2); font-size: 13px; margin-top: 7px; }
.ctags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }
.cmet {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
}
.cm { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 750; color: var(--t2); }
.cm .ic { width: 14px; height: 14px; color: var(--t3); }
.cm b { color: var(--text); font-weight: 800; }
.smini { display: inline-flex; gap: 1px; }
.smini i { font-style: normal; width: 10.5px; text-align: center; font-size: 9px; font-weight: 800; color: #3a4250; }
.smini i.on { color: var(--green); }
.cfoot { display: flex; align-items: center; gap: 6px; color: var(--t3); font-size: 11.5px; margin-top: 10px; }
.cfoot .ic { width: 13px; height: 13px; }

/* ---------- пустые состояния ---------- */
.empty { margin: 70px auto; text-align: center; color: var(--t2); max-width: 460px; display: grid; justify-items: center; gap: 6px; }
.empty .eicon { width: 64px; height: 64px; border-radius: 22px; background: var(--s1); border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 8px; }
.empty .eicon .ic { width: 28px; height: 28px; color: var(--t3); }
.empty p { font-size: 15px; }
.empty .btn { margin-top: 14px; }
.none-txt { color: var(--t3); font-size: 13.5px; line-height: 1.55; }

/* ---------- страница места ---------- */
.hero { position: relative; height: min(56vh, 540px); min-height: 320px; border-radius: 0 0 var(--r-xl) var(--r-xl); overflow: hidden; margin: 0 calc(-1 * clamp(16px, 3vw, 28px)); background: var(--s2); }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 9, 12, .42), transparent 34%, transparent 52%, rgba(10, 11, 14, .96)); }
.hero .back {
  position: absolute; top: 16px; left: 16px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(10, 11, 14, .6); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px); z-index: 2; transition: .15s;
}
.hero .back:hover { background: rgba(20, 22, 28, .8); }
.hero .hbottom { position: absolute; left: clamp(16px, 4vw, 36px); right: clamp(16px, 4vw, 36px); bottom: 24px; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.12; text-shadow: 0 2px 24px rgba(0, 0, 0, .55); }
.hero .hsub { color: rgba(242, 240, 234, .85); margin-top: 6px; font-size: 15px; font-weight: 600; }
.hero .hpills { display: flex; gap: 7px; margin-top: 14px; flex-wrap: wrap; }
.pcontent { max-width: 800px; margin: 0 auto; }
.actionbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 6px; }
.psection { margin-top: 36px; }
.psection > h2, .psection .h-row h2 { font-size: 19px; }
.psection .h-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.psection .h-row .tools { margin-left: auto; display: flex; gap: 6px; }

.desire { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-l); padding: 8px 20px 0; }
.desire-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.desire-row + .desire-row { border-top: 1px solid var(--line); }
.desire-row .nm { width: 92px; font-weight: 750; font-size: 14.5px; display: flex; align-items: center; gap: 9px; }
.dotc { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-a { background: var(--amber); } .dot-y { background: var(--rose); }
.starbar { display: flex; gap: 2px; }
.starbar button { font-size: 26px; line-height: 1; color: #2b3140; transition: transform .15s, color .15s; padding: 3px; }
.starbar button.on-a { color: var(--amber); } .starbar button.on-y { color: var(--rose); }
.starbar.mine button:hover { transform: scale(1.2); }
.starbar.locked { pointer-events: none; opacity: .9; }
.desire-row .val { margin-left: auto; color: var(--t2); font-weight: 800; font-size: 15px; min-width: 22px; text-align: right; }
.match-note { padding: 13px 0 16px; border-top: 1px solid var(--line); color: var(--t2); font-size: 13.5px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; }
.fact { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 16px; }
.fact .lbl { display: flex; align-items: center; gap: 6px; color: var(--t3); font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.fact .lbl .ic { width: 13px; height: 13px; }
.fact .val { margin-top: 8px; font-size: 16.5px; font-weight: 750; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fact .note { color: var(--t2); font-size: 12.5px; margin-top: 6px; line-height: 1.5; }
.fact.wide { grid-column: 1 / -1; }
.dog-yes { color: var(--green); } .dog-no { color: var(--red); } .dog-part { color: var(--amber); }
.stale { color: var(--red); font-weight: 700; }
.mdots { display: flex; gap: 4px; margin-top: 10px; }
.mdots i { flex: 1; height: 26px; border-radius: 7px; background: var(--s2); display: grid; place-items: center; font-style: normal; font-size: 10px; color: var(--t3); font-weight: 750; }
.mdots i.on { background: var(--green-dim); color: var(--green); }
.mdots i.now { outline: 1.5px solid var(--blue); outline-offset: 1.5px; }
.seg { display: inline-flex; background: var(--s2); border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 8px; color: var(--t2); font-weight: 700; font-size: 13px; transition: .15s; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--s3); color: var(--text); box-shadow: 0 1px 6px rgba(0, 0, 0, .3); }
.fresh-note { color: var(--t3); font-size: 12px; margin-top: 30px; text-align: center; line-height: 1.6; }

/* ---------- галерея ---------- */
.gallery { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; }
.gallery img { height: 165px; border-radius: var(--r-m); scroll-snap-align: start; cursor: zoom-in; flex: none; max-width: 76vw; object-fit: cover; }
.gph { position: relative; flex: none; }
.gtools { position: absolute; top: 8px; right: 8px; display: none; gap: 6px; }
.ph-manage .gtools, .gtools.always { display: flex; }
.gtools button, .gtools .gcover {
  display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px;
  border-radius: 999px; font-size: 11.5px; font-weight: 750;
  background: rgba(10, 11, 14, .8); border: 1px solid rgba(255, 255, 255, .16); color: var(--text);
  backdrop-filter: blur(8px);
}
.gtools [data-delph], .gtools [data-vphdel] { color: var(--red); }
.gtools .gcover { color: var(--green); border-color: rgba(52, 211, 153, .4); }

/* ---------- статья и комментарии ---------- */
.article p { font-size: 15.5px; line-height: 1.75; color: #d6d3cc; margin-bottom: 16px; }
.comments { display: grid; gap: 12px; }
.comment { display: flex; gap: 11px; }
.comment .ava { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #12141a; flex: none; font-size: 14px; }
.comment .bub { background: var(--s1); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; padding: 10px 14px; }
.comment .who { font-size: 12.5px; font-weight: 750; margin-bottom: 3px; }
.comment .who span { color: var(--t3); font-weight: 500; margin-left: 7px; font-size: 11.5px; }
.comment.c-aleksei .who { color: var(--amber); } .comment.c-yulia .who { color: var(--rose); } .comment.c-jorik .who { color: var(--blue); }
.comment .txt { font-size: 14.5px; }
.crow { display: flex; gap: 9px; margin-top: 16px; }
.crow .fin { flex: 1; }
.crow .btn { width: 46px; padding: 0; flex: none; }

/* ---------- дневник ---------- */
.vcountry { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-l); margin-bottom: 10px; overflow: hidden; transition: border-color .2s; }
.vcountry:hover { border-color: var(--line-2); }
.vc-head { width: 100%; display: flex; align-items: center; gap: 13px; padding: 15px 18px; text-align: left; }
.vc-flag { font-size: 23px; line-height: 1; }
.vc-name { font-weight: 800; font-size: 15.5px; flex: 1; }
.vc-cnt { color: var(--t3); font-size: 13px; font-weight: 700; }
.vc-arrow { color: var(--t3); transition: transform .25s; display: grid; }
.vcountry.open .vc-arrow { transform: rotate(90deg); }
.vc-body { display: none; padding: 0 18px 8px; }
.vcountry.open .vc-body { display: block; }
.ventry { border-top: 1px solid var(--line); padding: 14px 0; }
.ve-head { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.ve-head b { font-size: 15px; }
.ve-dates { display: inline-flex; align-items: center; gap: 5px; color: var(--t3); font-size: 12.5px; margin-top: 3px; font-weight: 600; }
.ve-dates .ic { width: 13px; height: 13px; }
.ve-tools { display: flex; gap: 6px; flex: none; }
.ve-note { color: #cfccc5; font-size: 14px; margin-top: 8px; line-height: 1.6; }
.ve-gal { margin-top: 10px; }
.ve-gal img { height: 118px; }

/* ---------- Жорик ---------- */
.jorik-hero { display: flex; gap: 16px; align-items: center; margin: 28px 0 18px; }
.jorik-hero .java { width: 52px; height: 52px; border-radius: 17px; background: linear-gradient(135deg, #1c2431, #131721); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--blue); }
.jorik-hero .java .ic { width: 26px; height: 26px; }
.jorik-hero h1 { font-size: 24px; }
.jorik-hero p { color: var(--t2); font-size: 13.5px; margin-top: 2px; }
.jform { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px; display: grid; gap: 12px; }
.jform textarea { min-height: 84px; }
.jform .hint { color: var(--t3); font-size: 12.5px; line-height: 1.55; }
.req-wrap { margin-top: 12px; }
.req { display: flex; gap: 13px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 16px; }
.req .txt { flex: 1; min-width: 0; }
.req .txt .t { font-size: 14px; line-height: 1.5; }
.req .txt .t .ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; color: var(--t2); }
.req .txt .m { color: var(--t3); font-size: 12px; margin-top: 4px; }
.req .txt .res { color: var(--green); font-size: 13px; margin-top: 6px; }
.st { flex: none; align-self: flex-start; display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 11.5px; font-weight: 800; }
.st-new { background: rgba(96, 165, 250, .12); color: var(--blue); }
.st-work { background: var(--amber-dim); color: var(--amber); }
.st-work::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); margin-right: 6px; animation: blink 1.1s ease infinite; }
@keyframes blink { 50% { opacity: .25; } }
.st-done { background: var(--green-dim); color: var(--green); }
.cands { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 12px 0 4px; }
.cand { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.cand:hover { border-color: var(--line-2); transform: translateY(-2px); }
.cand img { width: 100%; height: 128px; object-fit: cover; }
.cand-noimg { height: 128px; display: grid; place-items: center; color: var(--t3); background: var(--s2); }
.cand-noimg .ic { width: 26px; height: 26px; opacity: .5; }
.cand-b { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cand-b b { font-size: 14.5px; line-height: 1.3; }
.cand-short { color: var(--t2); font-size: 12.5px; line-height: 1.5; flex: 1; }
.cand .btn { margin-top: 10px; }
.cand-done { color: var(--green); }
.jlog { margin-top: 34px; }
.jlog summary {
  display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none;
  font-weight: 800; font-size: 15px; padding: 12px 2px; border-top: 1px solid var(--line);
}
.jlog summary::-webkit-details-marker { display: none; }
.jlog summary .cnt { color: var(--t3); font-size: 13px; font-weight: 700; }
.jlog summary .vc-arrow { margin-left: auto; }
.jlog[open] summary .vc-arrow { transform: rotate(90deg); }
.jl { display: flex; gap: 10px; align-items: baseline; padding: 7px 2px; border-bottom: 1px solid var(--line); font-size: 13px; color: #cfccc5; }
.jl-t { color: var(--t3); font-size: 11.5px; font-variant-numeric: tabular-nums; flex: none; }
.jl-i { flex: none; }

/* ---------- календарь ---------- */
.cal-month { margin-top: 24px; }
.cal-month > .mh { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.cal-month h2 { font-size: 17px; text-transform: capitalize; }
.now-tag { color: var(--blue); font-size: 10.5px; font-weight: 800; letter-spacing: .1em; }
.cal-compact { display: flex; align-items: baseline; gap: 12px; margin-top: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.cal-compact h2 { font-size: 14px; color: var(--t3); font-weight: 750; text-transform: capitalize; }
.cal-plans { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; }
.plan-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 13px; border-radius: 999px;
  background: var(--s1); border: 1px solid var(--line-2); font-size: 13px; font-weight: 700; transition: .15s;
}
.plan-chip:hover { background: var(--s2); }
.plan-chip .ic { width: 14px; height: 14px; }
.plan-chip.plan-sure { border-color: rgba(52, 211, 153, .45); color: #b9f2da; }
.plan-chip.plan-maybe { border-color: rgba(245, 165, 36, .45); color: #ffe0ae; }
.mini-row { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.mini-row::-webkit-scrollbar { display: none; }
.mini { flex: none; width: 170px; border-radius: var(--r-m); overflow: hidden; position: relative; background: var(--s1); border: 1px solid var(--line); cursor: pointer; transition: transform .2s, border-color .2s; }
.mini:hover { border-color: var(--line-2); }
.mini:active { transform: scale(.96); }
.mini img { height: 90px; width: 100%; object-fit: cover; }
.mini .mi { padding: 8px 11px 10px; }
.mini .mi b { font-size: 13px; line-height: 1.3; display: block; }
.mini .mi span { color: var(--t3); font-size: 11px; }
.mini .gdot { position: absolute; top: 8px; left: 8px; width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(10, 11, 14, .55); }
.gd-green { background: var(--green); } .gd-amber { background: var(--amber); } .gd-rose { background: var(--rose); } .gd-gray { background: var(--t3); }

/* ---------- поездки ---------- */
.trips-list { display: grid; gap: 16px; margin-top: 8px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
@media (max-width: 700px) { .trips-list { grid-template-columns: 1fr; } }
.trip-card { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; cursor: pointer; transition: transform .22s, box-shadow .22s, border-color .2s; }
.trip-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); border-color: var(--line-2); }
.trip-card .strip { display: flex; height: 116px; gap: 2px; background: var(--bg); }
.trip-card .strip img { flex: 1; object-fit: cover; min-width: 0; }
.trip-card .ti { padding: 14px 17px 16px; }
.trip-card .ti h3 { font-size: 17px; }
.trip-card .ti .sub { color: var(--t2); font-size: 13px; margin-top: 4px; }
.warn-tag { color: #ffb35c; font-size: 12.5px; font-weight: 750; }
.trip-meta { color: var(--t2); font-size: 14px; margin: 6px 0 18px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.warns { display: grid; gap: 8px; margin: 14px 0; }
.warn-banner { background: var(--red-dim); border: 1px solid rgba(248, 113, 113, .35); color: #ffbcbc; border-radius: var(--r-m); padding: 11px 15px; font-size: 13.5px; font-weight: 650; }
.trip-map { height: 300px; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); }
.tl { margin-top: 20px; display: grid; gap: 10px; }
.tl-stop { display: flex; gap: 16px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 16px; }
.tl-stop.outseason { border-color: rgba(248, 113, 113, .4); }
.tl-day { flex: none; width: 76px; text-align: center; padding-top: 2px; }
.tl-day .d { font-weight: 800; font-size: 14px; }
.tl-day .dates { color: var(--t3); font-size: 11px; margin-top: 2px; line-height: 1.35; }
.tl-body { flex: 1; min-width: 0; }
.tl-body .nm { font-weight: 750; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl-body .nm a { border-bottom: 1px dotted var(--t3); }
.tl-body .note { color: var(--t2); font-size: 13px; margin-top: 4px; line-height: 1.5; }
.tl-body .tl-tools { display: flex; align-items: center; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.addstop { display: flex; gap: 9px; margin-top: 16px; flex-wrap: wrap; }
.addstop select { flex: 1; min-width: 220px; }

/* ---------- карта ---------- */
.map-page { position: relative; height: calc(100dvh - 60px); }
@media (max-width: 900px) { .map-page { height: calc(100dvh - 60px - var(--nav-h) - env(safe-area-inset-bottom)); } }
#map { height: 100%; background: var(--bg); }
.maplibregl-map { font: inherit; }
.maplibregl-canvas { outline: none; }
.maplibregl-popup-content { background: var(--s3); color: var(--text); border-radius: var(--r-m); padding: 0; overflow: hidden; box-shadow: var(--shadow-2); border: 1px solid var(--line-2); }
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: var(--s3); }
.maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: var(--s3); }
.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--s3); }
.maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--s3); }
.pop { cursor: pointer; width: 216px; }
.pop img { width: 100%; height: 106px; object-fit: cover; display: block; }
.pop .pi { padding: 10px 13px 12px; }
.pop .pi b { font-size: 14.5px; }
.pop .pi div { color: var(--t2); font-size: 12px; margin-top: 2px; }
.maplibregl-ctrl-attrib { background: rgba(10, 11, 14, .65) !important; }
.maplibregl-ctrl-attrib, .maplibregl-ctrl-attrib a { color: var(--t3) !important; font-size: 10px; }
.maplibregl-ctrl-attrib-button { filter: invert(.7); }
.maplibregl-ctrl-group { background: var(--s3) !important; border: 1px solid var(--line) !important; border-radius: 12px !important; overflow: hidden; box-shadow: none !important; }
.maplibregl-ctrl-group button { background: transparent !important; }
.maplibregl-ctrl-group button + button { border-top: 1px solid var(--line) !important; }
.maplibregl-ctrl button .maplibregl-ctrl-icon { filter: invert(.85); }
.map-legend {
  position: absolute; top: 14px; right: 14px; z-index: 500;
  background: rgba(12, 13, 17, .82); backdrop-filter: blur(14px); border: 1px solid var(--line);
  border-radius: var(--r-m); padding: 11px 14px; display: grid; gap: 7px; font-size: 12px; font-weight: 700;
}
.map-legend span { display: inline-flex; align-items: center; gap: 8px; color: var(--t2); }
.map-legend i { width: 10px; height: 10px; border-radius: 50%; }
.map-hint {
  position: absolute; left: 14px; right: 14px; bottom: 34px; z-index: 500;
  background: rgba(12, 13, 17, .88); backdrop-filter: blur(14px); border: 1px solid var(--line-2);
  border-radius: var(--r-m); padding: 12px 15px; font-size: 13px; color: var(--t2); line-height: 1.55;
  max-width: 560px; margin: 0 auto;
}
.map-hint button { color: var(--green); font-weight: 800; margin-left: 6px; }
.wl-marker { position: relative; cursor: pointer; }
.wl-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--c, var(--t3));
  border: 2.5px solid rgba(10, 11, 14, .85);
  box-shadow: 0 0 10px 2px color-mix(in srgb, var(--c, #888) 55%, transparent);
  transition: transform .2s;
}
.wl-marker:hover .wl-dot { transform: scale(1.35); }
.wl-marker.big .wl-dot { width: 17px; height: 17px; box-shadow: 0 0 14px 4px color-mix(in srgb, var(--c, #888) 60%, transparent); }
.wl-lbl {
  position: absolute; top: calc(100% + 3px); left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 750; letter-spacing: .02em; color: #dcd9d2;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .9), 0 0 2px rgba(0, 0, 0, .9);
  white-space: nowrap; opacity: 0; transition: opacity .3s; pointer-events: none;
}
.map-page.zoomed .wl-lbl, .wl-marker:hover .wl-lbl { opacity: 1; }
.trip-num {
  width: 27px; height: 27px; border-radius: 50%; background: var(--text); color: #12141a;
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
  border: 2px solid #12141a; box-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}

/* ---------- формы ---------- */
.pform { display: grid; gap: 18px; max-width: 800px; margin: 10px auto 32px; }
.frow { display: grid; gap: 7px; }
.flbl { font-size: 10.5px; color: var(--t3); font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.flbl b { color: var(--text); font-size: 13px; }
.fgrid2 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .fgrid2 { grid-template-columns: 1fr; } }
.mtog { display: flex; gap: 4px; }
.mtog .mt { flex: 1; height: 34px; border-radius: 9px; background: var(--s2); border: 1px solid var(--line); color: var(--t3); font-size: 10.5px; font-weight: 750; transition: .15s; }
.mtog .mt:hover { color: var(--text); }
.mtog .mt.on { background: var(--green-dim); color: var(--green); border-color: rgba(52, 211, 153, .4); }

/* ---------- модалки, тосты, лайтбокс ---------- */
.modal-veil { position: fixed; inset: 0; z-index: 90; background: rgba(6, 7, 9, .72); backdrop-filter: blur(5px); display: grid; place-items: end center; animation: vfade .18s; }
.modal { width: min(660px, 100%); background: var(--s1); border: 1px solid var(--line-2); border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); animation: up .3s cubic-bezier(.2, .7, .2, 1); max-height: 88dvh; overflow-y: auto; }
@media (min-width: 700px) { .modal-veil { place-items: center; } .modal { border-radius: var(--r-xl); } }
@keyframes up { from { transform: translateY(44px); opacity: 0; } }
.modal h3 { font-size: 17px; margin-bottom: 14px; }
.modal .mrow { display: flex; gap: 9px; justify-content: flex-end; margin-top: 16px; }
.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--nav-h) + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--s3); border: 1px solid var(--line-2); color: var(--text);
  padding: 12px 18px; border-radius: var(--r-m); z-index: 120; font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow-2); animation: up .25s; max-width: 92vw; text-align: center;
}
@media (min-width: 901px) { .toast { bottom: 28px; } }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5, 6, 8, .96); display: grid; place-items: center; animation: vfade .18s; }
.lightbox img { max-width: 96vw; max-height: 86vh; border-radius: var(--r-s); }
.lightbox .cred { position: fixed; bottom: calc(14px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: var(--t3); font-size: 12px; padding: 0 20px; }
.lightbox .x { position: fixed; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }

/* ---------- вход ---------- */
.login-body { display: grid; place-items: center; padding: 24px; }
.login-bg { position: fixed; inset: 0; background: var(--s2) center/cover no-repeat; filter: saturate(.92); }
.login-veil { position: fixed; inset: 0; background: radial-gradient(120% 90% at 50% 10%, rgba(10, 11, 14, .3), rgba(10, 11, 14, .94)), linear-gradient(rgba(10, 11, 14, .3), rgba(10, 11, 14, .9)); }
.login-card {
  position: relative; width: min(384px, 92vw); text-align: center;
  background: rgba(14, 16, 21, .74); border: 1px solid rgba(255, 255, 255, .09);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: 26px; padding: 36px 28px 30px; box-shadow: var(--shadow-2);
}
.brand-mark { font-size: 38px; margin-bottom: 4px; }
.login-card .brand { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.login-sub { color: var(--t2); margin: 6px 0 24px; font-size: 13.5px; letter-spacing: .05em; }
.login-who { display: flex; gap: 10px; margin-bottom: 14px; }
.who-btn { flex: 1; height: 46px; border-radius: var(--r-m); border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--t2); font-weight: 700; transition: .2s; }
.who-btn.on { color: var(--text); background: rgba(255, 255, 255, .07); }
.who-a.on { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber), 0 6px 24px rgba(245, 165, 36, .15); }
.who-y.on { border-color: var(--rose); box-shadow: 0 0 0 1px var(--rose), 0 6px 24px rgba(244, 114, 182, .15); }
.login-card input { width: 100%; height: 46px; padding: 0 16px; border-radius: var(--r-m); border: 1px solid var(--line); background: rgba(0, 0, 0, .35); outline: none; text-align: center; letter-spacing: .07em; }
.login-card input:focus { border-color: var(--line-2); }
.btn-primary { width: 100%; margin-top: 12px; height: 46px; border-radius: var(--r-m); background: var(--text); color: #12141a; font-weight: 800; transition: .2s; }
.btn-primary:active { transform: scale(.97); }
.login-err { min-height: 20px; margin-top: 12px; color: var(--red); font-size: 13.5px; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.reveal-in { animation: rin .6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rin { from { opacity: 0; transform: translateY(16px); } }

/* ---------- загрузка приложения ---------- */
.boot { display: grid; place-items: center; min-height: 55vh; }
.boot .sp { width: 30px; height: 30px; border: 2.5px solid var(--line-2); border-top-color: var(--amber); border-radius: 50%; animation: spin .8s linear infinite; }

/* ---------- появление ---------- */
.reveal { opacity: 0; transform: translateY(12px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1); }
.imgph { opacity: 0; }
.imgph.ok { opacity: 1; transition: opacity .4s ease; }
.offline-tag { display:inline-flex; align-items:center; height:24px; padding:0 10px; border-radius:999px; background: var(--amber-dim); color: var(--amber); font-size: 11px; font-weight: 800; letter-spacing:.06em; }
/* ---------- колокольчик и лента ---------- */
.bellbtn { position: relative; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: var(--t2); transition: .15s; }
.bellbtn:hover { background: var(--s2); color: var(--text); }
.bell-n { position: absolute; top: 1px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--rose); color: #12141a; font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.feed-row { display: flex; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; align-items: flex-start; }
.feed-row:hover { background: var(--s2); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 10px; }
.feed-row .ava { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #12141a; font-size: 13px; flex: none; }
.feed-b { font-size: 14px; line-height: 1.45; }
.feed-t { color: var(--t3); font-size: 11.5px; margin-top: 2px; }
.wl-marker.visited .wl-dot { width: 12px; height: 12px; border-radius: 3px; transform: rotate(45deg); }
/* ---------- быстрые звёзды на карточке ---------- */
.qr { display: inline-flex; }
.qr b { font-weight: 400; font-size: 18px; line-height: 1; color: #2b3140; padding: 2px 1.5px; cursor: pointer; transition: transform .12s, color .12s; }
.qr b:hover { transform: scale(1.25); }
.qr b.on-a { color: var(--amber); }
.qr b.on-y { color: var(--rose); }
