/*
Theme Name: Topline WooCommerce
Theme URI: https://top-zapravka.shop/
Author: Topline
Description: WordPress/WooCommerce theme recreating the Topline fuel delivery site.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: topline
*/

/* The original site's production stylesheet is bundled unchanged for visual fidelity. */
@import url("assets/images/source-site.css");

/* WordPress integration and small utility rules. */
.mobile-menu { display: none; }
.site-header.open .mobile-menu { display: flex; }
.site-header.is-stuck { position: fixed; background: rgba(9,12,16,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

.page-shell { position: relative; z-index: 1; padding: 120px 0 90px; }
.page-content { max-width: 1000px; margin: 0 auto; }
.page-content > h1, .page-header h1 { font-size: 44px; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 18px; }
.page-content h2 { font-size: 26px; line-height: 1.2; margin: 24px 0 12px; }
.page-content p, .entry-content p { color: var(--silver); font-size: 15.5px; line-height: 1.7; margin: 0 0 14px; }
.page-content ul, .entry-content ul { color: var(--silver); line-height: 1.7; margin: 0 0 18px 22px; }
.page-content a, .entry-content a { color: var(--accent-2); }
.page-header { margin-bottom: 24px; }
.entry-content { max-width: 820px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.feature { padding: 24px; }
.feature h2 { margin-top: 0; }
.prose { max-width: 820px; color: var(--silver); }
.prose h2 { color: #fff; }
.prose p, .prose li { color: var(--silver); font-size: 15.5px; line-height: 1.7; }
.prose ul { margin: 0 0 18px 22px; }
.contact-cards + * { margin-top: 18px; }
.topline-order-form { padding: 36px; }
.topline-order-form .field { margin-bottom: 18px; }
.topline-order-form input, .topline-order-form select, .topline-order-form textarea { width: 100%; }
.site-footer { display: none; }
.woocommerce .content, .woocommerce-page .content { padding-top: 120px; }
.calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.check { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: var(--accent-2); border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-weight: 800; }
.legal-item { display: flex; flex-direction: column; gap: 3px; }
.legal-item span { font-size: 12px; color: var(--muted-2); }
.legal-item b, .legal-item a { font-size: 14.5px; color: var(--silver); font-weight: 600; }
.site-main > .wrap { position: relative; z-index: 1; }
.page-content .sec-desc { margin-bottom: 0; }
.woocommerce-products-header, .woocommerce ul.products, .woocommerce-page ul.products { max-width: var(--maxw); margin-left: auto; margin-right: auto; padding-left: 32px; padding-right: 32px; }
.woocommerce ul.products { padding-top: 24px; }
.woocommerce ul.products li.product { color: var(--silver); }

/* Keep action labels readable even when a page builder/plugin adds a muted
 * anchor or button rule.  The orange CTA is intentionally high-contrast. */
.btn,
.btn-accent,
.btn-ghost,
.fbtn,
.topline-order-form button[type="submit"],
.form-actions button[type="submit"],
input[type="submit"] {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .24);
}
body a.btn.btn-accent,
body a.btn.btn-ghost,
body button.btn.btn-accent,
body a.fbtn {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-weight: 800;
}
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border-color: transparent;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .24);
}
.btn-accent:not(:disabled):not([disabled]),
.fbtn,
input[type="submit"] {
  opacity: 1;
}
.btn-accent:hover,
.btn-accent:focus-visible,
.btn-ghost:hover,
.btn-ghost:focus-visible,
.fbtn:hover,
.fbtn:focus-visible,
input[type="submit"]:hover,
input[type="submit"]:focus-visible {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

/* Branded document artwork replaces the generic placeholder glyphs in the
 * light document panel while preserving the click-to-preview interaction. */
.docs-sec { position: relative; isolation: isolate; overflow: hidden; }
.docs-sec::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -132px;
  right: -86px;
  width: 360px;
  height: 360px;
  background: url("assets/images/docs-mark.svg") center / contain no-repeat;
  opacity: .13;
  transform: rotate(8deg);
  pointer-events: none;
}
.docs-sec > * { position: relative; z-index: 1; }
.docs-sec .doc .sheet.doc-thumb {
  position: relative;
  background: #eef1f4 url("assets/images/docs-thumb.svg") center / cover no-repeat;
  border-color: #d8dee5;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
  background-position: center center;
}
.docs-sec .doc .sheet.doc-thumb > svg { opacity: 0; }
.docs-sec .docgrid { align-items: stretch; }
.docs-sec .doc { display: flex; flex-direction: column; min-height: 248px; }
.docs-sec .doc .sheet.doc-thumb { flex: 0 0 130px; transform: none; }
.docs-sec .doc:nth-child(2) .sheet.doc-thumb,
.docs-sec .doc:nth-child(3) .sheet.doc-thumb,
.docs-sec .doc:nth-child(4) .sheet.doc-thumb { background-position: center center; }
.docs-sec .doc h4 { min-height: 18px; }
.docs-sec .doc .dm { min-height: 18px; }
.docs-sec .doc .dopen { margin-top: auto; }
.docs-sec .dopen { color: #d94b16; }

/* High-resolution document previews.  Each card uses its own vector artwork,
 * so the preview stays crisp on desktop and on high-density phone displays. */
.docs-sec .doc:nth-child(1) .sheet.doc-thumb {
  background-image: url("assets/images/docs-thumb-invoice-v2.svg");
}
.docs-sec .doc:nth-child(2) .sheet.doc-thumb {
  background-image: url("assets/images/docs-thumb-passport-v2.svg");
}
.docs-sec .doc:nth-child(3) .sheet.doc-thumb {
  background-image: url("assets/images/docs-thumb-contract-v2.svg");
}
.docs-sec .doc:nth-child(4) .sheet.doc-thumb {
  background-image: url("assets/images/docs-thumb-upd-v2.svg");
}

/* Turn the plain colour strips on fuel cards into compact delivery scenes.
 * The photos are already bundled with the theme, so the cards stay fully
 * self-contained after the theme ZIP is uploaded to WordPress.  A dark glass
 * layer keeps the season and Euro-5 labels readable over every crop. */
.fuel .top::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("assets/images/case1-1786298818660-88e96vyt2h9txmzlly29i948iscwx1cp.png");
  background-size: cover;
  background-position: 58% 57%;
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.06);
  pointer-events: none;
  transition: transform .45s cubic-bezier(.22,.61,.36,1), filter .45s ease;
}
.fuel .top::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 9, 13, .40) 0%, rgba(5, 9, 13, .20) 42%, rgba(5, 9, 13, .88) 100%),
    linear-gradient(120deg, rgba(255, 90, 31, .22), transparent 58%);
}
.fuel .top > * { z-index: 2; }
.fuel:hover .top::before {
  transform: scale(1.095);
  filter: saturate(1.2) contrast(1.1);
}

