:root {
  color-scheme: light;
  --background: #f3f6f8;
  --foreground: #10202c;
  --primary: #087e8b;
  --dark: #123d4d;
  --border: #d8e1e6;
  font-family: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--foreground); }
button, a { font: inherit; }
main { width: min(1180px, 100%); margin: 0 auto; padding: 14px 20px 24px; }
.controls { min-height: 64px; padding: 8px 10px; border: 1px solid #dce4e8; border-radius: 15px; background: #fff; box-shadow: 0 8px 24px #102c3c14; display: flex; align-items: center; gap: 16px; }
.fuel-tabs { width: 260px; height: 48px; padding: 4px; border-radius: 12px; background: #e7eef2; display: grid; grid-template-columns: 1fr 1fr; }
.fuel-tab { border: 0; border-radius: 9px; color: #526873; background: transparent; cursor: pointer; }
.fuel-tab.is-active { color: #fff; background: var(--dark); box-shadow: 0 4px 12px #102c3c30; }
.refresh-button { margin-left: auto; height: 44px; padding: 0 15px; border: 0; border-radius: 11px; display: flex; align-items: center; gap: 7px; color: #fff; background: var(--primary); cursor: pointer; }
.refresh-button:disabled { opacity: .65; cursor: wait; }.refresh-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.refresh-button.is-loading svg { animation: spin .75s linear infinite; }
.comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-top: 14px; }
.region { min-width: 0; border: 1px solid #dce4e8; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 8px 28px #1638490d; }
.region::before { content: ""; display: block; height: 5px; background: linear-gradient(90deg, #151515 0 33%, #d9272e 33% 66%, #f6c83e 66%); }
.region-at::before { background: linear-gradient(90deg, #d9252a 0 33%, #fff 33% 66%, #d9252a 66%); }
.region-header { padding: 18px 20px 15px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid #e3e9ec; }
.flag { font-size: 1.65rem; line-height: 1; }.region-title { min-width: 0; }.region-title > span { color: #71818c; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }.region-title h2 { margin: 3px 0 0; font-size: 1.12rem; line-height: 1.2; }
.status { margin-left: auto; padding: 6px 9px; border-radius: 999px; color: #18744e; background: #e9f7f1; font-size: .72rem; font-weight: 700; }.status-error { color: #a92e2e; background: #fdecec; }
.station-list { padding: 0 18px; }.station-card { padding: 16px 2px; border-bottom: 1px solid #e4eaed; display: flex; gap: 12px; }.station-card:last-child { border-bottom: 0; }
.rank { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--primary); background: #e7f3f4; font-size: .78rem; font-weight: 800; }
.station-main { min-width: 0; flex: 1; }.station-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }.station-heading h3 { margin: 0; font-size: 1rem; line-height: 1.3; }.address { margin: 5px 0 0; color: #657681; font-size: .78rem; line-height: 1.35; }
.price { color: #0a6470; text-align: right; }.price strong { display: block; font-size: 1.7rem; line-height: .95; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }.price > span { display: block; margin-top: 4px; color: #788891; font-size: .66rem; font-weight: 700; }.price small { display: block; margin-top: 4px; color: #6f7f88; font-size: .62rem; line-height: 1.2; white-space: nowrap; }.price strong sup { font-size: .5em; line-height: 0; vertical-align: super; letter-spacing: 0; }
.price-multi { display: grid; gap: 9px; }
.price-row { display: flex; align-items: baseline; justify-content: flex-end; gap: 11px; }
.price-row .fuel { color: #788891; font-size: .68rem; font-weight: 700; text-align: right; white-space: nowrap; }
.price-row .fuel small { margin-top: 2px; color: #8b989f; font-weight: 400; }
.price-row strong { font-size: 1.32rem; }
.station-meta { min-height: 28px; margin-top: 10px; display: flex; align-items: center; gap: 12px; color: #667781; font-size: .72rem; }.open { color: #18744e; }.closed { color: #a92e2e; }.route { margin-left: auto; padding: 6px 8px; border-radius: 7px; color: var(--primary); text-decoration: none; }.route:hover { background: #e7f3f4; }
.source { margin: 0; padding: 11px 20px; border-top: 1px solid #e4eaed; color: #84929a; background: #f9fbfc; font-size: .7rem; }
.empty { min-height: 165px; padding: 35px 25px; display: grid; place-content: center; text-align: center; color: #6c7d87; }.empty h3 { margin: 0 0 7px; color: #344c59; font-size: 1rem; }.empty p { margin: 0; font-size: .85rem; line-height: 1.45; }
.message { margin-top: 10px; padding: 12px 15px; border: 1px solid #f0caca; border-radius: 11px; color: #982828; background: #fff; }
footer { padding: 17px 4px 0; color: #74838c; text-align: center; font-size: .72rem; }
footer p { margin: 0; }
.private { margin-top: 7px; font-weight: 700; color: #5d6e78; }
.legal { margin-top: 9px; display: flex; justify-content: center; gap: 16px; }
.legal a { color: #5d6e78; text-decoration: none; border-bottom: 1px solid #c6d2d8; }
.legal a:hover { color: var(--primary); border-bottom-color: var(--primary); }
.loading { min-height: 300px; padding: 22px; }.loading-line, .loading-card { border-radius: 8px; background: linear-gradient(90deg, #edf1f3, #f8fafb, #edf1f3); background-size: 220% 100%; animation: shimmer 1.2s infinite linear; }.loading-line { width: 40%; height: 17px; margin-bottom: 9px; }.loading-line.wide { width: 62%; height: 25px; }.loading-card { height: 90px; margin-top: 20px; }
@keyframes spin { to { transform: rotate(360deg); } } @keyframes shimmer { to { background-position: -220% 0; } }
@media (max-width: 820px) {
  main { padding: 8px 8px 16px; }.controls { min-height: 56px; padding: 6px; gap: 8px; border-radius: 12px; }.fuel-tabs { min-width: 0; width: auto; height: 44px; flex: 1; }.fuel-tab { font-size: .88rem; }.refresh-button { flex: 0 0 auto; height: 42px; margin-left: 0; padding: 0 11px; font-size: .76rem; }
  .comparison { grid-template-columns: 1fr; gap: 8px; padding-top: 8px; }.region { border-radius: 14px; }.region-header { padding: 9px 11px 8px; gap: 8px; }.flag { font-size: 1.3rem; }.region-title > span { font-size: .62rem; }.region-title h2 { margin-top: 1px; font-size: .96rem; }.status { padding: 4px 7px; font-size: .64rem; }
  .station-list { padding: 0 9px; }.station-card { padding: 9px 1px; gap: 8px; }.rank { width: 24px; height: 24px; font-size: .68rem; }.station-heading { gap: 7px; }.station-heading h3 { font-size: .9rem; }.address { margin-top: 2px; font-size: .68rem; }.price strong { font-size: 1.3rem; }.price > span, .price small { margin-top: 2px; }.price small { font-size: .6rem; }.price-multi { gap: 6px; }.price-row { gap: 8px; }.price-row .fuel { font-size: .62rem; }.price-row strong { font-size: 1.08rem; }.station-meta { min-height: 23px; margin-top: 5px; gap: 8px; font-size: .65rem; }.route { padding: 5px 7px; }.source { padding: 6px 11px; font-size: .62rem; } footer { padding-top: 9px; font-size: .64rem; }.legal { margin-top: 6px; gap: 12px; }
}
@media (max-width: 390px) { .refresh-button { width: 42px; padding: 0; justify-content: center; }.refresh-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }.station-meta { flex-wrap: wrap; }.route { margin-left: 0; } }
