:root {
  --bg-page: #ffffff;
  --bg-surface: #f6f6f6;
  --bg-dark: #222222;
  --bg-dark-elevated: #2c2c2c;
  --bg-filter-slot: #e4e4e4;

  --brand-orange: #f15f27;
  --brand-orange-hover: #d94d18;
  --price-red: #c82929;
  --accent-green: #79b574;
  --accent-telegram: #328fec;

  --text-primary: #141414;
  --text-secondary: #555555;
  --text-inverse: #ffffff;

  --border-card: #9f9f9f;
  --border-subtle: #dcdcdc;
  --border-rule: #000000;

  --radius-card: 14px;
  --radius-panel: 18px;
  --radius-control: 10px;

  --container-max: 1810px;
  --container-gutter: clamp(16px, 3vw, 55px);

  --shadow-card: 0 4px 18px rgba(0, 0, 0, 0.05);
  --shadow-card-hover: 0 14px 32px rgba(0, 0, 0, 0.12);
  --shadow-modal: 0 24px 60px rgba(0, 0, 0, 0.35);

  --font-main: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  max-width: 100%;
  overflow-x: clip;
}

html.is-modal-open,
body.is-modal-open {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  font-family: var(--font-main);
  color: var(--text-primary);
  background-color: var(--bg-page);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font-family: inherit;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: calc(var(--container-max) + var(--container-gutter) * 2);
  margin: 0 auto;
  padding-left: var(--container-gutter);
  padding-right: var(--container-gutter);
}

/* ========================
   Header
   ======================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-dark);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}

.header-inner {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  height: clamp(56px, 4.2vw, 74px);
  padding: 0 clamp(16px, 3.2vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo {
  width: clamp(110px, 7.6vw, 142px);
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.2vw, 40px);
  margin-right: auto;
  margin-left: clamp(20px, 5vw, 96px);
}

.nav-link {
  text-decoration: none;
  color: var(--text-inverse);
  font-size: clamp(16px, 1.15vw, 21px);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--brand-orange);
}

.nav-link.is-active {
  color: var(--brand-orange);
}

.header-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(8px, 0.8vw, 14px);
  flex-shrink: 0;
}

.header-phone-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 140;
  min-width: 242px;
  max-width: calc(100vw - 24px);
  padding: 12px;
  border-radius: 14px;
  background-color: #262626;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.header-phone-popover[hidden] {
  display: none;
}

.header-phone-popover__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  padding: 0 4px 2px;
}

.header-phone-popover__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  transition: background-color 0.16s ease, transform 0.14s ease;
}

.header-phone-popover__item:hover,
.header-phone-popover__item:focus-visible {
  background-color: var(--accent-green);
  color: #ffffff;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  flex-shrink: 0;
}

.icon-btn--telegram {
  background-color: #ffffff;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.action-icon {
  width: clamp(34px, 2.4vw, 44px);
  height: auto;
}

.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  cursor: pointer;
}

.burger-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu {
  padding: 14px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-color: var(--bg-dark);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu__link {
  text-decoration: none;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  font-style: italic;
  padding: 6px 0;
}

.mobile-menu__link.is-active {
  color: var(--brand-orange);
}

.mobile-menu__contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 8px;
  padding-top: 6px;
}

.mobile-contact-pill {
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--accent-green);
  padding: 10px 12px;
  border-radius: 8px;
}

.mobile-contact-pill[hidden],
.footer-phone[hidden],
.btn[hidden] {
  display: none !important;
}

.mobile-contact-pill--tg {
  grid-column: 1 / -1;
  background-color: var(--accent-telegram);
}

/* ========================
   Showcase Section (Майданчик)
   ======================== */
.lot-section {
  padding: clamp(24px, 3vw, 44px) 0 clamp(48px, 6vw, 96px);
  background-color: var(--bg-page);
}

.filter-bar-wrap {
  max-width: 1460px;
  margin: 0 auto clamp(24px, 2.2vw, 34px);
}

