/* ============ TOKENS ============ */
:root {
  --navy: #0a1a2b;
  --teal: #14b8a6;
  --coral: #ff7a59;
  --pink: #e45c86;
  --gold: #ffc65c;
  --bg: #f5f1ea;
  --card: #ffffff;
  --ink: #142233;
  --soft: #66737f;
  --line: #ebe5da;
  --ok: #0f9f7a;   --ok-bg: #dcf6ec;
  --buy: #e0532c;  --buy-bg: #ffe9e1;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(20,34,51,.05), 0 8px 24px -12px rgba(20,34,51,.18);
  --shadow-lg: 0 2px 4px rgba(20,34,51,.05), 0 24px 50px -20px rgba(20,34,51,.32);
  --grad: linear-gradient(120deg, var(--gold), var(--coral) 50%, var(--pink));
  --display: "Unbounded", system-ui, sans-serif;
  --font: "Manrope", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; border-radius: 8px; }
.container { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* ============ HERO ============ */
.hero { position: relative; min-height: min(68svh, 620px); display: grid; place-items: center; overflow: hidden; color: #fff; isolation: isolate; background: var(--navy); }
.hero__scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,26,43,.35), transparent 40%, rgba(10,26,43,.35)); }
.stars circle { animation: twinkle 3s ease-in-out infinite; }
.stars circle:nth-child(2n) { animation-delay: 1s; }
.cloud { animation: cloud 40s linear infinite alternate; }
.c2 { animation-direction: alternate-reverse; }
.sun__glow { animation: glow 6s ease-in-out infinite; transform-origin: 720px 580px; }
.reflect { animation: shimmer 3s ease-in-out infinite; }
.wave { animation: wave 14s linear infinite; }
.w2 { animation-duration: 10s; animation-direction: reverse; }
.w3 { animation-duration: 7s; }
.boat { animation: boat 60s linear infinite; }
.fronds { animation: fronds 5s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 90%; }
.palm--right .fronds { animation-delay: -2s; }
.bird { animation: fly 22s linear infinite; }
.b2 { animation-delay: -7s; }
.b3 { animation-delay: -14s; }