/* Seasonal crops: diesel uses the tanker-at-work photo, while petrol cards
 * alternate tanker/loading crops for a varied catalogue without external
 * image requests or unrelated third-party branding. */
.fuel:nth-child(2) .top::before {
  background-position: 72% 52%;
}
.fuel:nth-child(3) .top::before {
  background-image: url("assets/images/case2-1786299022562-diztoplivo.jpg");
  background-position: 42% 54%;
}
.fuel:nth-child(4) .top::before {
  background-position: 28% 54%;
}
.fuel:nth-child(5) .top::before {
  background-image: url("assets/images/case2-1786299022562-diztoplivo.jpg");
  background-position: 52% 54%;
}
.fuel:nth-child(6) .top::before {
  background-position: 82% 56%;
}
.fuel:nth-child(7) .top::before {
  background-image: url("assets/images/case2-1786299022562-diztoplivo.jpg");
  background-position: 68% 52%;
}

/* Each catalogue card now has its own illustrated fuel cue instead of a
 * repeated stock photo. The artwork is local SVG, so it remains available
 * offline after the theme ZIP is installed. */
.fuel:nth-child(1) .top::before { background-image: url("assets/images/fuel-dt-summer-v2.svg"); background-position: center; }
.fuel:nth-child(2) .top::before { background-image: url("assets/images/fuel-dt-winter-v2.svg"); background-position: center; }
.fuel:nth-child(3) .top::before { background-image: url("assets/images/fuel-dt-arctic-v4.svg"); background-position: center; }
.fuel:nth-child(4) .top::before { background-image: url("assets/images/fuel-ai92-v2.svg"); background-position: center; }
.fuel:nth-child(5) .top::before { background-image: url("assets/images/fuel-ai95-v3.svg"); background-position: center; }
.fuel:nth-child(6) .top::before { background-image: url("assets/images/fuel-ai98-v3.svg"); background-position: center; }
.fuel:nth-child(7) .top::before { background-image: url("assets/images/fuel-generator-v3.svg"); background-position: center; }