.filter-shell {
  background-color: #ffffff;
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  padding: clamp(14px, 1.5vw, 20px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.filter-slot {
  position: relative;
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #f3f4f6;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 12px 10px;
  min-height: 62px;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.filter-slot--year {
  grid-column: span 4;
}

.filter-slot--price {
  grid-column: span 5;
}

.filter-slot--sort {
  grid-column: span 3;
}

.filter-slot:hover {
  background-color: #eceef1;
}

.filter-slot:focus-within,
.filter-slot.is-filtered,
.filter-slot.is-dropdown-open {
  background-color: #ffffff;
  border-color: #fb6720;
  box-shadow: 0 4px 14px rgba(251, 103, 32, 0.1);
}

.filter-slot.is-dropdown-open {
  z-index: 70;
}

.filter-slot--range {
  cursor: default;
}

.filter-slot__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin-bottom: 3px;
}

.filter-slot--range .filter-slot__label {
  margin-bottom: 0;
}

.filter-slot__control {
  width: 100%;
  border: none;
  background: transparent;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  padding: 2px 0;
  cursor: pointer;
  outline: none;
}

.filter-range__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-bottom: 8px;
}

.filter-range__inputs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.filter-range__box {
  display: inline-flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding-right: 5px;
  transition: border-color 0.15s ease;
  cursor: text;
}

.filter-range__box:focus-within,
.filter-range__num:focus {
  border-color: #fb6720;
  outline: none;
}

.filter-range__num {
  width: 50px;
  min-width: 0;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background-color: #ffffff;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  padding: 2px 4px;
  line-height: 1.3;
  -moz-appearance: textfield;
  appearance: textfield;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.filter-range__num--price {
  width: 58px;
  border: none;
  background: transparent;
  text-align: right;
  padding: 2px 2px 2px 5px;
}

.filter-range__num::-webkit-inner-spin-button,
.filter-range__num::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.filter-range__num:disabled {
  opacity: 0.7;
  cursor: default;
}

.filter-range__unit {
  font-size: 11px;
  font-weight: 800;
  color: #6b7280;
  line-height: 1;
  user-select: none;
}

.filter-range__dash {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  user-select: none;
}

.filter-slot--range.is-filtered .filter-range__num,
.filter-slot--range.is-filtered .filter-range__unit {
  color: #fb6720;
}

.dual-range {
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
}

.dual-range__track {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background-color: #dcdcdc;
  overflow: hidden;
}

.dual-range__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  border-radius: 999px;
  background-color: #fb6720;
}

.dual-range__input {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 20px;
  margin: 0;
  padding: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.dual-range__input:focus {
  outline: none;
}

.dual-range__input::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
}

.dual-range__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -5px;
  border-radius: 50%;
  background-color: #fb6720;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease;
}

.dual-range__input::-webkit-slider-thumb:hover,
.dual-range__input:active::-webkit-slider-thumb {
  transform: scale(1.16);
  background-color: #f15f27;
}

.dual-range__input::-moz-range-track {
  height: 6px;
  background: transparent;
  border: none;
}

.dual-range__input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #fb6720;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease;
}

.dual-range__input::-moz-range-thumb:hover,
.dual-range__input:active::-moz-range-thumb {
  transform: scale(1.16);
  background-color: #f15f27;
}

.dual-range__input:disabled::-webkit-slider-thumb {
  cursor: default;
  opacity: 0.75;
}

.dual-range__input:disabled::-moz-range-thumb {
  cursor: default;
  opacity: 0.75;
}

.filter-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f3f5;
  min-height: 28px;
}

.filter-meta__count {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
}

.filter-reset-btn {
  border: none;
  background: transparent;
  color: #fb6720;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.filter-reset-btn:hover {
  background-color: #fff3ec;
}

.filter-reset-btn[hidden] {
  display: none;
}

/* Car Grid */
.cars-grid {
  max-width: 1460px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.4vw, 22px);
}

.car-card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  cursor: pointer;
  text-align: left;
}

.car-card:hover,
.car-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--brand-orange);
  outline: none;
}

.car-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #ececec;
}

.car-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.car-card:hover .car-card__img {
  transform: scale(1.03);
}

.car-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(34, 34, 34, 0.85);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.car-card__badge--reserved {
  background: rgba(251, 103, 32, 0.92);
}

