:root {
  --bg: #f5f6f8;
  --bg-elevated: #ffffff;
  --ink: #111827;
  --muted: #374151;
  --line: #e5e7eb;
  --accent: #052c17;
  --accent-dark: #031a0e;
  --accent-soft: #e6efe9;
  --shadow: 0 16px 40px rgba(17, 24, 39, 0.1);
  --shadow-form: 0 20px 50px rgba(17, 24, 39, 0.14);
  --radius: 16px;
  --radius-sm: 12px;
  --container: 1200px;
  --header-h: 96px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Manrope", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.u-nowrap {
  white-space: nowrap;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 246, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.site-header__inner {
  position: relative;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.logo__img {
  display: block;
  width: auto;
  height: 78px;
  max-width: 200px;
  object-fit: contain;
}

.logo__img--footer {
  height: 88px;
  max-width: 220px;
  filter: none;
  opacity: 1;
  background: #fff;
  border-radius: 12px;
  padding: 0.35rem 0.5rem;
}

.logo__mark {
  color: var(--accent);
  display: grid;
  place-items: center;
}

.logo__text {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.logo__text strong {
  font-weight: 700;
}

.nav {
  display: none;
  gap: 1.15rem;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.nav a:hover {
  color: var(--ink);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: end;
  flex-shrink: 0;
}

.header-phone {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}

.header-phone a {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  color: var(--ink);
}

.header-phone span {
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
}

.socials {
  display: flex;
  gap: 0.4rem;
}

.socials__btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  transition: transform 0.25s ease, background 0.25s ease;
}

.socials__btn:hover {
  transform: translateY(-2px);
  background: #d4eddc;
}

.socials__btn--brand {
  background: transparent;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
}

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

.socials__btn--brand:hover {
  background: transparent;
  transform: translateY(-2px);
}

.burger {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elevated);
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.nav.is-open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  white-space: normal;
  gap: 0;
  padding: 0.5rem 0 1rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 60;
}

.nav.is-open a {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.nav.is-open a:last-child {
  border-bottom: 0;
}

/* Hero — full-bleed composition */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(92svh, 900px);
  min-height: min(92dvh, 900px);
  padding: 5.5rem 0 2.25rem;
  overflow: hidden;
  background: #03150c;
  color: #f4f7f5;
}

.hero__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__stage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  animation: hero-stage-pan 18s ease-out forwards;
}

@keyframes hero-stage-pan {
  from {
    transform: scale(1.08) translate3d(1.5%, 0, 0);
  }
  to {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      105deg,
      rgba(3, 21, 12, 0.92) 0%,
      rgba(3, 21, 12, 0.78) 34%,
      rgba(3, 21, 12, 0.28) 62%,
      rgba(3, 21, 12, 0.12) 100%
    ),
    linear-gradient(180deg, rgba(3, 21, 12, 0.35) 0%, transparent 28%, rgba(3, 21, 12, 0.55) 100%);
}

.hero__layout {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.75rem;
  align-items: end;
  width: min(100% - 1.5rem, var(--container));
  padding-bottom: 0.25rem;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 36rem;
}

.hero__brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0 0 1rem;
}

.hero__brand-mark {
  font-family: var(--display);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  color: #fff;
}

.hero__brand-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(230, 239, 233, 0.78);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
}

.hero h1,
.section__head h2,
.cta__copy h2 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}

.hero h1 {
  font-size: clamp(1.85rem, 5.2vw, 3.25rem);
  max-width: 14ch;
  font-weight: 800;
  color: #fff;
  text-wrap: balance;
}

.hero__lead {
  margin: 1rem 0 1.35rem;
  color: rgba(244, 247, 245, 0.86);
  font-size: 1.02rem;
  font-weight: 500;
  max-width: 34rem;
  line-height: 1.6;
}

.hero__bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.hero__bullets li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.94);
}

