@import url("./base/reset.css");
@import url("./base/variables.css");
@import url("./base/base.css");
@import url("./components/offers.css");
@import url("./components/parts.css");
@import url("./components/contract-engines.css");
@import url("./components/about-trust.css");
@import url("./components/parts-cta.css");
@import url("./components/brand-strip.css");
@import url("./components/contact-final.css");
@import url("./components/lead-form.css");
@import url("./components/seo-content.css");
@import url("./components/seo-pages.css");
@import url("./components/footer.css");

:root {
  --color-bg: #0b0b0b;
  --color-surface: rgba(16, 16, 16, 0.78);
  --color-text: #ffffff;
  --color-muted: #b9bec7;
  --color-border: rgba(255, 255, 255, 0.14);
  --color-accent: #c6ff00;
  --color-accent-dark: #a6d700;
  --container: 1240px;
  --container-gutter: 32px;
  --container-gutter-mobile: 12px;
  --container-width: min(var(--container), calc(100% - (var(--container-gutter) * 2)));
  --hero-header-offset-top: 1rem;
  --hero-header-height: 74px;
  --section-space: clamp(88px, 8.2vw, 116px);
  --section-space-mobile: 80px;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
}

#main-content {
  position: relative;
  overflow-x: clip;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero__background,
.hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__background {
  background: url("../assets/images/hero-car.jpg") center/cover no-repeat;
  filter: blur(0.7px) saturate(0.9) brightness(0.66) contrast(1.08);
  transform: scale(1.035);
}

.hero__overlay {
  background:
    linear-gradient(106deg, rgba(9, 9, 9, 0.98) 24%, rgba(10, 10, 10, 0.75) 56%, rgba(11, 11, 11, 0.63) 100%),
    radial-gradient(circle at 72% 37%, rgba(198, 255, 0, 0.1), transparent 36%),
    radial-gradient(circle at 54% 14%, rgba(198, 255, 0, 0.04), transparent 52%);
  animation: hero-breathing 14s cubic-bezier(0.41, 0, 0.24, 1) infinite;
}

.hero__container {
  position: relative;
  z-index: 1;
  width: var(--container-width);
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
}

.hero-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.45rem;
  min-height: var(--hero-header-height);
  padding: 0.72rem 1rem 0.72rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.15rem;
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 22px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1200;
  isolation: isolate;
}

.hero-header::before,
.hero-header::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
}

.hero-header > * {
  position: relative;
  z-index: 1;
}

.hero-header::before {
  inset: 1px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.06), transparent);
  opacity: 1;
}

.hero-header::after {
  display: none;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-header__logo {
  flex-shrink: 0;
  min-width: 118px;
  padding-inline: 0.1rem;
}

.hero-header__logo-text {
  display: inline-grid;
  justify-items: start;
  align-content: center;
  line-height: 1;
  letter-spacing: 0.04em;
}

.hero-header__logo-raf,
.hero-header__logo-motors {
  display: block;
  text-transform: uppercase;
  font-family: "Inter", "Arial Narrow", "Segoe UI", "Roboto", sans-serif;
  font-weight: 860;
}

.hero-header__logo-raf {
  color: #fff;
  font-size: 1.36rem;
}

.hero-header__logo-motors {
  margin-top: 0.1rem;
  color: var(--color-accent);
  font-size: 0.47rem;
  letter-spacing: 0.22em;
}

.hero-header__menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.95rem;
  color: #e8edf3;
}

.hero-header__menu a {
  color: rgba(236, 241, 249, 0.88);
  padding: 0.32rem 0.52rem;
  border-radius: 0.6rem;
  border: 1px solid transparent;
}

.hero-header__nav {
  min-width: 0;
}


.hero-header__menu a,
.hero-categories__item,
.hero-header__phone,
.btn {
  transition: color 180ms ease, background-color 180ms ease, box-shadow 240ms ease,
    border-color 180ms ease, transform 180ms ease;
}