.car-card__badge--sold {
  background: rgba(195, 22, 24, 0.9);
}

.car-card__badge--transit {
  background: rgba(34, 122, 200, 0.9);
}

.car-card__video-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(17, 17, 17, 0.84);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.car-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 16px 16px;
}

.car-card__title {
  margin: 0 0 10px;
  text-align: center;
  font-size: clamp(17px, 1.2vw, 21px);
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
}

.car-card__specs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 10px;
  font-size: clamp(13px, 0.95vw, 15px);
  font-weight: 500;
  color: #111111;
}

.car-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.car-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: #f3f3f3;
  padding: 3px 8px;
  border-radius: 6px;
}

.car-card__footer {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding-top: 6px;
}

.car-card__more {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  padding-bottom: 3px;
}

.car-card:hover .car-card__more {
  color: var(--brand-orange);
}

.car-card__price-group {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 0;
}

.car-card__old-price {
  font-size: 13px;
  font-weight: 600;
  color: #767676;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  line-height: 1.15;
  white-space: nowrap;
}

.car-card__price {
  font-size: clamp(20px, 1.4vw, 24px);
  font-weight: 800;
  color: var(--price-red);
  line-height: 1.1;
  white-space: nowrap;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 52px 20px;
  border: 1px dashed var(--border-card);
  border-radius: var(--radius-panel);
  background-color: var(--bg-surface);
}

.empty-state__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}

.empty-state__text {
  margin: 0 auto 20px;
  max-width: 520px;
  color: var(--text-secondary);
}

.empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ========================
   Calculator Section (Lube Avto Replica)
   ======================== */
.calculator-section {
  padding: clamp(34px, 4vw, 60px) 0 clamp(60px, 6.5vw, 96px);
  background-color: #f7f8fa;
}

.calc-container {
  max-width: 1460px;
}

/* Top bar */
.calc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.calc-title {
  margin: 0;
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 800;
  color: #111111;
}

.calc-topbar__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.calc-action-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: none;
  background: transparent;
  color: #222222;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 4px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.calc-action-link:hover {
  opacity: 0.78;
}

.calc-action-link--orange {
  color: #fb6720;
}

/* Main white calculator card */
.calc-shell {
  background-color: #ffffff;
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  padding: clamp(16px, 2vw, 24px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.calc-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.calc-col {
  min-width: 0;
  background-color: #ffffff;
  border: 1px solid #ebebeb;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Column 1 fields */
.la-field {
  position: relative;
  background-color: #f3f4f6;
  border-radius: 8px;
  padding: 7px 12px 9px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.la-field[hidden] {
  display: none;
}

.la-field:focus-within,
.la-field.is-dropdown-open {
  background-color: #ffffff;
  border-color: #fb6720;
}

.la-field__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin-bottom: 2px;
}

.la-select,
.la-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  padding: 2px 0;
  outline: none;
}

.la-select {
  text-transform: uppercase;
  cursor: pointer;
}

.la-select:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.la-input::placeholder {
  color: #9ca3af;
  font-weight: 600;
}

/* Column 2 boxed rows with inline badge */
.la-row-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background-color: #f3f4f6;
  border-radius: 8px;
  padding: 8px 10px 8px 12px;
  border: 1px solid transparent;
}

.la-row-box:focus-within,
.la-row-box.is-dropdown-open {
  border-color: #fb6720;
  background-color: #ffffff;
}

.is-dropdown-open {
  z-index: 45;
}

.la-row-box__main {
  flex: 1;
  min-width: 0;
}

.la-row-box__caption {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 2px;
}

.la-select--inline {
  font-size: 13px;
}

/* Searchable Combobox for US Delivery Locations */
.la-combobox-row {
  position: relative;
}

.la-combo-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: none;
  background: transparent;
  padding: 2px 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #111827;
  text-align: left;
  cursor: pointer;
}

.la-combo-trigger--filter {
  font-size: clamp(14px, 1vw, 15px);
  text-transform: none;
}

.la-combo-trigger:disabled,
.la-combo-trigger.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.la-combo-trigger.is-placeholder {
  color: #9ca3af;
  font-weight: 600;
}

