/* Volontyr Travel — тёмный «премиум»: стекло, золото, мягкие анимации */
:root {
  --bg: #08070a; --card: rgba(255,255,255,.035); --card-hi: rgba(255,255,255,.06); --solid: #121014;
  --line: rgba(227,184,113,.22); --line2: rgba(255,255,255,.08); --line3: rgba(255,255,255,.14);
  --text: #f5efe6; --muted: #a29a90; --dim: #6f685f;
  --gold: #e3b871; --gold2: #f6dba4; --gold3: #fbe7bf;
  --green: #86e3a5; --green-bg: rgba(134,227,165,.1);
  --grad: linear-gradient(135deg, #fbe7bf 0%, #e3b871 45%, #a87a3a 100%);
  --silver: linear-gradient(135deg, #fafafa 0%, #c9ccd1 50%, #8b9098 100%);
  --bronze: linear-gradient(135deg, #f6cfa8 0%, #c98a55 50%, #865631 100%);
  --r: 22px; --r-sm: 14px;
  --shadow: 0 20px 50px -24px rgba(0,0,0,.8);
  --ease: cubic-bezier(.2,.8,.2,1);
  --font: 'Manrope', system-ui, -apple-system, sans-serif; --font-h: 'Unbounded', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { overflow-x: hidden; margin: 0; background: var(--bg); color: var(--text); font: 500 15px/1.45 var(--font); }
body { min-height: 100vh; padding-bottom: env(safe-area-inset-bottom); }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; color: inherit; }
a { color: inherit; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- фон: медленно плывущее свечение ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(80px); opacity: .28; animation: drift 26s ease-in-out infinite alternate; }
.bg i:nth-child(1) { left: -20vmax; top: -25vmax; background: radial-gradient(circle, #b98a45, transparent 65%); }
.bg i:nth-child(2) { right: -25vmax; top: 10vh; background: radial-gradient(circle, #5b3f1c, transparent 65%); animation-duration: 34s; animation-delay: -8s; }
.bg i:nth-child(3) { left: 20vw; bottom: -35vmax; background: radial-gradient(circle, #3a2a14, transparent 65%); animation-duration: 40s; animation-delay: -16s; }
@keyframes drift { to { transform: translate3d(6vmax, 5vmax, 0) scale(1.12); } }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) max(16px, calc((100vw - 720px) / 2)) 10px;
  background: rgba(8,7,10,.62); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid var(--line2); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; }
.brand img { border-radius: 11px; box-shadow: 0 6px 20px -8px rgba(227,184,113,.6); }
.brand__name { font: 500 16px/1 var(--font-h); letter-spacing: -.02em; color: var(--muted); }
.brand__name b { font-weight: 600; color: var(--text); }
.top__lang { height: 34px; min-width: 48px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(227,184,113,.08); color: var(--gold2); font-weight: 800; font-size: 13px; letter-spacing: .04em; transition: background .2s, transform .15s var(--ease); }
/* выбор языка: текущий на кнопке, остальные — выпадающим списком */
.lang { position: relative; }
.lang__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; display: grid; gap: 2px; min-width: 160px; padding: 6px; border-radius: 16px; border: 1px solid var(--line); background: rgba(20,18,16,.96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--shadow); transform-origin: top right; animation: pop .22s var(--ease) both; }
.lang__menu[hidden] { display: none; }
.lang__menu button { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 11px; background: none; color: var(--text); font-size: 14px; font-weight: 700; text-align: left; }
.lang__menu button b { width: 26px; color: var(--gold2); font-size: 12.5px; letter-spacing: .04em; }
.lang__menu button:hover { background: rgba(255,255,255,.06); }
.lang__menu button.is-on { background: rgba(227,184,113,.14); }
@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(-4px); } }
.top__lang .caret { font-size: 10px; margin-left: 2px; }
.top__lang:hover { background: rgba(227,184,113,.16); }
.top__lang:active { transform: scale(.94); }

.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 14px 16px 30px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }

/* ---------- главный экран: заголовок ---------- */
.hero { display: none; gap: 8px; padding: 18px 2px 4px; }
.is-home .hero { display: grid; animation: rise .7s var(--ease) both; }
.hero__kicker { justify-self: start; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(227,184,113,.08); color: var(--gold2); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.hero__title { margin: 0; font: 600 clamp(30px, 8vw, 46px)/1.05 var(--font-h); letter-spacing: -.03em;
  background: linear-gradient(180deg, #fff 30%, #d9c8ad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__title em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { max-width: 520px; color: var(--muted); font-size: 15px; font-weight: 600; }

/* ---------- поиск ---------- */
.search { position: relative; display: flex; align-items: center; height: 62px; padding-left: 16px; border-radius: 20px;
  border: 1.5px solid rgba(227,184,113,.45); background: rgba(18,16,20,.75); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05); transition: border-color .2s, box-shadow .25s; }
.search:focus-within { border-color: var(--gold); box-shadow: var(--shadow), 0 0 0 5px rgba(227,184,113,.12); }
.search__icon { width: 22px; height: 22px; flex: none; color: var(--gold); transform: rotate(45deg); }
.search__input { flex: 1; min-width: 0; height: 100%; padding: 0 12px; border: 0; background: none; font-size: 16.5px; font-weight: 700; }
.search__input:focus { outline: none; }
.search__input::placeholder { color: var(--dim); font-weight: 600; }
.search__input::-webkit-search-cancel-button { display: none; }
.search__go { display: grid; place-items: center; width: 50px; height: 50px; margin-right: 6px; flex: none; border: 0; border-radius: 15px; background: var(--grad); color: #1a1408;
  box-shadow: 0 8px 22px -8px rgba(227,184,113,.7); transition: transform .15s var(--ease), filter .2s; }
.search__go svg { width: 22px; height: 22px; }
.search__go:hover { filter: brightness(1.06); }
.search__go:active { transform: scale(.93); }

/* подсказка «как искать» — только на главной */
body:not(.is-home) .examples { display: none; }
.examples { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: -4px; color: var(--dim); font-size: 12.5px; font-weight: 700; }
.examples button { padding: 4px 10px; border-radius: 999px; border: 1px dashed var(--line3); background: none; color: var(--muted); font-size: 12.5px; font-weight: 700; transition: color .2s, border-color .2s; }
.examples button:hover { color: var(--gold2); border-color: var(--line); }

/* ---------- кнопки-переключатели ---------- */
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { flex: 0 0 auto; min-height: 34px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); color: var(--muted); font-size: 12.5px; font-weight: 800;
  transition: color .2s, background .2s, border-color .2s, transform .15s var(--ease); }
.seg button:hover { color: var(--text); border-color: var(--line3); }
.seg button:active { transform: scale(.95); }
.seg button.is-on { border-color: var(--gold); color: #1a1408; background: var(--grad); }
.seg--row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
.seg--row::-webkit-scrollbar { display: none; }

/* главная: «в одну сторону / туда-обратно» и число дней */
.mode { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px; border: 1px solid var(--line2); background: rgba(0,0,0,.3); }
.mode button { min-height: 44px; border: 0; border-radius: 12px; background: none; color: var(--muted); font-weight: 800; font-size: 14px; transition: background .25s, color .2s; }
.mode button.is-on { background: var(--grad); color: #1a1408; box-shadow: 0 8px 20px -10px rgba(227,184,113,.8); }
.daysPick { display: grid; gap: 8px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(227,184,113,.05); }
.daysPick > span { color: var(--gold2); font-size: 13px; font-weight: 800; }
.daysPick .seg--row { margin: 0; padding: 0; }
.trip__dates { color: var(--gold2); }

/* пассажиры: − 1 + */
.pax { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 0 4px 0 12px; min-height: 34px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); color: var(--muted); font-size: 12.5px; font-weight: 800; }
.pax b { min-width: 16px; text-align: center; color: var(--text); font-size: 14px; }
.seg .pax button { min-height: 26px; width: 26px; padding: 0; border-radius: 50%; border: 1px solid var(--line3); background: rgba(255,255,255,.04); color: var(--gold2); font-size: 15px; line-height: 1; }

/* ---------- результаты ---------- */
#out { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 4px; }
#out > * { animation: rise .55s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* заголовок результата */
.route { display: grid; gap: 10px; padding: 16px; border-radius: var(--r); border: 1px solid var(--line2); background: var(--card); }
.route__line { display: flex; align-items: center; gap: 10px; }
.route__city { display: grid; gap: 2px; min-width: 0; }
.route__city b { font: 600 clamp(18px, 5vw, 22px)/1.1 var(--font-h); letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.route__city small { color: var(--dim); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.route__city--to { text-align: right; justify-items: end; }
.route__plane { flex: 1; min-width: 30px; position: relative; height: 2px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.route__plane::after { content: '✈'; position: absolute; top: -10px; left: 0; color: var(--gold); font-size: 15px; animation: fly 3.2s var(--ease) infinite; }
@keyframes fly { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 14px); opacity: 0; } }
.route__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255,255,255,.03); color: var(--muted); font-size: 12px; font-weight: 800; white-space: nowrap; }
.pill--gold { border-color: var(--line); color: var(--gold2); background: rgba(227,184,113,.08); }
.pill--green { border-color: rgba(134,227,165,.3); color: var(--green); background: var(--green-bg); }
.route__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stat--wide { grid-column: 1 / -1; display: flex !important; align-items: center; justify-content: space-between; gap: 10px; }
.stat { display: grid; align-content: start; gap: 3px; padding: 10px 11px; text-align: left; font: inherit; color: inherit; border-radius: var(--r-sm); background: rgba(0,0,0,.25); border: 1px solid var(--line2); }
.stat small { color: var(--dim); font-size: 10px; line-height: 1.2; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.stat b { font: 600 14px/1.25 var(--font-h); }
button.stat { cursor: pointer; transition: border-color .2s; }
button.stat:hover { border-color: rgba(134,227,165,.4); }
.stat b.good { color: var(--green); }

/* как это работает — одна строка-подсказка */
.how { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line2); background: rgba(255,255,255,.02); color: var(--muted); font-size: 13px; font-weight: 600; }
.how i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(227,184,113,.14); color: var(--gold2); font-style: normal; font-size: 12px; font-weight: 800; }

/* «Всё для поездки» */
.ex { display: grid; gap: 10px; padding: 14px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(227,184,113,.08), rgba(255,255,255,.02)); }
.ex__tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.ex__tabs button { min-height: 40px; padding: 8px 13px; border-radius: 13px; border: 1px solid var(--line2); background: rgba(255,255,255,.04); color: var(--text); font-size: 13.5px; font-weight: 800; transition: background .2s, border-color .2s, transform .15s var(--ease); }
.ex__tabs button:active { transform: scale(.96); }
.ex__tabs .ex__hotel { flex: 1 0 100%; min-height: 48px; border-color: rgba(227,184,113,.5); background: rgba(227,184,113,.1); color: var(--gold2); font-size: 15px; }
.ex__tabs button.is-on, .ex__tabs .ex__hotel.is-on { border-color: var(--gold); background: var(--grad); color: #1a1408; }

/* оценка цены */
.pill--red { border-color: rgba(255,140,120,.3); color: #ff9c88; background: rgba(255,120,100,.08); }

/* график цен по дням */
.graph, .months, .grid { display: grid; gap: 10px; padding: 14px; border-radius: var(--r); border: 1px solid var(--line2); background: var(--card); }
.graph__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.graph__head b { font: 600 14px/1.2 var(--font-h); }
.graph__head span { color: var(--muted); font-size: 12px; font-weight: 800; }
.graph__bars { display: flex; align-items: flex-end; gap: 3px; height: 110px; overflow-x: auto; scrollbar-width: none; }
.graph__bars::-webkit-scrollbar { display: none; }
.bar { flex: 1 0 10px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; padding: 0; border: 0; background: none; }
.bar i { width: 100%; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, rgba(227,184,113,.55), rgba(227,184,113,.15)); transform-origin: bottom; animation: grow .6s var(--ease) both; transition: filter .2s; }
.bar:hover i { filter: brightness(1.3); }
.bar.is-low i { background: linear-gradient(180deg, var(--green), rgba(134,227,165,.25)); }
.bar.is-on i { background: var(--grad); box-shadow: 0 0 12px rgba(227,184,113,.6); }
.bar small { color: var(--dim); font-size: 9.5px; font-weight: 800; }
.bar.is-on small { color: var(--gold2); }
@keyframes grow { from { transform: scaleY(0); } }

/* самый дешёвый месяц */
.mrow { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 0; border: 0; border-top: 1px solid var(--line2); background: none; text-align: left; }
.mrow span { font-size: 13px; font-weight: 800; }
.mrow i { height: 8px; width: var(--w); border-radius: 8px; background: linear-gradient(90deg, rgba(227,184,113,.6), rgba(227,184,113,.2)); transform-origin: left; animation: growx .7s var(--ease) both; }
.mrow b { font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.mrow.is-low i { background: linear-gradient(90deg, var(--green), rgba(134,227,165,.25)); }
.mrow.is-low b { color: var(--green); }
.mrow.is-on span { color: var(--gold2); }
@keyframes growx { from { transform: scaleX(0); } }

.months--sheet { padding: 4px 14px; }
.mrow span em { display: block; font-style: normal; color: var(--muted); font-size: 11.5px; font-weight: 700; }

/* сетка «туда × обратно» */
.grid__scroll { overflow-x: auto; margin: 0 -14px; padding: 0 14px; scrollbar-width: none; }
.grid__scroll::-webkit-scrollbar { display: none; }
.grid__t { display: grid; grid-template-columns: 58px repeat(7, minmax(52px, 1fr)); gap: 4px; min-width: 430px; }
.grid__t > i { font-style: normal; color: var(--dim); font-size: 10.5px; font-weight: 800; line-height: 1.2; text-align: center; align-self: center; }
.gcell { min-height: 38px; display: grid; place-items: center; padding: 0; border-radius: 9px; border: 1px solid var(--line2); background: rgba(255,255,255,.03); font-size: 12px; font-weight: 800; transition: transform .15s var(--ease), border-color .2s; }
button.gcell:hover { border-color: var(--line3); }
button.gcell:active { transform: scale(.94); }
.gcell.is-low { background: var(--green-bg); color: var(--green); border-color: rgba(134,227,165,.25); }
.gcell.is-min { box-shadow: inset 0 0 0 1.5px var(--green); }
.gcell.is-on { border-color: var(--gold); background: rgba(227,184,113,.16); color: var(--gold2); }
.gcell--none { color: var(--dim); opacity: .5; }

/* лента соседних дат */
.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; scroll-snap-type: x proximity; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; display: grid; gap: 3px; min-width: 78px; padding: 10px 8px; border-radius: 16px; border: 1px solid var(--line2); background: var(--card); text-align: center; scroll-snap-align: start; transition: border-color .2s, transform .15s var(--ease), background .2s; }
.day:hover { border-color: var(--line3); }
.day:active { transform: scale(.96); }
.day small { color: var(--muted); font-size: 11.5px; font-weight: 800; }
.day b { font-size: 13.5px; font-weight: 800; }
.day.is-low b { color: var(--green); }
.day.is-on { border-color: var(--gold); background: rgba(227,184,113,.12); box-shadow: 0 0 0 3px rgba(227,184,113,.1); }

.link { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 2px 0; border: 0; background: none; color: var(--gold2); font-size: 13.5px; font-weight: 800; }
.link::before { content: ''; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid currentColor; box-shadow: inset 0 3px 0 -1px currentColor; }

/* календарь месяца */
.cal { padding: 14px; border-radius: var(--r); border: 1px solid var(--line2); background: var(--card); }
.cal__title { margin-bottom: 10px; font: 600 14px/1.2 var(--font-h); }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cal__grid i { font-style: normal; text-align: center; color: var(--dim); font-size: 11px; font-weight: 800; padding-bottom: 2px; }
.cal__d { display: grid; gap: 1px; padding: 7px 0; border-radius: 11px; border: 1px solid var(--line2); background: rgba(255,255,255,.03); text-align: center; transition: transform .15s var(--ease), border-color .2s; }
.cal__d:not(.cal__d--none):hover { border-color: var(--line3); }
.cal__d:not(.cal__d--none):active { transform: scale(.94); }
.cal__d b { font-size: 13px; }
.cal__d small { font-size: 10.5px; font-weight: 800; color: var(--muted); }
.cal__d.is-low { background: var(--green-bg); border-color: rgba(134,227,165,.25); }
.cal__d.is-low small { color: var(--green); }
.cal__d.is-on { border-color: var(--gold); background: rgba(227,184,113,.14); }
.cal__d--none { opacity: .3; }

/* ---------- карточка рейса ---------- */
.list { display: grid; gap: 12px; }
.fl { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px; border-radius: var(--r); border: 1px solid var(--line2); background: var(--card);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow);
  animation: rise .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); transition: border-color .25s, transform .25s var(--ease), background .25s; }
.fl:hover { border-color: var(--line3); background: var(--card-hi); }
.fl--1 { padding-top: 22px; border-color: rgba(227,184,113,.55); background: linear-gradient(160deg, rgba(227,184,113,.13), rgba(227,184,113,.02) 45%, rgba(255,255,255,.02)); }
.fl--1::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; overflow: hidden;
  background: linear-gradient(110deg, transparent 35%, rgba(251,231,191,.12) 50%, transparent 65%) -200% 0 / 200% 100% no-repeat; animation: shine 4.5s ease-in-out 1s infinite; }