.hero .icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(230, 239, 233, 0.16);
  color: #d7ebe0;
  border: 1px solid rgba(230, 239, 233, 0.28);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.link-video {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.25rem;
  font-weight: 700;
  color: #e6efe9;
}

.link-video__play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  box-shadow: 0 8px 20px rgba(12, 43, 27, 0.35);
}

.hero__form {
  width: 100%;
  max-width: 400px;
  margin: 0;
  justify-self: start;
}

.lead-form {
  background: var(--bg-elevated);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 18px;
  padding: 1.25rem 1.2rem;
  box-shadow: var(--shadow-form);
  display: grid;
  gap: 0.7rem;
}

.lead-form.hero__form {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  color: var(--ink);
}

.lead-form.hero__form h2 {
  color: var(--ink);
}

.lead-form h2 {
  margin: 0 0 0.15rem;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 600;
}

.lead-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  background: #fafbfc;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lead-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(12, 43, 27, 0.15);
}

.lead-form__note {
  margin: 0;
  font-size: 0.72rem;
  color: #4b5563;
  font-weight: 500;
  line-height: 1.4;
}

.lead-form__success {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: #e8f8ef;
  color: #147a3f;
  font-weight: 600;
  font-size: 0.9rem;
}

.lead-form__error {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: #fef2f2;
  color: #b91c1c;
  font-weight: 600;
  font-size: 0.9rem;
}

.lead-form__honey {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.2rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(12, 43, 27, 0.3);
}

.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid rgba(5, 44, 23, 0.4);
}

.btn--outline:hover {
  background: var(--accent-soft);
}

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

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section--muted {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(230, 239, 233, 0.45));
}

.section__head {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.section__head h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.section__head p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.reviews-grid,
.cars-grid,
.advantages-grid,
.diary-grid {
  display: grid;
  gap: 1rem;
}

.review-card,
.car-card,
.diary-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.review-card:hover,
.car-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.review-card__media,
.diary-card__media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--accent-soft);
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

a.review-card__media:focus-visible,
a.diary-card__media:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.review-card__media img,
.diary-card__media img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.review-card:hover img,
.diary-card:hover img {
  transform: scale(1.04);
}

.play-badge {
  position: absolute;
  inset: auto auto 50% 50%;
  translate: -50% 50%;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(5, 44, 23, 0.82);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 20px rgba(5, 44, 23, 0.28);
}

.play-badge--sm {
  width: 40px;
  height: 40px;
  font-size: 0.7rem;
}

.play-badge--muted {
  opacity: 0.5;
  background: rgba(5, 44, 23, 0.55);
}

.review-card__meta {
  padding: 1rem 1.1rem 1.15rem;
  display: grid;
  gap: 0.25rem;
  margin-top: auto;
}

.review-card__meta strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.review-card__meta span {
  color: var(--muted);
  font-size: 0.9rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.reviews-slider__nav {
  display: none;
}

.reviews-slider__btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent);
  font-size: 1.45rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.reviews-slider__btn:hover,
.reviews-slider__btn:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  outline: none;
}

.reviews-slider__btn:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.reviews-slider__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
}

.reviews-slider__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(5, 44, 23, 0.18);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.reviews-slider__dot.is-active {
  width: 22px;
  background: var(--accent);
}

.review-card__media {
  flex: 1 1 auto;
  min-height: 220px;
}

.review-card__media img {
  height: 100%;
  min-height: 220px;
  aspect-ratio: 4 / 3;
}

.advantages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  border-top: 1px solid rgba(5, 44, 23, 0.12);
}

.section--advantages {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(230, 239, 233, 0.9) 0%, transparent 55%),
    linear-gradient(180deg, #f3f6f4 0%, #eef2ef 48%, #f7f8f7 100%);
  overflow: hidden;
}

.section--advantages::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5, 44, 23, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.section__head--advantages {
  margin-bottom: 1.75rem;
}

.section__head--advantages h2 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
}