.hero__content { text-align: center; padding: 56px 16px 72px; text-shadow: 0 2px 18px rgba(40,18,48,.5); }
.hero__eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px); text-shadow: none; animation: up .8s var(--ease) both; }
.hero__title { font-family: var(--display); font-weight: 800; font-size: clamp(3.2rem, 13vw, 6.5rem); letter-spacing: -.03em; line-height: 1; margin: 14px 0 6px; overflow: hidden; }
.hero__title span { display: inline-block; animation: rise 1s var(--ease) .1s both; }
.hero__dates { font-family: var(--display); font-weight: 600; font-size: clamp(1rem, 3vw, 1.3rem); color: #ffe7c2; margin-bottom: 22px; animation: up .8s var(--ease) .25s both; }
.countdown { display: flex; justify-content: center; gap: 10px; animation: up .8s var(--ease) .35s both; }
.countdown div { min-width: 84px; padding: 12px 8px 10px; border-radius: 18px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-shadow: none; }
.countdown b { display: block; font-family: var(--display); font-size: clamp(1.6rem, 6vw, 2.3rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }
.countdown__label { font-size: .85rem; opacity: .85; margin-top: 12px; animation: up .8s var(--ease) .45s both; }

/* ============ TAB BAR ============ */
.tabbar { position: sticky; top: 0; z-index: 50; padding: 12px 0; margin-top: -30px; transition: background .3s, box-shadow .3s; }
.tabbar.is-stuck { background: rgba(245,241,234,.85); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 6px 20px -12px rgba(20,34,51,.3); }
.tabbar__inner { position: relative; display: flex; gap: 4px; width: max-content; max-width: calc(100% - 24px); margin: 0 auto; padding: 6px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow-lg); overflow-x: auto; scrollbar-width: none; }
.tabbar__inner::-webkit-scrollbar { display: none; }
.tabbar button { position: relative; z-index: 1; flex: none; display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 11px 18px; border-radius: 16px; font-weight: 700; font-size: .95rem; color: var(--soft); transition: color .3s; white-space: nowrap; }
.tabbar button span { font-size: 1.1rem; }
.tabbar button.is-active { color: #fff; }
.tabbar button em { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--buy); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.tabbar button em:empty { display: none; }
.tabbar__glider { position: absolute; top: 6px; bottom: 6px; left: 0; border-radius: 16px; background: var(--navy); transition: transform .45s var(--ease), width .45s var(--ease); }

/* ============ PANELS ============ */
main { padding: 20px 0 60px; min-height: 60vh; }
.panel { display: none; }
.panel.is-active { display: block; animation: panelIn .5s var(--ease); }
.h { font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin: 32px 0 14px; display: flex; align-items: baseline; gap: 10px; }
.h small { font-family: var(--font); font-size: .8rem; font-weight: 600; color: var(--soft); }
.panel > .h:first-child { margin-top: 8px; }
.note { font-size: .88rem; color: var(--soft); margin: 14px 0 18px; }
.note--lock { margin-top: 4px; padding: 12px 16px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.empty { text-align: center; color: var(--soft); padding: 40px 0; }

/* ============ ПЛАН ============ */
.trip-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; padding: 24px 26px; border-radius: var(--radius); color: #fff; background: linear-gradient(135deg, #0d3a52, #128a7c); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.trip-card::before { content: ""; position: absolute; width: 280px; height: 280px; right: -60px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(255,198,92,.5), transparent 70%); }
.trip-card small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; opacity: .7; }
.trip-card__hotel b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.3rem; margin: 2px 0; }
.trip-card__hotel span { opacity: .8; font-size: .9rem; }
.trip-card__dates { display: flex; align-items: center; gap: 16px; position: relative; }
.trip-card__dates b { display: block; font-family: var(--display); font-size: 1.5rem; line-height: 1.2; }
.trip-card__dates span { font-size: .85rem; opacity: .8; }
.trip-card__dates i { width: 60px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

.flights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 1000px) {
  .container { width: min(1180px, 100% - 48px); }
  .plan-grid { display: grid; grid-template-columns: 380px 1fr; gap: 32px; align-items: start; }
  .plan-side { position: sticky; top: 96px; }
  .plan-side .flights { grid-template-columns: 1fr; gap: 10px; }
  .plan-side .flight { display: grid; grid-template-columns: 1fr; padding: 14px 16px; }
  .plan-main .h:first-child { margin-top: 0; }
  .trip-card { flex-direction: column; align-items: stretch; }
  .trip-card__dates { justify-content: space-between; }
  .trip-card__dates i { flex: 1; }
}
.flight { background: var(--card); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); transition: transform .35s var(--ease); }
.flight:hover { transform: translateY(-3px); }
.flight__top { display: flex; justify-content: space-between; font-size: .8rem; margin-bottom: 10px; }
.flight__top b { color: var(--teal); font-family: var(--display); font-weight: 600; }
.flight__top span { color: var(--soft); font-weight: 600; }
.flight__route { display: flex; align-items: center; gap: 8px; }
.flight__route div { display: flex; flex-direction: column; }
.flight__route div:last-child { text-align: right; }
.flight__route b { font-family: var(--display); font-size: 1.2rem; }
.flight__route span { font-size: .75rem; color: var(--soft); font-weight: 700; }
.flight__route i { flex: 1; border-top: 2px dotted #cfd6dd; position: relative; text-align: center; }
.flight__route i span { position: relative; top: -11px; background: var(--card); padding: 0 4px; color: var(--coral); font-size: .9rem; }
.flight p { font-size: .8rem; color: var(--soft); margin-top: 8px; }

.days { display: grid; gap: 10px; }
.day { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; border-left: 4px solid var(--c); transition: box-shadow .3s; }
.day:hover { box-shadow: var(--shadow-lg); }
.day.is-today { box-shadow: 0 0 0 2px var(--c), var(--shadow-lg); }
[data-type="sea"] { --c: #2b9ad6; --cbg: #e2f2fb; --ct: #1a72a6; }
[data-type="active"] { --c: #ff7a59; --cbg: #ffece4; --ct: #cc4a24; }
[data-type="rest"] { --c: #14b8a6; --cbg: #dcf6f2; --ct: #0c8577; }
[data-type="road"] { --c: #8d6cf0; --cbg: #eee8ff; --ct: #6544d1; }
.day__head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 14px; border: 0; background: none; text-align: left; }
.day__date { flex: none; width: 48px; text-align: center; }
.day__date b { display: block; font-family: var(--display); font-size: 1.3rem; line-height: 1.1; }
.day__date small { font-size: .7rem; font-weight: 800; color: var(--soft); text-transform: uppercase; }
.day__emoji { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: var(--cbg); transition: transform .4s var(--ease); }
.day__head:hover .day__emoji { transform: rotate(-8deg) scale(1.08); }
.day__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.day__text b { font-size: 1rem; }
.day__text small { color: var(--soft); font-size: .86rem; }
.day__tag { flex: none; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: 999px; background: var(--cbg); color: var(--ct); }
.day__chev { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #f2eee7; transition: transform .4s var(--ease); }
.day.is-open .day__chev { transform: rotate(180deg); }
.day__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.day.is-open .day__more { grid-template-rows: 1fr; }
.day__more > div { overflow: hidden; }
.day__more ul { list-style: none; margin: 0; padding: 4px 18px 16px 76px; display: grid; gap: 6px; }
.day__more li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; font-size: .93rem; }
.day__more time { font-weight: 800; color: var(--ct); font-variant-numeric: tabular-nums; }
.warn { margin: 0 18px 16px 76px; padding: 10px 14px; border-radius: 12px; background: #fff1e8; color: #b4400f; font-size: .88rem; font-weight: 600; }

/* ============ SUMMARY ============ */
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 4px; }
.summary div { background: var(--card); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); }
.summary small { display: block; font-size: .75rem; font-weight: 700; color: var(--soft); text-transform: uppercase; letter-spacing: .06em; }
.summary b { font-family: var(--display); font-weight: 600; font-size: 1.5rem; }
.summary__buy b { color: var(--buy); }

/* ============ ЭКСКУРСИИ ============ */
.tours { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.tour { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s; }
.tour:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.tour.is-bought { box-shadow: 0 0 0 2px var(--ok), var(--shadow); }
.tour__cover { position: relative; height: 120px; display: grid; place-items: center; background: var(--bg); overflow: hidden; }
.tour__cover::after { content: ""; position: absolute; inset: auto -10% -46px; height: 80px; background: var(--card); border-radius: 50% 50% 0 0; }
.tour__icon { font-size: 3.4rem; position: relative; z-index: 1; filter: drop-shadow(0 8px 12px rgba(0,0,0,.25)); animation: float 4s ease-in-out infinite; }
.tour__cover em { position: absolute; top: 12px; font-style: normal; font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; z-index: 2; }
.tour__date { left: 12px; background: rgba(255,255,255,.92); }
.tour__rating { right: 12px; background: rgba(10,26,43,.65); color: #fff; }
.tour__ok { right: 12px; top: auto !important; bottom: 44px; background: var(--ok); color: #fff; }
.tour__body { padding: 2px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.tour__title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.tour__title h3 { font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.tour__title b { font-family: var(--display); font-weight: 600; color: var(--coral); white-space: nowrap; }
.tour__body p { font-size: .9rem; color: var(--soft); margin-bottom: 16px; }
.tour__actions { margin-top: auto; display: flex; gap: 8px; }
.tour__edit { margin-top: auto; display: flex; gap: 8px; }
.tour__edit input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font-size: .88rem; background: #faf7f2; }
.tour__edit input:focus { outline: 0; border-color: var(--teal); background: #fff; }
.tour__edit .btn--main { flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 14px; padding: 11px 14px; font-weight: 700; font-size: .88rem; text-decoration: none; transition: transform .25s var(--ease), background .25s, color .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn--main { flex: 1; background: var(--navy); color: #fff; }
.btn--ghost { flex: 1; background: #f2eee7; color: var(--soft); }
.btn.is-static:hover { transform: none; }
.btn--icon { width: 44px; padding: 0; background: #f2eee7; }
.btn--toggle { background: #f2eee7; color: var(--ink); }
.btn--toggle.is-on { background: var(--ok); color: #fff; }

/* ============ ВЕЩИ ============ */
.progress-line { height: 8px; border-radius: 999px; background: #e7e0d4; overflow: hidden; margin: 14px 0 18px; }
.progress-line span { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 999px; transition: width .6s var(--ease); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chips button { border: 1px solid var(--line); background: var(--card); padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: .9rem; transition: all .25s var(--ease); }
.chips button.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pack { columns: 2 340px; column-gap: 16px; }
.pcat { break-inside: avoid; margin-bottom: 16px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 12px 12px; animation: panelIn .4s var(--ease); }
.pcat header { display: flex; align-items: center; gap: 10px; padding: 0 8px 8px; }
.pcat header span { font-size: 1.4rem; }
.pcat h3 { flex: 1; font-family: var(--display); font-weight: 600; font-size: 1rem; }
.pcat header em { font-style: normal; font-size: .78rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: #f2eee7; }
.pcat header em.is-full { background: var(--ok-bg); color: var(--ok); }
.pcat ul { list-style: none; margin: 0; padding: 0; }
.item { display: flex; align-items: center; gap: 8px; padding: 2px 4px 2px 0; border-radius: 12px; transition: background .2s; }
.item:hover { background: #faf7f2; }
.item label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 9px 8px; cursor: pointer; }
.item > label > input { position: absolute; opacity: 0; pointer-events: none; }
.box { flex: none; width: 24px; height: 24px; border-radius: 8px; border: 2px solid #cdd4db; display: grid; place-items: center; transition: all .25s var(--ease); }
.box::after { content: "✓"; color: #fff; font-weight: 800; font-size: .8rem; transform: scale(0); transition: transform .3s var(--ease); }
.item input:checked + .box { background: var(--teal); border-color: var(--teal); animation: pop .3s var(--ease); }
.item input:checked + .box::after { transform: scale(1); }
.item input:focus-visible + .box { outline: 2px solid var(--coral); outline-offset: 2px; }
.item__text { display: flex; flex-direction: column; font-size: .97rem; font-weight: 500; }
.item__text small { font-size: .8rem; color: var(--soft); font-weight: 500; }
.item.is-done .item__text { color: #a3adb7; text-decoration: line-through; }
.tag { flex: none; border: 0; font-size: .74rem; font-weight: 800; padding: 5px 10px; border-radius: 999px; transition: transform .2s var(--ease); }
.tag:hover { transform: scale(1.06); }
.tag--buy { background: var(--buy-bg); color: var(--buy); }
.tag--ok { background: var(--ok-bg); color: var(--ok); }
.item__del { flex: none; border: 0; background: none; color: var(--soft); opacity: .5; padding: 4px 6px; }
.item__del:hover { opacity: 1; color: var(--buy); }
.add { display: flex; gap: 6px; margin-top: 6px; padding: 0 4px; }
.add > input { flex: 1; min-width: 0; border: 1px dashed #d6cfc2; background: transparent; border-radius: 12px; padding: 9px 12px; font-size: .9rem; }
.add > input:focus { outline: 0; border-style: solid; border-color: var(--teal); background: #fff; }
.add__buy { flex: none; display: grid; place-items: center; width: 40px; border-radius: 12px; background: #f2eee7; cursor: pointer; opacity: .55; transition: opacity .2s, background .2s; }
.add__buy input { position: absolute; opacity: 0; pointer-events: none; }
.add__buy:has(input:checked) { opacity: 1; background: var(--buy-bg); }
.add button { flex: none; border: 0; border-radius: 12px; padding: 0 12px; background: var(--navy); color: #fff; font-weight: 800; font-size: .8rem; }

/* ============ ДОКУМЕНТЫ ============ */
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.doc { display: flex; align-items: center; gap: 14px; padding: 16px; border: 0; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); text-align: left; transition: transform .3s var(--ease), box-shadow .3s; }
.doc:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.doc__icon { flex: none; width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; background: #f2eee7; }
.doc.is-done .doc__icon { background: var(--ok-bg); }
.doc__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.doc__text b { font-size: 1rem; }
.doc__text small { color: var(--soft); font-size: .84rem; }
.doc__meta { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.doc__meta em { font-style: normal; font-size: .74rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--buy-bg); color: var(--buy); }
.doc.is-done .doc__meta em { background: var(--ok-bg); color: var(--ok); }
.doc__meta small { font-size: .78rem; color: var(--soft); font-weight: 700; }

dialog { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(8,20,34,.5); backdrop-filter: blur(4px); }
.sheet { width: min(520px, 100%); height: 100%; margin: 0 0 0 auto; }
.sheet[open] { animation: slideIn .45s var(--ease); }
.sheet__inner { height: 100%; overflow-y: auto; background: var(--bg); }
.sheet__head { display: flex; align-items: center; gap: 14px; padding: 20px; background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 1; }
.sheet__head > div { flex: 1; min-width: 0; }
.sheet__head h3 { font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.sheet__head p { font-size: .86rem; opacity: .75; }
.sheet__icon { width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 16px; background: rgba(255,255,255,.14); font-size: 1.5rem; }
.sheet__close { width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; transition: transform .3s var(--ease); }
.sheet__close:hover { transform: rotate(90deg); }
.sheet__body { padding: 20px; }
.switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 16px; background: #e9e3d8; margin-bottom: 20px; }
.switch button { border: 0; background: none; padding: 11px; border-radius: 12px; font-weight: 700; color: var(--soft); transition: all .3s var(--ease); }
.switch button.is-active { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.switch button[data-status="done"].is-active { background: var(--ok); color: #fff; }
.label { display: block; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); margin: 0 0 8px; }
textarea { width: 100%; resize: vertical; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fff; font-size: .95rem; }
textarea:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(20,184,166,.15); }
.saved { font-size: .78rem; color: var(--ok); font-weight: 700; opacity: 0; transition: opacity .3s; margin: 4px 0 14px; }
.saved.is-on { opacity: 1; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 22px; border-radius: 18px; border: 2px dashed #cfc7b8; background: #fff; cursor: pointer; text-align: center; transition: border-color .25s, background .25s, transform .3s var(--ease); }
.drop span { font-size: 1.6rem; }
.drop small { color: var(--soft); font-size: .84rem; }
.drop:hover, .drop.is-over { border-color: var(--teal); background: #f1fbf9; }
.drop.is-over { transform: scale(1.02); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 2px solid var(--teal); outline-offset: 2px; }
.files { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.file { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); animation: panelIn .3s var(--ease); }
.file__name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.file__name b { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file__name small { font-size: .76rem; color: var(--soft); }
.file button { min-width: 36px; height: 36px; flex: none; border: 0; border-radius: 10px; background: #f2eee7; font-size: .8rem; font-weight: 800; }
.file button.is-armed { padding: 0 10px; background: var(--buy); color: #fff; }
.viewer { width: min(960px, calc(100% - 20px)); height: calc(100% - 20px); margin: auto; border-radius: 20px; overflow: hidden; background: #0f1c2b; color: #fff; }
.viewer[open] { display: flex; flex-direction: column; }
.viewer__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; }
.viewer__head b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer__head div { display: flex; gap: 6px; flex: none; }
.btn-sm { border: 0; border-radius: 10px; padding: 8px 12px; background: rgba(255,255,255,.14); color: #fff; font-weight: 700; font-size: .85rem; text-decoration: none; }
.viewer__body { flex: 1; display: grid; place-items: center; overflow: auto; background: #1a2a3c; }
.viewer__body img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer__body iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.viewer__none { color: #b4c7d6; padding: 30px; text-align: center; }

/* ============ ИНФО ============ */
.sos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sos a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 20px; border-radius: 18px; text-decoration: none; color: #fff; background: var(--grad); box-shadow: 0 12px 24px -12px rgba(255,122,89,.7); transition: transform .3s var(--ease); }
.sos a:hover { transform: translateY(-3px); }
.sos span { font-weight: 700; font-size: .9rem; }
.sos b { font-family: var(--display); font-size: 1.5rem; }
.tips { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tips li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); font-size: .93rem; }
.tips li span { flex: none; font-size: 1.4rem; }
.links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.links a { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); text-decoration: none; font-weight: 700; transition: transform .3s var(--ease); }
.links a:hover { transform: translateY(-3px); }
.links a span { font-size: 1.3rem; }
.links a em { margin-left: auto; font-style: normal; color: var(--coral); }

.speaker { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.speaker span { font-weight: 700; color: var(--soft); font-size: .9rem; margin-right: 4px; }
.speaker button { border: 1px solid var(--line); background: var(--card); padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .9rem; transition: all .25s var(--ease); }
.speaker button.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.phrases { columns: 2 340px; column-gap: 14px; }
.pgroup { break-inside: avoid; margin-bottom: 14px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 10px 10px; }
.pgroup h3 { font-family: var(--display); font-weight: 600; font-size: .95rem; padding: 0 10px 8px; }
.pgroup ul { list-style: none; margin: 0; padding: 0; }
.pgroup button { width: 100%; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "ru th" "tr th"; align-items: center; gap: 0 12px; text-align: left; border: 0; background: none; padding: 10px; border-radius: 14px; transition: background .2s; }
.pgroup button:hover { background: #faf6ef; }
.ph__ru { grid-area: ru; font-size: .82rem; color: var(--soft); font-weight: 600; }
.ph__tr { grid-area: tr; font-size: 1.02rem; color: var(--ink); }
.ph__th { grid-area: th; font-size: 1.05rem; color: var(--teal); font-weight: 600; }
.bigphrase { width: min(560px, calc(100% - 24px)); margin: auto; border-radius: 26px; background: var(--card); padding: 36px 24px 24px; text-align: center; box-shadow: var(--shadow-lg); }
.bigphrase[open] { animation: panelIn .35s var(--ease); }
.bigphrase__th { font-size: clamp(2.2rem, 9vw, 3.6rem); font-weight: 700; line-height: 1.3; color: var(--ink); margin-bottom: 18px; word-break: break-word; }
.bigphrase__ru { font-weight: 700; font-size: 1.1rem; }
.bigphrase__tr { color: var(--soft); margin: 4px 0 22px; }
.bigphrase .btn { width: 100%; }

/* ============ ВКЛАДКИ: короткие подписи на телефоне ============ */
.tabbar b { font-weight: inherit; }
.tabbar .sm { display: none; }
@media (max-width: 640px) {
  .tabbar .lg { display: none; }
  .tabbar .sm { display: inline; }
}

/* ============ ВЕЩИ: редактирование ============ */
.icon-sm { flex: none; width: 30px; height: 30px; border: 0; border-radius: 9px; background: transparent; color: var(--soft); font-size: .95rem; opacity: .45; transition: opacity .2s, background .2s; }
.item:hover .icon-sm, .pcat header:hover .icon-sm, .icon-sm:focus-visible { opacity: 1; background: #f2eee7; }
@media (hover: none) { .icon-sm { opacity: .7; } }
.pcat header .icon-sm { margin-left: 2px; }
.item--edit { display: block; padding: 6px 4px; background: #faf7f2; border-radius: 14px; margin: 4px 0; }
.item--edit form { display: grid; gap: 8px; }
.item--edit input[name], .cat-edit input { border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; font-size: .95rem; background: #fff; min-width: 0; }
.item--edit input:focus, .cat-edit input:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20,184,166,.15); }
.item-edit__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.item-edit__btns { display: flex; gap: 6px; }
.item-edit__btns .btn { padding: 9px 14px; }
.chk { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; cursor: pointer; }
.chk input { width: 18px; height: 18px; accent-color: var(--buy); }
.cat-edit { display: flex; gap: 6px; padding: 0 4px 8px; flex-wrap: wrap; }
.cat-edit input[name=title] { flex: 1 1 140px; font-weight: 700; }
.cat-edit__icon { width: 52px; text-align: center; font-size: 1.2rem !important; }
.cat-edit .btn { padding: 9px 14px; }
.btn.is-armed, .btn--icon.is-armed { width: auto; padding: 0 12px; background: var(--buy); color: #fff; font-size: .8rem; }
.pack-tools { display: flex; justify-content: center; margin: 4px 0 6px; }
.pack-tools .btn { flex: none; border: 2px dashed #d6cfc2; background: transparent; color: var(--ink); padding: 12px 22px; }
.pack-tools .btn:hover { border-color: var(--teal); }

/* ============ ДЕНЬГИ ============ */
.money-sum { grid-template-columns: repeat(4, 1fr); }
.money-sum b { font-size: 1.25rem; }
.money-grid { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; margin-top: 18px; }
.money-main, .money-side { display: grid; gap: 14px; min-width: 0; }
.money-side { position: sticky; top: 96px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card h3 { font-family: var(--display); font-weight: 600; font-size: 1rem; margin-bottom: 12px; }
.card h3 small { font-family: var(--font); font-size: .78rem; color: var(--soft); font-weight: 600; margin-left: 6px; }
.card .note { margin: 10px 0 0; font-size: .82rem; }
.exp-form { display: grid; gap: 12px; }
.exp-form h3 { margin: 0; }
.exp-form > input, .exp-form__row > input { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 1rem; background: #faf7f2; min-width: 0; }
.exp-form input:focus, .mini input:focus, .mini select:focus, .conv input:focus { outline: 0; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px rgba(20,184,166,.15); }
.exp-form__row { display: flex; gap: 10px; align-items: center; }
.exp-form__row > input { flex: 1; font-family: var(--display); font-size: 1.3rem; font-weight: 600; }
.exp-form__row--wrap { flex-wrap: wrap; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: #ece6dc; flex: none; }
.seg button { border: 0; background: none; border-radius: 10px; padding: 9px 14px; font-weight: 800; color: var(--soft); transition: all .25s var(--ease); }
.seg button.is-active { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.seg--status button[data-status="plan"].is-active { background: #fff3d6; color: #8a5a00; }
.cats { display: flex; flex-wrap: wrap; gap: 6px; }
.cats button { border: 1px solid var(--line); background: #faf7f2; border-radius: 999px; padding: 7px 12px; font-size: .86rem; font-weight: 600; transition: all .2s var(--ease); }
.cats button.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.mini { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 700; color: var(--soft); margin-bottom: 8px; }
.exp-form .mini { margin: 0; }
.mini input, .mini select { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: .95rem; background: #faf7f2; color: var(--ink); min-width: 0; }
.money-side .mini input { width: 110px; flex: 1; }
.exp-form__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.exp-form__actions .btn--main { flex: 1; padding: 13px; font-size: .95rem; }
.exp-form__actions .btn--ghost { flex: none; }
.btn--danger { background: var(--buy-bg); color: var(--buy); }
.btn--danger.is-armed { background: var(--buy); color: #fff; }
.exp-list { display: grid; gap: 8px; }
.exp { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); text-align: left; transition: transform .25s var(--ease), box-shadow .25s; }
.exp:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.exp.is-plan { background: transparent; box-shadow: none; border: 2px dashed #ddd4c4; }
.exp.is-editing { box-shadow: 0 0 0 2px var(--teal), var(--shadow); }
.exp__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #f2eee7; font-size: 1.2rem; }
.exp__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.exp__text b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exp__text small { font-size: .8rem; color: var(--soft); }
.exp__sum { flex: none; display: flex; flex-direction: column; align-items: flex-end; }
.exp__sum b { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; }
.exp__sum small { font-size: .76rem; color: var(--soft); }
.exp__sum em { font-style: normal; font-size: .68rem; font-weight: 800; text-transform: uppercase; color: #8a5a00; background: #fff3d6; border-radius: 999px; padding: 1px 8px; margin-top: 2px; }
.conv { display: grid; gap: 8px; }
.conv label { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: #faf7f2; overflow: hidden; }
.conv input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 14px; font-family: var(--display); font-size: 1.15rem; font-weight: 600; }
.conv span { padding: 0 16px; font-weight: 800; color: var(--soft); font-size: 1.1rem; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: .88rem; }
.bar b { font-variant-numeric: tabular-nums; }
.bar i { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--grad); transition: width .6s var(--ease); }
.who { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.who b { font-family: var(--display); font-weight: 600; }

/* ============ КОНВЕРТЕР (главное во вкладке «Деньги») ============ */
.conv-card { border-radius: var(--radius); padding: 22px; color: #fff; background: linear-gradient(140deg, #0d3a52, #128a7c 120%); box-shadow: var(--shadow-lg); margin-bottom: 14px; position: relative; overflow: hidden; }
.conv-card::before { content: ""; position: absolute; width: 260px; height: 260px; right: -70px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(255,198,92,.45), transparent 70%); pointer-events: none; }
.conv-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 14px; position: relative; }
.conv-card__head h2 { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.conv-card__head p { font-size: .86rem; opacity: .75; }
.conv-card .conv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; position: relative; }
.conv-card .conv label { display: flex; align-items: center; gap: 4px; border-radius: 18px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); padding: 0 14px; transition: background .2s, border-color .2s; }
.conv-card .conv label:focus-within { background: rgba(255,255,255,.2); border-color: var(--gold); }
.conv-card .conv .conv__flag { width: 78px; padding: 0; white-space: nowrap; flex: none; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; opacity: .9; color: #cfe9e4; }
.conv-card .conv input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; padding: 14px 4px; font-family: var(--display); font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 600; box-shadow: none; }
.conv-card .conv input::placeholder { color: rgba(255,255,255,.4); }
.conv-card .conv input:focus { outline: 0; box-shadow: none; background: transparent; }
.conv-card .conv b { font-size: 1.2rem; opacity: .8; }
.conv-quick { display: flex; gap: 8px; overflow-x: auto; margin: 14px 0; padding-bottom: 2px; scrollbar-width: none; position: relative; }
.conv-quick::-webkit-scrollbar { display: none; }
.conv-quick button { flex: none; display: flex; flex-direction: column; align-items: flex-start; border: 0; border-radius: 14px; padding: 8px 14px; background: rgba(255,255,255,.12); color: #fff; transition: background .2s, transform .2s var(--ease); }
.conv-quick button:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.conv-quick b { font-size: .95rem; }
.conv-quick small { font-size: .78rem; opacity: .75; }
.conv-rates { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-weight: 700; font-size: .9rem; position: relative; }
.conv-rates label { display: flex; align-items: center; gap: 6px; }
.conv-rates input { width: 90px; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; padding: 7px 10px; background: rgba(255,255,255,.12); color: #fff; font-weight: 700; }
.conv-rates input::placeholder { color: rgba(255,255,255,.5); }
.conv-rates input:focus { outline: 0; border-color: var(--gold); }
.conv-rates span { font-weight: 600; font-size: .82rem; color: var(--gold); }
.money-sum { grid-template-columns: repeat(3, 1fr); margin-bottom: 14px; }
.money-panel-gap { height: 14px; }
.exp-form { margin-bottom: 14px; }
.exp-form__actions { align-items: center; }
@media (max-width: 640px) {
  .conv-card { padding: 18px 16px; }
  .conv-card .conv { grid-template-columns: 1fr; }
  .money-sum { grid-template-columns: 1fr 1fr; }
  .money-sum > div:last-child { grid-column: 1 / -1; }
  .exp-form__actions .seg { width: 100%; }
  .exp-form__actions .seg button { flex: 1; }
}

/* ============ ЗАМЕТКИ К ДНЯМ ============ */
.daynote { display: block; width: calc(100% - 94px); margin: 4px 18px 16px 76px; min-height: 0; resize: vertical; border: 1px dashed #d6cfc2; border-radius: 12px; padding: 9px 12px; font-size: .9rem; background: #faf7f2; }
.daynote:focus { outline: 0; border-style: solid; border-color: var(--teal); background: #fff; }
.day.has-note .day__text b::after { content: " 📝"; font-size: .85em; }

@media (max-width: 1000px) {
  .money-grid { grid-template-columns: 1fr; }
  .money-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 640px) {
  .money-sum { grid-template-columns: 1fr 1fr; }
  .money-sum b { font-size: 1.05rem; }
  .daynote { width: calc(100% - 28px); margin: 4px 14px 14px; }
  .exp-form__row:first-of-type { flex-wrap: wrap; }
  .exp-form__row:first-of-type > input { flex-basis: 100%; }
}

/* ============ ВХОД / ПОЛЬЗОВАТЕЛЬ ============ */
body.no-scroll { overflow: hidden; }
.login { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 20px; background: rgba(10,26,43,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: panelIn .4s var(--ease); }
.login__card { width: min(380px, 100%); background: var(--card); border-radius: 26px; padding: 30px 26px 26px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.login__logo { font-size: 2.4rem; text-align: center; }
.login__card h2 { font-family: var(--display); font-weight: 800; text-align: center; font-size: 1.6rem; margin: 6px 0 4px; }
.login__card > p { text-align: center; color: var(--soft); font-size: .92rem; margin-bottom: 20px; }
.login__card label { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); margin: 0 0 6px; }
.login__card input { border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; font-size: 1rem; background: #faf7f2; margin-bottom: 14px; }
.login__card input:focus { outline: 0; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(20,184,166,.15); }
.login__error { color: var(--buy); font-weight: 700; font-size: .9rem; min-height: 1.3em; margin: -4px 0 10px; }
.login__card .btn { padding: 14px; font-size: 1rem; }
.login__card .btn:disabled { opacity: .6; }
.me { position: absolute; top: 14px; right: max(14px, env(safe-area-inset-right, 0px)); z-index: 3; display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 6px; border-radius: 999px; background: rgba(10,26,43,.45); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(10px); color: #fff; font-weight: 700; font-size: .88rem; }
.me__avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); font-weight: 800; font-size: .85rem; }
.me button { border: 0; border-radius: 999px; padding: 6px 12px; background: rgba(255,255,255,.16); color: #fff; font-weight: 700; font-size: .8rem; }
.me button:hover { background: rgba(255,255,255,.28); }

.migrate { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-radius: 18px; background: #fff6e0; border: 1px solid #f3dca0; margin-bottom: 8px; }
.migrate p { flex: 1 1 260px; font-size: .92rem; }
.migrate .btn { flex: none; }
.migrate .btn:disabled { opacity: .6; }

.taxi { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; border: 0; padding: 18px 20px; border-radius: 20px; background: linear-gradient(135deg, #ffd54f, #ffb300); color: #2b1d00; box-shadow: 0 12px 24px -14px rgba(255,170,0,.9); transition: transform .3s var(--ease); margin-top: 8px; }
.taxi:hover { transform: translateY(-3px); }
.taxi__icon { font-size: 1.9rem; }
.taxi span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.taxi b { font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.taxi small { font-size: .85rem; opacity: .8; }
.taxi em { font-style: normal; font-weight: 800; font-size: 1.2rem; }

.label small { text-transform: none; letter-spacing: 0; font-weight: 600; margin-left: 6px; }
.switch--sm { margin-bottom: 10px; }
.switch--sm button { padding: 8px; font-size: .88rem; }
.switch--sm button[data-private="1"].is-active { background: var(--navy); color: #fff; }
.sheet .facts { display: grid; gap: 8px; margin: 0 0 20px; }
.sheet .facts div { background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); }
.sheet .facts dt { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--teal); }
.sheet .facts dd { margin: 2px 0 0; font-size: .93rem; }
.sheet .facts:empty { display: none; }

.footer { text-align: center; padding: 30px 16px 50px; font-family: var(--display); font-weight: 600; color: var(--soft); }
.toast { position: fixed; left: 50%; bottom: 28px; translate: -50% 20px; z-index: 400; background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .3s, translate .4s var(--ease); box-shadow: var(--shadow-lg); }
.toast.is-on { opacity: 1; translate: -50% 0; }

/* ============ KEYFRAMES ============ */
@keyframes rise { from { transform: translateY(105%); } }
@keyframes up { from { opacity: 0; transform: translateY(16px); } }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }
@keyframes twinkle { 50% { opacity: .2; } }
@keyframes glow { 50% { transform: scale(1.08); opacity: .85; } }
@keyframes shimmer { 50% { opacity: .55; } }
@keyframes wave { to { transform: translateX(-1440px); } }
@keyframes fronds { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(4deg); } }
@keyframes cloud { to { transform: translateX(120px); } }
@keyframes fly { 0% { transform: translate(-100px, 300px) scale(.8); } 100% { transform: translate(1600px, 180px) scale(1.1); } }
@keyframes boat { 0% { transform: translate(-80px, 668px); } 100% { transform: translate(1520px, 668px); } }
@keyframes float { 0%, 100% { transform: translateY(-4px) rotate(-3deg); } 50% { transform: translateY(5px) rotate(3deg); } }
@keyframes pop { 50% { transform: scale(1.2); } }
@keyframes slideIn { from { transform: translateX(100%); } }
@keyframes slideUp { from { transform: translateY(100%); } }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .flights { grid-template-columns: 1fr 1fr; }
  .links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero { min-height: 52svh; }
  .hero__content { padding: 40px 16px 60px; }
  .countdown div { min-width: 76px; }
  .tabbar { margin-top: -26px; padding: 10px 0; }
  .tabbar__inner { width: calc(100% - 16px); max-width: none; gap: 2px; padding: 5px; }
  .tabbar button { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 0; padding: 8px 2px; font-size: .7rem; }
  .tabbar__glider { top: 5px; bottom: 5px; }
  .tabbar button span { font-size: 1.25rem; }
  .tabbar button em { position: absolute; top: 2px; right: 4px; height: 17px; min-width: 17px; font-size: .62rem; }
  .trip-card { padding: 20px; }
  .trip-card__dates { width: 100%; justify-content: space-between; }
  .trip-card__dates i { flex: 1; }
  .flights { grid-template-columns: 1fr; }
  .day__head { gap: 10px; padding: 12px; }
  .day__date { width: 36px; }
  .day__emoji { width: 38px; height: 38px; font-size: 1.2rem; }
  .day__tag { display: none; }
  .day__more ul { padding: 4px 14px 14px 14px; }
  .warn { margin: 0 14px 14px; }
  .tours { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; }
  .sos, .tips { grid-template-columns: 1fr; }
  .sheet { width: 100%; }
  .sheet[open] { animation: slideUp .45s var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =====================================================================
   ПОЛИРОВКА: атмосфера, посадочные талоны, календарь, заголовки
   ===================================================================== */

/* мягкий цветной фон за страницей */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vmax 40vmax at 0% 30%, rgba(20,184,166,.10), transparent 60%),
    radial-gradient(40vmax 40vmax at 100% 60%, rgba(255,122,89,.10), transparent 60%),
    radial-gradient(30vmax 30vmax at 50% 100%, rgba(255,198,92,.12), transparent 60%);
}

/* шапка: волна вместо резкого края и сводка поездки */
.hero { padding-bottom: 30px; }
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; z-index: 1; pointer-events: none; }
.hero__wave path { fill: var(--bg); }
.hero__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; animation: up .8s var(--ease) .55s both; }
.hero__facts span { font-size: .82rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(10,26,43,.35); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); text-shadow: none; }
.tabbar { margin-top: -46px; z-index: 50; }

/* заголовки разделов со значком */
.h { align-items: center; }
.h__icon { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 1rem; background: var(--card); box-shadow: var(--shadow); }
.h small { margin-left: 2px; }

/* карточка отеля */
.trip-card { background: linear-gradient(135deg, #0b3550 0%, #0f6e72 60%, #18a08a 100%); }
.trip-card::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -30px; height: 70px; opacity: .14; pointer-events: none;
  background: radial-gradient(60px 18px at 50% 0, transparent 70%, #fff 72%) 0 0 / 120px 36px repeat-x; }
.trip-card__chips { display: flex; flex-wrap: wrap; gap: 6px; position: relative; }
.trip-card__chips span { font-size: .8rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); }

/* рейсы: посадочные талоны */
.flights__dir { grid-column: 1 / -1; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--soft); margin: 6px 0 -2px 4px; }
.flights__dir:first-child { margin-top: 0; }
.pass {
  position: relative; background: var(--card); border-radius: 18px; padding: 14px 16px 12px; box-shadow: var(--shadow);
  -webkit-mask: radial-gradient(circle 11px at 0 64%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 11px at 100% 64%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 11px at 0 64%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 11px at 100% 64%, transparent 98%, #000) right / 51% 100% no-repeat;
  transition: transform .35s var(--ease);
}
.pass:hover { transform: translateY(-3px); }
.pass__top { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--soft); font-weight: 600; margin-bottom: 8px; }
.pass__top b { color: var(--teal); font-family: var(--display); font-weight: 600; }
.pass__date { background: #f2eee7; color: var(--ink); font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.pass__route { display: flex; align-items: center; gap: 10px; }
.pass__route > div { display: flex; flex-direction: column; line-height: 1.15; }
.pass__route b { font-family: var(--display); font-size: 1.55rem; font-weight: 800; letter-spacing: .02em; }
.pass__route small { font-size: .74rem; color: var(--soft); font-weight: 600; }
.pass__route em { font-style: normal; font-weight: 800; font-size: .95rem; margin-top: 4px; font-variant-numeric: tabular-nums; }
.pass__to { text-align: right; align-items: flex-end; }
.pass__line { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, #cfd6dd 0 6px, transparent 6px 11px); position: relative; margin-bottom: 22px; }
.pass__line span { position: absolute; left: 50%; top: 50%; translate: -50% -50%; background: var(--card); padding: 0 6px; color: var(--coral); font-size: 1rem; }
.pass__bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 2px dashed #ebe5da; font-size: .78rem; color: var(--soft); font-weight: 600; }
.pass__seat { padding: 4px 10px; border-radius: 999px; background: #f2eee7; font-weight: 700; }
.pass__seat.is-set { background: var(--ok-bg); color: var(--ok); }

/* дни: листки календаря на линии маршрута */
.days { position: relative; gap: 12px; }
.days::before { content: ""; position: absolute; left: 39px; top: 20px; bottom: 20px; width: 2px; border-radius: 2px; background: linear-gradient(#8d6cf0, #14b8a6 25%, #2b9ad6 50%, #ff7a59 75%, #8d6cf0); opacity: .35; }
.day { border-left: 0; position: relative; }
.day__head { padding: 10px 16px 10px 10px; }
.day__date { width: 58px; height: 62px; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 5px; background: #fff; box-shadow: 0 0 0 1px #ebe5da, 0 4px 10px -6px rgba(20,34,51,.3); position: relative; z-index: 1; }
.day__month { position: absolute; top: 0; left: 0; right: 0; height: 17px; display: grid; place-items: center; background: var(--c); color: #fff !important; font-size: .6rem !important; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.day__date b { font-size: 1.35rem; line-height: 1; margin-top: 14px; }
.day__date small:last-child { font-size: .62rem; }
.day.is-open { box-shadow: var(--shadow-lg); }
.day.is-open .day__date { box-shadow: 0 0 0 2px var(--c), 0 6px 14px -6px rgba(20,34,51,.35); }
.day__more ul { position: relative; padding-left: 92px; gap: 2px; }
.day__more ul::before { content: ""; position: absolute; left: 97px; top: 12px; bottom: 12px; width: 2px; background: var(--cbg); }
.day__more li { position: relative; padding: 5px 0 5px 22px; grid-template-columns: 92px 1fr; }
.day__more li::before { content: ""; position: absolute; left: 0; top: 11px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--c); box-sizing: border-box; }
.day__more time { background: var(--cbg); padding: 1px 8px; border-radius: 8px; justify-self: start; height: max-content; font-size: .84rem; }
.warn, .daynote { margin-left: 92px; }
.daynote { width: calc(100% - 110px); }

/* экскурсии: печать «куплено» */
.tour.is-bought .tour__cover::before { content: "КУПЛЕНО"; position: absolute; z-index: 3; right: 16px; bottom: 30px; rotate: -10deg; padding: 4px 10px; border: 3px solid #fff; border-radius: 8px; color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .12em; background: rgba(15,159,122,.85); }
.tour__ok { display: none; }

/* вещи: значок и прогресс категории */
.pcat__icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: #f2eee7; font-size: 1.15rem !important; flex: none; }
.pcat__bar { display: block; height: 5px; border-radius: 999px; background: #f0ebe2; margin: 0 8px 8px; overflow: hidden; }
.pcat__bar b { display: block; height: 100%; border-radius: 999px; background: var(--grad); transition: width .5s var(--ease); }

/* подвал */
.footer { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 40px 16px 56px; }
.footer__palm { font-size: 2rem; animation: float 5s ease-in-out infinite; }
.footer b { font-family: var(--display); font-weight: 800; font-size: 1.2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer small { font-family: var(--font); font-weight: 600; font-size: .82rem; color: var(--soft); }

@media (max-width: 640px) {
  .hero__facts span { font-size: .74rem; padding: 5px 10px; }
  .hero__content { padding-top: 66px; }
  .hero__wave { height: 44px; }
  .tabbar { margin-top: -34px; }
  .days::before { left: 33px; }
  .day__head { padding: 8px 10px; }
  .day__date { width: 50px; height: 56px; }
  .day__date b { font-size: 1.15rem; }
  .day__more ul { padding-left: 14px; }
  .day__more ul::before { left: 19px; }
  .day__more li { grid-template-columns: 74px 1fr; }
  .warn, .daynote { margin-left: 14px; }
  .daynote { width: calc(100% - 28px); }
  .pass__route b { font-size: 1.3rem; }
}

/* ============ ВЕЩИ: быстрое добавление ============ */
.quick-add { display: grid; gap: 10px; padding: 16px; margin: 0 0 16px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); border: 2px solid transparent; transition: border-color .25s; }
.quick-add:focus-within { border-color: rgba(20,184,166,.45); }
.quick-add__row { display: flex; gap: 8px; }
.quick-add__row input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; font-size: 1rem; background: #faf7f2; }
.quick-add__row input:focus { outline: 0; border-color: var(--teal); background: #fff; }
.quick-add__row .btn { flex: none; padding: 0 20px; }
.quick-add__opts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: .9rem; font-weight: 700; color: var(--soft); }
.qa-cat { display: flex; align-items: center; gap: 8px; }
.qa-cat select { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font: inherit; font-weight: 700; color: var(--ink); background: #faf7f2; max-width: 240px; }
.qa-cat select:focus { outline: 0; border-color: var(--teal); }
.qa-buy { display: flex; align-items: center; cursor: pointer; }
.qa-buy input { position: absolute; opacity: 0; pointer-events: none; }
.qa-buy span { padding: 7px 12px; border-radius: 999px; background: #f2eee7; transition: all .2s var(--ease); }
.qa-buy input:checked + span { background: var(--buy-bg); color: var(--buy); }
.qa-buy input:focus-visible + span { outline: 2px solid var(--coral); outline-offset: 2px; }
.suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.suggest:empty { display: none; }
.suggest span { font-size: .78rem; font-weight: 800; color: var(--soft); text-transform: uppercase; letter-spacing: .06em; margin-right: 2px; }
.suggest button { border: 1px dashed #d6cfc2; background: transparent; border-radius: 999px; padding: 6px 12px; font-size: .86rem; font-weight: 600; transition: all .2s var(--ease); }
.suggest button:hover { border-style: solid; border-color: var(--teal); background: #f1fbf9; transform: translateY(-1px); }
.item.is-new { animation: newItem 1.8s var(--ease); }
@keyframes newItem { 0%, 40% { background: rgba(20,184,166,.18); } 100% { background: transparent; } }
@media (max-width: 640px) {
  .quick-add { padding: 14px; }
  .quick-add__row .btn { padding: 0 14px; }
  .qa-cat select { max-width: 200px; }
}
