/* Grand Auto — original brand palette + modern car rental UX */
:root {
  --ga-blue: #3FBCEF;
  --ga-action: #008DC7;
  --ga-seablue: #37E1F2;
  --ga-new: #3FEFC5;
  --ga-price: #B31806;
  --ga-price-text: #3FBCEF;
  --ga-badge: #F5B571;
  --ga-slider-bg: #C9D6DC;
  --ga-black: #000000;
  --ga-white: #ffffff;
  --ga-gray: #f4f7f9;
  --ga-text: #333333;
  --ga-muted: #666666;
  --ga-border: #e0e6ea;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14);
  --radius: 10px;
  --radius-lg: 16px;
  --header-h: 68px;
  --font: 'Roboto', sans-serif;
  --font-head: 'Rubik', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ga-text);
  background: var(--ga-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1240px, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; top: -100px; left: 1rem; background: var(--ga-action); color: #fff; padding: .5rem 1rem; border-radius: 6px; z-index: 9999; }
.skip:focus { top: 1rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .7rem 1.4rem; border-radius: var(--radius); font-family: var(--font-head);
  font-weight: 500; font-size: .9rem; border: 2px solid transparent; cursor: pointer;
  transition: .2s; white-space: nowrap;
}
.btn--action { background: var(--ga-action); color: #fff; }
.btn--action:hover { background: #007ab0; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,141,199,.35); }
.btn--dark { background: var(--ga-black); color: #fff; }
.btn--dark:hover { background: #222; }
.btn--outline { border-color: var(--ga-action); color: var(--ga-action); background: transparent; }
.btn--outline:hover { background: rgba(63,188,239,.1); }
.btn--outline-white { border-color: rgba(255,255,255,.6); color: #fff; background: transparent; }
.btn--outline-white:hover { background: rgba(255,255,255,.12); }
.btn--lg { padding: .95rem 1.8rem; font-size: 1rem; }
.btn--full { width: 100%; }
.btn--search { padding: .85rem 1.6rem; align-self: flex-end; min-height: 48px; }

/* ── Header ── */
.header { position: sticky; top: 0; z-index: 200; background: var(--ga-black); }
.header__bar { border-bottom: 1px solid rgba(255,255,255,.08); }
.header__bar-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: .45rem 0; font-size: .8rem; color: rgba(255,255,255,.75); flex-wrap: wrap; gap: .5rem;
}
.header__meta { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.header__meta span, .header__meta a {
  display: flex; align-items: center; gap: .35rem; color: rgba(255,255,255,.75);
}
.header__meta a:hover { color: var(--ga-blue); }
.header__phones { display: flex; gap: 1rem; }
.header__phones a { color: #fff; font-weight: 500; font-family: var(--font-head); }
.header__phones a:hover { color: var(--ga-blue); }

.header__main-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: var(--header-h); padding: .5rem 0;
}
.header__logo img { height: 44px; width: auto; }
.nav { display: flex; gap: .15rem; flex: 1; justify-content: center; flex-wrap: wrap; }
.nav__link {
  padding: .45rem .75rem; font-size: .78rem; font-weight: 500; font-family: var(--font-head);
  color: rgba(255,255,255,.85); text-transform: uppercase; letter-spacing: .04em;
  border-radius: 6px; transition: .2s;
}
.nav__link:hover { color: var(--ga-blue); background: rgba(255,255,255,.06); }
.nav__link--active { color: var(--ga-blue); }
.header__cta { display: none; }
.burger {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: .5rem; margin-left: auto;
}
.burger span { display: block; width: 22px; height: 2px; background: #fff; transition: .2s; }

/* ── Search bar (как на оригинале — голубая полоса) ── */
.search-bar { background: var(--ga-blue); padding: 1.5rem 0; }
.search-bar--compact { padding: 1rem 0; }
.search-form {
  display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: .75rem; align-items: end;
}
.search-form__field label {
  display: block; font-size: .75rem; font-weight: 500; color: rgba(0,0,0,.65);
  margin-bottom: .3rem; text-transform: uppercase; letter-spacing: .03em;
}
.search-form__field input,
.search-form__field select {
  width: 100%; padding: .7rem .85rem; border: none; border-radius: var(--radius);
  font-size: .95rem; font-family: inherit; background: #fff; color: var(--ga-text);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.search-form__field input:focus,
.search-form__field select:focus { outline: 2px solid var(--ga-action); outline-offset: 1px; }

/* ── Hero (фон frontpage_mct — как .bg-frontpage) ── */
.hero {
  position: relative;
  background-color: var(--ga-black);
  background-image: url('../assets/bg/frontpage_mct_vrt.webp');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  color: #fff;
  padding: 3.5rem 0 4rem;
  border-bottom: 4px solid var(--ga-blue);
  min-height: 420px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.15) 100%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid; grid-template-columns: 1fr 360px; gap: 3rem; align-items: center;
}
.hero__tag {
  display: inline-block; color: var(--ga-blue); font-family: var(--font-head);
  font-weight: 500; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: .75rem;
}
.hero h1 {
  font-family: var(--font-head); font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700; line-height: 1.2; margin-bottom: 1.25rem;
}
.hero h1 em { color: var(--ga-blue); font-style: normal; }
.hero__list { list-style: none; margin-bottom: 2rem; }
.hero__list li {
  padding: .45rem 0 .45rem 1.5rem; position: relative; color: rgba(255,255,255,.88);
}
.hero__list li::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 14px; height: 19px;
  background: url("data:image/svg+xml,%3Csvg width='14' height='19' viewBox='0 0 14 19' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2L9.5 9.5L2 17' stroke='%2337E1F2' stroke-width='3'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  border-radius: 0;
}
.hero__btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__callback {
  background: rgba(255, 255, 255, 0.88); color: var(--ga-text); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow-lg); backdrop-filter: blur(6px);
}
.hero__callback h2 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: .25rem; }
.hero__callback > p { font-size: .85rem; color: var(--ga-muted); margin-bottom: 1rem; }
.callback-form {
  position: relative;
}
.callback-form input {
  width: 100%; padding: .85rem 1rem; border: 2px solid var(--ga-border);
  border-radius: var(--radius); font-size: 1rem; margin-bottom: .75rem; font-family: inherit;
}
.callback-form input:focus { border-color: var(--ga-blue); outline: none; }

/* ── Sections ── */
.section { padding: 3.5rem 0; }
.section--slider-bg { background: var(--ga-slider-bg); padding: 3rem 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 1.75rem;
}
.section-head h2, .section-head.center {
  font-family: var(--font-head); font-size: 1.75rem; font-weight: 700; color: var(--ga-black);
}
.section-head.center { text-align: center; display: block; margin-bottom: 2rem; }
.section-head__link { color: var(--ga-action); font-weight: 500; font-size: .95rem; }
.section-head__link:hover { text-decoration: underline; }

/* ── Trust bar ── */
.trust { background: var(--ga-black); padding: 2rem 0; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.trust__item strong {
  display: block; font-family: var(--font-head); font-size: 1.75rem;
  color: var(--ga-blue); font-weight: 700;
}
.trust__item span { font-size: .85rem; color: rgba(255,255,255,.7); }

/* ── Car cards ── */
.cars-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.25rem;
}
.car-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: .25s; border: 1px solid var(--ga-border);
}
.car-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.car-card__link { display: block; }
.car-card__img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--ga-gray); }
.car-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.car-card:hover .car-card__img img { transform: scale(1.04); }
.car-card__badge {
  position: absolute; top: .65rem; left: .65rem; padding: .2rem .65rem;
  border-radius: 4px; font-size: .7rem; font-weight: 700; text-transform: uppercase;
  font-family: var(--font-head);
}
.badge--casco { background: var(--ga-badge); color: var(--ga-black); }
.badge--new { background: var(--ga-new); color: var(--ga-black); }
.badge--sale { background: var(--ga-price); color: #fff; }

.car-card__body { padding: 1rem 1.15rem 1.15rem; }
.car-card__body h3 {
  font-family: var(--font-head); font-size: 1rem; font-weight: 600;
  color: var(--ga-black); margin-bottom: .2rem;
}
.car-card__year { color: var(--ga-muted); font-weight: 400; }
.car-card__specs { font-size: .8rem; color: var(--ga-muted); margin-bottom: .75rem; text-transform: capitalize; }
.car-card__foot { display: flex; justify-content: space-between; align-items: center; }
.car-card__price { font-size: .9rem; color: var(--ga-muted); }
.car-card__price strong { font-size: 1.15rem; color: var(--ga-price-text); font-family: var(--font-head); font-weight: 700; }
.car-card__more { font-size: .8rem; color: var(--ga-action); font-weight: 500; opacity: 0; transition: .2s; }
.car-card:hover .car-card__more { opacity: 1; }

/* ── Page banners (каталог, карточка авто) ── */
.page-banner {
  position: relative;
  background-color: var(--ga-black);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding: 2.25rem 0;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.65));
  pointer-events: none;
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner--catalog {
  background-image: url('../assets/bg/frontpage_mct_vrt.webp');
}
.page-banner--car {
  background-image: url('../assets/bg/single_s-klass_vrt.webp');
  background-position: left 60% center;
  padding: 1.75rem 0 2rem;
}
.page-banner .page-title { margin-bottom: 0; }
.page-banner .page-title h1 {
  font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700; color: #fff; text-transform: uppercase;
}
.page-banner .page-title p { color: rgba(255,255,255,.8); margin-top: .35rem; }
.page-banner .breadcrumbs { color: rgba(255,255,255,.65); margin-bottom: .75rem; }
.page-banner .breadcrumbs a { color: rgba(255,255,255,.9); }
.page-banner .breadcrumbs a:hover { color: var(--ga-blue); }
.page-banner .breadcrumbs span { color: rgba(255,255,255,.45); }

/* ── Catalog page ── */
.catalog-page { padding: 2rem 0 4rem; background: var(--ga-gray); min-height: 60vh; }
.catalog-page__layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.catalog-sidebar {
  background: #fff; border-radius: var(--radius-lg); padding: 1.5rem;
  box-shadow: var(--shadow); position: sticky; top: calc(var(--header-h) + 1rem);
}
.catalog-sidebar h2 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 1.25rem; }
.filter-group { margin-bottom: 1.25rem; }
.filter-group label { display: block; font-size: .8rem; font-weight: 500; color: var(--ga-muted); margin-bottom: .4rem; }
.filter-group input[type="range"] { width: 100%; accent-color: var(--ga-action); }
.filter-group output { display: block; font-weight: 600; color: var(--ga-action); margin-top: .25rem; font-family: var(--font-head); }
.filter-group select {
  width: 100%; padding: .6rem .75rem; border: 2px solid var(--ga-border);
  border-radius: var(--radius); font-family: inherit;
}
.catalog-sidebar__count { font-size: .85rem; color: var(--ga-muted); margin-top: 1rem; text-align: center; }
.catalog-sidebar__count span { font-weight: 700; color: var(--ga-action); }

.page-title { margin-bottom: 1.5rem; }
.page-title h1 { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--ga-black); }
.page-title p { color: var(--ga-muted); margin-top: .25rem; }