.advantage {
  position: relative;
  padding: 1.65rem 0 1.55rem;
  border-bottom: 1px solid rgba(5, 44, 23, 0.12);
  background: transparent;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: background-color 0.25s ease;
}

.advantage__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.advantage__index {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  opacity: 0.7;
}

.advantage__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: transparent;
  border: 1px solid rgba(5, 44, 23, 0.22);
  margin: 0;
  flex-shrink: 0;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.advantage__icon svg {
  width: 24px;
  height: 24px;
}

.advantage h3 {
  margin: 0 0 0.45rem;
  font-size: 1.3125rem; /* 21px */
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.advantage p {
  margin: 0;
  color: #2f3a33;
  font-size: 1.0625rem; /* 17px */
  font-weight: 500;
  line-height: 1.55;
  max-width: 34ch;
}

.advantage:hover .advantage__icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.advantage:hover .advantage__index {
  opacity: 1;
}

.section--process {
  background: #f7f8fb;
}

.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
  align-items: stretch;
  counter-reset: none;
}

.process__item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon title"
    "icon text";
  column-gap: 1.1rem;
  row-gap: 0.45rem;
  align-items: start;
  align-content: start;
  padding: 1.6rem 1.55rem 1.65rem;
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.05);
  overflow: hidden;
  height: 100%;
  min-height: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.process__item::after,
.process__item::before {
  content: none !important;
  display: none !important;
}

.process__item:hover {
  transform: translateY(-3px);
  border-color: rgba(5, 44, 23, 0.35);
  box-shadow: 0 18px 40px rgba(5, 44, 23, 0.1);
}

.process__top {
  grid-area: icon;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}

.process__icon {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border: 0;
  box-shadow: none;
  flex-shrink: 0;
}

.process__num {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0;
  line-height: 1;
}

.process__item h3 {
  grid-area: title;
  margin: 0.1rem 0 0;
  font-size: 1.3125rem; /* 21px */
  font-weight: 700;
  line-height: 1.3;
  align-self: end;
  color: var(--ink);
}

.process__item p {
  grid-area: text;
  margin: 0;
  color: #374151;
  font-size: 1.0625rem; /* 17px */
  font-weight: 500;
  line-height: 1.55;
  max-width: none;
}



.cars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.car-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.car-card__open {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.car-card__open:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.car-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--accent-soft);
  overflow: hidden;
  flex-shrink: 0;
}

.car-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
}

.car-card:hover .car-card__media img {
  transform: scale(1.04);
}

