:root {
  color-scheme: dark;
  --bg: #111111;
  --alt: #1a1a1a;
  --edge: #2b2b2b;
  --text: #efefef;
  --muted: #9a9a9a;
  --red: #e3262e;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, ol, dl, dd, fieldset { margin: 0; }
body { font-size: 16px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.wrap { width: 89%; max-width: 1280px; margin-inline: auto; }
header { border-bottom: 1px solid var(--edge); }
.header, nav, .actions { display: flex; align-items: center; }
.header { min-height: 62px; gap: 20px; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; letter-spacing: -.05em; white-space: nowrap; }
.brand::before { content: ""; width: 6px; height: 24px; background: var(--red); }
nav { gap: clamp(12px, 1.5vw, 24px); flex-wrap: wrap; color: var(--muted); font-size: 13px; }
nav a:hover, .country a:hover { color: var(--text); text-decoration: underline; }
.button {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--edge);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 54px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
}
.button:hover { border-color: var(--muted); }
.button.primary { background: var(--red); border-color: var(--red); color: #fff; }
.button.primary:hover { background: #ce1b22; border-color: #ce1b22; }
.hero { background: radial-gradient(ellipse at bottom, #271518, var(--bg) 65%); text-align: center; }
.hero-content { padding-block: clamp(80px, 11vw, 164px); }
.hero-copy { max-width: 850px; margin-inline: auto; }
h1, h2, h3 { font-weight: 550; letter-spacing: -.045em; line-height: 1.1; }
h1 { font-size: clamp(49px, 5.65vw, 82px); margin: 27px 0; }
h2 { font-size: clamp(32px, 3.5vw, 50px); }
h3 { font-size: 23px; }
.intro, .heading > p:last-child { margin-top: 16px; color: var(--muted); font-size: 17px; }
.hero .intro { max-width: 540px; margin-inline: auto; font-size: 19px; }
.actions { justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.alt { background: var(--alt); }
.stats { padding: 44px 0 38px; }
.stats-grid { display: grid; text-align: center; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.stats strong { display: block; font-size: clamp(25px, 3vw, 43px); font-weight: 500; line-height: 1.1; letter-spacing: -.055em; }
.stats-grid p { color: var(--muted); margin-top: 12px; font-size: 12px; }
.fine { color: var(--muted); font-size: 12px; }
.section { padding: clamp(58px, 6.6vw, 96px) 0; }
.heading { margin-bottom: clamp(29px, 3.4vw, 49px); }
.three, .split, .fields { display: grid; align-items: start; gap: 24px; }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.country, .panel { background: var(--alt); border-radius: 18px; overflow: hidden; }
.country-body { display: flex; height: 100%; flex-direction: column; gap: 20px; padding: clamp(24px, 3vw, 38px); }
.country-photo { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.country h3 { font-size: clamp(24px, 2.3vw, 34px); }
.country ul { list-style: none; padding: 0; font-size: 14px; display: grid; gap: 9px; }
.country a { align-self: flex-start; margin-top: auto; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.steps { padding: 0; list-style: none; gap: 30px 40px; }
.steps li { border-top: 1px solid var(--edge); padding-top: 20px; }
.steps p, .features p, .questions p { color: var(--muted); margin-top: 12px; }
.panel { padding: clamp(22px, 2.75vw, 40px); }
fieldset { min-width: 0; padding: 0; border: 0; }
legend, .fields label, .consent { color: var(--muted); font-size: 14px; }
legend { padding: 0 0 7px; }
.segments { display: flex; align-items: stretch; gap: 3px; padding: 3px; border-radius: 4px; background: var(--bg); }
.segments label { position: relative; flex: 1; min-width: 0; cursor: pointer; }
.segments input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segments span { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 5px; border-radius: 4px; border: 1px solid transparent; color: var(--muted); font-size: 13px; }
.segments input:checked + span { background: #222; border-color: #303030; color: var(--text); }
.segments input:checked + span::before { content: ""; width: 5px; height: 5px; background: var(--red); border-radius: 50%; }
.segments input:focus-visible + span { outline: 2px solid var(--red); }
.fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.fields input, .fields select { display: block; margin-top: 7px; width: 100%; min-width: 0; height: 54px; padding: 0 14px; border: 1px solid var(--edge); border-radius: 4px; background: var(--bg); color: var(--text); font-size: 14px; }
.fields input::placeholder { color: #a9a9a9; }
.car-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 175px), 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
}
.car-gallery a { display: block; border-radius: 12px; }
.car-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: inherit;
}
.car-gallery a:hover { box-shadow: 0 0 0 2px var(--muted); }
.review-preview.car-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 2vw, 20px); }
.review-preview img { aspect-ratio: 3 / 4; }
.review-gallery {
  margin-top: 16px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--bg);
}
.review-gallery summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  list-style: none;
  cursor: pointer;
}
.review-gallery summary::-webkit-details-marker { display: none; }
.review-gallery summary:hover { background: var(--alt); border-radius: inherit; }
.review-gallery summary::after { content: "+"; color: var(--red); font-size: 24px; line-height: 1; }
.review-gallery[open] summary::after { content: "−"; }
.review-gallery small { display: inline-block; margin-inline-start: 8px; color: var(--muted); }
.review-photo-groups { display: grid; gap: 24px; padding: 18px; border-top: 1px solid var(--edge); }
.review-photo-group + .review-photo-group { border-top: 1px solid var(--edge); padding-top: 20px; }
.review-photo-group h3 { margin-bottom: 12px; }
.features { gap: 38px 40px; }
.features article { border-top: 1px solid var(--edge); padding-top: 20px; }
.faq { grid-template-columns: 1fr 1.9fr; gap: clamp(30px, 3vw, 48px); }
.faq .plain-link { margin-top: 20px; }
.questions details { border-top: 1px solid var(--edge); padding: 23px 0; }
.questions details:last-child { border-bottom: 1px solid var(--edge); }
.questions summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 20px; letter-spacing: -.025em; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; color: var(--muted); font-size: 24px; line-height: 1; }
.questions details[open] summary::after { content: "−"; color: var(--red); }
.request { grid-template-columns: 1fr 1.46fr; gap: clamp(28px, 7vw, 100px); }
#lead h3 { margin-bottom: 24px; font-size: 26px; }
#lead fieldset { margin-top: 20px; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 22px; }
.consent input { accent-color: var(--red); margin: 2px 0 0; }
.consent a, .link-button { text-decoration: underline; }
#lead > .button { width: 100%; }
#lead .fine, #lead-status { margin-top: 22px; }
.footer-brand { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: clamp(41px, 5.5vw, 80px); font-weight: 700; letter-spacing: -.065em; line-height: 1; padding-bottom: 45px; border-bottom: 1px solid var(--edge); }
.footer-grid { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding: 36px 0; }
.footer-grid address { margin-top: 12px; color: var(--muted); font-style: normal; }
.map-link { display: inline-block; margin-top: 10px; text-decoration: underline; text-underline-offset: 4px; }
.contact-links { display: flex; flex: 0 0 100%; flex-wrap: wrap; gap: 10px; }
.contact-links .button[aria-disabled="true"] { color: var(--muted); background: transparent; border-color: var(--edge); cursor: default; }
.contact-map { display: block; width: 100%; height: clamp(280px, 42vw, 420px); margin-bottom: 24px; border: 1px solid var(--edge); border-radius: 18px; }
.chevron { width: 17px; height: 17px; margin: 10px 8px 0; border-top: 2px solid var(--red); border-left: 2px solid var(--red); transform: rotate(45deg); }
.legal a { text-decoration: underline; }
.legal { align-items: flex-start; border-top: 1px solid var(--edge); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 11px; padding: 24px 0 44px; }
.link-button { background: none; border: 0; color: inherit; padding: 0; }
dialog { width: min(90%, 450px); background: var(--alt); border: 1px solid var(--edge); border-radius: 5px; padding: 26px; }
dialog::backdrop { background: #000b; }
dialog p { margin: 18px 0; color: var(--muted); }
@media (max-width: 1050px) {
  .header { flex-wrap: wrap; gap: 10px 16px; padding: 12px 0; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 48px); }
  .header { min-height: 0; padding: 15px 0; }
  .brand { font-size: 19px; }
  nav { order: 0; font-size: 12px; gap: 8px 15px; }
  .hero-content { padding-block: 65px; }
  h1 { font-size: clamp(32px, 10vw, 52px); margin: 22px 0; }
  h2 { font-size: clamp(28px, 7.6vw, 39px); }
  .hero .intro, .intro, .heading > p:last-child { font-size: 15px; }
  .hero-photo { position: relative; inset: auto; z-index: auto; margin-top: 24px; aspect-ratio: 1.42; border-radius: 3px; background-image: url("images/hero-mobile.webp"), url("images/hero.webp"), linear-gradient(140deg, #11161a 24%, #35414b 76%, #171e25); }
  .hero-photo > span { display: none; }
  .actions { margin-top: 24px; }
  .stats { padding: 35px 0 30px; }
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .stats-grid p { margin-top: 8px; }
  .section { padding: 54px 0; }
  .three, .split, .fields { grid-template-columns: minmax(0, 1fr); }
  .three { gap: 22px; }
  .country-body { padding: 24px; }
  .steps, .features { gap: 0; }
  .steps li { padding: 20px 0; }
  .steps h3, .features h3 { font-size: 20px; }
  .steps p, .features p { font-size: 14px; margin-top: 8px; }
  .calc-inputs .button { width: 100%; }
  .features article { padding: 20px 0; }
  .questions summary { font-size: 17px; }
  .questions details { padding: 20px 0; }
  .footer-brand { padding-bottom: 23px; }
  .footer-grid { gap: 25px; padding: 27px 0; }
  .legal { flex-direction: column; padding-bottom: 24px; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  .segments span { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.car-photo-dialog {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  overflow: hidden;
}
.car-photo-dialog::backdrop { background: rgb(10 10 13 / 95%); }
.car-photo-view {
  --side-gutter: clamp(48px, 8vw, 104px);
  display: grid;
  place-items: center;
  height: 100%;
  padding: 56px var(--side-gutter);
}
.car-photo-frame { position: relative; margin: 0; max-width: 100%; }
.car-photo-frame img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 112px);
  width: auto;
  height: auto;
  object-fit: contain;
}
.car-photo-count {
  position: absolute;
  inset: auto 0 -32px;
  text-align: center;
  color: #c7c7ce;
  font-size: 13px;
}
.car-photo-control {
  position: absolute;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: inherit;
  background: rgb(255 255 255 / 9%);
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.car-photo-control[hidden] { display: none; }
.car-photo-control:hover, .car-photo-control:focus-visible { background: rgb(255 255 255 / 20%); }
.car-photo-prev, .car-photo-next { top: 50%; transform: translateY(-50%); }
.car-photo-prev { left: max(4px, calc((var(--side-gutter) - 42px) / 2)); }
.car-photo-next { right: max(4px, calc((var(--side-gutter) - 42px) / 2)); }
.car-photo-close { top: 8px; right: 12px; font-size: 25px; }


.calc-launcher {
  position: fixed;
  z-index: 3;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #ff565d;
  border-radius: 999px;
  background: #c91e26;
  color: #fff;
  box-shadow: 0 6px 24px #0008;
  font-size: 14px;
  font-weight: 650;
}
.calc-launcher:hover { background: #af1720; }
.calc-launcher span { font-size: 19px; line-height: 1; }
body:has(.calc-widget[open]) { overflow: hidden; }
.calc-widget {
  position: fixed;
  inset: 12px 12px 12px auto;
  width: min(440px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100% - 24px);
  margin: 0;
  padding: 0;
  border-radius: 18px;
  box-shadow: 0 14px 60px #0009;
  color: var(--text);
  overscroll-behavior: contain;
}
.calc-widget-inner { display: grid; gap: 16px; padding: 20px; }
.calc-widget-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.calc-widget-header h2 { font-size: clamp(24px, 5vw, 30px); }
.calc-close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--edge);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}
.calc-close:hover { background: var(--edge); }
.calc-widget .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.calc-widget .fields label { font-size: 13px; }
.calc-widget .fields input, .calc-widget .fields select {
  height: 44px;
  margin-top: 4px;
  padding-inline: 8px;
}
.calc-widget .fields label:last-child { grid-column: 1 / -1; }
.calc-total {
  padding: 12px 16px;
  border: 1px solid var(--edge);
  border-left: 3px solid var(--red);
  border-radius: 10px;
  background: var(--bg);
}
.calc-total output { display: block; font-size: clamp(25px, 6vw, 34px); font-weight: 650; overflow-wrap: anywhere; }
.calc-widget .calc-total p, .calc-widget .calc-details p { margin: 0; }
.calc-widget .calc-total p#estimate-status { margin-top: 6px; }
.calc-details { border: 1px solid var(--edge); border-radius: 10px; padding-inline: 12px; }
.calc-details summary { padding-block: 10px; cursor: pointer; font-size: 14px; }
.calc-details dl { display: grid; gap: 8px; margin-block: 6px 12px; font-size: 13px; }
.calc-details dl div { display: flex; justify-content: space-between; gap: 12px; }
.calc-details dt { color: var(--muted); }
.calc-details dd { white-space: nowrap; }
.calc-widget .calc-details p { margin-bottom: 10px; }
.calc-details a { text-decoration: underline; }
.calc-widget #quote { width: 100%; }
@media (max-width: 540px) {
  .calc-widget { inset: auto 0 0; width: 100%; max-height: calc(100% - 12px); border-radius: 16px 16px 0 0; }
  .calc-widget-inner { padding: 14px 16px max(16px, env(safe-area-inset-bottom)); }
  .calc-widget .fields input, .calc-widget .fields select { font-size: 16px; }
}

.header-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.header-contacts a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 5px 10px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  font-size: 13px;
}
.header-contacts a:hover {
  border-color: var(--red);
  background: var(--alt);
}
@media (max-width: 760px) {
  .header-contacts { flex-basis: 100%; }
}

.calc-country { margin: 0 0 12px; }
.calc-settings { margin-top: 12px; }
.calc-settings .fields { padding-bottom: 12px; }
.calc-widget [hidden] { display: none !important; }