@keyframes shine { 0%, 60% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.fl__head { display: flex; align-items: center; gap: 12px; }
.medal { position: relative; width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; font: 600 14px/1 var(--font-h); color: #1a1408; box-shadow: 0 6px 16px -6px rgba(0,0,0,.8); }
.medal--n { color: var(--muted); border: 1px solid var(--line3); background: none; box-shadow: none; }
.medal--1 { background: var(--grad); box-shadow: 0 6px 20px -6px rgba(227,184,113,.8); }
.medal--2 { background: var(--silver); }
.medal--3 { background: var(--bronze); }
.medal__crown { position: absolute; top: -13px; left: 50%; width: 21px; transform: translateX(-50%); animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateX(-50%) translateY(-2px); } }
.fl__air { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; font-weight: 800; }
.fl__air img { width: 28px; height: 28px; border-radius: 8px; background: #fff; flex: none; }
.fl__air span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl__price { display: grid; justify-items: end; gap: 3px; font: 600 20px/1 var(--font-h); white-space: nowrap; letter-spacing: -.01em; }
.fl--1 .fl__price { color: var(--gold2); }
.fl__price small { font: 700 11px/1 var(--font); color: var(--dim); letter-spacing: 0; }
.fl__price small:first-of-type { color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -2px; }
.fl__time { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.fl__time b { font: 600 21px/1 var(--font-h); letter-spacing: -.02em; }
.fl__time small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.fl__time .r { text-align: right; }
.fl__line { display: grid; gap: 5px; text-align: center; color: var(--muted); font-size: 12px; font-weight: 700; }
.fl__line i { position: relative; display: block; height: 2px; border-radius: 2px; background: var(--line); }
.fl__line i::before, .fl__line i::after { content: ''; position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--gold); background: var(--bg); }
.fl__line i::before { left: -2px; } .fl__line i::after { right: -2px; }
.fl__line .direct { color: var(--green); }
.fl__back { padding: 9px 12px; border-radius: var(--r-sm); background: rgba(0,0,0,.22); border: 1px solid var(--line2); color: var(--muted); font-size: 13px; font-weight: 700; }
.fl__back b { color: var(--text); }
.fl__back .direct { color: var(--green); }
.fl__date { flex: none; padding: 7px 11px; border-radius: 11px; background: rgba(227,184,113,.14); border: 1px solid var(--line); color: var(--gold2); font-weight: 800; font-size: 13px; white-space: nowrap; }
.fl__meta { padding: 0 24px 0 48px; color: var(--muted); font-size: 13px; font-weight: 700; }
.fl__meta .direct { color: var(--green); }
.tag { justify-self: start; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--gold2); background: rgba(227,184,113,.08); border: 1px solid var(--line); }
.fl__btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

/* карточки главного экрана — целиком кнопка */
.fl--go { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.fl--go:hover { transform: translateY(-2px); }
.fl--go:active { transform: scale(.985); }
.fl--go .fl__go { position: absolute; right: 16px; bottom: 14px; color: var(--dim); font-size: 18px; transition: transform .25s var(--ease), color .2s; }
.fl--go:hover .fl__go { transform: translateX(3px); color: var(--gold2); }
.fl__air--city span { white-space: normal; }
.fl__air--city b { font: 600 17px/1.2 var(--font-h); letter-spacing: -.01em; }
.fl__air--city small { color: var(--muted); font-size: 12px; font-weight: 700; }

/* ---------- кнопки ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 8px 10px; border-radius: 15px; border: 1px solid transparent; font-weight: 800; font-size: 13.5px; line-height: 1.15; text-decoration: none; text-align: center;
  transition: transform .15s var(--ease), filter .2s, background .2s, border-color .2s; }
.btn:active { transform: scale(.97); }
.btn--gold { background: var(--grad); color: #1a1408; box-shadow: 0 10px 24px -12px rgba(227,184,113,.8); }
.btn--gold:hover { filter: brightness(1.06); }
.btn--ghost { background: rgba(255,255,255,.04); border-color: var(--line3); color: var(--text); }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--more { width: 100%; border: 1.5px dashed rgba(227,184,113,.5); background: rgba(227,184,113,.05); color: var(--gold2); min-height: 52px; }
.btn--more:hover { background: rgba(227,184,113,.1); }
.caret { font-style: normal; display: inline-block; transition: transform .25s var(--ease); }
.is-open .caret { transform: rotate(180deg); }

/* ---------- сравнение с другими сайтами (раскрывается под рейсом) ---------- */
.cmp { display: grid; gap: 8px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: rgba(227,184,113,.05); animation: rise .35s var(--ease) both; }
.cmp[hidden] { display: none; }
.cmp > span { font-size: 12px; font-weight: 800; color: var(--gold2); letter-spacing: .03em; }
.cmp__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.cmp__a { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 42px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255,255,255,.04); font-size: 13.5px; font-weight: 800; text-decoration: none; transition: background .2s, border-color .2s; }
.cmp__a:hover { background: rgba(255,255,255,.08); border-color: var(--line3); }
.cmp__a span { display: grid; min-width: 0; }
.cmp__a em { font-style: normal; color: var(--dim); font-size: 11px; font-weight: 700; }
.cmp__a small { color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }

/* туда + обратно двумя билетами */
.fl--combo { border-color: rgba(134,227,165,.4); background: linear-gradient(160deg, rgba(134,227,165,.09), rgba(255,255,255,.02) 50%); }
.fl--combo .medal--1 { font-size: 15px; }
.fl--combo .fl__air span { white-space: normal; line-height: 1.25; }
.leg { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px; border-radius: 16px; border: 1px solid var(--line2); background: rgba(0,0,0,.22); }
.leg__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.leg__top b { flex: 1; font-size: 14px; }
.leg__price { font: 600 15px/1 var(--font-h); }
.leg__info { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.leg__info img { width: 20px; height: 20px; border-radius: 6px; background: #fff; }

/* окно снизу: «Когда обратно?» */
.sheet { position: fixed; inset: 0; z-index: 50; display: grid; align-items: end; justify-items: center; }
.sheet[hidden] { display: none; }
.sheet__bg { position: absolute; inset: 0; background: rgba(4,3,6,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.sheet__card { position: relative; width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; display: grid; gap: 12px; padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
  border-radius: 26px 26px 0 0; border: 1px solid var(--line); border-bottom: 0; background: linear-gradient(180deg, #1a1712, #0d0c0e);
  transform: translateY(100%); transition: transform .32s var(--ease); box-shadow: 0 -20px 60px -20px rgba(0,0,0,.9); }
.sheet__card::before { content: ''; justify-self: center; width: 42px; height: 4px; margin: -6px 0 2px; border-radius: 4px; background: var(--line3); }
.sheet.is-open .sheet__bg { opacity: 1; }
.sheet.is-open .sheet__card { transform: none; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet__head b { font: 600 18px/1.2 var(--font-h); }
.sheet__x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line3); background: rgba(255,255,255,.04); }
.sheet__body { display: grid; gap: 12px; }
.cal--sheet { padding: 12px; }
@media (min-width: 720px) { .sheet { align-items: center; } .sheet__card { border-radius: 26px; border-bottom: 1px solid var(--line); transform: translateY(30px) scale(.97); opacity: 0; transition: transform .32s var(--ease), opacity .25s; } .sheet.is-open .sheet__card { opacity: 1; } }

/* «другие дни» — заметно отделены от рейсов на выбранный день */
.divider { display: grid; gap: 5px; margin-top: 8px; padding: 16px; border-radius: var(--r); border: 1.5px dashed rgba(227,184,113,.55); background: rgba(227,184,113,.06); }
.divider b { font: 600 16px/1.25 var(--font-h); color: var(--gold2); }
.divider span { font-size: 13px; font-weight: 700; }
.divider small { color: var(--muted); font-size: 12px; font-weight: 700; }
.fl--other { border-style: dashed; background: rgba(0,0,0,.25); }

.sect { margin: 0 2px; font: 600 15px/1.2 var(--font-h); }
.sect--sm { font-size: 13px; color: var(--muted); }
.sect .hint { margin: 5px 0 0; font-family: var(--font); }
.note { padding: 10px 12px; border-radius: 12px; font-size: 13px; color: var(--gold2); background: rgba(227,184,113,.1); border: 1px solid var(--line); }
.hint { margin: 0 2px; color: var(--dim); font-size: 12.5px; font-weight: 600; }
.empty { padding: 34px 16px; border-radius: var(--r); border: 1px dashed var(--line3); text-align: center; color: var(--muted); font-weight: 600; }
.empty a { color: var(--gold2); }

/* ---------- загрузка: слово «Поиск…» и мерцающие заготовки карточек ---------- */
.load { display: grid; gap: 12px; }
.load__title { display: flex; align-items: center; gap: 10px; color: var(--gold2); font-weight: 800; }
.load__title i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(227,184,113,.25); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skel { height: 132px; border-radius: var(--r); border: 1px solid var(--line2);
  background: linear-gradient(100deg, rgba(255,255,255,.03) 30%, rgba(255,255,255,.07) 50%, rgba(255,255,255,.03) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
.skel:nth-child(3) { opacity: .7; } .skel:nth-child(4) { opacity: .45; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* ---------- подвал ---------- */
.foot { max-width: 720px; margin: 0 auto; padding: 10px 16px calc(28px + env(safe-area-inset-bottom)); color: var(--dim); font-size: 12px; font-weight: 600; text-align: center; }

@media (min-width: 720px) {
  .wrap { padding-top: 22px; gap: 16px; }
  .fl { padding: 18px 20px; }
  .seg--row, .days { margin: 0; padding: 2px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