.car-card__more {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(5, 44, 23, 0.82);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.car-card:hover .car-card__more,
.car-card__open:focus-visible .car-card__more {
  opacity: 1;
  transform: translateY(0);
}

.car-card__body {
  padding: 1.05rem 1.15rem 0.5rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.car-card__body h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.car-card__country {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.car-card__price {
  margin: 0.55rem 0 0.65rem;
  color: var(--accent);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.car-card__body ul {
  margin: 0;
  padding: 0 0 0 1rem;
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.45;
}

.car-card__footer {
  padding: 0.75rem 1.15rem 1.15rem;
  margin-top: auto;
}

.car-card__footer .btn--outline {
  color: var(--accent);
  border-color: rgba(5, 44, 23, 0.45);
  font-weight: 800;
}

.car-card__footer .btn--outline:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* —— Car Fancybox modal —— */
.ia-car-modals .ia-car-modal {
  display: none;
}

.ia-car-modal {
  width: min(980px, 96vw);
  max-width: 100%;
  padding: 0;
  margin: 0;
  background: #fff;
  overflow: hidden;
}

.ia-car-modal__layout {
  display: grid;
  grid-template-columns: 1fr;
}

.ia-car-modal__media {
  position: relative;
  background: #0f141c;
  height: 280px;
  min-height: 280px;
  max-height: 280px;
  overflow: hidden;
}

.ia-car-modal__hero {
  display: block;
  width: 100%;
  height: 100%;
}

.ia-car-modal__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.ia-car-modal__nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 3;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(16, 20, 28, 0.55);
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
  transition: background 0.15s ease, transform 0.15s ease;
}

.ia-car-modal__nav:hover {
  background: rgba(16, 20, 28, 0.78);
}

.ia-car-modal__nav:active {
  scale: 0.96;
}

.ia-car-modal__nav--prev {
  left: 0.7rem;
}

.ia-car-modal__nav--next {
  right: 0.7rem;
}

.ia-car-modal__nav span {
  display: block;
  margin-top: -2px;
}

.ia-car-modal__thumbs {
  display: flex;
  gap: 0.45rem;
  padding: 0.55rem;
  overflow-x: auto;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
}

.ia-car-modal__thumb {
  flex: 0 0 64px;
  height: 48px;
  padding: 0;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: #1a2230;
  opacity: 0.75;
  cursor: pointer;
  transition: opacity 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.ia-car-modal__thumb:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.85);
}

.ia-car-modal__thumb.is-active {
  opacity: 1;
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--accent);
  transform: translateY(-1px);
}

.ia-car-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.ia-car-modal__panel {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: 1.25rem 1.25rem 1.35rem;
  background: #fff;
}

.ia-car-modal__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.ia-car-modal__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ia-car-modal__tag--soft {
  background: #f1f3f7;
  color: var(--muted);
}

.ia-car-modal__title {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.ia-car-modal__price {
  margin: 0;
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ia-car-modal__desc {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.ia-car-modal__block {
  padding-top: 0.15rem;
  border-top: 1px solid var(--line);
}

.ia-car-modal__heading {
  margin: 0.85rem 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9aa3b2;
}

.ia-car-modal__specs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.ia-car-modal__specs li {
  margin: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfc;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.ia-car-modal__details {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.ia-car-modal__details li {
  position: relative;
  margin: 0;
  padding: 0.15rem 0 0.15rem 1.15rem;
  font-size: 0.92rem;
  color: #3b4453;
  line-height: 1.45;
}

.ia-car-modal__details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.ia-car-modal__actions {
  margin-top: auto;
  padding-top: 0.35rem;
}

.ia-car-modal__actions .btn {
  min-height: 50px;
  box-shadow: 0 10px 24px rgba(12, 43, 27, 0.28);
}

.ia-car-modal__note {
  margin: 0.55rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Fancybox chrome for car modal */
.fancybox__backdrop {
  background: rgba(10, 14, 22, 0.78);
}

.fancybox__content:has(.ia-car-modal) {
  padding: 0 !important;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.fancybox__content:has(.ia-car-modal) .f-button.is-close-btn {
  --f-button-bg: rgba(16, 20, 28, 0.55);
  --f-button-hover-bg: rgba(16, 20, 28, 0.75);
  color: #fff;
  top: 12px;
  right: 12px;
}

@media (min-width: 860px) {
  .ia-car-modal__layout {
    grid-template-columns: 1.05fr 0.95fr;
    height: min(78vh, 560px);
    min-height: 0;
  }

  .ia-car-modal__media {
    height: 100%;
    min-height: 0;
    max-height: none;
  }

  .ia-car-modal__hero,
  .ia-car-modal__hero img {
    height: 100%;
    min-height: 0;
    max-height: none;
  }

  .ia-car-modal__panel {
    padding: 1.6rem 1.55rem 1.45rem;
    max-height: none;
    height: 100%;
    overflow: auto;
  }

  .ia-car-modal__specs {
    gap: 0.55rem;
  }
}

@media (max-width: 480px) {
  .ia-car-modal__specs {
    grid-template-columns: 1fr;
  }
}

.diary-card {
  text-align: center;
}

.diary-card p {
  margin: 0;
  padding: 0.75rem 0.6rem 0.95rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.diary-card__media img {
  height: 150px;
}

.stats {
  padding: 2.75rem 0;
  background: linear-gradient(120deg, #031a0e, var(--accent) 55%, #1a4a32);
  color: #fff;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 220px));
  gap: 1.5rem 3rem;
  max-width: 560px;
  margin-inline: auto;
  justify-content: center;
}

.stats__item {
  text-align: center;
}

.stats__item strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 800;
}

.stats__item span {
  opacity: 0.94;
  font-size: 0.98rem;
  font-weight: 500;
}

.stats__lead {
  margin: 1.6rem auto 0;
  max-width: 40rem;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.55;
  font-weight: 500;
  opacity: 0.96;
}

.section--map-reviews {
  background: #fff;
}

.map-reviews {
  --map-gap: 1.15rem;
  --map-cols: 1;
  position: relative;
}

.map-reviews__track {
  display: flex;
  align-items: stretch;
  gap: var(--map-gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.15rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.map-reviews__track::-webkit-scrollbar {
  display: none;
}

.map-reviews.is-static .map-reviews__track {
  overflow-x: hidden;
}

.map-review-card {
  flex: 0 0 calc((100% - (var(--map-cols) - 1) * var(--map-gap)) / var(--map-cols));
  width: calc((100% - (var(--map-cols) - 1) * var(--map-gap)) / var(--map-cols));
  max-width: calc((100% - (var(--map-cols) - 1) * var(--map-gap)) / var(--map-cols));
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.map-review-card__media {
  display: block;
  background: #eef1ef;
  color: inherit;
  text-decoration: none;
  max-height: 560px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

a.map-review-card__media:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.map-review-card__media img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  object-position: top center;
  vertical-align: top;
}

.map-review-card__meta {
  padding: 0.85rem 1rem 1rem;
  display: grid;
  gap: 0.2rem;
  margin-top: auto;
}

.map-review-card__source {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.map-review-card__rating {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
}

.map-review-card__link {
  margin-top: 0.35rem;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  width: fit-content;
}

.map-review-card__link:hover,
.map-review-card__link:focus-visible {
  color: #0a3d22;
}

.map-reviews__controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.map-reviews__controls[hidden] {
  display: none !important;
}

.map-reviews__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.map-reviews__btn:hover:not(:disabled) {
  background: var(--accent-soft);
}

.map-reviews__btn:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.map-reviews__empty {
  margin: 0;
  padding: 1.25rem 1.35rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #f8faf9;
  max-width: 40rem;
}

@media (min-width: 640px) {
  .map-reviews {
    --map-cols: 2;
  }

  .map-review-card__media {
    max-height: 580px;
  }
}

@media (min-width: 900px) {
  .map-reviews {
    --map-cols: 3;
  }

  .map-review-card__media {
    max-height: 620px;
  }
}

.section--cta {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  background: #f3f6f4;
}

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 28px;
  min-height: 420px;
  display: flex;
  align-items: stretch;
  color: #f4f7f5;
  box-shadow: 0 24px 60px rgba(3, 21, 12, 0.18);
}

.cta__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta__stage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.03);
}

.cta__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      105deg,
      rgba(3, 21, 12, 0.92) 0%,
      rgba(3, 21, 12, 0.78) 38%,
      rgba(3, 21, 12, 0.42) 68%,
      rgba(3, 21, 12, 0.28) 100%
    ),
    linear-gradient(180deg, rgba(3, 21, 12, 0.2) 0%, rgba(3, 21, 12, 0.45) 100%);
}

.cta__layout {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.75rem;
  align-items: end;
  width: 100%;
  padding: 1.75rem 1.35rem;
}

.cta__copy {
  max-width: 34rem;
}

.cta__copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 16ch;
}

.cta__copy p {
  margin: 0.9rem 0 0;
  color: rgba(244, 247, 245, 0.86);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.6;
  max-width: 36rem;
}

.lead-form--cta {
  width: 100%;
  max-width: 400px;
  margin: 0;
  justify-self: start;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  color: var(--ink);
}

.section--faq {
  background: linear-gradient(180deg, #f4f7f5 0%, #eef4f0 100%);
  padding: 2rem 0 2.25rem;
}

.section--faq .section__head--center {
  margin-bottom: 1rem;
}

.section--faq .section__head--center h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
}

.section--faq .section__head--center p {
  margin-top: 0.45rem;
  font-size: 0.95rem;
}

.section__head--center {
  text-align: center;
  margin-inline: auto;
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

.faq {
  max-width: 820px;
  margin-inline: auto;
}

.faq__list {
  display: grid;
  gap: 0.45rem;
  max-width: none;
}

.faq__item {
  background: #fff;
  border: 1px solid rgba(5, 44, 23, 0.14);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(5, 44, 23, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq__item:hover {
  border-color: rgba(5, 44, 23, 0.32);
}

.faq__item.is-open {
  border-color: rgba(5, 44, 23, 0.45);
  box-shadow: 0 8px 20px rgba(5, 44, 23, 0.08);
}

.faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.72rem 0.95rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
}

.faq__question {
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.35;
}

.faq__icon {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(5, 44, 23, 0.16);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.35s ease;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
}

.faq__icon::before {
  width: 12px;
  height: 2px;
}

.faq__icon::after {
  width: 2px;
  height: 12px;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.faq__item.is-open .faq__icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(180deg);
}

.faq__item.is-open .faq__icon::after {
  transform: translate(-50%, -50%) scaleY(0);
  opacity: 0;
}

.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq__item.is-open .faq__panel {
  grid-template-rows: 1fr;
}

.faq__panel-inner {
  overflow: hidden;
  min-height: 0;
}

.faq__panel-inner p {
  margin: 0;
  padding: 0 0.95rem 0.8rem;
  color: #2f3a33;
  font-size: 0.94rem;
  line-height: 1.55;
  max-width: 62ch;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease 0.04s, transform 0.3s ease 0.04s;
}

.faq__item.is-open .faq__panel-inner p {
  opacity: 1;
  transform: none;
}


/* Footer */
.site-footer {
  background: #052c17;
  color: rgba(244, 247, 245, 0.82);
  padding: 3rem 0 1.5rem;
}

.site-footer .logo__mark {
  color: #7dce9a;
}

.site-footer__main {
  display: grid;
  gap: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__brand {
  display: grid;
  gap: 1.15rem;
  align-content: start;
}

.site-footer__label {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(230, 239, 233, 0.55);
}

.site-footer .nav--footer {
  display: grid;
  justify-content: start;
  justify-items: start;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(244, 247, 245, 0.78);
  white-space: normal;
  text-align: left;
}

.nav--footer a {
  width: fit-content;
  color: rgba(244, 247, 245, 0.78);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav--footer a:hover,
.nav--footer a:focus-visible {
  color: #fff;
  transform: translateX(3px);
}

.site-footer__phone {
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  transition: color 0.2s ease;
}

.site-footer__phone:hover,
.site-footer__phone:focus-visible {
  color: #d7ebe0;
}

.site-footer__address {
  display: block;
  color: rgba(230, 239, 233, 0.78);
  font-size: 0.95rem;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.site-footer__address:hover,
.site-footer__address:focus-visible {
  color: #fff;
}

.site-footer__contacts {
  display: grid;
  gap: 0.55rem;
}

.socials--footer {
  gap: 0.55rem;
}

.site-footer__map {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-height: 240px;
  background: #03150c;
}

.site-footer__map iframe {
  display: block;
  width: 100%;
  min-height: 280px;
  border: 0;
}

.site-footer__map-link {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 2;
  background: #fff;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-footer__map-link:hover,
.site-footer__map-link:focus-visible {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(230, 239, 233, 0.55);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer__links a {
  color: rgba(230, 239, 233, 0.62);
  transition: color 0.2s ease;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: #fff;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal--delay {
  transition-delay: 0.12s;
}

@media (max-width: 1199px) {
  .site-header__inner {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 899px) {
  .hero__form {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }

  .lead-form--cta {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 479px) {
  .container {
    width: min(100% - 1.25rem, var(--container));
  }

  .hero h1 {
    font-size: clamp(1.7rem, 9vw, 2.15rem);
    max-width: none;
  }

  .hero__lead {
    font-size: 0.98rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section__head h2 {
    font-size: 1.4rem;
  }

  .socials__btn {
    width: 34px;
    height: 34px;
  }

  .logo__text {
    font-size: 0.82rem;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .advantages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    column-gap: 0;
  }

  .advantage {
    padding: 1.4rem 1rem 1.35rem;
  }

  .advantage:nth-child(odd) {
    padding-right: 1.15rem;
    border-right: 1px solid rgba(5, 44, 23, 0.12);
  }

  .advantage:nth-child(even) {
    padding-left: 1.15rem;
  }

  .advantage:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 639px) {
  :root {
    --header-h: 84px;
  }

  .logo__img {
    height: 64px;
    max-width: 160px;
  }

  .cta {
    min-height: 0;
    border-radius: 22px;
  }

  .cta__layout {
    padding: 1.5rem 1.15rem 1.35rem;
  }

  .lead-form {
    padding: 1.1rem;
  }

  .lead-form input,
  .btn {
    min-height: 48px;
  }

  .reviews-slider {
    position: relative;
  }

  .reviews-slider__track.reviews-grid {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, calc(100% - 2.25rem));
    grid-template-columns: none;
    gap: 0.85rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(1.25rem, calc(50vw - 50%));
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    margin-inline: calc(50% - 50vw);
    padding-inline: max(1.25rem, calc(50vw - 50%));
    padding-bottom: 0.15rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .reviews-slider__track.reviews-grid::-webkit-scrollbar {
    display: none;
  }

  .review-card {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .reviews-slider__nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.15rem;
  }

  .reviews-slider__nav[hidden] {
    display: none !important;
  }

  .review-card__media {
    min-height: 200px;
  }

  .review-card__media img {
    min-height: 200px;
  }
}

/* —— Tablet —— */
@media (min-width: 640px) {
  .header-phone {
    display: flex;
  }

  .header-phone span {
    display: none;
  }

  .reviews-grid,
  .cars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .review-card__media {
    min-height: 240px;
  }

  .review-card__media img {
    min-height: 240px;
  }

  .diary-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

@media (min-width: 768px) {
  .hero {
    align-items: center;
    padding: 6rem 0 3.5rem;
  }

  .hero__layout {
    gap: 2rem 2.5rem;
  }

  .header-phone span {
    display: block;
  }

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

  .advantage {
    padding: 1.85rem 1.6rem 1.7rem;
  }

  .advantage:nth-child(odd) {
    padding-right: 1.85rem;
    border-right: 1px solid rgba(5, 44, 23, 0.12);
  }

  .advantage:nth-child(even) {
    padding-left: 1.85rem;
  }

  .advantage:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .process {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stats__grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .cta__layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 400px);
    gap: 2rem 2.5rem;
    align-items: end;
    padding: 2.5rem 2.35rem;
  }

  .lead-form--cta {
    justify-self: end;
    max-width: 400px;
  }

  .cta {
    min-height: 460px;
  }

  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .process {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
    align-items: stretch;
  }

  .process__item {
    min-height: 11rem;
    padding: 1.55rem 1.4rem 1.6rem;
  }

  .hero__layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 400px);
    align-items: end;
    gap: 2.5rem 3rem;
  }

  .hero__form {
    justify-self: end;
    max-width: 400px;
  }

  .hero h1 {
    max-width: 13ch;
  }
}

/* —— Desktop —— */
@media (min-width: 1200px) {
  .burger {
    display: none;
  }

  .nav {
    display: flex;
  }

  .nav.is-open {
    display: flex;
    position: static;
    flex-direction: row;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    gap: 1.15rem;
    white-space: nowrap;
  }

  .nav.is-open a {
    padding: 0;
    border: 0;
  }

  .site-header__actions {
    margin-left: 0;
  }

  .header-phone {
    display: flex;
  }

  .hero {
    min-height: calc(100svh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
    padding: 7rem 0 4rem;
  }

  .hero__layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 420px);
    gap: 3rem 4rem;
    align-items: end;
  }

  .hero__copy {
    padding-bottom: 0.35rem;
  }

  .hero__form {
    justify-self: end;
    width: 100%;
    max-width: 420px;
    padding: 1.2rem 1.15rem 1rem;
    gap: 0.55rem;
  }

  .hero__form h2 {
    font-size: 1.08rem;
    margin: 0;
  }

  .hero__form input {
    padding: 0.78rem 0.9rem;
    min-height: 0;
    font-size: 0.92rem;
  }

  .hero__form .btn {
    padding: 0.85rem 1rem;
    min-height: 0;
    font-size: 0.95rem;
  }

  .hero__form .lead-form__note {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.62rem;
    line-height: 1.3;
  }

  .reviews-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.35rem;
  }

  .review-card__media {
    min-height: 260px;
  }

  .review-card__media img {
    min-height: 260px;
  }

  .advantages-grid {
    gap: 0;
  }

  .advantage {
    padding: 2rem 1.85rem 1.85rem;
  }

  .advantage:nth-child(odd) {
    padding-right: 2.15rem;
  }

  .advantage:nth-child(even) {
    padding-left: 2.15rem;
  }

  .process {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
  }

  .process__item {
    padding: 1.7rem 1.6rem 1.75rem;
    min-height: 11.5rem;
  }

  .process__item h3 {
    font-size: 1.3125rem;
  }

  .process__item p {
    font-size: 1.0625rem;
    color: #374151;
  }

  .site-footer__main {
    grid-template-columns: minmax(0, 0.95fr) minmax(140px, 0.7fr) minmax(280px, 1.25fr);
    align-items: start;
    gap: 2rem 2.5rem;
  }

  .site-footer .nav--footer {
    justify-content: start;
    justify-items: start;
    padding-top: 0.35rem;
  }

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

  .diary-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (min-width: 1280px) {
  .nav {
    gap: 1.25rem;
    font-size: 0.92rem;
  }

  .hero__layout {
    gap: 3.5rem 4.5rem;
  }

  .hero__form {
    max-width: 440px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__stage-img {
    animation: none;
    transform: none;
  }
}

/* —— Video lightbox —— */
body.ia-video-open {
  overflow: hidden;
}

.ia-video-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(10, 14, 22, 0.72);
  backdrop-filter: blur(4px);
}

.ia-video-modal__dialog {
  position: relative;
  width: min(920px, 100%);
}

.ia-video-modal__close {
  position: absolute;
  top: -2.4rem;
  right: 0;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.ia-video-modal__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.ia-video-modal__player {
  display: block;
  width: 100%;
  max-height: min(80vh, 560px);
  border-radius: 12px;
  background: #000;
}

/* —— Lead form modal —— */
body.ia-lead-open {
  overflow: hidden;
}

.ia-lead-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.ia-lead-modal[hidden] {
  display: none !important;
}

.ia-lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 22, 0.72);
  backdrop-filter: blur(4px);
}

.ia-lead-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(90vh, 680px);
  overflow: auto;
  padding: 1.6rem 1.45rem 1.45rem;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.ia-lead-modal__close {
  position: absolute;
  top: 0.7rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: #f1f3f7;
  color: #1d2327;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.ia-lead-modal__close:hover {
  background: #e6e9ef;
}

.ia-lead-modal__form h2 {
  margin: 0 0 0.45rem;
  padding-right: 1.75rem;
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.25;
}

.ia-lead-modal__lead {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.ia-lead-modal__form {
  box-shadow: none;
  padding: 0;
  background: transparent;
  border: 0;
  width: 100%;
  max-width: none;
}

