/* Afordablecarrental.com
   Desktop layout is drawn on a 1440px frame: --u is 1px at 1440 and shrinks with the
   viewport down to 1024px. Below 1024px the tablet/phone layout at the end takes over.
   Colour budget: white leads, black carries text and the primary buttons, olive is the
   single accent and stays near a tenth of any screen. */

@font-face {
  font-family: 'Archivo Expanded';
  src: url(../fonts/archivo-expanded-latin.woff2) format('woff2');
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: 'Urbanist';
  src: url(../fonts/urbanist-latin.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --u: 1px;
  --white: #fff;
  --mist: #f3f6f1;
  --mist-deep: #e8ede5;
  --olive: #8fa58c;
  --olive-deep: #778f73;
  --olive-soft: #dfe7dc;
  --olive-faint: #a7b9a4;
  --olive-ink: #4c6648;
  --on-olive: #24301f;
  --ink: #111311;
  --ink-soft: #2b302b;
  --text: #474b47;
  --muted: #5c615c;
  --line: #e3e8e0;
  --line-strong: #cfd7cc;
  --field-line: #8c9689;
  --on-dark-muted: #b9c0b8;
  --on-dark-line: #343a34;
  --error: #b3261e;
  --display: 'Archivo Expanded', 'Archivo', 'Arial Black', sans-serif;
  --body: 'Urbanist', 'Helvetica Neue', Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 calc(24 * var(--u)) calc(60 * var(--u)) rgba(28, 40, 26, 0.1), 0 calc(4 * var(--u)) calc(12 * var(--u)) rgba(28, 40, 26, 0.05);
  color-scheme: light;
}
@media (min-width: 1024px) and (max-width: 1439.98px) {
  :root { --u: calc(100vw / 1440); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: #bcc7b9 var(--white); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
p, h1, h2, h3, h4, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
input, textarea { caret-color: var(--olive-ink); }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--olive-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--olive); }

[hidden] { display: none !important; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 999px;
  font-weight: 600; text-decoration: none; transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

.wrap { width: calc(1232 * var(--u)); margin-inline: auto; }

/* The brand mark: a steering wheel, drawn once in the footer and reused. */
.mark { fill: currentColor; color: var(--olive); overflow: visible; }

/* ---------- Type ---------- */
.h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: calc(46 * var(--u));
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: calc(48 * var(--u)); min-height: 44px;
  padding: 0 calc(26 * var(--u));
  border-radius: 999px;
  font-family: var(--body); font-weight: 600;
  font-size: max(14px, calc(15 * var(--u)));
  line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--ink-soft); }
.btn--line { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn--sm { height: calc(50 * var(--u)); padding: 0; width: calc(139 * var(--u)); font-size: max(13px, calc(14 * var(--u))); }
.btn[aria-disabled='true'], .btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 30; background: var(--white); }
.site-header__inner { position: relative; display: flex; align-items: center; height: calc(100 * var(--u)); }
.logo { display: flex; align-items: center; gap: calc(12 * var(--u)); color: var(--ink); text-decoration: none; border-radius: 8px; }
.logo__img { display: block; height: max(40px, calc(48 * var(--u))); width: auto; }
.logo__mark { flex: none; width: calc(38 * var(--u)); height: calc(38 * var(--u)); min-width: 30px; min-height: 30px; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--display); font-weight: 800; font-size: max(19px, calc(24 * var(--u))); letter-spacing: -0.02em; }
.logo__domain { margin-top: calc(6 * var(--u)); font-weight: 700; font-size: max(9px, calc(10 * var(--u))); letter-spacing: 0.33em; text-transform: uppercase; color: var(--olive-ink); }
.site-nav { position: absolute; left: calc(492.5 * var(--u)); top: calc(50% + 2 * var(--u)); transform: translateY(-50%); }
.site-nav ul { display: flex; gap: calc(50 * var(--u)); }
.site-nav a {
  position: relative; display: block; padding: 6px 0;
  font-size: max(13px, calc(14.5 * var(--u))); font-weight: 600; line-height: 1.2;
  color: var(--ink); text-decoration: none;
}
.site-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--olive); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease-out);
}
.site-nav a:hover::after, .site-nav a[aria-current='page']::after { transform: scaleX(1); }
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: calc(14 * var(--u)); }
.round-btn {
  display: grid; place-items: center;
  width: calc(46 * var(--u)); height: calc(46 * var(--u)); min-width: 44px; min-height: 44px;
  border-radius: 50%; background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink);
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.round-btn:hover { background: var(--ink); color: var(--white); }
.round-btn:active { transform: scale(0.94); }
.round-btn svg { width: calc(20 * var(--u)); min-width: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.btn--header { width: calc(136 * var(--u)); height: calc(46 * var(--u)); padding: 0; }
.menu-btn, .mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 3;
  height: calc(892 * var(--u));
  background: var(--white);
  isolation: isolate;
}
.hero__title {
  position: relative;
  padding-top: calc(29 * var(--u));
  text-align: center;
  font-family: var(--display); font-weight: 700;
  font-size: calc(66 * var(--u)); line-height: calc(80 * var(--u));
  letter-spacing: -0.03em;
  color: var(--ink);
}

