:root {
  --label: #1d1d1f;
  --secondary: rgba(60, 60, 67, 0.62);
  --bg: #f5f5f7;
  --group: #ffffff;
  --separator: rgba(60, 60, 67, 0.14);
  --now: rgba(0, 0, 0, 0.85);
  --working: #007aff;
  --dst: #ff9500;
  --dst-text: #c93400;
  --dst-tint: rgba(255, 149, 0, 0.13);
  --bar-off: rgba(60, 60, 67, 0.36);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --label: #f2f2f7;
    --secondary: rgba(235, 235, 245, 0.6);
    --bg: #161618;
    --group: #2c2c2e;
    --separator: rgba(255, 255, 255, 0.09);
    --now: rgba(255, 255, 255, 0.9);
    --working: #0a84ff;
    --dst: #ff9f0a;
    --dst-text: #ffb340;
    --dst-tint: rgba(255, 159, 10, 0.17);
    --bar-off: rgba(235, 235, 245, 0.38);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.5);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font: 16px/1.5 -apple-system, "SF Pro Text", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--working); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: 26px; font-weight: 650; margin-bottom: 12px; }
h3 { font-size: 17px; font-weight: 600; }
p { margin: 0 0 12px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.muted { color: var(--secondary); }
.tabular { font-variant-numeric: tabular-nums; }

header.site { padding: 16px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--label); font-weight: 650; font-size: 18px; }
.brand img { width: 30px; height: 30px; }
.brand:hover { text-decoration: none; }
nav.site { display: flex; gap: 20px; font-size: 15px; }
nav.site a { color: var(--secondary); }
nav.site a:hover { color: var(--label); text-decoration: none; }

.btn {
  display: inline-block; padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: 16px;
  background: var(--label); color: var(--bg); border: 0; cursor: pointer; font-family: inherit;
}
.btn:hover { text-decoration: none; opacity: 0.88; }
.btn.secondary { background: var(--group); color: var(--label); box-shadow: inset 0 0 0 1px var(--separator); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 24px 0 8px; }

.hero { padding: 40px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero .sub { font-size: 20px; color: var(--secondary); margin-top: 18px; max-width: 34em; }
.hero .price-line { font-size: 14px; color: var(--secondary); }
.hero picture img { width: 100%; max-width: 380px; height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.22)); }

section.block { padding: 48px 0; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--group); border-radius: 14px; padding: 20px; box-shadow: inset 0 0 0 1px var(--separator); }
.card p { margin: 8px 0 0; color: var(--secondary); font-size: 15px; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.shots img { width: 100%; height: auto; border-radius: 14px; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.18)); }
.shots figure { margin: 0; }
.shots figcaption { margin-top: 10px; font-size: 14px; color: var(--secondary); text-align: center; }
.buy { text-align: center; }
.buy .price { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; }

.tag-dst { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; color: var(--dst-text); background: var(--dst-tint); padding: 2px 6px; border-radius: 4px; vertical-align: middle; }

/* Checker */
.checker { background: var(--group); border-radius: 14px; padding: 20px; box-shadow: inset 0 0 0 1px var(--separator); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.combo { position: relative; }
.combo input {
  width: 100%; font: inherit; padding: 10px 12px; border-radius: 8px; color: var(--label);
  background: var(--bg); border: 1px solid var(--separator);
}
.combo input:focus { outline: 2px solid var(--working); outline-offset: -1px; }
.combo ul {
  position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none;
  background: var(--group); border-radius: 10px; box-shadow: var(--shadow); border: 1px solid var(--separator);
}
.combo li { padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 15px; }
.combo li small { color: var(--secondary); margin-left: 6px; }
.combo li[aria-selected="true"], .combo li:hover { background: var(--working); color: #fff; }
.combo li[aria-selected="true"] small, .combo li:hover small { color: rgba(255, 255, 255, 0.8); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg); border: 1px solid var(--separator); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 14px; }
.chip button { border: 0; background: none; color: var(--secondary); cursor: pointer; font-size: 16px; line-height: 1; padding: 2px 6px; border-radius: 999px; }
.chip button:hover { color: var(--label); }
.examples { font-size: 14px; color: var(--secondary); }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.callout { border-radius: 12px; padding: 14px 16px; margin: 20px 0 0; background: var(--bg); box-shadow: inset 0 0 0 1px var(--separator); }
.callout.warn { background: var(--dst-tint); box-shadow: inset 0 0 0 1px var(--dst); }
.callout strong.label { display: block; margin-bottom: 4px; }
.callout.warn strong.label { color: var(--dst-text); }
.callout ul { margin: 6px 0 0; padding-left: 18px; }

.city-result { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--separator); }
.city-result header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.city-result .now-gap { color: var(--secondary); font-size: 15px; }
.strip { position: relative; height: 6px; border-radius: 3px; background: var(--bar-off); opacity: 0.55; margin: 22px 4px 8px; }
.strip .mark { position: absolute; top: -4px; width: 4px; height: 14px; border-radius: 2px; background: var(--dst); opacity: 1; margin-left: -2px; }
.strip-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--secondary); margin: 0 4px 12px; }
.periods { list-style: none; margin: 0; padding: 0; }
.periods li { padding: 10px 0; border-bottom: 1px solid var(--separator); }
.periods li:last-child { border-bottom: 0; }
.periods .detail { display: block; font-size: 13px; color: var(--secondary); }
.periods .range { font-weight: 600; }

table.gaps { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--group); border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--separator); }
table.gaps th, table.gaps td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--separator); }
table.gaps th { font-size: 12px; color: var(--secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
table.gaps tr:last-child td { border-bottom: 0; }
table.gaps .shift { color: var(--dst-text); font-weight: 600; white-space: nowrap; }

.faq details { background: var(--group); border-radius: 12px; padding: 14px 16px; margin-bottom: 8px; box-shadow: inset 0 0 0 1px var(--separator); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--secondary); }
.link-list { columns: 2; column-gap: 24px; padding-left: 18px; }
.link-list li { margin-bottom: 4px; break-inside: avoid; }
.app-cta { background: var(--group); border-radius: 14px; padding: 24px; box-shadow: inset 0 0 0 1px var(--separator); display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.app-cta p { margin: 0; font-size: 18px; font-weight: 600; }
.prose h2 { font-size: 20px; margin-top: 32px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }

footer.site { padding: 40px 0 56px; color: var(--secondary); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer.site a { color: var(--secondary); }
footer.site nav { display: flex; gap: 20px; }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .features, .shots { grid-template-columns: 1fr; }
  .link-list { columns: 1; }
  table.gaps th:nth-child(2), table.gaps td:nth-child(2) { display: none; }
  nav.site { gap: 14px; }
}

/* spacing refinements */
.sub { margin-top: 14px; }
.block h2 { margin-top: 36px; }
.block h2:first-child, .buy h2 { margin-top: 0; }
.block h3 { margin: 22px 0 8px; }
.city-result h3 { margin: 0; }
.cta-row { margin: 20px 0 8px; }
table.gaps { table-layout: fixed; }
.shots img.crop { aspect-ratio: 720 / 300; object-fit: cover; object-position: top; }
.hero picture img { border-radius: 16px; }
table.gaps th:nth-child(1), table.gaps td:nth-child(1) { width: 28%; }
table.gaps th:nth-child(2), table.gaps td:nth-child(2) { width: 28%; }
table.gaps .shift { white-space: normal; }
.app-cta { margin-bottom: 8px; }
.prose > h2:first-child { margin-top: 40px; }
