/* Diesel Express — landing. Desktop values by default, phone values under 768px. */
:root {
  --ink: #151515;
  --muted: #5c5c58;
  --muted-2: #6b6b66;
  --line: #dcdcd7;
  --field-line: #c9c9c4;
  --bg: #f5f5f3;
  --white: #fff;
  --accent: #f26b1d;
  --accent-soft: #fde4d3;
  --hover: #b8500f;
  --hatch: repeating-linear-gradient(135deg, #ecebe7 0 6px, #f5f5f3 6px 12px);
  --hatch-light: repeating-linear-gradient(135deg, #ecebe7 0 6px, #f7f7f5 6px 12px);
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  --padX: 48px;
  --heroTop: 96px;
  --secPad: 112px;
  --h1: 68px;
  --lead: 20px;
  --h2: 36px;
  --factsTop: 72px;
  --factSz: 28px;
  --gap: 16px;
  --cardH: 88px;
  --cardPad: 20px;
  --cardGap: 20px;
  --logo: 56px;
  --lineM: 18px;
  --price: 36px;
  --optLabel: 22px;
  --condPad: 28px;
  --condRange: 34px;
  --calcPad: 36px;
  --volH: 68px;
  --volSz: 16px;
  --totalSz: 52px;
  --shopPad: 20px;
  --shopName: 17px;
  --shopPrice: 22px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.45;
}
a { color: var(--ink); }
a:hover { color: var(--hover); }
input::placeholder { color: #8a8a85; }
.mono { font-family: var(--mono); }
.only-mobile { display: none !important; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--padX); padding-right: var(--padX); }
.section { padding-top: var(--secPad); }
.h2 { margin: 0 0 24px; font-size: var(--h2); font-weight: 600; letter-spacing: -0.02em; }

/* Buttons */
.btn {
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; text-decoration: none; color: var(--ink);
  font-family: var(--sans);
}
.btn-accent { background: var(--accent); }
.btn-outline { background: transparent; border: 1.5px solid var(--ink); cursor: pointer; }

/* Header */
.header { border-bottom: 1px solid var(--line); }
.header-in { max-width: 1296px; margin: 0 auto; padding: 14px var(--padX); display: flex; align-items: center; gap: 24px; }
.brand-col { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand-mark { width: 14px; height: 14px; background: var(--accent); flex: none; }
.header-phone { font-family: var(--mono); font-size: 16px; font-weight: 500; text-decoration: none; }
.header-phone-m { font-family: var(--mono); font-size: 13px; text-decoration: none; padding-left: 24px; }
.header-tg { height: 44px; padding: 0 20px; font-size: 15px; justify-content: flex-start; }

/* Hero */
.hero { padding-top: var(--heroTop); }
.hero h1 { margin: 0; font-size: var(--h1); line-height: 1.04; font-weight: 600; letter-spacing: -0.03em; max-width: 920px; text-wrap: balance; }
.hero-lead { margin: 20px 0 0; font-size: var(--lead); color: var(--muted); max-width: 640px; text-wrap: pretty; }
.hero-btns { display: flex; flex-direction: row; gap: 12px; margin-top: 32px; }
.hero-btns .btn { height: 56px; padding: 0 28px; font-size: 17px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--factsTop); border-top: 1px solid var(--ink); }
.fact { padding: 16px 16px 0 0; display: flex; flex-direction: column; gap: 2px; border-bottom: 0; }
.fact-label { font-size: 13px; color: var(--muted-2); }
.fact-value { font-family: var(--mono); font-size: var(--factSz); font-weight: 500; letter-spacing: -0.02em; padding-bottom: 12px; }

/* Prices */
.prices-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 24px; }
.prices-head .h2 { margin: 0; }
.prices-unit { font-family: var(--mono); font-size: 13px; color: var(--muted-2); }
.stations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); grid-auto-flow: column; gap: var(--gap); }
.pcard { display: flex; align-items: center; gap: var(--cardGap); height: var(--cardH); padding: 0 var(--cardPad); background: var(--white); border: 1px solid var(--line); }
.pcard-opt { border: 1.5px solid var(--ink); grid-column: span 2; }
.pcard-logo { width: var(--logo); height: var(--logo); flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pcard-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pcard-opt .pcard-logo img { width: 130%; height: 130%; }
.pcard-sep { width: 1px; align-self: stretch; margin: var(--lineM) 0; background: var(--line); flex: none; }
.pcard-price { flex: 1; text-align: right; font-family: var(--mono); font-weight: 500; font-size: var(--price); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.opt-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); align-items: center; margin-top: var(--gap); padding-top: var(--gap); border-top: 1px solid var(--line); }
.opt-label { font-family: var(--mono); font-weight: 600; font-size: var(--optLabel); }
.opt-label-r { text-align: right; }
.prices-updated { margin-top: 16px; font-size: 13px; color: var(--muted-2); font-family: var(--mono); }