/* ── Car detail page ── */
.car-page { padding: 1.75rem 0 0; background: var(--ga-gray); }

.car-page > .container { padding-bottom: 2.5rem; }

.dyncontent .similar--nav {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ga-border);
}

/* Legacy nav strip / duplicate similar block outside dyncontent (AJAX flip) */
main.car-page .container > .car-strip,
main.car-page .container > .similar--nav,
main.car-page .container > #carSimilarNav {
  display: none !important;
}
#carDynContent #carSimilarNav,
#carDynContent .similar--nav {
  display: block !important;
}

.car-page__top {
  display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start;
  margin-bottom: 2rem;
}
.car-page__side { position: sticky; top: calc(var(--header-h) + 1rem); }

.car-page__gallery {
  background: #fff; border-radius: var(--radius-lg); padding: .75rem;
  box-shadow: var(--shadow); border: 1px solid var(--ga-border);
}

.car-events { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; }

.event-badge {
  display: inline-block; padding: .2rem .6rem; border-radius: 4px;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; font-family: var(--font-head);
}
.event-badge--sale { background: var(--ga-price); color: #fff; }
.event-badge--new { background: var(--ga-new); color: var(--ga-black); }
.event-badge--newprice { background: var(--ga-price); color: #fff; }
.event-badge--casco { background: #03c52d; color: #fff; }

.car-page__pricing { margin-bottom: 2rem; }

.pricing-block--full {
  background: #fff; border-radius: var(--radius-lg); padding: 1.5rem 1.75rem 1.75rem;
  box-shadow: var(--shadow); border: 1px solid var(--ga-border);
}
.pricing-block--full .tariff-switcher {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  background: transparent;
  border-bottom: 1px solid var(--ga-border);
}

.car-page__meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.characteristics {
  background: #fff; border-radius: var(--radius-lg); padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow); border: 1px solid var(--ga-border);
}

.breadcrumbs {
  display: flex; align-items: center; gap: .5rem; font-size: .85rem;
  color: var(--ga-muted); margin-bottom: 1.5rem; flex-wrap: wrap;
}
.breadcrumbs a:hover { color: var(--ga-action); }

.gallery__main {
  background: var(--ga-gray); border-radius: calc(var(--radius-lg) - 4px); overflow: hidden;
  aspect-ratio: 4/3; position: relative; margin-bottom: .75rem;
}
.gallery__slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s ease;
}
.gallery__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__thumbs { display: flex; gap: .5rem; }
.gallery__thumb {
  flex: 1; border: 2px solid transparent; border-radius: 8px; overflow: hidden;
  cursor: pointer; padding: 0; background: none; opacity: .65; transition: .2s;
}
.gallery__thumb.is-active, .gallery__thumb:hover { opacity: 1; border-color: var(--ga-blue); }
.gallery__thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.book-card {
  background: #fff; border-radius: var(--radius-lg); padding: 1.5rem;
  box-shadow: var(--shadow-lg); border: 1px solid var(--ga-border);
  position: sticky; top: calc(var(--header-h) + 1rem);
}
.book-card__head h2 {
  font-family: var(--font-head); font-size: 1.25rem; font-weight: 700;
  color: var(--ga-black); margin-bottom: .25rem;
}
.book-card__head h2 span { color: var(--ga-muted); font-weight: 400; }
.car-badge {
  display: inline-block; padding: .2rem .65rem; border-radius: 4px;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; margin-bottom: .75rem;
}
.book-card__price {
  font-size: 1rem; color: var(--ga-muted); margin-bottom: 1rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--ga-border);
}
.book-card__price strong { font-size: 2rem; color: var(--ga-price-text); font-family: var(--font-head); font-weight: 700; }
.info-chip {
  display: inline-block; background: var(--ga-gray); padding: .35rem .75rem;
  border-radius: 6px; font-size: .8rem; margin: 0 .35rem .35rem 0;
}
.info-chip--casco { background: rgba(63,239,197,.2); color: #0a7a5e; }

.book-form { display: flex; flex-direction: column; gap: .65rem; margin-top: 1rem; }
.book-form input {
  padding: .75rem 1rem; border: 2px solid var(--ga-border); border-radius: var(--radius);
  font-family: inherit; font-size: .95rem;
}
.book-form input:focus { border-color: var(--ga-blue); outline: none; }
.book-card__call {
  display: block; text-align: center; margin-top: .75rem; font-size: .85rem;
  color: var(--ga-action);
}

/* ── Tariff switcher (segmented control) ── */
.tariff-switcher {
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}
.pricing-block--full .tariff-switcher {
  margin-bottom: 0;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  background: transparent;
  border-bottom: 1px solid var(--ga-border);
}
.tariff-switcher__top { margin-bottom: 1rem; }
.tariff-switcher h2,
.tariff-switcher__top h2 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ga-black);
  margin-bottom: 0;
}
.tariff-switcher__desc {
  font-size: .85rem;
  color: var(--ga-muted);
  margin-top: .35rem;
  line-height: 1.4;
}