@media (max-width: 640px) { .calc-grid { grid-template-columns: 1fr; } .legal-box { padding: 18px !important; } }
@media (max-width: 980px) { .feature-grid { grid-template-columns: 1fr; } .page-content > h1, .page-header h1 { font-size: 36px; } }
@media (max-width: 560px) { body.admin-bar .site-header { top: 46px; } .page-shell { padding-top: 100px; } .topline-order-form { padding: 22px; } }

/* Mobile fit and readability pass.  The order wizard and document row both
 * contain long labels and legacy inline sizing; reset those constraints at
 * phone widths so no card can force the page wider than the viewport. */
@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .topline-order-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .topline-order-page .page-top {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 104px 18px 28px;
  }

  .topline-order-page .page-top h1 {
    max-width: 100%;
    min-width: 0;
    font-size: clamp(32px, 8.8vw, 40px) !important;
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .topline-order-page .order-grid {
    display: block !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0 18px 72px !important;
  }

  .topline-order-page .order-card,
  .topline-order-page .order-step,
  .topline-order-page .field,
  .topline-order-page .dbox {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .topline-order-page .order-card {
    padding: 22px 16px !important;
    border-radius: 18px;
    overflow: hidden;
  }

  .topline-order-page .stepbar {
    width: 100%;
    gap: 7px;
    margin-bottom: 24px;
  }

  .topline-order-page .stepbar .st {
    min-width: 0;
  }

  .topline-order-page .stepbar .lb {
    font-size: 11px;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .topline-order-page .seg {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .topline-order-page .seg .opt {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 10px 8px;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .topline-order-page .vol-head .val {
    font-size: 24px;
  }

  .topline-order-page .form-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
  }

  .topline-order-page .form-actions .btn {
    width: 100%;
    min-width: 0;
    padding-left: 12px;
    padding-right: 12px;
  }

  .topline-order-page .form-actions [data-order-next],
  .topline-order-page .form-actions [data-order-submit] {
    grid-column: 1 / -1;
    order: 3;
  }

  .topline-order-page .summary {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 16px;
    padding: 20px 16px;
    position: static;
  }

  .topline-order-page .summary .sumrow {
    min-width: 0;
    align-items: flex-start;
  }

  .topline-order-page .summary .sumrow b {
    min-width: 0;
    max-width: 58%;
    overflow-wrap: anywhere;
  }

  .topline-order-page [data-order-consent] {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .docs-sec {
    padding: 34px 18px;
    border-radius: 22px;
  }

  .docs-sec .docrow {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 12px !important;
    overflow: visible !important;
    padding: 4px 0 0 !important;
  }

  .docs-sec .docrow .doc {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: none !important;
  }

  .docs-sec .doc .sheet.doc-thumb {
    width: 100%;
    flex-basis: 154px;
    background-size: 100% 100%;
    image-rendering: auto;
  }

  .docs-sec .doc h4,
  .docs-sec .doc .dm {
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .site-header .topbar {
    gap: 8px;
  }

  .site-header .logo {
    min-width: 0;
    gap: 8px;
    font-size: 18px;
  }

  .site-header .logo .mark {
    width: 36px;
    height: 36px;
  }

  .site-header .head-right {
    min-width: 0;
    gap: 8px;
  }

  .site-header .btn-accent {
    padding: 0 12px;
    font-size: 13px;
  }

  .site-header .burger {
    width: 40px;
    height: 40px;
  }
}

/* Final responsive polish for the current production screenshots. */
.docs-sec .doc .sheet.doc-thumb {
  height: 154px;
  flex-basis: 154px;
  background-size: 100% 100%;
  image-rendering: auto;
}

#adv .bcard.accent .bico {
  align-self: flex-start;
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  /* Documents: keep a single horizontal rail with a visible next card. */
  .docs-sec .docrow {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    justify-content: flex-start;
    gap: 14px !important;
    width: calc(100% + 18px);
    max-width: none;
    min-width: 0;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 4px 2px 14px !important;
    margin-right: -18px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .docs-sec .docrow::-webkit-scrollbar {
    display: none;
  }

  .docs-sec .docrow .doc {
    flex: 0 0 240px !important;
    width: 240px !important;
    max-width: 82vw !important;
    min-width: 0 !important;
    scroll-snap-align: start;
  }

  .docs-sec .doc .sheet.doc-thumb {
    height: 154px;
    flex-basis: 154px;
    background-size: 100% 100%;
    background-position: center;
  }

  /* Business CTA: prevent a long label from looking offset or clipped. */
  .biz-right .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    height: auto;
    box-sizing: border-box;
    margin-top: 28px !important;
    padding: 14px 18px;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
  }

  .biz-feats .bf {
    align-items: flex-start;
  }

  .biz-feats .bf > div {
    min-width: 0;
  }

  /* Hero scene: reserve a compact, readable canvas above the text. */
  .hero {
    padding-top: 112px;
    padding-bottom: 44px;
  }

  .hero-grid {
    gap: 26px;
  }

  .hero-visual {
    height: 300px;
    min-height: 300px;
    margin: 0;
    order: -1;
  }

  .hero-visual .scene {
    position: absolute;
    inset: 0;
    border-radius: 20px;
  }

  .hero-visual .scene svg {
    filter: brightness(1.14) saturate(1.08) contrast(1.04);
    transform: scale(1.025);
    transform-origin: center;
  }

  .hero-visual .stat-card {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .hero-visual .stat-card .k {
    font-size: 19px;
    line-height: 1.1;
  }

  .hero-visual .stat-card .l {
    font-size: 10px;
    line-height: 1.25;
  }

  .hero-visual .sc-1 {
    top: 14px;
    left: 14px;
  }

  .hero-visual .sc-2 {
    right: 14px;
    bottom: 70px;
  }

  .hero-visual .sc-3 {
    left: 28px;
    bottom: 14px;
  }

  .hero-title {
    font-size: 34px !important;
    line-height: 1.08;
  }

  .hero-sub {
    font-size: 16px;
    line-height: 1.5;
  }

  /* Map: increase the mobile canvas and add contrast without clipping labels. */
  #geo .oilmap {
    padding: 6px;
    border-radius: 18px;
    background: #060a0f;
  }

  #geo .oilmap svg {
    width: 100%;
    height: auto;
    min-height: 218px;
    display: block;
    filter: brightness(1.14) saturate(1.08);
  }

  #geo .sec-head h2 {
    font-size: 34px !important;
    line-height: 1.08;
  }

  /* Keep the logistics icon anchored to the card's own left edge. */
  #adv .bcard.accent .bico {
    width: 48px;
    height: 48px;
    margin: 0 0 18px;
    display: grid;
    place-items: center;
  }

  #adv .bcard.accent .bico svg {
    width: 24px;
    height: 24px;
    display: block;
    transform: translateY(1px);
  }
}

