:root {
  --bg: #f5f3ef;
  --paper: #fffaf3;
  --ink: #171a1f;
  --muted: #68707b;
  --line: rgba(23, 26, 31, .12);
  --accent: #d54224;
  --shadow: 0 22px 60px rgba(24, 31, 42, .12);
  font-family: "Noto Sans", "Segoe UI", Arial, sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { display: block; max-width: 100%; }
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding: 14px clamp(18px, 4vw, 56px); border-bottom: 1px solid var(--line); background: rgba(245,243,239,.9); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; background: var(--ink); color: #fff; font-weight: 800; border-radius: 6px; }
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 12px; margin-top: 2px; }
.main-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; color: #333942; font-size: 14px; }
.main-nav a:hover, .header-phone:hover { color: var(--accent); }
.header-phone { font-weight: 800; white-space: nowrap; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .7fr); gap: clamp(28px, 5vw, 70px); align-items: center; min-height: calc(100vh - 76px); padding: clamp(42px, 7vw, 92px) clamp(18px, 4vw, 56px); }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-weight: 800; letter-spacing: 0; text-transform: uppercase; font-size: 12px; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 880px; margin-bottom: 22px; font-size: clamp(42px, 6.3vw, 60px); line-height: .95; letter-spacing: 0; }
h2 { margin-bottom: 18px; font-size: clamp(32px, 4vw, 40px); line-height: 1; letter-spacing: 0; }
h3 { margin-bottom: 10px; font-size: 21px; line-height: 1.16; }
.hero-lead { max-width: 720px; color: #444c57; font-size: clamp(18px, 2vw, 22px); line-height: 1.45; }
.hero-actions, .catalog-toolbar { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--line); border-radius: 6px; font-weight: 800; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(23,26,31,.14); }
.button.primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.button.ghost { background: rgba(255,255,255,.48); }
.button.full { width: 100%; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 40px 0 0; }
.hero-stats div { padding-top: 16px; border-top: 1px solid var(--line); }
.hero-stats dt { font-weight: 900; font-size: 22px; }
.hero-stats dd { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.35; }
.hero-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); box-shadow: var(--shadow); }
.hero-image { min-height: 360px; background: linear-gradient(180deg, rgba(23,26,31,.05), rgba(23,26,31,.2)), url("https://images.unsplash.com/photo-1619767886558-efdc259cde1a?auto=format&fit=crop&w=1200&q=82") center/cover; }
.quick-request, .calculator { display: grid; gap: 14px; padding: 20px; }
label { display: grid; gap: 7px; color: #313841; font-weight: 800; font-size: 13px; }
input, select { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); padding: 0 12px; font: inherit; }
.section { padding: clamp(42px, 6vw, 86px) clamp(18px, 4vw, 56px); }
.market-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--ink); padding-top: 1px; padding-bottom: 1px; }
.market-strip article { min-height: 210px; padding: clamp(24px, 4vw, 42px); background: #22262d; color: #fff; }
.market-strip span { display: inline-block; margin-bottom: 18px; color: #f2ad5f; font-weight: 900; }
.market-strip strong { display: block; font-size: 28px; line-height: 1; }
.market-strip p { margin: 18px 0 0; color: rgba(255,255,255,.72); line-height: 1.45; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.split p:not(.eyebrow), .calculator-copy p { max-width: 650px; color: var(--muted); line-height: 1.55; }
.chip { min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.5); color: #343b44; font-weight: 800; cursor: pointer; }
.chip.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.car-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 0 clamp(18px, 4vw, 56px) clamp(42px, 6vw, 86px); }
.car-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); box-shadow: 0 10px 32px rgba(24,31,42,.08); }
.car-photo { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; background-color: #11161d; background-position: center; background-size: cover; }
.photo-loader { position: absolute; z-index: 1; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 3px solid rgba(31,91,216,.18); border-top-color: #1f5bd8; border-radius: 50%; animation: photoLoaderSpin .75s linear infinite; pointer-events: none; }
.car-photo:not(.image-loading) .photo-loader { display: none; }
.car-photo.image-loading img { opacity: 0; }
.car-photo img { opacity: 1; transition: opacity .22s ease, transform .45s ease; }
@keyframes photoLoaderSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .photo-loader { animation-duration: 1.5s; } }
.car-body { padding: 18px; }
.car-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; color: var(--muted); font-size: 13px; }
.car-meta span { padding: 7px 9px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.car-price { display: flex; justify-content: space-between; gap: 14px; align-items: center; font-weight: 900; font-size: 22px; }
.country-tag { color: var(--accent); font-size: 13px; text-transform: uppercase; }
.calculator-section { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, .65fr); gap: clamp(28px, 5vw, 70px); background: #e7ece8; }
.calculator { border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.calculator-total { display: block; padding: 20px; border-radius: 6px; background: var(--ink); color: #fff; font-weight: 900; font-size: 28px; }
.countries { display: grid; gap: 18px; }
.countries article { display: grid; grid-template-columns: minmax(260px, .45fr) minmax(0, 1fr); align-items: stretch; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.countries img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.countries div { padding: clamp(24px, 4vw, 42px); }
.countries p:not(.eyebrow), .process p, .contacts p { color: var(--muted); line-height: 1.55; }
.process { background: var(--ink); color: #fff; }
.process .eyebrow { color: #f2ad5f; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 30px; background: rgba(255,255,255,.18); }
.steps article { min-height: 220px; padding: 26px; background: #22262d; }
.steps span { display: block; margin-bottom: 34px; color: #f2ad5f; font-weight: 900; }
.steps p { color: rgba(255,255,255,.7); }
.contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: 24px; align-items: start; }
.contact-card { padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); box-shadow: var(--shadow); }
.contact-card > a:first-child { display: block; margin-bottom: 14px; font-size: 28px; font-weight: 900; }
.site-footer { display: flex; justify-content: space-between; gap: 18px; padding: 28px clamp(18px, 4vw, 56px); border-top: 1px solid var(--line); color: var(--muted); }
@media (max-width: 980px) { .site-header { align-items: flex-start; flex-direction: column; } .hero, .calculator-section, .contacts { grid-template-columns: 1fr; } .hero { min-height: 0; } .market-strip, .car-grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .main-nav { justify-content: flex-start; gap: 12px; } .hero-stats, .market-strip, .car-grid, .steps { grid-template-columns: 1fr; } .countries article { grid-template-columns: 1fr; } h1 { font-size: 30px; } .hero-image { min-height: 260px; } .site-footer { flex-direction: column; } }

.page-hero {
  padding: clamp(54px, 8vw, 110px) clamp(18px, 4vw, 56px);
  background: var(--ink);
  color: #fff;
}

.page-hero.compact-hero { min-height: 420px; display: flex; align-items: center; }
.page-hero p:not(.eyebrow) { max-width: 760px; color: rgba(255,255,255,.72); font-size: 20px; line-height: 1.5; }
.catalog-workspace { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 28px; align-items: start; }
.filter-panel { position: sticky; top: 96px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); box-shadow: 0 10px 34px rgba(24,31,42,.08); }
.filter-panel form { display: grid; gap: 14px; }
.results-head { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 20px; }
.results-head strong { white-space: nowrap; padding: 11px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.inner-grid { padding: 0; }
.empty-state { grid-column: 1 / -1; padding: 36px; border: 1px dashed var(--line); border-radius: 8px; background: rgba(255,255,255,.55); color: var(--muted); }
.detail-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .65fr); min-height: calc(100vh - 76px); background: var(--ink); color: #fff; }
.detail-gallery img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.detail-summary { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 5vw, 64px); }
.detail-summary p:not(.eyebrow) { color: rgba(255,255,255,.72); line-height: 1.55; }
.detail-price { margin: 24px 0; font-weight: 900; font-size: clamp(36px, 5vw, 62px); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.detail-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.detail-grid div { min-height: 118px; padding: 18px; background: var(--paper); }
.detail-grid span { display: block; margin-bottom: 16px; color: var(--muted); font-size: 13px; }
.detail-grid strong { font-size: 20px; }
.solo { min-height: calc(100vh - 76px); align-items: center; }
.rc-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.value-grid article { padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.value-grid span { display: block; margin-bottom: 34px; color: var(--accent); font-weight: 900; }
.value-grid p { color: var(--muted); line-height: 1.55; }
.tariff-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 26px; background: rgba(255,255,255,.18); }
.tariff-row div { padding: 28px; background: #22262d; }
.tariff-row strong { display: block; margin-bottom: 8px; font-size: 32px; }
.tariff-row span { color: rgba(255,255,255,.7); }
.contact-page { min-height: calc(100vh - 76px); align-items: center; }
.contact-list { display: grid; gap: 16px; margin: 30px 0 0; }
.contact-list div { padding-top: 16px; border-top: 1px solid var(--line); }
.contact-list dt { color: var(--muted); font-size: 13px; font-weight: 800; }
.contact-list dd { margin: 7px 0 0; font-size: 20px; font-weight: 800; }
.contact-card .button + .button { margin-top: 10px; }

@media (max-width: 980px) {
  .catalog-workspace, .detail-hero { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .detail-grid, .value-grid, .tariff-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .detail-grid, .value-grid, .tariff-row, .rc-grid2 { grid-template-columns: 1fr; }
  .results-head { align-items: flex-start; flex-direction: column; }
  .detail-gallery img { min-height: 320px; }
}

/* Motorcycle catalog */
.home-bike-catalog {
  margin-top: clamp(28px, 4vw, 58px);
  padding-top: clamp(34px, 5vw, 72px);
  border-top: 1px solid #dce5ef;
}
.home-bike-catalog .home-catalog-head h2 { font-size: clamp(34px, 4vw, 58px); }
.home-bike-catalog .home-catalog-head p:not(.eyebrow) { max-width: 720px; margin: 8px 0 0; color: #627083; }
.home-car-grid.bike-home-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bike-home-grid .car-card h3 { font-size: clamp(18px, 1.3vw, 23px); }
.bike-home-grid .bike-card .car-photo { min-height: 220px; }
.bike-card .car-photo { aspect-ratio: 4 / 3; background: linear-gradient(145deg, #edf2f7, #dfe7ef); }
.bike-card .car-photo img { object-fit: contain; background: #eef3f7; }
.bike-card .country-tag { color: #bc4e21; }
.bike-card .car-price span { font-size: clamp(17px, 1.4vw, 22px); }
.bike-catalog-hero {
  background: radial-gradient(circle at 80% 15%, rgba(235, 95, 35, .18), transparent 34%), linear-gradient(135deg, #0e1b2d 0%, #183553 100%);
  color: #fff;
}
.bike-catalog-hero .eyebrow { color: #ffad87; }
.bike-catalog-hero p { color: rgba(255,255,255,.78); }
.bike-catalog-workspace .filter-panel { border-top: 4px solid #e66a32; }
.bike-mode-panel { border-color: #e0e8f0; background: #f7f9fc; }
.bike-catalog-grid .car-card { min-width: 0; }
.bike-type-section {
  width: min(1600px, calc(100% - 32px));
  margin: clamp(24px, 4vw, 52px) auto 0;
  padding: clamp(24px, 3vw, 42px);
  border: 1px solid #e1e7ee;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(16,35,60,.08);
}
.bike-type-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.bike-type-heading h2 { margin: 4px 0 0; font-size: clamp(27px, 3vw, 42px); }
.bike-type-heading > p { max-width: 560px; margin: 0; color: var(--muted); line-height: 1.55; }
.bike-type-picker { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.bike-type-picker button {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 132px;
  padding: 17px 10px 14px;
  border: 1px solid #dfe6ee;
  border-radius: 17px;
  background: #f7f9fc;
  color: #263343;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.bike-type-picker button:hover { transform: translateY(-2px); border-color: #9ab6df; box-shadow: 0 10px 24px rgba(38,78,138,.12); }
.bike-type-picker button.is-active { border-color: #2f69c4; background: #edf4ff; box-shadow: inset 0 0 0 1px #2f69c4; color: #174eaa; }
.bike-type-picker strong { font-size: 13px; line-height: 1.25; text-align: center; }
.bike-type-art { position: relative; display: flex; align-items: center; justify-content: center; width: min(100%, 154px); height: 78px; }
.bike-type-art > img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; filter: drop-shadow(0 7px 6px rgba(20,37,61,.16)); transition: transform .2s ease; }
.bike-type-picker button:hover .bike-type-art > img { transform: scale(1.04); }
.bike-type-collage > img { position: absolute; width: 78%; height: 72%; }
.bike-type-collage > img:nth-child(1) { left: -4%; bottom: 1px; transform: rotate(-2deg); }
.bike-type-collage > img:nth-child(2) { left: 22%; bottom: 10px; z-index: 2; }
.bike-type-collage > img:nth-child(3) { right: -7%; bottom: 1px; transform: rotate(2deg); }
.bike-type-picker button:hover .bike-type-collage > img:nth-child(1) { transform: rotate(-2deg) translateX(-2px); }
.bike-type-picker button:hover .bike-type-collage > img:nth-child(2) { transform: translateY(-2px); }
.bike-type-picker button:hover .bike-type-collage > img:nth-child(3) { transform: rotate(2deg) translateX(2px); }
.bike-brand-panel { display: grid; grid-template-columns: minmax(190px, .45fr) minmax(0, 1.55fr); gap: 22px; align-items: center; margin-bottom: 18px; padding: 22px; border: 1px solid #e3e9ef; border-radius: 20px; background: #fff; }
.bike-brand-panel h2 { margin: 4px 0 0; font-size: clamp(21px, 2vw, 29px); }
.bike-brand-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; }
.bike-brand-shortcuts button { padding: 9px 13px; border: 1px solid #dfe6ed; border-radius: 999px; background: #f8fafc; color: #334155; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.bike-brand-shortcuts button:hover, .bike-brand-shortcuts button.is-active { border-color: #2f69c4; background: #2f69c4; color: #fff; }
.bike-detail-page .detail-shell {
  display: grid;
  gap: clamp(22px, 2.4vw, 34px);
  width: min(1600px, calc(100% - 40px));
  max-width: none;
}
.bike-detail-page .detail-breadcrumbs,
.bike-detail-page .detail-two-col,
.bike-detail-page .bike-calc-promo,
.bike-detail-page .similar-section { margin: 0; }
.bike-overview-card { grid-template-columns: minmax(0, 1.34fr) minmax(390px, .66fr); align-items: stretch; padding: clamp(24px, 3vw, 48px); }
.bike-gallery { background: #edf2f6; }
.bike-gallery .gallery-main, .bike-gallery .gallery-main img { min-height: 680px; }
.bike-gallery .gallery-main img { object-fit: contain; background: #edf2f6; }
.bike-info-panel { display: flex; flex-direction: column; }
.bike-price-panel {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  margin: 4px 0 18px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #10243c, #1d4b78);
}
.bike-price-panel span { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #9fb6cf; }
.bike-price-panel strong { font-size: clamp(26px, 3vw, 42px); line-height: 1.05; }
.bike-price-panel small { color: #d8e6f3; }
.bike-auction-brief { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 18px 0; }
.bike-auction-brief div { display: grid; gap: 4px; padding: 13px 14px; border: 1px solid #dfe6ed; border-radius: 13px; background: #fff; }
.bike-auction-brief span, .bike-yen-prices span { color: #7b8795; font-size: 11px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.bike-auction-brief strong { color: #1c2735; font-size: 15px; overflow-wrap: anywhere; }
.bike-lot-status { color: #9c5b11 !important; }
.bike-lot-status.is-completed { color: #167649 !important; }
.bike-yen-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0 0 18px; }
.bike-yen-prices div { display: grid; gap: 5px; padding: 12px 14px; border-radius: 13px; background: #e9eef4; }
.bike-yen-prices strong { color: #263444; font-size: 16px; }
.detail-two-col.bike-detail-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
.bike-detail-grid .soft-card { height: auto; }
.bike-auction-details-card h3 { margin: 30px 0 16px; font-size: clamp(22px, 2vw, 28px); }
.bike-auction-details-card .bike-auction-spec-card { margin-bottom: 0; }
.bike-auction-details-card .bike-full-spec-card { margin-bottom: 18px; }
.bike-auction-details-card .vehicle-actions { margin-top: 0; }
.bike-calc-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 30px;
  color: #162232;
  background: #fff;
}
.bike-calc-promo .eyebrow { color: #ef6a35 !important; }
.bike-calc-promo h2 { margin: 4px 0 8px; color: #162232 !important; }
.bike-calc-promo p { max-width: 760px; margin: 0; color: #5d6a79 !important; }
.bike-calc-promo .button { flex: 0 0 auto; }
.bike-calc-promo .button.primary { border-color: #ff5a1f; background: #ff5a1f; color: #fff !important; }
.bike-calc-promo .button.primary:hover { border-color: #e54b13; background: #e54b13; }
.bike-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.bike-section-heading h2 { margin: 4px 0 0; }
.bike-section-heading > p { max-width: 620px; margin: 0; color: var(--muted); line-height: 1.55; }
.bike-condition-section,
.bike-video-section { padding: clamp(24px, 3vw, 42px); border-radius: 24px; background: #fff; box-shadow: 0 18px 50px rgba(16,35,60,.09); }
.bike-condition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; }
.bike-condition-card { min-width: 0; overflow: hidden; border: 1px solid #e0e7ee; border-radius: 18px; background: #f8fafc; }
.bike-condition-card > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; }
.bike-condition-card h3 { margin: 2px 0 0; font-size: clamp(19px, 2vw, 25px); }
.bike-condition-card .eyebrow { margin: 0; }
.bike-condition-score { display: grid; flex: 0 0 46px; width: 46px; height: 46px; place-items: center; border-radius: 14px; background: #e8f7ee; color: #19864c; font-size: 21px; font-weight: 900; }
.bike-condition-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 0 8px 8px; }
.bike-condition-photos button { position: relative; aspect-ratio: 4 / 3; min-width: 0; overflow: hidden; padding: 0; border: 0; border-radius: 9px; background: #dfe6ed; cursor: zoom-in; }
.bike-condition-photos img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s ease, transform .25s ease; }
.bike-condition-photos button.is-loaded img { opacity: 1; }
.bike-photo-loader { position: absolute; inset: 50% auto auto 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border: 3px solid rgba(31,103,200,.18); border-top-color: #1f67c8; border-radius: 50%; animation: bike-photo-spin .8s linear infinite; }
.bike-condition-photos button.is-loaded .bike-photo-loader { display: none; }
@keyframes bike-photo-spin { to { transform: rotate(360deg); } }
.bike-condition-photos button:hover img { transform: scale(1.035); }
.bike-condition-notes { display: grid; margin: 0; padding: 6px 20px 18px; }
.bike-condition-notes div { display: grid; grid-template-columns: minmax(120px, .8fr) minmax(0, 1.2fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid #e2e8ee; }
.bike-condition-notes div:last-child { border-bottom: 0; }
.bike-condition-notes dt { color: #243343; font-weight: 800; }
.bike-condition-notes dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.bike-condition-empty { margin: 0; padding: 4px 20px 20px; color: var(--muted); }
.bike-report-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 420px); align-items: center; gap: 30px; }
.bike-report-section h2 { margin: 4px 0 12px; }
.bike-report-section p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.65; white-space: pre-line; }
.bike-report-section button { overflow: hidden; padding: 0; border: 1px solid #dfe7ef; border-radius: 14px; background: #eef3f7; cursor: zoom-in; }
.bike-report-section img { display: block; width: 100%; max-height: 360px; object-fit: contain; }
.bike-video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.bike-video-grid article { min-width: 0; padding: 10px 10px 18px; border: 1px solid #e0e7ee; border-radius: 18px; background: #f8fafc; }
.bike-video-frame { overflow: hidden; aspect-ratio: 16 / 9; border-radius: 12px; background: #07111d; }
.bike-video-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #07111d; }
.bike-video-grid h3 { margin: 15px 8px 4px; font-size: 19px; }
.bike-video-grid p { margin: 0 8px; color: var(--muted); font-size: 13px; }

@media (max-width: 1280px) {
  .home-car-grid.bike-home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .home-car-grid.bike-home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bike-overview-card { grid-template-columns: minmax(0, 1fr); }
  .bike-gallery .gallery-main, .bike-gallery .gallery-main img { min-height: 520px; }
  .bike-type-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bike-brand-panel { grid-template-columns: minmax(0, 1fr); }
  .bike-condition-grid { grid-template-columns: minmax(0, 1fr); }
  .bike-report-section { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .home-car-grid.bike-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .bike-calc-promo { align-items: flex-start; flex-direction: column; }
  .bike-calc-promo .button { width: 100%; }
  .bike-gallery .gallery-main, .bike-gallery .gallery-main img { min-height: 280px; }
  .bike-section-heading { align-items: flex-start; flex-direction: column; }
  .bike-video-grid { grid-template-columns: minmax(0, 1fr); }
  .bike-condition-section, .bike-video-section { padding: 18px 12px; border-radius: 18px; }
  .bike-condition-card > header { padding: 16px; }
  .bike-condition-notes { padding-right: 16px; padding-left: 16px; }
  .bike-condition-notes div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .bike-detail-page .detail-shell { gap: 18px; }
  .bike-detail-page .detail-shell { width: min(100% - 20px, 1600px); }
  .bike-type-section { width: calc(100% - 20px); padding: 18px 12px; border-radius: 20px; }
  .bike-type-heading { align-items: flex-start; flex-direction: column; }
  .bike-type-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .bike-type-picker button { min-height: 118px; padding: 13px 8px; }
  .bike-auction-brief, .bike-yen-prices { grid-template-columns: minmax(0, 1fr); }
}

.request-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 480px); gap: clamp(28px, 5vw, 70px); align-items: center; min-height: calc(100vh - 76px); }
.request-section p { max-width: 680px; color: var(--muted); font-size: 20px; line-height: 1.5; }
.request-card { display: grid; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); box-shadow: var(--shadow); }
textarea { width: 100%; resize: vertical; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); padding: 12px; font: inherit; }
.mini-checks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.mini-checks span { padding: 10px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 800; font-size: 14px; }
@media (max-width: 980px) { .request-section { grid-template-columns: 1fr; } }

.car-trim { min-height: 42px; margin: -2px 0 12px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.source-price { margin: 0 0 12px; color: var(--muted); font-size: 13px; font-weight: 700; }
.loading-state { color: var(--ink); font-weight: 800; }
.detail-gallery { position: relative; background: #0d1117; }
.detail-gallery > img { width: 100%; height: 100%; min-height: 620px; object-fit: cover; }
.thumb-row { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; gap: 8px; overflow-x: auto; padding: 8px; border-radius: 8px; background: rgba(0,0,0,.48); backdrop-filter: blur(12px); }
.thumb-row button { flex: 0 0 74px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 5px; overflow: hidden; background: transparent; cursor: pointer; opacity: .72; }
.thumb-row button.active { border-color: var(--accent); opacity: 1; }
.thumb-row img { width: 100%; height: 100%; object-fit: cover; }
.options-section { background: #fff; }
.option-list { display: flex; flex-wrap: wrap; gap: 10px; }
.option-list span { padding: 10px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: #343b44; font-size: 13px; font-weight: 700; }
@media (max-width: 680px) { .detail-gallery > img { min-height: 360px; } .thumb-row { position: static; border-radius: 0; } }

/* Home redesign: layered header and cinematic hero */
.home-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  background: #0c1014;
  color: #fff;
  backdrop-filter: none;
}

.header-bluebar,
.header-servicebar,
.header-mainbar {
  padding-left: clamp(18px, 5vw, 92px);
  padding-right: clamp(18px, 5vw, 92px);
}

.header-bluebar {
  background: #2f69c4;
}

.primary-tabs {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 32px);
  min-height: 56px;
  overflow-x: auto;
  white-space: nowrap;
  font-weight: 800;
}

.primary-tabs a {
  padding: 12px 15px;
  border-radius: 8px;
  color: rgba(255,255,255,.92);
}

.primary-tabs a.active {
  background: rgba(255,255,255,.32);
  color: #fff;
}

.header-servicebar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 76px;
  border-bottom: 1px solid rgba(255,255,255,.22);
  background: #0d1115;
}

.location-pill {
  color: #fff;
  font-weight: 700;
}

.location-pill::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 14px;
  margin-right: 10px;
  border-radius: 9px 9px 9px 0;
  background: #2f69c4;
  transform: rotate(-45deg) translateY(1px);
}

.service-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  color: rgba(255,255,255,.64);
  font-size: 15px;
}

.service-nav a:hover { color: #fff; }

.social-row {
  display: flex;
  gap: 10px;
}

.social-row a,
.round-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.header-mainbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
  min-height: 96px;
  background: #0d1115;
}

.home-header .brand { min-width: 220px; color: #fff; }
.home-header .brand-mark { width: 36px; height: 36px; border-radius: 50%; background: #1d5fde; font-size: 13px; }
.home-header .brand small { color: rgba(255,255,255,.66); }
.home-header .main-nav { justify-content: flex-start; gap: clamp(18px, 3vw, 42px); color: #fff; font-size: 15px; font-weight: 800; }
.home-header .main-nav a { max-width: 130px; line-height: 1.15; text-align: center; }
.home-header .main-nav a:hover { color: #8fb6ff; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.round-call.whatsapp { border-color: #2bdc4b; background: #26c943; color: #07110a; }
.client-social-link { flex: 0 0 auto; text-decoration: none; }
.client-social-link svg { display: block; width: 21px; height: 21px; fill: currentColor; }
.client-social-link.social-telegram { border-color: #249bd7; background: #249bd7; color: #fff; }
.client-social-link.social-max { border-color: #7357ff; background: #7357ff; color: #fff; }
.client-social-link.social-max span { font-size: 8px; font-weight: 950; letter-spacing: -.04em; }
.header-actions .button { min-height: 44px; border-radius: 9px; padding-inline: 20px; background: #2f69c4; border-color: #2f69c4; }

.hero-redesign {
  position: relative;
  display: block;
  min-height: calc(100vh - 228px);
  padding: clamp(78px, 10vw, 150px) clamp(18px, 5vw, 92px) clamp(44px, 6vw, 86px);
  overflow: hidden;
  background:
    linear-gradient(90deg, #07090b 0%, rgba(7,9,11,.96) 32%, rgba(7,9,11,.67) 55%, rgba(7,9,11,.25) 100%),
    radial-gradient(circle at 70% 58%, rgba(47,105,196,.33), transparent 38%),
    #090d10;
  color: #fff;
}

.hero-redesign::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.75));
  pointer-events: none;
}

.hero-redesign .hero-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-redesign .eyebrow {
  color: #8fb6ff;
  margin-bottom: 18px;
  font-size: 13px;
}

.hero-redesign h1 {
  max-width: 660px;
  margin-bottom: 34px;
  color: #fff;
  font-size: clamp(43px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 850;
}

.hero-note {
  max-width: 600px;
  margin-bottom: 22px;
  padding: 28px 30px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(64,64,64,.72);
  box-shadow: 0 20px 60px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
}

.hero-note p {
  margin: 0;
  color: #fff;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.45;
}

.hero-redesign .hero-actions { margin-top: 0; }
.hero-cta { min-width: 245px; min-height: 62px; border-radius: 8px; background: #2f69c4; border-color: #2f69c4; font-size: 20px; }
.hero-ghost { min-height: 62px; border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.08); color: #fff; }

.hero-vehicle {
  position: absolute;
  z-index: 1;
  right: -4vw;
  bottom: -4vw;
  width: min(62vw, 1050px);
  height: min(52vw, 720px);
  filter: drop-shadow(0 36px 40px rgba(0,0,0,.42));
}

.hero-vehicle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right;
  border-radius: 0;
  mix-blend-mode: screen;
  opacity: .9;
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 100%);
}

@media (max-width: 1100px) {
  .header-servicebar,
  .header-mainbar { grid-template-columns: 1fr; gap: 14px; padding-top: 16px; padding-bottom: 16px; }
  .service-nav, .home-header .main-nav { justify-content: flex-start; flex-wrap: wrap; }
  .header-actions { justify-content: flex-start; }
  .hero-redesign { min-height: 680px; }
  .hero-vehicle { width: 76vw; height: 54vw; opacity: .55; }
}

@media (max-width: 680px) {
  .header-bluebar, .header-servicebar, .header-mainbar { padding-left: 16px; padding-right: 16px; }
  .primary-tabs { min-height: 52px; font-size: 15px; }
  .service-nav { display: none; }
  .social-row { display: none; }
  .home-header .main-nav { display: none; }
  .header-actions .button { flex: 1; }
  .hero-redesign { min-height: 640px; padding-top: 72px; }
  .hero-redesign h1 { font-size: 30px; }
  .hero-note { padding: 22px; }
  .hero-note p { font-size: 18px; }
  .hero-vehicle { right: -34vw; bottom: 20px; width: 115vw; height: 70vw; opacity: .42; }
  .hero-cta, .hero-ghost { width: 100%; }
}

.car-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Compact real-world header */
.compact-header {
  display: block;
  padding: 0;
  border: 0;
  background: #0d1115;
  color: #fff;
}
.compact-topbar,
.compact-mainbar {
  padding-left: clamp(18px, 5vw, 92px);
  padding-right: clamp(18px, 5vw, 92px);
}
.compact-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 42px;
  background: #111821;
  color: rgba(255,255,255,.72);
  font-size: 14px;
}
.compact-topbar a { color: #fff; font-weight: 800; }
.compact-mainbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  min-height: 78px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: #0d1115;
}
.compact-header .brand { min-width: 220px; color: #fff; }
.compact-header .brand-mark { width: 38px; height: 38px; border-radius: 50%; background: #2f69c4; font-size: 13px; }
.compact-header .brand small { color: rgba(255,255,255,.62); }
.compact-header .main-nav { justify-content: center; gap: clamp(14px, 2vw, 26px); color: rgba(255,255,255,.86); font-size: 15px; font-weight: 800; }
.compact-header .main-nav a { max-width: none; line-height: 1; text-align: center; }
.compact-header .main-nav a.active,
.compact-header .main-nav a:hover { color: #8fb6ff; }
.compact-header .header-actions { display: flex; align-items: center; gap: 10px; }
.compact-header .header-actions .button { min-height: 42px; border-radius: 8px; padding-inline: 18px; background: #2f69c4; border-color: #2f69c4; }
.compact-header .round-call { width: 40px; height: 40px; }
@media (max-width: 980px) {
  .compact-mainbar { grid-template-columns: 1fr; padding-top: 14px; padding-bottom: 14px; }
  .compact-header .main-nav { justify-content: flex-start; flex-wrap: wrap; }
  .compact-header .header-actions { justify-content: flex-start; }
}
@media (max-width: 680px) {
  .compact-topbar { align-items: flex-start; flex-direction: column; padding-top: 10px; padding-bottom: 10px; gap: 5px; }
  .compact-header .main-nav { gap: 12px 16px; font-size: 14px; }
  .compact-header .header-actions { width: 100%; }
  .compact-header .header-actions .button { flex: 1; }
}

/* Detail gallery and site motion */
@keyframes amvFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes amvSoftIn {
  from { opacity: 0; transform: scale(.985); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes amvOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.car-card, .market-strip article, .countries article, .value-grid article, .contact-card, .calculator, .filter-panel { transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease; }
.car-card:hover, .countries article:hover, .value-grid article:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(24,31,42,.14); }
.fade-section, .reveal-on-load { animation: amvFadeUp .55s ease both; }

.detail-hero-updated { min-height: calc(100vh - 120px); }
.detail-gallery { position: relative; overflow: hidden; background: #090d12; }
.gallery-main { display: block; width: 100%; height: 100%; min-height: 640px; padding: 0; border: 0; background: #090d12; cursor: zoom-in; }
.gallery-main img, .detail-gallery > img { display: block; width: 100%; height: 100%; min-height: 640px; object-fit: cover; object-position: center; transition: opacity .18s ease, transform .45s ease; }
.gallery-main:hover img { transform: scale(1.025); }
#mainCarPhoto { opacity: 0; }
#mainCarPhoto.is-visible { opacity: 1; }
.gallery-open-label { position: absolute; left: 22px; top: 22px; padding: 10px 13px; border-radius: 999px; background: rgba(0,0,0,.54); color: #fff; font-size: 13px; font-weight: 800; backdrop-filter: blur(10px); }
.gallery-count { position: absolute; right: 22px; top: 22px; padding: 10px 13px; border-radius: 999px; background: rgba(0,0,0,.54); color: #fff; font-size: 13px; font-weight: 900; backdrop-filter: blur(10px); }
.gallery-arrow { position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; width: 48px; height: 58px; border: 1px solid rgba(255,255,255,.32); border-radius: 8px; background: rgba(0,0,0,.42); color: #fff; font-size: 42px; line-height: 1; cursor: pointer; transform: translateY(-50%); transition: background .2s ease, transform .2s ease; backdrop-filter: blur(10px); }
.gallery-arrow:hover { background: rgba(47,105,196,.82); transform: translateY(-50%) scale(1.04); }
.gallery-prev { left: 18px; }
.gallery-next { right: 18px; }
.thumb-row { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; gap: 9px; overflow-x: auto; padding: 9px; border-radius: 8px; background: rgba(0,0,0,.52); backdrop-filter: blur(14px); scrollbar-width: thin; }
.thumb-row button { flex: 0 0 86px; width: 86px; height: 62px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #11161d; cursor: pointer; opacity: .68; transition: opacity .18s ease, border-color .18s ease, transform .18s ease; }
.thumb-row button:hover { opacity: .92; transform: translateY(-3px); }
.thumb-row button.active { border-color: #2f69c4; opacity: 1; }
.thumb-row img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.photo-lightbox { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: rgba(2,4,7,.94); animation: amvOverlayIn .18s ease both; }
.photo-lightbox img { max-width: min(94vw, 1500px); max-height: 88vh; object-fit: contain; box-shadow: 0 30px 90px rgba(0,0,0,.55); }
.lightbox-close, .lightbox-nav { position: fixed; z-index: 1001; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; backdrop-filter: blur(12px); transition: background .2s ease, transform .2s ease; }
.lightbox-close { top: 22px; right: 24px; width: 48px; height: 48px; border-radius: 50%; font-size: 34px; line-height: 1; }
.lightbox-nav { top: 50%; width: 58px; height: 72px; border-radius: 10px; font-size: 54px; transform: translateY(-50%); }
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(47,105,196,.8); }
.lightbox-counter { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font-weight: 900; backdrop-filter: blur(12px); }
body.is-lightbox-open { overflow: hidden; }

@media (max-width: 980px) {
  .gallery-main, .gallery-main img, .detail-gallery > img { min-height: 520px; }
}

@media (max-width: 680px) {
  .gallery-main, .gallery-main img, .detail-gallery > img { min-height: 360px; }
  .thumb-row { position: static; border-radius: 0; }
  .gallery-arrow { width: 42px; height: 50px; font-size: 34px; }
  .photo-lightbox img { max-width: 100vw; max-height: 82vh; }
  .lightbox-nav { width: 46px; height: 58px; font-size: 42px; }
  .lightbox-nav.prev { left: 10px; }
  .lightbox-nav.next { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
.thumb-row img { min-height: 0 !important; }

/* ES-style vehicle detail layout for AutoMotoVoz */
.car-detail-page {
  background: #f5f5f3;
  color: #16191f;
  padding: clamp(24px, 4vw, 54px) 0 clamp(54px, 7vw, 96px);
}
.detail-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.detail-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #89909b;
  font-size: 13px;
  font-weight: 700;
}
.detail-breadcrumbs a { color: #6d7480; }
.detail-breadcrumbs a:hover { color: #1d62c2; }
.vehicle-overview-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .82fr);
  gap: clamp(22px, 3.3vw, 44px);
  align-items: start;
  padding: clamp(22px, 3.5vw, 42px);
  border-radius: 24px;
  background: #eeeeec;
  box-shadow: 0 16px 50px rgba(23, 28, 37, .06);
}
.vehicle-gallery {
  overflow: visible;
  background: transparent;
}
.vehicle-gallery .gallery-main {
  position: relative;
  min-height: 430px;
  border-radius: 20px;
  overflow: hidden;
  background: #d9dddf;
  box-shadow: 0 14px 34px rgba(21, 26, 34, .1);
}
.vehicle-gallery .gallery-main img,
.vehicle-gallery.detail-gallery > img {
  min-height: 430px;
  border-radius: 20px;
  object-fit: cover;
}
.vehicle-gallery .gallery-open-label,
.vehicle-gallery .gallery-count {
  top: 16px;
  font-size: 12px;
  background: rgba(14, 18, 24, .52);
}
.vehicle-gallery .gallery-open-label { left: 16px; }
.vehicle-gallery .gallery-count { right: 16px; }
.vehicle-gallery .gallery-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border-color: rgba(255,255,255,.58);
  background: rgba(255,255,255,.32);
  color: #fff;
  font-size: 30px;
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}
.vehicle-gallery .gallery-prev { left: 14px; }
.vehicle-gallery .gallery-next { right: 14px; }
.vehicle-gallery .thumb-row,
.vehicle-thumbs {
  position: static;
  margin-top: 16px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}
.vehicle-gallery .thumb-row button {
  flex: 0 0 106px;
  width: 106px;
  height: 76px;
  border-radius: 12px;
  border: 3px solid transparent;
  background: #dce0e3;
  opacity: 1;
}
.vehicle-gallery .thumb-row button.active {
  border-color: #1f67c8;
  box-shadow: 0 8px 20px rgba(31, 103, 200, .22);
}
.vehicle-info h1 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}
.detail-subline {
  margin: 0 0 22px;
  color: #747b86;
  font-size: 14px;
  line-height: 1.6;
}
.vehicle-spec-card {
  display: grid;
  gap: 0;
  margin: 0 0 20px;
  padding: 18px 20px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(22, 28, 38, .05);
}
.vehicle-spec-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr);
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid #eef0f3;
  font-size: 14px;
}
.vehicle-spec-row:last-child { border-bottom: 0; }
.vehicle-spec-row span { color: #7a828d; }
.vehicle-spec-row strong { color: #222832; font-weight: 900; text-align: right; }
.vehicle-total-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 18px;
  color: #6f7782;
}
.vehicle-total-line strong {
  color: #1665cc;
  font-size: 26px;
}
.vehicle-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.detail-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.soft-card {
  border: 1px solid #eceef1;
  border-radius: 22px;
  background: #fff;
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 14px 42px rgba(23, 28, 37, .05);
}
.card-title-row,
.similar-head,
.cost-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.card-title-row h2,
.full-cost-intro h2,
.similar-head h2 { margin-bottom: 18px; font-size: clamp(32px, 4vw, 40px); line-height: 1; letter-spacing: 0; }
.card-title-row span,
.card-title-row a,
.similar-head a { color: #1f67c8; font-size: 13px; font-weight: 900; }
.auction-sheet-image {
  display: block;
  width: 100%;
  min-height: 420px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #f2f3f5;
  cursor: zoom-in;
}
.auction-sheet-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: contain;
}
.auction-placeholder {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 360px;
  padding: 28px;
  border-radius: 16px;
  background: #f3f4f5;
  color: #707782;
}
.auction-placeholder strong { color: #1f2530; font-size: 20px; }
.legend-lines { display: grid; gap: 13px; }
.legend-row {
  display: grid;
  grid-template-columns: 34px minmax(30px, 1fr) minmax(130px, auto);
  align-items: center;
  gap: 10px;
  color: #858c96;
  font-size: 14px;
}
.legend-row span { color: #a4aab2; font-weight: 800; }
.legend-row i { height: 1px; background: #dfe3e8; }
.legend-row strong { color: #727985; font-weight: 700; text-align: right; }
.full-cost-intro p {
  color: #6f7782;
  line-height: 1.7;
}
.cost-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}
.cost-tabs button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #d7e2f2;
  border-radius: 8px;
  background: #fff;
  color: #1f67c8;
  font-weight: 900;
}
.cost-tabs button.is-active {
  background: #1f67c8;
  color: #fff;
  border-color: #1f67c8;
}
.quick-facts {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}
.quick-facts div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid #eef0f3;
}
.quick-facts span { color: #7d8490; }
.quick-facts strong { text-align: right; }
.cost-breakdown-card .cost-head {
  padding-bottom: 18px;
  border-bottom: 1px solid #eef0f3;
}
.cost-head span { color: #6f7782; font-weight: 800; }
.cost-head strong { color: #1665cc; font-size: 24px; white-space: nowrap; flex-shrink: 0; }
.cost-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid #eef0f3;
  color: #666e79;
}
.cost-line strong { color: #1d232d; }
.cost-note {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f5f7fa;
  color: #747b86;
  font-size: 13px;
  line-height: 1.55;
}
.options-section { margin-top: 18px; }
.encar-report-shell { margin-top: 18px; }
.encar-report-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.encar-report-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.035em; }
.encar-live-badge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 999px; background: #eaf7ef; color: #197044; font-size: 12px; font-weight: 900; white-space: nowrap; }
.encar-live-badge i { width: 8px; height: 8px; border-radius: 50%; background: #2bb673; box-shadow: 0 0 0 5px rgba(43,182,115,.12); }
.encar-report-lead { max-width: 760px; margin: 0 0 24px; color: var(--muted); line-height: 1.65; }
.encar-report-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 12px; }
.encar-report-card { align-self: start; }
.encar-report-card { overflow: hidden; border: 1px solid #e7ebef; border-radius: 15px; background: #f9fbfd; }
.encar-report-card summary { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 66px; padding: 12px 16px; cursor: pointer; list-style: none; }
.encar-report-card summary::-webkit-details-marker { display: none; }
.encar-report-card summary strong { color: #1b2733; font-size: 14px; }
.encar-summary-meta { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: max-content; }
.encar-summary-meta em { color: #7b8793; font-size: 11px; font-style: normal; white-space: nowrap; }
.encar-summary-meta i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #edf2f7; color: #536273; transition: transform .2s ease, background-color .2s ease; }
.encar-summary-meta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.encar-report-card summary:hover .encar-summary-meta i { background: #e3eaf2; }
.encar-report-card[open] .encar-summary-meta i { transform: rotate(180deg); }
.encar-report-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #eaf1ff; color: var(--accent); font-size: 15px; font-weight: 900; }
.encar-report-icon.is-body { background: #fff1e8; color: #cf5f24; }
.encar-report-rows { border-top: 1px solid #e7ebef; background: #fff; }
.encar-report-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px 18px; padding: 12px 16px; border-bottom: 1px solid #eef1f4; }
.encar-report-row:last-child { border-bottom: 0; }
.encar-report-row > span { color: #66727e; font-size: 12px; line-height: 1.45; }
.encar-report-row > strong { color: #27323d; font-size: 12px; text-align: right; }
.encar-report-row > strong.is-good { color: #188553; }
.encar-report-row > strong.is-attention { color: #ce5b2d; }
.encar-report-row > small { grid-column: 1/-1; color: #8a949e; font-size: 11px; line-height: 1.45; }
.encar-body-marks { display: grid; gap: 8px; padding: 12px; border-top: 1px solid #e7ebef; background: #fff; }
.encar-body-mark { display: grid; grid-template-columns: 40px minmax(0,1fr); align-items: center; gap: 14px; min-width: 0; padding: 11px 14px; border-radius: 10px; background: #f5f7f9; }
.encar-body-mark b { display: grid; place-items: center; overflow: hidden; width: 38px; height: 38px; border-radius: 10px; background: #e6f5ed; color: #188553; font-size: 17px; line-height: 1; }
.encar-body-mark.is-repair b { background: #fff0e8; color: #c95527; }
.encar-body-mark span { min-width: 0; color: #27323d; font-size: 12px; font-weight: 800; line-height: 1.35; }
.encar-body-mark small { display: block; margin-top: 3px; color: #7d8791; font-size: 10px; font-weight: 600; }
.encar-report-notice { display: grid; gap: 6px; padding: 18px; border: 1px solid #f0d9b8; border-radius: 13px; background: #fff8ee; }
.encar-report-notice strong { color: #6d4d1f; }
.encar-report-notice span { color: #8a6c40; font-size: 13px; line-height: 1.5; }
.similar-section { margin-top: clamp(36px, 6vw, 72px); }
.similar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.similar-grid .car-card { background: #fff; }

@media (max-width: 980px) {
  .vehicle-overview-card,
  .detail-two-col,
  .similar-grid { grid-template-columns: 1fr; }
  .vehicle-gallery .gallery-main,
  .vehicle-gallery .gallery-main img,
  .vehicle-gallery.detail-gallery > img { min-height: 420px; }
  .encar-report-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .detail-shell { width: min(100% - 20px, 1120px); }
  .vehicle-overview-card, .soft-card { border-radius: 18px; padding: 18px; }
  .vehicle-gallery .gallery-main,
  .vehicle-gallery .gallery-main img,
  .vehicle-gallery.detail-gallery > img { min-height: 300px; }
  .vehicle-gallery .thumb-row button { flex-basis: 86px; width: 86px; height: 62px; }
  .vehicle-spec-row, .cost-line { grid-template-columns: 1fr; gap: 5px; }
  .vehicle-spec-row strong, .legend-row strong { text-align: left; }
  .legend-row { grid-template-columns: 30px 1fr; }
  .legend-row i { display: none; }
  .vehicle-actions .button { width: 100%; justify-content: center; }
  .card-title-row, .similar-head, .cost-head, .vehicle-total-line { align-items: flex-start; flex-direction: column; }
  .encar-report-heading { align-items: flex-start; flex-direction: column; }
  .encar-report-card summary { grid-template-columns: 34px minmax(0,1fr) auto; }
  .encar-summary-meta { gap: 7px; }
  .encar-summary-meta em { font-size: 10px; }
  .encar-report-row { grid-template-columns: 1fr; }
  .encar-report-row > strong { text-align: left; }
}




/* Mobile header, fixed drawer menu and overflow fixes */
html, body { max-width: 100%; overflow-x: hidden; }
img, video, canvas, svg { max-width: 100%; }
.site-header { position: sticky; top: 0; z-index: 900; }
.mobile-menu-toggle { display: none; }
.mobile-menu-overlay { display: none; }

@media (max-width: 820px) {
  body { min-width: 0; }
  .section { padding-left: 16px; padding-right: 16px; }
  body { padding-top: 100px; }
  .compact-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 950; box-shadow: 0 10px 28px rgba(0,0,0,.16); }
  .compact-topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: 36px;
    padding: 7px 14px;
    gap: 8px;
    font-size: 12px;
  }
  .compact-topbar span { display: none; }
  .compact-mainbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    min-height: 64px;
    padding: 10px 14px;
    gap: 10px;
  }
  .compact-header .brand { min-width: 0; overflow: hidden; }
  .compact-header .brand span:last-child { min-width: 0; }
  .compact-header .brand strong,
  .compact-header .brand small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .compact-header .main-nav,
  .compact-header .header-actions { display: none; }
  .mobile-menu-toggle {
      display: inline-grid;
      place-items: center;
      align-self: center;
      justify-self: end;
      width: 37px;
      height: 33px;
      padding: 0;
      border: 1px solid rgba(255, 255, 255, .18);
      border-radius: 12px;
      background: rgba(255, 255, 255, .07);
      color: #fff;
      cursor: pointer;
      transition: background .22s ease, border-color .22s ease, transform .22s ease;
      padding: 4px;
  }
  .mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 2px 0;
    border-radius: 999px;
    background: currentColor;
    transition: transform .26s ease, opacity .2s ease;
  }
  .mobile-menu-toggle:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.34); }
  .mobile-menu-open .mobile-menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .mobile-menu-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
  .mobile-menu-open .mobile-menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: block;
    pointer-events: none;
    background: rgba(6, 9, 14, 0);
    transition: background .32s ease;
  }
  .mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(88vw, 390px);
    height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    gap: 22px;
    padding: 18px;
    background: #0d1115;
    color: #fff;
    box-shadow: -28px 0 70px rgba(0,0,0,.36);
    transform: translateX(104%);
    transition: transform .36s cubic-bezier(.2,.8,.2,1);
    will-change: transform;
    overflow-y: auto;
  }
  .mobile-menu-open .mobile-menu-overlay {
    pointer-events: auto;
    background: rgba(6, 9, 14, .58);
  }
  .mobile-menu-open .mobile-menu-panel { transform: translateX(0); }
  body.mobile-menu-open { overflow: hidden; }
  .mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .mobile-menu-head .brand { min-width: 0; color: #fff; }
  .mobile-menu-close {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    background: rgba(255,255,255,.07);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
  }
  .mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .mobile-menu-nav a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 4px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.86);
    font-size: 20px;
    font-weight: 850;
  }
  .mobile-menu-nav a.active { color: #8fb6ff; }
  .mobile-menu-actions {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
  }
  .mobile-menu-actions .round-call,
  .mobile-menu-actions .button { min-height: 52px; border-radius: 12px; }
  .mobile-menu-actions .button { width: 100%; justify-content: center; }
  .mobile-menu-contact {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.72);
    font-size: 14px;
  }
  .mobile-menu-contact a { color: #fff; font-size: 18px; font-weight: 900; }

  .hero-redesign { min-height: auto; padding: 54px 16px 36px; }
  .hero-redesign h1 { max-width: 100%; font-size: 30px; }
  .hero-note { width: 100%; max-width: 100%; }
  .hero-redesign .hero-actions { display: grid; gap: 10px; }
  .hero-redesign .button { width: 100%; justify-content: center; }
  .hero-vehicle { opacity: .28; pointer-events: none; }

  .catalog-workspace,
  .calculator-section,
  .request-section,
  .contacts,
  .split { grid-template-columns: minmax(0, 1fr) !important; }
  .filter-panel,
  .calculator,
  .request-card,
  .contact-card { min-width: 0; }
  .car-grid,
  .market-strip,
  .steps,
  .value-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .car-card { min-width: 0; }
  .car-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .car-detail-page { padding-top: 18px; }
  .detail-shell { width: min(100% - 20px, 1120px); min-width: 0; }
  .detail-breadcrumbs { overflow-x: auto; white-space: nowrap; padding-bottom: 2px; }
  .vehicle-overview-card,
  .detail-two-col,
  .similar-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    min-width: 0;
  }
  .vehicle-overview-card { gap: 18px; padding: 14px; border-radius: 18px; }
  .vehicle-gallery,
  .vehicle-info,
  .soft-card,
  .auction-sheet-card,
  .auction-legend-card,
  .cost-breakdown-card { min-width: 0; }
  .vehicle-gallery .gallery-main,
  .vehicle-gallery .gallery-main img,
  .vehicle-gallery.detail-gallery > img {
    width: 100%;
    min-height: clamp(230px, 62vw, 360px);
    max-height: 420px;
  }
  .vehicle-gallery .gallery-arrow { width: 38px; height: 38px; font-size: 26px; }
  .vehicle-gallery .gallery-open-label { display: none; }
  .vehicle-gallery .thumb-row {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
  }
  .vehicle-gallery .thumb-row button { flex: 0 0 78px; width: 78px; height: 58px; scroll-snap-align: start; }
  .vehicle-info h1 { font-size: clamp(25px, 7.4vw, 34px); overflow-wrap: anywhere; }
  .vehicle-spec-card { padding: 12px 14px; border-radius: 16px; }
  .vehicle-spec-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .vehicle-spec-row strong { text-align: left; overflow-wrap: anywhere; }
  .vehicle-total-line strong { font-size: 23px; }
  .vehicle-actions { display: grid; grid-template-columns: 1fr; }
  .vehicle-actions .button { width: 100%; justify-content: center; }
  .soft-card { padding: 18px; border-radius: 18px; }
  .auction-sheet-image { min-height: 240px; }
  .auction-sheet-image img { max-height: 380px; }
  .legend-row { grid-template-columns: 32px minmax(0, 1fr); }
  .legend-row i { display: none; }
  .legend-row strong { text-align: left; }
  .cost-line { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .cost-head strong { font-size: 22px; }
  .similar-grid .car-card { width: 100%; }
}

@media (max-width: 380px) {
  .compact-header .brand-mark { width: 34px; height: 34px; font-size: 11px; }
  .compact-header .brand strong { font-size: 15px; }
  .compact-header .brand small { font-size: 11px; }
  .mobile-menu-panel { width: 92vw; padding: 14px; }
  .mobile-menu-nav a { font-size: 18px; }
  .vehicle-overview-card, .soft-card { padding: 12px; }
}



/* Final fixed header stacking */
body { padding-top: 120px; }
header.site-header.home-header.compact-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 990;
}
.mobile-menu-overlay,
.photo-lightbox {
  z-index: 999;
}
.lightbox-close,
.lightbox-nav,
.lightbox-counter {
  z-index: 999;
}
@media (max-width: 820px) {
  body { padding-top: 100px; }
  header.site-header.home-header.compact-header { z-index: 990; }
}

/* Logo, legal header and safe page animations */
.logo-mark {
  overflow: hidden;
  background: #07090b !important;
  border: 1px solid rgba(255,255,255,.18);
}
.logo-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compact-legalbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 38px;
  padding: 7px clamp(18px, 5vw, 92px);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: #090d12;
  color: rgba(255,255,255,.64);
  font-size: 13px;
  font-weight: 700;
}
.legal-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
}
.legal-links a {
  color: rgba(255,255,255,.76);
  white-space: nowrap;
}
.legal-links a:hover { color: #fff; }
body { padding-top: var(--fixed-header-height, 158px); }
header.site-header.home-header.compact-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 990;
}
.mobile-menu-overlay,
.photo-lightbox { z-index: 999; }
.lightbox-close,
.lightbox-nav,
.lightbox-counter { z-index: 999; }
@media (max-width: 820px) {
  body { padding-top: var(--fixed-header-height, 134px); }
  .compact-legalbar {
    min-height: 34px;
    padding: 6px 14px;
    font-size: 12px;
  }
  .compact-legalbar > span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .legal-links { display: none; }
  .compact-header .brand-mark.logo-mark { width: 42px; height: 42px; }
}
@media (max-width: 380px) {
  .compact-header .brand-mark.logo-mark { width: 38px; height: 38px; }
}

/* Car detail fullscreen and 20-item similar slider */
.gallery-fullscreen {
  position: absolute;
  right: 18px;
  bottom: 98px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  background: rgba(9,13,18,.58);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: zoom-in;
  backdrop-filter: blur(12px);
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.gallery-fullscreen:hover {
  background: rgba(31,103,200,.9);
  border-color: rgba(255,255,255,.7);
  transform: scale(1.05);
}
.vehicle-gallery .gallery-main img,
.vehicle-gallery .gallery-open-label { pointer-events: none; }
.photo-lightbox { z-index: 999 !important; }
.lightbox-close,
.lightbox-nav,
.lightbox-counter { z-index: 1000 !important; }

.similar-section { overflow: hidden; }
.similar-head {
  align-items: center !important;
  flex-direction: row !important;
}
.similar-slider {
  position: relative;
  display: block !important;
  min-width: 0;
  margin-top: 18px;
}
.similar-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(245px, 285px);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 4px 6px 22px;
  scrollbar-width: thin;
}
.similar-track .car-card {
  width: 100%;
  scroll-snap-align: start;
  background: #fff;
}
.similar-nav {
  position: absolute;
  top: 42%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #dce4ee;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: #1f67c8;
  box-shadow: 0 14px 36px rgba(23,28,37,.12);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.similar-nav:hover {
  transform: translateY(-3px);
  background: #1f67c8;
  color: #fff;
}
.similar-prev { left: -12px; }
.similar-next { right: -12px; }
@media (max-width: 820px) {
  .gallery-fullscreen {
    right: 14px;
    bottom: 82px;
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
  .similar-track {
    grid-auto-columns: minmax(230px, 78vw);
    padding-inline: 0;
  }
  .similar-nav {
    position: static;
    display: inline-grid;
    margin: 10px 8px 0 0;
    width: 42px;
    height: 42px;
  }
  .similar-slider { padding-bottom: 4px; }
}

/* Similar slider columns: 4 desktop, 1 mobile */
.similar-track {
  grid-auto-columns: calc((100% - 54px) / 4) !important;
}
@media (max-width: 1100px) {
  .similar-track { grid-auto-columns: calc((100% - 36px) / 3) !important; }
}
@media (max-width: 820px) {
  .similar-track { grid-auto-columns: 100% !important; }
  .similar-track .car-card { max-width: 100%; }
}

/* Similar cards cleanup */
.similar-track .car-price .button,
.similar-track .car-price button {
  display: none !important;
}
.similar-track .car-price span {
  font-size: calc(100% - 5px);
}

/* Dual price range fields */
.range-field {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(31, 103, 200, .16);
  border-radius: 14px;
  background: #fff;
}
.range-field-head,
.range-values {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.range-field-head span {
  color: #313841;
  font-size: 13px;
  font-weight: 900;
}
.range-field-head strong {
  color: #1665cc;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}
.dual-range {
  position: relative;
  height: 34px;
  display: grid;
  align-items: center;
}
.dual-range::before,
.dual-range-fill {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 8px;
  border-radius: 999px;
  transform: translateY(-50%);
}
.dual-range::before { background: #e8eef7; }
.dual-range-fill {
  z-index: 1;
  background: linear-gradient(90deg, #1f67c8, #35a4ff);
  box-shadow: 0 8px 20px rgba(31, 103, 200, .22);
}
.dual-range input[type="range"] {
  position: absolute;
  z-index: 2;
  width: 100%;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
}
.dual-range input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  background: transparent;
}
.dual-range input[type="range"]::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -8px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #1f67c8;
  box-shadow: 0 6px 16px rgba(23, 28, 37, .24);
  cursor: pointer;
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
}
.dual-range input[type="range"]::-moz-range-track {
  height: 8px;
  background: transparent;
}
.dual-range input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #1f67c8;
  box-shadow: 0 6px 16px rgba(23, 28, 37, .24);
  cursor: pointer;
  pointer-events: auto;
}
.range-values {
  color: #69717d;
  font-size: 12px;
  font-weight: 800;
}
.calculator .range-field { margin-bottom: 0; }
.filter-panel .range-field,
.request-card .range-field { padding: 14px; }

@media (max-width: 520px) {
  .range-field-head,
  .range-values {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .range-field-head strong { white-space: normal; }
}

/* Catalog sticky filter */
.catalog-workspace {
  position: relative;
  align-items: start;
  overflow: visible;
}
.filter-panel {
  align-self: start;
  position: sticky;
  top: calc(var(--fixed-header-height, 158px) + 18px);
  z-index: 5;
  max-height: calc(100vh - var(--fixed-header-height, 158px) - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
@media (max-width: 980px) {
  .filter-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }
}
/* Global lead popup */
body.lead-popup-open { overflow: hidden; }
.lead-popup {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 18px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .26s ease, visibility 0s linear .26s;
}
.lead-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.lead-popup.is-open.is-closing {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
}
.lead-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 12, .72);
  backdrop-filter: blur(10px);
  opacity: 1;
  transition: opacity .26s ease;
}
.lead-popup.is-closing .lead-popup-backdrop { opacity: 0; }
.lead-dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: min(92vh, 860px);
  overflow: auto;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0,0,0,.34);
  transform: translateY(24px) scale(.96);
  opacity: 0;
  animation: leadDialogIn .28s cubic-bezier(.2,.8,.2,1) forwards;
}
.lead-popup.is-closing .lead-dialog {
  animation: leadDialogOut .26s cubic-bezier(.4,0,.2,1) forwards;
}
.lead-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #dfe5ee;
  border-radius: 50%;
  background: #f7f9fc;
  color: #1d2633;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.lead-dialog-head { padding-right: 42px; }
.lead-dialog-head h2 { margin-bottom: 18px; font-size: clamp(32px, 4vw, 40px); line-height: 1; letter-spacing: 0; }
.lead-dialog-head p:not(.eyebrow) {
  color: #66707e;
  line-height: 1.55;
}
.lead-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}
.lead-form textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: #fff;
}
.lead-status {
  min-height: 20px;
  color: #66707e;
  font-size: 13px;
  font-weight: 800;
}
.lead-submit { position: relative; overflow: hidden; }
.lead-popup.is-sending .lead-submit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  animation: leadSendSweep .85s linear infinite;
}
.lead-success {
  display: none;
  gap: 8px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background: #edf8f1;
  color: #166534;
}
.lead-success strong {
  display: block;
  font-size: 22px;
}
.lead-success span {
  display: block;
  margin-top: 6px;
  color: #327348;
  line-height: 1.45;
}
.lead-popup.is-success .lead-form { display: none; }
.lead-popup.is-success .lead-success { display: block; animation: leadSuccessIn .28s ease both; }

@keyframes leadDialogIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes leadDialogOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(10px) scale(.985); }
}
@keyframes leadSendSweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}
@keyframes leadSuccessIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 620px) {
  .lead-popup { align-items: end; padding: 10px; }
  .lead-dialog {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 20px;
    padding: 22px 16px 18px;
  }
  .lead-dialog-head { padding-right: 46px; }
  .lead-dialog-head h2 { margin-bottom: 18px; font-size: clamp(32px, 4vw, 40px); line-height: 1; letter-spacing: 0; }
  .lead-form .rc-grid2 { grid-template-columns: 1fr; }
}
/* Customs calculator */
.moto-calculator-section {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(560px, 1.28fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: start;
  padding: clamp(62px, 8vw, 112px) clamp(18px, 5vw, 76px);
  background: linear-gradient(135deg, #f2f6f8 0%, #e9f0f5 100%);
}
.moto-calc-intro { position: sticky; top: calc(var(--fixed-header-height, 92px) + 28px); }
.moto-calc-intro h2 { max-width: 620px; margin-bottom: 18px; font-size: clamp(42px, 5vw, 72px); line-height: .96; letter-spacing: -.045em; }
.moto-calc-intro > p:not(.eyebrow) { max-width: 590px; color: #5e6a76; font-size: 18px; line-height: 1.6; }
.moto-calc-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.moto-calc-points span { padding: 9px 12px; border: 1px solid #d8e1e8; border-radius: 999px; background: rgba(255,255,255,.72); color: #425264; font-size: 13px; font-weight: 800; }
.moto-calc-note { margin-top: 28px; padding: 18px 20px; border-left: 3px solid #2f69c4; border-radius: 0 12px 12px 0; background: rgba(255,255,255,.72); }
.moto-calc-note strong { font-size: 15px; }
.moto-calc-note p { margin: 6px 0 0; color: #65717d; font-size: 14px; line-height: 1.55; }
.moto-calc-card { overflow: hidden; border: 1px solid #dbe3e9; border-radius: 24px; background: #fff; box-shadow: 0 26px 70px rgba(30,55,79,.12); }
.moto-calc-form { display: grid; gap: 22px; padding: clamp(22px, 4vw, 38px); }
.moto-form-head { display: flex; justify-content: space-between; gap: 18px; align-items: start; padding-bottom: 19px; border-bottom: 1px solid #e3e8ec; }
.moto-form-head div { display: grid; gap: 5px; }
.moto-form-head span, .moto-form-head small { color: #7a8793; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.moto-form-head strong { width: fit-content; padding: 6px 10px; border-radius: 999px; background: #e6f6ee; color: #138255; font-size: 13px; }
.moto-form-head strong.is-sanctioned { background: #fff0e9; color: #c45423; }
.moto-fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 17px; }
.moto-fields-grid .field-label { align-content: start; font-size: 14px; }
.moto-fields-grid input, .moto-fields-grid select { min-height: 54px; border: 1px solid #d9e0e6; border-radius: 11px; padding: 0 14px; background: #f9fbfc; font: inherit; font-size: 16px; font-weight: 750; outline: none; }
.moto-fields-grid input:focus, .moto-fields-grid select:focus { border-color: #2f69c4; background: #fff; box-shadow: 0 0 0 3px rgba(47,105,196,.11); }
.moto-fields-grid small { color: #89939d; font-size: 11px; font-weight: 500; line-height: 1.35; }
.moto-rate-status.is-error { color: #b42318; }
.moto-rate-field { align-content: start; }
.moto-rate-equality { display: flex; align-items: baseline; gap: 7px; min-height: 54px; padding: 0 14px; border: 1px solid #d9e0e6; border-radius: 11px; background: #f0f5fa; color: #657486; font-size: 15px; line-height: 54px; }
.moto-rate-equality strong { color: #15283b; font-size: 19px; }
.moto-calc-form > .button { min-height: 56px; border-radius: 11px; font-size: 16px; }
.moto-form-error { min-height: 0; margin: -8px 0; color: #b42318; font-size: 13px; font-weight: 700; }
.moto-form-error:empty { display: none; }
.moto-result { border-top: 1px solid #dfe6eb; background: #0e2134; color: #fff; }
.moto-result-title { display: grid; padding: 28px clamp(22px, 4vw, 38px); background: radial-gradient(circle at 85% 0, rgba(91,143,255,.32), transparent 42%); }
.moto-result-title span { color: #aebdca; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.moto-result-title strong { margin-top: 8px; font-size: clamp(36px, 5vw, 58px); line-height: 1; letter-spacing: -.04em; }
.moto-result-title small { margin-top: 8px; color: #8fb5ff; font-size: 17px; font-weight: 800; }
.moto-result-rows { display: grid; padding: 0 clamp(22px, 4vw, 38px); }
.moto-result-line { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.1); }
.moto-result-line span { color: #aebdca; font-size: 14px; }
.moto-result-line strong { text-align: right; font-size: 15px; }
.moto-result-explain { margin: 18px clamp(22px, 4vw, 38px); color: #93a4b3; font-size: 12px; line-height: 1.55; }
.moto-result .button { margin: 0 clamp(22px, 4vw, 38px) 30px; width: calc(100% - clamp(44px, 8vw, 76px)); min-height: 54px; border-color: #3779e5; background: #2f69c4; color: #fff; }
.moto-result .button:hover { border-color: #4b89ef; background: #3a78d8; color: #fff; }
.moto-source-note { padding: 18px clamp(22px, 4vw, 38px); border-top: 1px solid #e4e9ed; color: #7a8691; font-size: 11px; line-height: 1.55; }
.moto-source-note a { color: #2f69c4; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 1060px) {
  .moto-calculator-section { grid-template-columns: 1fr; }
  .moto-calc-intro { position: static; }
}
@media (max-width: 620px) {
  .moto-calculator-section { padding: 48px 12px; }
  .moto-calc-intro h2 { font-size: 42px; }
  .moto-fields-grid { grid-template-columns: 1fr; }
  .moto-calc-card { border-radius: 18px; }
  .moto-result-line { grid-template-columns: 1fr; gap: 4px; }
  .moto-result-line strong { text-align: left; }
}
.customs-calc-section { background: #e7ece8; }
.calculator-headline { align-items: end; }
.customs-calc { display: grid; grid-template-columns: minmax(320px, .78fr) minmax(320px, .72fr); gap: 22px; align-items: start; }
.customs-form, .rc-results-panel, .rc-loader { padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.customs-form { display: grid; gap: 18px; }
.field-label { display: grid; gap: 9px; color: var(--ink); font-weight: 850; }
.field-label input, .field-label select, .price-line input, .price-line select { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 0 12px; font: inherit; }
.price-line { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 10px; }
.rc-choice-grid { display: grid; gap: 10px; }
.rc-choice-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rc-choice-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rc-choice-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rc-radio { position: absolute; opacity: 0; pointer-events: none; }
.rc-choice { min-height: 74px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #f8f8f6; cursor: pointer; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.rc-choice .title { display: block; font-weight: 900; }
.rc-choice .desc { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.rc-radio:checked + .rc-choice { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(36,99,235,.12); }
.rc-error-text { display: none; color: #b42318; font-size: 13px; }
.rc-error-text.show { display: block; }
.fine-print, .muted { color: var(--muted); line-height: 1.55; }
.disp-none { display: none !important; }
.rc-loader { display: grid; place-items: center; min-height: 180px; color: var(--muted); text-align: center; }
.rc-spinner { width: 34px; height: 34px; border: 3px solid #d8ded9; border-top-color: var(--accent); border-radius: 50%; animation: amvSpin .8s linear infinite; }
@keyframes amvSpin { to { transform: rotate(360deg); } }
.rc-results-panel h2 { margin-bottom: 18px; font-size: clamp(32px, 4vw, 40px); line-height: 1; letter-spacing: 0; }
.results-grid { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.result-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; background: #fff; }
.result-line strong { white-space: nowrap; font-size: 18px; }
.result-grand { background: var(--ink); color: #fff; }
.rate-note { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.rate-note span { padding: 8px 10px; border-radius: 999px; background: #eef2ef; color: var(--muted); font-size: 13px; font-weight: 800; }
.car-price { justify-content: flex-start; }
.car-price .button { display: none; }
@media (max-width: 980px) {
  .customs-calc { grid-template-columns: 1fr; }
  .rc-choice-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .price-line, .rc-choice-grid-2, .rc-choice-grid-3, .rc-choice-grid-4 { grid-template-columns: 1fr; }
  .result-line { grid-template-columns: 1fr; gap: 5px; }
}
/* Center vehicle gallery arrows */
.vehicle-gallery .gallery-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
  text-align: center;
  font-family: "Noto Sans", sans-serif;
}
.vehicle-gallery .gallery-arrow svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.turnstile-shell {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 18, 32, .72);
  backdrop-filter: blur(10px);
}
.turnstile-panel {
  width: min(100%, 390px);
  padding: 26px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 22px;
  background: #fff;
  color: #172235;
  box-shadow: 0 28px 80px rgba(0,0,0,.32);
  text-align: center;
}
.turnstile-panel strong { display: block; font-size: 20px; }
.turnstile-panel p { margin: 8px 0 18px; color: #667085; }
.turnstile-panel small { display: block; margin-top: 14px; color: #8a94a5; }
#amvTurnstileWidget { display: flex; justify-content: center; min-height: 65px; }
/* WhatsApp icon */
.round-call.whatsapp {
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: transparent;
}
.round-call.whatsapp:hover {
  background: transparent;
  box-shadow: none;
}
.round-call.whatsapp img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  transition: transform .18s ease, opacity .18s ease;
}
.round-call.whatsapp:hover img {
  transform: scale(1.06);
  opacity: .9;
}
/* Site footer redesign */
.site-footer {
  display: block;
  padding: clamp(28px, 5vw, 58px) clamp(14px, 4vw, 56px) 0;
  border-top: 0;
  color: var(--ink);
  background: #fff;
}
.footer-shell {
  width: min(100%, 1420px);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(18px, 4vw, 58px) 28px;
  border-radius: 36px 36px 0 0;
  background: #f4f6f6;
}
.footer-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid #dce2e2;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
}
.footer-logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
}
.footer-logo img { width: 100%; height: 100%; object-fit: cover; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
}
.footer-nav a,
.footer-location {
  color: #7d8791;
  font-size: 15px;
}
.footer-nav a:hover,
.footer-location:hover,
.footer-links a:hover { color: #2f69c4; }
.footer-location {
  position: relative;
  padding-left: 22px;
  white-space: nowrap;
}
.footer-location::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50% 50% 50% 0;
  background: #2f69c4;
  transform: translateY(-60%) rotate(-45deg);
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(170px, .7fr) minmax(190px, .75fr) minmax(260px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(30px, 5vw, 58px) 0;
}
.footer-contact,
.footer-note,
.footer-links {
  display: grid;
  align-content: start;
  gap: 13px;
}
.footer-socials { display: flex; gap: 12px; margin-bottom: 18px; }
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid #dce2e2;
  border-radius: 50%;
  background: #fff;
  color: #6f7b84;
  font-weight: 900;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.footer-socials a:hover { transform: translateY(-2px); border-color: #2f69c4; }
.footer-socials .client-social-link { width: 48px; height: 48px; border: 0; }
.footer-socials .client-social-link.social-max span { font-size: 9px; }
.footer-wa { border: 0 !important; background: transparent !important; }
.footer-wa img { width: 38px; height: 38px; object-fit: contain; }
.footer-phone {
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
}
.footer-contact span,
.footer-note p,
.footer-bottom {
  color: #7d8791;
  line-height: 1.55;
}
.footer-links a {
  color: var(--ink);
  font-weight: 850;
}
.footer-note .button { width: max-content; margin-top: 12px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid #dce2e2;
  font-size: 13px;
}
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr; justify-items: start; }
  .footer-nav { justify-content: flex-start; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .site-footer { padding: 20px 10px 0; }
  .footer-shell { padding: 22px 16px; border-radius: 24px 24px 0 0; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; }
  .footer-note .button { width: 100%; }
}
/* Footer typography weight */
.footer-contact,
.footer-note,
.footer-links {
  font-weight: 400;
}
.footer-contact span,
.footer-note p {
  font-weight: 400;
}
.footer-links a {
  font-weight: 500;
}
.footer-phone {
  font-weight: 700;
}
/* Header overflow guard */
header.site-header.home-header.compact-header,
.compact-header,
.compact-topbar,
.compact-mainbar {
  max-width: 100vw;
  min-width: 0;
  box-sizing: border-box;
}
header.site-header.home-header.compact-header,
.compact-header {
  overflow-x: clip;
}
.compact-topbar,
.compact-mainbar {
  width: 100%;
}
.compact-mainbar {
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
}
.compact-header .brand,
.compact-header .main-nav,
.compact-header .header-actions {
  min-width: 0;
}
.compact-header .main-nav {
  overflow: hidden;
}
.compact-header .main-nav a {
  white-space: nowrap;
}
.compact-header .header-actions .button {
  white-space: nowrap;
}
@media (max-width: 1180px) {
  .compact-mainbar {
    grid-template-columns: minmax(0, 1fr) 46px !important;
    gap: 12px;
    padding: 10px 18px;
  }
  .compact-header .brand {
    min-width: 0;
    overflow: hidden;
  }
  .compact-header .brand span:last-child {
    min-width: 0;
    overflow: hidden;
  }
  .compact-header .brand strong,
  .compact-header .brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .compact-header .main-nav,
  .compact-header .header-actions {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-grid;
    place-items: center;
    align-self: center;
    justify-self: end;
    width: 42px;
    height: 38px;
    padding: 4px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 12px;
    background: rgba(255,255,255,.07);
    color: #fff;
    cursor: pointer;
  }
}
@media (max-width: 520px) {
  .compact-topbar {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }
  .compact-topbar a {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .compact-mainbar {
    padding-left: 12px;
    padding-right: 12px;
  }
}
/* Header responsive tightening */
@media (max-width: 1180px) {
  header.site-header.home-header.compact-header {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .compact-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .compact-topbar span {
    display: none;
  }
  .compact-topbar a {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .compact-mainbar {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }
}
@media (max-width: 420px) {
  .compact-topbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .compact-topbar a[href^="tel:"] {
    display: none;
  }
}
/* Calculator mobile overflow fix */
body.calculator-page {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}
.calculator-page,
.calculator-page main,
.calculator-page .page-hero,
.calculator-page .customs-calc-section,
.calculator-page .customs-calc,
.calculator-page .customs-form,
.calculator-page .rc-results-panel,
.calculator-page .rc-loader {
  max-width: 100%;
  min-width: 0;
}
.calculator-page .page-hero,
.calculator-page .customs-calc-section {
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
}
.calculator-page .customs-calc {
  grid-template-columns: minmax(0, .78fr) minmax(0, .72fr);
}
.calculator-page .customs-form input,
.calculator-page .customs-form select,
.calculator-page .customs-form button,
.calculator-page .rc-choice,
.calculator-page .price-line {
  min-width: 0;
}
@media (max-width: 980px) {
  .calculator-page .customs-calc {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .calculator-page .calculator-headline {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .calculator-page .calculator-headline .button {
    width: fit-content;
    max-width: 100%;
  }
}
@media (max-width: 680px) {
  .calculator-page .page-hero {
    min-height: 300px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .calculator-page .page-hero h1,
  .calculator-page .customs-calc-section h2 {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .calculator-page .customs-calc-section {
    padding-left: 12px;
    padding-right: 12px;
  }
  .calculator-page .customs-form,
  .calculator-page .rc-results-panel,
  .calculator-page .rc-loader {
    padding: 16px;
  }
  .calculator-page .calculator-headline .button,
  .calculator-page .customs-form .button {
    width: 100%;
  }
}
/* Home catalog sections */
.home-catalog-intro {
  padding-bottom: 24px;
}
.home-catalog-intro p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.55;
}
.home-catalog-block {
  padding: 0 clamp(18px, 4vw, 56px) clamp(52px, 7vw, 92px);
}
.home-catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.home-catalog-head h2 {
  margin-bottom: 8px;
}
.home-catalog-head span {
  color: var(--muted);
  font-weight: 700;
}
.home-car-grid {
  padding: 0;
}
.home-catalog-more {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.price-empty-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.car-price span {
  display: block;
  margin-bottom: 10px;
  line-height: 1;
}
@media (max-width: 980px) {
  .home-catalog-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 680px) {
  .home-catalog-block {
    padding-left: 16px;
    padding-right: 16px;
  }
  .home-catalog-head .button,
  .home-catalog-more .button {
    width: 100%;
  }
}

/* Catalog card price layout */
.car-card {
  display: flex;
  flex-direction: column;
}
.car-photo {
  flex: 0 0 auto;
}
.car-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.car-body-top,
.car-body-bottom {
  min-width: 0;
}
.car-body-bottom {
  display: grid;
  gap: 0;
}
.car-price {
  font-weight: 600;
}
.car-price span {
  display: block;
  margin-bottom: 10px;
  line-height: 1;
}
.catalog-load-more {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
.catalog-load-more[hidden] {
  display: none;
}
.catalog-load-more .button {
  min-width: 220px;
}
.footer-call img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* 2026 refresh: clearer hierarchy, calmer surfaces and denser live catalog */
:root {
  --bg: #f4f6f8;
  --paper: #ffffff;
  --ink: #101820;
  --muted: #66717d;
  --line: rgba(16, 24, 32, .11);
  --accent: #2866e8;
  --accent-dark: #1749ad;
  --shadow: 0 24px 70px rgba(16, 35, 60, .12);
}
body { background: linear-gradient(180deg, #f8fafc 0, var(--bg) 480px); }
.button { min-height: 50px; border-radius: 12px; }
.button.primary { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); box-shadow: 0 10px 24px rgba(40,102,232,.22); }
.button.ghost { background: #fff; }

.compact-topbar { background: #08111d; }
.compact-mainbar { background: rgba(12, 24, 39, .96); backdrop-filter: blur(18px); }
.compact-header .header-actions .button { border-radius: 12px; background: var(--accent); border-color: var(--accent); }
.compact-header .main-nav a { position: relative; padding: 9px 0; }
.compact-header .main-nav a::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; border-radius: 2px; background: #6f9eff; transform: scaleX(0); transition: transform .2s ease; }
.compact-header .main-nav a.active::after, .compact-header .main-nav a:hover::after { transform: scaleX(1); }

.hero-redesign { background: radial-gradient(circle at 75% 38%, rgba(51,111,232,.2), transparent 31%), linear-gradient(135deg, #09131f 0%, #13263c 58%, #0b1724 100%); }
.hero-redesign::after { background: linear-gradient(90deg, rgba(8,17,29,.08), rgba(8,17,29,.34)); }
.hero-redesign h1 { max-width: 760px; font-size: clamp(48px, 6vw, 82px); line-height: .94; letter-spacing: -.045em; }
.hero-redesign .hero-note { max-width: 650px; border-left-color: #70a0ff; }
.hero-redesign .hero-vehicle img { filter: drop-shadow(0 36px 54px rgba(0,0,0,.48)); }
.market-strip { background: #08111d; }
.market-strip article { background: #101e2d; }
.market-strip article:nth-child(2) { background: #13263b; }

.catalog-hero-modern { min-height: 360px !important; padding-top: clamp(86px, 10vw, 132px); background: radial-gradient(circle at 80% 30%, rgba(78,133,255,.28), transparent 30%), linear-gradient(135deg,#08131f,#17304a); }
.catalog-hero-modern h1 { max-width: 900px; font-size: clamp(42px, 6vw, 76px); letter-spacing: -.045em; }
.catalog-hero-modern p:not(.eyebrow) { max-width: 760px; font-size: clamp(16px, 1.8vw, 20px); }
.country-hero { min-height: 310px !important; }

.catalog-workspace { grid-template-columns: 276px minmax(0,1fr); gap: clamp(24px, 3vw, 44px); max-width: 1600px; margin: 0 auto; }
.filter-panel { top: 112px; max-width: 100%; max-height: calc(100vh - 132px); overflow-x: hidden; overflow-y: auto; padding: 22px; border: 0; border-radius: 20px; box-shadow: 0 16px 44px rgba(17,38,65,.1); scrollbar-gutter: stable; }
.filter-panel form { gap: 16px; }
.filter-panel form, .filter-panel label, .filter-group, .filter-pair, .dual-range, .price-range { min-width: 0; max-width: 100%; }
.filter-panel label, .filter-group > span { color: #34404c; font-size: 11px; font-weight: 850; letter-spacing: .045em; text-transform: uppercase; }
.filter-panel input, .filter-panel select { min-height: 44px; border-radius: 10px; border-color: #dce2e8; background: #f9fbfd; font-size: 13px; text-transform: none; letter-spacing: 0; }
.filter-panel input:focus, .filter-panel select:focus { border-color: var(--accent); outline: 3px solid rgba(40,102,232,.1); }
.filter-group { display: grid; gap: 7px; }
.filter-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filter-error { display: block; color: #bd352d; font-size: 11px; font-weight: 700; line-height: 1.4; text-transform: none; letter-spacing: 0; }
.filter-error[hidden] { display: none; }
.filter-group.is-invalid input { border-color: #d84b42; background: #fff7f6; }
.filter-panel .catalog-checkbox { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 12px; border: 1px solid #dce2e8; border-radius: 10px; background: #f9fbfd; cursor: pointer; }
.filter-panel .catalog-checkbox input { flex: 0 0 18px; width: 18px; min-height: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.filter-panel .catalog-checkbox span { color: #34404c; font-size: 13px; font-weight: 800; letter-spacing: 0; text-transform: none; }
.japan-mode-panel { grid-column: 1 / -1; margin-bottom: 4px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 12px 32px rgba(16,35,60,.07); }
.japan-mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.japan-mode-tabs button { min-height: 48px; padding: 10px 16px; border: 1px solid #dce2e8; border-radius: 11px; background: #f6f8fa; color: #536170; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; transition: .2s ease; }
.japan-mode-tabs button:hover { border-color: #b8c8df; background: #eef3f9; }
.japan-mode-tabs button.is-active { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(40,102,232,.2); }
.japan-mode-note { margin: 12px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.catalog-filter-toggle { display: none; }
.results-head { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.results-head h2 { margin-bottom: 0; }
.results-head strong { color: var(--accent-dark); border: 0; background: #eaf1ff; }
.inner-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px 18px; }
.car-card { border: 0; border-radius: 18px; background: #fff; box-shadow: 0 12px 34px rgba(16,35,60,.09); transition: transform .25s ease, box-shadow .25s ease; }
.car-card:hover { transform: translateY(-6px); box-shadow: 0 24px 52px rgba(16,35,60,.16); }
.car-card[data-card-href] { cursor: pointer; }
.car-card[data-card-href]:focus-visible { outline: 3px solid rgba(47,108,229,.42); outline-offset: 3px; }
.car-photo { overflow: hidden; aspect-ratio: 3/2; border-radius: 18px 18px 0 0; background: #dfe5eb; }
.car-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.car-photo.image-unavailable, .vehicle-gallery.image-unavailable { display: grid; place-items: center; background: linear-gradient(145deg,#e7edf3,#d7e0e9); }
.car-photo-placeholder, .detail-photo-placeholder { color: #617080; font-size: 13px; font-weight: 750; letter-spacing: .02em; text-align: center; }
.detail-photo-placeholder { font-size: clamp(16px,2vw,22px); line-height: 1.4; }
.vehicle-description { margin-top: 28px; }
.vehicle-description h2 { margin: 4px 0 12px; }
.vehicle-description > p:last-child { max-width: 1000px; margin: 0; color: var(--muted); line-height: 1.75; white-space: pre-line; }
.progressive-car-preview .gallery-main { cursor: default; }
.progressive-car-preview .vehicle-thumbs span { display: block; overflow: hidden; border-radius: 10px; }
.progressive-report-loading { margin-top: 28px; }
.encar-live-badge.is-loading i { animation: reportPulse 1.15s ease-in-out infinite; }
.progressive-report-loading::after {
  content: "";
  display: block;
  width: 100%;
  height: 82px;
  margin-top: 20px;
  border-radius: 14px;
  background: linear-gradient(90deg,#eef2f6 20%,#f8fafc 38%,#eef2f6 56%);
  background-size: 240% 100%;
  animation: reportShimmer 1.35s linear infinite;
}
@keyframes reportPulse { 50% { opacity: .35; transform: scale(.82); } }
@keyframes reportShimmer { to { background-position: -200% 0; } }
.car-card:hover .car-photo img { transform: scale(1.045); }
.car-body { padding: 17px 17px 19px; gap: 16px; }
.car-body h3 { margin: 7px 0 6px; font-size: 18px; letter-spacing: -.025em; }
.country-tag { color: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: .055em; }
.car-trim { min-height: 38px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.car-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 13px 0 0; }
.car-meta span { padding: 7px 8px; border: 0; border-radius: 8px; background: #f3f6f9; font-size: 11px; }
.source-price { color: var(--muted); font-size: 11px; }
.car-price { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--accent-dark); font-size: 20px; }

.home-catalog-block { max-width: 1600px; margin-inline: auto; }
.home-car-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 28px 16px; }
.home-catalog-head { padding-top: 22px; border-top: 1px solid var(--line); }
.countries article { border: 0; border-radius: 20px; box-shadow: 0 12px 36px rgba(16,35,60,.08); }
.process { background: #09131f; }
.steps article { background: #122236; }

@media (max-width: 1220px) {
  .inner-grid, .home-car-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 980px) {
  .catalog-workspace { grid-template-columns: 1fr; }
  .filter-panel { position: static; max-height: none; }
  .filter-panel form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filter-panel .price-range, .filter-panel button { grid-column: 1/-1; }
  .inner-grid, .home-car-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-redesign h1 { font-size: clamp(42px,9vw,68px); }
}
@media (max-width: 680px) {
  .catalog-hero-modern { min-height: 300px !important; padding: 106px 16px 42px; }
  .catalog-hero-modern h1 { font-size: 38px; }
  .catalog-workspace { padding: 24px 12px 60px; }
  .catalog-filter-toggle { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; width: 100%; min-height: 54px; padding: 0 16px; border: 1px solid #dce2e8; border-radius: 13px; background: #fff; color: var(--ink); text-align: left; box-shadow: 0 10px 24px rgba(16,35,60,.07); }
  .catalog-filter-toggle span { color: var(--accent); font-size: 22px; }
  .catalog-filter-toggle strong { font-size: 14px; }
  .catalog-filter-toggle em { color: var(--muted); font-size: 10px; font-style: normal; }
  .filter-panel { display: none; padding: 16px; border-radius: 15px; }
  .catalog-workspace.filter-is-open .filter-panel { display: block; }
  .filter-panel form { grid-template-columns: 1fr; }
  .filter-panel .price-range, .filter-panel button { grid-column: auto; }
  .japan-mode-panel { padding: 12px; border-radius: 14px; }
  .japan-mode-tabs { grid-template-columns: 1fr; }
  .car-grid.inner-grid, .car-grid.home-car-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 22px 9px; }
  .car-card { border-radius: 13px; }
  .car-photo { border-radius: 13px 13px 0 0; }
  .car-body { padding: 11px; }
  .car-body h3 { font-size: 13px; }
  .car-trim { min-height: 32px; font-size: 9px; }
  .car-meta { grid-template-columns: 1fr; gap: 4px; }
  .car-meta span { font-size: 9px; }
  .source-price { font-size: 9px; }
  .car-price { font-size: 14px; }
}

/* Vehicle details: balanced use of wide desktop screens */
@media (min-width: 1440px) {
  .car-detail-page .detail-shell,
  .bike-detail-page .detail-shell {
    width: min(1760px, calc(100% - 40px));
  }

  .car-detail-page .vehicle-overview-card {
    grid-template-columns: minmax(0, 1.16fr) minmax(400px, .84fr);
    gap: clamp(34px, 2.8vw, 52px);
  }

  .bike-detail-page .bike-overview-card {
    grid-template-columns: minmax(0, 1.24fr) minmax(430px, .76fr);
  }

  .car-detail-page .vehicle-gallery .gallery-main,
  .bike-detail-page .vehicle-gallery .gallery-main {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .car-detail-page .vehicle-gallery .gallery-main img,
  .car-detail-page .vehicle-gallery.detail-gallery > img,
  .bike-detail-page .vehicle-gallery .gallery-main img,
  .bike-detail-page .vehicle-gallery.detail-gallery > img {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .car-detail-page .vehicle-gallery .thumb-row button,
  .bike-detail-page .vehicle-gallery .thumb-row button {
    flex-basis: 118px;
    width: 118px;
    height: 84px;
  }
}

/* Keep the secondary hero action readable over the dark cover. */
.hero-redesign .button.hero-ghost {
  border-color: rgba(255,255,255,.32);
  background: rgba(255,255,255,.08);
  color: #fff;
}
