:root {
  --orange: #d7682d;
  --orange-bright: #ed7b3d;
  --orange-dark: #ad481d;
  --blue: #2d6fca;
  --navy: #122238;
  --graphite: #0d1014;
  --text: #171b20;
  --muted: #66707b;
  --line: #d4d9de;
  --surface: #eef1f3;
  --surface-light: #f7f8f9;
  --white: #fff;
  --container: 1240px;
  --header-height: 84px;
  --shadow: 0 24px 70px rgb(5 9 15 / 12%);
  --shadow-dark: 0 30px 80px rgb(0 0 0 / 28%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--surface);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.modal-open,
body.car-details-open,
body.catalog-filters-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  min-width: 0;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  overflow-wrap: break-word;
  letter-spacing: 0;
}

h1,
h2 {
  margin-bottom: 24px;
  font-family: "Oswald", "Manrope", sans-serif;
  font-weight: 600;
  line-height: 1.08;
}

h1 {
  max-width: 920px;
  font-size: clamp(3rem, 5vw, 5.4rem);
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
}

h3 {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.progress {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: #e5e9ee;
  font-size: 0.71rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--orange);
  content: "";
}

.eyebrow--dark {
  color: var(--navy);
}

.eyebrow--orange {
  color: var(--orange-bright);
}

/* Buttons */

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 23px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.button--primary {
  color: var(--white);
  border-color: #e37a42;
  background: var(--orange);
  box-shadow: 0 14px 30px rgb(173 72 29 / 20%);
}

.button--primary:hover {
  border-color: var(--orange-dark);
  background: var(--orange-dark);
}

.button--dark {
  color: var(--white);
  background: var(--graphite);
}

.button--dark:hover {
  background: var(--navy);
}

.button--outline {
  color: var(--white);
  border-color: rgb(255 255 255 / 28%);
  background: transparent;
}

.button--outline:hover,
.button--ghost:hover {
  border-color: var(--orange);
  background: var(--orange);
}

.button--ghost {
  color: var(--white);
  border-color: rgb(255 255 255 / 30%);
  background: rgb(5 8 12 / 28%);
}

.button--light {
  color: var(--navy);
  background: var(--white);
}

.button--light:hover {
  background: var(--surface);
}

.button--wide {
  width: 100%;
}

.button--header {
  min-height: 44px;
  padding: 10px 18px;
  color: var(--white);
  border-color: rgb(255 255 255 / 8%);
  background: var(--navy);
  font-size: 0.76rem;
}

.button--header:hover {
  background: var(--blue);
}

/* Header */

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgb(10 14 20 / 8%);
  color: var(--text);
  background: rgb(248 249 250 / 95%);
  box-shadow: 0 8px 30px rgb(5 9 15 / 6%);
  backdrop-filter: blur(18px);
}

.header-top {
  color: #b8c1cb;
  background: var(--graphite);
  font-size: 0.7rem;
}

.header-top__inner {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
}

.header-top p {
  margin: 0;
}

.header-top__links {
  display: flex;
  gap: 26px;
  align-items: center;
}

.header-top__links a {
  color: var(--white);
  font-weight: 800;
}

.header-main {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  gap: 25px;
}

.logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
}

.logo__mark {
  position: relative;
  display: grid;
  width: 52px;
  height: 44px;
  place-items: center;
  border: 1px solid rgb(18 34 56 / 20%);
  border-left: 3px solid var(--orange);
  color: var(--navy);
  background:
    linear-gradient(135deg, rgb(215 104 45 / 11%), rgb(45 111 202 / 7%)),
    #f1f3f5;
  font-size: 0.94rem;
  font-weight: 800;
}

.logo__mark::after {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 18px;
  height: 2px;
  background: var(--blue);
  content: "";
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo__text strong {
  color: #101722;
  font-size: 0.95rem;
  font-weight: 800;
}

.logo__text small {
  margin-top: 5px;
  color: #737d88;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.desktop-nav a {
  position: relative;
  padding: 30px 0;
  color: #2c3540;
  font-size: 0.73rem;
  font-weight: 750;
  white-space: nowrap;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 19px;
  left: 0;
  height: 2px;
  background: var(--orange);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px 9px;
  cursor: pointer;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--graphite);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

/* Forms */

label {
  display: block;
}

label > span {
  display: block;
  margin-bottom: 8px;
  color: #47515d;
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd5dc;
  border-radius: 4px;
  outline: none;
  color: var(--text);
  background: var(--white);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

input,
select {
  height: 52px;
  padding: 0 14px;
}

textarea {
  min-height: 110px;
  padding: 13px 14px;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #aeb8c3;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgb(45 111 202 / 13%);
}

small {
  color: var(--muted);
  font-size: 0.68rem;
}

.modal-form small a,
.inline-form small a,
.contact-form small a {
  color: var(--blue);
  font-weight: 700;
}

/* Shared page sections */

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 42px;
}

.section-heading h2 {
  max-width: 800px;
  margin-bottom: 0;
  color: var(--navy);
}

.section-heading > p {
  margin-bottom: 5px;
  color: var(--muted);
}

.section-heading--light h2 {
  color: var(--white);
}

.section-heading--light > p {
  color: #aeb9c4;
}

/* Shared inner hero */

.subhero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: var(--white);
  background: var(--graphite);
  isolation: isolate;
}

