/* Юлин отпуск — светлая «пляжная» тема: море, песок, солнце, коралл. */
:root {
  color-scheme: light;
  --sea: #19b5c4;
  --sea-deep: #0b7f99;
  --sky: #e6f8fb;
  --sand: #fff4df;
  --sun: #ffc93c;
  --coral: #e9503f;
  --coral-2: #f57d35;
  --palm: #1fa37a;
  --ink: #17364a;
  --muted: #5f7a8a;
  --line: #e3eef2;
  --card: #ffffff;
  --up: #e0533f;
}
* { box-sizing: border-box; }
html { background: var(--sand); }
body {
  margin: 0; color: var(--ink);
  background: linear-gradient(180deg, var(--sky) 0%, #f3fbf8 40%, var(--sand) 100%);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--sea-deep); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* --- шапка ----------------------------------------------------------- */
.top-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, #22c7d3 0%, #19a9c9 45%, #1b86c4 100%);
  padding: 34px 0 64px;
}
.top-hero .wrap { position: relative; max-width: 760px; margin: 0 auto; padding: 0 18px; z-index: 1; }
.sun {
  position: absolute; top: -40px; right: -30px; width: 170px; height: 170px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fff3b0 0%, var(--sun) 55%, rgba(255,201,60,0) 72%);
  opacity: .95;
}
.kicker { margin: 0 0 4px; font-weight: 700; letter-spacing: .02em; opacity: .95; }
h1 { font-size: 40px; line-height: 1.05; margin: 0 0 10px; letter-spacing: -0.03em; font-weight: 800; }
.sub { margin: 0; max-width: 520px; font-size: 16px; opacity: .95; }
.countdown {
  display: inline-block; margin-top: 16px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.22); font-weight: 600;
}
.countdown b { font-size: 20px; }
.waves { position: absolute; left: 0; bottom: -1px; width: 100%; height: 46px; }
.waves .w1 { fill: rgba(255,255,255,.35); }
.waves .w2 { fill: var(--sky); }

main { max-width: 760px; margin: -6px auto 0; padding: 0 16px 48px; }
.updated { margin: 6px 2px 12px; color: var(--muted); font-size: 13px; }

/* --- карточки -------------------------------------------------------- */
section {
  border-radius: 22px; padding: 18px; margin: 14px 0;
  box-shadow: 0 6px 24px rgba(11,127,153,.10);
}
.card { background: var(--card); }
h2 { font-size: 20px; margin: 0 0 12px; letter-spacing: -0.01em; }
h3 {
  font-size: 13px; margin: 0 0 6px; color: var(--sea-deep); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
}

.combo.hero { background: linear-gradient(135deg, var(--coral) 0%, var(--coral-2) 100%); color: #fff; }
.combo.alt { background: #fff; border: 2px solid #bfeef3; }
.combo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.combo-head h2 { margin: 0; }
.total { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.combo-sub { margin-top: 2px; opacity: .92; }
.combo.alt .combo-sub { color: var(--muted); }
.combo-legs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
@media (max-width: 560px) { .combo-legs { grid-template-columns: 1fr; } }
.combo-leg { border-radius: 16px; padding: 12px 14px; background: rgba(120,30,10,.16); }
.combo.alt .combo-leg { background: var(--sky); }
.combo-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .92; }
.combo-flight { font-weight: 700; margin: 4px 0 2px; }
.combo-meta { font-size: 14px; }
.combo-price { font-size: 20px; font-weight: 800; margin-top: 6px; white-space: nowrap; }
.per { font-size: 12px; font-weight: 500; opacity: .85; }
.btn {
  display: inline-block; margin-top: 10px; padding: 8px 14px; border-radius: 999px;
  background: var(--sea); color: #fff; text-decoration: none; font-size: 14px; font-weight: 700;
}
.hero .btn { background: #fff; color: #e0533f; }
.note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

/* --- таблицы --------------------------------------------------------- */
.leg { margin: 4px 0 18px; }
.leg:last-child { margin-bottom: 4px; }
table { width: 100%; border-collapse: collapse; }
td, th { padding: 9px 6px; border-top: 1px solid var(--line); vertical-align: top; text-align: left; }
th { font-size: 12px; color: var(--muted); font-weight: 700; border-top: 0; text-transform: uppercase; letter-spacing: .04em; }
tr:first-child td { border-top: 0; }
td.day { white-space: nowrap; font-weight: 600; }
.fl { font-weight: 600; }
.plus { color: var(--muted); font-size: 12px; }
.price { text-align: right; white-space: nowrap; }
.price a { text-decoration: none; font-weight: 800; color: var(--sea-deep); font-size: 17px; }
.price .per { color: var(--muted); opacity: 1; }
.price > div { white-space: normal; }
.top td:nth-child(3) { text-align: center; }
.top .price { font-weight: 800; color: var(--sea-deep); }
.empty td { color: var(--muted); padding-top: 6px; padding-bottom: 6px; }
.delta { display: inline-block; white-space: nowrap; font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 999px; }
.delta.down { color: var(--palm); background: #e2f6ee; }
.delta.up { color: var(--up); background: #fde8e4; }
.tag {
  display: inline-block; white-space: nowrap; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px;
  background: #fff1c2; color: #9a6a00; vertical-align: middle;
}
.tag.sea { background: #d9f4f7; color: var(--sea-deep); }
.spark { display: block; margin-left: auto; }
.spark polyline { fill: none; stroke: #9db4c0; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark circle { fill: #9db4c0; }
.spark.down polyline { stroke: var(--palm); }
.spark.down circle { fill: var(--palm); }
.spark.up polyline { stroke: var(--up); }
.spark.up circle { fill: var(--up); }
.warn { background: #fff3cd; color: #6b4e00; padding: 8px 12px; border-radius: 12px; }
footer { color: var(--muted); font-size: 14px; margin-top: 22px; padding: 0 4px; }
.nowrap { white-space: nowrap; }

@media (max-width: 480px) {
  h1 { font-size: 34px; }
  section { padding: 14px; }
  td, th { padding-left: 4px; padding-right: 4px; }
  td.day { white-space: normal; width: 62px; }
  .tag, .delta { margin-top: 2px; }
  .spark-cell { display: none; }
  .total { font-size: 28px; }
  .top td, .top th { padding-left: 4px; padding-right: 4px; font-size: 14px; }
  .price a { font-size: 16px; }
}