.search { position: absolute; z-index: 3; left: calc(50% - 389 * var(--u)); top: calc(236.5 * var(--u)); width: calc(778 * var(--u)); }
/* One silhouette for tab and card, so the white search block reads on a white page. */
.search__box { filter: drop-shadow(0 calc(26 * var(--u)) calc(28 * var(--u)) rgba(28, 40, 26, 0.13)) drop-shadow(0 calc(2 * var(--u)) calc(3 * var(--u)) rgba(28, 40, 26, 0.07)); }
.search__tabs {
  display: flex; align-items: center; margin: 0; padding: 0; border: 0; min-inline-size: 0;
  width: calc(209 * var(--u)); height: calc(55 * var(--u));
  background: var(--white);
  border-radius: calc(18 * var(--u)) calc(18 * var(--u)) 0 0;
}
.search__tab { position: relative; flex: 1; height: 100%; display: grid; place-items: center; cursor: pointer; }
.search__tab input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.search__tab span {
  position: relative;
  font-size: max(15px, calc(18 * var(--u))); font-weight: 600; color: var(--muted);
  transition: color 0.2s var(--ease-out);
}
.search__tab span::after {
  content: ''; position: absolute; left: 50%; bottom: calc(-8 * var(--u)); width: calc(18 * var(--u)); height: 2px;
  margin-left: calc(-9 * var(--u)); background: var(--olive); border-radius: 2px;
  transform: scaleX(0); transition: transform 0.25s var(--ease-out);
}
.search__tab input:checked + span { color: var(--ink); }
.search__tab input:checked + span::after { transform: scaleX(1); }
.search__tab input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 3px; }
.search__tab:first-of-type span { left: calc(-2 * var(--u)); }
.search__tabsep { width: 1px; height: calc(30 * var(--u)); background: var(--line); }
.search__card {
  display: flex; align-items: center;
  height: calc(107.5 * var(--u));
  padding: 0 calc(22 * var(--u)) 0 calc(28 * var(--u));
  background: var(--white);
  border-radius: 0 calc(20 * var(--u)) calc(20 * var(--u)) calc(20 * var(--u));
}
.field { position: relative; display: flex; flex-direction: column; justify-content: center; height: calc(70 * var(--u)); }
.field--loc { width: calc(208 * var(--u)); }
.field--date:nth-of-type(2) { width: calc(190 * var(--u)); margin-left: calc(40 * var(--u)); }
.field--date:nth-of-type(3) { flex: 1; margin-left: calc(56 * var(--u)); }
.field label {
  font-size: max(12px, calc(14 * var(--u))); font-weight: 600; line-height: 1.2; color: var(--muted);
  margin-bottom: calc(12 * var(--u));
}
.field input, .field__view {
  width: 100%; padding: 0; border: 0; background: transparent; outline: none;
  font-size: max(14px, calc(19 * var(--u))); font-weight: 500; line-height: 1.25; color: var(--ink);
}
.field input::placeholder { color: var(--muted); opacity: 1; }
.field__view { color: var(--muted); white-space: nowrap; pointer-events: none; }
.field__view.is-set { color: var(--ink); }
.field--date input { position: absolute; inset: 0; z-index: 1; opacity: 0; cursor: pointer; }
.field--date input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: auto; height: auto; opacity: 0; cursor: pointer; }
.field:focus-within::after {
  content: ''; position: absolute; left: calc(-10 * var(--u)); right: calc(-10 * var(--u)); top: calc(-6 * var(--u)); bottom: calc(-6 * var(--u));
  border-radius: 10px; outline: 2px solid var(--ink); pointer-events: none;
}
.field--loc:focus-within::after { outline-color: transparent; }
.field--loc input:focus-visible { box-shadow: 0 2px 0 var(--olive); }
.search__sep { width: 1px; height: calc(53 * var(--u)); background: var(--line); flex: none; }
.search__go {
  flex: none; display: grid; place-items: center;
  width: calc(62 * var(--u)); height: calc(62 * var(--u)); min-width: 44px; min-height: 44px;
  border-radius: 50%; background: var(--ink); color: var(--white);
  transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.search__go:hover { background: var(--ink-soft); }
.search__go:active { transform: scale(0.95); }
.search__go svg { width: calc(22 * var(--u)); min-width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease-out); }
.search__go:hover svg { transform: translateX(2px); }
.search__hint { position: absolute; left: 0; top: 100%; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--error); }
.search__hint:empty { display: none; }

.hero__mark { position: absolute; z-index: 1; left: calc(50% - 512 * var(--u)); top: calc(404 * var(--u)); width: calc(60 * var(--u)); height: calc(60 * var(--u)); }
.hero__band {
  position: absolute; left: -1px; right: -1px; bottom: 0; height: calc(241 * var(--u));
  background: var(--olive-soft);
  clip-path: polygon(0 0, 100% 43.6%, 100% 100%, 0 100%);
}
.hero__car {
  position: absolute; z-index: 2;
  left: calc(50% - 480 * var(--u)); width: calc(960 * var(--u));
  bottom: calc(76 * var(--u));
}
.hero__car::before {
  content: ''; position: absolute; z-index: -1; left: 5%; right: 6%; bottom: calc(-8 * var(--u)); height: calc(40 * var(--u));
  background: radial-gradient(closest-side, rgba(22, 32, 20, 0.5), rgba(22, 32, 20, 0.2) 55%, transparent);
  filter: blur(calc(6 * var(--u)));
}
.hero__car img { width: 100%; }

