/* ==========================================================================
   Nok Rent a Car — styles
   Tokens are taken from the design file variables.
   ========================================================================== */

:root {
  --lapis: #16325C;
  --lapis-deep: #0E2140;
  --turquoise: #1E8C9C;
  --turquoise-light: #8FD0CF;
  --white: #FFFFFF;
  --terracotta: #B4603A;
  --sand: #E6E2DA;
  --ivory: #F6F4F0;
  --ink: #2B1E13;
  --ink-soft: #6B5A48;
  --cream-85: #F8F1E4D9;
  --cream-80: #F8F1E4CC;
  --cream-65: #F8F1E4A6;
  --cream-50: #F8F1E480;
  --cream-12: #F8F1E41F;
  --line: #0E214014;

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Onest", system-ui, sans-serif;

  --container: 1280px;
  --gutter: 80px;
  --section-y: 96px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; } /* room for the pinned header */

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.star { width: 18px; height: 18px; flex-shrink: 0; }

:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 0;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px #0000002e; }
.btn:active { transform: translateY(0); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--dark { background: var(--lapis-deep); color: var(--white); }
.btn--dark:hover { background: var(--lapis); }
.btn--block { width: 100%; }
.btn .ico { transition: transform .2s ease; }
.btn:hover .ico { transform: translateX(3px); }

/* Large buttons are pills with the arrow in a round chip — same family as the header "Book" button */
.btn--lg {
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 7px 7px 7px 28px;
  border-radius: 999px;
  font-size: 16px;
  box-shadow: 0 8px 24px #0E214033;
}
.btn--lg > .ico {
  box-sizing: border-box;
  width: 42px;
  height: 42px;
  padding: 12px;
  border-radius: 50%;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), background-color .25s ease, color .25s ease;
}
.btn--light.btn--lg > .ico { background: var(--lapis-deep); color: var(--turquoise-light); }
.btn--dark.btn--lg > .ico { background: var(--turquoise); color: var(--white); }
.btn--lg:hover { transform: translateY(-1px); box-shadow: 0 12px 30px #0E21404D, 0 0 0 5px #8FD0CF2E; }
.btn--lg:hover > .ico { transform: rotate(-45deg); }
.btn--light.btn--lg:hover > .ico { background: var(--turquoise); color: var(--white); }
.btn--dark.btn--lg:hover > .ico { background: var(--turquoise-light); color: var(--lapis-deep); }

/* "Full fleet" opens booking too — an outlined pill to sit lighter next to the heading */
.fleet__header .link-arrow {
  gap: 12px;
  padding: 6px 6px 6px 20px;
  border: 1.5px solid #16325C40;
  border-radius: 999px;
  transition: border-color .25s ease, background-color .25s ease;
}
.fleet__header .link-arrow .ico {
  box-sizing: border-box;
  width: 34px;
  height: 34px;
  padding: 9px;
  border-radius: 50%;
  background: var(--lapis-deep);
  color: var(--turquoise-light);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), background-color .25s ease;
}
.fleet__header .link-arrow:hover { border-color: var(--lapis); background: #16325C0D; }
.fleet__header .link-arrow:hover .ico { transform: rotate(-45deg); background: var(--turquoise); color: var(--white); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 8px;
  background: none;
  border: 0;
  border-bottom: 1.5px solid var(--lapis);
  color: var(--lapis);
  font-size: 16px;
  font-weight: 700;
}
.link-arrow .ico { transition: transform .2s ease; }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--terracotta);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.eyebrow--light { color: var(--white); }

.section-titles { display: flex; flex-direction: column; gap: 14px; }

.section-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--ink);
}
.section-title--light { color: var(--ivory); }

/* ---------- Logo ---------- */
/* Transparent PNG cut from the brand artwork; sized by height, width follows */
.logo { display: inline-flex; flex-shrink: 0; }
.logo__img { display: block; width: auto; height: 74px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 55% 70% at 75% 55%, #1E8C9C40 0%, #0E214000 100%),
    var(--lapis-deep);
  color: var(--ivory);
  overflow: hidden;
}