.hero-header__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.hero-header__phone {
  white-space: nowrap;
  font-weight: 600;
  color: rgba(236, 241, 249, 0.9);
}

.btn {
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  font-weight: 700;
}

.btn--ghost {
  background: linear-gradient(180deg, #ceff1f 0%, #c0f700 100%);
  color: #121212;
  border-color: rgba(214, 255, 69, 0.6);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 7px 16px rgba(0, 0, 0, 0.22),
    0 0 12px rgba(198, 255, 0, 0.12);
}


.hero__content {
  max-width: 860px;
  margin: 5.5rem auto 0;
  text-align: center;
  display: grid;
  justify-items: center;
  row-gap: 0;
  opacity: 0;
  transform: translateY(14px);
}

.hero__content.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms ease;
}

.hero__title {
  font-size: clamp(1.85rem, 4vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: 0.024em;
  font-weight: 860;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.34);
  margin-bottom: 1.55rem;
}

.hero__title span {
  color: var(--color-accent);
  text-shadow: 0 0 8px rgba(166, 255, 0, 0.15);
}

.hero__subtitle {
  color: rgba(233, 239, 247, 0.74);
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 1.2rem;
  font-size: clamp(0.95rem, 1.35vw, 1.05rem);
  line-height: 1.65;
}

.hero__trust-list {
  list-style: none;
  margin: 0 auto 1.5rem;
  padding: 0;
  max-width: 31rem;
  display: grid;
  gap: 0.62rem;
  font-size: clamp(0.86rem, 1.05vw, 0.94rem);
  line-height: 1.5;
  color: rgba(230, 236, 244, 0.58);
}

.hero__trust-item {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.55rem;
}

.hero__trust-item::before {
  content: "✓";
  color: var(--color-accent);
  font-weight: 760;
  line-height: 1.4;
  flex: 0 0 auto;
}

.btn--primary {
  margin-top: 0.1rem;
  min-width: 246px;
  background: linear-gradient(180deg, #d6ff42 0%, #c6ff00 100%);
  color: #101010;
  border-radius: 2px;
  padding: 0.9rem 1.45rem;
  border: 1px solid rgba(207, 255, 4, 0.62);
  box-shadow:
    0 0 12px rgba(198, 255, 0, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24),
    0 10px 22px rgba(0, 0, 0, 0.26);
  transition: transform 180ms ease, box-shadow 220ms ease, background 220ms ease;
}


.btn--pulse {
  animation: none;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  width: 100%;
  margin-top: 3.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012)),
    rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);
}

.hero-stats__item {
  position: relative;
  min-height: 8.1rem;
  padding: 1.62rem 1.55rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: background-color 170ms ease;
}

.hero-stats__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.5rem;
  right: 0;
  width: 1px;
  height: calc(100% - 3rem);
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.hero-stats__value {
  font-size: clamp(2.1rem, 3vw, 3.35rem);
  line-height: 0.93;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #ddff5f;
  text-shadow: 0 0 10px rgba(198, 255, 0, 0.16);
}

.hero-stats__label {
  margin-top: 0.7rem;
  font-size: 0.72rem;
  line-height: 1.35;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(225, 231, 240, 0.68);
}

.hero-categories {
  margin-top: 1.6rem;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 10, 10, 0.6);
}

.hero-categories__ticker {
  overflow: hidden;
  width: 100%;
}

.hero-categories__track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.85rem 0;
  animation: hero-marquee 25s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.hero-categories__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}


.hero-categories__item {
  position: relative;
  white-space: nowrap;
  color: rgba(222, 226, 233, 0.52);
  font-size: clamp(0.75rem, 1.6vw, 0.9rem);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 550;
  line-height: 1;
}

.hero-categories__item:not(:last-child)::after {
  content: "•";
  margin-left: 1.8rem;
  margin-right: 1.8rem;
  color: rgba(222, 226, 233, 0.32);
}

@keyframes cta-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(198, 255, 0, 0);
  }
  50% {
    box-shadow: 0 0 16px 0 rgba(198, 255, 0, 0.2);
  }
}

