:root {
  --bg: #f5f7f6;
  --panel: #ffffff;
  --text: #17211d;
  --muted: #68746f;
  --line: #dce5e0;
  --brand: #0f6b4f;
  --brand-2: #16a36f;
  --brand-strong: #0b5d44;
  --green: #16a34a;
  --yellow: #eab308;
  --red: #dc2626;
  --gray: #9ca3af;
  --shadow: 0 16px 40px rgba(18, 42, 31, .14);
  --soft-shadow: 0 8px 24px rgba(18, 42, 31, .10);
  --shadow-soft: var(--soft-shadow);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --ad-rail-width: 360px;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

body { overflow: hidden; }

body.modal-open {
  touch-action: none;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

button, input, select, textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: .72;
}

.ui-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.ui-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: calc(72px + var(--safe-top));
  padding: calc(12px + var(--safe-top)) 18px 12px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 8px;
}

.brand__logo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 12px;
}

.top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 620px;
  width: 100%;
  justify-self: center;
}

.search input,
.report-form input,
.report-form select,
.report-form textarea,
.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--text);
  background: #fff;
}

.search button,
.primary {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  background: var(--brand);
  box-shadow: 0 10px 22px rgba(15, 107, 79, .18);
}

.ghost {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--brand);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  background: #fff;
}

.primary:hover,
.map-action:hover {
  background: #0b5d44;
}

.ghost:hover,
.filters label:hover,
.city-links a:hover {
  border-color: rgba(15, 107, 79, .36);
  background: #f1faf6;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  height: 100vh;
  padding-top: calc(72px + var(--safe-top));
}

.ad-rail {
  display: none;
}

.ad-slot {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 14px;
  border: 1px dashed #c9d8d1;
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, .78);
}

.ad-slot.is-empty {
  display: none !important;
}

.ad-slot.is-pending .ad-slot__frame {
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(238, 246, 242, .45), rgba(255, 255, 255, .92), rgba(238, 246, 242, .45));
  background-size: 240% 100%;
  animation: ad-pulse 1.6s ease-in-out infinite;
}

.ad-slot__frame {
  min-height: 280px;
}

.ad-slot--mobile {
  display: none;
}

.ad-slot--mobile-native,
.ad-slot--mobile-feed,
.ad-slot--mobile-floor {
  display: none;
}

.mobile-floor-ad {
  display: none;
}

.ad-slot--side-top {
  margin-top: 14px;
}

.ad-slot--side-mid {
  margin: 16px 0;
}

.ad-slot--dialog {
  margin: 0;
  padding: 10px;
  border-radius: 12px;
}

.ad-slot--dialog .ad-slot__frame {
  min-height: 220px;
}

.ad-slot--inline-list {
  grid-column: 1 / -1;
}

.ad-slot--content {
  margin: 22px 0;
}

.ad-slot--feed,
.ad-slot--footer {
  margin: 18px 0;
}

.ad-slot--feed .ad-slot__frame,
.ad-slot--footer .ad-slot__frame,
.ad-slot--content .ad-slot__frame {
  min-height: 280px;
}

@media (max-width: 1279px) {
  .app-page {
    padding-right: 0;
  }

  .ad-rail {
    display: none !important;
  }

  .ad-slot--mobile {
    display: grid;
  }
}

@media (min-width: 901px) {
  .ad-slot--mobile,
  .ad-slot--mobile-native,
  .ad-slot--mobile-feed,
  .ad-slot--mobile-floor,
  .mobile-floor-ad {
    display: none !important;
  }
}

@media (min-width: 1280px) {
  .app-page {
    padding-right: var(--ad-rail-width);
  }

  .app-page.ad-rail-empty {
    padding-right: 0;
  }

  .app-page .topbar {
    right: var(--ad-rail-width);
  }

  .app-page.ad-rail-empty .topbar {
    right: 0;
  }

  .ad-rail {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 1;
    display: block;
    width: var(--ad-rail-width);
    padding: calc(86px + var(--safe-top)) 14px 16px;
    overflow: auto;
    background: #f4f6f5;
    border-left: 1px solid var(--line);
  }

  .ad-rail.is-empty {
    display: none;
  }

  .ad-slot--rail {
    position: sticky;
    top: calc(90px + var(--safe-top));
    margin: 0;
    min-height: 360px;
  }

  .ad-slot--rail .ad-slot__frame {
    min-height: min(600px, calc(100vh - 150px));
  }

  .ad-rail__inner {
    min-height: 280px;
    padding: 16px;
    border: 1px dashed #c9d8d1;
    border-radius: 18px;
    color: var(--muted);
    background: rgba(255, 255, 255, .72);
  }

  .ad-rail__inner span {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
  }

  .ad-rail__inner p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
  }
}

