:root {
  --blue: #0053a0;
  --blue-dark: #003f7a;
  --blue-soft: color-mix(in srgb, var(--blue) 11%, #fff);
  --blue-soft-hover: color-mix(in srgb, var(--blue) 16%, #fff);
  --yellow: #ffffff;
  --yellow-ink: #232323;
  --text: #333;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-soft: #eff4f9;
  --line: #e5e9ef;
  /* Radius scale: controls → cards → large panels */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-btn: var(--radius-sm);
  --radius: var(--radius-md);
  --wrap: 1180px;
  --font: "Montserrat", system-ui, sans-serif;
  /* Type scale — keep site to these roles */
  --fs-sm: 0.84rem;       /* meta, captions, dates */
  --fs-text: 0.92rem;     /* card / supporting body */
  --fs-base: 1rem;        /* main body */
  --fs-accent: 1.05rem;   /* card titles, strong labels */
  --fs-sub: 1.25rem;      /* modal titles, price totals */
  --fs-h2: clamp(1.35rem, 3.2vw, 2.1rem);
  --shadow: 0 10px 30px rgba(0, 53, 160, 0.08);
  --hero-art-max-w: 700px;
  --hero-art-max-h: 290px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
h1, h2, h3 { margin: 0 0 0.55em; font-weight: 800; line-height: 1.15; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }

/* No focus/tap “selection square” on buttons and controls */
button,
a,
.btn,
.filter-pill,
.fancy-select-trigger,
.fancy-option,
.nav-toggle,
.social-btn,
.service-item,
.cal-nav,
.cal-day,
.cal-link,
.booking-modal-close,
.car-price-tab,
summary {
  -webkit-tap-highlight-color: transparent;
}
button:focus,
button:focus-visible,
a:focus,
a:focus-visible,
.btn:focus,
.btn:focus-visible,
.filter-pill:focus,
.filter-pill:focus-visible,
.fancy-select-trigger:focus,
.fancy-select-trigger:focus-visible,
.fancy-option:focus,
.fancy-option:focus-visible,
.nav-toggle:focus,
.nav-toggle:focus-visible,
.social-btn:focus,
.social-btn:focus-visible,
.service-item:focus,
.service-item:focus-visible,
.cal-nav:focus,
.cal-nav:focus-visible,
.cal-day:focus,
.cal-day:focus-visible,
.cal-link:focus,
.cal-link:focus-visible,
.booking-modal-close:focus,
.booking-modal-close:focus-visible,
summary:focus,
summary:focus-visible {
  outline: none;
}

.header-branding {
  display: none;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-branding-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}
.header-hours {
  display: grid;
  gap: 0.1rem;
  text-align: right;
  flex: 0 0 auto;
}
.header-hours-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
}
.header-hours strong {
  font-size: var(--fs-text);
  font-weight: 800;
  color: var(--blue);
  line-height: 1.2;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, backdrop-filter 0.2s ease;
}
.topbar.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 0;
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar.is-scrolled {
    background: rgba(255, 255, 255, 0.94);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar.is-scrolled {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
.topbar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
  min-height: 84px;
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-width: 0;
}
.brand .brand-logo-full {
  width: min(100%, 240px);
  height: auto;
  max-height: 48px;
  object-fit: contain;
  display: block;
}
.brand .brand-logo-ra {
  display: none;
}
.topbar-meta {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: nowrap;
}
.meta-item { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; padding-bottom: 0.12em; }
.meta-socials {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  justify-self: end;
}
.topbar-phone { display: none; }
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: opacity 0.15s ease;
  transform: none;
}
.social-btn:hover {
  opacity: 0.82;
  color: inherit;
  transform: none;
  filter: none;
}
.social-btn img {
  width: 36px;
  height: 36px;
  display: block;
}
.meta-phone { text-align: right; font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.meta-phone a { display: block; color: var(--blue); font-size: var(--fs-accent); font-weight: 800; }

.topbar-call {
  display: none;
}

/* FAB: always positioned; only shown on mobile via media query */
.social-fab {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  position: fixed;
  right: 0.85rem;
  bottom: 0.95rem;
  right: max(0.85rem, env(safe-area-inset-right, 0px));
  bottom: max(0.95rem, env(safe-area-inset-bottom, 0px));
  z-index: 45;
  pointer-events: none;
}
.social-fab-toggle {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  cursor: pointer;
  order: 2;
  pointer-events: auto;
}
.social-fab-toggle:hover {
  background: var(--blue-dark);
  color: #fff;
}
.social-fab-ico-close { display: none; }
.social-fab.is-open .social-fab-ico-chat { display: none; }
.social-fab.is-open .social-fab-ico-close { display: block; }
.social-fab-panel {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 0.45rem;
  order: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.social-fab.is-open .social-fab-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.social-fab-link {
  display: block;
  line-height: 0;
  border-radius: 12px;
  box-shadow: none;
}
.social-fab-link img {
  width: 44px;
  height: 44px;
  display: block;
}

.main-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(0, 53, 160, 0.1);
}
.main-nav.is-open { display: block; }
.nav-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0.35rem 0 0.75rem;
  font-weight: 700;
  font-size: var(--fs-accent);
}
.nav-inner a {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.nav-inner a:last-of-type { border-bottom: 0; }
.nav-inner a:hover { color: var(--blue); }
.nav-inner a.is-active {
  color: var(--blue);
  background: #f5f9fd;
  box-shadow: inset 3px 0 0 var(--blue);
}
.nav-toggle {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--blue); border-radius: 1px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle span { transition: transform 0.15s ease, opacity 0.15s ease; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0.7rem 1.2rem; border-radius: var(--radius-btn);
  border: none; font: inherit; font-weight: 700; cursor: pointer;
  transform: none;
  filter: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, opacity .15s ease;
}
.btn:hover,
.btn:focus-visible {
  transform: none;
  filter: none;
  color: inherit;
}
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover,
.btn-blue:focus-visible { color: #fff; background: var(--blue-dark); }
.btn-blue:disabled,
.btn-blue[aria-busy="true"] {
  opacity: 0.85;
  cursor: wait;
  background: var(--blue);
  color: #fff;
  gap: 0.55rem;
}
.btn-blue[aria-busy="true"]::before {
  content: "";
  width: 1.05em;
  height: 1.05em;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}
.btn-sm {
  min-height: 36px;
  padding: 0.35rem 0.9rem;
  font-size: var(--fs-sm);
}

.flash { padding: 0.9rem 0; font-weight: 700; }
.flash-ok { background: #e8f8ef; color: #176b3c; }
.flash-err { background: #fdecec; color: #9f1f1f; }

/* ===== HERO like prokatom.ru ===== */
.hero {
  width: min(100% - 2rem, var(--wrap));
  margin: 1.2rem auto 0.4rem;
  padding-bottom: 0.5rem;
}
.hero-banner {
  position: relative;
  min-height: 290px;
  border-radius: var(--radius-lg);
  background: #0053a0;
  background-image: none;
  color: #fff;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) 1.05fr;
  align-items: center;
  padding: 1.8rem 1.4rem 1.8rem 2rem;
  isolation: isolate;
}
.hero-banner::before,
.hero-banner::after {
  content: none;
  display: none;
}
.hero-copy { position: relative; z-index: 3; max-width: 34rem; }
.yandex-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}
.yandex-badges-hero {
  --hero-badge-h: 24px;
  --hero-badge-fs: var(--fs-accent);
  margin: 0 0 0.85rem;
  align-items: center;
  gap: 0.9rem;
}
.yandex-badges-hero .yandex-badge.rating,
.yandex-badges-hero .yandex-badge.place {
  height: var(--hero-badge-h);
  min-height: var(--hero-badge-h);
  max-height: var(--hero-badge-h);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  gap: 0.35rem;
  flex: 0 0 auto;
  align-items: center;
}
.yandex-badges-hero .yandex-badge.rating {
  color: #fff !important;
}
.yandex-badges-hero .yandex-badge.rating .hero-ya-mark,
.yandex-badges-hero .hero-ya-mark {
  display: block;
  box-shadow: none;
  border-radius: 0;
  height: var(--hero-badge-h) !important;
  width: var(--hero-badge-h) !important;
  object-fit: cover;
  object-position: left center;
  flex: 0 0 auto;
  max-width: none;
}
.yandex-badges-hero .hero-ya-score {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  color: #fff;
  font-size: var(--hero-badge-fs);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.yandex-badges-hero .hero-ya-star {
  color: #f5c400;
}
.yandex-badges-hero .yandex-badge.place {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.yandex-badges-hero .yandex-badge.rating:hover,
.yandex-badges-hero .yandex-badge.rating:focus,
.yandex-badges-hero .yandex-badge.rating:focus-visible,
.yandex-badges-hero .yandex-badge.place:hover,
.yandex-badges-hero .yandex-badge.place:focus,
.yandex-badges-hero .yandex-badge.place:focus-visible {
  background: transparent !important;
  color: #fff !important;
  opacity: 0.92;
  outline: none;
  box-shadow: none;
}
.yandex-badges-hero .yandex-badge .good-place-icon {
  width: auto;
  height: var(--hero-badge-h) !important;
  flex-shrink: 0;
}
.yandex-badges-hero .yandex-badge.place .good-place-text,
.yandex-badges-hero .yandex-badge.place .good-place-label,
.yandex-badges-hero .yandex-badge.place .good-place-year {
  white-space: nowrap;
  height: auto;
  font-size: var(--hero-badge-fs) !important;
  font-weight: 800;
  line-height: 1;
}
/* Hero badges: scale + drop year so row fits ≥320px (Yandex mobile) */
@media (max-width: 400px) {
  .yandex-badges-hero {
    --hero-badge-h: 22px;
    --hero-badge-fs: var(--fs-text);
    gap: 0.5rem;
    max-width: 100%;
    min-width: 0;
  }
  .yandex-badges-hero .yandex-badge.place .good-place-year {
    display: none;
  }
  .yandex-badges-hero .yandex-badge.rating,
  .yandex-badges-hero .yandex-badge.place {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
  }
}
.hero-copy h1 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.18em 0.35em;
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  font-weight: 800;
  margin: 0;
  max-width: 14em;
}
.hero-copy h1 .w { color: #fff; }
.hero-copy h1 .y { color: #fff; }
.hero-copy h1 .accent {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.05em 0.35em 0.08em;
  line-height: 1;
}
.hero-support {
  margin: 0.75rem 0 0;
  font-size: var(--fs-accent);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  max-width: 28rem;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}
.hero-cta-row .btn {
  min-height: 44px;
  padding: 0 1.15rem;
  font-weight: 800;
}
.btn-hero-light {
  background: #fff;
  color: var(--blue);
}
.btn-hero-light:hover,
.btn-hero-light:focus-visible {
  color: var(--blue-dark);
  background: #f3f7fc;
}
.hero-points {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.hero-points li {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 0 11px;
}
.hero-points li:last-child {
  padding-bottom: 0;
}
.hero-points-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 3px;
  margin-right: 0;
}
.hero-points .check-img {
  display: block;
  width: 22px;
  height: 21px;
}
.hero-points-text {
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.5;
}
.hero-points-row {
  display: none;
}
/* Hero stage: blue gradient + Octavia art */
.hero--stage {
  width: min(100% - 1.5rem, var(--wrap));
}
.hero--stage .hero-banner {
  grid-template-columns: 1fr;
  align-items: center;
  min-height: 0;
  gap: 0;
  padding: 1.85rem 2.6rem 1.7rem;
  border-radius: var(--radius-lg);
  color: #fff;
  background: linear-gradient(135deg, #0a6bc4 0%, #0053a0 52%, #003f7a 100%);
  overflow: hidden;
}
.hero--stage .hero-copy {
  position: relative;
  z-index: 2;
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero--stage .hero-kicker {
  margin: 0 0 0.75rem;
  font-size: var(--fs-text);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.01em;
}
.hero--stage .yandex-badges,
.hero--stage .yandex-badges-hero {
  margin: 0 0 1.15rem;
}
.hero--stage .hero-copy h1 {
  display: block;
  margin: 0;
  max-width: 12em;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.18;
  color: #fff;
}
.hero--stage .hero-copy h1 .accent {
  display: inline-block;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.08em 0.34em 0.1em;
  line-height: 1;
  vertical-align: 0.05em;
}
.hero--stage .hero-copy h1 .hero-dest {
  display: inline-block;
  min-width: 9.5ch;
  font-style: normal;
  white-space: nowrap;
  vertical-align: baseline;
}
.hero--stage .hero-copy h1 .hero-dest-word {
  display: inline-block;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.hero--stage .hero-copy h1 .hero-dest-word.is-out {
  opacity: 0;
  transform: translateY(0.22em);
}
@media (prefers-reduced-motion: reduce) {
  .hero--stage .hero-copy h1 .hero-dest-word {
    transition: none;
  }
  .hero--stage .hero-copy h1 .hero-dest-word.is-out {
    opacity: 1;
    transform: none;
  }
}
.hero--stage .hero-support {
  margin: 1.1rem 0 0;
  max-width: 26rem;
  font-size: var(--fs-accent);
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}
.hero--stage .hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
  margin-top: 1.55rem;
}
.hero--stage .hero-cta-row .btn-hero-light {
  min-height: 48px;
  padding: 0 1.35rem;
  font-weight: 800;
}
.hero--stage .hero-points-row,
.hero--stage .hero-visual,
.hero--stage .hero-cta-note {
  display: none !important;
}

/* Locked hero with Octavia art */
.hero--stage.hero--art .hero-banner {
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 1.85rem 1.4rem 1.7rem 2rem;
}
.hero--stage.hero--art .hero-copy {
  max-width: 34rem;
}
.hero--stage.hero--art .hero-visual {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.hero--stage.hero--art .hero-car-wrap {
  position: relative;
  /* shrink-wrap к картинке — % якоря лучей не плывут при ресайзе */
  width: fit-content;
  max-width: min(100%, 520px);
  line-height: 0;
}
.hero--stage.hero--art .hero-car,
.hero--stage.hero--art .hero-points-thumb {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 250px;
  filter: drop-shadow(0 16px 20px rgba(8, 20, 40, 0.35));
}
.hero--art-b .hero-car-wrap picture {
  position: relative;
  z-index: 1;
  display: block;
}
/* Свет фар — только после загрузки картинки авто */
.hero--art-b .hero-car-wrap .hero-hl {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0s linear 0.55s;
}
.hero--art-b .hero-car-wrap.is-hl-on .hero-hl {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.55s ease, visibility 0s;
}
.hero--art-b .hero-car-wrap.is-hl-on .hero-hl--beam,
.hero--art-b .hero-car-wrap.is-hl-on .hero-hl--core {
  /* пульс включается после появления */
  animation: hero-hl-pulse 3.6s ease-in-out infinite alternate;
}
/* Ближняя (справа на фото) и дальняя (слева на фото = правая у авто) */
.hero--art-b .hero-hl--r {
  --hl-x: 46.2%;
  --hl-y: 51.2%;
}
.hero--art-b .hero-hl--l {
  --hl-x: 3.5%;
  --hl-y: 50.5%;
}
/* LED-луч: холодный, длинный, стык с фарой без зазора */
.hero--art-b .hero-hl--beam {
  position: absolute;
  display: block !important;
  pointer-events: none;
  z-index: 2;
  left: auto;
  /* чуть заезжаем в линзу фары — без щели */
  right: calc(100% - var(--hl-x) - 1.2%);
  top: var(--hl-y);
  width: 88%;
  height: 16%;
  transform: translateY(-50%) rotate(-14deg);
  transform-origin: right center;
  border-radius: 40% / 50%;
  background: linear-gradient(
    270deg,
    rgba(230, 245, 255, 0.9) 0%,
    rgba(170, 220, 255, 0.55) 8%,
    rgba(120, 200, 255, 0.28) 28%,
    rgba(90, 180, 255, 0.12) 52%,
    rgba(70, 165, 255, 0.045) 74%,
    transparent 100%
  );
  filter: blur(5px);
  animation: none;
}
/* плотный стык у фары */
.hero--art-b .hero-hl--beam::before {
  content: "";
  position: absolute;
  right: -2%;
  top: 50%;
  width: 16%;
  height: 95%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(245, 252, 255, 0.95) 0%,
    rgba(170, 220, 255, 0.55) 40%,
    transparent 72%
  );
  filter: blur(2px);
}
/* мягкая оболочка луча */
.hero--art-b .hero-hl--beam::after {
  content: "";
  position: absolute;
  inset: -70% -8% -70% -10%;
  border-radius: 50%;
  background: linear-gradient(
    270deg,
    rgba(140, 205, 255, 0.26) 0%,
    rgba(100, 185, 255, 0.1) 35%,
    transparent 75%
  );
  filter: blur(14px);
}
.hero--art-b .hero-hl--beam.hero-hl--l {
  width: 78%;
  height: 10%;
  transform: translateY(-50%) rotate(-11deg);
  filter: blur(5.5px);
}
/* левая фара развёрнута — основание луча компактнее */
.hero--art-b .hero-hl--beam.hero-hl--l::before {
  width: 9%;
  height: 70%;
  right: -1%;
  filter: blur(1.6px);
  background: radial-gradient(
    circle,
    rgba(245, 252, 255, 0.75) 0%,
    rgba(170, 220, 255, 0.4) 42%,
    transparent 70%
  );
}
/* Пылинки вдоль LED-луча */
.hero--art-b .hero-hl--dust {
  position: absolute;
  display: block !important;
  pointer-events: none;
  z-index: 2;
  left: auto;
  right: calc(100% - var(--hl-x) - 1.2%);
  top: var(--hl-y);
  width: 84%;
  height: 14%;
  transform: translateY(-50%) rotate(-14deg);
  transform-origin: right center;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(270deg, #000 0%, #000 8%, #000 58%, transparent 94%);
  mask-image: linear-gradient(270deg, #000 0%, #000 8%, #000 58%, transparent 94%);
}
.hero--art-b .hero-hl--dust.hero-hl--l {
  width: 74%;
  height: 9%;
  transform: translateY(-50%) rotate(-11deg);
}
.hero--art-b .hero-hl--dust i {
  position: absolute;
  top: -12%;
  width: 1.2px;
  height: 1.2px;
  border-radius: 50%;
  background: rgba(210, 238, 255, 0.95);
  box-shadow: 0 0 1px rgba(140, 205, 255, 0.55);
  opacity: 0;
  animation: hero-dust-fall var(--dust-dur, 5.5s) linear infinite;
  animation-delay: var(--dust-delay, 0s);
}
.hero--art-b .hero-hl--dust i:nth-child(1)  { left: 80%; --dust-dur: 4.8s; --dust-delay: 0s; }
.hero--art-b .hero-hl--dust i:nth-child(2)  { left: 72%; --dust-dur: 5.6s; --dust-delay: -0.5s; width: 1px; height: 1px; }
.hero--art-b .hero-hl--dust i:nth-child(3)  { left: 64%; --dust-dur: 5.1s; --dust-delay: -1.1s; }
.hero--art-b .hero-hl--dust i:nth-child(4)  { left: 56%; --dust-dur: 6.2s; --dust-delay: -1.8s; width: 1px; height: 1px; }
.hero--art-b .hero-hl--dust i:nth-child(5)  { left: 48%; --dust-dur: 5.4s; --dust-delay: -0.3s; }
.hero--art-b .hero-hl--dust i:nth-child(6)  { left: 40%; --dust-dur: 6.8s; --dust-delay: -2.4s; width: 1px; height: 1px; }
.hero--art-b .hero-hl--dust i:nth-child(7)  { left: 76%; --dust-dur: 5.9s; --dust-delay: -1.5s; }
.hero--art-b .hero-hl--dust i:nth-child(8)  { left: 68%; --dust-dur: 4.6s; --dust-delay: -3.0s; width: 1px; height: 1px; }
.hero--art-b .hero-hl--dust i:nth-child(9)  { left: 52%; --dust-dur: 6.4s; --dust-delay: -0.8s; }
.hero--art-b .hero-hl--dust i:nth-child(10) { left: 60%; --dust-dur: 5.2s; --dust-delay: -3.6s; width: 1px; height: 1px; }
.hero--art-b .hero-hl--dust i:nth-child(11) { left: 44%; --dust-dur: 5.7s; --dust-delay: -2.1s; }
.hero--art-b .hero-hl--dust i:nth-child(12) { left: 36%; --dust-dur: 6.1s; --dust-delay: -4.0s; width: 1px; height: 1px; }
.hero--art-b .hero-hl--dust i:nth-child(13) { left: 74%; --dust-dur: 5.3s; --dust-delay: -2.7s; width: 1px; height: 1px; }
.hero--art-b .hero-hl--dust i:nth-child(14) { left: 58%; --dust-dur: 6.5s; --dust-delay: -1.3s; }
.hero--art-b .hero-hl--dust i:nth-child(15) { left: 46%; --dust-dur: 4.9s; --dust-delay: -3.3s; width: 1px; height: 1px; }
.hero--art-b .hero-hl--dust i:nth-child(16) { left: 66%; --dust-dur: 5.8s; --dust-delay: -4.5s; }
.hero--art-b .hero-hl--dust i:nth-child(17) { left: 54%; --dust-dur: 6.0s; --dust-delay: -0.6s; width: 1px; height: 1px; }
.hero--art-b .hero-hl--dust i:nth-child(18) { left: 42%; --dust-dur: 5.5s; --dust-delay: -2.9s; width: 1px; height: 1px; }
@keyframes hero-dust-fall {
  0% {
    top: -12%;
    opacity: 0;
  }
  14% { opacity: 0.9; }
  82% { opacity: 0.5; }
  100% {
    top: 108%;
    opacity: 0;
  }
}
/* Свечение линзы/прямоугольника LED у фары — источник луча */
.hero--art-b .hero-hl--core {
  position: absolute;
  display: block !important;
  pointer-events: none;
  z-index: 3;
  left: var(--hl-x);
  top: var(--hl-y);
  width: 7.2%;
  height: 5.6%;
  transform: translate(-42%, -50%) rotate(-8deg);
  border-radius: 22% / 40%;
  background: radial-gradient(
    70% 80% at 55% 50%,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(180, 225, 255, 0.65) 38%,
    rgba(120, 195, 255, 0.2) 68%,
    transparent 100%
  );
  box-shadow:
    0 0 6px 1px rgba(190, 230, 255, 0.55),
    0 0 14px 3px rgba(120, 195, 255, 0.28);
  filter: blur(0.6px);
  opacity: 0.92;
  animation: none;
}
.hero--art-b .hero-hl--core.hero-hl--l {
  width: 3.6%;
  height: 3.2%;
  transform: translate(-38%, -50%) rotate(-6deg);
  opacity: 0.7;
  filter: blur(0.9px);
  box-shadow:
    0 0 4px 1px rgba(190, 230, 255, 0.4),
    0 0 9px 2px rgba(120, 195, 255, 0.2);
}
.hero--art-b .hero-hl--core.hero-hl--r {
  transform: translate(-55%, -50%) rotate(-8deg);
}
@keyframes hero-hl-pulse {
  from { opacity: 0.78; }
  to { opacity: 0.96; }
}
@media (prefers-reduced-motion: reduce) {
  .hero--art-b .hero-car-wrap .hero-hl {
    transition: none;
  }
  .hero--art-b .hero-car-wrap.is-hl-on .hero-hl--beam,
  .hero--art-b .hero-car-wrap.is-hl-on .hero-hl--core {
    animation: none;
    opacity: 0.9;
  }
  .hero--art-b .hero-hl--dust { display: none !important; }
}
@media (max-width: 900px) {
  .hero--stage.hero--art .hero-banner {
    padding: 1.4rem 1.2rem 1.3rem;
  }
  .hero--stage.hero--art .hero-car,
  .hero--stage.hero--art .hero-points-thumb {
    max-height: 210px;
  }
}

.section { padding: 2.2rem 0; }

.section-head.row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: end; justify-content: space-between; margin-bottom: 0.8rem; }
.section-title, .page-head h1, .section-head h2, .booking-form h2 {
  font-size: var(--fs-h2);
  color: var(--blue);
}
.section-title span, .page-head h1 span, .section-head h2 span, .booking-form h2 span {
  color: inherit;
}
.legal-note {
  max-width: 40rem;
  margin: 0 0 1rem;
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}
.page-head { padding: 2rem 0 0.2rem; }
.page-head + .section {
  padding-top: 0.85rem;
}
.page-back-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 0.85rem;
}
.page-back-home {
  min-height: 42px;
  padding-inline: 1rem;
  font-weight: 700;
}
.nav-inner a.nav-home {
  color: var(--blue);
  font-weight: 800;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin: 0.85rem 0 0;
  font-size: var(--fs-text);
}
.related-links a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--blue) 35%, transparent);
}
.related-links a:hover { border-bottom-color: var(--blue); }
.related-links-current {
  color: var(--text);
  font-weight: 600;
}
.car-detail-body .related-links {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
}

.filters {
  display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.9rem;
  margin-bottom: 1.2rem;
}
.filters label { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.filters-pills {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.filter-pill {
  appearance: none;
  border: 0;
  border-radius: var(--radius-btn);
  min-height: 44px;
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: color-mix(in srgb, var(--blue) 78%, #1e293b);
  background: var(--blue-soft);
  box-shadow: none;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.filter-pill:hover {
  color: var(--blue);
  background: var(--blue-soft-hover);
  box-shadow: none;
}
.filter-pill:focus,
.filter-pill:focus-visible {
  outline: none;
  box-shadow: none;
}
.filter-pill.is-active {
  color: #fff;
  background: var(--blue);
  box-shadow: none;
}
.filter-pill.is-active:focus,
.filter-pill.is-active:focus-visible {
  box-shadow: none;
}
.filters-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}
.filters select, .filters input {
  border: 0; border-radius: var(--radius-sm); background: #fff; min-height: 42px;
  padding: 0.45rem 0.75rem; font: inherit; font-weight: 600; color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}
.filters .filters-sort {
  position: relative;
  min-width: min(100%, 220px);
  flex: 0 1 240px;
  z-index: 20;
}
.filters .filters-sort .fancy-select-trigger {
  min-height: 42px;
  border-radius: var(--radius-btn);
  background-color: var(--blue-soft);
  color: color-mix(in srgb, var(--blue) 78%, #1e293b);
  box-shadow: none;
  border-color: transparent;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.filters .filters-sort .fancy-select-trigger.is-active,
.filters .filters-sort .fancy-select-trigger:hover,
.filters .filters-sort .fancy-select-trigger:focus,
.filters .filters-sort .fancy-select-trigger:focus-visible {
  border-color: transparent;
  background-color: var(--blue-soft-hover);
  color: var(--blue);
  box-shadow: none;
  outline: none;
}
.filters .filters-sort.is-open .fancy-select-trigger {
  border-color: transparent;
  background-color: var(--blue-soft-hover);
  box-shadow: none;
  outline: none;
}
.filters .filters-sort .fancy-select-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: auto;
  width: max(100%, 220px);
  z-index: 40;
  margin: 0;
}
.filters select,
.booking-grid select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.4rem;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1.5 1.75L6 6.25L10.5 1.75' stroke='%230053A0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px 8px;
  cursor: pointer;
}
.booking-grid select {
  background-color: #fbfcfe;
}

/* ===== CAR CARDS like prokatom.ru ===== */
.car-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}
.car-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(52px, auto) auto;
  align-items: stretch;
  align-self: stretch;
  min-height: 268px;
  height: 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 12px 14px 14px;
  border-radius: var(--radius-md);
  background-color: #eff4f9;
  background-image: url("/static/img/fon-dlya-kartochkiavto-v-kataloge.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  overflow: hidden;
  gap: 10px;
  box-sizing: border-box;
}
.car-card-top {
  display: none;
}
.car-card-logo-wrap {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 36px;
  padding: 4px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.car-card-logo {
  position: static;
  width: 100%;
  height: 100%;
  max-width: 34px;
  max-height: 24px;
  padding: 0;
  box-sizing: border-box;
  object-fit: contain;
  pointer-events: none;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.car-card.is-hidden { display: none; }
.car-card-main {
  position: relative;
  height: auto;
  min-width: 0;
  min-height: 0;
  padding: 0 8px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}
.car-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 280px;
  height: 124px;
  margin-inline: auto;
  pointer-events: auto;
  color: inherit;
}
.car-card-media:hover { color: inherit; }
.car-card-media img {
  display: block;
  aspect-ratio: 3 / 2;
  width: min(92%, 258px);
  height: auto;
  max-height: 118px;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 10px 12px rgba(120, 130, 140, 0.22));
  pointer-events: none;
  user-select: none;
}
.car-card[data-car-id="hyundai-solaris"] .car-card-media img {
  max-width: 92%;
  max-height: 114px;
  transform: none;
  transform-origin: center center;
}
.car-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  z-index: 5;
}
.car-card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}
.car-card-title {
  margin: 0;
  max-width: none;
  flex: 1 1 auto;
  min-width: 0;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.2;
  font-weight: 800;
  text-align: left;
}
.car-card-title a {
  color: inherit;
  text-decoration: none;
}
.car-card-title a:hover { color: var(--blue); }

.car-card-meta {
  display: none;
}
.car-spec-year {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  font-size: var(--fs-text);
  color: #445;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.car-spec-year img {
  width: 18px;
  height: 18px;
  display: block;
}

.car-card-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: flex-start;
  gap: 6px;
  min-height: 52px;
}
.car-card-chips li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px 5px 6px;
  /* Slightly tighter than --radius-sm so dense chips don’t look like pills */
  border-radius: 10px;
  background: var(--blue-soft);
  border: 0;
  box-shadow: none;
  color: color-mix(in srgb, var(--blue) 62%, #1e293b);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.car-card-chips li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--blue) 55%, #7eb0d8);
  flex: 0 0 auto;
}

.car-card-actions {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 12px;
  z-index: 4;
  pointer-events: none;
  margin-top: auto;
}
.car-card-actions a,
.car-card-actions button {
  pointer-events: auto;
}
.btn-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--blue);
  color: #fff !important;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  flex: 1 1 auto;
  width: auto;
  min-width: 168px;
  max-width: 240px;
  margin: 0;
  box-shadow: none;
  cursor: pointer;
}
/* Card CTA fills leftover space; price column width is reserved so ticks don't jerk the button */
.car-card-actions .btn-order {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: none;
}
.btn-order:hover {
  filter: none;
  transform: none;
  color: #fff !important;
  background: var(--blue-dark);
}

.car-price-tab {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.3em;
  height: auto;
  min-height: 0;
  width: 8.75rem;
  padding: 0;
  margin: 0 0 2px;
  border-radius: 0;
  background: transparent;
  color: var(--blue);
  font-size: var(--fs-text);
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  flex: 0 0 8.75rem;
  letter-spacing: 0.01em;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.car-price-prefix,
.car-price-value,
.car-price-unit {
  display: inline-block;
}
.car-price-prefix[hidden] {
  display: none !important;
}
.car-price-value {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.car-price-unit {
  font-weight: 700;
  letter-spacing: 0;
}
.car-price-tab:hover {
  color: var(--blue);
  filter: none;
  text-decoration: none;
}

.car-specs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.car-specs li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  font-size: var(--fs-sm);
  color: #555;
  font-weight: 600;
  line-height: 1.25;
  min-height: 18px;
}
.car-specs li span {
  white-space: normal;
  overflow: visible;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}
.car-specs img { width: 16px; height: 16px; display: block; }
.car-specs.large { gap: 0.7rem; margin: 1rem 0 1.2rem; max-width: none; }
.car-specs.large li { font-size: var(--fs-accent); grid-template-columns: 28px 1fr; }
.car-specs.large img { width: 22px; height: 22px; }

.services-panel {
  background: var(--bg-soft);
  border-radius: 24px;
  padding: 1.6rem 1.2rem 1.8rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.service-item {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  color: inherit;
  border: 0;
  background: transparent;
  padding: 0.35rem;
  margin: 0;
  font: inherit;
  cursor: pointer;
  border-radius: 16px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.service-item:hover,
.service-item:focus-visible {
  background: rgba(0, 83, 160, 0.06);
  transform: none;
  outline: none;
}
.service-item:hover strong,
.service-item:focus-visible strong {
  color: var(--blue);
}
.service-item:hover .service-price,
.service-item:focus-visible .service-price {
  color: var(--blue);
}
.service-item img {
  width: 168px;
  height: 168px;
  max-width: 168px;
  object-fit: contain;
  border-radius: 28px;
  background: transparent;
  pointer-events: none;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: none;
  filter: none;
  transition: opacity 0.15s ease;
}
.service-item:hover img,
.service-item:focus-visible img {
  transform: none;
  filter: none;
  opacity: 0.92;
}
.service-item strong {
  font-size: var(--fs-base);
  transition: color 0.15s ease;
}
.service-item .service-price,
.service-item span {
  color: var(--muted);
  font-size: var(--fs-text);
  font-weight: 600;
  transition: color 0.15s ease;
}

.service-modal[hidden],
.booking-modal[hidden] {
  display: grid !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.service-modal,
.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}
.service-modal { z-index: 85; }
.service-modal.is-open,
.booking-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.service-modal-backdrop,
.booking-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 28, 45, 0.55);
  opacity: 0;
  transition: opacity 0.24s ease;
}
.service-modal.is-open .service-modal-backdrop,
.booking-modal.is-open .booking-modal-backdrop {
  opacity: 1;
}
.service-modal-dialog,
.booking-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  max-height: min(92vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  padding: 1.35rem 1.35rem 1.45rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  transform: translateY(18px) scale(0.96);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.2, 0.85, 0.25, 1), opacity 0.24s ease;
}
.booking-modal-dialog {
  width: min(100%, 640px);
  max-height: min(92vh, 860px);
}
.service-modal.is-open .service-modal-dialog,
.booking-modal.is-open .booking-modal-dialog {
  transform: none;
  opacity: 1;
}
.service-modal-dialog h2 {
  margin: 0 0 0.35rem;
  font-size: var(--fs-sub);
  color: var(--blue);
}
.booking-modal-dialog h2 {
  margin: 0 0 0.7rem;
  font-size: var(--fs-sub);
  color: inherit;
  padding-right: 3.6rem;
}
.booking-submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1.1rem;
  margin-top: 0.35rem;
}
.booking-submit-row .btn-lg {
  flex: 0 0 auto;
  margin: 0;
}
.booking-ask {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  min-width: 0;
  flex: 1 1 220px;
}
.booking-ask-text {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted);
  line-height: 1.25;
}
.booking-contacts {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.booking-contacts .social-btn img {
  width: 32px;
  height: 32px;
}
.service-modal-dialog {
  overflow: hidden;
}
.service-modal-dialog > .booking-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  float: none;
  margin: 0;
}
.service-modal-media {
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  margin: -1.35rem -1.35rem 0.85rem;
  padding: 1.55rem 1.1rem 0.95rem;
  min-height: 168px;
  background: #eff4f9;
  border-radius: 22px 22px 16px 16px;
}
.service-modal-media img {
  max-width: 168px;
  max-height: 168px;
  width: 168px;
  height: 168px;
  object-fit: contain;
  border-radius: 28px;
}
.service-modal-price {
  margin: 0 0 0.65rem;
  color: var(--blue);
  font-size: var(--fs-accent);
  font-weight: 800;
}
.service-modal-text {
  margin: 0 0 0.85rem;
  font-size: var(--fs-text);
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}
.service-modal-details {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.service-modal-details li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  background: #f5f8fc;
  font-size: var(--fs-text);
  font-weight: 600;
}
.service-modal-details span {
  color: var(--muted);
}
.service-modal-details strong {
  color: var(--blue);
  text-align: right;
  font-weight: 800;
}
.service-modal-dialog .btn {
  width: 100%;
}

.rules-layout {
  display: block;
}
.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  overflow: visible;
  padding: 1.35rem 0 0;
  margin: 0;
}
.page-detail-list {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.page-detail-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted);
  font-size: var(--fs-text);
  font-weight: 600;
  line-height: 1.4;
}
.page-detail-list li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent);
}
.rules-extras {
  margin-top: 2rem;
}
.rules-extras--home {
  margin-top: 1rem;
}
.rules-extras--home .rules-extras-list {
  margin-top: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.rules-extras--home .rules-extras-list li {
  padding: 0.95rem 1rem;
  border-radius: 16px;
}
.rules-extras--home .rules-extras-list strong {
  font-size: var(--fs-accent);
  font-weight: 800;
  margin-bottom: 0.28rem;
}
.rules-extras--home .rules-extras-list p {
  font-size: var(--fs-text);
  font-weight: 600;
  line-height: 1.4;
}
.rules-extras-list {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.rules-extras-list li {
  margin: 0;
  padding: 1.1rem 1.15rem;
  border-radius: 18px;
  background: #eff4f9;
  border: 0;
}
.rules-extras-list strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: var(--fs-accent);
  font-weight: 800;
}
.rules-extras-list p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-text);
  font-weight: 600;
  line-height: 1.45;
}
.rules-page-actions {
  margin-top: 1.5rem;
}
.rule-card {
  position: relative;
  border-radius: 22px;
  padding: 1.35rem 8.5rem 1.05rem 1.2rem;
  text-align: left;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  min-height: 124px;
  background-color: #eff4f9;
  border: 0;
  box-shadow: var(--shadow);
  overflow: visible;
}
.rule-card-copy {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  z-index: 1;
  padding-top: 0.15rem;
}
.rule-card-media {
  position: absolute;
  right: 0.65rem;
  top: -1.55rem;
  z-index: 2;
  width: 140px;
  height: 140px;
  max-width: calc(100% - 1.3rem);
  margin: 0;
  object-fit: contain;
  object-position: right center;
  border-radius: 0;
  background: transparent;
  pointer-events: none;
  transform: none;
  filter: drop-shadow(0 18px 16px rgba(20, 40, 80, 0.28));
}
.rule-card h3 {
  max-width: none;
  width: auto;
  font-size: var(--fs-accent);
  font-weight: 800;
  margin: 0 0 0.4rem;
}
.rule-card p {
  max-width: 18rem;
  width: auto;
  color: var(--muted);
  font-size: var(--fs-text);
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  min-height: 2.8em;
}
.rules-perks {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.rules-perks li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: var(--fs-text);
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}
.rules-perks li > span:last-child {
  max-width: 16em;
}
.rules-perks-icon {
  flex: 0 0 auto;
  display: inline-flex;
  width: 28px;
  height: 28px;
  margin-top: 0.05rem;
}
.rules-perks-icon img {
  width: 28px;
  height: 28px;
  display: block;
}

