/* Mobil1, тёмная тема (шаблон Жетісу).
   Цвета 2 + 1: чёрный и белый, синий Mobil на фирменных метках, красный Mobil только на том, что нажимают.
   Зелёный только у точки «открыто», свой красный у ошибок формы.
   Подключается после css/tailwind.css, поэтому эти правила сильнее утилит с той же специфичностью. */

/* Fonts live next to the page (SIL Open Font License), no request goes to Google. Geologica has every Kazakh letter. */
@font-face { font-family: "Geologica"; font-style: oblique 0deg 12deg; font-weight: 400 800; font-display: swap; src: url("../fonts/geologica-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Geologica"; font-style: oblique 0deg 12deg; font-weight: 400 800; font-display: swap; src: url("../fonts/geologica-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geologica"; font-style: oblique 0deg 12deg; font-weight: 400 800; font-display: swap; src: url("../fonts/geologica-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geologica fallback"; src: local("Arial"); size-adjust: 104%; ascent-override: 92%; descent-override: 24%; }

:root {
  interpolate-size: allow-keywords;
  color-scheme: dark;
  --bg: #0E1217;
  --surface: #151A21;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --field: #6E6E75;          /* 3:1 against the dark surfaces */
  --text: #F3F3F1;
  --text-2: #A6A6AA;         /* 7:1 on --bg */
  --brand: #2B63F0;          /* Mobil blue: logo, Kazakh subtitles, nav underline, quote marks */
  --brand-text: #7AA2FF;     /* the same blue, light enough for small text on black (8:1) */
  --accent: #D9232E;         /* Mobil red, only on what you press: WhatsApp, booking, the garage */
  --accent-press: #BC1C26;
  --on-accent: #FFFFFF;      /* 5:1 on --accent */
  --neon: 255, 74, 82;       /* red neon of the garage sign, as r, g, b for rgba() */
  --ok: #34D17A;             /* the live «open» dot */
  --danger: #FF5A5F;         /* form errors */
  --font: "Geologica", "Geologica fallback", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; scroll-padding-bottom: 16px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.is-locked { overflow: hidden; }
main > section[id]:not(#top) { scroll-margin-top: -40px; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 3px solid var(--brand-text); outline-offset: 3px; }
.nw { white-space: nowrap; }
.vh { 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 { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.skip:focus { top: 12px; }
.u-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
/* the booking link in «Гарантия сохраняется»: the light Mobil red of the garage sign, readable on the dark page */
.u-link--red { color: rgb(var(--neon)); font-weight: 500; }
@media (hover: hover) { .u-link--red:hover { color: #FF7A80; } }

/* ---------- Background: the night facade, blurred, behind the whole page ----------
   The sharp hero photo fades out into its own blurred copy, so there is no seam between sections. */
.backdrop { position: fixed; top: 0; left: 0; z-index: -2; width: 100%; height: 100vh; height: 100lvh; pointer-events: none; background: var(--bg) url("../img/bg-blur.jpg") 50% 38% / cover no-repeat; }
.backdrop::after {
  content: ""; position: absolute; inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(130% 90% at 50% 30%, rgba(14, 18, 23, .2) 0%, rgba(14, 18, 23, .8) 100%),
    linear-gradient(180deg, rgba(14, 18, 23, .45), rgba(14, 18, 23, .7));
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 500; line-height: 1.15; text-align: center; cursor: pointer; transition: background-color .15s, color .15s, box-shadow .15s, scale 150ms ease-out; -webkit-tap-highlight-color: transparent; }
.btn:active { scale: .97; }
.btn svg { flex: none; width: 20px; height: 20px; }
.btn-split { justify-content: space-between; }
.btn-sm { min-height: 44px; padding: 0 16px 0 18px; font-size: 14.5px; gap: 8px; }
.btn-md { min-height: 52px; padding: 0 20px 0 6px; gap: 12px; }
.btn-lg { min-height: 60px; padding: 0 24px 0 8px; gap: 14px; font-size: 16px; }
.btn__ico { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.btn-lg .btn__ico { width: 44px; height: 44px; }
.btn .btn__arrow { width: 18px; height: 18px; transition: translate .2s var(--ease); }
/* the one loud colour: lime on what we want pressed */
.btn.btn-accent { background-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn.btn-accent .btn__ico { background: rgba(255, 255, 255, .18); }
.btn.btn-ghost { background-color: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); }
.btn.btn-white { background-color: var(--text); color: var(--bg); }
@media (hover: hover) {
  .btn:hover .btn__arrow { translate: 3px 0; }
  .btn.btn-accent:hover { background-color: var(--accent-press); }
  .btn.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--text); }
  .btn.btn-white:hover { background-color: #fff; }
}

/* ---------- Header: transparent over the hero, dark glass once the page moves ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color .3s, box-shadow .3s; }
.site-header.is-scrolled, html.is-locked .site-header { background: rgba(14, 18, 23, .8); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.site-header__bar { display: flex; align-items: center; gap: 6px; height: 64px; padding: 0 max(12px, calc((100% - 1240px) / 2)) 0 max(20px, calc((100% - 1240px) / 2)); }
@media (min-width: 640px) { .site-header__bar { padding: 0 max(24px, calc((100% - 1240px) / 2)); } }
.logo { display: block; margin-right: auto; line-height: 1; }
.logo__name { display: block; font-size: 18px; font-weight: 700; letter-spacing: .2em; color: var(--brand-text); }
.logo__sub { display: block; margin-top: 5px; font-size: 8.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--text-2); }
@media (min-width: 640px) { .logo__name { font-size: 19px; } .logo__sub { font-size: 9px; } }
.nav { display: none; }
@media (min-width: 1024px) { .nav { display: block; margin-right: 6px; } }
.nav ul { display: flex; gap: 2px; }
.nav-link { position: relative; display: block; padding: 10px 14px; border-radius: 999px; font-size: 15px; color: var(--text-2); transition: color .15s; }
.nav-link::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 18px; height: 2px; margin-left: -9px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transition: transform .22s var(--ease); }
.nav-link[aria-current="true"] { color: var(--text); }
.nav-link[aria-current="true"]::after { transform: scaleX(1); }
@media (hover: hover) { .nav-link:hover { color: var(--text); } }
.hphone { display: none; }
@media (min-width: 1280px) { .hphone { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 15px; font-weight: 500; white-space: nowrap; } }
.hbook { display: none; }
@media (min-width: 640px) { .hbook { display: inline-flex; } }
.site-header .burger { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; border-radius: 999px; background-color: rgba(255, 255, 255, .1); }
.burger span { display: block; width: 18px; height: 1.75px; border-radius: 2px; background: var(--text); transition: transform .22s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.4px) rotate(-45deg); }
@media (min-width: 1024px) { .site-header .burger { display: none; } }

/* ---------- Mobile menu ---------- */
.menu { position: fixed; inset: 0; z-index: 45; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .2s ease-out; }
.menu.is-open { opacity: 1; }
.menu__panel { position: absolute; top: 72px; left: 8px; right: 8px; max-height: calc(100% - 84px); overflow-y: auto; padding: 8px; border-radius: 22px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -20px rgba(0, 0, 0, .8); transform-origin: 50% 0; transform: translateY(-6px) scale(.97); opacity: 0; transition: transform .22s var(--ease), opacity .18s ease-out; }
.menu.is-open .menu__panel { transform: none; opacity: 1; }
@media (min-width: 640px) { .menu__panel { left: auto; right: 16px; width: 380px; } }
@media (min-width: 1024px) { .menu { display: none !important; } }
.menu__list > li + li { border-top: 1px solid var(--line); }
.menu__link { display: flex; align-items: center; justify-content: space-between; padding: 15px 12px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--text); }
.menu__link svg { width: 18px; height: 18px; color: var(--text-2); }
.menu__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.menu__status { padding: 14px 12px 6px; font-size: 14px; color: var(--text-2); }

/* ---------- Hero: full bleed, no frame; the photo melts into the background ---------- */
.hero__card { position: relative; isolation: isolate; display: flex; flex-direction: column; padding-bottom: 8px; color: var(--text); }
@media (min-width: 768px) { .hero__card { min-height: 700px; height: 100vh; height: 100svh; max-height: 980px; padding-bottom: 0; } }
.hero__stage { position: absolute; z-index: 0; top: 0; left: 0; right: 0; height: 560px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 100%); mask-image: linear-gradient(180deg, #000 52%, transparent 100%); }
.hero__stage img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero__stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 18, 23, .7) 0%, rgba(14, 18, 23, 0) 20%, rgba(14, 18, 23, 0) 40%, rgba(14, 18, 23, .72) 72%); }
@media (min-width: 640px) { .hero__stage { height: 660px; } }
@media (min-width: 768px) {
  .hero__stage {
    left: auto; bottom: 0; width: 66%; height: auto;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%), linear-gradient(180deg, #000 70%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, #000 34%), linear-gradient(180deg, #000 70%, transparent 100%);
    mask-composite: intersect;
  }
  .hero__stage img { object-position: 50% 40%; }
  .hero__stage::after { background: linear-gradient(180deg, rgba(14, 18, 23, .6) 0%, rgba(14, 18, 23, 0) 18%); }
}
.hero__content { position: relative; z-index: 10; display: flex; flex-direction: column; padding: 360px 20px 0; }
@media (min-width: 390px) { .hero__content { padding-top: 380px; } }
@media (min-width: 640px) { .hero__content { padding: 470px 32px 0; } }
@media (min-width: 768px) { .hero__content { flex: 1 1 auto; justify-content: center; max-width: 56%; padding: 110px 0 24px max(40px, calc((100% - 1240px) / 2)); } }
@media (min-width: 1024px) { .hero__content { max-width: calc(max(48px, (100% - 1240px) / 2) + 640px); padding-left: max(48px, calc((100% - 1240px) / 2)); } }
/* live status under the garage: a dot and a line of text, no pill */
.badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--text); }
.badge__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #77777D; }
.badge[data-state="open"] .badge__dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(52, 209, 122, .18); }
/* the first screen is only the title, one line and the button. «Замена масла / и ремонтные работы / на Туркестан, 8»:
   three lines from 390 px up («и» stays with the next word), the sizes keep the middle line inside the column */
.hero__title { font-size: 31px; font-weight: 700; line-height: 1.04; letter-spacing: -.035em; color: var(--text); text-wrap: balance; }
@media (min-width: 390px) { .hero__title { font-size: 34px; } }
@media (min-width: 640px) { .hero__title { font-size: 48px; } }
@media (min-width: 768px) { .hero__title { font-size: 36px; } }
@media (min-width: 1024px) { .hero__title { font-size: 56px; } }
@media (min-width: 1280px) { .hero__title { font-size: 60px; } }
/* one short line in small type under the title: they also sell goods */
.hero__lead { margin-top: 12px; max-width: 30rem; font-size: 14px; line-height: 1.5; color: var(--text-2); }
@media (min-width: 640px) { .hero__lead { margin-top: 18px; font-size: 15px; } }
@media (min-width: 1024px) { .hero__lead { font-size: 16px; } }
.hero__cta { display: flex; margin-top: 26px; }
@media (min-width: 1024px) { .hero__cta { margin-top: 36px; } }
/* phones: as compact as the card buttons (btn-md), sized to its text instead of a full-width bar */
@media (max-width: 767px) {
  .hero__cta .btn-lg { min-height: 52px; padding: 0 20px 0 6px; gap: 12px; font-size: 15px; }
  .hero__cta .btn-lg .btn__ico { width: 40px; height: 40px; }
}

/* section titles, their text and the shop photo slide in from the left once they come into view */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; translate: -56px 0; transition: opacity .7s var(--ease), translate .9s var(--ease); transition-delay: calc(var(--rd, 0) * 120ms); }
  .js .reveal.is-in { opacity: 1; translate: 0 0; }
}
.sec-lead p + p { margin-top: 10px; }

/* the one orchestrated moment on load; everything else stays put */
@media (prefers-reduced-motion: no-preference) {
  /* backwards, not both: once done, the elements fall back to their own (identical) style and drop the GPU layers
     a filling animation would keep for the whole visit */
  .js .rise { animation: rise .8s var(--ease) backwards; animation-delay: calc(120ms + var(--d, 0) * 90ms); }
  .js .hero__stage img { animation: settle 1.6s var(--ease) backwards; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }

/* ---------- Section heads ---------- */
.h2 { font-size: 34px; font-weight: 700; line-height: 1.02; letter-spacing: -.035em; color: var(--text); }
@media (min-width: 640px) { .h2 { font-size: 44px; } }
@media (min-width: 1024px) { .h2 { font-size: 56px; } }
.sec-head { display: grid; gap: 16px; }
@media (min-width: 768px) { .sec-head { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: end; gap: 32px; } }
@media (min-width: 1024px) { .sec-head { gap: 48px; } }
.sec-lead { max-width: 34rem; font-size: 16px; line-height: 1.6; color: var(--text-2); }
@media (min-width: 1024px) { .sec-lead { font-size: 18px; } }

/* ---------- «Что делаем»: sticky stacking cards ---------- */
.svc-grid { margin-top: 40px; }
@media (min-width: 768px) { .svc-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; margin-top: 56px; } }
@media (min-width: 1024px) { .svc-grid { gap: 48px; } }
.track-col { display: none; }
@media (min-width: 768px) { .track-col { display: block; } }
.stack { container-type: inline-size; }
.stack__item { position: sticky; top: 76px; }
@media (min-width: 768px) { .stack__item { top: 90px; } }
/* services: equal rows, the gap is row-gap (a margin on the last item would stretch only that card) */
.stack[data-stack] { display: grid; grid-auto-rows: 1fr; row-gap: 96px; }
.stack[data-stack] > .stack__item { margin-bottom: 0; }
.stack[data-stack] .svc { height: 100%; }
/* a card taller than the room left under the pile would hide its own button: then the stack lies flat */
.stack.is-flat .stack__item { position: relative; top: auto; }
.svc { position: relative; display: flex; flex-direction: column; padding: 8px; border-radius: 24px; background: linear-gradient(180deg, #181D24 0%, #12161C 100%); box-shadow: 0 0 0 1px var(--line), 0 -14px 30px -22px rgba(0, 0, 0, .9), 0 26px 50px -30px rgba(0, 0, 0, .95); transform-origin: 50% 0; transform: scale(calc(1 - .06 * var(--p, 0))); }
.svc::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #000; opacity: calc(var(--p, 0) * .5); pointer-events: none; }
/* own layers (.is-live, set by the script) from half a screen below the screen until the card is fully covered, so
   darkening and shrinking never repaint it and no layer is made or dropped mid-transition; a layer for every card in
   both piles (22 big layers at once) was too much for mid-range phone GPUs. A fully covered card is not drawn at all. */
.svc.is-live { will-change: transform; }
.svc.is-live::after { will-change: opacity; }
.svc.is-gone { opacity: 0; }
.svc__media { order: -1; height: 150px; overflow: hidden; border-radius: 18px; background: #0B0F14; }
.svc__media img { width: 100%; height: 100%; object-fit: cover; }
.svc__media picture { display: contents; } /* the AVIF wrapper adds no box, the img still fills the frame */
.svc__body { display: flex; flex-direction: column; align-items: flex-start; padding: 18px 12px 12px; }
.svc__kk { margin-bottom: 8px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-text); }
.svc__title { font-size: 22px; font-weight: 700; line-height: 1.1; letter-spacing: -.025em; color: var(--text); }
.svc__text { max-width: 34ch; margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.svc__btn { margin-top: 18px; }
@container (min-width: 520px) {
  .svc { flex-direction: row; min-height: 340px; padding: 10px; border-radius: 28px; }
  .svc__body { flex: 1 1 56%; padding: 28px 22px 22px 26px; }
  .svc__media { order: 0; flex: 0 0 44%; height: auto; border-radius: 20px; }
  .svc__title { font-size: 30px; }
  .svc__text { font-size: 16px; }
  .svc__btn { margin-top: auto; }
  .svc__body > :nth-last-child(2) { margin-bottom: 28px; } /* keeps air above the button when the text is long */
}
@media (prefers-reduced-motion: reduce) { .svc { transform: none; } }

/* ---------- «Что на полках?»: the whole wall, then the goods one by one ----------
   A sticky pile like «Что делаем»: every screen sticks at the same height, the next one slides over it and the
   covered one goes back into the depth (moves up a little, shrinks, darkens, fades out; --p comes from the script).
   All screens are as tall as the screen allows, so a new one always covers the old one completely.
   The car and the road wait while the pile runs (the road code reads the pile). Phones: inside the 20 px side
   margins, the car's lanes. Desktop: the right edge is the car's lane, so below 1400 px the block keeps 28 px of
   extra room on the right. */
@media (min-width: 768px) and (max-width: 1399px) { .shelf-wrap { padding-right: 28px; } }
.shelf { display: grid; row-gap: 28px; margin-top: 40px; --shelf-h: clamp(440px, calc(100svh - 96px), 720px); }
@media (min-width: 768px) { .shelf { margin-top: 56px; --shelf-h: clamp(480px, calc(100vh - 130px), 760px); } }
.shelf > .stack__item { height: var(--shelf-h); }
.shelf__card {
  position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 24px; background: #121821;
  box-shadow: 0 0 0 1px var(--line), 0 -18px 40px -26px rgba(0, 0, 0, .9), 0 30px 60px -34px rgba(0, 0, 0, .95);
  transform-origin: 50% 0; transform: translateY(calc(var(--p, 0) * -22px)) scale(calc(1 - .12 * var(--p, 0)));
  opacity: calc(1 - max(0, var(--p, 0) - .45) * 1.8);
}
.shelf__card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #000; opacity: calc(var(--p, 0) * .55); pointer-events: none; }
/* own GPU layers and the covered screen that is not drawn work as in «Что делаем» (.is-live, .is-gone) */
.shelf__card.is-live { will-change: transform, opacity; }
.shelf__card.is-live::after { will-change: opacity; }
.shelf__card.is-gone { opacity: 0; }
@media (min-width: 768px) { .shelf__card { border-radius: 28px; } }
.shelf__card--wall img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.shelf__media { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; background: #0B0F14; }
.shelf__media img { width: 100%; height: 100%; object-fit: cover; }
.shelf__card picture { display: contents; } /* same for the shelf photos */
.shelf__body { display: flex; flex-direction: column; align-items: flex-start; padding: 20px 20px 22px; }
.shelf__title { font-size: 28px; font-weight: 700; line-height: 1.05; letter-spacing: -.03em; color: var(--text); }
.shelf__text { max-width: 32ch; margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
/* «Спросить наличие»: small but red, no WhatsApp icon, only on the goods */
.shelf__ask { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin-top: 16px; padding: 0 14px 0 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 600; line-height: 1.1; transition: background-color .15s, scale 150ms ease-out; -webkit-tap-highlight-color: transparent; }
.shelf__ask .btn__arrow { flex: none; width: 16px; height: 16px; transition: translate .2s var(--ease); }
.shelf__ask:active { scale: .97; }
@media (hover: hover) { .shelf__ask:hover { background-color: var(--accent-press); } .shelf__ask:hover .btn__arrow { translate: 3px 0; } }
@media (min-width: 768px) {
  /* desktop: text on the left, the product on the right, like the reference rows */
  .shelf__card:not(.shelf__card--wall) { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .shelf__media { grid-column: 2; grid-row: 1; }
  .shelf__body { grid-column: 1; grid-row: 1; justify-content: flex-end; padding: 40px 32px; }
  .shelf__title { font-size: 36px; }
  .shelf__text { font-size: 17px; }
  .shelf__ask { margin-top: 22px; }
}
@media (min-width: 1024px) { .shelf__body { padding: 56px 48px; } .shelf__title { font-size: 48px; } .shelf__text { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) { .shelf__card { transform: none; opacity: 1; } .shelf__card::after { opacity: 0; } }


/* ---------- «Что пишут в 2ГИС»: the rating counts up, the reviews ride in a swipe strip under it ----------
   Desktop: title in the left 2fr column, rating, strip and link in the right 3fr one; the gap is the car's lane. */
/* minmax(0, …): the strip inside may be much wider than the screen, the column must not grow with it */
.reviews { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 768px) { .reviews { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 48px; align-items: start; } }
.score__row { display: flex; align-items: flex-end; gap: 16px; }
.score__num { font-size: 88px; font-weight: 700; line-height: .8; letter-spacing: -.05em; font-variant-numeric: tabular-nums; color: var(--text); }
@media (min-width: 1024px) { .score__num { font-size: 104px; } }
.stars { position: relative; display: inline-flex; color: rgba(255, 255, 255, .2); }
.stars__row { display: flex; gap: 3px; }
.stars__fill { position: absolute; top: 0; left: 0; width: calc(var(--r, 5) * 20%); overflow: hidden; color: var(--text); }
.stars svg { flex: none; width: 18px; height: 18px; }
.score__meta { margin-top: 10px; font-size: 14px; line-height: 1.4; color: var(--text); font-variant-numeric: tabular-nums; }
.score__line { display: block; }
.score__date { margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--text-2); }
/* The ribbon. Without JS / with reduced motion the track is a swipe strip with snapping. With JS (.is-marquee) the
   box clips and the track drifts left forever: the script clones the cards behind the originals and slides the track
   by exactly one set (Web Animations, on the compositor), so there is no jump back. Card widths come from the box
   (cqi), so they stay the same whether the track is a scroller or a long ribbon. */
.quotes { position: relative; margin-top: 28px; container-type: inline-size; }
.quotes__track { position: relative; display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.quotes__track::-webkit-scrollbar { display: none; }
.quotes__track:focus-visible { outline-offset: -3px; border-radius: 16px; }
@media (hover: hover) and (pointer: fine) { .quotes__track { cursor: grab; } }
.quotes__track.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; -webkit-user-select: none; }
/* card width keeps a quote at three lines: 88 % on phones, wider cards where the right column is narrow */
.rv { display: flex; flex: 0 0 88cqi; scroll-snap-align: start; }
@media (min-width: 640px) { .rv { flex-basis: calc((100cqi - 12px) / 1.6); } }
@media (min-width: 768px) { .rv { flex-basis: calc((100cqi - 12px) / 1.25); } }
@media (min-width: 1024px) { .quotes__track { gap: 16px; } .rv { flex-basis: calc((100cqi - 16px) / 1.6); } }
@media (min-width: 1280px) { .rv { flex-basis: calc((100cqi - 16px) / 2.2); } }
/* the drifting ribbon: a finger or the mouse can drag it (it drifts on afterwards), vertical swipes still scroll
   the page; the edges fade so cards slide in and out softly */
.quotes.is-marquee { overflow: hidden; touch-action: pan-y; cursor: grab; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); }
@media (min-width: 768px) { .quotes.is-marquee { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%); } }
.quotes.is-marquee .quotes__track { width: max-content; overflow: visible; scroll-snap-type: none; cursor: inherit; user-select: none; -webkit-user-select: none; }
.quotes.is-marquee.is-held { cursor: grabbing; }
.rv__card { display: flex; flex-direction: column; width: 100%; padding: 18px 16px 20px; }
@media (min-width: 640px) { .rv__card { padding: 20px 18px 22px; } }
.rv__head { display: flex; align-items: center; gap: 12px; }
.rv__ava { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); font-size: 16px; font-weight: 700; color: var(--text); }
.rv__who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.rv__name { font-size: 15px; font-weight: 600; color: var(--text); }
.rv__date { font-size: 13px; color: var(--text-2); }
.rv__stars { display: flex; gap: 2px; margin-top: 14px; color: var(--text); }
.rv__stars svg { width: 15px; height: 15px; }
.rv__meta { margin-top: 8px; font-size: 13px; font-weight: 500; line-height: 1.35; color: var(--brand-text); }
.rv__text { display: -webkit-box; margin-top: 8px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: 14.5px; line-height: 1.5; color: var(--text); }
@media (min-width: 640px) { .rv__text { font-size: 15px; } }
.rv-link { margin-top: 20px; }
/* 320 px phones: one more line rather than a cut sentence */
@media (max-width: 359px) { .rv__text { -webkit-line-clamp: 4; } .cat__text { -webkit-line-clamp: 3; } }
/* the cards rise one after another, 100 ms apart, once the rating starts counting (.will-in comes from the script) */
@media (prefers-reduced-motion: no-preference) {
  /* only the first four cards rise (the ones on screen); the other 36, clones included, just stand there, so the
     moment the reviews show does not start 40 animations at once */
  .reviews.will-in .rv:nth-child(-n+4) { opacity: 0; translate: 0 20px; transition: opacity .6s var(--ease), translate .6s var(--ease); transition-delay: calc((var(--i, 0) + 1) * 100ms); }
  .reviews.will-in.is-in .rv:nth-child(-n+4) { opacity: 1; translate: 0 0; }
}

/* ---------- Записаться: the form is a separate tab over the page (<dialog>) ----------
   Phones: full screen, like a new page. Desktop: a panel in the middle. It grows out of the garage. */
.book { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); color: var(--text); }
.book::backdrop { background: rgba(5, 5, 7, .7); }
@media (min-width: 768px) {
  .book { width: min(760px, calc(100% - 48px)); height: fit-content; max-height: calc(100% - 48px); margin: auto; border-radius: 28px; background: #131820; box-shadow: 0 0 0 1px var(--line), 0 40px 120px -20px rgba(0, 0, 0, .9); }
  .book::backdrop { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
}
/* the inner box fills the dialog, so a click on the dialog itself can only be a click on the backdrop */
.book__inner { min-height: 100%; padding: 0 20px calc(28px + env(safe-area-inset-bottom)); }
@media (min-width: 640px) { .book__inner { padding: 0 32px 32px; } }
@media (min-width: 768px) { .book__inner { min-height: 0; padding: 0 40px 40px; } }
.book__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 -20px; padding: max(14px, env(safe-area-inset-top)) 20px 14px; border-bottom: 1px solid var(--line); background: rgba(14, 18, 23, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
@media (min-width: 640px) { .book__head { margin: 0 -32px; padding: 18px 32px; } }
@media (min-width: 768px) { .book__head { margin: 0 -40px; padding: 22px 40px; background: rgba(19, 24, 32, .94); } }
.book__title { font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; color: var(--text); }
@media (min-width: 768px) { .book__title { font-size: 34px; } }
.book__title:focus { outline: none; }
.book__close { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; background-color: rgba(255, 255, 255, .08); color: var(--text); cursor: pointer; }
.book__close svg { width: 18px; height: 18px; }
@media (hover: hover) { .book__close:hover { background-color: rgba(255, 255, 255, .16); } }
.book__lead { max-width: 34rem; margin: 18px 0 26px; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
/* browsers without <dialog>: the form simply stands under the garage */
.no-dialog .book { position: static; display: block; width: auto; height: auto; max-width: 760px; margin: 32px auto 0; border-radius: 24px; background: #131820; }
.form { display: grid; gap: 28px; }
.label { display: block; margin-bottom: 10px; padding: 0; font-size: 15px; font-weight: 600; color: var(--text); }
.opt { font-weight: 400; color: var(--text-2); }
.group { min-width: 0; margin: 0; padding: 0; border: 0; }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chips > .chip:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 640px) { .chips { display: flex; flex-wrap: wrap; } }
.chip { position: relative; display: block; }
.chip input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chip span { display: flex; align-items: center; gap: 9px; height: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--field); border-radius: 14px; background: rgba(255, 255, 255, .02); color: var(--text); font-size: 15px; line-height: 1.2; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, scale 150ms ease-out; user-select: none; -webkit-user-select: none; }
@media (max-width: 374px) { .chips .chip span { gap: 7px; padding: 10px 9px; font-size: 14px; } }
.chip span::before { content: ""; flex: none; width: 15px; height: 15px; border: 1.5px solid currentColor; border-radius: 4px; background-repeat: no-repeat; background-position: center; }
.chip input[type="radio"] + span::before { border-radius: 50%; }
.chip input:checked + span { border-color: var(--text); background: var(--text); color: var(--bg); }
.chip input:checked + span::before { border-color: var(--bg); background-color: var(--bg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.2l2.6 2.6L11 4.4' fill='none' stroke='%23F3F3F1' stroke-width='2'/%3E%3C/svg%3E"); }
.chip input[type="radio"]:checked + span::before { background-image: none; box-shadow: inset 0 0 0 3px var(--text); }
.chip input:focus-visible + span { outline: 3px solid var(--brand-text); outline-offset: 2px; }
.chip input:disabled + span { opacity: .4; cursor: not-allowed; }
.chip span:active { scale: .97; }
@media (hover: hover) { .chip input:not(:checked):not(:disabled) + span:hover { border-color: var(--text); } }
.chips-note { margin: 8px 0 0; font-size: 14px; color: var(--text-2); }
.grow { height: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: height 200ms var(--ease), opacity 160ms ease-out, visibility 0s linear 200ms; }
.grow.is-open { height: auto; opacity: 1; visibility: visible; transition-delay: 0s; }
.grow__inner { padding-top: 12px; }
.grow__inner > .chips-note { margin: 0 0 8px; }
.input { display: block; width: 100%; min-height: 54px; padding: 12px 18px; border: 1.5px solid var(--field); border-radius: 16px; background: #0B0F14; color: var(--text); font-size: 16px; line-height: 1.3; transition: border-color .15s; }
.input::placeholder { color: #8A8A90; opacity: 1; }
.input:focus { border-color: var(--text); }
.has-error .input, .has-error .chip span, .has-error .check-box { border-color: var(--danger); }
.error { margin-top: 8px; font-size: 14.5px; font-weight: 500; color: var(--danger); }
.error:empty { margin: 0; } /* stays in the accessibility tree, so the live region is ready before the text arrives */
.shake { animation: shake 360ms ease-in-out; }
@keyframes shake { 0%, 100% { translate: 0; } 17% { translate: -10px; } 33% { translate: 10px; } 50% { translate: -6px; } 67% { translate: 6px; } 83% { translate: -3px; } }
.check { display: flex; align-items: flex-start; gap: 12px; margin: -10px 0; padding: 10px 0; font-size: 15px; line-height: 1.45; color: var(--text); cursor: pointer; }
.check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.check-box { flex: none; width: 24px; height: 24px; border: 1.5px solid var(--field); border-radius: 7px; background: #0B0F14; }
.check input:checked + .check-box { border-color: var(--text); background: var(--text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.2l2.6 2.6L11 4.4' fill='none' stroke='%230E1217' stroke-width='2'/%3E%3C/svg%3E") center / 16px no-repeat; }
.check input:focus-visible + .check-box { outline: 3px solid var(--brand-text); outline-offset: 2px; }

/* year ruler: a drafting scale, the whole strip is draggable */
.ruler { position: relative; user-select: none; -webkit-user-select: none; }
.ruler__value { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.ruler__num { display: inline-flex; height: 52px; overflow: hidden; font-size: 52px; font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--text); }
.ruler__num.is-empty { color: var(--text-2); }
.ruler__slot { position: relative; display: inline-block; width: .62em; text-align: center; }
.ruler__slot span { display: block; }
.ruler__clear { margin-left: auto; padding: 10px 0; border: 0; font-size: 14px; font-weight: 500; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ruler__strip { position: relative; height: 72px; overflow: hidden; border: 1.5px solid var(--field); border-radius: 16px; background: #0B0F14; cursor: grab; touch-action: pan-y; transition: border-color .15s; }
.ruler__strip:active { cursor: grabbing; }
.ruler__track { position: absolute; top: 0; left: 0; height: 100%; will-change: transform; }
.ruler__track.is-fast b { opacity: .35; }
.tick { position: absolute; top: 0; width: 1.5px; height: 12px; background: var(--field); }
.tick.is-major { height: 24px; background: var(--text-2); }
.tick b { position: absolute; top: 30px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 500; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ruler__needle { position: absolute; top: 0; left: 50%; width: 2px; height: 44px; margin-left: -1px; border-radius: 0 0 2px 2px; background: var(--text); pointer-events: none; }
.ruler:not(.is-empty) .ruler__needle { background: var(--accent); }
@media (hover: hover) { .ruler__strip:hover { border-color: var(--text); } }

.preview { padding: 14px 16px; border-radius: 6px 18px 18px 18px; background: rgba(255, 255, 255, .05); font-size: 15px; line-height: 1.45; color: var(--text); }
.preview__label { margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.preview p { overflow: hidden; }
.preview .ln { height: 0; opacity: 0; transition: height 220ms var(--ease), opacity 220ms var(--ease); }
.preview .ln.is-on { height: auto; opacity: 1; }
.submit-row { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
@media (min-width: 640px) { .submit-row { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px 24px; } }
.plain-link { align-self: center; padding: 8px 0; font-size: 15px; font-weight: 500; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.form-note { width: 100%; font-size: 14px; color: var(--text-2); }

/* ---------- Как доехать: one big button to 2GIS on the facade photo, the address under it ---------- */
.route { max-width: 1240px; margin: 0 auto; }
.route__btn { position: relative; isolation: isolate; display: block; height: 190px; margin-top: 24px; overflow: hidden; border-radius: 24px; box-shadow: 0 0 0 1px var(--line); -webkit-tap-highlight-color: transparent; transition: scale 150ms ease-out; }
.route__btn:active { scale: .99; }
@media (min-width: 768px) { .route__btn { max-width: 640px; height: 230px; margin-top: 32px; border-radius: 28px; } }
.route__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform .6s var(--ease); }
.route__btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 18, 23, .1) 0%, rgba(14, 18, 23, .72) 100%); }
.route__label { position: absolute; left: 12px; right: 12px; bottom: 12px; }
@media (min-width: 768px) { .route__label { left: 16px; right: auto; bottom: 16px; } }
@media (hover: hover) { .route__btn:hover .route__img { transform: scale(1.04); } .route__btn:hover .btn__arrow { translate: 3px 0; } }
.route__address { margin-top: 14px; font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--text); }
@media (min-width: 640px) { .route__address { font-size: 20px; } }

/* ---------- Road, car, smoke ----------
   The road layer lies under the page content (z-index -1), above the blurred background.
   Inside it: asphalt and tracks z-0, smoke z-10, car z-20; the garage roof is page content at z-30. */
.road { position: absolute; top: 0; left: 0; z-index: -1; width: 100%; height: 0; overflow-x: clip; pointer-events: none; visibility: hidden; }
.road.is-ready { visibility: visible; }
.road__world, .road__inner { position: sticky; top: 0; width: 100%; height: 0; }
.road__svg { position: absolute; top: 0; left: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; }
.road__asphalt { fill: none; stroke: #26272C; stroke-linecap: round; stroke-linejoin: round; }
.road__lines { fill: none; stroke: rgba(255, 255, 255, .42); }
.road__track { fill: none; stroke: rgba(0, 0, 0, .62); }
/* bands in the asphalt colour over the tracks the car has not laid yet (same colour as .road__asphalt) */
.road__cover { fill: none; stroke: #26272C; stroke-linecap: butt; stroke-linejoin: round; }
.car { position: absolute; top: 0; left: 0; z-index: 20; width: var(--car-w, 22px); height: var(--car-l, 42px); margin: calc(var(--car-l, 42px) / -2) 0 0 calc(var(--car-w, 22px) / -2); will-change: transform; }
.car img { width: 100%; height: 100%; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); }
/* headlights: warm soft light in front of the bonnet, one patch per lamp */
.car::before { content: ""; position: absolute; left: 50%; bottom: 88%; width: 190%; height: 95%; transform: translateX(-50%); background: radial-gradient(ellipse 32% 70% at 33% 100%, rgba(255, 240, 200, .6), rgba(255, 240, 200, 0) 72%), radial-gradient(ellipse 32% 70% at 67% 100%, rgba(255, 240, 200, .6), rgba(255, 240, 200, 0) 72%); filter: blur(2px); transition: opacity .6s ease; }
/* parked while a pile runs: engine off, the headlights go out; they come back on when the car drives on */
.car.is-parked::before { opacity: .12; }
/* the canvas sits inside the road layer: above asphalt and tracks, under the car */
.smoke { position: fixed; top: 0; left: 0; z-index: 10; width: 100%; height: 100%; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .road, .smoke { display: none; } }

/* ---------- Въезд в бокс над формой (вид сверху) ----------
   The roof is page content at z-index 30: the road layer passes under it, so the car really disappears inside.
   Phones: the roof runs edge to edge. */
/* the whole garage is a button: the roof opens the booking tab */
.garage { position: relative; z-index: 30; display: block; width: calc(100% + 40px); height: 112px; margin: 0 -20px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: center; cursor: pointer; overflow-x: clip; -webkit-tap-highlight-color: transparent; transition: translate .25s var(--ease), scale 150ms ease-out; }
@media (min-width: 640px) { .garage { width: calc(100% + 48px); height: 128px; margin: 0 -24px; } }
@media (min-width: 768px) { .garage { width: 100%; max-width: 1240px; height: 150px; margin: 0 auto; overflow-x: visible; } }
.garage:active { scale: .99; }
.garage:focus-visible { outline-offset: 4px; }
.garage-meta { max-width: 1240px; margin: 16px auto 0; }
/* matte graphite a step lighter than the page, faint standing-seam lines, a soft cast shadow */
.garage__roof {
  position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0 47px, rgba(255, 255, 255, .04) 47px 48px),
    linear-gradient(180deg, #2A2E35 0%, #1F2329 55%, #1A1D22 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 255, 255, .04), 0 30px 60px -28px rgba(0, 0, 0, .9);
}
@media (min-width: 768px) { .garage__roof { border-radius: 28px; } }
/* the call to action lit on the roof, in the action colour */
.garage__name { display: inline-flex; align-items: center; gap: 12px; padding: 0 16px; font-size: 19px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; color: rgb(var(--neon)); text-shadow: 0 0 18px rgba(var(--neon), .35); }
@media (min-width: 640px) { .garage__name { font-size: 26px; } }
@media (min-width: 1024px) { .garage__name { gap: 16px; font-size: 36px; } }
.garage__arrow { flex: none; width: 1em; height: 1em; transition: translate .2s var(--ease); }
/* while the car is on its way the sign is off; when the car is inside it lights up with a short neon flicker.
   Without the road (no JS, reduced motion) .road-on never appears and the sign stays lit. */
.garage__name { transition: color .35s, text-shadow .35s; }
.road-on .garage__name { color: rgba(243, 243, 241, .6); text-shadow: none; }
.road-on .garage.is-lit .garage__name { color: rgb(var(--neon)); text-shadow: 0 0 2px rgba(var(--neon), .9), 0 0 22px rgba(var(--neon), .5); animation: neon-on .7s linear both; }
@keyframes neon-on { 0% { opacity: .35; } 10% { opacity: 1; } 20% { opacity: .5; } 32% { opacity: 1; } 44% { opacity: .75; } 56%, 100% { opacity: 1; } }
@media (hover: hover) { .road-on .garage:hover .garage__name { color: rgb(var(--neon)); } }
@media (prefers-reduced-motion: reduce) { .garage.is-lit .garage__name { animation: none; } }
@media (hover: hover) {
  .garage:hover { translate: 0 -2px; }
  .garage:hover .garage__arrow { translate: 4px 0; }
  .garage:hover .garage__roof { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 255, 255, .04), 0 0 0 1.5px rgba(var(--neon), .45), 0 30px 60px -28px rgba(0, 0, 0, .9); }
}
/* the gate sits on the roof's front edge, right where the road comes in (--gate-x comes from the script) */
.garage__gate { position: absolute; top: 0; left: var(--gate-x, 50%); z-index: 1; width: var(--gate-w, 30px); height: 16px; transform: translateX(-50%); }
@media (min-width: 768px) { .garage__gate { left: var(--gate-x, 40%); width: var(--gate-w, 64px); height: 22px; } }
.garage__opening, .garage__door { position: absolute; inset: 0; border-radius: 0 0 6px 6px; }
/* dark doorway with a warm LED strip along its edge */
.garage__opening { background: linear-gradient(180deg, #050607, #111316); box-shadow: inset 0 2px 0 rgba(255, 243, 214, .95), 0 0 12px rgba(255, 236, 196, .35); }
/* roller door: rolls up into the box (scaleY to 0 towards the inside) */
.garage__door { transform-origin: 50% 100%; background: repeating-linear-gradient(180deg, #737880 0 2px, #5B6067 2px 4px); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.garage__light { position: absolute; left: 50%; bottom: 100%; width: 300%; height: 70px; transform: translateX(-50%); opacity: .3; pointer-events: none; background: radial-gradient(ellipse 50% 100% at 50% 100%, rgba(255, 238, 200, .6), rgba(255, 238, 200, 0) 72%); }
@media (min-width: 768px) { .garage__light { height: 84px; } }
@media (prefers-reduced-motion: reduce) { .garage__door { transform: scaleY(0); } .garage__light { opacity: .9; } }
/* when the car is inside: the garage lights up */
.garage .garage__roof { transition: box-shadow .7s var(--ease); }
.garage.is-lit .garage__roof { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 255, 255, .04), 0 0 0 1.5px rgba(var(--neon), .6), 0 0 48px -8px rgba(var(--neon), .45), 0 30px 60px -28px rgba(0, 0, 0, .9); }

/* ---------- Footer ---------- */
.site-footer { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .site-footer { padding-bottom: 40px; } }

/* phones and tablets: no live blur under the header and the booking head. A denser background looks the
   same on this dark page and spares the phone's GPU from blurring the moving page on every frame. */
@media (max-width: 1023px) {
  .site-header.is-scrolled, html.is-locked .site-header { background: rgba(14, 18, 23, .94); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (max-width: 767px) { .book__head { background: rgba(14, 18, 23, .97); -webkit-backdrop-filter: none; backdrop-filter: none; } }

@media (prefers-reduced-motion: reduce) {
  .btn:active, .chip span:active { scale: none; }
  .shelf__ask, .shelf__ask .btn__arrow, .car::before { transition: none; }
  .shake { animation: none; }
  .grow, .preview .ln, .menu, .menu__panel, .copy__top, .copy__bottom, .site-header, .sheet { transition: none; }
}