.la-combo-trigger:focus {
  outline: none;
}

.la-native-select-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  margin: 0;
}

.la-combo-trigger__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.la-combo-trigger__arrow {
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.la-combo-trigger[aria-expanded="true"] .la-combo-trigger__arrow {
  transform: rotate(-90deg);
}

.la-combo-popover {
  position: absolute;
  left: 0;
  right: 0;
  min-width: 100%;
  top: calc(100% + 6px);
  z-index: 60;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.la-combo-item__check {
  flex-shrink: 0;
  color: #fb6720;
  font-size: 13px;
  font-weight: 800;
}

.la-combo-popover[hidden] {
  display: none;
}

.la-combo-search-wrap {
  padding: 8px;
  border-bottom: 1px solid #f0f0f0;
  background-color: #fafafa;
}

.la-combo-search {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  background-color: #ffffff;
}

.la-combo-search:focus {
  outline: none;
  border-color: #fb6720;
}

.la-combo-list {
  list-style: none;
  margin: 0;
  padding: 4px;
  max-height: 270px;
  overflow-y: auto;
}

.la-combo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: background-color 0.14s ease;
}

.la-combo-item:hover,
.la-combo-item.is-selected {
  background-color: #fff3ec;
}

.la-combo-item__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.la-combo-item__name {
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.la-combo-item__port {
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
}

.la-combo-item__price {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  color: #fb6720;
}

.la-combo-empty {
  padding: 14px 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

/* Custom manual US yard box */
.la-custom-usa {
  background-color: #fff7f2;
  border: 1px dashed #fb6720;
  border-radius: 8px;
  padding: 10px;
}

.la-custom-usa[hidden] {
  display: none;
}

.la-custom-usa__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px;
}

.la-custom-usa__field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #374151;
}

.la-input--sm,
.la-select--sm {
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 13px;
}

/* Line list & orange price badges */
.la-line-list {
  display: flex;
  flex-direction: column;
  margin-top: 2px;
}

.la-line-list--full {
  margin-top: 0;
}

.la-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 2px;
  border-bottom: 1px solid #efefef;
  font-size: 13px;
  font-weight: 500;
  color: #222222;
}

.la-line:last-child {
  border-bottom: none;
}

.la-line[hidden] {
  display: none;
}

.la-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  background-color: #eaeaea;
  color: #fb6720;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Insurance switch */
.la-line--switch {
  padding-top: 12px;
}

.la-switch-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.la-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.la-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.la-switch__slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background-color: #d1d5db;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.la-switch__slider::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.la-switch input:checked + .la-switch__slider {
  background-color: #fb6720;
}

.la-switch input:checked + .la-switch__slider::before {
  transform: translateX(20px);
}

.calc-commercial-warning,
.calc-port-warning {
  margin: 4px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.calc-commercial-warning {
  background-color: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}

.calc-port-warning {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.calc-commercial-warning[hidden],
.calc-port-warning[hidden] {
  display: none;
}

/* Bottom Orange Gradient Summary Card */
.calc-banner {
  margin-top: 22px;
  border-radius: 18px;
  padding: clamp(20px, 2.6vw, 32px);
  background: linear-gradient(96deg, #eb4a3b 0%, #fb6720 48%, #fba423 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.calc-banner__left {
  flex: 1.25;
  min-width: 0;
}

.calc-banner__title {
  margin: 0 0 10px;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 800;
  color: #ffffff;
}

.calc-banner__desc,
.calc-banner__footnote {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.94);
}

.calc-banner__footnote {
  margin-bottom: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.86);
}

/* Wire transfer pill checkbox */
.wire-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
  cursor: pointer;
  user-select: none;
}

.wire-pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.wire-pill__box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background-color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wire-pill input:checked + .wire-pill__box::after {
  content: "";
  width: 11px;
  height: 6px;
  border-left: 2.5px solid #fb6720;
  border-bottom: 2.5px solid #fb6720;
  transform: rotate(-45deg) translateY(-1px);
}

.wire-pill__label {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.wire-pill__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.88);
  color: #fb6720;
  font-size: 13px;
  font-weight: 800;
}