/* Delivery terms */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.tier { background: var(--white); border: 1px solid var(--line); padding: var(--condPad); display: flex; flex-direction: column; gap: 12px; }
.tier-range { font-family: var(--mono); font-size: var(--condRange); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.tier-sub { font-size: 15px; font-weight: 500; }
.tier-text { margin: 0; font-size: 15px; color: var(--muted); flex: 1; text-wrap: pretty; }
.tier-foot { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tier-tariff { font-family: var(--mono); font-size: 16px; }
.link-btn { background: none; border: 0; padding: 8px 0; font: 600 15px var(--sans); color: var(--ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* Calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--white); border: 1px solid var(--ink); }
.calc-main { padding: var(--calcPad); display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.step-label { font-family: var(--mono); font-size: 12px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.vols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vol { min-height: var(--volH); padding: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; background: var(--white); border: 1px solid var(--field-line); color: var(--ink); font-family: var(--sans); }
.vol.is-active { background: var(--accent-soft); border: 2px solid var(--accent); }
.vol-range { font-family: var(--mono); font-weight: 600; font-size: var(--volSz); }
.vol-vehicle { font-size: 13px; color: var(--muted); }
.vol-note { margin-top: 10px; font-family: var(--mono); font-size: 14px; }
.addrs { display: flex; flex-direction: column; gap: 8px; }
.addr { display: flex; gap: 8px; align-items: stretch; }
.addr-n { width: 32px; flex: none; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; font-weight: 600; background: var(--ink); color: var(--white); }
.field { height: 52px; padding: 0 14px; border: 1px solid var(--field-line); background: var(--bg); font: 400 16px var(--sans); color: var(--ink); outline: none; min-width: 0; border-radius: 0; }
.addr .field { flex: 1; }
.addr-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.addr-add { height: 44px; padding: 0 16px; border: 1px dashed var(--ink); background: transparent; font: 600 15px var(--sans); color: var(--ink); cursor: pointer; }
.hint { font-size: 13px; color: var(--muted-2); }
.total { display: flex; flex-direction: column; gap: 6px; }
.total-sum { font-family: var(--mono); font-size: var(--totalSz); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.total-formula { font-family: var(--mono); font-size: 15px; color: var(--ink); padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 10px; }
.total-note { font-size: 14px; color: var(--muted); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.form-send { width: 100%; height: 56px; margin-top: 8px; border: 0; background: var(--accent); color: var(--ink); font: 600 17px var(--sans); cursor: pointer; }

/* Map placeholder */
.map { position: relative; min-height: 560px; border-left: 1px solid var(--ink); background: var(--hatch); }
.map-tag { position: absolute; right: 16px; top: 16px; font-family: var(--mono); font-size: 12px; color: var(--muted-2); background: var(--white); padding: 4px 8px; }
.route { position: absolute; left: 16px; top: 16px; width: 300px; background: var(--white); border: 1px solid var(--line); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.route-title { font-family: var(--mono); font-size: 11px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.06em; }
.route-pt { display: flex; gap: 10px; font-size: 14px; align-items: baseline; }
.route-pt-l { font-family: var(--mono); font-weight: 600; width: 14px; flex: none; }
.route-pt-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.route-pt-k { font-family: var(--mono); color: var(--muted); }
.route-sum { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 8px; font-family: var(--mono); font-size: 14px; font-weight: 600; }
.map-m { position: relative; height: 240px; margin: 0 -1px; background: var(--hatch); border: 1px solid var(--line); }
.map-m .map-tag { right: 10px; top: 10px; font-size: 11px; padding: 3px 6px; }
.map-m .route { left: 10px; right: 10px; top: auto; bottom: 10px; width: auto; padding: 10px 12px; gap: 4px; }
.map-m .route-pt { gap: 8px; font-size: 13px; }

/* Shop */
.shop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.product { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.product-photo { aspect-ratio: 4 / 3; background: var(--hatch-light); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.product-body { padding: var(--shopPad); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-name { font-size: var(--shopName); font-weight: 500; flex: 1; text-wrap: pretty; }
.product-price { font-family: var(--mono); font-size: var(--shopPrice); font-weight: 600; letter-spacing: -0.02em; }
.product .btn { height: 44px; border: 1.5px solid var(--ink); font-size: 15px; }

/* Footer */
.footer { margin-top: var(--secPad); border-top: 1px solid var(--ink); }
.footer-in { padding-top: 40px; padding-bottom: 32px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 28px 24px; font-size: 15px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.footer-brand .brand-mark { width: 12px; height: 12px; }
.footer-small { color: var(--muted); font-size: 14px; }
.footer-copy { padding-bottom: 28px; font-family: var(--mono); font-size: 12px; color: var(--muted-2); }

/* Phone */
@media (max-width: 767px) {
  :root {
    --padX: 16px;
    --heroTop: 40px;
    --secPad: 56px;
    --h1: 36px;
    --lead: 17px;
    --h2: 26px;
    --factsTop: 40px;
    --factSz: 22px;
    --gap: 8px;
    --cardH: 64px;
    --cardPad: 10px;
    --cardGap: 10px;
    --logo: 40px;
    --lineM: 12px;
    --price: 22px;
    --optLabel: 16px;
    --condPad: 20px;
    --condRange: 28px;
    --calcPad: 20px 16px;
    --volH: 64px;
    --volSz: 14px;
    --totalSz: 40px;
    --shopPad: 12px;
    --shopName: 15px;
    --shopPrice: 18px;
  }
  .only-desktop { display: none !important; }
  .only-mobile { display: flex !important; }
  .header-tg { padding: 0 16px; }
  .hero-btns { flex-direction: column; }
  .facts { grid-template-columns: 1fr; }
  .fact { border-bottom: 1px solid var(--line); }
  .tiers { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .shop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-in { grid-template-columns: 1fr 1fr; }
}

/* These were <button>s in the mockup, so they keep their colour on hover */
.btn-outline:hover, .link-btn:hover { color: var(--ink); }

/* Calculator: live state */
.addr { position: relative; }
.addr-remove { width: 52px; flex: none; border: 1px solid var(--field-line); background: var(--white); font-size: 20px; cursor: pointer; color: var(--ink); }
.total-empty { font-size: 15px; color: var(--muted); padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.total-empty.is-error { color: #c0392b; }
.suggest { position: absolute; left: 40px; right: 0; top: 100%; z-index: 20; margin: 4px 0 0; padding: 0; list-style: none; background: var(--white); border: 1px solid var(--ink); max-height: 260px; overflow: auto; }
.suggest li { padding: 10px 14px; font-size: 15px; cursor: pointer; border-top: 1px solid var(--line); }
.suggest li:first-child { border-top: 0; }
.suggest li.is-active, .suggest li:hover { background: var(--accent-soft); }
.suggest-sub { display: block; font-size: 13px; color: var(--muted-2); }
.gmap { position: absolute; inset: 0; }
.map.has-map, .map-m.has-map { background: #ecebe7; }
.has-map .map-tag { display: none; }
.has-map .route { z-index: 1; }
.route:empty { display: none; }
.pin { position: absolute; transform: translate(-50%, -50%); min-width: 22px; height: 22px; padding: 0 5px; display: flex; align-items: center; justify-content: center; font: 600 12px var(--mono); background: var(--ink); color: var(--white); border: 2px solid var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.pin-start { background: var(--accent); color: var(--ink); }

/* Request form */
.field.is-invalid { border: 2px solid #c0392b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-send:disabled { opacity: .6; cursor: default; }
.form-error { margin-top: 10px; font-size: 14px; color: #c0392b; }
.form-error a { color: inherit; }
.sent { background: var(--ink); color: var(--white); padding: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sent-text { font-size: 18px; font-weight: 600; }
.sent-reset { background: none; border: 0; color: var(--white); font: 500 14px var(--sans); text-decoration: underline; cursor: pointer; padding: 8px 0; }

/* Shop: product photo and order window */
.product-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product .btn { width: 100%; padding: 0; background: transparent; cursor: pointer; }
.order { width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 28px; border: 1px solid var(--ink); background: var(--white); color: var(--ink); }
.order::backdrop { background: rgba(21, 21, 21, .5); }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; }
.order-head .step-label { margin: 0; }
.order-close { margin: -10px -10px 0 0; width: 40px; height: 40px; border: 0; background: none; font-size: 24px; cursor: pointer; color: var(--ink); }
.order-product { margin: 6px 0 20px; display: flex; flex-direction: column; gap: 6px; }
.order-name { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.order-price { font-family: var(--mono); font-size: 18px; font-weight: 600; }
.order-qty { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.order-qty-label { font-size: 15px; }
.qty { display: flex; }
.qty-btn { width: 44px; height: 44px; border: 1px solid var(--field-line); background: var(--white); font-size: 20px; cursor: pointer; color: var(--ink); }
.qty-input { width: 56px; height: 44px; border: 1px solid var(--field-line); border-left: 0; border-right: 0; text-align: center; font: 600 16px var(--mono); color: var(--ink); background: var(--bg); -moz-appearance: textfield; border-radius: 0; }
.qty-input::-webkit-inner-spin-button, .qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.order-total { padding: 14px 0; margin-bottom: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 16px; font-weight: 600; }
.order .form { grid-template-columns: 1fr; }
.order .sent { margin-top: 0; }
@media (max-width: 767px) {
  .order { padding: 20px 16px; }
}
.order { overflow: auto; }
.order-name:focus { outline: none; }
.order-desc { margin: -6px 0 20px; font-size: 15px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.order-options { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
.order-opt { min-height: 52px; padding: 0 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--field-line); color: var(--ink); font: 500 16px var(--sans); cursor: pointer; text-align: left; }
.order-opt.is-active { background: var(--accent-soft); border: 2px solid var(--accent); padding: 0 15px; }
.order-opt-price { font-family: var(--mono); font-weight: 600; white-space: nowrap; }

/* Design edits: logo, full-height station logos, OPT labels, centered prices heading, 3-column footer */
.logo { display: block; flex: none; height: 64px; width: auto; mix-blend-mode: multiply; }
.header-in { gap: 16px 24px; }
.header-phone-m { padding-left: 0; }
.footer-brand .logo-footer { height: 56px; }

.pcard { padding-left: 0; }
.pcard-logo { align-self: stretch; width: auto; height: auto; aspect-ratio: 1 / 1; border-right: 1px solid var(--line); }
.pcard-logo img, .pcard-opt .pcard-logo img { width: 100%; height: 100%; object-fit: contain; }
.pcard-sep { display: none; }

.opt-label { font-size: var(--optBig); text-align: right; }
.opt-label-r { text-align: left; }

.prices-head { flex-direction: column; align-items: center; gap: 6px; text-align: center; }

.footer-in { grid-template-columns: 1.4fr 1fr 1fr; }

:root { --optBig: 32px; }
@media (max-width: 767px) {
  :root { --optBig: 18px; }
  .logo { height: 48px; }
  .footer-brand .logo-footer { height: 48px; }
  .footer-in { grid-template-columns: 1fr 1fr; }
}