@keyframes ad-pulse {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (max-width: 1180px) and (min-width: 901px) {
  .topbar {
    grid-template-columns: auto minmax(260px, 1fr) auto;
    gap: 10px;
    padding-inline: 14px;
  }

  .brand small {
    display: none;
  }

  .search {
    max-width: none;
  }

  .top-actions {
    gap: 6px;
  }

  .top-actions .ghost,
  .top-actions .primary {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .side {
    padding: 18px;
  }
}

.map-panel {
  position: relative;
  min-width: 0;
  height: calc(100vh - 72px - var(--safe-top));
}

.map {
  width: 100%;
  height: 100%;
}

.map-actions {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.map-action {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--brand);
  font-weight: 800;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 24px rgba(15, 32, 25, .12);
}

.filters {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: min(680px, calc(100% - 36px));
}

.filters label,
.status-legend span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 9px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 5px 22px rgba(15, 32, 25, .10);
}

.filters label:has(input:checked) {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.filters input,
.report-form fieldset input {
  accent-color: var(--brand);
}

.side {
  min-width: 0;
  height: calc(100vh - 72px - var(--safe-top));
  overflow: auto;
  padding: 22px;
  background: var(--panel);
  border-left: 1px solid var(--line);
}

.mobile-nav {
  display: none;
}

.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
  font-size: 13px;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.green { background: var(--green); }
.yellow { background: var(--yellow); }
.red { background: var(--red); }
.gray { background: var(--gray); }

h1 {
  margin: 0 0 9px;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.05;
}

h2 {
  margin: 0;
  font-size: 20px;
}

.lead {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.45;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}

.summary-stats div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f6fbf8);
}

.summary-stats strong {
  color: var(--brand);
  font-size: 22px;
  line-height: 1;
}

.summary-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.fuel-infographic {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid rgba(15, 107, 79, .16);
  border-radius: 16px;
  background:
    radial-gradient(circle at 16% 18%, rgba(22, 163, 111, .16), transparent 28%),
    linear-gradient(180deg, #ffffff, #f1faf6);
  box-shadow: var(--soft-shadow);
}

.fuel-infographic__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.fuel-infographic h2 {
  font-size: 18px;
}

.fuel-infographic__head span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  background: rgba(15, 107, 79, .10);
}

.fuel-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.fuel-flow div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 11px 9px;
  border: 1px solid rgba(220, 229, 224, .9);
  border-radius: 14px;
  background: rgba(255, 255, 255, .86);
}

.fuel-flow__icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  background: var(--brand);
}

.fuel-flow__icon .ui-icon,
.fuel-flow__icon svg {
  width: 18px;
  height: 18px;
}

.fuel-flow strong {
  font-size: 13px;
  line-height: 1.15;
}

.fuel-flow small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.freshness-scale {
  display: grid;
  gap: 8px;
}

.freshness-scale span {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.freshness-scale span::before {
  content: "";
  grid-column: 1 / -1;
  height: 7px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--brand) var(--level), #dfe9e4 var(--level));
}

.freshness-scale b {
  color: var(--text);
}

.quick-help {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.quick-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid rgba(15, 107, 79, .16);
  border-radius: 999px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  background: #eef6f2;
}

.quick-links a:hover,
.quick-links a:focus-visible {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.quick-help span {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
  background: #eef6f2;
}

.retention-card {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f5fbf8);
  box-shadow: var(--soft-shadow);
}

.retention-card h2 {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
  color: var(--brand);
  font-size: 17px;
}

.retention-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.install-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.favorite-list {
  display: grid;
  gap: 8px;
}

.favorite-list button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  text-align: left;
  background: #fff;
}

.favorite-list button:hover {
  border-color: rgba(15, 107, 79, .35);
  background: #f1faf6;
}

.favorite-list span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 800;
}

.favorite-list small {
  color: var(--muted);
}

.seo-note {
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7fbf9;
}

.seo-note h2 {
  margin-bottom: 8px;
  font-size: 18px;
}