.calc-banner__right {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 100%;
}

.total-glass {
  min-width: clamp(230px, 24vw, 350px);
  padding: clamp(18px, 2vw, 28px) clamp(24px, 3vw, 42px);
  border-radius: 22px;
  background-color: rgba(255, 255, 255, 0.34);
  text-align: center;
  backdrop-filter: blur(6px);
}

.total-glass__usd {
  font-size: clamp(36px, 3.8vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  color: #ffffff;
  white-space: nowrap;
}

.total-glass__uah {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.calc-bottom-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.cta-gradient-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 280px;
  padding: 14px 28px;
  border-radius: 10px;
  background: linear-gradient(90deg, #fba423 0%, #fb6720 55%, #eb4a3b 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.cta-gradient-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(251, 103, 32, 0.35);
}

/* ========================
   Buttons
   ======================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-control);
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--full {
  width: 100%;
}

.btn--primary {
  background-color: var(--brand-orange);
  color: #ffffff;
}

.btn--primary:hover {
  background-color: var(--brand-orange-hover);
}

.btn--telegram {
  background-color: var(--accent-telegram);
  color: #ffffff;
}

.btn--telegram:hover {
  background-color: #247cd6;
}

.btn--green {
  background-color: var(--accent-green);
  color: #ffffff;
}

.btn--outline {
  background-color: transparent;
  border: 1.5px solid var(--border-card);
  color: var(--text-primary);
}

.btn--outline:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

/* ========================
   Footer
   ======================== */
.site-footer {
  background-color: var(--bg-dark);
  color: #ffffff;
  padding-top: clamp(36px, 4vw, 56px);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
}

.footer-logo {
  width: 170px;
  height: auto;
  margin-bottom: 14px;
}

.footer-text {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
}

.footer-text--muted {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

.footer-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-orange);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.footer-links a:hover {
  color: var(--brand-orange);
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-tg {
  margin-top: 2px;
}

.footer-phone {
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  color: #ffffff;
}

.footer-phone:hover {
  color: var(--accent-green);
}

.footer-tg {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--accent-telegram);
  padding: 8px 14px;
  border-radius: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* ========================
   Car Details Modal
   ======================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overscroll-behavior: contain;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: min(1340px, 100%);
  max-height: 92vh;
  overflow: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background-color: #ffffff;
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-modal);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 5;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background-color: rgba(34, 34, 34, 0.9);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.modal-close svg {
  display: block;
  flex-shrink: 0;
}

.modal-close:hover {
  background-color: var(--brand-orange);
}

.modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(420px, 1fr);
  max-height: 92vh;
}

.modal-media {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background-color: #1a1a1a;
  min-height: 440px;
}

.modal-media__stage {
  position: relative;
  flex: 1;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #141414;
}

.modal-media__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.modal-photo-expand {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background-color: rgba(20, 20, 20, 0.72);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.modal-photo-expand:hover,
.modal-photo-expand:focus-visible {
  background-color: rgba(251, 103, 32, 0.95);
  transform: scale(1.05);
}

.modal-photo-expand[hidden] {
  display: none;
}

.modal-media__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  object-fit: contain;
  display: block;
}

.modal-media__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background-color: #000000;
  display: block;
}

.modal-media__img[hidden],
.modal-media__video[hidden],
.modal-media__iframe[hidden] {
  display: none;
}

.modal-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background-color: rgba(20, 20, 20, 0.72);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
  z-index: 2;
}

.modal-gallery-nav svg {
  display: block;
  flex-shrink: 0;
}

.modal-gallery-nav:hover {
  background-color: rgba(251, 103, 32, 0.95);
}

.modal-gallery-nav[hidden] {
  display: none;
}

.modal-gallery-nav--prev {
  left: 12px;
}

.modal-gallery-nav--next {
  right: 12px;
}

.modal-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background-color: #141414;
  overflow-x: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.32) #141414;
}

.modal-thumbs::-webkit-scrollbar {
  height: 6px;
}

.modal-thumbs::-webkit-scrollbar-track {
  background: #141414;
}

.modal-thumbs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.modal-thumbs[hidden] {
  display: none;
}