/* Catalogue cards: keep every product in the same rhythm and move the
 * seasonal badge out of the artwork so it never covers the illustration. */
.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
}

.fuel {
  min-width: 0;
  min-height: 386px;
  height: 100%;
}

.fuel .top {
  height: auto;
  aspect-ratio: 2 / 1;
  flex: 0 0 auto;
  overflow: visible;
}

.fuel .top::before {
  transform: scale(1.01);
}

.fuel:hover .top::before {
  transform: scale(1.045);
}

.fuel .top .badge {
  top: auto;
  bottom: -30px;
  left: 14px;
  z-index: 4;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .26);
}

.fuel .body {
  min-width: 0;
  min-height: 232px;
  padding: 38px 20px 20px;
}

.fuel h3 {
  min-height: 44px;
  line-height: 1.2;
  text-wrap: balance;
}

.fuel .desc {
  min-height: 48px;
  line-height: 1.45;
}

.fuel .meta {
  min-height: 38px;
  align-content: flex-start;
}

.fuel .price {
  min-height: 32px;
}

.fuel .fbtn {
  margin-top: auto;
  min-height: 44px;
}

@media (max-width: 1100px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .fuel {
    min-height: 0;
  }

  .fuel .top {
    height: auto;
    aspect-ratio: 2 / 1;
    flex-basis: auto;
  }

  .fuel .body {
    min-height: 0;
    padding: 38px 18px 18px;
  }

  .fuel h3,
  .fuel .desc,
  .fuel .meta,
  .fuel .price {
    min-height: 0;
  }
}