.tariff-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  padding: .4rem;
  background: var(--ga-gray);
  border-radius: 14px;
  border: 1px solid var(--ga-border);
}

.tariff-btn {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  width: 100%;
  padding: .95rem 1rem;
  min-height: 74px;
  border: 2px solid transparent;
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  transition: background .2s, border-color .2s, box-shadow .2s;
  position: relative;
}
.tariff-btn:hover:not(.active) { background: rgba(255, 255, 255, .55); }
.tariff-btn:focus-visible {
  outline: 2px solid var(--ga-action);
  outline-offset: 2px;
  z-index: 1;
}
.tariff-btn.active {
  background: #fff;
  border-color: var(--ga-action);
  box-shadow: 0 4px 18px rgba(0, 141, 199, .14);
}

.tariff-btn__radio {
  width: 18px;
  height: 18px;
  border: 2px solid #c5d0d6;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: .15rem;
  position: relative;
  transition: border-color .2s;
}
.tariff-btn.active .tariff-btn__radio { border-color: var(--ga-action); }
.tariff-btn.active .tariff-btn__radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--ga-action);
  border-radius: 50%;
}

.tariff-btn__content { flex: 1; min-width: 0; padding-right: .5rem; }
.tariff-btn__title {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .92rem;
  color: var(--ga-black);
  line-height: 1.25;
}
.tariff-btn__meta {
  display: block;
  font-size: .74rem;
  color: var(--ga-muted);
  margin-top: .25rem;
  line-height: 1.35;
  text-transform: none;
  font-weight: 400;
}
.tariff-btn.active .tariff-btn__meta { color: var(--ga-action); font-weight: 500; }

.tariff-btn__chip {
  position: absolute;
  top: .45rem;
  right: .45rem;
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: .18rem .5rem;
  border-radius: 999px;
  background: var(--ga-new);
  color: var(--ga-black);
  font-family: var(--font-head);
  pointer-events: none;
}

.pricing-block__loyalty { margin-top: .25rem; }
.pricing-block__label {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ga-muted);
  margin-bottom: .75rem;
  font-family: var(--font-head);
}

/* legacy — если остался в старых страницах */
.tariff-buttons { display: none; }
.tariff-notice { display: none; }

/* ── Price tabs & price cards ── */
.tabs { max-width: 100%; }

