:root {
  --bg: #f6f7f4;
  --surface: #fff;
  --ink: #101312;
  --muted: #5f6965;
  --line: #dfe4de;
  --accent: #c7ff4f;
  --accent-dark: #263a12;
  --dark: #0e1110;
}

[data-theme='night'] {
  --bg: #070908;
  --surface: #111614;
  --ink: #f3f6ef;
  --muted: #b7c0ba;
  --line: #27302c;
  --accent: #c7ff4f;
  --accent-dark: #c7ff4f;
  --dark: #050706;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}

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

.site-header {
  position: fixed;
  z-index: 5;
  top: 18px;
  right: clamp(16px, 4vw, 56px);
  left: clamp(16px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 14px 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
  font-size: 17px;
  font-weight: 900;
}

.logo__mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
}

.nav__standard-link,
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--dark);
}

.nav__chevron {
  font-size: 12px;
  line-height: 1;
  transition: transform 160ms ease;
}

.nav__item:hover .nav__chevron,
.nav__item:focus-within .nav__chevron {
  transform: rotate(180deg);
}

.nav__dropdown-link {
  display: block;
  padding: 12px 14px;
  white-space: nowrap;
}

.nav__standard-link:hover,
.nav__item:hover .nav__link,
.nav__item:focus-within .nav__link {
  background: #eef2ed;
}

.nav__item {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: -12px;
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav__button {
  border-radius: 8px;
  padding: 12px 18px;
  color: var(--dark);
  background: var(--accent);
}

.theme-toggle {
  display: inline-flex;
  width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  color: var(--dark);
  background: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.theme-toggle__icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  font-size: 0;
}

.theme-toggle__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.theme-toggle__icon--moon {
  display: none;
}

[data-theme='night'] .theme-toggle__icon--sun {
  display: none;
}

[data-theme='night'] .theme-toggle__icon--moon {
  display: inline-grid;
}

.language-toggle {
  display: inline-flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  background: #fff;
}

.language-toggle__button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  color: var(--dark);
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.language-toggle__button.is-active {
  background: var(--accent);
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: end;
  gap: 32px;
  padding: 132px clamp(20px, 5vw, 72px) 56px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5, 8, 7, 0.88), rgba(5, 8, 7, 0.36)),
    url('../assets/hero-detailing.jpg') center/cover;
}

.hero__content {
  max-width: 780px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(44px, 8vw, 88px);
  line-height: 0.95;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.hero__text {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 24px;
  color: var(--dark);
  background: var(--accent);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(199, 255, 79, 0.22);
}

.button--ghost {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.rating-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 26px clamp(20px, 5vw, 72px);
  color: #fff;
  background: #070908;
  text-align: center;
}

.rating-strip__stars {
  color: var(--accent);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.rating-strip p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.rating-strip strong {
  display: block;
  color: #fff;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.trust-bar div {
  display: grid;
  gap: 8px;
  padding: 28px clamp(20px, 5vw, 72px);
  background: #fff;
}

.trust-bar strong {
  font-size: 18px;
}

.trust-bar span {
  color: var(--muted);
  line-height: 1.5;
}

.section {
  padding: 86px clamp(20px, 5vw, 72px);
}

.section--intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 40px;
  align-items: end;
  background: var(--dark);
  color: #fff;
}

.intro__text {
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.7;
}

.section__heading {
  max-width: 820px;
  margin-bottom: 36px;
}

.featured-services {
  display: grid;
  gap: 18px;
  margin-bottom: 42px;
}

.featured-service {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.featured-service:nth-child(even) {
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
}

.featured-service__image,
.gallery__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-service__image {
  min-height: 300px;
}

.featured-service:nth-child(even) .featured-service__image {
  order: 2;
}

.featured-service div {
  padding: 28px;
}

.featured-service__text,
.package__text,
.package__item,
.gallery__text,
.faq__text {
  color: var(--muted);
  line-height: 1.65;
}

.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 1040px;
  margin-inline: auto;
}

.service,
.steps article,
.faq__grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.steps article,
.faq__grid article {
  min-height: 220px;
}

.service {
  display: grid;
  grid-template-columns: 72px minmax(190px, 0.36fr) minmax(0, 1fr);
  min-height: 0;
  width: 100%;
  align-items: center;
  gap: 18px;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.service:hover,
.service.is-active {
  border-color: var(--accent);
  box-shadow: 0 18px 34px rgba(23, 33, 28, 0.12);
  transform: translateY(-2px);
}

.service__number {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  font-weight: 900;
}

.service.is-active .service__number {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(199, 255, 79, 0.12);
}

.service h3 {
  margin: 0;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.15;
}

.service__text,
.step__text,
.quote__text,
.quote__list {
  color: var(--muted);
  line-height: 1.65;
}

.service__text {
  margin: 0;
}

.service-details {
  margin-top: 18px;
}

.service-panel {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(16, 19, 18, 0.08);
}

.service-panel[hidden] {
  display: none;
}

.service-panel__intro {
  max-width: 860px;
  margin-bottom: 28px;
}

.service-panel__intro p,
.service-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.service-offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}

.service-offer {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: 8px;
  color: #fff;
  background: var(--dark);
}

.service-offer span {
  color: var(--accent);
  font-weight: 900;
}

.service-offer ul {
  display: grid;
  gap: 8px;
  margin: 0 0 6px;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.service-offer .button {
  margin-top: auto;
}

.service-copy {
  display: grid;
  gap: 10px;
}

.service-copy--columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.service-copy--columns div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.process {
  background: #ecefeb;
}

.packages {
  background: #f0f3ef;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.package-grid article {
  padding: 28px;
  border-radius: 8px;
  color: #fff;
  background: var(--dark);
}

.package-grid span {
  display: block;
  margin-bottom: 32px;
  color: var(--accent);
  font-weight: 900;
}

.package-grid ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding-left: 18px;
}

.package__text,
.package__item {
  color: rgba(255, 255, 255, 0.74);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.steps span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--dark);
  font-weight: 900;
}