.section-lead {
  margin: -0.35rem 0 1.15rem;
  color: var(--muted);
  font-weight: 600;
  font-size: var(--fs-base);
  max-width: 36rem;
}
.how-rent-steps {
  list-style: none;
  margin: 0;
  padding: 0.85rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  overflow: visible;
}
.how-rent-step {
  position: relative;
  display: block;
  padding: 1.7rem 1.15rem 1.2rem;
  border-radius: 20px;
  background: var(--bg-soft);
  border: 0;
  overflow: visible;
}
.how-rent-num {
  position: absolute;
  left: 0.35rem;
  top: -1.05rem;
  z-index: 2;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  padding: 0;
  color: var(--blue);
  text-shadow: none;
  pointer-events: none;
}
.how-rent-steps.is-play .how-rent-step:nth-child(1) .how-rent-num {
  animation: how-rent-num-glow 1.8s ease 0.12s both;
}
.how-rent-steps.is-play .how-rent-step:nth-child(2) .how-rent-num {
  animation: how-rent-num-glow 1.8s ease 1.85s both;
}
.how-rent-steps.is-play .how-rent-step:nth-child(3) .how-rent-num {
  animation: how-rent-num-glow 1.8s ease 3.58s both;
}
@keyframes how-rent-num-glow {
  0%, 100% {
    color: var(--blue);
  }
  22%, 58% {
    color: #2f78c8;
  }
}
@media (prefers-reduced-motion: reduce) {
  .how-rent-steps.is-play .how-rent-num {
    animation: none;
  }
}
.how-rent-step h3 {
  margin: 0 0 0.35rem;
  font-size: var(--fs-accent);
  font-weight: 800;
  padding-left: 3.5rem;
}
.how-rent-step p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-text);
  font-weight: 600;
  line-height: 1.4;
  padding-left: 3.5rem;
}
.how-rent-step .page-detail-list {
  padding-left: 3.5rem;
}
.how-rent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.15rem;
}
.how-rent-actions .label-short { display: none; }
.how-rent-messengers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  margin-top: 0.85rem;
}
.how-rent-messengers-label {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.how-rent-messengers-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}
.how-rent-messengers-list .social-btn img {
  width: 36px;
  height: 36px;
  display: block;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-btn);
  border: 1px solid color-mix(in srgb, var(--blue) 35%, var(--line));
  background: #fff;
  color: var(--blue);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.btn-ghost:hover {
  background: rgba(0, 83, 160, 0.08);
  color: var(--blue-dark);
  transform: none;
  filter: none;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
  max-width: 52rem;
}
.faq-item {
  border: 0;
  border-radius: 16px;
  background: var(--bg-soft);
  padding: 0 1rem;
  transition: background-color 0.35s ease;
}
.faq-item.is-open {
  background: #e4ecf5;
}
html:not(.faq-enhanced) .faq-item[open] {
  background: var(--bg-soft);
}
.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  cursor: pointer;
  list-style: none;
  font-weight: 750;
  font-size: var(--fs-base);
  padding: 0.95rem 0;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q {
  min-width: 0;
  flex: 1 1 auto;
}
.faq-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.22rem;
}
.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--blue);
  border-radius: 1px;
  transform: translate(-50%, -50%);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-toggle::before {
  width: 100%;
  height: 3.25px;
}
.faq-toggle::after {
  width: 3.25px;
  height: 100%;
}
.faq-item.is-open .faq-toggle::after,
html:not(.faq-enhanced) .faq-item[open] .faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.faq-item-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s ease;
}
.faq-item.is-open .faq-item-panel,
html:not(.faq-enhanced) .faq-item[open] .faq-item-panel {
  grid-template-rows: 1fr;
}
.faq-item-panel-inner {
  overflow: hidden;
  min-height: 0;
}
.faq-item p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-weight: 600;
  font-size: var(--fs-text);
  line-height: 1.45;
}
@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-toggle::before,
  .faq-toggle::after,
  .faq-item-panel {
    transition: none;
  }
}

