:root {
  --ink: #111827;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #dbe3ef;
  --surface: #ffffff;
  --surface-soft: #f5f7fb;
  --blue: #c31822;
  --blue-dark: #981018;
  --accent: #f0a5a9;
  --radius-lg: 28px;
  --radius-md: 20px;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
}

html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
body.page { margin: 0; overflow-x: hidden; background: var(--surface-soft); color: var(--ink); }
a { text-underline-offset: 3px; }
address { font-style: normal; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 16px; }

.container { max-width: 1220px; padding-inline: 24px; }

.hero {
  min-height: 760px;
  color: #fff;
  background: #0b1019 url('../img/aq1.webp') center 46% / cover no-repeat;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 9, 14, .97) 0%, rgba(6, 9, 14, .76) 48%, rgba(6, 9, 14, .12) 100%);
}
.hero__backdrop { position: relative; z-index: 1; min-height: inherit; }
.hero__inner { min-height: inherit; display: flex; flex-direction: column; }
.site-nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.site-nav__brand { color: #fff; font-size: 24px; font-weight: 700; letter-spacing: .18em; }
.site-nav__links { display: flex; align-items: center; gap: 32px; }
.site-nav__links a { color: rgba(255,255,255,.82); font-size: 15px; transition: color .2s ease; }
.site-nav__links a:hover, .site-nav__links a:focus-visible { color: #fff; }

.hero__content { width: min(820px, 72%); padding: 105px 0 70px; }
.eyebrow {
  margin: 0 0 18px;
  color: #f2b3b6;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow--dark { color: var(--blue); }
.hero h1 {
  margin: 0;
  max-width: 900px;
  color: #fff;
  font-size: clamp(44px, 5.1vw, 72px);
  line-height: 1.02;
  letter-spacing: -.035em;
  text-transform: none;
}
.hero__lead { max-width: 690px; margin: 28px 0 0; font-size: 21px; line-height: 1.55; color: rgba(255,255,255,.82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--blue); color: #fff; }
.button--primary:hover { background: var(--blue-dark); }
.button--glass { color: #fff; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); backdrop-filter: blur(10px); }
.button--glass:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.14); }
.hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 44px; }
.hero__facts span { padding: 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: rgba(15,23,42,.34); color: rgba(255,255,255,.76); font-size: 13px; line-height: 1.45; backdrop-filter: blur(8px); }
.hero__facts strong { display: block; margin-bottom: 4px; color: #fff; font-size: 17px; }
.hero__note { max-width: 740px; margin: 18px 0 0; color: rgba(255,255,255,.58); font-size: 12px; line-height: 1.5; }

.section { padding: 92px 0; }
.section--intro { background: var(--surface-soft); }
.section-heading { max-width: 820px; margin-bottom: 42px; }
.section-heading h2,
.section > .container > h2 {
  display: block;
  margin: 0;
  color: var(--ink);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -.025em;
}
.section-heading h2::before,
.section > .container > h2::before { display: none; }
.section-heading > p:last-child { margin: 20px 0 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.section-heading--light h2 { color: #fff; }
.section-heading--light > p:last-child { color: rgba(255,255,255,.66); }

.dealer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.dealer-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 22px;
  padding: 28px;
  border: 1px solid rgba(148,163,184,.24);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(15,23,42,.05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.dealer-card:hover { transform: translateY(-4px); border-color: rgba(47,94,229,.32); box-shadow: var(--shadow); }
.dealer-card__badge { width: 74px; height: 74px; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(135deg, #13213b, #3766e6); color: #fff; font-size: 19px; font-weight: 700; letter-spacing: .05em; }
.dealer-card__content { min-width: 0; }
.dealer-card__meta { margin: 0 0 8px; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.dealer-card h3 { margin: 0; font-size: 23px; line-height: 1.2; }
.dealer-card address { margin: 11px 0 0; color: var(--ink-soft); font-weight: 500; line-height: 1.45; }
.dealer-card p:not(.dealer-card__meta) { margin: 15px 0 20px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.dealer-card__link { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 600; }
.dealer-card__link:hover { color: var(--blue-dark); }

.section--dark { background: #0d1528; overflow: hidden; }
.spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.spec-card { min-height: 180px; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-md); background: linear-gradient(150deg, rgba(255,255,255,.10), rgba(255,255,255,.035)); }
.spec-card span { margin-bottom: auto; color: #f0a5a9; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.spec-card strong { color: #fff; font-size: 26px; line-height: 1.15; }
.spec-card small { margin-top: 9px; color: rgba(255,255,255,.58); font-size: 14px; line-height: 1.45; }

.section--benefits { background: #fff; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.benefit-grid article { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.benefit-grid article > span { display: inline-flex; margin-bottom: 32px; color: var(--blue); font-size: 13px; font-weight: 700; }
.benefit-grid h3 { margin: 0; font-size: 21px; }
.benefit-grid p { margin: 14px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

.section--map { background: var(--surface-soft); }
.map-frame { overflow: hidden; height: clamp(420px, 52vw, 620px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: #e7ebf2; box-shadow: var(--shadow); }
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

.section--faq { background: #fff; }
.faq__list { gap: 14px; }
.faq__item { margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; box-shadow: none; }
.faq__heading { width: 100%; min-height: 74px; padding: 20px 22px; border: 0; background: #fff; text-align: left; }
.faq__heading:focus-visible { outline: 3px solid rgba(47,94,229,.25); outline-offset: -3px; }
.faq__question { color: var(--ink); font-size: 19px; line-height: 1.35; }
.faq__answer { padding: 0 22px; color: var(--muted); line-height: 1.65; }
.faq__answer p { margin: 0; }
.faq__item--active .faq__answer { margin-top: 0; padding-bottom: 22px; }
.faq__item--active .faq__question { color: var(--blue); }

.footer { padding: 46px 0; background: #080d18; }
.footer__inner { display: grid; grid-template-columns: 1.2fr .7fr 1.2fr; gap: 44px; align-items: start; }
.footer__brand { color: #fff; font-size: 22px; font-weight: 700; letter-spacing: .12em; }
.footer p { margin: 14px 0 0; color: rgba(255,255,255,.52); font-size: 14px; line-height: 1.6; }
.footer__links { display: grid; gap: 12px; }
.footer__links a, .footer__legal a { color: rgba(255,255,255,.78); }
.footer__links a:hover, .footer__legal a:hover { color: #fff; }
.footer__legal { text-align: right; }

@media (max-width: 1024px) {
  .hero { min-height: 700px; background-position: 60% center; }
  .hero__content { width: 82%; padding-top: 84px; }
  .dealer-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .benefit-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__legal { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 768px) {
  .container { padding-inline: 18px; }
  .hero { min-height: auto; background-position: 63% center; }
  .hero::after { background: linear-gradient(90deg, rgba(8,15,30,.96), rgba(8,15,30,.76)); }
  .site-nav { min-height: 68px; gap: 18px; }
  .site-nav__brand { font-size: 19px; }
  .site-nav__links { max-width: 64%; gap: 18px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
  .site-nav__links::-webkit-scrollbar { display: none; }
  .site-nav__links a { white-space: nowrap; font-size: 13px; }
  .hero__content { width: 100%; padding: 70px 0 54px; }
  .hero h1 { font-size: clamp(36px, 11vw, 52px); line-height: 1.04; }
  .hero__lead { margin-top: 22px; font-size: 18px; }
  .hero__facts { grid-template-columns: 1fr; margin-top: 30px; }
  .hero__facts span { display: grid; grid-template-columns: minmax(135px, .8fr) 1fr; align-items: center; gap: 12px; }
  .hero__facts strong { margin: 0; }
  .section { padding: 64px 0; }
  .section-heading { margin-bottom: 30px; }
  .section-heading h2, .section > .container > h2 { font-size: 36px; }
  .section-heading > p:last-child { margin-top: 16px; font-size: 16px; }
  .dealer-card { grid-template-columns: 58px minmax(0,1fr); gap: 16px; padding: 22px; }
  .dealer-card__badge { width: 58px; height: 58px; border-radius: 15px; font-size: 16px; }
  .dealer-card h3 { font-size: 21px; }
  .spec-grid, .benefit-grid { grid-template-columns: 1fr; }
  .spec-card { min-height: 155px; }
  .map-frame { height: 470px; border-radius: 20px; }
  .faq__heading { min-height: 68px; padding: 18px; }
  .faq__question { font-size: 17px; }
  .faq__answer { padding-inline: 18px; }
  .faq__item--active .faq__answer { padding-bottom: 18px; }
  .footer__inner { grid-template-columns: 1fr; gap: 30px; }
  .footer__legal { grid-column: auto; }
}

@media (max-width: 480px) {
  .container { padding-inline: 15px; }
  .site-nav { align-items: flex-start; flex-direction: column; gap: 0; padding: 18px 0 10px; }
  .site-nav__links { max-width: 100%; width: 100%; padding-bottom: 4px; }
  .hero__content { padding-top: 52px; }
  .hero h1 { font-size: 34px; }
  .hero__lead { font-size: 16px; }
  .hero__actions { display: grid; }
  .button { width: 100%; }
  .hero__facts span { grid-template-columns: 1fr; gap: 3px; }
  .section { padding: 52px 0; }
  .section-heading h2, .section > .container > h2 { font-size: 31px; }
  .dealer-card { grid-template-columns: 1fr; }
  .dealer-card__badge { width: 52px; height: 52px; }
  .dealer-card__link { width: 100%; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; }
  .map-frame { height: 420px; }
}

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

/* Restored dealer-card DOM: keep these selectors compatible with the link-management script. */
.section[id="1"] {
  background: var(--surface-soft);
}

.section[id="1"] .section__title {
  max-width: 900px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -.025em;
  text-transform: none;
}

.section[id="1"] .section__title::before {
  display: none;
}

.section[id="1"] .free-text {
  max-width: 920px;
  margin: 20px 0 42px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.bests-slider,
.bests-slider .swiper-wrapper,
.bests-slider .swiper-slide {
  width: 100%;
  overflow: visible;
}

.bests__item {
  align-items: stretch;
  margin-bottom: 22px;
}

.bests__item:last-child {
  margin-bottom: 0;
}

.bests__content {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(15, 23, 42, .05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.bests__item:hover .bests__content {
  transform: translateY(-3px);
  border-color: rgba(47, 94, 229, .3);
  box-shadow: var(--shadow);
}

.bests__image {
  flex: 0 0 auto;
  border-radius: 18px;
  background: #13213b;
}

.bests__image img {
  display: block;
  object-fit: cover;
}

.bests__info {
  min-width: 0;
}

.bests__name {
  color: var(--ink);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.bests-spec__row {
  align-items: flex-start;
  gap: 18px;
}

.bests__spec-name {
  flex: 1 1 auto;
  margin-right: 0;
  color: var(--muted);
}

.bests__spec-value {
  flex: 0 1 250px;
  color: var(--ink);
  text-align: right;
  overflow-wrap: anywhere;
}

.bests__address,
.bests__phone {
  color: var(--muted);
}

.bests__phone {
  font-weight: 500;
  white-space: nowrap;
}

.bests__phone--mobile:not([href]) {
  pointer-events: none;
  cursor: default;
  text-decoration: none;
}

.bests__description {
  color: var(--ink-soft);
  line-height: 1.65;
}

/* The rating and link nodes remain in the DOM for structural compatibility.
   They are not shown until a controlling script supplies meaningful content/link data. */
.bests__item .review__rating[aria-hidden="true"],
.bests__item .btn-underline:not([href]) {
  display: none !important;
}

.bests__contacts {
  min-width: 180px;
}

@media (max-width: 1024px) {
  .bests__content {
    padding: 32px;
  }

  .bests__item--with-image .bests__contacts {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .section[id="1"] .free-text {
    margin-bottom: 30px;
    font-size: 16px;
  }

  .bests__item {
    margin-bottom: 16px;
  }

  .bests__content {
    padding: 22px;
    border-radius: 18px;
  }

  .bests__item:hover .bests__content {
    transform: none;
  }

  .bests__image {
    width: 112px;
    height: 112px;
    margin-bottom: 18px;
  }

  .bests__name {
    font-size: 21px;
  }

  .bests-spec {
    width: 100%;
  }

  .bests-spec__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(130px, .8fr);
    gap: 12px;
    width: 100%;
  }

  .bests__spec-value {
    text-align: right;
  }

  .bests__address {
    width: 100%;
    text-align: center;
    line-height: 1.5;
  }

  .bests__phone--mobile {
    display: block;
    margin-bottom: 18px;
    color: var(--ink);
    font-size: 17px;
  }

  .bests__content-bottom {
    margin-top: 22px;
  }

  .bests__description {
    font-size: 15px;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .bests__content {
    padding: 20px 15px;
  }

  .bests__image {
    width: 104px;
    height: 104px;
  }

  .bests-spec__row {
    grid-template-columns: 1fr;
    gap: 4px;
    margin-bottom: 18px;
    text-align: center;
  }

  .bests__spec-name,
  .bests__spec-value {
    width: 100%;
    text-align: center;
  }

  .bests__content-bottom {
    margin-top: 18px;
  }
}

/* VOLGA launch theme */
.site-nav__brand, .footer__brand { letter-spacing: .22em; }
.hero__facts span { border-color: rgba(197,31,45,.32); }
.spec-card span { color: #ffb4ba; }
@media (max-width: 768px) {
  .hero { background-position: 64% center; }
  .hero::after { background: linear-gradient(90deg, rgba(6,9,14,.97), rgba(6,9,14,.74)); }
}