.modal-thumb {
  position: relative;
  flex: 0 0 68px;
  width: 68px;
  height: 48px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #222222;
  cursor: pointer;
  opacity: 0.68;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.modal-thumb:hover {
  opacity: 0.95;
}

.modal-thumb.is-active {
  opacity: 1;
  border-color: var(--brand-orange);
}

.modal-thumb img,
.modal-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.modal-thumb__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  font-size: 16px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.modal-body {
  min-width: 0;
  max-height: 92vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: clamp(26px, 2.8vw, 38px) clamp(26px, 3vw, 42px) clamp(26px, 2.8vw, 38px) clamp(24px, 2.4vw, 34px);
}

.modal-badge {
  display: inline-block;
  background-color: rgba(121, 181, 116, 0.16);
  color: #2c6d27;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.modal-badge--reserved {
  background-color: rgba(251, 103, 32, 0.16);
  color: #c84a0b;
}

.modal-badge--sold {
  background-color: rgba(195, 22, 24, 0.14);
  color: #a61113;
}

.modal-badge--transit {
  background-color: rgba(34, 122, 200, 0.16);
  color: #195e9d;
}

.modal-title {
  margin: 0 0 10px;
  padding-right: 44px;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 800;
  line-height: 1.2;
}

.modal-price-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 18px;
}

.modal-old-price {
  font-size: 18px;
  font-weight: 700;
  color: #767676;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  white-space: nowrap;
}

.modal-price-usd {
  font-size: clamp(28px, 2.4vw, 34px);
  font-weight: 800;
  color: var(--price-red);
  white-space: nowrap;
}

.modal-price-uah {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.modal-discount-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background-color: #fff0ea;
  border: 1px solid rgba(241, 95, 39, 0.3);
  color: #d94d18;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.modal-discount-badge:not([hidden]) {
  display: inline-flex;
  align-items: center;
}

.modal-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 0 0 20px;
  padding: 16px 18px;
  background-color: #f7f7f7;
  border-radius: var(--radius-control);
}

