/* Local desktop refresh: prices/calculator and fleet only. */
@media (min-width: 901px) {
  body.desktop-refresh.page-ceny .prices-tariffs { padding-block: 34px 38px; }
  body.desktop-refresh.page-ceny .price-table {
    width: 100%;
    margin: 20px 0 16px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1.5px solid #b5c79d;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: none;
    font-size: 17px;
    line-height: 1.45;
  }
  body.desktop-refresh.page-ceny .price-table :is(th, td) { padding: 14px 20px; border-bottom: 1px solid #d4dec9; vertical-align: top; }
  body.desktop-refresh.page-ceny .price-table th { background: #e1ebd0; color: #284737; font-size: 15px; font-weight: 750; }
  body.desktop-refresh.page-ceny .price-table tbody tr:nth-child(even) td { background: #f7f9f3; }
  body.desktop-refresh.page-ceny .price-table tbody tr:last-child td { border-bottom: 0; }
  body.desktop-refresh.page-ceny .price-table td:last-child { width: 28%; min-width: 145px; color: #4d6d38; font-weight: 750; font-variant-numeric: tabular-nums; }
  body.desktop-refresh.page-ceny .prices-tariffs .price-table td:last-child { font-size: 20px; }
  body.desktop-refresh.page-ceny .fare-label { display: inline-flex; align-items: center; gap: 9px; }
  body.desktop-refresh.page-ceny .fare-label .ui-icon { flex: 0 0 22px; width: 22px; height: 22px; color: #4d6d38; }
  body.desktop-refresh.page-ceny .tariff-note { max-width: 920px; margin: 0; color: #59675c; font-size: 15px; line-height: 1.5; }

  body.desktop-refresh.page-ceny .price-route-guide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 32%);
    align-items: center;
    gap: 32px;
    margin: 20px 0 16px;
    padding: 20px 24px;
    border: 1.5px solid #b5c79d;
    border-radius: 12px;
    background: #eef3e5;
    box-shadow: none;
  }
  body.desktop-refresh.page-ceny .price-route-guide > div { max-width: none; min-width: 0; }
  body.desktop-refresh.page-ceny .price-route-guide h3 { margin: 0 0 10px; color: #243d30; font-size: 24px; line-height: 1.2; }
  body.desktop-refresh.page-ceny .price-route-guide p { margin: 0 0 9px; color: #405345; font-size: 16px; line-height: 1.5; }
  body.desktop-refresh.page-ceny .price-route-guide p:last-child { margin-bottom: 0; }
  body.desktop-refresh.page-ceny .price-district-map { width: 100%; max-width: 340px; margin: 0; justify-self: center; }
  body.desktop-refresh.page-ceny .price-district-map img { width: 100%; height: 360px; max-height: 360px; object-fit: contain; }
  body.desktop-refresh.page-ceny .price-district-map figcaption { margin-top: 7px; color: #59675c; font-size: 13px; line-height: 1.4; }
  body.desktop-refresh.page-ceny .price-district-map a { color: #4d6d38; text-underline-offset: 3px; }

  /* Keep the special offer legible without a different color palette. */
  body.desktop-refresh.page-ceny .price-veteran-offer { gap: 14px; margin-top: 20px; padding: 14px 18px; border: 1.5px solid #b5c79d; border-left: 4px solid #678842; border-radius: 10px; background: #eef3e5; color: #243d30; box-shadow: none; }
  body.desktop-refresh.page-ceny .price-veteran-badge { background: #4d6d38; color: #fff; border-radius: 6px; font-size: 25px; }
  body.desktop-refresh.page-ceny .price-veteran-offer div > span { margin-top: 3px; color: #405345; font-size: 14px; line-height: 1.45; }
  body.desktop-refresh.page-ceny .price-transparency { border: 1.5px solid #b5c79d; border-left: 4px solid #678842; border-radius: 10px; background: #eef3e5; color: #243d30; box-shadow: none; line-height: 1.45; }
  body.desktop-refresh.page-ceny .price-transparency span { color: #405345; }

  body.desktop-refresh.page-ceny #calculator { padding-block: 38px; background: #f5f4ee; }
  body.desktop-refresh.page-ceny #calculator .calc-heading { gap: 24px; margin-bottom: 22px; }
  body.desktop-refresh.page-ceny #calculator .calc-heading h2 { margin-bottom: 10px; }
  body.desktop-refresh.page-ceny #calculator .calc-heading p { margin: 0; color: #59675c; font-size: 17px; line-height: 1.5; }
  body.desktop-refresh.page-ceny #calculator .calculator-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, 1fr); gap: 24px; align-items: start; }
  body.desktop-refresh.page-ceny #trip-calculator { min-width: 0; padding: 24px; border: 1.5px solid #b5c79d; border-radius: 12px; background: #fff; box-shadow: none; }
  body.desktop-refresh.page-ceny #calculator .calc-step { min-width: 0; margin: 0 0 20px; padding: 0 0 20px; border: 0; border-bottom: 1px solid #d4dec9; border-radius: 0; background: transparent; box-shadow: none; }
  body.desktop-refresh.page-ceny #calculator .calc-step:last-of-type { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
  body.desktop-refresh.page-ceny #calculator legend { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 100%; margin: 0; padding: 0 0 14px; color: #243d30; font-size: 20px; font-weight: 750; line-height: 1.3; }
  body.desktop-refresh.page-ceny #calculator legend > span { display: inline-grid; place-items: center; flex: 0 0 29px; width: 29px; height: 29px; border: 0; border-radius: 50%; background: #284737; color: #fff; font-size: 14px; line-height: 1; }
  body.desktop-refresh.page-ceny #calculator legend .ui-icon { width: 22px; height: 22px; color: #4d6d38; }
  body.desktop-refresh.page-ceny #calculator label { display: block; min-width: 0; margin: 0 0 14px; color: #243d30; font-size: 15px; font-weight: 600; line-height: 1.45; }
  body.desktop-refresh.page-ceny #calculator :is(input:not([type="radio"]):not([type="checkbox"]), select, textarea) { box-sizing: border-box; display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 46px; margin-top: 6px; padding: 10px 12px; border: 1.5px solid #b7c69e; border-radius: 7px; background: #fff; color: #243d30; box-shadow: none; font-size: 16px; line-height: 1.35; }
  body.desktop-refresh.page-ceny #calculator textarea { min-height: 90px; resize: vertical; }
  body.desktop-refresh.page-ceny #calculator :is(input, select, textarea):focus { outline: 2px solid #4d6d38; outline-offset: 2px; }
  body.desktop-refresh.page-ceny #calculator input:invalid:not(:placeholder-shown) { border-color: #b74a32; }
  body.desktop-refresh.page-ceny #calculator .calc-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  body.desktop-refresh.page-ceny #calculator .field-help { margin: 0 0 14px; color: #59675c; font-size: 13px; line-height: 1.5; }

  /* Radios retain their native inputs and existing checked/focus behavior. */
  body.desktop-refresh.page-ceny #calculator :is(.route-options, .direction-options) { gap: 5px; margin: 0 0 16px; padding: 5px; border: 1.5px solid #c7d5b8; border-radius: 10px; background: #eef3e5; box-shadow: none; }
  body.desktop-refresh.page-ceny #calculator .route-options { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  body.desktop-refresh.page-ceny #calculator .direction-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.desktop-refresh.page-ceny #calculator :is(.route-options, .direction-options) label { margin: 0; }
  body.desktop-refresh.page-ceny #calculator :is(.route-options, .direction-options) span { min-height: 44px; padding: 8px 6px; border: 1px solid transparent; border-radius: 6px; color: #405345; font-size: 14px; font-weight: 650; line-height: 1.3; }
  body.desktop-refresh.page-ceny #calculator :is(.route-options, .direction-options) input:checked + span { border-color: #4d6d38; background: #4d6d38; color: #fff; box-shadow: none; }
  body.desktop-refresh.page-ceny #calculator :is(.route-options, .direction-options) input:focus-visible + span { outline: 2px solid #284737; outline-offset: 1px; }
  body.desktop-refresh.page-ceny #calculator .calc-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
  body.desktop-refresh.page-ceny #calculator .calc-check input { flex: 0 0 21px; width: 21px; height: 21px; min-height: 21px; margin: 2px 0 0; accent-color: #4d6d38; }
  body.desktop-refresh.page-ceny #calculator .calc-check span { min-width: 0; font-size: 15px; line-height: 1.45; }
  body.desktop-refresh.page-ceny #calculator .calc-check b { margin-left: 5px; padding: 2px 5px; border-radius: 3px; background: #e1ebd0; color: #284737; font-size: 12px; font-weight: 750; }
  body.desktop-refresh.page-ceny #calculator .calc-check small { margin-top: 3px; color: #59675c; font-size: 13px; line-height: 1.45; }
  body.desktop-refresh.page-ceny #calculator .calc-inline-note { margin: 0 0 16px; padding: 12px 14px; border: 1.5px solid #b5c79d; border-radius: 8px; background: #eef3e5; color: #405345; box-shadow: none; font-size: 14px; line-height: 1.5; }
  body.desktop-refresh.page-ceny #calculator .calc-extra { margin-top: 16px; padding-top: 16px; border: 0; border-top: 1px solid #cdd7c0; border-radius: 0; background: transparent; box-shadow: none; }
  body.desktop-refresh.page-ceny #calculator .calc-extra summary { color: #4d6d38; font-size: 16px; line-height: 1.4; }
  body.desktop-refresh.page-ceny #calculator .calc-extra[open] summary { margin-bottom: 16px; }
  body.desktop-refresh.page-ceny #calculator .calc-privacy { margin: 0; color: #59675c; font-size: 13px; line-height: 1.5; }

  body.desktop-refresh.page-ceny #calculator .calc-result { position: sticky; top: calc(var(--preview-header-height, 178px) + 14px); min-width: 0; padding: 24px; border: 1.5px solid #9bb57a; border-radius: 12px; background: #e1ebd0; box-shadow: none; }
  body.desktop-refresh.page-ceny #calculator #calc-result-caption { color: #4d6d38; font-size: 12px; line-height: 1.4; }
  body.desktop-refresh.page-ceny #calculator #calc-total { margin: 12px 0 10px; color: #284737; font-size: clamp(36px, 3.4vw, 46px); font-weight: 800; line-height: 1.12; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
  body.desktop-refresh.page-ceny #calculator #calc-total.needs-review { font-size: 28px; line-height: 1.2; }
  body.desktop-refresh.page-ceny #calculator .calc-summary { margin: 0 0 14px; color: #405345; font-size: 14px; line-height: 1.45; }
  body.desktop-refresh.page-ceny #calculator #calc-breakdown li { gap: 14px; padding: 8px 0; border-bottom: 1px solid #bdcfa7; font-size: 14px; line-height: 1.4; }
  body.desktop-refresh.page-ceny #calculator #calc-breakdown li > span { min-width: 0; }
  body.desktop-refresh.page-ceny #calculator #calc-breakdown b { color: #284737; font-weight: 750; white-space: nowrap; }
  body.desktop-refresh.page-ceny #calculator .calc-included { padding-top: 16px; }
  body.desktop-refresh.page-ceny #calculator :is(.calc-included, .calc-review) h3 { margin: 0 0 9px; color: #243d30; font-size: 16px; line-height: 1.3; }
  body.desktop-refresh.page-ceny #calculator .calc-included p { gap: 8px; margin: 7px 0; color: #405345; font-size: 14px; line-height: 1.45; }
  body.desktop-refresh.page-ceny #calculator .calc-included .ui-icon { flex: 0 0 19px; width: 19px; height: 19px; color: #4d6d38; }
  body.desktop-refresh.page-ceny #calculator .calc-review { margin: 16px 0 0; padding: 14px; border: 1px solid #b5c79d; border-radius: 8px; background: #eef3e5; }
  body.desktop-refresh.page-ceny #calculator .calc-review ul { padding-left: 18px; }
  body.desktop-refresh.page-ceny #calculator .calc-review li { margin: 6px 0; padding: 0; border: 0; color: #405345; font-size: 13px; line-height: 1.45; }
  body.desktop-refresh.page-ceny #calculator #calc-note { margin: 16px 0 14px; color: #405345; font-size: 13px; line-height: 1.5; }
  body.desktop-refresh.page-ceny #calculator .calc-result .btn { min-height: 48px; border-color: #4d6d38; background: #4d6d38; color: #fff; box-shadow: none; }
  body.desktop-refresh.page-ceny #calculator .calc-result .btn:hover { border-color: #365526; background: #365526; color: #fff; box-shadow: none; }
  body.desktop-refresh.page-ceny #calculator .calc-contact-hours { margin-top: 10px; color: #405345; font-size: 14px; line-height: 1.5; }
  body.desktop-refresh.page-ceny #calculator .calc-reset { min-height: 44px; margin-top: 6px; padding: 8px 12px; border: 0; background: transparent; color: #4d6d38; box-shadow: none; font-size: 14px; text-underline-offset: 4px; }
  body.desktop-refresh.page-ceny .price-estimate-note { margin: 20px 0 0; padding: 14px 18px; font-size: 16px; }
  body.desktop-refresh.page-ceny .price-estimate-note span { font-size: 14px; line-height: 1.5; }

  /* Fleet images remain contained and all gallery controls stay available. */
  body.desktop-refresh.page-avtomobili .vehicle-section { padding-block: 34px 44px; }
  body.desktop-refresh.page-avtomobili .vehicle-list { display: grid; gap: 24px; }
  body.desktop-refresh.page-avtomobili .vehicle-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; gap: 32px; min-width: 0; padding: 24px; border: 1.5px solid #b5c79d; border-radius: 12px; background: #fff; box-shadow: none; }
  body.desktop-refresh.page-avtomobili .vehicle-card > div { min-width: 0; }
  body.desktop-refresh.page-avtomobili .fleet-open { border: 1px solid #d2dcc6; border-radius: 10px; background: #eef3e5; box-shadow: none; }
  body.desktop-refresh.page-avtomobili .vehicle-main { display: block; width: 100%; height: clamp(290px, 25vw, 360px); object-fit: contain; }
  body.desktop-refresh.page-avtomobili .fleet-thumbs { gap: 8px; max-width: 100%; margin-top: 6px; padding: 5px 5px 8px; overflow-x: auto; scrollbar-color: #8fa96a #eef3e5; }
  body.desktop-refresh.page-avtomobili .fleet-thumb { flex: 0 0 78px; height: 58px; padding: 2px; border: 1.5px solid #b5c79d; border-radius: 6px; background: #fff; box-shadow: none; cursor: pointer; }
  body.desktop-refresh.page-avtomobili .fleet-thumb img { width: 100%; height: 100%; object-fit: cover; }
  body.desktop-refresh.page-avtomobili .fleet-thumb[aria-pressed="true"] { border: 2px solid #4d6d38; background: #e1ebd0; box-shadow: none; }
  body.desktop-refresh.page-avtomobili :is(.fleet-open, .fleet-thumb, .fleet-arrow, .fleet-close):focus-visible { outline: 2px solid #4d6d38; outline-offset: 3px; }
  body.desktop-refresh.page-avtomobili .vehicle-copy { align-self: center; padding: 0; }
  body.desktop-refresh.page-avtomobili .vehicle-copy .eyebrow { margin: 0 0 8px; color: #4d6d38; font-size: 12px; line-height: 1.4; }
  body.desktop-refresh.page-avtomobili .vehicle-copy h2 { margin: 6px 0 12px; color: #243d30; font-size: 32px; line-height: 1.18; }
  body.desktop-refresh.page-avtomobili .vehicle-copy p { margin: 0 0 12px; color: #405345; font-size: 16px; line-height: 1.5; }
  body.desktop-refresh.page-avtomobili .vehicle-specs { display: grid; gap: 8px; margin: 16px 0; padding: 0; list-style: none; }
  body.desktop-refresh.page-avtomobili .vehicle-specs li { padding: 9px 12px; border: 1.5px solid #c5d4b2; border-left: 4px solid #678842; border-radius: 6px; background: #eef3e5; color: #243d30; font-size: 15px; font-weight: 650; line-height: 1.4; }
  body.desktop-refresh.page-avtomobili .vehicle-copy .vehicle-note { color: #59675c; font-size: 14px; line-height: 1.45; }
  body.desktop-refresh.page-avtomobili .vehicle-copy .btn { min-height: 46px; margin-top: 4px; box-shadow: none; }
  body.desktop-refresh.page-avtomobili .vehicle-copy .btn:hover { box-shadow: none; }
  body.desktop-refresh.page-avtomobili .fleet-lightbox { max-width: min(1160px, calc(100vw - 110px)); max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); padding: 20px; border: 1.5px solid #b5c79d; border-radius: 12px; background: #f5f4ee; box-shadow: none; }
  body.desktop-refresh.page-avtomobili .fleet-lightbox::backdrop { background: rgba(20, 37, 27, .82); }
  body.desktop-refresh.page-avtomobili .fleet-lightbox > img { width: auto; height: auto; max-width: calc(100vw - 154px); max-height: calc(100vh - 112px); max-height: calc(100dvh - 112px); margin: auto; object-fit: contain; }
  body.desktop-refresh.page-avtomobili .fleet-arrow { width: 48px; height: 48px; border: 1.5px solid #b5c79d; background: #fff; color: #284737; box-shadow: none; }
  body.desktop-refresh.page-avtomobili .fleet-arrow:hover { background: #e1ebd0; box-shadow: none; }
  body.desktop-refresh.page-avtomobili .fleet-close { top: 8px; right: 8px; width: 38px; height: 38px; padding: 0; border: 1.5px solid #b5c79d; background: #fff; color: #284737; box-shadow: none; font-size: 28px; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  body.desktop-refresh.page-ceny #calculator .calculator-grid { grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr); gap: 20px; }
  body.desktop-refresh.page-ceny #trip-calculator,
  body.desktop-refresh.page-ceny #calculator .calc-result { padding: 20px; }
  body.desktop-refresh.page-ceny #calculator .route-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.desktop-refresh.page-ceny .price-table :is(th, td) { padding: 13px 16px; }
  body.desktop-refresh.page-ceny .price-route-guide { grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; padding: 20px; }
  body.desktop-refresh.page-ceny .price-district-map img { height: 300px; max-height: 300px; }
  body.desktop-refresh.page-avtomobili .vehicle-card { gap: 24px; padding: 20px; }
  body.desktop-refresh.page-avtomobili .vehicle-copy h2 { font-size: 29px; }
  body.desktop-refresh.page-avtomobili .fleet-thumb { flex-basis: 68px; height: 52px; }
}

/* A tall result panel should not stick beyond the viewport on shorter displays. */
@media (min-width: 901px) and (max-height: 800px) {
  body.desktop-refresh.page-ceny #calculator .calc-result { position: static; }
}
body.desktop-refresh.page-ceny #calculator { scroll-margin-top: 0; }