.booking-section { background: linear-gradient(180deg, #fff, #f5f8fc); }
.booking-form {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.booking-form h2 { font-size: var(--fs-h2); }
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0.85rem 0 1rem;
}
.booking-grid label { display: grid; gap: 0.3rem; font-size: var(--fs-sm); font-weight: 700; color: var(--muted); align-content: start; }
.booking-grid label:has([data-field-error]) {
  grid-template-rows: auto auto minmax(1.15em, auto);
}
.booking-grid .span-2 { grid-column: 1 / -1; }
.booking-grid .check-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border: 0;
  border-radius: 14px;
  background: #fbfcfe;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease;
}
.booking-grid .check-row:hover {
  background: #f3f7fc;
}
.booking-grid .check-row:has(input:checked) {
  background: #eaf2fb;
  box-shadow: none;
}
.booking-grid .check-row input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  pointer-events: none;
}
.booking-grid .check-ui {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid #c5d0de;
  border-radius: 7px;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
  box-sizing: border-box;
}
.booking-grid .check-row:has(input:checked) .check-ui {
  border-color: var(--blue);
  background: var(--blue);
}
.booking-grid .check-ui::after {
  content: "";
  width: 5px;
  height: 9px;
  margin-top: -1px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform 0.12s ease;
  box-sizing: border-box;
}
.booking-grid .check-row:has(input:checked) .check-ui::after {
  transform: rotate(45deg) scale(1);
}
.booking-grid .check-text {
  line-height: 1.35;
}
.booking-grid .check-text em {
  font-style: normal;
  color: var(--blue);
  font-weight: 800;
}
.booking-grid input, .booking-grid select, .booking-grid textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  background-color: #fbfcfe;
}
.booking-grid input[type="date"],
.booking-grid input[type="time"] {
  min-width: 0;
  color-scheme: light;
}
.booking-grid input:focus, .booking-grid select:focus {
  outline: 2px solid rgba(0,83,160,.25);
  border-color: transparent;
}
.booking-grid input.is-invalid,
.booking-grid input.is-invalid:focus {
  border-color: #c23b3b;
  outline: 2px solid rgba(194, 59, 59, 0.22);
  background: #fff8f8;
}
.booking-grid .field-error {
  display: block;
  margin-top: 0;
  min-height: 1.15em;
  font-size: 0.78rem;
  font-weight: 600;
  color: #c23b3b;
  line-height: 1.25;
}
.booking-grid .field-error[hidden] {
  visibility: hidden;
  display: block !important;
}
.booking-grid .field-optional {
  font-style: normal;
  font-weight: 600;
  color: #9aa3b2;
}
.contact-pref {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  display: grid;
  gap: 0.4rem;
}
.contact-pref .field-label {
  padding: 0;
}
.contact-pref-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.contact-pref-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}
.contact-pref-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}
.contact-pref-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--blue-soft);
  color: color-mix(in srgb, var(--blue) 78%, #1e293b);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}
.contact-pref-pill:hover span {
  background: var(--blue-soft-hover);
  color: var(--blue);
}
.contact-pref-pill:has(input:checked) span,
.contact-pref-pill input:checked + span {
  background: var(--blue);
  color: #fff;
}
.contact-pref-pill:has(input:focus-visible) span {
  outline: 2px solid rgba(0, 83, 160, 0.28);
  outline-offset: 2px;
}
.booking-grid input[readonly] {
  background: #f0f4f9;
  color: var(--text);
  font-weight: 700;
  cursor: default;
}

/* Date range + Russian calendar */
.date-range {
  position: relative;
  display: grid;
  gap: 0.35rem;
}
.date-range .field-label {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--muted);
}
.date-range-fields {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.45rem;
  align-items: stretch;
}
.date-field {
  display: grid;
  gap: 0.15rem;
  text-align: left;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font: inherit;
  color: inherit;
}
.date-field:hover,
.date-field.is-active {
  border-color: var(--blue);
  outline: 2px solid rgba(0,83,160,.18);
}
.date-field.is-filled strong {
  color: var(--text);
}
.date-field-cap {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.date-field strong {
  font-size: var(--fs-text);
  font-weight: 700;
  color: #8a93a3;
}
.date-range-sep {
  align-self: center;
  color: var(--blue);
  font-weight: 700;
  font-size: var(--fs-accent);
}
.cal-popover {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  max-width: 340px;
  padding: 0.85rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 35, 70, 0.16);
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.cal-title {
  font-size: var(--fs-accent);
  font-weight: 800;
  color: var(--blue);
}
.cal-nav {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 10px;
  background: #eef3f9;
  color: var(--blue);
  font-size: var(--fs-accent);
  line-height: 1;
  cursor: pointer;
}
.cal-nav:hover {
  background: #eaf2fb;
}
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.15rem;
  margin-bottom: 0.25rem;
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--muted);
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
}
.cal-day {
  aspect-ratio: 1;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.cal-day:hover:not(:disabled) {
  background: #eaf2fb;
}
.cal-day.is-outside {
  color: #b7c0cd;
}
.cal-day.is-disabled {
  color: #cdd3dc;
  cursor: not-allowed;
}
.cal-day.is-today {
  box-shadow: inset 0 0 0 1.5px var(--blue);
}
.cal-day.is-in-range {
  background: #e7f0fa;
  border-radius: 0;
}
.cal-day.is-start,
.cal-day.is-end,
.cal-day.is-single {
  background: var(--blue);
  color: #fff;
  border-radius: 10px;
}
.cal-day.is-start:not(.is-single) {
  border-radius: 10px 0 0 10px;
}
.cal-day.is-end:not(.is-single) {
  border-radius: 0 10px 10px 0;
}
.cal-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}
.cal-link {
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
  padding: 0.2rem 0.1rem;
}
.cal-link:hover {
  color: #003d78;
}