.scroll-pill {
  position: absolute; z-index: 6; left: calc(50% - 38.5 * var(--u)); top: calc(839.5 * var(--u));
  display: grid; place-items: center;
  width: calc(77 * var(--u)); height: calc(105 * var(--u));
  border: calc(14.5 * var(--u)) solid var(--white); border-radius: 999px;
  background: var(--ink); color: var(--white);
  transition: transform 0.3s var(--ease-out);
}
.scroll-pill svg { width: calc(17 * var(--u)); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.scroll-pill:hover svg { animation: nudge 1s var(--ease-out) infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* ---------- About ---------- */
.about { position: relative; height: calc(1000 * var(--u)); background: var(--white); }
.about__copy { position: absolute; left: calc(50% - 511 * var(--u)); top: calc(209 * var(--u)); width: calc(470 * var(--u)); }
.about__copy p {
  margin-top: calc(20 * var(--u));
  font-size: max(14px, calc(16 * var(--u))); line-height: 1.75; color: var(--text);
  max-width: 62ch;
}
.about__copy .btn { margin-top: calc(34 * var(--u)); }
.about__photo { position: absolute; left: calc(50% + 150 * var(--u)); right: 0; top: calc(179 * var(--u)); height: calc(700 * var(--u)); overflow: hidden; border-radius: calc(24 * var(--u)) 0 0 calc(24 * var(--u)); background: var(--mist-deep); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.about__mark { position: absolute; z-index: 2; left: calc(50% + 122 * var(--u)); top: calc(352 * var(--u)); width: calc(56 * var(--u)); height: calc(56 * var(--u)); }
.about__tile { position: absolute; left: 0; width: calc(50% - 421 * var(--u)); top: calc(658 * var(--u)); height: calc(240 * var(--u)); overflow: hidden; border-radius: 0 calc(18 * var(--u)) calc(18 * var(--u)) 0; background: var(--mist-deep); }
.about__tile img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }

/* ---------- Pick your car ---------- */
.pick { position: relative; z-index: 2; height: calc(832 * var(--u)); background: var(--mist); isolation: isolate; }
.pick__title { padding-top: calc(98 * var(--u)); text-align: center; }
.pick__stage { position: absolute; left: 0; right: 0; top: calc(288 * var(--u)); height: calc(330 * var(--u)); overflow: hidden; }
.pick__track { position: absolute; inset: 0; }
.car-slide {
  position: absolute; left: calc(50% - 428 * var(--u)); top: 0;
  width: calc(856 * var(--u)); height: calc(284 * var(--u));
  display: flex; align-items: flex-end; justify-content: center;
  transform: translateX(calc(var(--pos, 0) * 809 * var(--u))) scale(var(--scale, 1));
  transform-origin: 50% 54%;
  opacity: var(--alpha, 1);
  transition: transform 0.7s var(--ease-out), opacity 0.5s var(--ease-out);
  will-change: transform;
}
.car-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 calc(18 * var(--u)) calc(14 * var(--u)) rgba(20, 30, 18, 0.26)); }
.car-slide[data-pos='0'] { --pos: 0; --scale: 1; }
.car-slide[data-pos='-1'] { --pos: -1; --scale: 0.715; }
.car-slide[data-pos='1'] { --pos: 1; --scale: 0.715; }
.car-slide[data-pos='-2'] { --pos: -2; --scale: 0.6; --alpha: 0; }
.car-slide[data-pos='2'] { --pos: 2; --scale: 0.6; --alpha: 0; }
.car-slide[data-pos='hidden'] { --alpha: 0; visibility: hidden; transition: none; }
.car-slide:not([data-pos]):not(:first-child) { visibility: hidden; }
.pick__side { position: absolute; top: 15%; bottom: 15%; width: calc(230 * var(--u)); z-index: 2; border-radius: 12px; }
.pick__side--prev { left: 0; cursor: w-resize; }
.pick__side--next { right: 0; cursor: e-resize; }
.pick__side { display: flex; align-items: center; }
.pick__side--prev { justify-content: flex-start; padding-left: calc(24 * var(--u)); }
.pick__side--next { justify-content: flex-end; padding-right: calc(24 * var(--u)); }
.pick__chev {
  display: grid; place-items: center;
  width: calc(60 * var(--u)); height: calc(60 * var(--u)); min-width: 44px; min-height: 44px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.4); color: var(--white);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color 0.2s var(--ease-out), transform 0.3s var(--ease-out);
}
.pick__chev svg { width: calc(26 * var(--u)); min-width: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)); }
.pick__side:hover .pick__chev { background: rgba(255, 255, 255, 0.6); }
.pick__side--prev:hover .pick__chev { transform: translateX(-3px); }
.pick__side--next:hover .pick__chev { transform: translateX(3px); }
.pick__side:focus-visible { outline: none; }
.pick__side:focus-visible .pick__chev { outline: 2px solid var(--white); outline-offset: 3px; }
.pick__specs { position: absolute; left: 50%; top: calc(627.5 * var(--u)); transform: translateX(-50%); display: flex; }
.spec { width: calc(152 * var(--u)); display: flex; flex-direction: column; align-items: center; }
.spec__icon { display: grid; place-items: center; width: calc(67 * var(--u)); height: calc(67 * var(--u)); border-radius: 50%; background: var(--white); }
.spec__icon .i { width: calc(26 * var(--u)); fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.spec__text { margin-top: calc(10 * var(--u)); white-space: nowrap; line-height: 1.2; }
.spec__text b { font-family: var(--display); font-weight: 700; font-size: max(13px, calc(16 * var(--u))); color: var(--ink); }
.spec__text small { font-size: max(12px, calc(13 * var(--u))); font-weight: 600; color: var(--muted); }
.pick__card {
  position: absolute; left: calc(50% - 352 * var(--u)); top: calc(774 * var(--u));
  width: calc(705 * var(--u)); height: calc(108 * var(--u));
  display: flex; align-items: center;
  padding: 0 calc(30 * var(--u)) 0 calc(34 * var(--u));
  border-radius: calc(20 * var(--u));
  background: var(--white); box-shadow: var(--shadow-card);
}
.pick__tag { width: calc(26 * var(--u)); fill: none; stroke: var(--olive-ink); stroke-width: 1.5; stroke-linejoin: round; }
.pick__divider { width: 1px; height: calc(46 * var(--u)); margin: 0 calc(28 * var(--u)) 0 calc(31 * var(--u)); background: var(--line); }
.pick__price { flex: 1; min-width: 0; }
.pick__name { font-size: max(11px, calc(12 * var(--u))); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); line-height: 1.2; margin-bottom: calc(5 * var(--u)); }
.price { display: flex; align-items: baseline; gap: calc(4 * var(--u)); line-height: 1; white-space: nowrap; }
.price__from { font-size: max(12px, calc(13 * var(--u))); color: var(--muted); margin-right: calc(2 * var(--u)); align-self: center; }
.price__cur { align-self: flex-start; font-family: var(--display); font-weight: 700; font-size: calc(15 * var(--u)); color: var(--olive-ink); }
.price__num { font-family: var(--display); font-weight: 800; font-size: calc(38 * var(--u)); color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price__num--quote { font-weight: 700; font-size: calc(24 * var(--u)); }
.price__unit { font-size: max(12px, calc(13 * var(--u))); color: var(--muted); }
.pick__actions { display: flex; gap: calc(8 * var(--u)); }

/* ---------- Guides teaser ---------- */
.stories { position: relative; padding: calc(183 * var(--u)) 0 calc(55 * var(--u)); background: var(--white); text-align: center; }
.stories__grid { display: flex; justify-content: center; gap: calc(22 * var(--u)); margin-top: calc(84 * var(--u)); text-align: left; }
.story { position: relative; width: calc(330 * var(--u)); }
.story__date { display: flex; align-items: center; gap: calc(10 * var(--u)); padding-bottom: calc(14 * var(--u)); border-bottom: 2px solid var(--ink); }
.story__date b { font-weight: 600; font-size: calc(38 * var(--u)); line-height: 1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; padding-right: calc(10 * var(--u)); border-right: 1px solid var(--line-strong); }
.story__date span { font-size: max(11px, calc(12 * var(--u))); line-height: 1.35; color: var(--muted); }
.story__title {
  margin-top: calc(34 * var(--u));
  font-family: var(--display); font-weight: 600; font-size: calc(21 * var(--u)); line-height: calc(30 * var(--u));
  letter-spacing: -0.02em; color: var(--ink);
  min-height: calc(60 * var(--u));
}
.story__title a { text-decoration: none; }
.story__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.story__text { margin-top: calc(10 * var(--u)); max-width: 30ch; min-height: 2.9em; font-size: max(13px, calc(15 * var(--u))); line-height: 1.45; color: var(--text); }
.story img { margin-top: calc(24 * var(--u)); width: 100%; aspect-ratio: 330 / 240; object-fit: cover; border-radius: calc(16 * var(--u)); transition: transform 0.6s var(--ease-out), filter 0.6s var(--ease-out); }
.story:hover img { transform: translateY(-4px); filter: saturate(1.08); }
.story:hover .story__title a { text-decoration: underline; text-decoration-color: var(--olive); text-decoration-thickness: 2px; }
.story:focus-within { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 4px; }
.story__title a:focus-visible { outline: none; }
.stories__more { margin-top: calc(58 * var(--u)); }

/* ---------- Classes ---------- */
.classes { height: calc(340 * var(--u)); padding-top: calc(76 * var(--u)); background: var(--white); }
.classes__list { width: calc(1000 * var(--u)); margin: 0 auto; display: flex; justify-content: space-between; }
.classes__list a {
  display: flex; flex-direction: column; align-items: center; gap: calc(10 * var(--u));
  padding: calc(8 * var(--u)) calc(6 * var(--u));
  color: var(--muted); text-decoration: none;
  transition: color 0.25s var(--ease-out);
}
.classes__list svg { width: calc(74 * var(--u)); height: calc(37 * var(--u)); transform: scaleX(-1); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; transition: transform 0.35s var(--ease-out), stroke 0.25s var(--ease-out); }
.classes__list span { font-family: var(--display); font-weight: 700; font-size: max(11px, calc(13 * var(--u))); letter-spacing: 0.01em; }
.classes__list a:hover { color: var(--ink); }
.classes__list a:hover svg { transform: scaleX(-1) translateX(-4px); stroke: var(--olive-ink); }

/* ---------- Request card ---------- */
.app {
  padding-top: calc(111 * var(--u));
  background: linear-gradient(to bottom, var(--white) 0, var(--white) calc(100% - 173 * var(--u)), var(--mist) calc(100% - 173 * var(--u)));
}
.app__card {
  position: relative; height: calc(369 * var(--u));
  background: var(--olive); border-radius: calc(22 * var(--u));
}
.app__copy { position: absolute; left: calc(106 * var(--u)); top: calc(58 * var(--u)); width: calc(500 * var(--u)); }
.app__lede { margin-top: calc(14 * var(--u)); max-width: 40ch; font-size: max(14px, calc(16 * var(--u))); font-weight: 500; line-height: 1.55; color: var(--on-olive); }
.app__btns { display: flex; gap: calc(10 * var(--u)); margin-top: calc(26 * var(--u)); }
.store-btn {
  display: inline-flex; align-items: center; gap: calc(10 * var(--u));
  height: calc(54 * var(--u)); min-height: 48px; padding: 0 calc(24 * var(--u)) 0 calc(18 * var(--u));
  border-radius: 999px; background: var(--ink); color: var(--white); text-decoration: none;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.store-btn:hover { background: var(--ink-soft); }
.store-btn:active { transform: scale(0.97); }
.store-btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.store-btn--line:hover { background: var(--ink); color: var(--white); }
.store-btn svg { width: calc(22 * var(--u)); min-width: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.1; white-space: nowrap; font-weight: 700; font-size: max(14px, calc(16 * var(--u))); }
.store-btn small { font-size: max(10px, calc(10.5 * var(--u))); font-weight: 600; opacity: 0.8; letter-spacing: 0.01em; }
.app__mark-faint { position: absolute; left: calc(18 * var(--u)); top: calc(18 * var(--u)); width: calc(72 * var(--u)); height: calc(72 * var(--u)); color: var(--olive-faint); }
.app__mark-dark { position: absolute; z-index: 3; left: calc(1009 * var(--u)); top: calc(70 * var(--u)); width: calc(61 * var(--u)); height: calc(61 * var(--u)); color: var(--ink); }

.phone { position: absolute; left: calc(664 * var(--u)); bottom: 0; width: calc(384 * var(--u)); height: calc(514 * var(--u)); overflow: hidden; }
.phone__frame { height: calc(560 * var(--u)); padding: calc(10 * var(--u)); border-radius: calc(54 * var(--u)) calc(54 * var(--u)) 0 0; background: #111311; box-shadow: inset 0 0 0 calc(2 * var(--u)) #3a403a; }
.phone__screen { height: 100%; padding: calc(16 * var(--u)) calc(22 * var(--u)) 0; border-radius: calc(44 * var(--u)) calc(44 * var(--u)) 0 0; background: var(--white); font-family: var(--body); color: var(--ink); }
.phone__status { display: flex; align-items: center; justify-content: space-between; height: calc(30 * var(--u)); padding: 0 calc(10 * var(--u)); font-size: calc(13 * var(--u)); font-weight: 600; }
.phone__island { width: calc(96 * var(--u)); height: calc(28 * var(--u)); border-radius: 99px; background: #111311; }
.phone__sys { display: flex; gap: calc(3 * var(--u)); align-items: flex-end; }
.phone__sys b { width: calc(4 * var(--u)); background: var(--ink); border-radius: 1px; }
.phone__sys b:nth-child(1) { height: calc(6 * var(--u)); }
.phone__sys b:nth-child(2) { height: calc(9 * var(--u)); }
.phone__sys b:nth-child(3) { height: calc(12 * var(--u)); }
.phone__tabs { display: flex; justify-content: center; gap: calc(30 * var(--u)); margin-top: calc(20 * var(--u)); font-size: calc(13 * var(--u)); font-weight: 600; }
.phone__tabs span { position: relative; display: flex; align-items: center; gap: calc(7 * var(--u)); }
.phone__tabs svg { width: calc(18 * var(--u)); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.phone__dot { position: absolute; left: calc(11 * var(--u)); top: calc(-1 * var(--u)); width: calc(6 * var(--u)); height: calc(6 * var(--u)); border-radius: 50%; background: #d9483b; }
.phone__car { margin-top: calc(18 * var(--u)); padding: calc(14 * var(--u)) calc(16 * var(--u)); border-radius: calc(18 * var(--u)); background: var(--mist); }
.phone__label { font-size: calc(9 * var(--u)); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.phone__car img { width: 94%; margin: calc(12 * var(--u)) auto calc(4 * var(--u)); }
.phone__model { margin-top: calc(8 * var(--u)); font-family: var(--display); font-weight: 700; font-size: calc(16 * var(--u)); letter-spacing: -0.01em; }
.phone__meta { display: flex; justify-content: space-between; margin-top: calc(6 * var(--u)); font-size: calc(11 * var(--u)); color: var(--muted); }
.phone__meta span:last-child { font-weight: 700; color: var(--olive-ink); }
.phone__row { display: grid; grid-template-columns: 1fr 1fr; gap: calc(12 * var(--u)); margin-top: calc(12 * var(--u)); }
.phone__help { display: flex; flex-direction: column; align-items: center; padding: calc(14 * var(--u)) calc(8 * var(--u)); border-radius: calc(18 * var(--u)); background: var(--mist); text-align: center; }
.phone__avatar { display: grid; place-items: center; width: calc(52 * var(--u)); height: calc(52 * var(--u)); border-radius: 50%; background: var(--white); border: calc(2 * var(--u)) solid var(--olive); }
.phone__avatar svg { width: calc(26 * var(--u)); fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.phone__help p { margin-top: calc(8 * var(--u)); font-family: var(--display); font-weight: 700; font-size: calc(11 * var(--u)); }
.phone__help small { font-size: calc(10 * var(--u)); color: var(--muted); }
.phone__map { border-radius: calc(18 * var(--u)); background: #e9eee7; overflow: hidden; }
.phone__map svg { width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 7; }
.phone__map .phone__route { stroke: var(--olive-ink); stroke-width: 3; stroke-dasharray: 5 5; stroke-linecap: round; }
.phone__map .phone__pin { fill: var(--olive); stroke: var(--ink); stroke-width: 2; }
.phone__map .phone__start { fill: var(--ink); stroke: none; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--mist); color: var(--ink); padding: calc(124.5 * var(--u)) 0 calc(44 * var(--u)); }
.news { position: relative; display: flex; justify-content: space-between; align-items: flex-start; }
.news__title { position: relative; max-width: calc(500 * var(--u)); font-family: var(--display); font-weight: 700; font-size: calc(44 * var(--u)); line-height: calc(54 * var(--u)); letter-spacing: -0.025em; color: var(--ink); }
.news__title span { position: relative; }
.news__mark { position: absolute; left: calc(-26 * var(--u)); top: calc(-18 * var(--u)); width: calc(72 * var(--u)); height: calc(72 * var(--u)); color: var(--olive-faint); }
.news__form { position: relative; display: grid; grid-template-columns: calc(479 * var(--u)) calc(56 * var(--u)); column-gap: calc(16 * var(--u)); align-items: end; margin-top: calc(70 * var(--u)); margin-right: calc(84 * var(--u)); }
.news__form input {
  height: calc(56 * var(--u)); padding: 0 0 calc(4 * var(--u)); border: 0; border-bottom: 1.5px solid var(--field-line); border-radius: 0;
  background: transparent; color: var(--ink); font-size: max(15px, calc(16 * var(--u))); outline: none;
  transition: border-color 0.2s var(--ease-out);
}
.news__form input::placeholder { color: var(--muted); }
.news__form input:focus { border-bottom-color: var(--ink); }
.news__send { display: grid; place-items: center; width: calc(56 * var(--u)); height: calc(56 * var(--u)); min-width: 44px; min-height: 44px; border-radius: 50%; background: var(--ink); color: var(--white); transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out); }
.news__send:hover { background: var(--ink-soft); }
.news__send:active { transform: scale(0.94); }
.news__send svg { width: calc(20 * var(--u)); min-width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.news__note { grid-column: 1 / -1; margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.news__note a { color: var(--ink); text-decoration-color: var(--olive); text-decoration-thickness: 2px; }
.form-status { grid-column: 1 / -1; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--olive-ink); }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }

.f-cols { display: grid; grid-template-columns: calc(228 * var(--u)) calc(280 * var(--u)) calc(262 * var(--u)) calc(245 * var(--u)) 1fr; margin-top: calc(104 * var(--u)); }
.f-col__title { font-family: var(--display); font-weight: 700; font-size: max(15px, calc(17 * var(--u))); line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.f-col ul { margin-top: calc(24 * var(--u)); display: grid; gap: calc(10 * var(--u)); }
.f-col a { font-size: max(14px, calc(15 * var(--u))); line-height: 1.7; color: var(--muted); text-decoration: none; transition: color 0.2s var(--ease-out); }
.f-col a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--olive); text-decoration-thickness: 2px; }
.social { display: flex !important; gap: calc(9 * var(--u)) !important; margin-top: calc(24 * var(--u)) !important; }
.social a { display: grid; place-items: center; width: calc(44 * var(--u)); height: calc(44 * var(--u)); min-width: 44px; min-height: 44px; border-radius: 50%; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); line-height: 1; text-decoration: none; transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out); }
.social a:hover { background: var(--ink); color: var(--white); text-decoration: none; }
.social svg { width: calc(18 * var(--u)); min-width: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.f-disclosure { margin-top: calc(64 * var(--u)); max-width: 120ch; font-size: max(12.5px, calc(13 * var(--u))); line-height: 1.6; color: var(--muted); }
.f-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: calc(26 * var(--u)); padding-top: calc(32 * var(--u)); border-top: 1px solid var(--line-strong); font-size: max(13px, calc(13.5 * var(--u))); color: var(--ink); }
.f-bottom__links { display: flex; gap: calc(12 * var(--u)); color: var(--muted); }
.f-bottom a { color: var(--ink); text-decoration: none; }
.f-bottom a:hover { text-decoration: underline; text-decoration-color: var(--olive); text-decoration-thickness: 2px; }

/* ---------- Call bar (phones only, see the 640px block) ---------- */
.callbar { display: none; }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; background: var(--mist); padding: calc(70 * var(--u)) 0 calc(96 * var(--u)); isolation: isolate; overflow: hidden; }
.page-hero .mark { position: absolute; right: calc(160 * var(--u)); bottom: calc(60 * var(--u)); width: calc(66 * var(--u)); height: calc(66 * var(--u)); }
.crumbs { display: flex; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.crumbs a { color: var(--ink); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-decoration-color: var(--olive); text-decoration-thickness: 2px; }
.page-title { margin-top: calc(22 * var(--u)); max-width: 18ch; font-family: var(--display); font-weight: 700; font-size: calc(56 * var(--u)); line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.page-lede { margin-top: calc(22 * var(--u)); max-width: 60ch; font-size: max(16px, calc(18 * var(--u))); line-height: 1.65; color: var(--text); }
.page-lede a { color: var(--ink); text-decoration-color: var(--olive); text-decoration-thickness: 2px; }
.page-body { padding: calc(96 * var(--u)) 0 calc(120 * var(--u)); }
.page-body--tight { padding-top: calc(64 * var(--u)); }

.prose { max-width: 72ch; font-size: 17px; line-height: 1.75; color: var(--text); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-family: var(--display); font-weight: 700; font-size: clamp(22px, calc(27 * var(--u)), 27px); line-height: 1.25; letter-spacing: -0.02em; color: var(--ink); scroll-margin-top: 24px; text-wrap: balance; }
.prose h3 { margin-top: 1.7em; font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; color: var(--ink); }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--olive-deep); }
.prose a { color: var(--ink); text-decoration-color: var(--olive); text-decoration-thickness: 2px; }
.prose strong { color: var(--ink); }
.prose .note { padding: 18px 22px; border-radius: 16px; background: var(--mist); color: var(--ink); font-size: 16px; }
.prose-split { display: grid; grid-template-columns: minmax(0, 1fr) calc(340 * var(--u)); gap: calc(96 * var(--u)); align-items: start; }
.aside-card { position: sticky; top: 24px; padding: 28px; border-radius: 18px; background: var(--mist); }
.aside-card h2 { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
.aside-card p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--text); }
.aside-card .btn { margin-top: 20px; width: 100%; }
.aside-card .btn + .btn { margin-top: 10px; }
.aside-card .info-list { margin-top: 18px; }
.aside-card__part { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.aside-steps { display: grid; gap: 14px; margin-top: 16px; counter-reset: step; }
.aside-steps li { position: relative; padding-left: 38px; font-size: 15px; line-height: 1.55; color: var(--text); counter-increment: step; }
.aside-steps li::before { content: counter(step); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--olive); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 12px; }
.toc { display: grid; gap: 6px; margin-top: 14px; font-size: 15px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { text-decoration: underline; text-decoration-color: var(--olive); text-decoration-thickness: 2px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(24 * var(--u)); counter-reset: step; }
.step { padding: calc(32 * var(--u)) calc(28 * var(--u)) calc(32 * var(--u)) 0; border-top: 2px solid var(--ink); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--olive); font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--ink); }
.step h2 { margin-top: 20px; font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
.step p { margin-top: 10px; font-size: 16px; line-height: 1.65; color: var(--text); }

.vgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: calc(28 * var(--u)); }
.vcard { display: flex; flex-direction: column; border-radius: 20px; background: var(--white); box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(28, 40, 26, 0.3); overflow: hidden; scroll-margin-top: 24px; }
.vcard:target { box-shadow: 0 0 0 3px var(--olive), 0 18px 40px -24px rgba(28, 40, 26, 0.3); }
.vcard__media { display: grid; place-items: end center; height: calc(250 * var(--u)); min-height: 190px; padding: 28px 36px 26px; background: linear-gradient(to bottom, var(--mist) 0 72%, var(--olive-soft) 72%); }
.vcard__media img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 12px 10px rgba(20, 30, 18, 0.24)); }
.vcard__body { display: flex; flex-direction: column; flex: 1; padding: 28px 30px 30px; }
.vcard__title { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
.vcard__summary { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--text); }
.vcard__specs { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.vcard__specs li { display: flex; align-items: center; gap: 7px; }
.vcard__specs .i { width: 18px; fill: none; stroke: var(--olive-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.vcard__specs b { color: var(--ink); }
.vcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 24px; }
.price--sm .price__num { font-size: 24px; }
.price--sm .price__num--quote { font-size: 18px; }
.price--sm .price__cur { font-size: 13px; }
.vfine { margin-top: 36px; max-width: 80ch; font-size: 14px; line-height: 1.6; color: var(--muted); }

.faq { max-width: 860px; }
.faq h2 { margin: 56px 0 8px; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.faq h2:first-child { margin-top: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 22px 48px 22px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 18px; line-height: 1.4; transition: color 0.2s var(--ease-out); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px; margin-top: -8px; border-right: 2px solid var(--olive-ink); border-bottom: 2px solid var(--olive-ink); transform: rotate(45deg); transition: transform 0.25s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq summary:hover { color: var(--olive-ink); }
.faq details > div { padding: 0 0 24px; max-width: 70ch; font-size: 16px; line-height: 1.7; color: var(--text); }
.faq details > div > * + * { margin-top: 0.8em; }
.faq details a { color: var(--ink); text-decoration-color: var(--olive); text-decoration-thickness: 2px; }

.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) calc(360 * var(--u)); gap: calc(80 * var(--u)); align-items: start; }
.form { display: grid; gap: 28px; }
.form fieldset { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.form legend { padding: 0; margin-bottom: 16px; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.ctl { display: flex; flex-direction: column; gap: 7px; }
.ctl label, .ctl .ctl__label { font-size: 15px; font-weight: 600; color: var(--ink); }
.ctl .req { color: var(--error); }
.ctl input:not([type='checkbox']):not([type='radio']), .ctl select, .ctl textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 1.5px solid var(--field-line); border-radius: 12px; background: var(--white);
  font-size: 16px; line-height: 1.4; color: var(--ink);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.ctl textarea { min-height: 120px; resize: vertical; }
.ctl input::placeholder, .ctl textarea::placeholder { color: var(--muted); }
.ctl input:hover, .ctl select:hover, .ctl textarea:hover { border-color: var(--ink-soft); }
.ctl input:focus, .ctl select:focus, .ctl textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--olive-soft); }
.ctl input[aria-invalid='true'], .ctl select[aria-invalid='true'], .ctl textarea[aria-invalid='true'] { border-color: var(--error); }
.ctl__help { font-size: 13px; line-height: 1.5; color: var(--muted); }
.ctl__error { font-size: 13px; font-weight: 600; color: var(--error); }
.ctl__error:empty { display: none; }
.ctl .check, .check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; font-weight: 500; line-height: 1.55; color: var(--text); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); }
.check a { color: var(--ink); text-decoration-color: var(--olive); text-decoration-thickness: 2px; }
.seg { align-self: flex-start; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--mist); box-shadow: inset 0 0 0 1px var(--line); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 10px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted); transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out); }
.seg input:checked + span { background: var(--ink); color: var(--white); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-actions .btn { height: 54px; padding: 0 32px; font-size: 16px; }
.form-actions .btn[aria-busy='true'] { opacity: 0.7; cursor: progress; }
.form-success { padding: 36px; border-radius: 20px; background: var(--mist); }
.form-success h2 { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; }
.form-success p { margin-top: 12px; font-size: 17px; line-height: 1.65; color: var(--text); max-width: 60ch; }
.form-success a:not(.btn) { color: var(--ink); text-decoration-color: var(--olive); text-decoration-thickness: 2px; }
.form-success .btn { margin-top: 22px; }
.form-error-summary { padding: 16px 18px; border-radius: 12px; background: #fdecea; color: #7a1d16; font-size: 15px; font-weight: 600; }
.form-error-summary:empty { display: none; }

.info-list { display: grid; gap: 18px; }
.info-list dt { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.info-list dd { margin: 4px 0 0; font-size: 17px; line-height: 1.55; color: var(--ink); }
.info-list a { color: var(--ink); text-decoration-color: var(--olive); text-decoration-thickness: 2px; }

.post { padding-top: 56px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.post:first-child { padding-top: 0; border-top: 0; }
.post + .post { margin-top: 72px; }
.post > h2 { margin-top: 0.4em; }
.post__meta { font-size: 14px; font-weight: 600; color: var(--muted); }
.post__media { margin: 22px 0 6px; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 8; background: var(--mist-deep); }
.post__media img { width: 100%; height: 100%; object-fit: cover; }

.cta-strip { padding: calc(72 * var(--u)) 0; background: var(--olive); }
.cta-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta-strip h2 { font-family: var(--display); font-weight: 700; font-size: calc(36 * var(--u)); line-height: 1.15; letter-spacing: -0.025em; max-width: 22ch; color: var(--ink); text-wrap: balance; }
.cta-strip .btn { flex: none; height: 56px; padding: 0 32px; font-size: 16px; }

.e404 { min-height: 50vh; }
.e404__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Motion: one authored moment, the hero sedan drives in ---------- */
@media (prefers-reduced-motion: no-preference) {
  .page-home .hero__car img { animation: drive-in 1.2s var(--ease-out) both; }
  .page-home .hero__car::before { animation: shadow-in 1.2s var(--ease-out) both; }
}
@keyframes drive-in { from { transform: translateX(calc(-80 * var(--u))); opacity: 0; filter: blur(6px); } to { transform: none; opacity: 1; filter: none; } }
@keyframes shadow-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ======================================================================
   Tablet & phone (< 1024px): content reflows, nothing is removed.
   ====================================================================== */
@media (max-width: 1023.98px) {
  :root { --u: 1px; }
  body { font-size: 16px; }
  .wrap { width: auto; margin-inline: 24px; }
  .h2 { font-size: clamp(28px, 5.4vw, 40px); }

  .site-header__inner { height: 76px; }
  .logo { gap: 10px; }
  .logo__img { height: 38px; }
  .logo__mark { width: 32px; height: 32px; }
  .logo__name { font-size: 20px; }
  .logo__domain { margin-top: 5px; font-size: 9px; letter-spacing: 0.3em; }
  .site-nav, .btn--header { display: none; }
  .site-header__actions { gap: 10px; }
  .round-btn { width: 44px; height: 44px; }
  .menu-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); }
  .menu-btn svg { width: 20px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; }
  .menu-btn[aria-expanded='true'] { background: var(--olive); }
  .menu-btn[aria-expanded='true'] svg { stroke: var(--ink); }
  .mobile-menu { display: block; position: absolute; left: 0; right: 0; top: 100%; padding: 8px 24px 28px; background: var(--white); box-shadow: 0 24px 40px -20px rgba(28, 40, 26, 0.28); }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; }
  .mobile-menu li a[aria-current='page'] { text-decoration: underline; text-decoration-color: var(--olive); text-decoration-thickness: 3px; text-underline-offset: 6px; }
  .mobile-menu__cta { display: grid; gap: 10px; margin-top: 22px; }
  .mobile-menu__cta .btn { height: 52px; font-size: 16px; }

  .hero { height: auto; padding: 18px 0 0; }
  .hero__title { padding: 0 20px; font-size: clamp(34px, 8.4vw, 56px); line-height: 1.12; }
  .search { position: relative; left: auto; top: auto; width: calc(100% - 48px); max-width: 620px; margin: 28px auto 0; }
  .search__tabs { width: 190px; height: 52px; border-radius: 16px 16px 0 0; }
  .search__tab span { font-size: 16px; }
  .search__card { flex-direction: column; align-items: stretch; height: auto; padding: 8px 20px 20px; border-radius: 0 18px 18px 18px; }
  .field { height: auto; padding: 14px 0; }
  .field--loc, .field--date:nth-of-type(2), .field--date:nth-of-type(3) { width: auto; margin: 0; flex: none; }
  .field label { font-size: 14px; margin-bottom: 6px; }
  .field input, .field__view { font-size: 17px; }
  .field:focus-within::after { left: -8px; right: -8px; top: 2px; bottom: 2px; }
  .search__sep { width: auto; height: 1px; }
  .search__go { width: 100%; height: 54px; margin-top: 12px; border-radius: 999px; }
  .search__go svg { width: 22px; }
  .search__go .sr-only { position: static !important; width: auto; height: auto; margin: 0 10px 0 0; clip: auto; overflow: visible; font-weight: 600; font-size: 16px; }
  .search__go { display: flex; align-items: center; justify-content: center; }
  .hero__mark { display: none; }
  .hero__band { height: 30vw; min-height: 150px; }
  .hero__car { position: relative; left: auto; bottom: auto; width: 94%; max-width: 780px; margin: 40px auto 0; padding-bottom: 12vw; }
  .hero__car::before { bottom: calc(12vw - 8px); }
  .scroll-pill { display: none; }

  .about { height: auto; padding: 72px 0 0; }
  .about__copy { position: static; width: auto; margin: 0 24px; max-width: 640px; }
  .about__copy p { margin-top: 18px; font-size: 16px; }
  .about__copy .btn { margin-top: 26px; }
  .about__photo { position: relative; left: auto; top: auto; height: 62vw; max-height: 520px; margin: 48px 0 0 12%; border-radius: 22px 0 0 22px; }
  .about__mark { left: calc(12% - 22px); top: auto; bottom: calc(62vw - 70px); width: 44px; height: 44px; }
  .about__tile { position: relative; top: auto; width: 46%; height: 30vw; margin-top: -14vw; z-index: 1; border: 8px solid var(--white); border-left: 0; border-radius: 0 20px 20px 0; }

  .pick { height: auto; padding: 72px 0 0; margin-top: 64px; }
  .pick__title { padding: 0 20px; }
  .pick__stage { position: relative; top: auto; height: 46vw; max-height: 300px; margin-top: 36px; }
  .car-slide { left: 10%; width: 80%; height: 86%; transform: translateX(calc(var(--pos, 0) * 94%)) scale(var(--scale, 1)); }
  .pick__side { width: 22%; }
  .pick__side--prev { padding-left: 12px; }
  .pick__side--next { padding-right: 12px; }
  .pick__specs { position: static; transform: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 30px 16px 0; }
  .spec { width: auto; }
  .spec__icon { width: 54px; height: 54px; }
  .spec__icon .i { width: 22px; }
  .spec__text { text-align: center; white-space: normal; }
  .spec__text b { font-size: 14px; }
  .pick__card { position: relative; left: auto; top: auto; z-index: 2; width: auto; height: auto; margin: 32px 20px -64px; padding: 20px; flex-wrap: wrap; gap: 16px 0; border-radius: 18px; }
  .pick__tag { width: 24px; }
  .pick__divider { height: 40px; margin: 0 16px; }
  .price__num { font-size: 30px; }
  .price__num--quote { font-size: 22px; }
  .price__cur { font-size: 14px; }
  .pick__actions { width: 100%; }
  .pick__actions .btn { flex: 1; width: auto; height: 50px; font-size: 15px; }

  .stories { padding: 128px 0 40px; }
  .stories__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 18px; margin: 44px 24px 0; }
  .story { width: auto; }
  .story__date b { font-size: 30px; }
  .story__title { margin-top: 22px; font-size: 18px; line-height: 1.35; }
  .story__text { font-size: 15px; }
  .story img { margin-top: 16px; border-radius: 14px; }
  .stories__more { height: 50px; padding: 0 28px; margin-top: 44px; }

  .classes { height: auto; padding: 48px 0 0; }
  .classes__list { width: auto; margin: 0 16px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px 8px; }
  .classes__list svg { width: 60px; height: 30px; }
  .classes__list span { font-size: 11px; text-align: center; }

  .app { padding-top: 120px; background: linear-gradient(to bottom, var(--white) 0, var(--white) 55%, var(--mist) 55%); }
  .app__card { height: auto; padding: 44px 32px 0; overflow: hidden; border-radius: 20px; }
  .app__copy { position: relative; left: auto; top: auto; width: auto; z-index: 2; }
  .app__lede { font-size: 16px; }
  .app__btns { flex-wrap: wrap; margin-top: 24px; }
  .store-btn { height: 54px; padding: 0 22px 0 16px; }
  .store-btn small { font-size: 11px; }
  .phone { position: relative; left: auto; width: min(330px, 86%); height: 360px; margin: 36px auto 0; }
  .phone__frame { height: 480px; padding: 9px; border-radius: 46px 46px 0 0; }
  .phone__screen { border-radius: 38px 38px 0 0; padding: 14px 18px 0; }
  .phone__status { height: 26px; font-size: 12px; }
  .phone__island { width: 84px; height: 24px; }
  .phone__sys b { width: 3px; }
  .phone__sys b:nth-child(1) { height: 5px; } .phone__sys b:nth-child(2) { height: 8px; } .phone__sys b:nth-child(3) { height: 11px; }
  .phone__tabs { margin-top: 16px; gap: 22px; font-size: 12px; }
  .phone__tabs svg { width: 16px; }
  .phone__dot { width: 6px; height: 6px; left: 10px; top: -1px; }
  .phone__car { margin-top: 14px; padding: 12px 14px; border-radius: 16px; }
  .phone__label { font-size: 9px; }
  .phone__car img { margin-top: 10px; }
  .phone__model { font-size: 15px; margin-top: 6px; }
  .phone__meta { font-size: 11px; }
  .phone__row { gap: 10px; margin-top: 10px; }
  .phone__help, .phone__map { border-radius: 16px; }
  .phone__help { padding: 12px 8px; }
  .phone__avatar { width: 46px; height: 46px; border-width: 2px; }
  .phone__avatar svg { width: 22px; }
  .phone__help p { font-size: 11px; margin-top: 6px; }
  .phone__help small { font-size: 10px; }
  .app__mark-faint { width: 84px; height: 84px; left: auto; right: -16px; top: -16px; }
  .app__mark-dark { left: auto; right: 12%; top: auto; bottom: 230px; width: 48px; height: 48px; }

  .site-footer { padding: 72px 0 32px; }
  .news { flex-direction: column; gap: 32px; }
  .news__title { max-width: 540px; font-size: clamp(28px, 6vw, 40px); line-height: 1.2; }
  .news__mark { width: 54px; height: 54px; left: -16px; top: -12px; }
  .news__form { width: 100%; max-width: 560px; margin: 0; grid-template-columns: minmax(0, 1fr) 52px; column-gap: 14px; }
  .news__form input { height: 52px; font-size: 16px; }
  .news__send { width: 52px; height: 52px; }
  .f-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; margin-top: 64px; }
  .f-col__title { font-size: 16px; }
  .f-col ul { margin-top: 16px; gap: 6px; }
  .f-col a { font-size: 15px; display: inline-block; padding: 4px 0; }
  .social a { width: 44px; height: 44px; display: grid; padding: 0; }
  .f-disclosure { margin-top: 48px; font-size: 13px; }
  .f-bottom { flex-direction: column; align-items: flex-start; font-size: 13px; }

  .page-hero { padding: 40px 0 64px; }
  .page-hero .mark { right: 24px; bottom: 24px; width: 44px; height: 44px; }
  .page-title { font-size: clamp(32px, 7.4vw, 50px); }
  .page-lede { font-size: 17px; }
  .page-body { padding: 64px 0 88px; }
  .prose-split, .form-layout { grid-template-columns: 1fr; gap: 48px; }
  .aside-card { position: static; }
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .step { padding: 28px 0; }
  .vgrid { grid-template-columns: 1fr; gap: 24px; }
  .cta-strip { padding: 56px 0; }
  .cta-strip .wrap { flex-direction: column; align-items: flex-start; }
  .cta-strip h2 { font-size: clamp(24px, 5.6vw, 34px); }
}

