/* =========================================================
   Мийка CHE — автомийка · Черкаси
   Палітра: чорний / білий / сірий туман
   ========================================================= */
:root {
  --bg: #0a0a0a;
  --bg-2: #111;
  --surface: #161616;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .22);
  --text: #f4f4f2;
  --muted: #8d8d8a;
  --white: #fff;
  --black: #000;
  --radius: 4px;
  --font-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 80px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
::selection { background: var(--white); color: var(--black); }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 30px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  transition: background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn--light { background: var(--white); color: var(--black); border: 1px solid var(--white); }
.btn--light:hover { background: transparent; color: var(--white); }
.btn--outline { border: 1px solid var(--line-2); color: var(--white); }
.btn--outline:hover { border-color: var(--white); background: rgba(255, 255, 255, .06); }
.btn--sm { height: 42px; padding: 0 20px; font-size: 12px; }
.btn--block { width: 100%; }

.eyebrow { margin: 0 0 18px; font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }

/* ---------- header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); transition: background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.header.is-scrolled, .header.menu-open { background: rgba(10, 10, 10, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { width: 62px; height: auto; }
.nav { display: flex; gap: 36px; }
.nav a { font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: rgba(244, 244, 242, .7); transition: color .25s; }
.nav a:hover { color: var(--white); }
.header__actions { display: flex; align-items: center; gap: 24px; }
.header__phone { font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--radius); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--white); transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* =========================================================
   HERO — туман
   ========================================================= */
.hero {
  position: relative;
  min-height: max(100vh, 760px);
  min-height: max(100svh, 760px);
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
  /* flat matte graphite, matched to the haze at the photo's edge */
  background: #181b1a;
}
/* soft hand-off from the hero haze into the page background */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; z-index: 3; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(10, 10, 10, .55) 60%, var(--bg)); }
/* photo zone: 58% wide, dissolves seamlessly to the right */
.hero__photo {
  position: absolute; z-index: 0;
  top: 0; bottom: 0; left: 0;
  width: 58%;
  -webkit-mask-image: linear-gradient(to right, #000 40%, transparent 95%);
  mask-image: linear-gradient(to right, #000 40%, transparent 95%);
}
/* steam extension: the same photo, heavily blurred, carries the haze past the photo's right edge */
.hero__photo::before {
  content: ""; position: absolute; inset: -60px;
  background: url("assets/img/hero-sm.webp") right center / cover no-repeat;
  filter: blur(48px) saturate(.35) brightness(.85);
  opacity: .9;
}
/* the photo itself: whole and uncropped (640×1136), height = hero */
.hero__photo picture { position: relative; display: block; height: 100%; width: max-content; }
.hero__photo img {
  height: 100%; width: auto; max-width: none;
  aspect-ratio: 640 / 1136;
  object-fit: cover; object-position: left center;
  filter: saturate(.45) contrast(1.05) brightness(.92);
  -webkit-mask-image: linear-gradient(to right, #000 62%, transparent 100%);
  mask-image: linear-gradient(to right, #000 62%, transparent 100%);
  animation: photoIn 2.4s var(--ease) both;
}
@keyframes photoIn { from { opacity: 0; } }

.hero__inner { position: relative; z-index: 4; display: flex; justify-content: flex-end; padding-top: calc(var(--header-h) + 24px); padding-bottom: 56px; }
.hero__content { width: min(620px, 52%); }
.hero__title {
  margin: 0 0 20px;
  font: 700 clamp(64px, 8.4vw, 132px)/1.02 var(--font-display);
  text-transform: uppercase; letter-spacing: .01em;
  text-shadow: 0 0 40px rgba(0, 0, 0, .35);
}
.hero__title span { font-weight: 400; color: rgba(255, 255, 255, .55); }
.hero__lead { max-width: 480px; margin: 0 0 32px; color: #b9b9b6; font-size: 17px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }

.hero__locs { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2); }
.hloc { padding: 22px 22px 22px 0; display: flex; flex-direction: column; gap: 2px; }
.hloc + .hloc { padding-left: 22px; border-left: 1px solid var(--line-2); }
.hloc__label { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.hloc__addr { font: 600 24px/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.hloc__sub { font-size: 13px; color: var(--muted); }
.hloc__phone { margin-top: 10px; font-size: 17px; font-weight: 600; }
.hloc__links { display: flex; gap: 18px; margin-top: 10px; }
.hloc__links a { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #cfcfcc; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.hloc__links a:hover { color: var(--white); border-color: var(--white); }

.hero__status { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: #b9b9b6; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 4px rgba(255, 255, 255, .12); }
.status-dot.is-closed { background: transparent; border: 1px solid var(--muted); box-shadow: none; }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section__head { max-width: 820px; margin-bottom: 56px; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section__title { margin: 0; font: 700 clamp(40px, 5.4vw, 72px)/1.08 var(--font-display); text-transform: uppercase; }
.section__title--sm { font-size: clamp(34px, 4vw, 52px); }
.section__lead { margin: 18px 0 0; color: var(--muted); font-size: 17px; max-width: 560px; }

/* ---------- services ---------- */
.services__list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.service { display: flex; flex-direction: column; padding: 36px 32px 32px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); transition: background .3s, color .3s; min-height: 280px; }
.service__num { font: 500 14px var(--font-display); color: var(--muted); letter-spacing: .1em; margin-bottom: 40px; transition: color .3s; }
.service h3 { margin: 0 0 12px; font: 600 26px/1.1 var(--font-display); text-transform: uppercase; }
.service p { margin: 0 0 24px; color: var(--muted); font-size: 15px; flex: 1; transition: color .3s; }
.service__price { font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.service:hover { background: var(--white); color: var(--black); }
.service:hover p, .service:hover .service__num { color: #555; }

/* ---------- about (Lexus right) ---------- */
.about { overflow: hidden; }
.about__fog {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(45% 55% at 72% 55%, rgba(120, 120, 118, .32), transparent 70%),
    linear-gradient(0deg, rgba(140, 140, 138, .1), transparent 40%);
}
.about__car { position: absolute; right: -3%; top: 50%; width: min(56vw, 860px); translate: 0 -50%; pointer-events: none; }
.about__car img { width: 100%; filter: drop-shadow(0 50px 50px rgba(0, 0, 0, .7)); transform: translateX(var(--px, 0)); }
.about__inner { position: relative; }
.about__content { width: min(520px, 46%); }
.features { list-style: none; margin: 40px 0 0; padding: 0; counter-reset: f; border-top: 1px solid var(--line); }
.features li { counter-increment: f; display: grid; grid-template-columns: 44px 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); }
.features li::before { content: "0" counter(f); grid-row: span 2; font: 500 14px var(--font-display); color: var(--muted); padding-top: 3px; }
.features b { font-weight: 600; font-size: 17px; }
.features p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- prices (light section) ---------- */
.prices { background: #f2f2f0; color: #0a0a0a; }
.prices .eyebrow, .prices .section__lead { color: #6b6b68; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 28px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex-shrink: 0; height: 42px; padding: 0 18px; border-radius: var(--radius); border: 1px solid rgba(0, 0, 0, .18); font-size: 13px; font-weight: 600; color: #333; transition: all .2s; }
.tab:hover { border-color: #000; }
.tab.is-active { background: #000; color: #fff; border-color: #000; }
.price-panel { border: 1px solid rgba(0, 0, 0, .12); border-radius: var(--radius); background: #fff; padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; }
.price-panel.is-list { grid-template-columns: 1fr; }
.price-panel h3 { margin: 0 0 14px; font: 700 clamp(30px, 3.4vw, 44px)/1.05 var(--font-display); text-transform: uppercase; }
.price-panel__desc { color: #555; margin: 0 0 20px; }
.price-panel__note { font-size: 13px; color: #555; margin: 0; }
.price-panel__book { margin-top: 26px; }
.price-panel .btn--light { background: #000; color: #fff; border-color: #000; }
.price-panel .btn--light:hover { background: #fff; color: #000; }
.price-rows { list-style: none; margin: 0; padding: 0; }
.price-rows li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 15px 0; border-bottom: 1px solid rgba(0, 0, 0, .1); }
.price-rows li:last-child { border-bottom: 0; }
.price-rows .name { font-weight: 500; }
.price-rows .val { font: 600 21px/1 var(--font-display); white-space: nowrap; }
.price-rows .val small { font: 500 12px var(--font); color: #777; margin-right: 4px; }
.price-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.price-groups h4 { grid-column: 1 / -1; margin: 22px 0 4px; font: 600 16px var(--font-display); text-transform: uppercase; letter-spacing: .1em; color: #666; }
.price-groups h4:first-child { margin-top: 0; }
.price-groups .price-rows li { border-bottom: 1px solid rgba(0, 0, 0, .1); }

/* ---------- reviews ---------- */
.slider-nav { display: flex; gap: 8px; }
.slider-btn { width: 50px; height: 50px; border-radius: var(--radius); border: 1px solid var(--line-2); font-size: 18px; transition: all .2s; }
.slider-btn:hover { background: var(--white); color: var(--black); }
.reviews__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.reviews__track::-webkit-scrollbar { display: none; }
.review { scroll-snap-align: start; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 24px; background: var(--bg-2); }
.review::before { content: "“"; font: 700 56px/0.6 var(--font-display); color: #555; }
.review p { margin: 0; flex: 1; color: #d6d6d3; }
.review__author { padding-top: 18px; border-top: 1px solid var(--line); }
.review__author b { display: block; font-weight: 600; }
.review__author small { color: var(--muted); font-size: 13px; }

/* ---------- booking ---------- */
.booking { background: var(--bg-2); border-top: 1px solid var(--line); }
.booking__grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.booking__main { display: grid; gap: 18px; min-width: 0; }
.step { margin: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); min-width: 0; }
.step legend { float: left; width: 100%; padding: 0; margin-bottom: 22px; display: flex; align-items: center; gap: 14px; font: 600 20px var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
.step legend + * { clear: both; }
.step legend span { width: 30px; height: 30px; display: grid; place-items: center; font-size: 14px; border: 1px solid var(--line-2); border-radius: var(--radius); }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; flex-direction: column; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line-2); transition: all .2s; height: 100%; }
.seg small { color: var(--muted); font-size: 13px; }
.seg input:checked + span { background: var(--white); color: var(--black); border-color: var(--white); }
.seg input:checked + span small { color: #555; }
.seg input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 2px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row + .field-row { margin-top: 14px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > span { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field select { height: 52px; padding: 0 16px; width: 100%; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface); font-size: 16px; outline: none; transition: border-color .2s; appearance: none; -webkit-appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; text-overflow: ellipsis; }
.field select option { background: var(--surface); }
.field input::placeholder { color: #5c5c5a; }
.field input:focus, .field select:focus { border-color: var(--white); }
.field__err { display: none; font-style: normal; font-size: 12px; color: #ff6b6b; }
.field.is-invalid input { border-color: #ff6b6b; }
.field.is-invalid .field__err { display: block; }

.datetime { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.calendar { padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); }
.calendar__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.calendar__head b { font: 600 17px var(--font-display); text-transform: uppercase; letter-spacing: .06em; }
.cal-btn { width: 34px; height: 34px; border-radius: var(--radius); border: 1px solid var(--line-2); font-size: 18px; line-height: 1; }
.cal-btn:hover:not(:disabled) { border-color: var(--white); }
.cal-btn:disabled { opacity: .25; cursor: default; }
.calendar__week, .calendar__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.calendar__week span { font-size: 11px; text-transform: uppercase; color: var(--muted); padding: 6px 0; }
.day { aspect-ratio: 1; border-radius: var(--radius); font-size: 14px; font-weight: 500; position: relative; transition: background .15s; }
.day:hover:not(:disabled) { background: rgba(255, 255, 255, .08); }
.day:disabled { color: #3d3d3b; cursor: default; }
.day.is-today { box-shadow: inset 0 0 0 1px var(--line-2); }
.day.is-selected { background: var(--white); color: var(--black); font-weight: 700; }

.slots__label { margin: 0 0 12px; font-weight: 600; font-size: 14px; }
.slots__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.slot { height: 42px; border-radius: var(--radius); border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; transition: all .15s; }
.slot:hover:not(:disabled) { border-color: var(--white); }
.slot:disabled { opacity: .25; text-decoration: line-through; cursor: default; }
.slot.is-selected { background: var(--white); border-color: var(--white); color: var(--black); }
.slots__empty { grid-column: 1 / -1; color: var(--muted); font-size: 14px; padding: 20px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius); margin: 0; }

.summary { position: sticky; top: calc(var(--header-h) + 20px); }
.summary__card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--bg); display: grid; gap: 10px; }
.summary h3 { margin: 0 0 6px; font: 600 24px var(--font-display); text-transform: uppercase; }
.summary dl { margin: 0 0 4px; display: grid; }
.summary dl div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; font-weight: 600; }
.summary__price { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0 12px; }
.summary__price span { color: var(--muted); font-size: 14px; }
.summary__price b { font: 700 32px var(--font-display); }
.summary__err { margin: 0; color: #ff6b6b; font-size: 14px; }

/* ---------- contacts ---------- */
.contacts__grid { display: grid; grid-template-columns: 420px 1fr; gap: 24px; }
.contacts__info { display: grid; gap: 14px; align-content: start; }
.loc-card { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s; }
.loc-card.is-active { border-color: var(--white); }
.loc-card > b { display: block; font: 600 24px var(--font-display); text-transform: uppercase; }
.loc-card > small { color: var(--muted); font-size: 14px; }
.loc-card__phone { display: block; font: 500 24px var(--font-display); letter-spacing: .03em; margin: 12px 0 16px; }
.loc-card__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.hours { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); }
.hours h3 { margin: 0 0 10px; font: 600 18px var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
.hours ul { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; padding: 7px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
.hours li:last-child { border-bottom: 0; }
.hours li span { color: var(--muted); }
.hours li.is-today span, .hours li.is-today b { color: var(--white); font-weight: 700; }
.socials { display: flex; gap: 10px; }
.socials a { flex: 1; display: inline-flex; align-items: center; justify-content: center; height: 48px; border-radius: var(--radius); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; transition: all .2s; }
.socials a:hover { background: var(--white); color: var(--black); }

.map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); min-height: 560px; display: flex; flex-direction: column; }
.map__tabs { position: absolute; z-index: 2; top: 14px; left: 14px; display: flex; gap: 4px; padding: 4px; background: rgba(10, 10, 10, .9); border: 1px solid var(--line-2); border-radius: var(--radius); }
.map__tabs button { height: 34px; padding: 0 14px; border-radius: 2px; font-size: 12px; font-weight: 600; color: var(--muted); }
.map__tabs button.is-active { background: var(--white); color: var(--black); }
.map__frame { flex: 1; position: relative; }
.map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.9) contrast(.9); }
.map__placeholder { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 48px 48px, var(--bg-2); }
.map__placeholder b { font: 600 20px var(--font-display); text-transform: uppercase; letter-spacing: .06em; }
.map__placeholder small { color: var(--muted); }

/* ---------- vacancies ---------- */
.vacancies { padding-top: 0; }
.vacancy { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: var(--radius); border: 1px solid var(--line-2); }
.vacancy__list { list-style: none; padding: 0; margin: 22px 0 16px; display: grid; gap: 8px; }
.vacancy__list li { font-weight: 600; font-size: 17px; }
.vacancy__list li::before { content: "— "; color: var(--muted); }
.vacancy__text { margin: 0; color: var(--muted); }
.vacancy__cta { display: grid; gap: 12px; justify-items: start; }
.vacancy__cta span { color: var(--muted); font-size: 14px; }
.vacancy__ig { font-weight: 600; font-size: 14px; border-bottom: 1px solid var(--line-2); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer .logo img { width: 54px; }
.footer p { margin: 0; color: var(--muted); font-size: 14px; }

.mobile-bar { display: none; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .75); backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal__box { max-width: 420px; width: 100%; padding: 36px 30px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line-2); text-align: center; }
.modal h3 { margin: 0 0 10px; font: 600 28px var(--font-display); text-transform: uppercase; }
.modal p { margin: 0 0 24px; color: var(--muted); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .nav { gap: 24px; }
  .header__phone { display: none; }
  .booking__grid { grid-template-columns: 1fr 320px; }
  .datetime { grid-template-columns: 1fr; }
  .contacts__grid { grid-template-columns: 360px 1fr; }
  .hloc__addr { font-size: 21px; }
}

@media (max-width: 980px) {
  :root { --header-h: 70px; }
  .logo img { width: 54px; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; z-index: 49;
    flex-direction: column; gap: 0; padding: 8px 24px 24px;
    background: rgba(10, 10, 10, .97); border-bottom: 1px solid var(--line);
    transform: translateY(-10px); opacity: 0; visibility: hidden; transition: all .3s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 16px 0; font: 500 22px var(--font-display); border-bottom: 1px solid var(--line); }

  .hero__content { width: 56%; }
  .hero__locs { grid-template-columns: 1fr; }
  .hloc + .hloc { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-2); }

  .services__list { grid-template-columns: repeat(2, 1fr); }
  .about { display: flex; flex-direction: column-reverse; }
  .about__content { width: 100%; max-width: 620px; }
  .about__car { position: relative; top: auto; right: auto; translate: none; width: min(100%, 720px); margin: 0 -4% -20px auto; }
  .price-panel { grid-template-columns: 1fr; gap: 28px; }
  .reviews__track { grid-auto-columns: calc((100% - 24px) / 2); }
  .booking__grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .datetime { grid-template-columns: 1fr 1fr; }
  .contacts__grid { grid-template-columns: 1fr; }
  .map { min-height: 420px; }
  .vacancy { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 15px; padding-bottom: 80px; }
  .container { width: calc(100% - 32px); }
  .header__actions > .btn { display: none; }

  /* hero: photo fills the whole screen as a background, smoky fade at the bottom */
  .hero { min-height: 100svh; display: flex; align-items: flex-end; padding-top: var(--header-h); }
  .hero__photo {
    inset: 0 0 auto; width: 100%; height: 100svh; max-height: 100%;
    -webkit-mask-image: none; mask-image: none;
  }
  .hero__photo::before { display: none; }
  .hero__photo::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(24, 27, 26, .35) 0%, rgba(24, 27, 26, .1) 22%, rgba(24, 27, 26, .55) 50%, rgba(24, 27, 26, .92) 72%, #181b1a 100%);
  }
  .hero__photo picture { width: 100%; }
  .hero__photo img { width: 100%; aspect-ratio: auto; object-position: 30% 55%; -webkit-mask-image: none; mask-image: none; }
  .hero__inner { padding-top: 34svh; padding-bottom: 36px; }
  .hero__content { width: 100%; }
  .hero .eyebrow { margin-bottom: 26px; font-size: 11px; letter-spacing: .2em; }
  .hero__title { font-size: clamp(54px, 17vw, 80px); line-height: 1.08; margin-bottom: 14px; }
  .hero__lead { font-size: 15px; margin-bottom: 24px; }
  .hero__cta { margin-bottom: 30px; }
  .hero__cta .btn { flex: 1; padding: 0 14px; }
  .hero__locs { grid-template-columns: 1fr 1fr; }
  .hloc { padding: 18px 12px 18px 0; }
  .hloc + .hloc { padding-left: 14px; border-top: 0; border-left: 1px solid var(--line-2); }
  .hloc__addr { font-size: 17px; }
  .hloc__phone { font-size: 15px; }
  .hloc__links { flex-direction: column; gap: 8px; align-items: flex-start; }

  .section__head { margin-bottom: 36px; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .section__lead { font-size: 15px; }
  .services__list { grid-template-columns: 1fr; }
  .service { min-height: 0; padding: 28px 22px; }
  .service__num { margin-bottom: 20px; }
  .about__car { width: 112%; margin: 0 -10% -10px auto; }
  .price-groups { grid-template-columns: 1fr; }
  .price-rows .val { font-size: 18px; }
  .reviews__track { grid-auto-columns: 86%; gap: 14px; }
  .slider-nav { display: none; }
  .step { padding: 20px 16px; }
  .seg, .field-row, .datetime { grid-template-columns: 1fr; }
  .calendar { padding: 12px; }
  .slots__grid { grid-template-columns: repeat(4, 1fr); }
  .summary__card { padding: 22px 18px; }
  .loc-card__btns .btn { flex: 1; }
  .map { min-height: 360px; }
  .map__tabs { left: 10px; right: 10px; }
  .map__tabs button { flex: 1; padding: 0 6px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; inset: auto 0 0; z-index: 60;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(10, 10, 10, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { height: 50px; }
}

@media (max-width: 380px) {
  .slots__grid { grid-template-columns: repeat(3, 1fr); }
  .hloc__addr { font-size: 16px; }
}

/* =========================================================
   HERO · desktop (>= 900px): photo left on pure black, text right
   (screens below 900px keep the existing layout untouched)
   ========================================================= */
@media (min-width: 900px) {
  .hero { min-height: 100vh; min-height: 100svh; background: #09090b; }
  .hero::after { display: none; }

  /* photo at the left edge, full height. Width: 50vw (max 720px), but never wider than
     the photo's own 640×1136 proportions, so the whole car shows without zooming in */
  .hero__photo {
    left: 0; right: auto; top: 0; bottom: 0;
    height: 100%;
    width: auto;
    max-width: min(50vw, 720px);
    aspect-ratio: 640 / 1136;
    -webkit-mask-image: linear-gradient(to right, #000 55%, transparent 100%);
    mask-image: linear-gradient(to right, #000 55%, transparent 100%);
  }
  .hero__photo::before, .hero__photo::after { display: none; }
  .hero__photo picture { width: 100%; height: 100%; }
  .hero__photo img {
    width: 100%; height: 100%; aspect-ratio: auto;
    object-fit: cover; object-position: left center;
    filter: contrast(1.06);
    -webkit-mask-image: none; mask-image: none;
  }

  /* text: a 520px column starting in the right half of the screen */
  .hero__inner { justify-content: flex-start; }
  .hero__content {
    width: min(520px, 100%);
    margin-left: calc(50vw - max(24px, (100vw - 1240px) / 2) + 24px);
  }
  .hero__title { font-size: clamp(56px, 6vw, 100px); }
  .hero__locs { grid-template-columns: 1fr 1fr; }
  .hloc + .hloc { padding-left: 22px; border-top: 0; border-left: 1px solid var(--line-2); }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .hloc__addr { font-size: 19px; }
  .hloc__links { gap: 12px; }
  .hloc__links a { font-size: 11px; letter-spacing: .06em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