.subhero__media,
.subhero__overlay {
  position: absolute;
  inset: 0;
}

.subhero__media {
  z-index: -2;
}

.subhero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.78) contrast(1.08);
}

.subhero__overlay {
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgb(5 8 12 / 97%) 0%,
      rgb(7 12 18 / 82%) 48%,
      rgb(7 12 18 / 25%) 100%
    ),
    linear-gradient(0deg, rgb(5 8 12 / 62%), transparent 65%);
}

.subhero__content {
  display: flex;
  min-height: 560px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: 75px;
}

.subhero h1 {
  max-width: 900px;
  margin-bottom: 22px;
  color: var(--white);
  font-size: clamp(3rem, 5vw, 5rem);
}

.subhero__content > p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 30px;
  color: #c7cfd8;
}

/* Shared lists and split section */

.check-list {
  display: grid;
  gap: 11px;
  margin: 26px 0 30px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 23px;
  color: #46515c;
  font-size: 0.78rem;
}

.check-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 11px;
  height: 2px;
  background: var(--orange);
  content: "";
}

.check-list--light li {
  color: #c4ced8;
}

.split-feature {
  display: grid;
  min-height: 660px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  color: var(--white);
  background: var(--graphite);
}

.split-feature__content {
  display: flex;
  align-items: center;
}

.split-feature__inner {
  width: min(100%, 650px);
  margin-left: auto;
  padding: 75px 8vw 75px 48px;
}

.split-feature h2 {
  color: var(--white);
}

.split-feature__inner > p:not(.eyebrow) {
  color: #aeb8c3;
}

.split-feature .check-list li {
  color: #c0c9d2;
}

.split-feature__image {
  min-height: 520px;
  overflow: hidden;
}

.split-feature__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Shared process */

.process-section {
  padding: 95px 0 105px;
  color: var(--white);
  background: var(--navy);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgb(255 255 255 / 17%);
  border-left: 1px solid rgb(255 255 255 / 17%);
}

.process-grid article {
  min-width: 0;
  min-height: 220px;
  padding: 27px;
  border-right: 1px solid rgb(255 255 255 / 17%);
  border-bottom: 1px solid rgb(255 255 255 / 17%);
}

.process-grid span {
  display: block;
  margin-bottom: 35px;
  color: var(--orange-bright);
  font-size: 0.67rem;
  font-weight: 800;
}

.process-grid h3 {
  margin-bottom: 11px;
  color: var(--white);
}

.process-grid p {
  margin: 0;
  color: #aeb9c4;
  font-size: 0.75rem;
}

/* Shared request form */

.request-section {
  padding: 100px 0;
  background: var(--surface-light);
}

.request-section__layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 75px;
  align-items: start;
}

.request-section h2 {
  color: var(--navy);
}

.request-section__layout > div > p:not(.eyebrow) {
  color: var(--muted);
}

.form-security-note {
  margin-top: 30px;
  padding: 21px;
  border-left: 3px solid var(--blue);
  background: #e8edf2;
}

.form-security-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 0.78rem;
}

.form-security-note p {
  margin: 0;
  color: #5e6974;
  font-size: 0.71rem;
}

.inline-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
  min-width: 0;
  padding: 32px;
  border: 1px solid #d3d9df;
  border-radius: 5px;
  background: var(--white);
  box-shadow: 0 18px 55px rgb(7 12 20 / 8%);
}

.inline-form__wide {
  grid-column: 1 / -1;
}

.consent-field {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  cursor: pointer;
}

.consent-field input {
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  accent-color: var(--orange);
}

.consent-field > span {
  margin: 0;
  color: #58626d;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.55;
  text-transform: none;
}

/* Shared quality section */

.quality-section {
  padding: 95px 0;
  background: var(--white);
}

.quality-section__layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 75px;
}

.quality-section h2 {
  color: var(--navy);
}

