:root {
  --bg: #f2f1ef;
  --dark: #161616;
  --dark-2: #1c1c1c;
  --gold: #d63378;
  --accent-purple: #8f3db7;
  --accent-red: #f23a4b;
  --accent-gradient: linear-gradient(105deg, var(--accent-purple) 0%, var(--gold) 48%, var(--accent-red) 100%);
  --text: #1a1a1a;
  --muted: #5f5f5f;
  --muted-light: #b5b5b5;
  --white: #ffffff;
  --radius-lg: 28px;
  --radius-md: 16px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

canvas,
iframe {
  max-width: 100%;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--dark);
  color: var(--white);
  border-radius: 14px;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

.nav-wrap {
  position: sticky;
  top: 16px;
  z-index: 100;
  width: min(1180px, 100% - 48px);
  margin: 20px auto 0;
}

nav {
  background: var(--white);
  border-radius: 22px;
  padding: 14px 14px 14px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
}

.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-mark-light {
  filter: none;
}

.brand-name {
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--dark);
  color: var(--white);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.menu-toggle span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 0.28s ease,
    opacity 0.2s ease,
    top 0.28s ease;
}

.menu-toggle span:nth-child(1) {
  top: 14px;
}

.menu-toggle span:nth-child(2) {
  top: 21px;
}

.menu-toggle span:nth-child(3) {
  top: 28px;
}

.menu-toggle.is-open span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

.nav-links a {
  position: relative;
  color: #3d3d3d;
  font-size: 14.5px;
  font-weight: 500;
  padding-bottom: 7px;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--dark);
}

.nav-links a.active {
  font-weight: 600;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links .lang-link {
  border: 1px solid rgba(214, 51, 120, 0.28);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 7px 10px;
}

.nav-links .lang-link::after {
  display: none;
}

.nav-links .lang-link:hover,
.nav-links .lang-link.active {
  color: var(--dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  min-height: 44px;
  text-align: center;
  transition: all 0.25s ease;
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
  padding: 14px 24px;
  border-radius: 14px;
}

.btn-dark:hover {
  background: #2e2e2e;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  padding: 14px 26px;
  border-radius: 14px;
  border: 1.5px solid #d8d6d2;
}

.btn-outline:hover {
  border-color: var(--dark);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  padding: 14px 26px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
  border-color: var(--white);
}

.btn .arrow,
.link-more .arrow {
  transition: transform 0.25s ease;
}

.btn:hover .arrow,
.link-more:hover .arrow {
  transform: translateX(3px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 0;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 76px;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: min(42vw, 520px);
  height: 78%;
  background: radial-gradient(circle at 70% 35%, rgba(214, 51, 120, 0.22), transparent 58%);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.page-hero h1 {
  margin: 0;
  color: var(--dark);
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.page-hero p {
  margin: 24px 0 0;
  max-width: 580px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.hero-bg {
  position: absolute;
  top: -120px;
  right: 0;
  width: 68%;
  height: 115%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.55) 28%, black 55%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.55) 28%, black 55%);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-bottom: 90px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--dark);
  font-size: clamp(48px, 6.4vw, 78px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.gold {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 28px 0 0;
  max-width: 380px;
  color: #3c3c3c;
  font-size: 15.5px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 44px;
}

.avatars {
  display: flex;
}

.avatars span {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid var(--bg);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-size: 12.5px;
  font-weight: 800;
}

.avatars span:not(:first-child) {
  margin-left: -14px;
}

.hero-trust p {
  margin: 0;
  color: #3c3c3c;
  font-size: 14px;
  line-height: 1.5;
}

.feature-bar {
  position: relative;
  z-index: 2;
  background: var(--dark-2);
  border-radius: var(--radius-lg);
  padding: 44px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: -40px;
}

.feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 4px 30px;
}

.feature + .feature {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.feature .icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  color: var(--gold);
}

.feature h3 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 16.5px;
  font-weight: 700;
}

.feature p {
  margin: 0;
  color: var(--muted-light);
  font-size: 13.5px;
  line-height: 1.55;
}

.intro,
.services {
  padding: 90px 0 100px;
}

.page-section {
  padding: 88px 0;
}

.page-section--dark {
  background: var(--dark-2);
  color: var(--white);
}

.page-section--dark h2,
.page-section--dark h3 {
  color: var(--white);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.detail-card {
  border-radius: var(--radius-md);
  background: var(--white);
  padding: 30px;
  box-shadow: var(--shadow);
}

.detail-card h2,
.detail-card h3 {
  margin: 0 0 12px;
  color: var(--dark);
  font-size: 24px;
  line-height: 1.2;
}

.detail-card p,
.detail-card li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.detail-card p {
  margin: 0;
}

.detail-card ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.page-section--tight {
  padding-top: 28px;
}

.service-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}

.service-photo {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.faq-list > h2 {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--dark);
  font-size: clamp(30px, 3vw, 42px);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: stretch;
}

.contact-card {
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 34px;
  box-shadow: var(--shadow);
}

.contact-card h2 {
  margin: 0 0 18px;
  color: var(--dark);
  font-size: 32px;
}

.contact-card a,
.contact-card span {
  display: block;
  color: var(--muted);
  margin: 10px 0;
  font-size: 15px;
}

.contact-card a:hover {
  color: var(--gold);
}

.contact-card .btn-dark,
.contact-card .btn-dark:hover {
  color: var(--white);
}

.mini-map {
  overflow: hidden;
  height: 220px;
  margin-top: 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(22, 22, 22, 0.08);
  background: #ededed;
}

.mini-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.intro h2,
.section-head h2 {
  margin: 0;
  color: var(--dark);
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.intro-copy p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.card {
  position: relative;
}

.card-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 0.8;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img img {
  transform: scale(1.05);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -26px 0 18px 14px;
  position: relative;
  border: 4px solid var(--bg);
}

.card h3 {
  margin: 0 0 12px;
  color: var(--dark);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

.card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dark);
  font-size: 14px;
  font-weight: 600;
}

.process-home {
  background: var(--white);
  padding: 64px 0 28px;
}

.process-lead {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.process-card {
  position: sticky;
  top: 108px;
  overflow: hidden;
  border: 1px solid rgba(22, 22, 22, 0.08);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 24px 80px rgba(22, 22, 22, 0.1);
  transform: translateZ(0);
}

.process-video {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--white) url("assets/autoelvis-hero.jpg") center / contain no-repeat;
}

.process-video video {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
}

.process-video.is-video-fallback video {
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 1;
  object-fit: cover;
}

.process-video.is-video-fallback .process-canvas {
  opacity: 0;
}

.process-canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: var(--white);
}

.process-video::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to top, rgba(255, 255, 255, 0.42), transparent 32%),
    radial-gradient(circle at 80% 16%, rgba(214, 51, 120, 0.12), transparent 36%);
  pointer-events: none;
}