@media (max-width: 640px) {
  .wrap { margin-inline: 16px; }
  .mobile-menu { padding-inline: 16px; }
  .hero__title { font-size: clamp(30px, 9.4vw, 44px); }
  .search { width: calc(100% - 32px); }
  .search__card { padding: 6px 16px 16px; }
  .hero__car { width: 96%; margin-top: 32px; }
  .about { padding-top: 56px; }
  .about__copy { margin: 0 16px; }
  .about__photo { margin-left: 8%; height: 78vw; }
  .about__mark { left: calc(8% - 20px); bottom: calc(78vw - 60px); }
  .about__tile { width: 52%; height: 36vw; margin-top: -18vw; }
  .pick { padding-top: 56px; }
  .pick__stage { height: calc(52vw + 80px); }
  .pick__track { bottom: 80px; }
  .pick__side { top: auto; bottom: 18px; width: 52px; height: 52px; padding: 0; justify-content: center; border-radius: 50%; }
  .pick__side--prev { left: calc(50% - 60px); padding-left: 0; }
  .pick__side--next { right: calc(50% - 60px); padding-right: 0; }
  .pick__chev { width: 48px; height: 48px; min-width: 0; min-height: 0; background: var(--white); color: var(--olive-ink); border: 1px solid var(--olive-soft); box-shadow: 0 4px 14px rgba(36, 48, 31, 0.12); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .pick__chev svg { width: 20px; filter: none; }
  .pick__side:hover .pick__chev { background: var(--olive-soft); }
  .pick__side:focus-visible .pick__chev { outline-color: var(--olive-ink); }
  .car-slide { left: 7%; width: 86%; transform: translateX(calc(var(--pos, 0) * 100%)) scale(var(--scale, 1)); }
  .pick__specs { grid-template-columns: repeat(2, 1fr); row-gap: 20px; margin-inline: 8px; }
  .pick__card { margin-inline: 16px; }
  .stories__grid { grid-template-columns: 1fr; gap: 44px; margin-inline: 16px; }
  .story__title { font-size: 20px; min-height: 0; }
  .story__text { min-height: 0; }
  .classes__list { grid-template-columns: repeat(3, 1fr); margin-inline: 8px; gap: 22px 8px; }
  .app__card { padding: 36px 22px 0; }
  .store-btn { flex: 1 1 150px; }
  .f-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-col--social { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; }
  .vcard__media { padding: 22px 20px 20px; }
  .vcard__body { padding: 22px 20px 24px; }
  .vcard__foot { flex-direction: column; align-items: stretch; }
  .vcard__foot .btn { height: 50px; }

  /* Call bar: stays inside the viewport gutters and the safe area, nothing pokes past its edge. */
  .callbar {
    position: fixed; z-index: 40;
    left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom));
    display: flex; align-items: center; padding: 8px 4px 8px 8px; border-radius: 999px;
    background: var(--ink); color: var(--white);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 16px 36px -10px rgba(17, 19, 17, 0.5), 0 3px 8px rgba(17, 19, 17, 0.16);
    transition: transform 0.35s var(--ease-out), opacity 0.25s var(--ease-out), visibility 0s;
  }
  .callbar.is-tucked { transform: translateY(calc(100% + 24px)); opacity: 0; visibility: hidden; transition: transform 0.3s var(--ease-out), opacity 0.2s var(--ease-out), visibility 0s 0.3s; }
  .callbar__link { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; border-radius: 999px; color: inherit; text-decoration: none; }
  .callbar__face { display: grid; flex: none; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: var(--olive); }
  .callbar__face svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .callbar__text { display: grid; flex: 1; min-width: 0; line-height: 1.2; }
  .callbar__label { font-size: 13px; font-weight: 500; color: var(--on-dark-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .callbar__num { margin-top: 3px; font-size: clamp(18px, 5.4vw, 21px); font-weight: 700; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .callbar__call { display: grid; flex: none; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--olive); color: var(--ink); transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out); }
  .callbar__call svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
  .callbar__link:active .callbar__call { transform: scale(0.94); background: var(--olive-deep); }
  .callbar__close { display: grid; flex: none; place-items: center; width: 40px; height: 46px; margin-left: 4px; border-left: 1px solid var(--on-dark-line); border-radius: 0 999px 999px 0; color: var(--on-dark-muted); transition: color 0.2s var(--ease-out); }
  .callbar__close svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .callbar__close:active { color: var(--white); }
  @media (hover: hover) {
    .callbar__link:hover .callbar__call { background: var(--olive-deep); }
    .callbar__close:hover { color: var(--white); }
  }
  @media (prefers-reduced-motion: no-preference) {
    .callbar { animation: callbar-in 0.55s 0.4s var(--ease-out) backwards; }
  }
  /* Room under the footer so the bar never covers the last line. */
  body:has(.callbar:not([hidden])) .site-footer { padding-bottom: 116px; }
}
@media (max-width: 359.98px) {
  .callbar__hours { display: none; }
  .callbar__link { gap: 10px; }
  .callbar__face { width: 42px; height: 42px; }
}
@keyframes callbar-in { from { transform: translateY(calc(100% + 24px)); opacity: 0; } to { transform: none; opacity: 1; } }
