:root {
  --bg: #f3f4fb; --card: #ffffff; --ink: #161a2e; --muted: #6b7091; --line: #e5e7f3;
  --primary: #4f46e5; --primary-2: #7c3aed; --primary-ink: #fff; --primary-soft: #eef0ff;
  --teal: #0d9488; --teal-soft: #dff7f3;
  --cheap: #059669; --cheap-soft: #dcfce7;
  --late: #7c3aed; --late-soft: #f1e8ff;
  --balance: #d97706; --balance-soft: #fff3d6;
  --value: #0284c7; --value-soft: #e0f2fe;
  --hol: #e11d48; --hol-soft: #ffe4ea;
  --warn: #c2410c; --warn-soft: #fff1e6;
  --bad: #dc2626; --bad-soft: #fee2e2;
  --stay: #e7ecff; --buffer: #ffe8c2;
  --chip: #eef0f7;
  --shadow: 0 1px 2px rgba(22,26,46,.04), 0 8px 24px rgba(22,26,46,.06);
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f1c; --card: #161a2e; --ink: #e8eaf6; --muted: #9aa0c3; --line: #262b47;
    --primary: #818cf8; --primary-2: #a78bfa; --primary-ink: #0d0f1c; --primary-soft: #23264a;
    --teal: #2dd4bf; --teal-soft: #0f2e2c;
    --cheap: #34d399; --cheap-soft: #0f2f22;
    --late: #c4b5fd; --late-soft: #2a2050;
    --balance: #fbbf24; --balance-soft: #33280d;
    --value: #38bdf8; --value-soft: #0c2a3b;
    --hol: #fb7185; --hol-soft: #3a1520;
    --warn: #fdba74; --warn-soft: #34200f;
    --bad: #f87171; --bad-soft: #3a1515;
    --stay: #1e2346; --buffer: #3a2c10;
    --chip: #20243d; --shadow: none; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-text-size-adjust: 100%; }
h1 { font-size: 26px; margin: 4px 0; }
h2 { font-size: 17px; margin: 20px 0 10px; }
h2:first-child { margin-top: 0; }
a { color: var(--primary); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.err { color: var(--bad); min-height: 1.4em; margin-top: 8px; }
[hidden] { display: none !important; }

.btn { font: inherit; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 9px 14px; border-radius: 12px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: transform .08s, box-shadow .15s, border-color .15s; }
.btn:hover { border-color: var(--primary); }
.btn:active { transform: scale(.98); }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; border: 0; font-weight: 650; box-shadow: 0 6px 18px rgba(79,70,229,.3); }
.btn.ghost { background: transparent; }
.btn.small { padding: 6px 11px; font-size: 13px; border-radius: 10px; }
.btn.wide { width: 100%; justify-content: center; }
.btn.big { padding: 14px; font-size: 16.5px; margin-top: 16px; border-radius: 14px; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.buy { background: var(--primary-soft); color: var(--primary); border-color: transparent; font-weight: 600; }
.link { background: none; border: 0; color: var(--primary); font: inherit; cursor: pointer; padding: 0; }

input, select { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; width: 100%; min-width: 0; }
input:focus, select:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; }
label.check input { width: auto; accent-color: var(--primary); }
label.inline { flex-direction: row; align-items: center; gap: 8px; }

.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(1200px 600px at 20% -10%, #c7d2fe 0, transparent 60%), radial-gradient(900px 500px at 110% 110%, #ddd6fe 0, transparent 60%), var(--bg); }
.login-card { background: var(--card); padding: 30px 24px; border-radius: 22px; box-shadow: var(--shadow); width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 12px; text-align: center; }
.login-card label { text-align: left; }
.logo { font-size: 44px; }

.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; white-space: nowrap; font-size: 17px; }
.tabs { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.tabs button { font: inherit; background: none; border: 0; color: var(--muted); padding: 7px 12px; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.tabs button.active { background: var(--primary-soft); color: var(--primary); font-weight: 650; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 16px 16px 70px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 18px; margin-bottom: 16px; }
.card-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.card-title h2 { margin: 0; }
.small-select select { width: auto; padding: 5px 8px; font-size: 13px; }

/* ---------- hero ---------- */
.hero { border-radius: 22px; padding: 20px; margin-bottom: 16px; color: #fff; background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #db2777 120%); box-shadow: 0 14px 40px rgba(79,70,229,.28); position: relative; overflow: hidden; }
.hero.warn { background: linear-gradient(135deg, #ea580c, #db2777); }
.hero.bad { background: linear-gradient(135deg, #b91c1c, #7f1d1d); }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08); }
.hero-grid { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; position: relative; z-index: 1; }
.hero-grid > div { min-width: 0; }
.days { text-align: center; min-width: 110px; }
.days .n { font-size: 60px; font-weight: 850; line-height: .95; letter-spacing: -2px; }
.days .t { font-size: 13px; opacity: .9; }
.hero .headline { font-size: 21px; font-weight: 750; }
.hero .sub { opacity: .92; margin-top: 2px; }
.hero .pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.hp { background: rgba(255,255,255,.18); padding: 4px 10px; border-radius: 12px; font-size: 12.5px; }
.hp b { font-weight: 700; }
.timeline { position: relative; height: 44px; margin: 18px 4px 2px; z-index: 1; }
.tl-track { position: absolute; left: 0; right: 0; top: 16px; height: 10px; border-radius: 99px; background: rgba(255,255,255,.22); overflow: hidden; }
.tl-done { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255,255,255,.75); border-radius: 99px; }
.tl-seg { position: absolute; top: 16px; height: 10px; }
.tl-seg.hol { background: #fda4af; box-shadow: 0 0 0 1px rgba(255,255,255,.6) inset; }
.tl-seg.buf { background: #fcd34d; }
.tl-mark { position: absolute; top: 8px; width: 3px; height: 26px; border-radius: 2px; background: #fff; transform: translateX(-1px); }
.tl-mark.dl { background: #fecaca; box-shadow: 0 0 0 2px #dc2626; }
.tl-lbl { position: absolute; top: 34px; font-size: 11px; transform: translateX(-50%); white-space: nowrap; opacity: .95; }
.tl-lbl.left { transform: none; } .tl-lbl.right { transform: translateX(-100%); }
.tl-today { position: absolute; top: -2px; transform: translateX(-50%); font-size: 11px; background: #fff; color: #4f46e5; font-weight: 700; padding: 1px 7px; border-radius: 99px; white-space: nowrap; }
.hols { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; position: relative; z-index: 1; }
.hol-card { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 12px; padding: 7px 11px; font-size: 13px; }
.hol-card b { display: block; font-size: 14px; }
.hol-card .ap { font-size: 11px; opacity: .8; }
.entry-edit { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; position: relative; z-index: 1; font-size: 13px; }
.entry-edit input { width: auto; background: rgba(255,255,255,.95); color: #161a2e; border: 0; padding: 6px 9px; }
.entry-edit .btn { background: rgba(255,255,255,.2); color: #fff; border: 1px solid rgba(255,255,255,.35); }

/* ---------- календарь ---------- */
.calendar { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.month h3 { margin: 0 0 8px; font-size: 15px; text-transform: capitalize; }
.mgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wd { text-align: center; font-size: 11px; color: var(--muted); padding-bottom: 2px; }
.wd.we { color: var(--hol); }
.day { position: relative; border-radius: 10px; min-height: 50px; padding: 4px 2px 3px; text-align: center; background: var(--chip); cursor: pointer; border: 2px solid transparent; transition: transform .08s; user-select: none; }
.day:hover { transform: translateY(-1px); border-color: var(--primary); }
.day .dn { font-size: 13px; font-weight: 650; line-height: 1.1; }
.day .pr { font-size: 10.5px; font-weight: 650; margin-top: 3px; font-variant-numeric: tabular-nums; }
.day .ic { font-size: 10px; line-height: 1; margin-top: 1px; letter-spacing: -1px; }
.day.empty { background: transparent; cursor: default; border: 0; }
.day.empty:hover { transform: none; }
.day.past { opacity: .38; cursor: default; }
.day.past:hover { transform: none; border-color: transparent; }
.day.stay { background: var(--stay); }
.day.buffer { background: var(--buffer); }
.day.deadline { background: var(--bad); color: #fff; }
.day.deadline .pr { color: #fff !important; }
.day.after { background: var(--chip); }
.day.we .dn { color: var(--hol); }
.day.deadline .dn { color: #fff; }
.day.hol::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--hol); }
.day.today { box-shadow: 0 0 0 2px var(--primary) inset; }
.day.sel-out, .day.sel-ret { border-color: var(--primary); background: var(--primary); color: #fff; }
.day.sel-out .dn, .day.sel-ret .dn, .day.sel-out .pr, .day.sel-ret .pr { color: #fff !important; }
.day.sel-mid { box-shadow: 0 0 0 2px var(--primary-soft) inset; background: var(--primary-soft); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 12px 0 6px; align-items: center; }
.lg { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -3px; margin-right: 4px; }
.lg-stay { background: var(--stay); } .lg-buffer { background: var(--buffer); } .lg-deadline { background: var(--bad); }
.lg-hol { background: linear-gradient(to top, var(--hol) 0 3px, var(--chip) 3px); }
.lg-cheap { background: #10b981; } .lg-exp { background: #ef4444; }

/* ---------- поиск ---------- */
.strategies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.strat { font: inherit; text-align: left; border: 2px solid var(--line); background: var(--card); color: var(--ink); border-radius: 16px; padding: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; transition: all .15s; }
.strat .s-ico { font-size: 24px; }
.strat small { color: var(--muted); font-size: 12.5px; }
.strat input { width: 46px; padding: 1px 4px; font-size: 12px; display: inline-block; }
.strat.active.s-cheap { border-color: var(--cheap); background: var(--cheap-soft); }
.strat.active.s-balance { border-color: var(--balance); background: var(--balance-soft); }
.strat.active.s-late { border-color: var(--late); background: var(--late-soft); }
.seg { display: flex; background: var(--chip); border-radius: 13px; padding: 4px; gap: 4px; }
.seg button { flex: 1; font: inherit; border: 0; background: none; color: var(--muted); padding: 8px 6px; border-radius: 10px; cursor: pointer; }
.seg button.active { background: var(--card); color: var(--ink); font-weight: 650; box-shadow: var(--shadow); }
.mode-help { margin: 8px 2px 4px; font-size: 13px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.label { font-size: 13px; color: var(--muted); margin: 16px 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: inherit; font-size: 13.5px; border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.chip.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.chip-actions { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 16px; }
.q-item { background: var(--chip); border-radius: 12px; padding: 9px 11px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink); }
.q-item.check { flex-direction: row; align-items: center; }
.q-item select { padding: 5px 8px; background: var(--card); }
.q-item .pair { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.q-item .pair input { width: 64px; padding: 5px 7px; background: var(--card); }
.q-item.night .pair input { width: 118px; }

.stage { font-weight: 650; margin-bottom: 10px; }
.bar { height: 10px; background: var(--chip); border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.bar div { height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--primary-2), #db2777); transition: width .4s; }

.sect-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 26px 2px 12px; flex-wrap: wrap; }
.sect-title h2 { margin: 0; font-size: 19px; }

/* ---------- анализ ---------- */
.analysis { border: 0; background: linear-gradient(135deg, var(--primary-soft), var(--late-soft)); }
.verdict { font-size: 17px; font-weight: 650; line-height: 1.4; }
.verdict .v-ico { font-size: 26px; margin-right: 6px; vertical-align: -4px; }
.picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-top: 14px; }
.pick { background: var(--card); border-radius: 14px; padding: 12px; cursor: pointer; border-top: 4px solid var(--line); box-shadow: var(--shadow); }
.pick:hover { transform: translateY(-1px); }
.pick .pk-t { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.pick .pk-c { font-weight: 700; font-size: 16px; margin-top: 3px; }
.pick .pk-d { color: var(--muted); font-size: 13px; }
.pick .pk-p { font-size: 22px; font-weight: 800; margin-top: 4px; }
.pick .pk-x { font-size: 12.5px; margin-top: 2px; }
.pick.cheap { border-top-color: var(--cheap); } .pick.cheap .pk-t { color: var(--cheap); }
.pick.late { border-top-color: var(--late); } .pick.late .pk-t { color: var(--late); }
.pick.balance { border-top-color: var(--balance); } .pick.balance .pk-t { color: var(--balance); }
.pick.value { border-top-color: var(--value); } .pick.value .pk-t { color: var(--value); }
.chart { margin-top: 14px; background: var(--card); border-radius: 14px; padding: 10px; overflow-x: auto; }
.chart svg { display: block; min-width: 520px; width: 100%; height: auto; }
.chart text { fill: var(--muted); font-size: 11px; }
.chart .dot { cursor: pointer; }
.chart .dot:hover { stroke-width: 3; }

/* ---------- варианты ---------- */
.variant { padding: 0; overflow: hidden; border-left: 5px solid var(--line); }
.variant.t-cheap { border-left-color: var(--cheap); }
.variant.t-late { border-left-color: var(--late); }
.variant.t-balance { border-left-color: var(--balance); }
.variant.t-value { border-left-color: var(--value); }
.variant.flash { animation: flash 1.2s; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 4px var(--primary); } 100% { box-shadow: var(--shadow); } }
.v-head { display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px 8px; align-items: flex-start; }
.v-city { font-size: 21px; font-weight: 800; }
.v-city .flag { margin-right: 4px; }
.v-dates { color: var(--muted); font-size: 14px; margin-top: 2px; }
.v-dates b { color: var(--ink); }
.v-price { text-align: right; white-space: nowrap; }
.v-price .p { font-size: 27px; font-weight: 850; letter-spacing: -.5px; }
.v-price .e { font-size: 12px; color: var(--muted); }
.v-badges { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 12px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--chip); font-size: 12.5px; white-space: nowrap; }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.good { background: var(--cheap-soft); color: var(--cheap); }
.pill.accent { background: var(--primary-soft); color: var(--primary); }
.pill.t-cheap { background: var(--cheap); color: #fff; font-weight: 700; }
.pill.t-late { background: var(--late); color: #fff; font-weight: 700; }
.pill.t-balance { background: var(--balance); color: #fff; font-weight: 700; }
.pill.t-value { background: var(--value); color: #fff; font-weight: 700; }
.pill.hol { background: var(--hol-soft); color: var(--hol); }
.leg { border-top: 1px solid var(--line); padding: 12px 18px; }
.leg-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.leg-dir { font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.leg-dir.out { color: var(--teal); } .leg-dir.ret { color: var(--late); }
.leg-dir span { color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; margin-left: 6px; }
.leg .lp { font-weight: 800; font-size: 16px; }
.fl { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.fl .tm { font-size: 20px; font-weight: 750; font-variant-numeric: tabular-nums; }
.fl .ap { font-size: 12px; color: var(--muted); }
.fl .end { text-align: right; }
.fl .plus { font-size: 11px; color: var(--warn); vertical-align: super; font-weight: 700; }
.line { position: relative; height: 26px; }
.line::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; border-top: 2px dashed var(--line); }
.line .dur { position: absolute; left: 50%; top: -3px; transform: translateX(-50%); font-size: 11.5px; color: var(--muted); background: var(--card); padding: 0 6px; white-space: nowrap; }
.line .stp { position: absolute; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--warn); transform: translateX(-50%); }
.line .plane { position: absolute; right: -4px; top: 3px; font-size: 14px; }
.line .stops { position: absolute; left: 50%; top: 15px; transform: translateX(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; }
.leg .meta { font-size: 13px; color: var(--muted); margin-top: 8px; }
.leg .warns { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.sellers { border-top: 1px solid var(--line); padding: 10px 18px; font-size: 13.5px; }
.sellers .s-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 3px 0; }
.sellers .s { background: var(--chip); border-radius: 8px; padding: 3px 8px; }
.sellers .s.off { background: var(--cheap-soft); color: var(--cheap); }
.facts { border-top: 1px solid var(--line); padding: 10px 18px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; }
.fact { background: var(--chip); border-radius: 10px; padding: 5px 10px; }
.fact b { font-weight: 700; }
.fact.next { background: var(--teal-soft); color: var(--teal); }
.v-warn { border-top: 1px solid var(--line); padding: 10px 18px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--warn); }
.v-links { border-top: 1px solid var(--line); padding: 12px 18px 16px; display: flex; flex-wrap: wrap; gap: 8px; }
details.alts { border-top: 1px solid var(--line); padding: 9px 18px; font-size: 13.5px; }
details.alts summary { cursor: pointer; color: var(--primary); }
.alt { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.alt:last-child { border: 0; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 8px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 12px; color: var(--muted); font-weight: 650; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--primary-soft); }
.dest-table input { padding: 5px 7px; font-size: 13px; }
.dest-table td { padding: 4px; }
.dest-table input[type=checkbox] { width: auto; }
.dest-table .w-s { width: 60px; } .dest-table .w-m { width: 110px; } .dest-table .w-l { width: 180px; }

.heat { border-collapse: separate; border-spacing: 2px; font-size: 11.5px; }
.heat th { font-weight: 500; padding: 2px; text-align: center; }
.heat th.city { text-align: right; padding-right: 6px; position: sticky; left: 0; background: var(--card); font-size: 12.5px; color: var(--ink); }
.heat td { padding: 0; border: 0; }
.heat .cell { min-width: 42px; height: 34px; border-radius: 6px; display: grid; place-items: center; line-height: 1.05; text-align: center; font-variant-numeric: tabular-nums; }
.heat .cell small { display: block; font-size: 9.5px; opacity: .75; }
.heat .cell.hol { outline: 2px solid var(--hol); outline-offset: -2px; }
.heat .wk { color: var(--hol); }

.rule { display: grid; grid-template-columns: 1.6fr .8fr .8fr 1fr .8fr; gap: 8px; align-items: end; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.rule:last-child { border: 0; }
.save-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.hist { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.hist:last-child { border: 0; }
.hist:hover { color: var(--primary); }
.empty { text-align: center; padding: 26px 10px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 50; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: calc(100% - 32px); }

@media (max-width: 700px) {
  .grid3 { grid-template-columns: 1fr 1fr; }
  .strategies { grid-template-columns: 1fr; }
  .strat { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
  .strat small { flex-basis: 100%; padding-left: 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 6px; }
  .days { display: flex; align-items: baseline; gap: 8px; text-align: left; }
  .days .n { font-size: 48px; }
  .hero .headline { font-size: 18px; }
  .hero { padding: 16px; }
  .pill { white-space: normal; }
  .rule { grid-template-columns: 1fr 1fr; }
  .rule > :first-child { grid-column: 1 / 3; }
  .top { flex-wrap: wrap; gap: 6px; }
  .tabs { order: 3; flex-basis: 100%; }
  .brand { flex: 1; }
  .v-city { font-size: 18px; }
  .v-price .p { font-size: 22px; }
  .fl .tm { font-size: 17px; }
  .calendar { grid-template-columns: 1fr; }
  .day { min-height: 46px; }
  .day .pr { font-size: 9.5px; }
  .seg button { font-size: 13.5px; }
  .v-head, .v-badges, .leg, .sellers, .facts, .v-warn, .v-links, details.alts { padding-left: 14px; padding-right: 14px; }
}