/* Custom selects (time / delivery) */
.field-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--muted);
}
.fancy-select {
  position: relative;
}
.fancy-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 2.4rem 0.6rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: #fbfcfe;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1.5 1.75L6 6.25L10.5 1.75' stroke='%230053A0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px 8px;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.fancy-select-trigger:hover,
.fancy-select-trigger.is-active {
  border-color: var(--blue);
  outline: none;
}
.fancy-select-trigger strong {
  font-size: var(--fs-text);
  font-weight: 700;
  color: #8a93a3;
}
.fancy-select-trigger.is-filled strong {
  color: var(--text);
}
.fancy-select-menu {
  position: absolute;
  z-index: 45;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 35, 70, 0.18);
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 83, 160, 0.35) transparent;
  box-sizing: border-box;
}
.fancy-select-menu[hidden] {
  display: none !important;
}
.fancy-select-menu.is-open {
  display: block !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--line) !important;
  background: #fff !important;
  box-shadow: 0 18px 40px rgba(15, 35, 70, 0.18) !important;
  padding: 0.45rem !important;
  overflow: auto !important;
}
.fancy-option {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 0.72rem 0.85rem;
  background: transparent;
  font: inherit;
  font-size: var(--fs-text);
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  box-sizing: border-box;
}
.fancy-option:hover {
  background: #eaf2fb;
}
.fancy-option.is-selected,
.fancy-option:focus-visible {
  background: var(--blue);
  color: #fff;
  outline: none;
}
.fancy-select[data-fancy-select="time"] .fancy-select-menu,
.fancy-select[data-fancy-select="car"] .fancy-select-menu,
.fancy-select[data-fancy-select="delivery"] .fancy-select-menu {
  max-height: 260px;
}
.fancy-select.is-open .fancy-select-trigger {
  border-color: var(--blue);
  outline: none;
}
@media (max-width: 720px) {
  .fancy-select-menu,
  .fancy-select-menu.is-open {
    border-radius: var(--radius-md) !important;
    padding: 0.5rem !important;
    max-height: min(50vh, 320px) !important;
    box-shadow: 0 20px 48px rgba(15, 35, 70, 0.22) !important;
  }
  .fancy-option {
    min-height: 48px;
    padding: 0.85rem 0.95rem;
    font-size: var(--fs-accent);
    border-radius: var(--radius-sm);
  }
}
@media (max-width: 640px) {
  .date-range-fields {
    grid-template-columns: 1fr;
  }
  .date-range-sep {
    display: none;
  }
  .cal-popover {
    position: fixed;
    z-index: 120;
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    max-width: none;
    width: auto;
    box-shadow: 0 20px 48px rgba(15, 35, 70, 0.22);
  }
}
.booking-total {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.15rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #eaf2fb, #f5f8fc);
  border: 0;
}
.booking-total[hidden] { display: none !important; }
.booking-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: var(--fs-accent);
  font-weight: 700;
  color: var(--text);
}
.booking-total-row strong {
  font-size: var(--fs-sub);
  font-weight: 800;
  color: var(--blue);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.booking-total-meta {
  display: grid;
  gap: 0.05rem;
}
.booking-total-hint,
.booking-total-deposit {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
}
.booking-total-deposit[hidden] {
  display: none !important;
}

html.modal-open,
body.modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}
.booking-modal-close {
  position: sticky;
  top: 0.45rem;
  float: right;
  z-index: 30;
  width: 48px;
  height: 48px;
  margin: -0.15rem -0.15rem 0.35rem 0.75rem;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-size: 1.85rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(15, 35, 70, 0.16);
  border: 1px solid var(--line);
}
.booking-modal-close:hover {
  background: #eff4f9;
  color: var(--blue);
}
.service-modal-dialog h2 {
  padding-right: 3.6rem;
}
.booking-car-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 0.85rem;
  padding: 0.9rem;
  background: #eff4f9;
  border-radius: 16px;
}
.booking-car-preview-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.booking-car-photo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 88px;
  min-height: 64px;
  padding: 0.55rem;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  border: 0;
}
.booking-car-logo-wrap {
  background: #fff;
}
.booking-car-logo {
  width: min(100%, 72px);
  height: auto;
  max-height: 48px;
  padding: 0;
  box-sizing: border-box;
  object-fit: contain;
}
.booking-car-preview.is-empty {
  display: none;
}
.booking-car-meta {
  min-width: 0;
  flex: 1;
}
.booking-car-name {
  display: block;
  margin: 0;
  font-size: var(--fs-base);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.booking-tariffs {
  margin: 0;
  width: 100%;
  min-width: 0;
}
.booking-tariffs-empty {
  margin: 0;
  padding: 0.75rem;
  background: #fff;
  border: 0;
  border-radius: 12px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted);
}
.tariff-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
}
.tariff-tile {
  display: grid;
  gap: 0.2rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.7rem 0.45rem;
  background: var(--blue-soft);
  border: 0;
  border-radius: 12px;
  text-align: center;
  align-content: start;
}
.tariff-tile-deposit {
  background: color-mix(in srgb, var(--blue) 36%, #fff);
}
.tariff-tile-deposit .tariff-label {
  color: color-mix(in srgb, var(--blue) 78%, #1e293b);
}
.tariff-tile-deposit .tariff-value {
  color: var(--blue-dark);
}
.tariff-tile-deposit .tariff-unit {
  color: color-mix(in srgb, var(--blue) 58%, #64748b);
}
.tariff-label {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.tariff-value {
  font-size: var(--fs-accent);
  font-weight: 800;
  color: var(--blue);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.tariff-unit {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted);
}
.booking-notes {
  margin: 0;
  padding: 0.75rem 0.9rem 0.8rem 1rem;
  background: #f7fafc;
  border: 0;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.booking-notes--c {
  position: relative;
}
.booking-notes-title {
  margin: 0 0 0.55rem;
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--blue);
}
.booking-notes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.42rem;
}
.booking-notes-list li {
  display: grid;
  grid-template-columns: 1.65rem 1fr;
  gap: 0.35rem;
  align-items: start;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}
.booking-notes-num {
  flex: 0 0 auto;
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--blue);
  line-height: 1.35;
}
.booking-notes-mark {
  flex: 0 0 auto;
  width: 3px;
  height: 0.95em;
  margin-top: 0.22em;
  border-radius: 2px;
  background: color-mix(in srgb, var(--blue) 72%, #7eb0d8);
}

@media (max-width: 640px) {
  .tariff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .booking-car-preview-head {
    flex-direction: row;
  }
  .booking-car-logo { width: min(100%, 64px); max-height: 40px; }
}

.map-embed {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 22rem;
  border-radius: 22px;
  overflow: hidden;
  border: 0;
  background: #dfe8f2;
  contain: paint;
}
.map-canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  height: 22rem;
  overflow: hidden;
}
.map-fallback {
  position: absolute;
  left: 12px;
  top: 12px;
  right: auto;
  bottom: auto;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-btn);
  background: #fff;
  color: var(--blue) !important;
  font-size: var(--fs-sm);
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.map-fallback:hover {
  filter: brightness(0.98);
}
/* Скрываем промо/маршрут/такси от Яндекса — остаётся карта и наша кнопка */
.map-embed a[href*="map-constructor"],
.map-embed a[href*="constructor.maps.yandex"],
.map-embed [class*="gototaxi"],
.map-embed [class*="gototech"],
.map-embed [class*="gotoymaps"],
.map-embed [class*="map-open-block"] {
  display: none !important;
}
.map-embed--link {
  background: linear-gradient(160deg, #e8f0f8 0%, #d4e0ec 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.map-embed--link:hover {
  background: linear-gradient(160deg, #eef4fa 0%, #d9e6f2 100%);
  border-color: rgba(47, 111, 235, 0.25);
}
.map-embed-pin {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff url("/static/img/icons/ico-pin.svg") center / 22px no-repeat;
  box-shadow: 0 8px 24px rgba(47, 111, 235, 0.18);
}
.map-embed-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  max-width: 22rem;
}
.map-embed-cta {
  font-size: var(--fs-base);
  font-weight: 800;
  color: var(--blue);
}
.map-embed-addr {
  font-size: var(--fs-text);
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
}

.reviews-head {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}
.reviews-badges {
  --reviews-ctl-h: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.15rem;
}
.reviews-badges .yandex-badges {
  display: contents;
}
.yandex-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text) !important;
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1;
}
.yandex-badge.rating,
.yandex-badge.place {
  height: var(--reviews-ctl-h, 40px);
  min-height: var(--reviews-ctl-h, 40px);
  max-height: var(--reviews-ctl-h, 40px);
  box-sizing: border-box;
  gap: 0.4rem;
  padding: 0 0.85rem 0 0.45rem;
  border: 0;
  border-radius: 12px;
  background: var(--blue-soft);
  color: color-mix(in srgb, var(--blue) 78%, #1e293b) !important;
  box-shadow: none;
}
.yandex-badge.rating:hover,
.yandex-badge.place:hover {
  color: var(--blue) !important;
  background: var(--blue-soft-hover);
}
.yandex-badge.rating img {
  display: block;
  height: 28px;
  width: auto;
}
.yandex-badge .good-place-icon {
  display: block;
  width: auto;
  height: 28px;
  margin-top: 0;
  flex: 0 0 auto;
}
.yandex-badge.place > .good-place-text,
.yandex-badge .good-place-text {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  height: auto;
  font-size: var(--fs-sm);
  line-height: 1;
}
.yandex-badge .good-place-label,
.yandex-badge .good-place-year {
  display: inline;
}
.yandex-badge .good-place-year {
  margin-left: 0;
}
/* Same height as Yandex badges; DOM order: Хорошее место → Оставить отзыв */
.reviews-badges .btn.btn-sm {
  flex: 0 0 auto;
  height: var(--reviews-ctl-h, 40px);
  min-height: var(--reviews-ctl-h, 40px);
  max-height: var(--reviews-ctl-h, 40px);
  margin-left: 0;
  padding-top: 0;
  padding-bottom: 0;
  box-sizing: border-box;
  border-radius: 12px;
  line-height: 1;
  white-space: nowrap;
}
.reviews-meta {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.reviews-panel {
  --reviews-ctl-h: 40px;
  --reviews-mark-h: 28px;
  /* Same type role as card titles / strong labels */
  --reviews-place-fs: var(--fs-accent);
  display: grid;
  grid-template-columns: max-content max-content max-content minmax(0, 1fr) auto;
  grid-template-areas: "core count place . btn";
  align-items: center;
  justify-items: start;
  column-gap: 1.05rem;
  row-gap: 0.65rem;
  box-sizing: border-box;
  padding: 1rem 1.2rem;
  border-radius: 22px;
  background: color-mix(in srgb, var(--blue) 8%, #fff);
}
.reviews-panel .yandex-badge.rating {
  display: none;
}
.reviews-panel .yandex-badges {
  display: contents;
}
.reviews-yandex {
  display: contents;
  color: inherit;
  text-decoration: none;
}
.reviews-yandex:hover .reviews-yandex-score,
.reviews-yandex:hover .reviews-yandex-score-num,
.reviews-yandex:hover .reviews-yandex-brand-text {
  color: var(--blue);
}
.reviews-yandex-core {
  grid-area: core;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: var(--reviews-mark-h);
  width: max-content;
  max-width: 100%;
  justify-self: start;
}
.reviews-yandex-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: var(--reviews-mark-h);
}
.reviews-yandex-mark {
  display: block;
  height: var(--reviews-mark-h);
  width: var(--reviews-mark-h);
  object-fit: cover;
  object-position: left center;
  flex: 0 0 auto;
}
.reviews-yandex-brand-text,
.reviews-yandex-score,
.reviews-yandex-score-num {
  font-size: var(--reviews-place-fs);
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
}
.reviews-yandex-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: var(--reviews-mark-h);
}
.reviews-yandex-stars,
.reviews-yandex-star,
.reviews-yandex-stars-extra {
  font-size: var(--reviews-place-fs);
  font-weight: 800;
  color: #f5c400 !important;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.06em;
}
.reviews-yandex-count {
  grid-area: count;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
}
.reviews-panel .yandex-badge.place {
  grid-area: place;
  height: var(--reviews-mark-h);
  min-height: var(--reviews-mark-h);
  max-height: var(--reviews-mark-h);
  box-sizing: border-box;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--text) !important;
  padding: 0;
  font-size: var(--reviews-place-fs) !important;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  gap: 0.35rem;
  align-items: center;
}
.reviews-panel .yandex-badge.place .good-place-text,
.reviews-panel .yandex-badge.place .good-place-label,
.reviews-panel .yandex-badge.place .good-place-year {
  font-size: var(--reviews-place-fs) !important;
  font-weight: 800;
  line-height: 1;
  color: inherit;
  height: auto;
}
.reviews-panel .yandex-badge .good-place-icon {
  height: var(--reviews-mark-h) !important;
  width: auto;
  flex: 0 0 auto;
}
.reviews-panel .yandex-badge.place:hover {
  background: transparent;
  color: var(--blue) !important;
}
.reviews-panel > .btn.btn-sm {
  grid-area: btn;
  justify-self: end;
  height: var(--reviews-ctl-h, 40px);
  min-height: var(--reviews-ctl-h, 40px);
  max-height: var(--reviews-ctl-h, 40px);
  padding-top: 0;
  padding-bottom: 0;
  box-sizing: border-box;
  border-radius: 12px;
  line-height: 1;
  white-space: nowrap;
}

/* 1) Button drops below */
@media (max-width: 1080px) {
  .reviews-panel {
    grid-template-columns: max-content max-content max-content minmax(0, 1fr);
    grid-template-areas:
      "core count place ."
      "btn btn btn btn";
  }
  .reviews-panel > .btn.btn-sm {
    justify-self: stretch;
    width: 100%;
    max-width: none;
  }
}

/* 2) Compact: [Я ★ 5.0] | place — one core cluster, same type size */
@media (max-width: 920px) {
  .reviews-panel {
    --reviews-mark-h: 28px;
    grid-template-columns: max-content max-content minmax(0, 1fr);
    grid-template-areas:
      "core place ."
      "count count count"
      "btn btn btn";
    column-gap: 0.85rem;
    justify-content: start;
  }
  .reviews-yandex-core {
    gap: 0.35rem;
    width: max-content;
  }
  .reviews-panel .yandex-badge.place {
    width: max-content;
    justify-self: start;
  }
  .reviews-yandex-brand-text {
    display: none;
  }
  .reviews-yandex-rating {
    flex-direction: row-reverse;
    gap: 0.22rem;
  }
  .reviews-yandex-score-suf,
  .reviews-yandex-stars-extra {
    display: none;
  }
  .reviews-yandex-stars {
    letter-spacing: 0;
    color: #f5c400;
  }
  .reviews-yandex-star {
    color: #f5c400;
  }
}

/* 3) Slightly tighter */
@media (max-width: 820px) {
  .reviews-panel {
    column-gap: 0.7rem;
  }
}

/* 4) Drop year only — keep badge size */
@media (max-width: 700px) {
  .reviews-panel .yandex-badge.place .good-place-year {
    display: none;
  }
}

/* 5) Tighter padding; type stays on site scale */
@media (max-width: 520px) {
  .reviews-panel {
    --reviews-ctl-h: 36px;
    --reviews-mark-h: 26px;
    column-gap: 0.65rem;
    padding: 0.85rem 1rem;
  }
}

/* 6) Narrow phones — icons only; labels stay --fs-accent / --fs-sm */
@media (max-width: 400px) {
  .reviews-panel {
    --reviews-mark-h: 24px;
    grid-template-columns: max-content max-content minmax(0, 1fr);
    grid-template-areas:
      "core place ."
      "count count count"
      "btn btn btn";
    column-gap: 0.55rem;
  }
}
.reviews-widget {
  margin-top: 1rem;
  min-height: 120px;
  font-family: var(--font);
}
.reviews-widget .sw-app {
  width: 100%;
}
.reviews-widget.is-fallback {
  min-height: 0;
}
.reviews-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  min-height: 190px;
  margin: 0;
  padding: 2rem 1.5rem;
  border: 0;
  background: transparent;
  box-sizing: border-box;
  text-align: center;
}
.reviews-fallback[hidden] {
  display: none;
}
.reviews-fallback-copy {
  min-width: 0;
  max-width: 620px;
}
.reviews-fallback-copy h3 {
  margin: 0 0 0.4rem;
  color: var(--text);
  font-size: var(--fs-sub);
  font-weight: 800;
  line-height: 1.3;
}
.reviews-fallback-copy p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-base);
  line-height: 1.5;
}
.reviews-fallback-link {
  gap: 0.65rem;
  min-height: 50px;
  padding-inline: 1.7rem;
  white-space: nowrap;
}
.reviews-fallback-link svg {
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .reviews-fallback {
    min-height: 175px;
    gap: 1.15rem;
    padding: 1.65rem 0.75rem 2rem;
  }
  .reviews-fallback-copy h3 {
    font-size: var(--fs-accent);
  }
  .reviews-fallback-copy p {
    font-size: var(--fs-text);
  }
  .reviews-fallback-link {
    justify-content: center;
    width: min(100%, 290px);
  }
}
/* Hide SmartWidgets own rating strip — we show it in reviews-panel */
.reviews-widget .sw-review-box {
  display: none !important;
}
.reviews-widget .sw-app,
.reviews-widget .sw-app > *,
.reviews-widget .sw-app-body {
  background: transparent !important;
}
.reviews-widget .sw-app,
.reviews-widget .sw-app *,
.reviews-widget .sw-review-item,
.reviews-widget .sw-review-item *,
.reviews-widget .sw-reviews-more,
.reviews-widget .sw-reviews-btn {
  font-family: var(--font) !important;
}
/* Match site type scale */
.reviews-widget .sw-review-item-message,
.reviews-widget .sw-review-item-body,
.reviews-widget .sw-review-truncate-text {
  font-size: var(--fs-base) !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  color: var(--text) !important;
}
.reviews-widget .sw-review-item-author_name,
.reviews-widget .sw-review-item-user {
  font-size: var(--fs-text) !important;
  font-weight: 700 !important;
  color: var(--text) !important;
}
.reviews-widget .sw-review-item-date,
.reviews-widget .sw-review-item-info {
  font-size: var(--fs-sm) !important;
  font-weight: 600 !important;
  color: var(--muted) !important;
}
.reviews-widget .sw-review-item-body-readmore,
.reviews-widget .sw-review-item-message-btn {
  font-size: var(--fs-sm) !important;
  font-weight: 600 !important;
}
.reviews-widget .sw-review-source-link {
  font-size: var(--fs-sm) !important;
  font-weight: 600 !important;
}
.reviews-widget .sw-review-item {
  border-radius: 16px !important;
  overflow: hidden;
  background: color-mix(in srgb, var(--blue) 8%, #fff) !important;
  box-shadow: none !important;
  border: 0 !important;
}
.reviews-widget .sw-review-item.sw-shadow-type1 {
  box-shadow: none !important;
}
/* «Еще» — same fill as review cards. display without !important so widget can hide via inline style. */
.reviews-widget .sw-reviews-btn.sw-reviews-more,
.reviews-widget .sw-reviews-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 1.15rem !important;
  border-radius: 12px !important;
  border: 0 !important;
  background: color-mix(in srgb, var(--blue) 8%, #fff) !important;
  color: color-mix(in srgb, var(--blue) 78%, #1e293b) !important;
  font: inherit !important;
  font-size: var(--fs-text) !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.reviews-widget .sw-reviews-btn.sw-reviews-more:hover,
.reviews-widget .sw-reviews-more:hover {
  border: 0 !important;
  color: var(--blue) !important;
  background: var(--blue-soft-hover) !important;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.review-card {
  display: grid;
  gap: 0.55rem;
  padding: 1rem 1.05rem;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
.review-top {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
}
.review-stars {
  color: #f5c400;
  letter-spacing: 0.05em;
  font-size: var(--fs-accent);
}
.review-card p {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-text);
  font-weight: 500;
  line-height: 1.45;
}
.review-source {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--blue);
}

.car-terms {
  list-style: none;
  margin: 0;
  padding: 0.9rem 1rem 0.95rem 1.15rem;
  display: grid;
  gap: 0.5rem;
  max-width: 42rem;
  font-size: var(--fs-accent);
  font-weight: 600;
  color: var(--text);
  background: #f7fafc;
  border: 0;
  border-radius: 14px;
}
.car-terms li {
  display: grid;
  grid-template-columns: 1.65rem 1fr;
  gap: 0.35rem;
  align-items: start;
}
.car-terms li::before { display: none; }
.car-detail-body .btn-order { margin-bottom: 0; }

.car-detail-head { padding-bottom: 0; }
.car-detail-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
.car-detail-home {
  min-height: 42px;
  padding-inline: 1rem;
  font-weight: 700;
}
.car-detail-back {
  font-weight: 700;
  color: var(--muted);
}
.car-detail-back:hover { color: var(--blue); }

.car-detail-section { padding-top: 0.8rem; }
.car-detail {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.5rem 1.75rem;
  align-items: start;
}
.car-detail-media {
  position: relative;
  background: #eff4f9 url("/static/img/fon-dlya-kartochkiavto-v-kataloge.png") center / cover;
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.2rem 1.2rem;
  min-height: 280px;
  display: grid;
  place-items: center;
}
.car-detail-brand {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 52px;
  height: 34px;
  object-fit: contain;
  opacity: 0.9;
}
.car-detail-media > img:not(.car-detail-brand) {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 380px;
  margin: auto;
  filter: drop-shadow(0 12px 14px rgba(120, 130, 140, 0.2));
}
.car-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}
.car-detail-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 0.75rem;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.car-detail-body h1 {
  margin-bottom: 0.45rem;
  letter-spacing: 0.01em;
}
.car-detail-body h1 span {
  color: inherit;
  font-weight: inherit;
}
.car-detail-lead {
  color: var(--muted);
  font-weight: 600;
  max-width: 38rem;
  margin-bottom: 1.1rem;
}
.car-detail-tariffs {
  margin: 0 0 1.15rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  box-sizing: border-box;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.car-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}
.car-detail-actions .btn-order {
  flex: 1 1 200px;
  max-width: 280px;
  min-width: 0;
}
.car-detail-actions .btn-ghost {
  min-height: 44px;
  padding-inline: 1rem;
  font-weight: 700;
}
.car-detail-actions-bottom { margin-top: 1.1rem; }

.car-detail-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
.car-detail-facts li {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem;
  background: var(--bg-soft);
  border-radius: 14px;
  border: 0;
}
.car-detail-facts span {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.car-detail-facts strong {
  font-size: var(--fs-accent);
  font-weight: 800;
  color: var(--text);
}
.car-detail-chips {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.car-detail-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 34px;
  padding: 0.35rem 0.8rem 0.35rem 0.7rem;
  border-radius: 12px;
  background: var(--blue-soft);
  border: 0;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.2;
}
.car-detail-chips li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--blue) 55%, #7eb0d8);
  flex: 0 0 auto;
}
.car-detail-about-text {
  max-width: 48rem;
  font-size: var(--fs-accent);
  color: var(--text);
  margin-bottom: 1rem;
}
.car-detail-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  max-width: 48rem;
}
.car-detail-highlight {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 12px;
  background: var(--blue-soft);
  border: 0;
  font-size: var(--fs-text);
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.25;
}
.back { font-weight: 700; color: var(--muted); }