.video-sheen {
  position: absolute;
  left: -22%;
  top: 0;
  z-index: 3;
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58), transparent);
  transform: skewX(-16deg);
  animation: processSheen 5.8s ease-in-out infinite;
  pointer-events: none;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(22, 22, 22, 0.08);
  background: #fff;
}

.process-steps span {
  padding: 20px 18px;
  color: var(--muted);
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  transition:
    color 0.25s ease,
    background 0.25s ease;
}

.process-steps span + span {
  border-left: 1px solid rgba(22, 22, 22, 0.08);
}

.process-steps span.is-active {
  color: var(--white);
  background: var(--accent-gradient);
}

footer {
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted-light);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

footer .brand {
  color: var(--white);
  margin-bottom: 18px;
}

footer p {
  margin: 0;
  max-width: 300px;
  font-size: 14px;
  line-height: 1.7;
}

footer h4 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer li {
  margin-bottom: 12px;
}

footer a,
footer span {
  color: var(--muted-light);
  font-size: 14px;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--white);
  font-weight: 700;
}

.footer-social a:hover {
  border-color: rgba(255, 255, 255, 0.38);
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}

@keyframes processSheen {
  0%,
  42% {
    transform: translateX(0) skewX(-16deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  78%,
  100% {
    transform: translateX(650%) skewX(-16deg);
    opacity: 0;
  }
}

@media (max-width: 1024px) {
  nav {
    position: relative;
  }

  .menu-toggle {
    display: block;
    order: 3;
  }

  .nav-cta {
    order: 2;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 10px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px) scale(0.98);
    transform-origin: top center;
    transition:
      opacity 0.24s ease,
      transform 0.24s ease;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-links li {
    list-style: none;
  }

  .nav-links a {
    display: block;
    padding: 13px 14px;
    border-radius: 12px;
  }

  .nav-links a.active {
    background: rgba(214, 51, 120, 0.1);
    color: var(--gold);
  }

  .nav-links a::after {
    left: 14px;
    right: auto;
    width: 38px;
    bottom: 7px;
  }

  .feature-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 0;
  }

  .feature:nth-child(3) {
    border-left: none;
  }

  .intro-grid,
  .cards,
  .footer-grid,
  .detail-grid,
  .contact-panel,
  .service-layout,
  .faq-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    width: calc(100% - 24px);
    top: 10px;
    margin-top: 12px;
  }

  nav {
    padding: 10px 10px 10px 16px;
    border-radius: 18px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .brand {
    gap: 7px;
    flex: 1 1 calc(100% - 58px);
    min-width: 0;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .brand-name {
    font-size: 17px;
  }

  .nav-cta {
    order: 4;
    width: 100%;
    padding: 10px 12px;
    font-size: 12.5px;
    border-radius: 12px;
  }

  .nav-cta .arrow {
    width: 13px;
    height: 13px;
  }

  .container {
    width: calc(100% - 32px);
  }

  .hero {
    padding-top: 24px;
  }

  .hero-bg {
    position: static;
    width: 100%;
    height: 300px;
    margin-bottom: 30px;
    border-radius: var(--radius-md);
    object-fit: cover;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .hero h1 {
    font-size: clamp(40px, 11.5vw, 48px);
  }

  .hero-inner {
    padding-bottom: 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .feature-bar {
    grid-template-columns: 1fr;
    margin-top: 30px;
    padding: 36px 8px;
  }

  .feature + .feature {
    border-left: none;
  }

  .intro,
  .services,
  .process-home {
    padding: 70px 0;
  }

  .process-home {
    padding-bottom: 28px;
  }

  .intro-grid,
  .cards,
  .footer-grid,
  .detail-grid,
  .contact-panel,
  .service-layout,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .service-photo {
    min-height: 260px;
    border-radius: var(--radius-md);
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .process-card {
    top: 86px;
    border-radius: var(--radius-md);
  }

  .process-steps span {
    padding: 16px 14px;
  }

  .mini-map {
    height: 190px;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .process-steps span + span {
    border-left: 0;
    border-top: 1px solid rgba(22, 22, 22, 0.08);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 360px) {
  nav {
    padding: 9px 8px 9px 12px;
  }

  .brand-name {
    font-size: 14px;
  }

  .nav-cta {
    padding: 9px 10px;
    font-size: 11.5px;
    gap: 6px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