/* The nav is pinned to the top of the screen from the start; the header leaves room for it */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 28px;
  transition: padding .45s cubic-bezier(.16, 1, .3, 1);
}
.hero, .page-hero { padding-top: var(--nav-h, 130px); } /* 28px + 74px logo + 28px */
.logo__img { transition: height .45s cubic-bezier(.16, 1, .3, 1); }
.nav__links { display: flex; align-items: center; gap: 40px; }
.nav__links a { font-size: 15px; font-weight: 500; color: var(--ivory); position: relative; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1.5px;
  background: var(--turquoise-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__mobile-cta { display: none; }
.nav__actions { display: flex; align-items: center; gap: 14px; }

/* Scrolled page: main.js adds .is-stuck and the nav smoothly becomes a compact bar.
   The bar's background is a pseudo-element, so the nav itself gets no filter/transform
   and the phone menu (position: fixed inside it) still covers the whole screen. */
.nav::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -2;
  background: #0E2140F2;
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
          backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 10px 30px #0000004D, inset 0 -1px 0 #FFFFFF14;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}
.nav.is-stuck { padding-block: 12px; }
.nav.is-stuck::before { opacity: 1; }
.nav.is-stuck .logo__img { height: 50px; }
@media (prefers-reduced-motion: reduce) {
  .nav, .nav::before, .logo__img { transition: none; }
}

/* Header buttons: rounded "pills" — a frosted-glass language switch and a white booking pill with an arrow chip */
.lang { position: relative; }
.lang__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 14px 0 12px;
  border: 1px solid #FFFFFF2E;
  border-radius: 999px;
  background: #FFFFFF14;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  color: var(--ivory);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .6px;
  transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.lang__toggle:hover, .lang.is-open .lang__toggle { border-color: #8FD0CF80; background: #FFFFFF22; box-shadow: 0 0 0 4px #8FD0CF1F; }
.lang__globe { width: 18px; height: 18px; color: var(--turquoise-light); }
.lang__chevron { width: 16px; height: 16px; opacity: .8; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.lang.is-open .lang__chevron { transform: rotate(180deg); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 48px;
  padding: 0 6px 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 24px #00000040;
  transition: transform .25s ease, box-shadow .25s ease;
}
.nav__cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lapis-deep);
  color: var(--turquoise-light);
  transition: background-color .25s ease, color .25s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}
.nav__cta-icon .ico { width: 17px; height: 17px; }
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 10px 28px #00000052, 0 0 0 5px #8FD0CF2E; }
.nav__cta:hover .nav__cta-icon { background: var(--turquoise); color: var(--white); transform: rotate(45deg); }
.nav__cta:active { transform: translateY(0); }

.lang__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  min-width: 190px;
  padding: 6px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 18px 40px #0E214052, 0 2px 6px #0E214026;
  /* Closed: folded up into the button. Opening unrolls it downwards (clip-path) while it fades and settles;
     closing runs the same motion back, a little quicker. */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(.97);
  transform-origin: top right;
  clip-path: inset(0 0 100% 0 round 10px);
  transition:
    opacity .28s cubic-bezier(.4, 0, .2, 1),
    transform .32s cubic-bezier(.4, 0, .2, 1),
    clip-path .32s cubic-bezier(.4, 0, .2, 1),
    visibility 0s linear .32s;
}
.lang.is-open .lang__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  clip-path: inset(0 0 0 0 round 10px);
  transition:
    opacity .35s cubic-bezier(.16, 1, .3, 1),
    transform .5s cubic-bezier(.16, 1, .3, 1),
    clip-path .5s cubic-bezier(.16, 1, .3, 1),
    visibility 0s;
}