.modal-specs__item dt {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.modal-specs__item dd {
  margin: 3px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-description {
  margin: 0 0 22px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-phone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 10px;
}

/* ========================
   Full-screen Photo Lightbox
   ======================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(10, 10, 12, 0.94);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  padding: 16px;
  overscroll-behavior: contain;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  flex-shrink: 0;
}

.lightbox__counter {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox__controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lightbox__zoom-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background-color: rgba(255, 255, 255, 0.1);
}

.lightbox__tool-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: transparent;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.16s ease, opacity 0.16s ease;
}

.lightbox__tool-btn:hover:not(:disabled),
.lightbox__tool-btn:focus-visible:not(:disabled) {
  background-color: var(--brand-orange);
}

.lightbox__tool-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.lightbox__zoom-reset {
  min-width: 52px;
  height: 34px;
  padding: 0 8px;
  border: none;
  border-radius: 999px;
  background-color: transparent;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.lightbox__zoom-reset:hover,
.lightbox__zoom-reset:focus-visible,
.lightbox__zoom-reset.is-active {
  background-color: rgba(255, 255, 255, 0.16);
}

.lightbox__close {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  background-color: var(--brand-orange);
}

.lightbox__stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center center;
  transition: transform 0.16s ease-out;
  will-change: transform;
  cursor: zoom-in;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.lightbox__img.is-zoomed {
  cursor: grab;
}

.lightbox__img.is-panning {
  cursor: grabbing;
  transition: none;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background-color: rgba(20, 20, 20, 0.78);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.lightbox__nav:hover,
.lightbox__nav:focus-visible {
  background-color: var(--brand-orange);
}

.lightbox__nav[hidden] {
  display: none;
}

.lightbox__nav--prev {
  left: 8px;
}

.lightbox__nav--next {
  right: 8px;
}

@media (max-width: 640px) {
  .lightbox {
    padding: 10px;
  }

  .lightbox__controls {
    gap: 6px;
  }

  .lightbox__tool-btn {
    width: 30px;
    height: 30px;
  }

  .lightbox__zoom-reset {
    min-width: 46px;
    height: 30px;
    padding: 0 6px;
    font-size: 11px;
  }

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

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

  .lightbox__nav--prev {
    left: 4px;
  }

  .lightbox__nav--next {
    right: 4px;
  }
}

/* ========================
   Toast
   ======================== */
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  background-color: var(--bg-dark);
  color: #ffffff;
  border-left: 4px solid var(--brand-orange);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.toast[hidden] {
  display: none;
}

/* ========================
   Responsive Breakpoints
   ======================== */
@media (max-width: 1240px) {
  .cars-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .calc-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .main-nav {
    margin-left: 24px;
  }

  .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-slot,
  .filter-slot--year,
  .filter-slot--price {
    grid-column: span 1;
  }

  .filter-slot--sort {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .calc-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .total-glass {
    min-width: 0;
    width: 100%;
  }

  .cars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-card {
    max-width: 720px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .modal-grid {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .modal-media {
    min-height: 0;
  }

  .modal-media__stage {
    flex: none;
    aspect-ratio: 16 / 10;
    min-height: 220px;
    max-height: min(380px, 46vh);
  }

  .modal-body {
    max-height: none;
    overflow-y: visible;
    padding: 22px;
  }

  .modal-close {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .burger-btn {
    display: flex;
  }

  .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 580px) {
  .modal-backdrop {
    padding: 10px;
  }

  .modal-body {
    padding: 18px 16px 20px;
  }

  .modal-title {
    padding-right: 0;
  }

  .filter-bar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .filter-slot,
  .filter-slot--year,
  .filter-slot--price,
  .filter-slot--sort {
    grid-column: auto;
  }

  .filter-bar > *,
  .cars-grid > *,
  .calc-columns > * {
    min-width: 0;
  }

  .filter-slot {
    min-height: 64px;
  }

  .cars-grid {
    grid-template-columns: 1fr;
  }

  .calc-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .calc-shell {
    padding: 12px;
  }

  .calc-col {
    padding: 12px;
  }

  .cta-gradient-btn,
  .calc-bottom-actions .btn {
    min-width: 0;
    width: 100%;
  }

  .la-custom-usa__grid {
    grid-template-columns: 1fr;
  }

  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

/* ========================
   Multi-Page Hero & Shared Cross-CTA
   ======================== */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 48% 88% at 88% 22%, rgba(255, 108, 38, 0.46) 0%, rgba(241, 95, 39, 0.22) 40%, rgba(241, 95, 39, 0) 76%),
    radial-gradient(circle at 96% 85%, rgba(241, 95, 39, 0.26) 0%, rgba(241, 95, 39, 0) 44%),
    linear-gradient(135deg, #1b1b1b 0%, #222222 58%, #1a1a1a 100%);
  color: #ffffff;
  padding: clamp(32px, 4.2vw, 56px) 0;
  border-bottom: 3px solid var(--brand-orange);
}

.page-hero__inner {
  max-width: 1460px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 36px;
  flex-wrap: wrap;
}

.page-hero__content {
  max-width: 780px;
}

.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background-color: rgba(241, 95, 39, 0.16);
  border: 1px solid rgba(241, 95, 39, 0.45);
  color: #ff9c6e;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-hero__eyebrow--bottom {
  margin-top: 14px;
  margin-bottom: 0;
}

.page-hero__title {
  margin: 0 0 10px;
  font-size: clamp(26px, 2.7vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #ffffff;
}

.page-hero__subtitle {
  margin: 0;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn--inverse-outline {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.btn--inverse-outline:hover {
  background-color: rgba(255, 255, 255, 0.16);
  border-color: var(--brand-orange);
  color: #ffffff;
}

/* Cross-Page Callout on Lot & Calculator pages */
.cross-cta-section {
  padding: 0 0 clamp(48px, 6vw, 84px);
  background-color: var(--bg-page);
}

.cross-cta-card {
  max-width: 1460px;
  margin: 0 auto;
  border-radius: var(--radius-panel);
  padding: clamp(22px, 2.8vw, 38px);
  background: linear-gradient(125deg, #222222 0%, #2f2f2f 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

.cross-cta-card__text {
  max-width: 720px;
}

.cross-cta-card__title {
  margin: 0 0 8px;
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 800;
  color: #ffffff;
}

.cross-cta-card__desc {
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}

.cross-cta-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Calculator Info Strip */
.calc-notes-grid {
  max-width: 1460px;
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.calc-note-card {
  background-color: #ffffff;
  border: 1px solid #e7e7e7;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

.calc-note-card__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.calc-note-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ========================
   About Page (Про нас)
   ======================== */
.page-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 12px;
}

.hero-stat-pill {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 14px 16px;
  backdrop-filter: blur(4px);
}

.hero-stat-pill__value {
  display: block;
  font-size: clamp(22px, 1.9vw, 30px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--brand-orange);
}

.hero-stat-pill__label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.about-section {
  padding: clamp(36px, 4.5vw, 68px) 0;
  background-color: var(--bg-page);
}

.about-section--tinted {
  background-color: #f7f8fa;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.about-container {
  max-width: 1460px;
}

.about-story {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 3.2vw, 48px);
  align-items: center;
}

.about-photo-card {
  position: relative;
  border-radius: var(--radius-panel);
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow-card-hover);
  aspect-ratio: 16 / 10;
  background-color: #e5e7eb;
}

.about-photo-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.about-photo-card__badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background-color: rgba(20, 20, 20, 0.86);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  border-left: 3px solid var(--brand-orange);
  backdrop-filter: blur(4px);
}

.about-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-orange);
}

.about-heading {
  margin: 0 0 14px;
  font-size: clamp(24px, 2.1vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
}

.about-heading--center {
  text-align: center;
  margin-bottom: clamp(22px, 2.4vw, 34px);
}

.about-lead {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.about-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.about-checklist li {
  background-color: #f6f7f9;
  border: 1px solid #e7e9ed;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.about-checklist__icon {
  color: var(--brand-orange);
  font-weight: 800;
  flex-shrink: 0;
}

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

.about-step-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.about-step-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: rgba(241, 95, 39, 0.12);
  color: var(--brand-orange);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px;
}

.about-step-card__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
}

.about-step-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.about-visit-card {
  background-color: #ffffff;
  border: 1px solid #e2e4e8;
  border-radius: var(--radius-panel);
  padding: clamp(22px, 3vw, 38px);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 36px;
  align-items: center;
}

.about-visit-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-visit-list li {
  font-size: 15px;
  color: var(--text-secondary);
}

.about-visit-list strong {
  color: var(--text-primary);
}

.about-visit-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-visit-actions__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 10px;
}

.about-visit-actions__row > .btn:only-child {
  grid-column: 1 / -1;
}

/* Full-Range Services Block (About Page) */
.about-services-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px 32px;
  margin-bottom: clamp(24px, 2.8vw, 38px);
}

.about-services__intro {
  max-width: 820px;
}

.about-services__title {
  margin: 0 0 8px;
  font-size: clamp(24px, 2.25vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.about-services__subtitle {
  margin: 0;
  font-size: clamp(15px, 1.3vw, 22px);
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--brand-orange);
}

.about-services__cta {
  flex-shrink: 0;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.about-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 22px);
}

.service-card {
  background-color: #ffffff;
  border: 1px solid #ededf0;
  border-radius: 16px;
  padding: clamp(24px, 2.4vw, 34px) clamp(18px, 2vw, 28px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(241, 95, 39, 0.35);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.07);
}

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  color: var(--brand-orange);
}

.service-card__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.service-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #3f4654;
}

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

  .calc-notes-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .about-story,
  .about-visit-card,
  .about-services-grid {
    grid-template-columns: 1fr;
  }

  .about-services-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-hero__stats {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .about-story > *,
  .about-visit-card > *,
  .about-services-grid > * {
    min-width: 0;
  }

  .about-services__cta {
    white-space: normal;
    width: 100%;
    text-align: center;
  }

  .about-checklist,
  .about-steps-grid,
  .page-hero__stats,
  .about-visit-actions__row {
    grid-template-columns: 1fr;
  }

  .about-visit-actions .btn {
    padding: 12px 12px;
    font-size: 14px;
  }
}