@keyframes hero-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes hero-breathing {
  0%,
  100% {
    opacity: 0.975;
  }
  50% {
    opacity: 1;
  }
}

@media (min-width: 1061px) {
  .hero__container {
    padding-top: calc(var(--hero-header-height) + var(--hero-header-offset-top) + 1.1rem);
  }

  .hero-header {
    position: fixed;
    top: var(--hero-header-offset-top);
    left: 50%;
    transform: translateX(-50%);
    width: var(--container-width);
    z-index: 9999;
    background: rgba(10, 10, 10, 0.65);
    border-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 10px 24px rgba(0, 0, 0, 0.22);
  }
}

@media (max-width: 1060px) {
  .hero-header {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1rem;
    border-radius: 1rem;
    position: static;
    padding: 0.85rem 1rem;
  }

  .hero-header__logo {
    min-width: 110px;
  }

  .hero-header__actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero__content {
    margin-top: 3.25rem;
  }

  .hero__title {
    margin-bottom: 1.45rem;
  }

  .hero__subtitle {
    margin-bottom: 1.15rem;
  }

  .hero__trust-list {
    margin-bottom: 1.45rem;
    gap: 0.52rem;
  }

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

  .hero-stats__item:nth-child(2)::after {
    display: none;
  }

  .hero-stats__item:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero-categories__track {
    animation-duration: 28s;
  }
}

@media (max-width: 680px) {
  :root {
    --container-gutter: var(--container-gutter-mobile);
  }

  .hero__container {
    padding-top: 0.9rem;
  }

  .hero-header__logo {
    min-width: 104px;
  }

  .hero-header__logo-raf {
    font-size: 1.2rem;
  }

  .hero-header__logo-motors {
    margin-top: 0.08rem;
    font-size: 0.44rem;
  }

  .hero-header__menu {
    gap: 0.35rem;
    font-size: 0.9rem;
  }

  .btn--primary,
  .btn--ghost {
    width: 100%;
  }

  .hero-header__actions {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats__item {
    min-height: auto;
    padding: 1.35rem 1.25rem;
  }

  .hero-stats__item::after {
    display: none !important;
  }

  .hero-stats__item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero-stats__value {
    font-size: 2.1rem;
  }

  .hero-stats__label {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
  }

  .hero-categories__track {
    animation-duration: 30s;
  }

  .hero-categories__item {
    letter-spacing: 0.05em;
  }

  .hero__trust-list {
    max-width: 100%;
    font-size: 0.88rem;
    margin-bottom: 1.2rem;
  }

  .hero__trust-item {
    justify-content: flex-start;
  }
}

@media (hover: hover) and (pointer: fine) {
  .hero-header__menu a:hover,
  .hero-header__phone:hover,
  .hero-categories__item:hover {
    color: #f2f7ff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.22);
  }

  .hero-header__menu a:hover {
    background: transparent;
    border-color: transparent;
  }

  .btn--ghost:hover {
    filter: brightness(1.03);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.06),
      0 10px 20px rgba(0, 0, 0, 0.24),
      0 0 15px rgba(198, 255, 0, 0.18);
  }

  .btn--primary:hover {
    background: linear-gradient(180deg, #d9ff4e 0%, #c9ff0e 100%);
    box-shadow:
      0 0 18px rgba(198, 255, 0, 0.24),
      0 12px 22px rgba(0, 0, 0, 0.28);
    transform: translateY(-2px);
  }

  .hero-stats__item:hover {
    background: rgba(255, 255, 255, 0.02);
  }

  .hero-categories:hover .hero-categories__track {
    animation-play-state: paused;
  }
}

@media (hover: none) {
  .btn--pulse {
    animation: none;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms ease, transform 480ms cubic-bezier(0.2, 0.74, 0.18, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero__overlay,
  .btn--pulse,
  .hero-categories__track,
  .reveal {
    animation: none !important;
    transition: none !important;
  }
}
