:root {
  --ink: #102c28;
  --muted: #526760;
  --bg: #f1f5ef;
  --line: #d9e4d9;
  --lime: #d8ff82;
  --green: #15644f;
  --red: #15644f;
  --red-deep: #104c3d;
  --night: #102c28;
  --paper: #fff;
}

body { background: var(--bg); color: var(--ink); font-family: "DM Sans", system-ui, sans-serif; }
h1, h2, h3, .brand { font-family: Manrope, system-ui, sans-serif; }
h1, h2 { letter-spacing: -.045em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #478453;
  outline-offset: 3px;
}

.header {
  height: 74px;
  background: var(--night);
  padding-inline: clamp(16px, 4vw, 64px);
  border-bottom: 1px solid #31534a;
}
.header .brand { color: white; white-space: nowrap; }
.header .brand-light { color: var(--lime); font-weight: 800; }
.header nav a { color: #d5e6dc; height: auto; padding: 10px 9px; border-radius: 10px; }
.header nav a.active, .header nav a:hover {
  color: var(--lime);
  background: #23443a;
}
.header nav a.active::after { display: none; }
.header .km-mobile-menu summary { color: var(--night); background: var(--lime); }
.driver-strip {
  gap: 4px;
  background: #e8efe5;
  border-color: var(--line);
  padding-block: 5px;
}
.driver-strip a {
  color: #234c3e;
  border: 0;
  border-radius: 8px;
  background: transparent;
}
.driver-strip a:first-child { color: var(--night); background: #d8e6d5; }
.site-install, .site-install:hover { background: var(--lime); color: var(--night); }
.primary, .market-map, .fuel-tabs .selected, .mobile-nav button:first-child {
  background: var(--green);
  color: white;
}
.primary:hover, .market-map:hover { background: var(--red-deep); }
.secondary, .fuel-tabs button, .route-toggle { background: #e6f0e6; color: #234d40; }

.dk-masthead {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  max-width: 1380px;
  min-height: 385px;
  margin: 24px auto 18px;
  padding: clamp(28px, 5vw, 74px);
  color: #fff;
  background: linear-gradient(90deg, #0c241fee 0%, #102b23aa 48%, #0b1f1b30 100%),
    #102c28 url("degalukaina-hero.webp") center 60% / cover no-repeat;
  border-radius: 28px;
  box-shadow: 0 18px 45px #16392b1a;
}
.dk-masthead h1 {
  margin: 0;
  font-size: clamp(40px, 6.15vw, 88px);
  line-height: .98;
  letter-spacing: -.065em;
}
.dk-masthead p {
  color: #e2eee5;
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.55;
  max-width: 48ch;
  margin: 18px 0 24px;
}
.dk-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dk-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 15px;
  background: var(--lime);
  color: #122e28;
  font-weight: 800;
}
.dk-action-alt { background: #142f28dc; color: white; border-color: #adc2b696; }
.dk-action:hover { filter: brightness(1.12); }
.dk-source {
  flex-shrink: 0;
  display: grid;
  gap: 3px;
  padding: 14px 18px;
  background: #102c28e8;
  border: 1px solid #6c8e7f;
  border-radius: 14px;
}
.dk-source strong { color: var(--lime); font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.dk-source span { color: #dce9df; font-size: 13px; }

.map-embedded {
  max-width: 1380px;
  margin: 0 auto;
  border: 1px solid #cfded1;
  border-radius: 23px;
  box-shadow: 0 12px 34px #16392b13;
}
.map-embedded .workspace { overflow: hidden; border-radius: 22px; }
.map-home .workspace { height: clamp(520px, 68vh, 740px); }
.sidebar .intro h2 { font-size: clamp(24px, 2.3vw, 33px); }
.app.dark .sidebar .intro h2 { color: #fff; }
.app.dark .sidebar .intro h2 span { color: var(--lime); }
.map-summary { background: #133c31; }
.price-pin, .cluster-pin { background: #163b31; border-color: #679884; }
.price-pin.best, .price-pin.chosen { background: #17664f; border-color: #b7e866; }

.content { max-width: 1260px; }
.content .lead { color: var(--muted); }
.portal-hero, .news-hero {
  background: radial-gradient(ellipse at 92% 6%, #31694d, transparent 65%), var(--night);
  color: white;
  border-radius: 24px;
}
.portal-hero p, .news-hero p { color: #dbece0; }
.portal-hero h1 .bi { color: var(--lime); }
.market { background: linear-gradient(145deg, #f7faf5, #e3efe1); border-radius: 24px; }
.station-board, .market-chart, .calculator, .portal-copy, .tool-card, .page-card,
.offer-card, .home-faq details, .home-station-row {
  border-color: var(--line);
  box-shadow: 0 4px 12px #193a2910;
}
.market-card, .page-card, .tool-card, .news-card, .offer-card {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.footer.km-footer { background: #102c28; }
.km-footer a:hover { color: var(--lime); }

.dk-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-block: 18px 26px;
}
.dk-photo-link {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 180px;
  overflow: hidden;
  border-radius: 17px;
  isolation: isolate;
  background: #173c31;
  color: white;
}
.dk-photo-link img, .dk-photo-link::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .35s ease;
}
.dk-photo-link::before { content: ""; background: linear-gradient(transparent 20%, #0c251ff5); z-index: -1; }
.dk-photo-link span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  font-weight: 800;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .dk-photo-link:hover img { transform: scale(1.06); }
  .tool-card:hover, .page-card:hover, .market-card:hover, .offer-card:hover, .news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 18px #193a2920;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .dk-masthead-copy { animation: dk-appear .55s ease-out both; }
  @keyframes dk-appear { from { opacity: 0; transform: translateY(12px); } }
}
@media (max-width: 1420px) {
  .dk-masthead, .map-embedded { margin-inline: clamp(12px, 2.5vw, 32px); }
}
@media (max-width: 900px) {
  .header { height: 62px; }
  .header nav { display: none; }
  .header .km-mobile-menu { display: block; margin-left: auto; }
  .header .km-mobile-menu summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    min-height: 44px;
    border-radius: 10px;
    list-style: none;
  }
  .header .km-mobile-links {
    position: absolute;
    top: 100%;
    inset-inline: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 70dvh;
    overflow: auto;
    padding: 10px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 25px #15382d33;
  }
  .header .km-mobile-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px;
  }
  .header .km-mobile-links a[aria-current="page"] { color: var(--red-deep); background: #e9f3e7; }
}
@media (max-width: 740px) {
  .dk-masthead { min-height: 0; display: grid; padding: 29px 20px 20px; border-radius: 19px; }
  .dk-masthead h1 { font-size: clamp(37px, 9.7vw, 59px); }
  .dk-masthead p { margin: 14px 0 18px; }
  .dk-source { justify-self: start; display: flex; align-items: baseline; gap: 8px; padding: 8px 10px; }
  .dk-source strong { font-size: 20px; }
  .map-embedded .workspace { min-height: 440px; border-radius: 18px; }
  .map-home .workspace { height: min(67dvh, 620px); }
  .map-embedded { border-radius: 19px; }
  .dk-photo-grid { grid-template-columns: 1fr; gap: 10px; }
  .dk-photo-link { min-height: 132px; }
}
@media (prefers-reduced-motion: reduce) {
  .dk-photo-link img, .market-card, .page-card, .tool-card, .news-card, .offer-card { transition: none; }
}
@media (max-width: 900px) {
  .header .site-install { display: none; }
}