@media (min-width: 641px) {
  #catalog .cards > .fuel:last-child {
    grid-column: 2;
  }
}

/* Catalogue final pass: the artwork and all labels share one predictable
 * 2:1 canvas at every breakpoint.  The season badge stays inside the image
 * at bottom-right, while the card copy is isolated above the artwork layer. */
#catalog .cards {
  align-items: stretch;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
}

#catalog .fuel {
  min-width: 0;
  min-height: 430px;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
}

#catalog .fuel .top {
  position: relative;
  z-index: 1;
  height: auto;
  min-height: 0;
  aspect-ratio: 2 / 1;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  isolation: isolate;
}

#catalog .fuel .top::before {
  inset: 0;
  z-index: 0;
  transform: none;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

#catalog .fuel:hover .top::before {
  transform: scale(1.02);
}

#catalog .fuel .top::after {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 9, 13, .08) 0%, rgba(5, 9, 13, .02) 46%, rgba(5, 9, 13, .34) 100%),
    linear-gradient(120deg, rgba(255, 90, 31, .10), transparent 62%);
}

#catalog .fuel .top .badge,
#catalog .fuel .top .k5 {
  position: absolute;
  z-index: 4;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .32);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

#catalog .fuel .top .badge {
  top: auto;
  right: 12px;
  bottom: 12px;
  left: auto;
  color: #fff;
  background: rgba(8, 10, 13, .86);
  border-color: rgba(255, 255, 255, .22);
}

#catalog .fuel .top .k5 {
  top: 12px;
  left: 12px;
  right: auto;
}

#catalog .fuel .body {
  position: relative;
  z-index: 2;
  min-width: 0;
  min-height: 274px;
  padding: 20px;
  background: linear-gradient(180deg, #11161c, #0c1015);
}

#catalog .fuel h3,
#catalog .fuel .desc,
#catalog .fuel .meta,
#catalog .fuel .price,
#catalog .fuel .fbtn {
  position: relative;
  z-index: 3;
}

#catalog .fuel h3 {
  min-height: 46px;
  line-height: 1.2;
  text-wrap: balance;
}

#catalog .fuel .desc {
  min-height: 56px;
  line-height: 1.45;
}

#catalog .fuel .meta {
  min-height: 38px;
  align-content: flex-start;
}

#catalog .fuel .price {
  min-height: 32px;
}

#catalog .fuel .fbtn {
  width: 100%;
  margin-top: auto;
  min-height: 44px;
}

@media (min-width: 1101px) {
  #catalog .cards > .fuel:last-child {
    grid-column: 2;
  }
}

@media (min-width: 641px) and (max-width: 1100px) {
  #catalog .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #catalog .cards > .fuel:last-child {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  #catalog .cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  #catalog .fuel {
    min-height: 430px;
  }

  #catalog .fuel .top {
    aspect-ratio: 2 / 1;
  }

  #catalog .fuel .body {
    min-height: 274px;
    padding: 20px 18px 18px;
  }

  #catalog .fuel h3,
  #catalog .fuel .desc,
  #catalog .fuel .meta,
  #catalog .fuel .price {
    min-height: 0;
  }
}

/* Why TOPLINE cards: align icon and copy side-by-side on narrow screens. */
@media (max-width: 640px) {
  #adv .bcard:has(.bico) {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    justify-content: initial;
    column-gap: 16px;
    min-height: 126px;
    padding: 22px 20px;
  }

  #adv .bcard:has(.bico) .bico {
    grid-column: 1;
    grid-row: 1;
    width: 52px;
    height: 52px;
    margin: 0;
    display: grid;
    place-items: center;
  }

  #adv .bcard:has(.bico) .bico svg {
    width: 25px;
    height: 25px;
    display: block;
  }

  #adv .bcard:has(.bico) > h4 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    line-height: 1.25;
  }

  #adv .bcard.accent:has(.bico) > div:not(.bico) {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  #adv .bcard.accent:has(.bico) > div:not(.bico) h4 {
    margin-bottom: 5px;
  }
}