.seo-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.seo-faq {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.seo-faq h2 {
  font-size: 18px;
}

.seo-faq details {
  border: 1px solid #e3ece7;
  border-radius: 10px;
  background: #f7fbf9;
  overflow: hidden;
}

.seo-faq summary {
  min-height: 44px;
  padding: 11px 12px;
  color: var(--brand);
  font-weight: 800;
  cursor: pointer;
}

.seo-faq p {
  margin: 0;
  padding: 0 12px 12px;
  color: #385247;
  line-height: 1.45;
}

.station-links {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f5fbf8);
}

.station-links h2 {
  font-size: 18px;
}

.station-links div {
  display: grid;
  gap: 8px;
}

.station-links a {
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  border: 1px solid #e3ece7;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  background: #fff;
}

.station-links a:hover {
  border-color: rgba(15, 107, 79, .35);
  background: #f1faf6;
}

.station-links strong {
  color: var(--brand);
  font-size: 14px;
}

.station-links small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.feed-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.feed {
  display: grid;
  gap: 10px;
}

.city-links {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.city-links h2 {
  margin-bottom: 10px;
}

.city-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.city-links a {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  background: #fff;
}

.city-links a:hover {
  border-color: var(--brand);
}

.fuel-links {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.fuel-links h2 {
  margin-bottom: 12px;
}

.fuel-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fuel-links a {
  display: inline-flex;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
  background: #f7fbf9;
}

.fuel-links a.is-active,
.fuel-links a:hover {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.all-cities-link {
  margin-top: 10px;
  border-color: var(--brand) !important;
  color: #fff !important;
  background: var(--brand) !important;
}

.footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.legal-page {
  overflow: auto;
}

.legal-shell {
  width: min(900px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 54px;
}

.legal-card {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.legal-card section {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.55;
}

.legal-card ul {
  margin: 0;
  padding-left: 20px;
}

.site-map-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.site-map-list a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.offline {
  display: grid;
  place-items: start;
  gap: 14px;
  width: min(520px, calc(100% - 32px));
  margin: 16vh auto 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.feed-item {
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.cities-page {
  overflow: auto;
}

.station-page {
  overflow: auto;
}

.cities-shell,
.station-shell {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.station-seo-card {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.station-seo-card h1 {
  margin-bottom: 0;
}

.cities-hero {
  margin: 28px 0;
  padding: 24px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #0a4d3a);
}

.cities-hero .lead {
  max-width: 760px;
  color: rgba(255,255,255,.86);
}

.cities-hero .primary {
  display: inline-flex;
  text-decoration: none;
  background: #fff;
  color: var(--brand);
}

.cities-index {
  display: grid;
  gap: 18px;
}

.cities-index section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.cities-index h2 {
  margin-bottom: 12px;
  color: var(--brand);
}

.cities-index div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cities-index a {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
  background: #f7fbf9;
}

.cities-index small {
  color: var(--muted);
  font-size: 12px;
}

.brand-rating {
  display: grid;
  gap: 8px;
}

.brand-rating__head,
.brand-rating__row {
  display: grid;
  grid-template-columns: 52px minmax(160px, 1fr) 90px 90px 90px 110px;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.brand-rating__head {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  background: #eef6f2;
}

.brand-rating__row strong {
  color: var(--brand);
}

.brand-rating__row strong a {
  color: inherit;
  text-decoration: none;
}

.brand-rating__row strong a:hover {
  color: var(--brand-strong);
  text-decoration: underline;
}

.blog-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 22px;
}

.blog-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, border-color .18s ease;
}

.blog-card:hover {
  border-color: rgba(15, 107, 79, .35);
  transform: translateY(-1px);
}

.blog-card span,
.blog-card small {
  color: var(--muted);
}

.blog-card strong {
  font-size: 20px;
  line-height: 1.15;
}

.blog-article section + section {
  margin-top: 24px;
}

.price-stats {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.price-chart__bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 190px;
  margin-top: 18px;
}

.price-chart__bars span {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.price-chart__bars span::before {
  content: "";
  align-self: end;
  height: var(--bar);
  min-height: 28px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, var(--brand), var(--brand-strong));
  box-shadow: 0 10px 24px rgba(15, 107, 79, .16);
}

.price-chart__bars b {
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
}

.price-chart__bars small {
  color: var(--muted);
}

@media (max-width: 720px) {
  .brand-rating__head {
    display: none;
  }

  .brand-rating__row {
    grid-template-columns: 42px 1fr;
  }

  .brand-rating__row span:nth-child(n+3) {
    grid-column: 2;
    color: var(--muted);
  }
}

.feed-item button {
  padding: 0;
  color: var(--text);
  text-align: left;
  font-weight: 800;
  background: transparent;
}

.meta {
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: #f7fbf9;
}

.empty-state strong {
  color: var(--text);
}

dialog {
  width: min(780px, calc(100vw - 24px));
  max-height: min(760px, calc(100dvh - 24px));
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(8, 21, 16, .45);
}

.station-card,
.report-form {
  position: relative;
  display: grid;
  gap: 12px;
  max-height: min(760px, calc(100dvh - 24px));
  overflow: auto;
  padding: 24px;
  overscroll-behavior: contain;
}

.close {
  position: sticky;
  top: 10px;
  justify-self: end;
  right: 10px;
  z-index: 2;
  margin-bottom: -42px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 24px;
  background: #eef4f1;
}

.station-title {
  min-width: 0;
  padding-right: 48px;
}

.station-title h2 {
  margin-bottom: 5px;
}

.fuel-tags,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 7px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  background: var(--brand);
}

.station-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.station-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.station-grid--compact .stat--address {
  grid-column: 1 / -1;
}

.station-score {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.station-score > div {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #0b513d);
  box-shadow: 0 12px 24px rgba(15, 107, 79, .18);
}

.station-score small,
.station-score span {
  color: rgba(255, 255, 255, .82);
}

.station-score strong {
  font-size: 19px;
}

.stars {
  color: #facc15;
  letter-spacing: 1px;
  white-space: nowrap;
}

.stars.is-empty {
  color: rgba(255, 255, 255, .55);
}

.stat {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  background: #fff;
}

.stat strong {
  display: block;
  overflow-wrap: anywhere;
}

.stat small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
}

.comments {
  display: grid;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.comments h2 {
  font-size: 18px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-head span {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--brand);
  font-weight: 800;
  background: #eef6f2;
}

.comment {
  padding: 10px;
  border-radius: 8px;
  background: #f3f7f5;
}

.comment-rating {
  display: inline-flex;
  margin-left: 8px;
}

.comment-rating .stars {
  color: #d97706;
}

.comment-form {
  display: grid;
  gap: 8px;
}

.review-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.review-box summary {
  min-height: 46px;
  padding: 12px 14px;
  color: var(--brand);
  font-weight: 800;
  cursor: pointer;
  list-style-position: inside;
  background: #f7fbf9;
}

.review-box .comment-form {
  padding: 0 12px 12px;
}

.station-actions {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(112px, auto));
  align-items: stretch;
}

.station-actions .ghost,
.station-actions .primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 0;
  text-align: center;
  white-space: normal;
  line-height: 1.12;
}

.station-route {
  font-size: 17px;
}

.rating-field {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.report-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  min-width: 0;
}

.report-form > .primary[type="submit"] {
  min-height: 52px;
}

.station-select-field {
  display: none !important;
}

.report-form.can-select-station .station-select-field {
  display: grid !important;
}

.selected-station {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #eef6f2;
}

.selected-station small {
  color: var(--muted);
  font-weight: 700;
}

.selected-station strong {
  color: var(--brand);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + var(--safe-bottom));
  z-index: 20;
  width: min(420px, calc(100vw - 28px));
  padding: 13px 15px;
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
  text-align: center;
  background: rgba(15, 107, 79, .96);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .18s ease, transform .18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.report-form fieldset {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.report-form fieldset label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 700;
  background: #fff;
  line-height: 1.15;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.report-form fieldset label input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  padding: 0;
  flex: 0 0 auto;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.coords-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.fineprint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.ymap-marker {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
}

@media (max-width: 900px) {
  html {
    height: 100%;
    overscroll-behavior-y: none;
  }

  body {
    min-height: 100%;
    overflow: auto;
    -webkit-tap-highlight-color: transparent;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    min-height: auto;
    padding: calc(8px + var(--safe-top)) 10px 8px;
    border-bottom: 0;
    box-shadow: 0 8px 26px rgba(17, 34, 28, .08);
  }

  .brand small { display: none; }

  .brand__logo {
    width: 38px;
    height: 38px;
  }

  .top-actions {
    gap: 6px;
  }

  .top-actions .ghost {
    display: none;
  }

  .top-actions .primary {
    min-height: 40px;
    padding: 9px 11px;
    font-size: 13px;
    max-width: 164px;
  }

  .search {
    grid-column: 1 / -1;
    order: 3;
    max-width: none;
    padding: 2px;
    border-radius: 12px;
    background: #eef5f1;
  }

  .search input {
    min-height: 44px;
    border: 0;
    border-radius: 10px;
  }

  .search button,
  .topbar > .primary,
  .primary,
  .ghost {
    min-height: 44px;
    border-radius: 10px;
  }

  .topbar > .primary {
    padding: 10px 12px;
  }

  .layout {
    display: block;
    height: auto;
    padding-top: calc(108px + var(--safe-top));
    padding-bottom: calc(70px + var(--safe-bottom));
  }

  .app-page {
    padding-right: 0;
  }

  .map-panel {
    position: sticky;
    top: calc(108px + var(--safe-top));
    height: calc(100dvh - 108px - var(--safe-top) - 70px - var(--safe-bottom));
    min-height: 390px;
  }

  .filters {
    left: 10px;
    right: 10px;
    bottom: 12px;
    max-width: none;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .map-actions {
    top: 10px;
    left: 10px;
    right: 10px;
    justify-content: space-between;
  }

  .map-action {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 13px;
  }

  .filters label {
    flex: 0 0 auto;
    min-height: 40px;
    border: 1px solid rgba(220, 229, 224, .8);
  }

  .side {
    position: relative;
    z-index: 3;
    height: auto;
    max-height: none;
    border-left: 0;
    border-top: 0;
    border-radius: 18px 18px 0 0;
    margin-top: -18px;
    padding: 22px 14px 28px;
    box-shadow: 0 -14px 34px rgba(18, 42, 31, .13);
  }

  .install-card {
    grid-template-columns: 1fr;
  }

  .side::before {
    content: "";
    display: block;
    width: 44px;
    height: 5px;
    margin: -8px auto 14px;
    border-radius: 999px;
    background: #ccd8d2;
  }

  .status-legend {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 3px;
  }

  .status-legend span,
  .feed-item,
  .stat,
  .comment,
  .ad-slot {
    border-radius: 12px;
  }

  .ad-slot {
    margin: 14px 0;
    padding: 10px;
  }

  .ad-slot__frame,
  .ad-slot--feed .ad-slot__frame,
  .ad-slot--footer .ad-slot__frame,
  .ad-slot--content .ad-slot__frame,
  .ad-slot--dialog .ad-slot__frame {
    min-height: 220px;
  }

  .ad-slot--side-top {
    display: none;
  }

  .ad-slot--mobile,
  .ad-slot--mobile-native,
  .ad-slot--mobile-feed,
  .ad-slot--side-mid,
  .ad-slot--dialog {
    display: grid;
  }

  .ad-slot--mobile-native .ad-slot__frame,
  .ad-slot--mobile-feed .ad-slot__frame {
    min-height: 160px;
  }

  .ad-slot--mobile-feed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .mobile-floor-ad {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(78px + var(--safe-bottom));
    z-index: 5;
    display: none;
    max-width: 430px;
    margin: 0 auto;
    border-radius: 14px;
    filter: drop-shadow(0 14px 34px rgba(18, 42, 31, .22));
  }

  .mobile-floor-ad.is-filled {
    display: block;
  }

  .modal-open .mobile-floor-ad,
  .mobile-floor-ad.is-closed,
  .mobile-floor-ad.is-empty {
    display: none !important;
  }

  .mobile-floor-ad__close {
    position: absolute;
    top: -10px;
    right: -6px;
    z-index: 2;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    color: var(--brand);
    font-size: 22px;
    line-height: 1;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 20px rgba(18, 42, 31, .16);
  }

  .ad-slot--mobile-floor {
    display: grid;
    margin: 0;
    padding: 8px;
    border-style: solid;
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
  }

  .ad-slot--mobile-floor .ad-slot__frame {
    min-height: 84px;
    max-height: 128px;
    overflow: hidden;
  }

  .app-page.has-mobile-floor .filters {
    bottom: 118px;
  }

  .app-page.has-mobile-floor .toast {
    bottom: calc(168px + var(--safe-bottom));
  }

  .station-card .ad-slot--dialog {
    margin-top: 4px;
  }

  .feed-item {
    padding: 14px;
    box-shadow: 0 8px 24px rgba(18, 42, 31, .08);
  }

  dialog {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - var(--safe-top));
    margin: auto 0 0;
    border-radius: 16px 16px 0 0;
  }

  .station-card,
  .report-form {
    max-height: calc(100dvh - var(--safe-top));
    gap: 10px;
    width: 100%;
    overflow-x: hidden;
    padding: 14px 14px calc(88px + var(--safe-bottom));
  }

  .report-form input,
  .report-form select,
  .report-form textarea {
    min-width: 0;
    min-height: 48px;
    font-size: 16px;
  }

  .report-form textarea {
    min-height: 96px;
  }

  .report-form > .primary[type="submit"] {
    position: sticky;
    bottom: 0;
    z-index: 2;
    min-height: 54px;
    box-shadow: 0 -10px 26px rgba(255, 255, 255, .92), 0 12px 28px rgba(15, 107, 79, .22);
  }

  .report-form .actions {
    grid-template-columns: 1fr 1fr;
  }

  .report-form .actions .ghost {
    min-width: 0;
    white-space: normal;
  }

  .close {
    top: 8px;
    width: 42px;
    height: 42px;
    margin-bottom: -46px;
    font-size: 28px;
  }

  .station-title h2,
  .report-form h2 {
    padding-right: 48px;
    font-size: 22px;
    line-height: 1.1;
  }

  .lead {
    margin-bottom: 14px;
  }

  .summary-stats {
    margin-bottom: 14px;
  }

  .summary-stats div {
    padding: 11px 9px;
  }

  .summary-stats strong {
    font-size: 19px;
  }

  .station-card::before,
  .report-form::before {
    content: "";
    width: 44px;
    height: 5px;
    margin: 0 auto 4px;
    border-radius: 999px;
    background: #ccd8d2;
  }

  .mobile-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(8px + var(--safe-bottom));
    z-index: 6;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 6px;
    border: 1px solid rgba(220, 229, 224, .95);
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 14px 40px rgba(18, 42, 31, .22);
    backdrop-filter: blur(18px);
  }

.mobile-nav button {
    display: grid;
    place-items: center;
    gap: 3px;
    min-width: 0;
    min-height: 44px;
    padding: 4px 3px;
    border-radius: 12px;
    color: var(--brand);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.05;
    background: #eef6f2;
  }

  .mobile-nav .ui-icon {
    width: 19px;
    height: 19px;
  }

  .mobile-nav button:nth-child(3),
  .mobile-nav button:nth-child(4) {
    color: #fff;
    background: var(--brand);
  }

  .toast {
    bottom: calc(78px + var(--safe-bottom));
  }

  .station-grid,
  .station-score,
  .price-grid,
  .coords-grid {
    grid-template-columns: 1fr 1fr;
  }

  .station-grid--compact,
  .station-actions {
    grid-template-columns: 1fr 1fr;
  }

  .station-actions .station-route {
    grid-column: 1 / -1;
  }

  .report-form fieldset {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 8px;
    padding: 10px;
  }

  .report-form fieldset label {
    min-height: 46px;
    font-size: 14px;
    overflow-wrap: normal;
    word-break: keep-all;
  }
}

@media (max-width: 700px) {
  .price-grid,
  .coords-grid,
  .report-form .actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .brand__mark {
    width: 38px;
    height: 38px;
  }

  .brand strong { font-size: 16px; }
  .search button { padding-inline: 10px; }
  .topbar > .primary { font-size: 13px; }
  .top-actions .primary {
    max-width: 136px;
    padding-inline: 10px;
    font-size: 12px;
  }
  .top-actions .primary .ui-icon { display: none; }
  h1 { font-size: 25px; }
  .fuel-infographic { padding: 12px; }
  .fuel-infographic__head {
    display: grid;
    gap: 6px;
  }
  .fuel-infographic__head span {
    width: fit-content;
  }
  .fuel-flow {
    grid-template-columns: 1fr;
  }
  .fuel-flow div {
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
  }
  .fuel-flow small {
    grid-column: 2;
  }
  .freshness-scale span {
    grid-template-columns: 86px minmax(0, 1fr);
  }
  .ad-slot__frame,
  .ad-slot--feed .ad-slot__frame,
  .ad-slot--footer .ad-slot__frame,
  .ad-slot--content .ad-slot__frame,
  .ad-slot--mobile-native .ad-slot__frame,
  .ad-slot--mobile-feed .ad-slot__frame,
  .ad-slot--dialog .ad-slot__frame { min-height: 180px; }
  .station-card, .report-form { padding: 14px 12px calc(88px + var(--safe-bottom)); }
  .station-grid, .station-score, .price-grid, .coords-grid, .station-actions { grid-template-columns: 1fr; }
  .station-actions .ghost,
  .station-actions .primary { width: 100%; }
  .report-form fieldset { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
  .report-form fieldset label { min-height: 48px; }
  .quick-help { display: none; }
}

@media (max-width: 360px) {
  .report-form fieldset {
    grid-template-columns: 1fr;
  }
}