.lang__option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--ink);
  text-align: left;
  opacity: 0;
  transform: translateY(-6px);
  transition: background-color .2s ease, opacity .2s ease, transform .25s ease;
}
/* Options follow one another in when the menu opens; on close they fade together */
.lang.is-open .lang__option { opacity: 1; transform: none; transition: background-color .2s ease, opacity .4s cubic-bezier(.16, 1, .3, 1), transform .5s cubic-bezier(.16, 1, .3, 1); }
.lang.is-open .lang__option:nth-child(1) { transition-delay: 0s, .06s, .06s; }
.lang.is-open .lang__option:nth-child(2) { transition-delay: 0s, .11s, .11s; }
.lang.is-open .lang__option:nth-child(3) { transition-delay: 0s, .16s, .16s; }
.lang__option:hover, .lang__option:focus-visible { background: #F1EEE8; outline: none; }
.lang__code { width: 22px; font-size: 12px; font-weight: 700; letter-spacing: .5px; color: var(--ink-soft); }
.lang__name { flex: 1; font-size: 15px; font-weight: 500; }
.lang__check { width: 16px; height: 16px; color: var(--turquoise); opacity: 0; transform: scale(.6); transition: opacity .25s ease, transform .3s cubic-bezier(.16, 1, .3, 1); }
.lang__option[aria-checked="true"] .lang__check { transform: none; }
.lang__option[aria-checked="true"] .lang__name { font-weight: 700; }
.lang__option[aria-checked="true"] .lang__check { opacity: 1; }
.nav__burger {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid #FFFFFF2E;
  border-radius: 50%;
  background: #FFFFFF14;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  color: var(--white);
  transition: border-color .25s ease, background-color .25s ease;
}
.nav__burger:hover { border-color: #8FD0CF80; background: #FFFFFF22; }
.nav__burger .ico { width: 22px; height: 22px; }

.hero__body {
  display: flex;
  align-items: center;
  gap: 72px;
  padding-top: 24px;
  padding-bottom: 88px;
}
.hero__content { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__content .eyebrow { font-size: 14px; gap: 14px; }
.hero__title {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.16;
  color: var(--ivory);
}
.hero__sub { max-width: 520px; font-size: 19px; line-height: 1.53; color: var(--cream-85); }
.hero__buttons { display: flex; gap: 16px; padding-top: 12px; }

.arch-portal {
  flex-shrink: 0;
  width: 560px;
  aspect-ratio: 560 / 660;
  padding: 12px;
  border-radius: 280px 280px 4px 4px;
  outline: 1.5px solid #FFFFFF66;
  outline-offset: -0.75px;
}
.arch-portal { position: relative; }
.arch-portal img {
  position: absolute;
  inset: var(--arch-pad, 12px);
  width: calc(100% - var(--arch-pad, 12px) * 2);
  height: calc(100% - var(--arch-pad, 12px) * 2);
  object-fit: cover;
  object-position: 86% 50%;
  border-radius: 268px 268px 0 0;
}

/* ---------- Ornament band ---------- */
.band {
  height: 28px;
  background-color: var(--lapis-deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='24' viewBox='0 2 28 24'%3E%3Cpath fill='%231E8C9C' d='M14 4L24 14L14 24L4 14Z'/%3E%3Cpath fill='%23FFFFFF' d='M0 9L5 14L0 19L-5 14ZM28 9L33 14L28 19L23 14Z'/%3E%3Cpath fill='%23F6F4F0' d='M14 10L18 14L14 18L10 14Z'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: 0 0;
  background-size: 28px 24px;
  border-block: 2px solid var(--white);
}

/* ---------- Ornament backgrounds ----------
   Line-art tiles after Uzbek tilework (images/pattern-*.svg): girih stars on the dark hero and footer,
   banna'i brick kufic behind the routes, islimi quatrefoils on the light sections.
   Kept faint and faded out behind running text; colours come from the palette. */
.hero::before,
.routes::before,
.footer::before,
.fleet::before,
.why::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-repeat: repeat;
}
.hero::before {
  background-image: url("../images/pattern-girih-light.svg");
  background-size: 120px;
  opacity: .07;
  /* clear behind the headline, fuller towards the arch and the edges */
  -webkit-mask-image: linear-gradient(90deg, #0000004d 0%, #0000004d 35%, #000 70%);
          mask-image: linear-gradient(90deg, #0000004d 0%, #0000004d 35%, #000 70%);
}
.routes::before {
  background-image: url("../images/pattern-bannai-light.svg");
  background-size: 128px;
  opacity: .08;
  -webkit-mask-image: linear-gradient(#000 0%, #00000026 45%, #00000026 70%, #000 100%);
          mask-image: linear-gradient(#000 0%, #00000026 45%, #00000026 70%, #000 100%);
}
.footer { position: relative; }
.footer::before {
  background-image: url("../images/pattern-girih-light.svg");
  background-size: 120px;
  opacity: .045;
}
.fleet { position: relative; }
.fleet::before {
  background-image: url("../images/pattern-islimi-dark.svg");
  background-size: 96px;
  opacity: .06;
  /* only around the section heading, gone before the cards */
  -webkit-mask-image: linear-gradient(#000 0, #000 60px, transparent 260px);
          mask-image: linear-gradient(#000 0, #000 60px, transparent 260px);
}
.why { position: relative; }
.why::before {
  background-image: url("../images/pattern-islimi-dark.svg");
  background-size: 96px;
  opacity: .06;
  -webkit-mask-image: radial-gradient(ellipse 45% 70% at 18% 50%, #000 0%, transparent 100%);
          mask-image: radial-gradient(ellipse 45% 70% at 18% 50%, #000 0%, transparent 100%);
}
/* lift content above the ornament; the nav keeps its own higher z-index for the menus */
.hero > :not(.nav), .routes > *, .footer > *, .fleet > *, .why > * { position: relative; z-index: 1; }

/* ---------- Inner page header (conditions.html) ---------- */
.page-hero { position: relative; overflow: hidden; background: radial-gradient(ellipse 60% 90% at 80% 30%, #1E8C9C33 0%, #0E214000 100%), var(--lapis-deep); color: var(--ivory); }
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("../images/pattern-girih-light.svg") repeat;
  background-size: 120px;
  opacity: .07;
  -webkit-mask-image: linear-gradient(90deg, #00000040 0%, #00000040 40%, #000 85%);
          mask-image: linear-gradient(90deg, #00000040 0%, #00000040 40%, #000 85%);
}
.page-hero > :not(.nav) { position: relative; z-index: 1; }
.page-hero__body { display: flex; flex-direction: column; gap: 16px; padding-top: 40px; padding-bottom: 72px; }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--cream-65); }
.crumbs a { color: var(--cream-80); text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--turquoise-light); }
.page-hero__title { font-family: var(--font-display); font-size: 44px; font-weight: 500; letter-spacing: -0.5px; line-height: 1.15; }
.page-hero__lead { max-width: 560px; font-size: 18px; line-height: 1.55; color: var(--cream-85); }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Rental terms ---------- */
.terms__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.term {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 24px;
  border-radius: 14px;
  background: var(--white);
  outline: 1px solid var(--line);
  box-shadow: 0 10px 28px #0E21400F;
}
.term__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.term__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 26px 26px 4px 4px; /* small arch, as in the route cards */
  background: var(--lapis-deep);
  color: var(--turquoise-light);
}
.term__icon .ico { width: 24px; height: 24px; }
.term__num { font-family: var(--font-display); font-size: 26px; font-weight: 500; color: #1E8C9C59; }
.term__title { font-family: var(--font-display); font-size: 20px; font-weight: 500; line-height: 1.3; color: var(--ink); text-wrap: balance; }
.term__title em { font-style: normal; color: var(--turquoise); white-space: nowrap; }
.term__desc { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

.terms__help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  padding: 28px 32px;
  border-radius: 14px;
  background: var(--sand);
}
.terms__help-text { max-width: 560px; font-size: 17px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.footer__terms { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--cream-12); }

/* ---------- Trust strip ---------- */
.trust {
  display: flex;
  gap: 24px;
  padding-block: 40px;
}
.trust__item {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.trust__item .ico { width: 20px; height: 20px; color: var(--turquoise); }

/* ---------- Fleet ---------- */
.fleet__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

/* Fleet type filter */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 32px; }
.filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1.5px solid #16325C33;
  border-radius: 999px;
  background: transparent;
  color: var(--lapis);
  font-size: 14px;
  font-weight: 600;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.filter:hover { border-color: var(--lapis); }
.filter[aria-pressed="true"] { background: var(--lapis-deep); border-color: var(--lapis-deep); color: var(--white); }
.filter__count { font-size: 12px; font-weight: 700; opacity: .55; font-variant-numeric: tabular-nums; }
.filter__icon { width: 15px; height: 15px; margin-right: -2px; color: var(--turquoise); transition: color .25s ease; }
.filter[aria-pressed="true"] .filter__icon { color: var(--turquoise-light); }
.car[hidden] { display: none; }
.car.is-entering { animation: car-in .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes car-in { from { opacity: 0; transform: translateY(10px); } }

.cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.car {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 14px;
  outline: 1px solid var(--line);
  outline-offset: -0.5px;
  box-shadow: 0 10px 28px #0E21400F;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.car:hover { transform: translateY(-4px); box-shadow: 0 18px 36px #0E21401F; }

.car__image {
  position: relative;
  aspect-ratio: 3 / 2;
  background: #E9ECEF;
  overflow: hidden;
}
.car__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Covers licence plates; position is in % of the 3:2 image box */
.car__plate {
  position: absolute;
  background: #0B0B0C;
  border-radius: 1px;
}
.car__class {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 20px;
  background: #FFFFFFE6;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  line-height: 1.2;
  text-transform: uppercase;
}

.car__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px 20px;
}
.car__heading { display: flex; flex-direction: column; gap: 4px; }
.car__brand {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.car__model {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}
.car__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.car__specs li { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.car__specs .ico { width: 14px; height: 14px; color: var(--turquoise); }

.car__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.car__price { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.car__sum { display: flex; align-items: baseline; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.car__sum b {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.3px;
  color: var(--ink);
}
.car__usd { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.car__go {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 20px;
  background: var(--lapis-deep);
  color: var(--white);
  transition: background-color .2s ease, transform .2s ease;
}
.car__go:hover { background: var(--turquoise); transform: rotate(45deg); }

/* ---------- Routes ---------- */
.routes { position: relative; background: var(--lapis-deep); }
.routes__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 64px;
  text-align: center;
}
.routes .section-title { font-size: 38px; }
.routes__note { max-width: 560px; font-size: 16px; line-height: 1.5; color: var(--cream-80); }

/* 12 regions: 6 × 2 on desktop, a carousel below 1100px */
.arcade {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 48px 20px;
}
.route { display: flex; flex-direction: column; }
/* Carries the wave transform; .route itself stays untransformed so scroll-snap positions stay exact */
.route__inner { display: flex; flex-direction: column; }
.route__arch {
  aspect-ratio: 237 / 400;
  padding: 8px;
  border-radius: 118px 118px 2px 2px;
  outline: 1.5px solid var(--white);
  outline-offset: -0.75px;
  margin-bottom: 24px;
}
.route__arch { position: relative; }
/* Clips the photo to the arch so it can drift inside (wave parallax on mobile) */
.route__photo {
  position: absolute;
  inset: 8px;
  overflow: hidden;
  border-radius: 110px 110px 0 0;
}
.route__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Desktop hover (mouse + 6-column grid only): a slow, gentle zoom instead of a colour filter —
   filters made the scaled-down photos re-render jagged. Phones keep the carousel's own motion. */
@media (hover: hover) and (pointer: fine) and (min-width: 1101px) {
  .route__photo img { transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
  .route:hover .route__photo img { transform: scale(1.05); }
  .route:hover .route__arch { outline-color: var(--turquoise-light); }
}
/* brief highlight when a region is opened from the footer */
.route__arch { transition: outline-color .4s ease, box-shadow .4s ease; }
.route.is-flash .route__arch { outline-color: var(--turquoise-light); box-shadow: 0 0 0 6px #8FD0CF2E; }
.route { scroll-margin-top: 24px; }
.route__city {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--ivory);
  margin-bottom: 10px;
}
.route__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}
.route__meta .ico { width: 15px; height: 15px; }

/* ---------- Why us ---------- */
.why {
  display: flex;
  align-items: center;
  gap: 80px;
  padding-block: 104px;
}
.why__left { flex: 0 0 440px; display: flex; flex-direction: column; gap: 20px; }
.why__title { line-height: 1.15; }
.why__sub { font-size: 17px; line-height: 1.6; color: var(--ink-soft); }

.steps { flex: 1 1 0; min-width: 0; margin: 0; padding: 0; list-style: none; }
.step {
  display: flex;
  gap: 32px;
  padding-block: 28px;
  border-bottom: 1px solid #2B1E131F;
}
.step:last-child { border-bottom: 0; }
.step__num {
  flex: 0 0 56px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1;
  color: var(--turquoise);
}
.step__title { font-size: 21px; font-weight: 700; color: var(--ink); margin-bottom: 8px; line-height: 1.3; }
.step__desc { font-size: 16px; line-height: 1.55; color: var(--ink-soft); }

/* ---------- Final CTA ---------- */
.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  padding: 80px 24px;
  background:
    radial-gradient(ellipse 50% 50% at 50% 50%, #0E214000 0%, #0E2140AA 100%),
    linear-gradient(#3A1A0CB8, #3A1A0CB8),
    url("../images/cta.jpg") center / cover no-repeat;
  text-align: center;
}
.cta__content {
  width: 100%;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.cta__mark { width: 40px; height: 40px; }
.cta__title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: var(--ivory);
}
.cta__sub { max-width: 560px; font-size: 18px; line-height: 1.55; color: var(--cream-85); }
.cta .btn { margin-top: 12px; }

/* ---------- Footer ---------- */
.footer { background: var(--lapis-deep); padding: 72px 0 40px; }
.footer__top { display: flex; gap: 48px; margin-bottom: 56px; }
.footer__brand { flex: 0 0 320px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.footer__brand p { font-size: 15px; line-height: 1.6; color: var(--cream-65); }
.logo--footer .logo__img { height: 128px; }
.footer__col { flex: 1 1 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer__col h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
}
.footer__col a { font-size: 15px; color: var(--cream-80); transition: color .2s ease; }
/* 12 regions in three even columns, each with a small turquoise diamond */
.footer__col--routes { flex: 2 1 0; }
.footer__regions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 28px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__regions a { display: inline-flex; align-items: center; gap: 10px; }
.footer__regions a::before {
  content: "";
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  background: var(--turquoise-light);
  opacity: .55;
  transform: rotate(45deg);
  transition: opacity .2s ease, transform .3s ease;
}
.footer__regions a:hover::before { opacity: 1; transform: rotate(225deg) scale(1.3); }
.footer__col a:hover, .footer__contacts a:hover { color: var(--turquoise-light); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--cream-12);
  font-size: 13px;
  color: var(--cream-50);
}
.footer__contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; color: #F8F1E4B3; }
.footer__contacts a { white-space: nowrap; }
/* thin dot between contacts */
.footer__contacts a + a::before { content: "·"; display: inline-block; padding-inline: 10px; color: var(--cream-50); }
.nowrap { white-space: nowrap; }
.footer__tg { display: inline-flex; align-items: center; gap: 6px; }
.footer__tg-icon { width: 15px; height: 15px; flex-shrink: 0; color: #2AABEE; }.footer__credits { text-decoration: underline; text-underline-offset: 3px; transition: color .2s ease; }
.footer__credits:hover { color: var(--turquoise-light); }
.footer__contacts a { transition: color .2s ease; }

/* ---------- Booking modal ---------- */
.modal {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--ivory);
  color: var(--ink);
  box-shadow: 0 30px 80px #0E214066;
}
/* Pin open windows to the centre of the screen in every browser (Safari included);
   never override `position` on a dialog, or it renders at the top of the page instead */
.modal[open] {
  position: fixed;
  inset: 0;
  margin: auto;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
}
.modal::backdrop { background: #0E2140B3; backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .25s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } }

.modal__inner { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 36px; }
.modal__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.3px;
  line-height: 1.2;
  margin-bottom: 4px;
}
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: var(--ink-soft);
  transition: background-color .2s ease;
}
.modal__close:hover { background: var(--sand); color: var(--ink); }

.modal__lead { font-size: 15px; line-height: 1.55; color: var(--ink-soft); margin-bottom: 4px; }

/* the car the window was opened from */
.modal__car {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--white);
  outline: 1px solid var(--line);
  border-left: 3px solid var(--turquoise);
}
.modal__car-label { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-soft); }
.modal__car b { font-family: var(--font-display); font-size: 17px; font-weight: 500; }
.modal__car-price { font-size: 13px; color: var(--ink-soft); }

.contact__label { margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-soft); }
.contact__phones { display: grid; gap: 8px; }
.phone {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 10px;
  border-radius: 10px;
  background: var(--white);
  outline: 1px solid var(--line);
  transition: outline-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.phone:hover { outline-color: var(--turquoise); box-shadow: 0 8px 20px #0E21401A; transform: translateY(-1px); }
.phone__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--lapis-deep);
  color: var(--white);
}
.phone__icon .ico { width: 17px; height: 17px; }
.phone__num { flex: 1; font-family: var(--font-display); font-size: 18px; font-weight: 500; letter-spacing: -0.2px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.phone__go { color: var(--ink-soft); transition: transform .2s ease, color .2s ease; }
.phone:hover .phone__go { color: var(--turquoise); transform: translate(2px, -2px); }

.contact__messengers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.messenger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  border-radius: 10px;
  background: var(--lapis-deep);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  transition: background-color .2s ease, transform .2s ease;
}
.messenger:hover { transform: translateY(-1px); background: var(--lapis); }
.messenger__icon { width: 22px; height: 22px; flex-shrink: 0; }
/* brand colour only on the mark itself */
.messenger--whatsapp .messenger__icon { color: #25D366; }
.messenger--telegram .messenger__icon { color: #2AABEE; }

/* ---------- Booking request window (name + phone) ---------- */
.order { width: min(480px, calc(100% - 32px)); }
.order__form, .order__done { display: flex; flex-direction: column; gap: 14px; }
.order__form[hidden], .order__done[hidden] { display: none; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-soft); }
.field__input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--white);
  outline: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* 16px keeps iOS from zooming in on focus */
  transition: outline-color .2s ease, box-shadow .2s ease;
}
.field__input::placeholder, .field__phone input::placeholder { color: #6B5A4880; }
input.field__input:focus, .field__phone:focus-within { outline: 2px solid var(--turquoise); box-shadow: 0 0 0 5px #8FD0CF33; }
.field__phone { display: flex; align-items: center; gap: 10px; }
.field__prefix { font-family: var(--font-display); font-size: 16px; font-weight: 500; padding-right: 10px; border-right: 1px solid var(--line); line-height: 26px; }
.field__phone input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .3px;
  font-variant-numeric: tabular-nums;
}
/* car choice: the field in the form opens a window with photos, several cars can be ticked */
.cars-field { display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; }
.cars-field:focus-visible { outline: 2px solid var(--turquoise); box-shadow: 0 0 0 5px #8FD0CF33; }
.cars-field__value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cars-field.is-empty .cars-field__value { color: #6B5A48B3; }
.cars-field__chevron { width: 18px; height: 18px; flex-shrink: 0; color: var(--ink-soft); transition: transform .2s ease; }
.cars-field:hover .cars-field__chevron { transform: translateY(2px); }

.car-picker { width: min(440px, calc(100% - 32px)); border-radius: 20px; background: var(--white); overflow: hidden; }
.car-picker__inner { display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 22px 20px 20px; }
.car-picker__handle { display: none; }
.car-picker__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.car-picker__title { font-family: var(--font-display); font-size: 19px; font-weight: 500; letter-spacing: -0.2px; line-height: 1.25; }
.car-picker__close { position: static; flex-shrink: 0; margin: -8px -8px -8px 0; }
.car-picker__search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  background: #F1EEE8;
  color: var(--ink-soft);
  transition: box-shadow .2s ease, background-color .2s ease;
}
.car-picker__search:focus-within { background: var(--white); box-shadow: 0 0 0 2px var(--turquoise), 0 0 0 6px #8FD0CF33; }
.car-picker__search .ico { width: 20px; height: 20px; flex-shrink: 0; }
.car-picker__search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; }
.car-picker__search input::placeholder { color: #6B5A48A0; }

.car-picker__list {
  flex: 1;
  min-height: 0;
  margin: 0 -10px;
  padding: 0 10px;
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #6B5A4840 transparent;
}
.pick[hidden] { display: none; }
.pick__row { position: relative; display: flex; align-items: center; gap: 16px; padding: 7px 10px 7px 4px; border-radius: 12px; cursor: pointer; transition: background-color .2s ease; }
.pick__row:hover { background: var(--ivory); }
.pick__thumb { width: 84px; height: 48px; flex-shrink: 0; object-fit: cover; border-radius: 8px; background: var(--sand); }
.pick__name { flex: 1; min-width: 0; font-size: 16px; font-weight: 500; transition: color .2s ease; }
.pick__box { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pick__mark {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border: 2px solid #D3CCC1;
  border-radius: 50%;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.pick__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: 6px;
  height: 11px;
  border: solid var(--white);
  border-width: 0 2.5px 2.5px 0;
  transform: translate(-50%, -50%) rotate(45deg) scale(0);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}
.pick__box:checked + .pick__mark { border-color: var(--turquoise); background: var(--turquoise); }
.pick__box:checked + .pick__mark::after { transform: translate(-50%, -50%) rotate(45deg) scale(1); }
.pick__box:focus-visible + .pick__mark { box-shadow: 0 0 0 4px #8FD0CF66; }
.pick__row:has(.pick__box:checked) .pick__name { font-weight: 700; }
.car-picker__empty { padding: 28px 0; text-align: center; font-size: 15px; color: var(--ink-soft); }
.car-picker__done { flex-shrink: 0; }
.car-picker__done:hover > .ico { transform: none; } /* a check mark stays upright */

/* opening: the cars slide in one after another */
.car-picker[open] .pick { animation: pick-in .45s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(.06s + var(--i, 0) * .035s); }
@keyframes pick-in { from { opacity: 0; transform: translateY(10px); } }

/* phones: a sheet sliding up from the bottom, like in apps */
@media (max-width: 600px) {
  .car-picker[open] {
    width: 100%;
    max-width: 100%;
    max-height: 88vh;
    max-height: 88dvh;
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
    animation: sheet-up .5s cubic-bezier(.16, 1, .3, 1);
  }
  .car-picker__inner { max-height: 88vh; max-height: 88dvh; padding: 10px 16px calc(16px + env(safe-area-inset-bottom)); }
  .car-picker__handle { display: block; align-self: center; width: 40px; height: 5px; border-radius: 3px; background: #DDD7CD; }
}
@keyframes sheet-up { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) {
  .car-picker[open], .car-picker[open] .pick { animation: none; }
}
.field__error { display: none; font-size: 13px; color: var(--terracotta); }
.field.is-invalid .field__input { outline: 2px solid var(--terracotta); box-shadow: none; }
.field.is-invalid .field__error { display: block; }

.order__submit { margin-top: 6px; }
.order__form.is-sending .order__submit { opacity: .7; pointer-events: none; }
.order__fail { font-size: 14px; line-height: 1.5; color: var(--terracotta); text-align: center; }

.order__done { align-items: center; text-align: center; padding-top: 8px; }
.order__done .btn { margin-top: 6px; }
.order__done .btn--lg:hover > .ico { transform: none; } /* a check mark stays upright */
.order__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--turquoise);
  color: var(--white);
  box-shadow: 0 0 0 8px #8FD0CF40;
  animation: order-pop .4s ease;
}
.order__check .ico { width: 28px; height: 28px; }
@keyframes order-pop { from { transform: scale(.6); opacity: 0; } }

/* ---------- "Full fleet" window ---------- */
.fleet-list { width: min(680px, calc(100% - 32px)); }
.fleet-list__items { display: grid; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.fleet-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto auto 18px;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 8px 14px 8px 8px;
  border: 0;
  border-radius: 12px;
  background: var(--white);
  outline: 1px solid var(--line);
  color: var(--ink);
  text-align: left;
  transition: outline-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.fleet-item:hover, .fleet-item:focus-visible { outline: 1.5px solid var(--turquoise); box-shadow: 0 8px 20px #0E21401A; transform: translateY(-1px); }
.fleet-item__thumb .car__image { width: 96px; border-radius: 8px; }
.fleet-item__thumb .car__class { display: none; }
.fleet-item__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fleet-item__brand { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-soft); }
.fleet-item__model { font-family: var(--font-display); font-size: 17px; font-weight: 500; line-height: 1.2; overflow-wrap: anywhere; }
.fleet-item__class {
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--sand);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}
.fleet-item__price { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; white-space: nowrap; }
.fleet-item__price b { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.fleet-item__price small { font-size: 11px; color: var(--ink-soft); }
.fleet-item__go { width: 18px; height: 18px; color: var(--ink-soft); transition: transform .2s ease, color .2s ease; }
.fleet-item:hover .fleet-item__go { color: var(--turquoise); transform: translateX(3px); }

/* the card a visitor jumped to from the list */
.car { transition: transform .25s ease, box-shadow .25s ease, outline-color .3s ease; }
.car.is-flash { outline: 2px solid var(--turquoise); box-shadow: 0 0 0 6px #1E8C9C33, 0 18px 36px #0E21401F; }

/* ---------- Car details window ---------- */
.car { position: relative; cursor: pointer; }
.car__more {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}
.car__more:focus-visible { outline: 2px solid var(--turquoise); outline-offset: -2px; }
.car__go { position: relative; z-index: 2; }

.modal { overflow-y: auto; overscroll-behavior: contain; }
/* Phone: one column — photo, model, price, specs, buttons (the side column is flattened with display: contents).
   Desktop (min-width 760px): photo/model/price/buttons on the left, specs on the right. */
.details { width: min(560px, calc(100% - 32px)); }
.details[open] { display: flex; flex-direction: column; gap: 12px; padding-bottom: 24px; }
.details__side { display: contents; }
.details__media { order: 1; margin: 20px 20px 0; }
.details__heading { order: 2; padding: 6px 20px 0; }
.details__price { order: 3; margin-inline: 20px; }
.details__main { order: 4; display: flex; flex-direction: column; gap: 12px; padding-inline: 20px; }
.details__actions { order: 5; padding-inline: 20px; }
.details__close { top: 24px; right: 24px; z-index: 2; background: #FFFFFFE6; color: var(--ink); }
.details__close:hover { background: var(--white); }

/* The photo is its own framed card, inset from the window edges like a showcase */
.details__media .car__image {
  border-radius: 12px;
  box-shadow: 0 10px 26px #0E21401F, inset 0 0 0 1px #FFFFFF59;
  outline: 1px solid var(--line);
}

@media (min-width: 760px) {
  .details { width: min(820px, calc(100% - 48px)); }
  .details[open] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; padding: 0; }
  .details__side { display: flex; flex-direction: column; gap: 14px; padding: 20px 20px 24px; border-right: 1px solid var(--line); }
  .details__media { margin: 0; }
  .details__heading { padding: 4px 6px 0; }
  .details__price { margin-inline: 0; }
  .details__actions { margin-top: auto; padding-inline: 0; }
  .details__main { justify-content: center; padding: 64px 24px 24px; }
  .details__close { top: 14px; right: 14px; background: var(--sand); }
}
.details__heading { display: flex; flex-direction: column; gap: 6px; }
.details__model { font-family: var(--font-display); font-size: 30px; font-weight: 500; letter-spacing: -0.5px; line-height: 1.1; }

/* Price: a light card — amount on the left, the dollar figure as a turquoise chip on the right */
.details__price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--white);
  outline: 1px solid var(--line);
  box-shadow: 0 8px 24px #0E21400D;
}
.details__price-label { grid-column: 1 / -1; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-soft); }
.details__price p { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; font-size: 14px; color: var(--ink-soft); }
.details__price b { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.4px; color: var(--ink); white-space: nowrap; }
.details__usd {
  padding: 6px 12px;
  border-radius: 999px;
  background: #1E8C9C1A;
  color: var(--turquoise);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
#details-per { white-space: nowrap; }

.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.spec {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--white);
  outline: 1px solid var(--line);
}
.spec dt { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-soft); }
.spec dt .ico { width: 14px; height: 14px; color: var(--turquoise); }
.spec dd { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); }

.details__actions { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin-top: 6px; }
.details__actions .btn { width: 100%; }
/* secondary link: quiet text, no heavy underline */
.details__actions .link-arrow {
  align-self: center;
  gap: 6px;
  padding: 0;
  border: 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  transition: color .2s ease;
}
.details__actions .link-arrow .ico { width: 15px; height: 15px; }
.details__actions .link-arrow:hover { color: var(--lapis); }

body.no-scroll { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1280px) {
  :root { --gutter: 48px; }
  .hero__body { gap: 48px; }
  .arch-portal { width: 460px; }
  .cards { gap: 16px; }
  .car__body { padding: 16px; }
  .route__city { font-size: 17px; }
  .route__meta { font-size: 13px; }
  .why { gap: 56px; }
  .why__left { flex-basis: 360px; }
}

@media (max-width: 1100px) {
  :root { --section-y: 80px; }
  .hero__title { font-size: 38px; }
  .arch-portal { width: 400px; }
  .trust__item { font-size: 16px; }

  /* Routes become a horizontal carousel */
  .arcade {
    position: relative; /* offsetLeft of cards is measured from here (autoplay) */
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .arcade::-webkit-scrollbar { display: none; }
  .route { flex: 0 0 220px; scroll-snap-align: start; }
  /* Snapping would fight the eased autoplay animation, so it is paused while it runs */
  .arcade.is-animating { scroll-snap-type: none; }
}

/* 10 cars: 5 columns on desktop, 2 below — no orphan rows */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terms__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --gutter: 32px; }

  .nav__links {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    background: var(--lapis-deep);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s;
  }
  .nav__links a { font-family: var(--font-display); font-size: 26px; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
  .nav__mobile-cta { display: inline-flex; margin-top: 16px; padding: 18px 34px; border-radius: 999px; font-size: 16px; box-shadow: 0 8px 24px #00000040; }
  .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }

  .hero__body { flex-direction: column; align-items: stretch; gap: 48px; padding-bottom: 64px; }
  .hero__sub { max-width: 100%; }
  .arch-portal { width: 100%; max-width: 440px; margin-inline: auto; }

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

  .why { flex-direction: column; align-items: stretch; gap: 32px; padding-block: 80px; }
  .why__left { flex-basis: auto; }

  .footer__top { flex-wrap: wrap; }
  .footer__brand { flex-basis: 100%; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; --section-y: 64px; }
  .br-lg { display: none; }

  .nav { padding-block: 20px; }
  .hero, .page-hero { --nav-h: 96px; } /* 20px + 56px logo + 20px */
  .logo__img { height: 56px; }
  .nav.is-stuck { padding-block: 8px; }
  .nav.is-stuck .logo__img { height: 42px; }
  .logo--footer .logo__img { height: 110px; }
  .nav__actions { gap: 10px; }
  .lang__toggle { height: 44px; gap: 6px; padding: 0 10px 0 10px; font-size: 13px; }
  .lang__globe { width: 16px; height: 16px; }
  .nav__burger { width: 44px; height: 44px; }

  .hero__title { font-size: 30px; line-height: 1.2; }
  .hero__sub { font-size: 17px; }
  .hero__content { gap: 22px; }
  .hero__content .eyebrow { font-size: 12px; letter-spacing: 2px; }
  .hero__buttons .btn { width: 100%; }
  .arch-portal { --arch-pad: 8px; }

  .trust { flex-direction: column; gap: 16px; padding-block: 28px; }
  .trust__item { justify-content: flex-start; }

  .section-title { font-size: 26px; }
  .routes .section-title { font-size: 26px; }
  .routes__header { margin-bottom: 40px; }
  .fleet__header { margin-bottom: 32px; }
  .link-arrow { font-size: 15px; }

  .cards { gap: 14px; }
  .car__body { padding: 14px 14px 16px; gap: 12px; }
  .car__model { font-size: 16px; }
  .car__sum b { font-size: 17px; }
  .car__go { width: 36px; height: 36px; }

  /* One full-width card per screen */
  .route { flex: 0 0 100%; }
  .route__arch { aspect-ratio: 4 / 5; border-radius: 9999px 9999px 2px 2px; }
  .route__photo { border-radius: 9999px 9999px 0 0; }
  .route__inner { will-change: transform; transform-origin: 50% 100%; }
  /* Room for the dipping card without a vertical scroll inside the carousel */
  .arcade { overflow-y: hidden; padding-bottom: 34px; margin-bottom: -26px; }
  .route__photo img { will-change: transform; }
  .route__city { font-size: 20px; }

  .why { padding-block: 64px; }
  .step { gap: 18px; padding-block: 22px; }
  .step__num { flex-basis: 44px; font-size: 24px; }
  .step__title { font-size: 18px; }
  .step__desc { font-size: 15px; }

  .cta { min-height: 440px; padding: 64px 16px; }
  .cta__title { font-size: 28px; }
  .cta__sub { font-size: 16px; }
  .cta .btn { width: 100%; }

  .footer { padding-top: 56px; }
  .footer__top { gap: 32px; margin-bottom: 40px; }
  .footer__col, .footer__col--routes { flex-basis: 100%; }
  .footer__contacts { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 15px; }
  .footer__contacts a + a::before { content: none; }
  .footer__regions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
  /* one swipeable row instead of wrapping */
  .filters {
    flex-wrap: nowrap;
    gap: 6px;
    margin: -8px calc(var(--gutter) * -1) 28px;
    padding-inline: var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  /* soft fade at the right edge hints that the row scrolls */
  .filters {
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 40px), transparent);
            mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 40px), transparent);
  }
  .filters::after { content: ""; flex: 0 0 24px; } /* lets the last tab scroll clear of the fade */
  .filter { flex-shrink: 0; height: 36px; padding: 0 13px; font-size: 13px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .page-hero__body { padding-top: 24px; padding-bottom: 48px; }
  .page-hero__title { font-size: 30px; }
  .page-hero__lead { font-size: 16px; }
  .terms__list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .term { padding: 20px; }
  .terms__help { flex-direction: column; align-items: stretch; padding: 22px 20px; margin-top: 28px; }
  .terms__help .btn { width: 100%; }

  /* photo on the left; name above, price below it */
  .fleet-item { grid-template-columns: 84px minmax(0, 1fr); grid-template-rows: auto auto; gap: 4px 12px; padding: 7px 12px 7px 7px; }
  .fleet-item__thumb { grid-row: 1 / 3; }
  .fleet-item__thumb .car__image { width: 84px; }
  .fleet-item__text { grid-column: 2; align-self: end; }
  .fleet-item__price { grid-column: 2; flex-direction: row; align-items: baseline; gap: 5px; align-self: start; }
  .fleet-item__class, .fleet-item__go { display: none; }
  .fleet-item__model { font-size: 15px; overflow-wrap: normal; }
  .fleet-item__price b { font-size: 14px; }

  .details__price { padding: 14px 14px 14px 16px; }
  .details__price b { font-size: 21px; }
  .details__usd { padding: 5px 10px; font-size: 13px; }
  .details__model { font-size: 26px; }

  .modal__inner { padding: 28px 20px 24px; }
  .modal__title { padding-right: 36px; }
  .phone__num { font-size: 16px; }
}

@media (max-width: 420px) {
  .cards { gap: 10px; }
  .car__class { top: 8px; left: 8px; padding: 4px 8px; font-size: 9px; letter-spacing: 1px; }
  .car__body { padding: 12px 12px 14px; }
  .car__brand { font-size: 10px; letter-spacing: 1px; }
  .car__model { font-size: 15px; }
  .car__specs { gap: 4px 10px; }
  .car__specs li { font-size: 12px; }
  .car__price { gap: 4px; }
  .car__footer { gap: 6px; }
  .car__sum { gap: 3px; font-size: 9px; }
  .car__sum b { font-size: 13px; letter-spacing: -0.4px; }
  .car__usd { font-size: 11px; }
  .car__go { width: 30px; height: 30px; flex-shrink: 0; }
  .car__go .ico { width: 15px; height: 15px; }
}