.quality-section__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.quality-section__items article {
  padding: 25px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quality-section__items h3 {
  color: var(--navy);
}

.quality-section__items p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

/* CTA */

.cta-strip {
  padding: 70px 0;
  color: var(--white);
  background: var(--orange-dark);
}

.cta-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.cta-strip h2 {
  max-width: 780px;
  margin: 0;
}

/* Footer */

.site-footer {
  color: #c2cad3;
  background: linear-gradient(135deg, #080a0d, #0d141c);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.8fr 1fr;
  gap: 58px;
  padding-top: 72px;
  padding-bottom: 62px;
}

.logo--footer .logo__mark {
  color: #f5f7f9;
  border-color: rgb(255 255 255 / 14%);
  border-left-color: var(--orange);
  background:
    linear-gradient(135deg, rgb(215 104 45 / 14%), rgb(45 111 202 / 12%)),
    #111820;
}

.logo--footer .logo__text strong {
  color: var(--white);
}

.footer-brand > p {
  max-width: 360px;
  margin: 25px 0 0;
  color: #8f99a5;
  font-size: 0.8rem;
}

.footer-column,
.footer-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.footer-column h3,
.footer-contacts h3 {
  margin-bottom: 10px;
  color: var(--white);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.footer-column a,
.footer-contacts > a,
.footer-contacts p {
  color: #98a2ad;
  font-size: 0.75rem;
}

.footer-column a:hover,
.footer-contacts > a:hover {
  color: var(--orange-bright);
}

.footer-contacts .footer-phone {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 800;
}

.footer-contacts p {
  margin: 0 0 10px;
}

.footer-bottom {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgb(255 255 255 / 10%);
  color: #737d88;
  font-size: 0.66rem;
}

.footer-bottom p {
  margin: 0;
}

/* Modal */

.modal {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  visibility: hidden;
  place-items: center;
  padding: 20px;
  opacity: 0;
  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  cursor: default;
  background: rgb(4 7 11 / 86%);
  backdrop-filter: blur(7px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(540px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 41px;
  border: 1px solid rgb(17 29 43 / 10%);
  border-radius: 6px;
  background: #fafbfc;
  box-shadow: var(--shadow-dark);
  transform: translateY(15px);
  transition: transform 180ms ease;
}

.modal.is-open .modal__dialog {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 13px;
  right: 15px;
  width: 38px;
  height: 38px;
  border-radius: 3px;
  cursor: pointer;
  color: var(--text);
  background: var(--surface);
  font-size: 1.5rem;
}

.modal__dialog h2 {
  margin-bottom: 12px;
  font-size: 2.35rem;
}

.modal__dialog > p:not(.eyebrow) {
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 0.84rem;
}

.modal-form {
  display: grid;
  gap: 16px;
}

/* Toast */

.toast {
  position: fixed;
  z-index: 700;
  right: 24px;
  bottom: 24px;
  display: flex;
  visibility: hidden;
  width: min(390px, calc(100% - 48px));
  flex-direction: column;
  padding: 20px 22px;
  border-left: 4px solid var(--orange);
  border-radius: 4px;
  color: var(--white);
  background: var(--navy);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(15px);
  transition: 220ms ease;
}

.toast.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.toast span {
  margin-top: 4px;
  color: #c5d0dc;
  font-size: 0.74rem;
}

/* Accessibility */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgb(45 111 202 / 38%);
  outline-offset: 3px;
}

/* Responsive */

@media (max-width: 1180px) {
  .header-main {
    gap: 17px;
  }

  .desktop-nav {
    gap: 12px;
  }

  .desktop-nav a {
    font-size: 0.66rem;
  }

  .footer-main {
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
  }

  .footer-contacts {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1050px) {
  .request-section__layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 72px;
  }

  html {
    scroll-padding-top: 85px;
  }

  .container {
    width: min(calc(100% - 36px), var(--container));
  }

  .header-top {
    display: none;
  }

  .header-main {
    min-height: var(--header-height);
  }

  .desktop-nav,
  .button--header {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .mobile-menu {
    position: fixed;
    z-index: 99;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    padding: 28px 18px;
    color: var(--white);
    background: linear-gradient(145deg, #090c10, #111d2a);
    opacity: 0;
    transform: translateX(100%);
    transition: 230ms ease;
  }

  .mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
  }

  .mobile-menu nav {
    display: flex;
    flex: 1;
    flex-direction: column;
  }

  .mobile-menu nav a {
    padding: 14px 5px;
    border-bottom: 1px solid rgb(255 255 255 / 11%);
    font-size: 0.94rem;
    font-weight: 700;
  }

  .mobile-menu nav a[aria-current="page"] {
    color: var(--orange-bright);
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .subhero,
  .subhero__content {
    min-height: 510px;
  }

  .split-feature {
    grid-template-columns: 1fr;
  }

  .split-feature__content {
    order: 2;
  }

  .split-feature__image {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .split-feature__inner {
    width: 100%;
    margin: 0;
    padding: 65px 28px;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quality-section__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand,
  .footer-contacts {
    grid-column: 1 / -1;
  }
}

@media (max-width: 580px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.95rem;
  }

  .logo__mark {
    width: 45px;
    height: 41px;
  }

  .subhero,
  .subhero__content {
    min-height: 560px;
  }

  .subhero__content {
    justify-content: flex-end;
    padding-block: 55px;
  }

  .subhero h1 {
    font-size: 2.55rem;
  }

  .hero__actions,
  .hero__actions .button {
    width: 100%;
  }

  .process-section,
  .request-section,
  .quality-section {
    padding: 62px 0 70px;
  }

  .process-grid,
  .quality-section__items,
  .inline-form {
    grid-template-columns: 1fr;
  }

  .process-grid article {
    min-height: 0;
  }

  .inline-form {
    padding: 22px 17px;
  }

  .inline-form__wide {
    grid-column: auto;
  }

  .split-feature__inner {
    padding: 55px 20px;
  }

  .cta-strip__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
  }

  .cta-strip .button {
    width: 100%;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-brand,
  .footer-contacts {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .modal__dialog {
    padding: 26px 20px;
  }

  .modal__dialog h2 {
    font-size: 1.9rem;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}