.contacts-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.25fr);
  gap: 1.15rem;
  align-items: start;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.contacts-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  min-width: 0;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  padding: 1.25rem 1.3rem 0;
  border-radius: 22px;
  background: var(--bg-soft);
  overflow: hidden;
  position: relative;
}
.contacts-card-skyline {
  display: block;
  width: calc(100% + 2.6rem);
  max-width: none;
  height: 9rem;
  margin: 1.1rem 0 0;
  margin-left: -1.3rem;
  margin-right: -1.3rem;
  flex: 0 0 auto;
  align-self: stretch;
  opacity: 0.28;
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
  user-select: none;
}
@media (min-width: 1021px) {
  .contacts-layout {
    align-items: stretch;
  }
  .contacts-card {
    min-height: 22rem;
    padding-bottom: 11.5rem;
  }
  .contacts-card-skyline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    height: 11.5rem;
    margin: 0;
  }
}
@media (max-width: 1020px) and (min-width: 721px) {
  .contacts-card {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    padding: 1.15rem 1.2rem 1.15rem 1.2rem;
    min-height: 14rem;
  }
  .contacts-card .footer-contacts.big {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    padding-right: 8.5rem;
    align-self: center;
    position: relative;
    z-index: 1;
  }
  .contacts-card-skyline {
    position: absolute;
    top: auto;
    right: 0;
    bottom: 0;
    left: auto;
    width: 58%;
    max-width: none;
    height: 9.5rem !important;
    min-height: 0;
    margin: 0;
    object-fit: cover;
    object-position: left bottom;
    opacity: 0.26;
    z-index: 0;
    pointer-events: none;
  }
}
@media (max-width: 720px) {
  .contacts-card-skyline {
    display: none;
  }
}
.contacts-layout .map-embed {
  min-width: 0;
  width: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.contacts-layout .map-canvas {
  flex: 1 1 auto;
  width: 100%;
  min-height: 22rem;
  height: auto;
}
.contacts-layout .footer-contacts.big {
  align-self: stretch;
  align-content: start;
  flex: 0 1 auto;
  height: auto;
  min-height: 0;
  gap: 0.95rem;
  line-height: 1.45;
  font-size: var(--fs-accent);
  font-weight: 600;
  color: #444;
}
.contacts-layout .footer-contacts.big li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
.contacts-layout .footer-contacts.big img,
.contacts-layout .footer-ico {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  margin-top: 0.15rem;
}
.contacts-layout .footer-ico {
  display: inline-grid;
  place-items: center;
  line-height: 1;
  color: var(--blue);
}
.contacts-layout .footer-ico img {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}
.prose { max-width: 40rem; }

.landing-lead { max-width: 44rem; }
.landing-facts {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.landing-facts li {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: var(--bg-soft);
  border: 0;
}
.landing-facts strong {
  display: block;
  margin: 0 0 0.3rem;
  color: var(--blue);
  font-size: var(--fs-accent);
}
.landing-facts p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-text);
  font-weight: 600;
  line-height: 1.4;
}