.tabs-nav {
  list-style: none;
  display: flex;
  gap: .5rem;
  margin-bottom: 1rem;
  padding: .35rem;
  background: var(--ga-gray);
  border-radius: 12px;
  border: 1px solid var(--ga-border);
}
.tabs-nav__item { flex: 1; min-width: 0; }
.tabs-nav__btn {
  width: 100%;
  display: block;
  border: 2px solid transparent;
  cursor: pointer;
  background: transparent;
  color: var(--ga-muted);
  text-transform: uppercase;
  padding: .6rem .5rem;
  border-radius: 9px;
  font-family: var(--font-head);
  font-size: .76rem;
  font-weight: 600;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.tabs-nav__btn:hover { color: var(--ga-black); background: rgba(255,255,255,.55); }
.tabs-nav__btn:focus-visible {
  outline: 2px solid var(--ga-action);
  outline-offset: 2px;
}
.tabs-nav__item.active .tabs-nav__btn {
  background: #fff;
  color: var(--ga-action);
  border-color: var(--ga-action);
  box-shadow: 0 2px 10px rgba(0,141,199,.12);
  font-weight: 700;
}
.tabs-nav__item.silver.active .tabs-nav__btn {
  background: #fff;
  color: #5a5a5a;
  border-color: silver;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.tabs-nav__item.gold.active .tabs-nav__btn {
  background: #fff;
  color: #8a5a00;
  border-color: #FFA800;
  box-shadow: 0 2px 10px rgba(255,168,0,.2);
}

.tab-content { padding: 0; border: none; }

.price-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  margin: 0;
  padding: .25rem 0 0;
  width: 100%;
}
.price-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: 1.15rem .65rem 1rem;
  min-height: 108px;
  text-align: center;
  background: linear-gradient(165deg, #fff 0%, var(--ga-gray) 100%);
  border: 1px solid var(--ga-border);
  border-radius: 14px;
  position: relative;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.price-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 141, 199, .12);
  border-color: rgba(63, 188, 239, .45);
}
.price-list li:last-child {
  border-color: var(--ga-action);
  background: linear-gradient(165deg, #fff 0%, rgba(63, 188, 239, .1) 100%);
  box-shadow: 0 4px 18px rgba(0, 141, 199, .1);
  padding-top: 1.35rem;
}
.price-list li:last-child::before {
  content: 'Выгоднее';
  position: absolute;
  top: -.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .2rem .55rem;
  background: var(--ga-new);
  color: var(--ga-black);
  border-radius: 999px;
  font-family: var(--font-head);
  white-space: nowrap;
  line-height: 1.2;
}
.price-list__days {
  order: 1;
  display: block;
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ga-muted);
  line-height: 1.3;
}
.price-list__val {
  order: 2;
  display: block;
  color: var(--ga-price-text);
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.price-list__val::after {
  content: ' ₽';
  font-size: .72em;
  font-weight: 500;
  color: var(--ga-muted);
}
.price-list li::after {
  order: 3;
  content: 'за сутки';
  font-size: .65rem;
  color: var(--ga-muted);
  font-weight: 400;
  text-transform: lowercase;
  opacity: .85;
}

.pricing-promo {
  margin-top: .75rem; padding: .65rem 1rem; background: rgba(63,239,197,.15);
  border-radius: var(--radius); font-size: .85rem; color: #0a7a5e; font-weight: 500;
}

/* ── Loyalty cards ── */
.loyalty-list {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .85rem;
}
.loyalty-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .85rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--ga-border);
  border-radius: var(--radius);
  height: 100%;
}
.loyalty-card__main {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  flex: 1;
}
.loyalty-card--silver { border-top: 3px solid silver; }
.loyalty-card--gold { border-top: 3px solid #FFA800; }
.loyalty-card__dot {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: silver; margin-top: .15rem;
}
.loyalty-card--gold .loyalty-card__dot { background: #FFA800; }
.loyalty-card__text strong {
  display: block; font-family: var(--font-head); font-size: .85rem;
  text-transform: uppercase; color: #464646; line-height: 1.3;
}
.loyalty-card__text p { font-size: .8rem; color: var(--ga-muted); margin-top: .2rem; }
.loyalty-card__more {
  align-self: flex-start;
  background: #fff;
  border: 2px solid var(--ga-action);
  color: var(--ga-action);
  border-radius: 999px;
  padding: .45rem .95rem;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
  white-space: nowrap;
}
.loyalty-card__more:hover {
  background: var(--ga-action);
  color: #fff;
  transform: translateY(-1px);
}
.loyalty-card__more:focus-visible {
  outline: 2px solid var(--ga-blue);
  outline-offset: 2px;
}

@media (min-width: 640px) {
  .loyalty-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  .loyalty-card__more { align-self: center; flex-shrink: 0; }
}

/* ── Modals (loyalty popups) ── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal.is-open { display: flex; }
body.modal-open { overflow: hidden; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(2px);
}
.modal__dialog {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  max-height: min(88vh, 640px);
  overflow-y: auto;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-lg);
  animation: modal-in .25s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.modal__title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ga-black);
  margin-bottom: 1rem;
  padding-right: 2rem;
  line-height: 1.3;
}
.modal__close {
  position: absolute;
  top: .85rem;
  right: .85rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--ga-gray);
  color: var(--ga-black);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s;
}
.modal__close:hover { background: var(--ga-border); }
.modal__body { font-size: .92rem; line-height: 1.55; color: var(--ga-text); }
.modal__body p { margin-bottom: .65rem; }
.modal__body ol {
  margin: .5rem 0 0;
  padding-left: 1.35rem;
}
.modal__body li { margin-bottom: .4rem; }
.modal__body li::marker { color: var(--ga-action); font-weight: 700; }

/* ── Characteristics (как на оригинале) ── */
.characteristics h2 {
  font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 1rem; text-transform: uppercase;
}
.characteristics__row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .55rem 0; border-bottom: 1px solid var(--ga-border); font-size: .9rem;
}
.characteristics__row span:first-child { color: var(--ga-muted); }
.characteristics__row span:last-child { font-weight: 500; text-transform: capitalize; text-align: right; }

.car-extras { display: flex; flex-direction: column; gap: .75rem; justify-content: stretch; }
.car-extra {
  flex: 1; padding: 1rem 1.15rem; background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--ga-border); border-left: 4px solid var(--ga-blue);
  box-shadow: var(--shadow); font-size: .88rem;
}
.car-extra strong { display: block; font-family: var(--font-head); font-size: .75rem; margin-bottom: .25rem; text-transform: uppercase; }
.car-extra--kasko { border-left-color: #03c52d; }
.car-extra--defence { border-left-color: var(--ga-action); }

/* ── Quest block (как .bg-quest) ── */
.quest-block {
  background-color: var(--ga-black);
  background-image: url('../assets/bg/frontpage_feedv_vrt.webp');
  background-position: center; background-size: cover; padding: 2.5rem 0;
}
.quest-block__inner { text-align: center; position: relative; z-index: 1; }
.quest-block p {
  color: #fff; font-family: var(--font-head); font-size: 1.5rem;
  font-weight: 700; text-transform: uppercase; margin-bottom: 1.25rem;
}

.specs-block h2, .pricing-block h2 {
  font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 1rem;
}
.specs-block h2 small, .pricing-block h2 small { font-weight: 400; color: var(--ga-muted); font-size: .85rem; }
.specs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.spec-item {
  background: var(--ga-gray); padding: .85rem 1rem; border-radius: var(--radius);
}
.spec-item span { display: block; font-size: .75rem; color: var(--ga-muted); margin-bottom: .15rem; }
.spec-item strong { font-family: var(--font-head); font-size: .95rem; text-transform: capitalize; }

.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-table th, .price-table td { padding: .85rem 1rem; text-align: left; }
.price-table thead { background: var(--ga-black); color: #fff; font-family: var(--font-head); font-size: .85rem; }
.price-table tbody tr:nth-child(even) { background: var(--ga-gray); }
.price-cell { font-weight: 700; color: var(--ga-price-text); font-family: var(--font-head); font-size: 1.05rem; }
.pricing-note { font-size: .8rem; color: var(--ga-muted); margin-top: .75rem; }

/* ── Similar cars (full-bleed band) ── */
.similar {
  background-color: var(--ga-slider-bg);
  background-image: url('../assets/bg/frontpage_mct_vrt.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding: 3.5rem 0;
  position: relative;
}
.similar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(201,214,220,.92) 0%, rgba(201,214,220,.88) 100%);
  pointer-events: none;
}
.similar__inner { position: relative; z-index: 1; }
.similar h2 {
  font-family: var(--font-head); font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700; color: var(--ga-black); margin-bottom: 1.75rem;
}
.similar .cars-grid { gap: 1.5rem; }
.similar .car-card { box-shadow: var(--shadow-lg); }

/* ── Reviews (фон frontpage_feedv — как .bg-feedback) ── */
.reviews {
  background-color: var(--ga-black);
  background-image: url('../assets/bg/frontpage_feedv_vrt.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
}
.reviews::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  pointer-events: none;
}
.reviews .container { position: relative; z-index: 1; }
.reviews .section-head.center { color: #fff; }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 2rem; }
.review {
  background: rgba(255,255,255,.95); border-radius: var(--radius-lg); padding: 1.5rem;
  border-left: 4px solid var(--ga-blue);
}
.review__stars { color: var(--ga-badge); letter-spacing: 2px; margin-bottom: .65rem; }
.review p { font-size: .92rem; margin-bottom: .75rem; font-style: italic; }
.review cite { font-style: normal; font-weight: 600; font-size: .85rem; color: var(--ga-black); }
.reviews__maps-lead {
  text-align: center;
  color: rgba(255,255,255,.82);
  font-size: .95rem;
  margin: -.5rem 0 1.25rem;
}
.map-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.map-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.15rem 1.15rem 1.35rem;
  background: rgba(255,255,255,.96);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.map-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,0,0,.24);
}
.map-card__accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
}
.map-card--yandex .map-card__accent { background: linear-gradient(180deg, #fc3f1d 0%, #ffcc00 100%); }
.map-card--2gis .map-card__accent { background: linear-gradient(180deg, #1db93c 0%, #0e7a3e 100%); }
.map-card--google .map-card__accent {
  background: linear-gradient(180deg, #4285f4 0%, #34a853 33%, #fbbc05 66%, #ea4335 100%);
}
.map-card__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--ga-gray);
}
.map-card__icon img { width: 40px; height: 40px; object-fit: contain; }
.map-card__body {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
}
.map-card__title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ga-black);
}
.map-card__text {
  font-size: .82rem;
  color: var(--ga-muted);
  line-height: 1.35;
}
.map-card__cta {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  margin-top: .45rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ga-action);
  transition: gap .2s ease;
}
.map-card:hover .map-card__cta { gap: .45rem; }
.map-card--yandex:hover .map-card__cta { color: #fc3f1d; }
.map-card--2gis:hover .map-card__cta { color: #1db93c; }
.map-card--google:hover .map-card__cta { color: #4285f4; }

/* ── Footer ── */
.footer { background: var(--ga-black); color: rgba(255,255,255,.75); padding-top: 2.5rem; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.footer__brand p { margin-top: .75rem; font-size: .88rem; }
.footer h4 { color: var(--ga-blue); font-family: var(--font-head); font-size: .9rem; margin-bottom: .75rem; }
.footer__col a { display: block; color: #fff; font-weight: 500; margin-bottom: .4rem; }
.footer__col a:hover { color: var(--ga-blue); }
.footer__vk { color: #0077ff !important; font-weight: 500; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1rem 0; font-size: .82rem; }
.footer__note { color: rgba(255,255,255,.45); }

/* ── FAB ── */
.fab {
  position: fixed; bottom: 1.25rem; right: 1.25rem; width: 54px; height: 54px;
  background: var(--ga-action); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,141,199,.45); z-index: 150; transition: .2s;
}
.fab:hover { background: var(--ga-blue); transform: scale(1.06); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .catalog-page__layout { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; }
  .car-page__top { grid-template-columns: 1fr; }
  .car-page__side { position: static; }
  .car-page__meta { grid-template-columns: 1fr; }
  .similar { padding: 2.5rem 0; }
  .pricing-block--full { padding: 1.25rem 1rem 1.5rem; }
  .tariff-segment { grid-template-columns: 1fr; }
  .tariff-btn { min-height: auto; }
  .loyalty-list { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .reviews__grid { grid-template-columns: 1fr; }
  .map-cards { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .price-list { grid-template-columns: repeat(2, 1fr); gap: .65rem; }
  .price-list li { min-height: 96px; padding: 1rem .5rem .85rem; }
}

@media (max-width: 768px) {
  .header__bar { display: none; }
  .search-form { grid-template-columns: 1fr 1fr; }
  .btn--search { grid-column: 1 / -1; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--ga-black);
    flex-direction: column; padding: 1.5rem; transform: translateX(100%);
    transition: transform .3s; align-items: stretch; z-index: 190;
  }
  .nav.open { transform: translateX(0); }
  .nav__link { padding: .85rem; font-size: .95rem; }
  .burger { display: flex; }
  .header__cta { display: inline-flex; font-size: .8rem; padding: .5rem .9rem; }
  .hero__btns { flex-direction: column; }
  .hero__btns .btn { width: 100%; }
  .footer__inner { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .search-form { grid-template-columns: 1fr; }
  .cars-grid { grid-template-columns: 1fr; }
  .price-list { grid-template-columns: 1fr 1fr; }
}

/* ── Responsive backgrounds (как на оригинале) ── */
@media (min-width: 710px) {
  .hero { background-image: url('../assets/bg/frontpage_mct_med.webp'); min-height: 480px; }
  .reviews { background-image: url('../assets/bg/frontpage_feedv_med.webp'); }
  .similar { background-image: url('../assets/bg/frontpage_mct_med.webp'); }
  .page-banner--catalog { background-image: url('../assets/bg/frontpage_mct_med.webp'); }
  .page-banner--car { background-image: url('../assets/bg/single_s-klass_med.webp'); }
  .quest-block { background-image: url('../assets/bg/frontpage_feedv_med.webp'); }
}
@media (min-width: 920px) {
  .hero { background-image: url('../assets/bg/frontpage_mct_wide.webp'); min-height: 540px; }
  .reviews { background-image: url('../assets/bg/frontpage_feedv_wide.webp'); }
  .similar { background-image: url('../assets/bg/frontpage_mct_wide.webp'); }
  .page-banner--catalog { background-image: url('../assets/bg/frontpage_mct_wide.webp'); }
  .page-banner--car { background-image: url('../assets/bg/single_s-klass_wide.webp'); }
  .quest-block { background-image: url('../assets/bg/frontpage_feedv_wide.webp'); }
}
@media (min-width: 1901px) {
  .hero { background-image: url('../assets/bg/frontpage_mct_ultrawide.webp'); }
  .reviews { background-image: url('../assets/bg/frontpage_feedv_ultrawide.webp'); }
  .similar { background-image: url('../assets/bg/frontpage_mct_ultrawide.webp'); }
  .page-banner--catalog { background-image: url('../assets/bg/frontpage_mct_ultrawide.webp'); }
  .page-banner--car { background-image: url('../assets/bg/single_s-klass_ultrawide.webp'); background-position: center; }
  .quest-block { background-image: url('../assets/bg/frontpage_feedv_ultrawide.webp'); }
}

/* ── Buyout page (аренда с выкупом) ── */
.page-buyout .search-bar { display: none; }

/* Единый ритм секций */
.page-buyout main > section:not(.buyout-screen) { padding-block: clamp(3.5rem, 6vw, 4.5rem); }
.page-buyout main > section .container { width: min(1240px, 100% - 2rem); margin-inline: auto; }
.page-buyout main > section [class$="__title"]:not(.buyout-screen__title):not(.buyout-extra__cond-title) {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.15;
  margin-bottom: .5rem;
  text-align: left;
}
.page-buyout main > section [class$="__sub"] {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 2rem;
  text-align: left;
}

/* Icon system */
.buyout-ico { width: 1.35rem; height: 1.35rem; display: block; flex-shrink: 0; color: inherit; fill: currentColor; }
.buyout-ico--arrow { width: .55rem; height: .8rem; }
.buyout-icon-box {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  border-radius: 12px; line-height: 0;
}
.buyout-icon-box--hero {
  width: 44px; height: 44px;
  background: rgba(63,188,239,.18); border: 1px solid rgba(63,188,239,.45);
  color: var(--ga-blue);
}
.buyout-icon-box--hero .buyout-ico { width: 1.5rem; height: 1.5rem; }
.buyout-icon-box--calc {
  width: 52px; height: 52px; margin-bottom: 1rem;
  background: rgba(0,141,199,.12); border: 1px solid rgba(0,141,199,.25);
  color: var(--ga-action);
}
.buyout-icon-box--calc .buyout-ico { width: 1.65rem; height: 1.65rem; }
.buyout-icon-box--doc {
  width: 56px; height: 56px; margin: 0 auto 1rem;
  background: rgba(3,72,99,.08); border: 1px solid rgba(3,72,99,.15);
  color: #034863;
}
.buyout-icon-box--doc .buyout-ico { width: 1.75rem; height: 1.75rem; }
.buyout-icon-box--why {
  width: 48px; height: 48px;
  background: #fff; border: 1px solid rgba(3,72,99,.12);
  color: #034863; box-shadow: 0 2px 8px rgba(3,72,99,.08);
}
.buyout-icon-box--why .buyout-ico { width: 1.45rem; height: 1.45rem; }
.buyout-arrow-wrap {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,.2); color: #fff;
}
.buyout-arrow-wrap--sm {
  width: 26px; height: 26px; border-radius: 6px;
  background: rgba(63,188,239,.2); color: var(--ga-blue);
}

/* 1. Hero */
.buyout-screen {
  position: relative; min-height: min(100vh, 920px); display: flex; align-items: center;
  padding: calc(var(--header-h) + 2.5rem) 0 3.5rem; overflow: hidden;
  background: #0a1520 url('../assets/buyout/hero-bg.png') center/cover no-repeat;
}
.buyout-screen::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(3,72,99,.9) 0%, rgba(10,21,32,.6) 50%, rgba(10,21,32,.25) 100%);
  pointer-events: none;
}
.buyout-screen__inner { position: relative; z-index: 1; }
.buyout-screen__bullets {
  display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin-bottom: 1.75rem;
  font-family: var(--font-head); font-size: clamp(.95rem, 2.2vw, 1.25rem); font-weight: 500; color: var(--ga-seablue);
}
.buyout-screen__title {
  font-family: var(--font-head); font-size: clamp(2rem, 6vw, 3.75rem); font-weight: 700;
  text-transform: uppercase; letter-spacing: .02em; color: var(--ga-blue); line-height: 1.08; margin-bottom: .4rem;
}
.buyout-screen__title span { color: #fff; }
.buyout-screen__subtitle {
  font-family: var(--font-head); font-size: clamp(1.15rem, 2.5vw, 1.75rem); font-weight: 700;
  color: #fff; margin-bottom: 1.1rem;
}
.buyout-screen__lead { color: rgba(255,255,255,.88); font-size: 1.02rem; line-height: 1.65; max-width: 52rem; margin-bottom: 2.25rem; }
.buyout-benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; }
.buyout-benefit {
  display: flex; align-items: flex-start; gap: .85rem;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 1rem 1.1rem;
  backdrop-filter: blur(8px); transition: border-color .2s, background .2s;
}
.buyout-benefit:hover { background: rgba(255,255,255,.11); border-color: rgba(63,188,239,.4); }
.buyout-benefit p { margin: 0; font-size: .84rem; line-height: 1.45; color: rgba(255,255,255,.92); padding-top: .15rem; }
.buyout-benefit strong { color: #fff; font-weight: 600; }
.buyout-regions {
  margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .65rem;
  padding-top: 1.35rem; border-top: 1px solid rgba(255,255,255,.12);
}
.buyout-regions__label { font-size: .85rem; color: rgba(255,255,255,.72); width: 100%; margin-bottom: .15rem; }
@media (min-width: 480px) { .buyout-regions__label { width: auto; margin-bottom: 0; } }
.buyout-regions__item {
  font-size: .78rem; font-weight: 500; color: #fff; padding: .35rem .8rem; border-radius: 999px;
  background: rgba(63,188,239,.18); border: 1px solid rgba(63,188,239,.35);
}

/* 2. Calculator */
.buyout-calc {
  position: relative; overflow: hidden;
  background-color: #0a1218;
}
.buyout-calc::before {
  content: ''; position: absolute; inset: 0;
  background: url('../assets/buyout/calc-deco.png') 62% center / cover no-repeat;
  z-index: 0;
}
.buyout-calc::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    rgba(201, 214, 220, 0.92) 0%,
    rgba(201, 214, 220, 0.78) 42%,
    rgba(184, 201, 209, 0.55) 72%,
    rgba(10, 18, 24, 0.35) 100%
  );
  pointer-events: none; z-index: 0;
}
.buyout-calc .container { position: relative; z-index: 1; }
.buyout-calc__title {
  color: #034863; margin-bottom: 2rem;
  text-shadow: none;
}
.buyout-calc__grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: stretch;
}
.buyout-calc__cta {
  background: rgba(255,255,255,.75); border-radius: var(--radius-lg); padding: 2rem 1.75rem;
  border: 1px solid rgba(255,255,255,.9); box-shadow: 0 8px 32px rgba(3,72,99,.1);
  display: flex; flex-direction: column; justify-content: center;
}
.buyout-calc__cta-text { font-size: 1.05rem; font-weight: 600; color: #034863; line-height: 1.5; margin-bottom: .65rem; }
.buyout-calc__cta-hint { font-size: .88rem; color: #034863; opacity: .8; margin-bottom: 1.5rem; }
.buyout-calc__panel {
  background: #fff; border-radius: var(--radius-lg); padding: 1.85rem 1.65rem;
  box-shadow: 0 12px 40px rgba(3,72,99,.14); border: 1px solid rgba(255,255,255,.8);
}
.buyout-calc__result {
  margin-top: 1.5rem; padding: 1.25rem 1rem; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(63,188,239,.08) 0%, rgba(0,141,199,.06) 100%);
  border: 1px solid rgba(63,188,239,.2); text-align: center;
}
.buyout-calc__label { font-size: .88rem; color: var(--ga-muted); margin-bottom: .35rem; }
.buyout-calc__amount {
  font-family: var(--font-head); font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 700; color: var(--ga-price-text); margin-bottom: .3rem; line-height: 1.1;
}
.buyout-calc__note { font-size: .72rem; color: var(--ga-muted); margin: 0; }
.buyout-slider { margin-bottom: 1.4rem; }
.buyout-slider:last-of-type { margin-bottom: 0; }
.buyout-slider__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .65rem;
}
.buyout-slider__head label { font-size: .88rem; font-weight: 500; color: #034863; }
.buyout-slider__head output {
  font-family: var(--font-head); font-size: .92rem; font-weight: 700; color: var(--ga-action); white-space: nowrap;
}
.buyout-slider input[type="range"] {
  -webkit-appearance: none; width: 100%; height: 8px; border-radius: 4px; cursor: pointer;
  background: linear-gradient(to right, var(--ga-action) 0%, var(--ga-action) var(--progress, 50%), #dde5ea var(--progress, 50%), #dde5ea 100%);
}
.buyout-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid var(--ga-action); box-shadow: 0 2px 10px rgba(0,141,199,.4);
}
.buyout-slider input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: #fff;
  border: 3px solid var(--ga-action); box-shadow: 0 2px 10px rgba(0,141,199,.4);
}

/* 3. Documents */
.buyout-docs { background: #fff; }
.buyout-docs__title { color: #111; }
.buyout-docs__title span { color: #034863; }
.buyout-docs__sub { color: #555; }
.buyout-docs__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.buyout-doc-card {
  background: linear-gradient(160deg, #d4e0e6 0%, #c9d6dc 100%);
  border-radius: var(--radius-lg); padding: 2rem 1.5rem 1.75rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 160px; text-align: center;
  border: 1px solid rgba(3,72,99,.08); transition: transform .2s, box-shadow .2s;
}
.buyout-doc-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(3,72,99,.12); }
.buyout-doc-card p { margin: 0; font-size: 1rem; font-weight: 600; color: #111; line-height: 1.35; }
.buyout-doc-card__note { font-size: .8rem; color: #034863; margin-top: .35rem; opacity: .85; }

/* 4. Car selection */
.buyout-selection {
  position: relative; min-height: 500px; display: flex; align-items: center;
  background: #0a1520 url('../assets/buyout/selection-bg.png') center/cover no-repeat;
}
.buyout-selection::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(3,72,99,.85) 0%, rgba(10,21,32,.55) 55%, rgba(10,21,32,.2) 100%);
}
.buyout-selection .container { position: relative; z-index: 1; }
.buyout-selection__title { color: var(--ga-blue); margin-bottom: 2rem; }
.buyout-selection__title span { color: #fff; font-weight: 400; }
.buyout-selection__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .85rem; max-width: 100%; }
.buyout-selection__item {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.35rem; border-radius: 10px;
  background: linear-gradient(90deg, rgba(63,188,239,.92) 0%, rgba(36,108,137,.45) 100%);
  color: #fff; font-size: clamp(.88rem, 1.8vw, 1rem); line-height: 1.45; width: 100%;
  box-shadow: 0 4px 16px rgba(0,0,0,.15); transition: transform .2s;
}
.buyout-selection__item:hover { transform: translateX(4px); }

/* 5. Payment formats */
.buyout-formats { background: #f8fafb; }
.buyout-formats__title { color: #111; }
.buyout-formats__title span { color: #034863; }
.buyout-formats__sub { color: #034863; }
.buyout-formats__list { display: flex; flex-direction: column; gap: 1.25rem; }
.buyout-format-row {
  position: relative; display: flex; align-items: stretch; gap: 0;
  background: #fff; border-radius: 16px; overflow: hidden; max-width: 100%;
  border: 1px solid rgba(3,72,99,.08); box-shadow: 0 4px 20px rgba(3,72,99,.08);
  transition: transform .2s, box-shadow .2s;
}
.buyout-format-row:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(3,72,99,.14); }
.buyout-format-row--featured { border-color: rgba(63,188,239,.35); }
.buyout-format-row__num {
  position: absolute; top: .85rem; left: .85rem; z-index: 2;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ga-action); color: #fff;
  font-family: var(--font-head); font-size: .85rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,141,199,.35);
}
.buyout-format-row__img {
  flex: 0 0 clamp(150px, 34%, 300px); min-height: clamp(110px, 18vw, 170px); overflow: hidden;
  background: #c9d6dc;
}
.buyout-format-row__img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.buyout-format-row__body {
  flex: 1; padding: 1.35rem 1.5rem; display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(135deg, #d4e0e6 0%, #c9d6dc 100%);
}
.buyout-format-row__body h3 {
  font-family: var(--font-head); font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 700;
  color: #034863; margin-bottom: .4rem;
}
.buyout-format-row__body p { margin: 0; font-size: .88rem; color: #333; line-height: 1.4; }
.buyout-formats__more { text-align: left; margin-top: 2rem; }
.link-btn {
  background: none; border: none; color: var(--ga-action); font-weight: 600; font-size: .95rem;
  cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--ga-blue); }

/* 6. Extra + conditions */
.buyout-extra {
  position: relative; overflow: hidden;
  min-height: clamp(440px, 52vw, 580px);
  background: linear-gradient(154deg, #1a1a2e 0%, #101523 48%, #034863 100%);
}
.buyout-extra::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(
    100deg,
    rgba(26, 26, 46, 0.95) 0%,
    rgba(16, 21, 35, 0.82) 34%,
    rgba(3, 72, 99, 0.35) 58%,
    rgba(3, 72, 99, 0.08) 100%
  );
}
.buyout-extra__car-deco {
  position: absolute; z-index: 0; pointer-events: none; user-select: none; line-height: 0;
  right: clamp(-4%, -2vw, 0%);
  bottom: clamp(-8%, -4vw, -2%);
  width: min(68%, 820px);
}
.buyout-extra__car-deco::after {
  content: ''; position: absolute; left: 10%; right: 5%; bottom: 8%; height: 35%;
  background: radial-gradient(ellipse at center, rgba(63, 188, 239, 0.22) 0%, transparent 72%);
  z-index: -1;
}
.buyout-extra__car-deco img {
  width: 100%; height: auto; display: block;
  mix-blend-mode: screen;
  opacity: 0.94;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.45));
}
.buyout-extra__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; align-items: center;
}
.buyout-extra__left { max-width: 36rem; }
.buyout-extra__title { color: #fff; margin-bottom: 1.35rem; }
.buyout-extra__title span { color: var(--ga-blue); }
.buyout-extra__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.buyout-extra__list li {
  display: flex; align-items: flex-start; gap: .75rem; color: rgba(255,255,255,.92);
  font-size: .94rem; line-height: 1.5;
}
.buyout-extra__right {
  position: relative; z-index: 2;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
}
.buyout-extra__cond-title {
  font-family: var(--font-head); font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 700;
  text-transform: uppercase; color: var(--ga-blue); margin-bottom: 1.15rem; text-align: left;
}
.buyout-extra__cond-title span { color: #fff; font-weight: 400; }
.buyout-extra__cond-cards { display: flex; flex-direction: column; gap: 1rem; }
.buyout-extra__cond-card {
  background: linear-gradient(135deg, #ececec 0%, #e0e0e0 100%);
  border-radius: 12px; padding: 1.5rem 1.35rem;
  display: flex; align-items: center; justify-content: center; min-height: 96px;
  border-left: 4px solid var(--ga-action);
}
.buyout-extra__cond-card p { margin: 0; font-size: clamp(.9rem, 1.8vw, 1.05rem); font-weight: 600; text-align: center; color: #111; line-height: 1.4; }

/* 7. Why choose */
.buyout-why {
  position: relative;
  background: #111 url('../assets/buyout/why-bg.png') center/cover no-repeat;
}
.buyout-why::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(3,72,99,.82) 0%, rgba(10,21,32,.6) 45%, rgba(10,21,32,.2) 100%);
}
.buyout-why .container { position: relative; z-index: 1; }
.buyout-why__title { color: #fff; margin-bottom: 2rem; }
.buyout-why__title span { color: var(--ga-blue); }
.buyout-why__list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.buyout-why__item {
  display: flex; align-items: center; gap: 1rem;
  background: rgba(201,214,220,.95); border-radius: 12px; padding: 1.1rem 1.25rem;
  border: 1px solid rgba(255,255,255,.5); transition: transform .2s, box-shadow .2s;
}
.buyout-why__item:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.buyout-why__item:last-child { grid-column: 1 / -1; }
.buyout-why__item p { margin: 0; font-size: .92rem; font-weight: 600; color: #034863; line-height: 1.35; }

.modal__dialog--wide { max-width: 560px; }
.modal__lead { font-size: .9rem; color: var(--ga-muted); margin-bottom: 1rem; }
.form-check {
  display: flex; align-items: flex-start; gap: .5rem; font-size: .8rem; color: var(--ga-muted);
  margin-bottom: 1rem; cursor: pointer;
}
.form-check input { margin-top: .2rem; accent-color: var(--ga-action); }

@media (max-width: 1024px) {
  .buyout-calc__grid { grid-template-columns: 1fr; }
  .buyout-extra { min-height: auto; }
  .buyout-extra__grid { grid-template-columns: 1fr; align-items: start; }
  .buyout-extra__left { max-width: none; }
  .buyout-extra__car-deco {
    right: 50%; bottom: -4%; width: min(92%, 520px);
    transform: translateX(50%); opacity: 0.55;
  }
  .buyout-extra__car-deco img { opacity: 0.75; }
}
@media (max-width: 768px) {
  .buyout-screen { min-height: auto; padding-bottom: 2.5rem; }
  .buyout-benefits { grid-template-columns: 1fr; }
  .buyout-screen__bullets { gap: .5rem 1rem; }
  .buyout-docs__grid { grid-template-columns: 1fr; }
  .buyout-format-row { flex-direction: column; }
  .buyout-format-row__img { flex: none; width: 100%; min-height: 150px; }
  .buyout-format-row__body { padding: 1.25rem 1.5rem 1.5rem; }
  .buyout-format-row__num { top: .65rem; left: .65rem; }
  .buyout-selection {
    background-image: url('../assets/buyout/selection-bg-mobile.png');
    background-position: center top;
  }
  .buyout-calc::before { background-position: center center; }
  .buyout-calc::after {
    background: linear-gradient(180deg, rgba(201, 214, 220, 0.9) 0%, rgba(184, 201, 209, 0.72) 100%);
  }
  .buyout-why__list { grid-template-columns: 1fr; }
  .buyout-why__item:last-child { grid-column: auto; }
  .buyout-extra__car-deco {
    right: 50%; bottom: -2%; width: min(100%, 400px);
    transform: translateX(50%); opacity: 0.45;
  }
  .buyout-extra__car-deco img { opacity: 0.8; }
}

.car-page > .container + .container {
  padding-top: 0.5rem;
  padding-bottom: 1rem;
}
/* Similar cars carousel nav (bottom of car page, AJAX flip) */
.similar--nav {
  margin-top: 0;
  padding: 2rem 0 0.5rem;
  border-top: 1px solid var(--border, #e5e7eb);
  background: none;
}
.similar--nav::before { display: none; }
.similar--nav h2 {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
}
.similar-nav__track {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 1rem;
  align-items: stretch;
}
.similar-nav__item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.65rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 2px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, opacity 0.2s, transform 0.2s;
}
.similar-nav__photo {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.similar-nav__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.similar-nav__info { display: flex; flex-direction: column; gap: 0.2rem; }
.similar-nav__name { font-weight: 600; font-size: 0.95rem; line-height: 1.25; }
.similar-nav__price { font-size: 0.85rem; color: var(--muted, #6b7280); }
.similar-nav__item.is-active {
  border-color: var(--accent, #c8102e);
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.14);
  background: #fff;
  transform: scale(1.02);
}
.similar-nav__item:not(.is-active) { opacity: 0.75; }
.similar-nav__item:not(.is-active):hover {
  opacity: 1;
  border-color: #d1d5db;
}
.similar-nav__item--empty { visibility: hidden; pointer-events: none; }
.similar-nav__arrows {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.similar-nav__arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.similar-nav__arrow:hover:not(:disabled) {
  border-color: var(--accent, #c8102e);
  background: #fff5f6;
}
.similar-nav__arrow:disabled { opacity: 0.35; cursor: default; }
.dyncontent { transition: opacity 0.3s ease; }

/* Form feedback */
.form-feedback {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  animation: feedback-in 0.35s ease;
}
.form-feedback[hidden] {
  display: none;
  animation: none;
}
.form-feedback--ok {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.form-feedback--err {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Form loading state */
form.is-loading input:not([type="hidden"]),
form.is-loading textarea,
form.is-loading select,
form.is-loading .form-check {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
form.is-loading [type="submit"] {
  position: relative;
  opacity: 1;
  pointer-events: none;
  color: transparent;
}
form.is-loading [type="submit"]::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: form-spin 0.7s linear infinite;
}
@keyframes form-spin {
  to { transform: rotate(360deg); }
}
@keyframes feedback-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .similar-nav__track { grid-template-columns: 1fr; }
  .similar-nav__item:not(.is-active) { display: none; }
}