.faq {
  background: var(--bg);
}

.faq__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.faq__grid article {
  min-height: 180px;
}

.gallery {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 38px;
  align-items: center;
  padding: 96px clamp(20px, 5vw, 72px);
  background: #fff;
}

.gallery__content {
  max-width: 520px;
}

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

.gallery__image {
  aspect-ratio: 1/0.82;
  border-radius: 8px;
}

.quote {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 48px;
  padding: 96px clamp(20px, 5vw, 72px);
  color: #fff;
  background:
    linear-gradient(rgba(14, 17, 16, 0.88), rgba(14, 17, 16, 0.94)),
    url('../assets/paint-correction.jpg') center/cover;
}

.quote__content {
  align-self: center;
}

.quote__list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.76);
}

.quote-frame {
  width: 100%;
  min-height: 1200px;
  display: block;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.footer {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(360px, 1.2fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 5vw, 72px);
  color: #fff;
  background: #070908;
}

.footer__brand-block {
  display: grid;
  gap: 8px;
}

.footer__brand {
  margin: 0;
  color: var(--accent);
  font-weight: 900;
}

.footer__brand-block span {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
}

.footer__location {
  width: fit-content;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 8px;
  color: #fff !important;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  font-style: normal;
  font-weight: 800;
}

.footer__contacts a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.06);
}

.footer__contact-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: var(--dark);
  background: var(--accent);
  flex: 0 0 auto;
}

.footer__contact-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer__link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 16px;
  color: var(--dark);
  background: var(--accent);
  font-weight: 900;
}

.footer__link--ghost {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--accent);
  background: transparent;
}

[data-theme='night'] .site-header {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(17, 22, 20, 0.94);
}

[data-theme='night'] .logo,
[data-theme='night'] .nav__standard-link,
[data-theme='night'] .nav__link span {
  color: var(--ink);
}

[data-theme='night'] .nav__standard-link:hover {
  background: #1e2723;
}

[data-theme='night'] .nav__dropdown-menu,
[data-theme='night'] .trust-bar div,
[data-theme='night'] .gallery,
[data-theme='night'] .quote-frame,
[data-theme='night'] .service,
[data-theme='night'] .service-panel,
[data-theme='night'] .service-copy--columns div,
[data-theme='night'] .steps article,
[data-theme='night'] .faq__grid article,
[data-theme='night'] .featured-service {
  background: var(--surface);
}

[data-theme='night'] .theme-toggle {
  color: var(--ink);
  background: #1b221f;
}

[data-theme='night'] .language-toggle {
  background: #1b221f;
}

[data-theme='night'] .language-toggle__button {
  color: var(--ink);
}

@media (max-width: 900px) {
  .hero,
  .section--intro,
  .quote,
  .gallery,
  .featured-service,
  .featured-service:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .featured-service:nth-child(even) img {
    order: 0;
  }
  .hero {
    align-items: end;
  }
  .steps,
  .faq__grid,
  .package-grid,
  .service-offers,
  .service-copy--columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 10px 12px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
  .logo {
    font-size: 15px;
  }
  .logo__mark {
    width: 34px;
    height: 34px;
  }
  .nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    font-size: 13px;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar {
    display: none;
  }
  .nav__standard-link,
  .nav__link,
  .nav__button {
    min-height: 38px;
    padding: 9px 10px;
    white-space: nowrap;
  }
  .nav__item {
    flex: 0 0 auto;
    width: auto;
    padding-bottom: 0;
    margin-bottom: 0;
  }
  .nav__dropdown {
    display: none !important;
  }
  .nav__chevron {
    display: none !important;
  }
  .theme-toggle {
    width: 38px;
    min-height: 38px;
    flex: 0 0 auto;
  }
  .language-toggle {
    flex: 0 0 auto;
  }
  .language-toggle__button {
    min-height: 30px;
    padding: 0 8px;
  }
  .rating-strip {
    flex-direction: column;
  }
  .hero {
    min-height: 650px;
    padding-top: 48px;
  }
  .hero__actions,
  .button {
    width: 100%;
  }
  .trust-bar,
  .services,
  .steps,
  .faq__grid,
  .package-grid,
  .service-offers,
  .service-copy--columns,
  .gallery__grid {
    grid-template-columns: 1fr;
  }
  .service {
    grid-template-columns: 52px 1fr;
    align-items: start;
  }
  .service__text {
    grid-column: 2;
  }
  .quote-frame {
    min-height: 1300px;
  }
  .footer {
    grid-template-columns: 1fr;
  }
}