.price-table-wrap {
  overflow-x: auto;
  margin: 0 0 1rem;
  border: 0;
  border-radius: 22px;
  background: var(--bg-soft);
  max-width: 100%;
  padding: 0.35rem;
  -webkit-overflow-scrolling: touch;
}
.price-table {
  display: table;
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 680px;
  font-size: var(--fs-text);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
}
.price-table th,
.price-table td {
  padding: 0.95rem 1rem;
  text-align: right;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  line-height: 1.3;
}
.price-table th:first-child,
.price-table td:first-child {
  text-align: left;
  width: 30%;
  padding-left: 1.15rem;
}
.price-table th:last-child,
.price-table td:last-child {
  padding-right: 1.15rem;
}
.price-table th {
  background: color-mix(in srgb, var(--blue) 7%, #fff);
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-bottom-color: color-mix(in srgb, var(--blue) 14%, var(--line));
}
.price-table th.price-th-deposit {
  color: var(--blue);
}
.price-table tbody tr {
  transition: background 0.15s ease;
}
.price-table tbody tr:hover {
  background: color-mix(in srgb, var(--blue) 4%, #fff);
}
.price-table tbody tr:last-child td {
  border-bottom: 0;
}
.price-table td {
  font-weight: 700;
  color: var(--text);
}
.price-table .price-val {
  display: inline-block;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.price-table .price-cell-deposit .price-val {
  color: var(--blue);
  font-weight: 800;
}
.price-table-car {
  display: grid;
  gap: 0.18rem;
  color: inherit;
  white-space: normal;
  min-width: 0;
}
.price-table-car strong {
  color: var(--blue);
  font-size: var(--fs-accent);
  font-weight: 800;
  line-height: 1.2;
}
.price-table-car span {
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.price-table-car:hover strong {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
/* Mobile / narrow: price tiles, no horizontal scroll */
@media (max-width: 720px) {
  .price-table-wrap {
    overflow: visible;
    background: transparent;
    border-radius: 0;
    padding: 0;
  }
  .price-table {
    display: block;
    min-width: 0;
    width: 100%;
    background: transparent;
    border-radius: 0;
    overflow: visible;
  }
  .price-table thead {
    display: none;
  }
  .price-table tbody {
    display: grid;
    gap: 0.75rem;
  }
  .price-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin: 0;
    padding: 0.95rem;
    border-radius: 18px;
    background: var(--bg-soft);
    border: 0;
    transition: none;
  }
  .price-table tbody tr:hover {
    background: var(--bg-soft);
  }
  .price-table th,
  .price-table td {
    padding: 0;
    border: 0;
    white-space: normal;
  }
  .price-table td {
    display: grid;
    gap: 0.28rem;
    align-content: start;
    min-width: 0;
    padding: 0.7rem 0.75rem;
    border-radius: 14px;
    background: #fff;
    text-align: left;
    font-size: var(--fs-text);
  }
  .price-table td:first-child {
    grid-column: 1 / -1;
    width: auto;
    background: transparent;
    padding: 0.1rem 0.15rem 0.55rem;
    margin: 0;
  }
  .price-table td:not(:first-child)::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
  }
  .price-table .price-val {
    display: block;
    font-size: var(--fs-accent);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
  }
  .price-table .price-cell-deposit {
    background: color-mix(in srgb, var(--blue) 10%, #fff);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 16%, transparent);
  }
  .price-table .price-cell-deposit::before {
    color: var(--blue);
  }
  .price-table .price-cell-deposit .price-val {
    color: var(--blue);
  }
  .price-table-car strong {
    font-size: var(--fs-accent);
  }
}
.price-note {
  margin: 0 0 1.15rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: var(--fs-text);
  font-weight: 600;
  line-height: 1.45;
}

.scenario-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  margin: 1rem 0 0;
  font-size: var(--fs-text);
  font-weight: 700;
}
.scenario-links a {
  color: var(--blue);
  border-bottom: 1px solid color-mix(in srgb, var(--blue) 35%, transparent);
}
.footer-scenarios {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.7rem;
  font-size: var(--fs-sm);
  font-weight: 700;
}
.footer-scenarios a { color: var(--muted); }
.footer-scenarios a:hover { color: var(--blue); }

.site-footer {
  background: #fff;
  color: var(--text);
  padding: 1.5rem 0 1.75rem;
  margin-top: 1.5rem;
  border-top: 0;
}
.footer-panel {
  background: var(--bg-soft);
  border: 0;
  border-radius: 20px;
  padding: 1.15rem 1.25rem 1rem;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) auto;
  gap: 1rem 1.75rem;
  align-items: center;
}
.footer-brand {
  justify-self: start;
}
.footer-brand .brand-logo-full {
  width: min(100%, 210px);
  max-height: 42px;
}
.footer-nav-slot {
  min-width: 0;
  container-type: inline-size;
  container-name: footer-nav;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: start;
  justify-items: start;
  column-gap: 1rem;
  row-gap: 0.35rem;
  font-weight: 700;
  font-size: var(--fs-text);
}
.footer-nav a {
  color: var(--text);
  white-space: nowrap;
  padding: 0.25rem 0.2rem;
  border-radius: 999px;
}
@container footer-nav (min-width: 620px) {
  .footer-nav {
    grid-template-columns: repeat(6, max-content);
    justify-content: center;
    column-gap: 0.75rem;
    row-gap: 0.2rem;
  }
}
.footer-nav a:hover {
  color: var(--blue);
  background: rgba(0, 83, 160, 0.08);
}
.footer-aside {
  display: grid;
  gap: 0.28rem;
  justify-items: end;
  text-align: right;
  font-weight: 600;
  font-size: var(--fs-text);
  color: #444;
  line-height: 1.35;
  min-width: max-content;
}
.footer-aside p {
  margin: 0;
  white-space: nowrap;
}
.footer-aside .omsk-clock {
  margin: 0.1rem 0 0.05rem;
}
.footer-phone {
  color: var(--blue);
  font-size: var(--fs-accent);
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.omsk-clock {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.omsk-clock-label {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
  line-height: 1;
}
.omsk-clock-board {
  display: inline-flex;
  align-items: center;
  gap: 0.16rem;
}
.omsk-digit {
  display: inline-grid;
  place-items: center;
  width: 1.28rem;
  height: 1.62rem;
  border-radius: 0.42rem;
  background: var(--blue-dark);
  color: #fff;
  font-size: var(--fs-text);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.12);
}
.omsk-clock-colon {
  font-weight: 800;
  color: var(--blue-dark);
  font-size: var(--fs-accent);
  line-height: 1;
  padding: 0 0.04rem;
}
.omsk-digit.is-tick {
  animation: omsk-digit-tick 0.32s ease;
}
@keyframes omsk-digit-tick {
  from {
    transform: translateY(18%);
    opacity: 0.45;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .omsk-digit.is-tick {
    animation: none;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid color-mix(in srgb, var(--line) 80%, #c5d0dc);
}
.footer-bottom .omsk-clock {
  margin-left: auto;
  flex: 0 0 auto;
}
.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.35;
}
.footer-contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  font-weight: 600;
  font-size: var(--fs-text);
  color: #444;
}
.footer-contacts.big {
  font-size: var(--fs-accent);
  gap: 0.95rem;
  justify-items: start;
  text-align: left;
}
.footer-contacts.big li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
.footer-contacts a { color: var(--blue); }
.footer-contacts li:has(.btn) {
  grid-template-columns: 1fr;
  margin-top: 0.35rem;
}
.footer-ico {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-grid;
  place-items: center;
  text-align: center;
  font-size: var(--fs-accent);
  line-height: 1;
  color: var(--blue);
}
.footer-ico img {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

@media (max-width: 1280px) {
  .topbar-meta .meta-item { display: none; }
}
@media (max-width: 1020px) {
  .car-grid, .services-panel { grid-template-columns: 1fr 1fr; }
  .rules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rule-card {
    padding: 1.2rem 7.4rem 0.95rem 1rem;
    min-height: 112px;
  }
  .rule-card-media {
    width: 124px;
    height: 124px;
    right: 0.5rem;
    top: -1.35rem;
  }
  /* Tablet header: logo+hours strip, socials in topbar, no CTA */
  .header-branding { display: block; }
  .header-branding-inner {
    min-height: 60px;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }
  .header-branding .brand .brand-logo-full {
    width: min(100%, 220px);
    max-height: 44px;
  }
  .header-hours-label { font-size: var(--fs-sm); }
  .header-hours strong { font-size: var(--fs-sm); }
  .topbar-brand { display: none !important; }
  .topbar-meta { display: none !important; }
  .topbar-inner {
    position: relative;
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: 58px;
    gap: 0.55rem;
  }
  .topbar-cta { display: none !important; }
  .topbar-inner > .meta-socials {
    position: static;
    left: auto;
    transform: none;
    justify-self: start;
    justify-content: flex-start;
    gap: 0.45rem;
  }
  .topbar-inner > .meta-socials .social-btn img {
    width: 36px;
    height: 36px;
  }
  .topbar-inner > .nav-toggle {
    justify-self: end;
  }
  .car-detail, .contacts-layout { grid-template-columns: 1fr; }
  .contacts-layout {
    gap: 0.9rem;
  }
  .contacts-card {
    min-height: 0;
    height: auto;
    /* tablet: info + skyline side by side (see 721–1020 rule above) */
  }
  .contacts-layout .map-embed {
    min-height: 0;
    height: auto;
  }
  .contacts-layout .map-canvas {
    flex: 0 0 auto;
    min-height: 18rem;
    height: 18rem;
  }
  .car-detail-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .car-detail-tariffs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .car-detail-actions .btn-order { max-width: none; }
  .footer-panel {
    padding: 1rem 1.05rem 0.9rem;
    border-radius: 18px;
  }
  .footer-top {
    grid-template-columns: minmax(140px, 170px) minmax(16.5rem, 1fr) auto;
    gap: 0.75rem 1rem;
    align-items: center;
  }
  .footer-brand .brand-logo-full {
    width: min(100%, 180px);
    max-height: 38px;
  }
  .footer-nav {
    font-size: var(--fs-sm);
  }
  .footer-nav a {
    padding: 0.2rem 0.15rem;
  }
  .footer-aside {
    justify-items: end;
    text-align: right;
    font-size: var(--fs-sm);
  }
  .footer-phone {
    font-size: var(--fs-accent);
  }
  .how-rent-steps {
    grid-template-columns: 1fr;
  }
  .reviews-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: 1fr auto auto 1fr;
    grid-template-areas:
      "nav nav nav nav"
      ". brand aside .";
    column-gap: 1.15rem;
    row-gap: 0.85rem;
    align-items: center;
    justify-content: center;
  }
  .footer-brand {
    grid-area: brand;
    align-self: center;
    justify-self: end;
    min-width: 0;
    max-width: 100%;
    width: auto;
    display: flex;
    justify-content: flex-end;
  }
  .footer-brand .brand-logo-full {
    width: min(210px, 100%);
    max-width: 100%;
    max-height: 42px;
    height: auto;
    object-fit: contain;
  }
  .footer-nav-slot {
    grid-area: nav;
  }
  .footer-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    justify-items: center;
    column-gap: 0.5rem;
    row-gap: 0.4rem;
  }
  .footer-nav a {
    padding: 0.25rem 0.15rem;
    text-align: center;
  }
  .footer-aside {
    grid-area: aside;
    justify-items: start;
    text-align: left;
    align-self: center;
    justify-self: start;
    width: auto;
  }
}
@container footer-nav (max-width: 440px) {
  .footer-nav {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 1.35rem;
    row-gap: 0.4rem;
  }
}
@media (max-width: 540px) {
  .footer-top {
    grid-template-columns: 1fr;
    grid-template-areas:
      "nav"
      "aside"
      "brand";
    gap: 0.85rem;
    text-align: left;
  }
  .footer-nav {
    justify-items: start;
  }
  .footer-nav a {
    text-align: left;
  }
  .footer-aside {
    justify-items: start;
    text-align: left;
    align-self: start;
    justify-self: start;
    width: auto;
  }
  .footer-brand {
    min-width: 0;
    max-width: 100%;
    width: auto;
    justify-self: start;
    justify-content: flex-start;
  }
  .footer-brand .brand-logo-full {
    width: min(210px, 100%);
    max-width: 100%;
    max-height: 42px;
  }
}
@media (max-width: 720px) {
  /* Readable mobile type + tap targets for Yandex/Google mobile checks */
  :root {
    --fs-sm: 0.94rem;
    --fs-text: 1rem;
  }
  .filters {
    gap: 0.75rem;
  }
  .filters-pills {
    gap: 0.55rem;
  }
  .filter-pill {
    min-height: 44px;
    font-size: var(--fs-text);
  }
  .footer-scenarios a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.15rem;
  }
  /* Phone header: phone button + FAB instead of social row */
  .topbar-inner > .meta-socials {
    display: none !important;
  }
  .topbar-call {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    justify-self: start;
    min-width: 0;
    max-width: 100%;
    min-height: 42px;
    padding: 0.25rem 0.35rem 0.25rem 0.15rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--blue);
    font-size: var(--fs-text);
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
  }
  .topbar-call span {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .topbar-call:hover { color: var(--blue-dark); }
  .topbar-call img {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
  }
  .social-fab {
    display: flex;
    pointer-events: auto;
  }
  .car-grid, .services-panel, .booking-grid { grid-template-columns: 1fr; }
  .how-rent-steps {
    grid-template-columns: 1fr;
    padding-top: 0.7rem;
  }
  .how-rent-num {
    font-size: 2.45rem;
    top: -0.75rem;
    left: 0.35rem;
  }
  .how-rent-actions {
    flex-wrap: nowrap;
    gap: 0.55rem;
  }
  .how-rent-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .how-rent-actions .label-full { display: none; }
  .how-rent-actions .label-short { display: inline; }
  .rules-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .rules-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .rules-extras-list,
  .rules-extras--home .rules-extras-list {
    grid-template-columns: 1fr;
  }
  .rules-perks {
    display: none;
  }
  .landing-facts {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    display: block;
    min-width: 0;
    max-width: 100%;
    width: auto;
  }
  .footer-brand .brand-logo-full {
    width: min(200px, 100%);
    max-width: 100%;
    max-height: 40px;
    height: auto;
  }
  .footer-aside {
    min-width: 0;
    max-width: 100%;
  }
  .footer-aside p {
    white-space: normal;
  }
  .footer-nav {
    justify-content: start;
    justify-items: start;
    font-size: var(--fs-text);
  }
  .footer-phone {
    font-size: var(--fs-accent);
  }
  .footer-bottom {
    margin-top: 0.85rem;
    padding-top: 0.7rem;
    gap: 0.55rem 0.85rem;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-bottom .omsk-clock {
    order: -1;
    margin-left: 0;
  }
  .car-card {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px 12px 14px;
    gap: 10px;
    overflow: hidden;
  }
  .car-grid {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
  }
  .car-card-actions {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .car-card-head {
    gap: 8px;
    position: relative;
    z-index: 2;
  }
  .car-card-title {
    font-size: var(--fs-text);
  }
  .car-card-logo-wrap {
    width: 46px;
    height: 38px;
  }
  .car-card-logo {
    max-width: 36px;
    max-height: 26px;
  }
  .car-spec-year {
    font-size: var(--fs-sm);
  }
  .car-spec-year img {
    width: 16px;
    height: 16px;
  }
  .car-card-main {
    margin-top: 0;
  }
  .car-card-media {
    height: 148px;
    max-width: 280px;
  }
  .car-card-media img {
    max-height: 140px;
    max-width: 96%;
    width: min(96%, 270px);
  }
  .car-card[data-car-id="hyundai-solaris"] .car-card-media img {
    max-height: 136px;
    max-width: 96%;
    transform: none;
  }
  .car-card-chips {
    min-height: 44px;
  }
  .car-card-actions {
    gap: 12px;
  }
  .btn-order {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    width: 100%;
    padding: 0 18px;
    min-height: 48px;
    height: 48px;
    font-size: var(--fs-text);
  }
  .car-card-actions .btn-order {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
  }
  .car-price-tab {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    max-width: 46%;
    font-size: var(--fs-text);
  }
  .booking-grid .span-2 { grid-column: 1 / -1; }
  .hero {
    width: 100%;
    margin: 0 auto 0.4rem;
    padding-bottom: 0.75rem;
  }
  .hero-banner {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 0;
    padding: 1rem 1rem 0.85rem;
    background: #0053a0 !important;
    background-image: none !important;
  }
  /* Contacts: full-bleed only with hero (stack already from 1020) */
  .contacts-layout {
    gap: 0;
  }
  /* Full-bleed via wrap gutter only — no 100vw (avoids bot horizontal-overflow fails) */
  .contacts-card,
  .reviews-panel,
  .contacts-layout .map-embed {
    width: calc(100% + 2rem);
    max-width: none;
    min-width: 0;
    margin-left: -1rem;
    margin-right: -1rem;
    box-sizing: border-box;
    border-radius: 0;
  }
  .contacts-card {
    padding: 1.1rem 0.95rem 1rem;
    flex-direction: column;
  }
  .reviews-panel {
    padding: 1rem 0.85rem 1.05rem;
  }
  .contacts-layout .map-canvas {
    min-height: 16rem;
    height: 16rem;
  }
  .hero--stage {
    width: 100%;
    margin-top: 0;
    padding-bottom: 0.75rem;
  }
  .hero--stage .hero-banner {
    color: #fff;
    background: linear-gradient(160deg, #0a6bc4 0%, #0053a0 52%, #003f7a 100%) !important;
    border-radius: 0;
    padding: 1.05rem 1.15rem 1rem;
    overflow: hidden;
    min-height: 0;
  }
  .hero--stage .hero-copy h1 {
    font-size: clamp(1.45rem, 6.2vw, 1.85rem);
    color: #fff;
  }
  .hero--stage .hero-support {
    margin-top: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
  }
  .hero--stage .hero-kicker {
    color: rgba(255, 255, 255, 0.88);
  }
  .hero--stage .hero-cta-row {
    margin-top: 1.1rem;
    width: 100%;
  }
  .hero--stage .hero-cta-row .btn {
    width: 100%;
  }
  .hero--stage.hero--art .hero-banner {
    grid-template-columns: 1fr;
    padding: 1.2rem 1.15rem 1.25rem;
  }
  .hero--stage.hero--art .hero-visual {
    display: none !important;
  }
  .hero--stage.hero--art .yandex-badges-hero {
    margin: 0 0 1.15rem;
  }
  .hero--stage.hero--art .hero-copy h1 {
    margin: 0;
    line-height: 1.22;
  }
  .hero--stage.hero--art .hero-support {
    margin-top: 1.15rem;
    line-height: 1.5;
  }
  .hero--stage.hero--art .hero-points-row {
    display: flex !important;
    justify-content: center;
    margin: 1.25rem 0 0;
    padding: 1rem 0 0.85rem;
  }
  .hero--stage.hero--art .hero-mobile-scene {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .hero--stage.hero--art .hero-car-wrap {
    width: fit-content;
    max-width: 92%;
  }
  .hero--stage.hero--art .hero-points-thumb {
    max-height: 150px;
    width: auto;
    max-width: 100%;
    filter: drop-shadow(0 12px 14px rgba(8, 24, 48, 0.28));
  }
  .hero--stage.hero--art .hero-cta-row {
    margin-top: 1.15rem;
    width: 100%;
  }
  .hero--stage.hero--art .hero-cta-row .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-banner::before,
  .hero-banner::after {
    content: none !important;
    display: none !important;
  }
  .hero-copy { max-width: none; width: 100%; }
  .hero-points--desktop { display: none; }
  .hero-support { font-size: var(--fs-text); max-width: none; }
  .hero-cta-row { margin-top: 0.85rem; }
  .hero-cta-row .btn { width: 100%; justify-content: center; }
  .hero-points-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.25rem;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    min-width: 0;
    background: transparent;
  }
  .hero-points-thumb {
    display: block;
    width: auto;
    max-width: min(100%, var(--hero-art-max-w));
    height: auto;
    max-height: var(--hero-art-max-h);
    margin: 0 auto;
    background: transparent;
    object-fit: contain;
    object-position: center center;
  }
  .hero-points--mobile {
    display: none;
  }
  .yandex-badges-hero {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
    max-width: 100%;
    min-width: 0;
  }
  .yandex-badges-hero .yandex-badge.place .good-place-year {
    display: none;
  }
  .yandex-badges-hero .yandex-badge.rating,
  .yandex-badges-hero .yandex-badge.place {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
  }
  .service-item img { height: 120px; width: 120px; max-width: 120px; object-fit: contain; border-radius: 22px; }
  .services-panel {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 1rem 0.85rem 1.15rem;
  }
  .service-item {
    gap: 0.35rem;
    padding: 0.25rem;
  }
  .service-item strong {
    font-size: var(--fs-text);
    line-height: 1.25;
  }
  .service-item .service-price {
    font-size: var(--fs-sm);
  }
  .rule-card {
    width: 100%;
    box-sizing: border-box;
    padding: 1.1rem 6.6rem 0.95rem 1rem;
    min-height: 104px;
    gap: 0.55rem;
  }
  .rule-card-media {
    width: 112px;
    height: 112px;
    right: 0.4rem;
    top: -1.2rem;
    border-radius: 0;
  }
  .rule-card h3 {
    font-size: var(--fs-accent);
    margin-bottom: 0.3rem;
  }
  .rule-card p {
    max-width: none;
    font-size: var(--fs-text);
    line-height: 1.4;
  }

  .booking-modal,
  .service-modal {
    padding: 0;
    align-items: stretch;
    place-items: stretch;
  }
  .booking-modal-dialog,
  .service-modal-dialog {
    width: 100%;
    max-width: none;
    max-height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
    padding: 1.1rem 1rem calc(1.2rem + env(safe-area-inset-bottom, 0px));
  }
  .booking-modal-dialog h2 {
    font-size: var(--fs-sub);
  }
  .booking-submit-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: 0.5rem;
  }
  .booking-submit-row .btn-lg {
    width: 100%;
  }
  .booking-ask {
    order: 0;
    flex: 0 0 auto;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .booking-ask-text {
    text-align: center;
    width: 100%;
  }
  .booking-grid {
    margin-bottom: 0.55rem;
    width: 100%;
  }
  .booking-grid > *,
  .booking-grid label,
  .booking-grid .fancy-select,
  .booking-grid .check-row,
  .booking-notes,
  .booking-car-preview {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }
  .booking-contacts {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
  }
  .booking-contacts .social-btn img {
    width: 46px;
    height: 46px;
  }
  .booking-modal-close {
    top: calc(0.45rem + env(safe-area-inset-top, 0px));
    width: 52px;
    height: 52px;
    font-size: 2rem;
  }
  .booking-notes-list li {
    font-size: var(--fs-sm);
  }
  .fancy-select-trigger,
  .date-field,
  .booking-grid input,
  .booking-grid .check-row {
    min-height: 48px;
  }
  .btn.btn-lg {
    width: 100%;
    min-height: 50px;
  }
  .topbar-inner {
    position: relative;
    min-height: 56px;
    gap: 0.55rem;
    grid-template-columns: 1fr auto;
  }
  .topbar-inner > .meta-socials {
    position: static;
    left: auto;
    transform: none;
    justify-self: start;
    justify-content: flex-start;
    gap: 0.4rem;
  }
  .topbar-inner > .meta-socials .social-btn img {
    width: 38px;
    height: 38px;
  }
  .header-branding-inner {
    min-height: 56px;
  }
  .brand .brand-logo-full {
    width: min(100%, 200px);
    max-height: 40px;
  }
  .wrap {
    width: min(100% - 1.5rem, var(--wrap));
    max-width: 100%;
    box-sizing: border-box;
  }
  .contacts-card,
  .reviews-panel,
  .contacts-layout .map-embed {
    width: calc(100% + 1.5rem);
    margin-left: -0.75rem;
    margin-right: -0.75rem;
  }
  .hero {
    width: 100%;
    margin: 0;
    padding-bottom: 1rem;
  }
  .hero-banner {
    min-height: 0;
    border-radius: 0;
    padding: 0.95rem 0.85rem 0.85rem;
    background: #0053a0 !important;
    background-image: none !important;
  }
  .hero-points-row {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .hero-points-thumb {
    width: auto;
    max-width: min(100%, var(--hero-art-max-w));
    max-height: var(--hero-art-max-h);
    height: auto;
    margin: 0 auto;
  }
  .hero-banner h1 {
    font-size: clamp(1.35rem, 6vw, 1.85rem);
  }
  .section {
    padding: 1.6rem 0;
  }
  .yandex-badges {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .yandex-badges-hero {
    flex-wrap: wrap;
    width: auto;
    max-width: 100%;
    min-width: 0;
    gap: 0.5rem;
  }
  .yandex-badges-hero .yandex-badge.place .good-place-year {
    display: none;
  }
  .reviews-panel .yandex-badge.place {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
  }
  .reviews-panel .yandex-badge.place .good-place-text {
    white-space: nowrap;
  }
  .reviews-panel > .btn.btn-sm {
    width: 100%;
    max-width: none;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .booking-car-preview {
    display: grid;
    width: 100%;
    box-sizing: border-box;
    gap: 0.65rem;
    padding: 0.75rem;
  }
  .booking-notes {
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.8rem 0.7rem;
  }
  .booking-tariffs-empty,
  .tariff-value {
    font-size: var(--fs-text);
  }
  .map-embed,
  .map-canvas {
    min-height: 16rem;
  }
  .map-canvas {
    height: 16rem;
  }
  .map-embed {
    width: calc(100% + 1.5rem);
    max-width: none;
    min-width: 0;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    box-sizing: border-box;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .services-panel {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 0.85rem 0.7rem 1rem;
    border-radius: 18px;
  }
  .service-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 0.75rem;
    row-gap: 0.15rem;
    align-items: center;
    justify-items: start;
    text-align: left;
    padding: 0.45rem 0.35rem;
  }
  .service-item img {
    grid-row: 1 / span 2;
    width: 76px;
    height: 76px;
    max-width: 76px;
    object-fit: contain;
    border-radius: 16px;
  }
  .service-item strong {
    font-size: var(--fs-text);
  }
  .service-item .service-price {
    font-size: var(--fs-sm);
  }
  .rule-card {
    padding: 1.05rem 5.8rem 0.9rem 0.95rem;
    border-radius: 18px;
    min-height: 96px;
  }
  .rule-card-media {
    width: 100px;
    height: 100px;
    right: 0.35rem;
    top: -1.05rem;
    border-radius: 0;
  }
  .rule-card h3 {
    font-size: var(--fs-accent);
  }
  .rule-card p {
    max-width: none;
    font-size: var(--fs-text);
  }
  .filters select {
    width: 100%;
    min-height: 48px;
    padding-right: 2.4rem;
  }
}

@media (max-width: 480px) {
  .car-detail-facts { grid-template-columns: 1fr; }
  .car-grid {
    grid-template-columns: 1fr;
  }
  .car-card {
    height: 100%;
    min-height: 0;
    grid-template-columns: 1fr;
    border-radius: var(--radius-md);
    padding: 12px 11px 13px;
    gap: 10px;
  }
  .car-card-head {
    align-items: center;
    position: relative;
    z-index: 2;
  }
  .car-card-title {
    font-size: var(--fs-sm);
    padding-top: 0;
    line-height: 1.15;
  }
  .car-card-logo-wrap {
    width: 44px;
    height: 36px;
  }
  .car-card-logo {
    max-width: 34px;
    max-height: 24px;
  }
  .car-spec-year {
    font-size: var(--fs-sm);
  }
  .car-spec-year img {
    width: 16px;
    height: 16px;
  }
  .car-card-main {
    margin-top: 0;
  }
  .car-card-media {
    height: 142px;
    max-width: 100%;
  }
  .car-card-media img {
    max-height: 134px;
    max-width: 94%;
    width: min(94%, 300px);
  }
  .car-card[data-car-id="hyundai-solaris"] .car-card-media img {
    max-height: 130px;
    max-width: 94%;
    transform: none;
  }
  .car-card-chips {
    min-height: 40px;
    gap: 5px;
  }
  .car-card-chips li {
    font-size: 0.76rem;
    padding: 4px 6px 4px 5px;
    border-radius: 10px;
  }
  .car-card-actions {
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
    width: 100%;
  }
  .btn-order {
    font-size: var(--fs-sm);
    height: 46px;
    min-height: 46px;
    padding: 0 12px;
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
  }
  .car-card-actions .btn-order {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
  .car-price-tab {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    max-width: 45%;
    font-size: var(--fs-sm);
  }
  .filters {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }
  .filters .filters-sort {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
  }
  .filters-pills {
    width: 100%;
  }
  .filter-pill {
    flex: 1 1 auto;
    text-align: center;
  }
  .filters-price-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    width: 100%;
  }
  .filters-price-row label {
    width: 100%;
    min-width: 0;
    display: grid;
    gap: 0.3rem;
  }
  .filters-price-row input {
    width: 100%;
    min-width: 0;
  }
  .filters select,
  .filters input,
  .filters label {
    width: 100%;
  }
  .meta-socials {
    gap: 0.4rem;
  }
  .topbar-inner > .meta-socials .social-btn img {
    width: 38px;
    height: 38px;
  }
  .booking-contacts .social-btn img {
    width: 48px;
    height: 48px;
  }
  .nav-inner a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .footer-panel {
    border-radius: 16px;
  }
  .footer-nav {
    gap: 0.2rem;
  }
}

