:root {
  --accent: #3B82F6;
  --accent-2: #22D3EE;
  --accent-rgb: 59, 130, 246;
  --bg: #070B14;
  --bg-2: #0C1220;
  --fg: #F1F5F9;
  --fg-2: #A5B1C2;
  --fg-3: #6B7A90;
  --glass: rgba(255, 255, 255, .045);
  --glass-2: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --ok: #34D399;
  --warn: #FBBF24;
  --err: #F87171;
  --r: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --display: Unbounded, Manrope, system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0; min-height: 100vh; overflow-x: clip;
  font: 16px/1.5 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--fg); background: var(--bg);
  -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 8px; }

/* Фоновое свечение */
.bgfx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glow { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(90px); opacity: .22; pointer-events: none; }
.glow--a { top: 30vh; left: -40vmax; background: var(--accent); animation: drift 18s ease-in-out infinite alternate; }
.glow--b { top: 90vh; right: -45vmax; background: var(--accent-2); opacity: .12; animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(8vmax, -10vmax) scale(1.1); } }

/* ===== Первый экран ===== */
.hero { position: relative; display: flex; align-items: flex-start; isolation: isolate; overflow: hidden; }
.hero__bg {
  position: absolute; inset: -6% 0 0; z-index: -2;
  background: radial-gradient(120% 80% at 70% 20%, rgba(var(--accent-rgb), .35), transparent 60%);
  background-size: cover; background-position: center;
  transform: scale(1.08); animation: kenburns 20s ease-out forwards;
  will-change: transform;
}
@keyframes kenburns { to { transform: scale(1); } }
.hero.has-photo .hero__grid, .hero.has-photo .streak { display: none; }

/* Машина */
.car { position: relative; width: calc(100% + 16px); max-width: 580px; margin: 4px -8px 18px; animation: carIn 1.2s var(--ease) both; }
@keyframes carIn { from { opacity: 0; transform: translateX(-40px); filter: blur(6px); } }
.car__img { position: relative; z-index: 1; display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .65)) saturate(1.05); }
.car__floor {
  position: absolute; left: 4%; right: 4%; bottom: -10%; height: 36%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), .55), rgba(var(--accent-rgb), .12) 60%, transparent);
  filter: blur(6px);
}
.car__floor::after {
  content: ""; position: absolute; left: 6%; right: 6%; top: 50%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent); opacity: .8;
}
.car__shine {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  -webkit-mask: center / 100% 100% no-repeat; mask: center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 48%, transparent 60%) no-repeat;
  background-size: 250% 100%; background-position: 150% 0;
  animation: carShine 5s var(--ease) 1.4s infinite;
}
@keyframes carShine { 0% { background-position: 150% 0; } 40%, 100% { background-position: -60% 0; } }
.hero.has-photo .car { display: none; }
.credit { margin: 8px 0 0; color: var(--fg-3); font-size: 11px; }
.credit a { color: inherit; }
.hero__grid {
  position: absolute; left: -50%; right: -50%; bottom: -10%; height: 70%;
  background-image:
    linear-gradient(rgba(var(--accent-rgb), .35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), .35) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(380px) rotateX(62deg); transform-origin: 50% 100%;
  -webkit-mask: linear-gradient(0deg, transparent 0%, #000 30%, transparent 85%); mask: linear-gradient(0deg, transparent 0%, #000 30%, transparent 85%);
  animation: roadgrid 2.4s linear infinite;
}
@keyframes roadgrid { to { background-position: 0 48px, 0 0; } }
.streak {
  position: absolute; left: -40%; height: 2px; width: 40%; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-2), #fff);
  filter: drop-shadow(0 0 6px var(--accent-2)); opacity: 0;
  animation: streak 4.5s var(--ease) infinite;
}
.streak--1 { top: 38%; animation-delay: .8s; }
.streak--2 { top: 46%; width: 25%; animation-delay: 2.4s; }
.streak--3 { top: 31%; width: 30%; animation-delay: 3.6s; }
@keyframes streak { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: .9; } 45%, 100% { transform: translateX(380%); opacity: 0; } }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 11, 20, .35) 0%, rgba(7, 11, 20, .15) 35%, rgba(7, 11, 20, .7) 72%, rgba(7, 11, 20, 0) 100%);
  mix-blend-mode: normal;
}
.hero__content { width: 100%; max-width: 620px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 18px) 20px 24px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px;
  font-size: 13px; font-weight: 600; color: var(--fg);
  background: rgba(7, 11, 20, .55); border: 1px solid var(--line-2); border-radius: 99px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.badge span { color: var(--fg-2); font-weight: 500; }
.badge .star { width: 15px; height: 15px; fill: var(--warn); stroke: var(--warn); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fg-3); position: relative; }
.badge--status.is-open .dot { background: var(--ok); }
.badge--status.is-open .dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok);
  animation: ping 1.8s var(--ease) infinite;
}
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.hero__kind { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.hero__title {
  margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(40px, 13vw, 72px); line-height: .98;
  background: linear-gradient(180deg, #fff 30%, #B9C6DA); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-wrap: balance;
}
.hero__tagline { margin: 12px 0 0; font-size: 18px; color: var(--fg-2); max-width: 26ch; }
.hero__actions { display: flex; gap: 10px; margin-top: 26px; }
.hero__actions .btn--glow { flex: 1; }

/* ===== Кнопки ===== */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 22px; border: 0; border-radius: 16px;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; user-select: none;
  transition: transform .15s var(--ease), box-shadow .25s var(--ease), background-color .2s, opacity .2s;
}
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn--glow {
  color: #fff; overflow: hidden;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--accent-2)));
  box-shadow: 0 10px 30px -8px rgba(var(--accent-rgb), .7), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn--glow::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  animation: shine 3.6s var(--ease) infinite 1.2s;
}
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn--icon {
  width: 56px; padding: 0; color: var(--fg);
  background: rgba(255, 255, 255, .08); border: 1px solid var(--line-2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.btn--glass { color: var(--fg); background: var(--glass-2); border: 1px solid var(--line); }
.btn--text { min-height: 48px; background: none; color: var(--fg-2); font-weight: 600; }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }

/* ===== Общие блоки ===== */
.wrap { max-width: 620px; margin: 0 auto; padding: 0 20px calc(env(safe-area-inset-bottom) + 110px); }
.section { margin-top: 44px; }
.section__head { margin-bottom: 18px; }
.section__title { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.section__sub { margin: 6px 0 0; color: var(--fg-2); }
.card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Преимущества */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
.perk { padding: 16px 12px; text-align: center; background: var(--glass); border: 1px solid var(--line); border-radius: 18px; }
.perk b { display: block; white-space: nowrap; font-family: var(--display); font-size: clamp(15px, 4.6vw, 20px); font-weight: 700; color: #fff; }
.perk span { display: block; margin-top: 2px; font-size: 13px; color: var(--fg-2); line-height: 1.3; }

/* Услуги */
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.service {
  position: relative; width: 100%; display: flex; align-items: center; gap: 14px;
  min-height: 76px; padding: 14px 16px 14px 14px; text-align: left; cursor: pointer;
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r);
  transition: transform .2s var(--ease), border-color .25s, background-color .25s, box-shadow .25s;
}
.service::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; opacity: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity .25s;
}
.service:hover { background: var(--glass-2); }
.service:hover::before { opacity: 1; }
.service:active { transform: scale(.98); }
.service__ico {
  width: 48px; height: 48px; display: grid; place-items: center; flex: none; border-radius: 14px;
  color: #fff; background: linear-gradient(135deg, rgba(var(--accent-rgb), .9), rgba(34, 211, 238, .55));
  box-shadow: 0 8px 22px -8px rgba(var(--accent-rgb), .8);
}
.service__ico svg { width: 24px; height: 24px; }
.service__body { flex: 1; min-width: 0; }
.service__title { display: block; font-weight: 700; font-size: 16px; line-height: 1.3; }
.service__meta { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 14px; color: var(--fg-2); }
.service__meta svg { width: 14px; height: 14px; }
.service__price { font-family: var(--display); font-weight: 700; font-size: 16px; white-space: nowrap; }
.hit {
  position: absolute; top: -9px; right: 14px; padding: 2px 9px; border-radius: 99px;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: #0B1220; background: linear-gradient(90deg, var(--warn), #FDE68A);
}

/* Ближайшие окна */
.nearest { padding: 6px 16px; }
.nrow { padding: 14px 0; }
.nrow + .nrow { border-top: 1px solid var(--line); }
.nrow__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.nrow__day { font-weight: 800; font-size: 16px; }
.nrow__left { font-size: 13px; font-weight: 700; color: var(--fg-2); }
.nrow__left.hot { color: var(--warn); }
.nrow__left.hot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--warn); vertical-align: 1px; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-width: 70px; height: 44px; padding: 0 14px; border-radius: 12px; cursor: pointer;
  font-weight: 700; font-size: 15px; color: var(--fg);
  background: rgba(var(--accent-rgb), .1); border: 1px solid rgba(var(--accent-rgb), .35);
  transition: transform .15s var(--ease), background .2s, border-color .2s;
}
.chip:hover { background: rgba(var(--accent-rgb), .22); border-color: var(--accent); }
.chip:active { transform: scale(.94); }
.chip--more { background: none; border-style: dashed; color: var(--fg-2); }

.prefer {
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 12px 14px; border-radius: 14px;
  font-size: 14px; font-weight: 600; color: var(--fg);
  background: linear-gradient(90deg, rgba(var(--accent-rgb), .22), rgba(var(--accent-rgb), .06)); border: 1px solid rgba(var(--accent-rgb), .4);
  animation: viewIn .35s var(--ease);
}
.prefer svg { color: var(--accent-2); }
.prefer button { margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--fg-2); cursor: pointer; display: grid; place-items: center; }

/* Как проходит визит */
.visit { list-style: none; margin: 0; padding: 0; position: relative; }
.visit::before {
  content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2) 60%, transparent);
  opacity: .5;
}
.vstep { position: relative; display: flex; gap: 16px; padding-bottom: 22px; }
.vstep:last-child { padding-bottom: 0; }
.vstep__ico {
  position: relative; width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%;
  color: var(--accent-2); background: var(--bg-2); border: 1px solid rgba(var(--accent-rgb), .45);
  box-shadow: 0 0 0 5px var(--bg), 0 0 24px -4px rgba(var(--accent-rgb), .7);
}
.vstep__num {
  position: absolute; top: -4px; right: -6px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.vstep__body { padding-top: 2px; }
.vstep__body b { display: block; font-size: 17px; font-weight: 800; }
.vstep__body p { margin: 3px 0 0; color: var(--fg-2); font-size: 15px; }

/* Отзывы */
.reviews { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; }
.reviews::-webkit-scrollbar { display: none; }
.review { flex: none; width: 82%; scroll-snap-align: center; padding: 18px; }
.review__stars { display: flex; gap: 2px; margin-bottom: 10px; }
.review__stars svg { width: 16px; height: 16px; fill: var(--warn); stroke: var(--warn); }
.review p { margin: 0 0 12px; color: #D5DDE8; }
.review b { font-size: 14px; color: var(--fg-2); font-weight: 600; }

/* Контакты */
.contacts { margin-top: 18px; padding: 6px; }
.contact { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 12px; border-radius: 14px; text-decoration: none; transition: background-color .2s; }
.contact:hover { background: var(--glass-2); }
.contact__ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(var(--accent-rgb), .15); color: var(--accent-2); flex: none; }
.contact > span:nth-child(2) { flex: 1; }
.contact__main { display: block; font-weight: 700; }
.contact__sub { display: block; font-size: 14px; color: var(--fg-2); }
.chev { color: var(--fg-3); }
.hours { margin: 6px 6px 8px; padding: 12px 8px 4px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; row-gap: 6px; font-size: 15px; }
.hours span:nth-child(odd) { color: var(--fg-2); }
.hours .today { color: var(--fg) !important; font-weight: 700; }
.hours .off { color: var(--fg-3); }

.foot { margin-top: 40px; text-align: center; font-size: 13px; }
.foot a { color: var(--fg-3); }

/* Плавающая кнопка */
.fab {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 16px); z-index: 20;
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 26px; border-radius: 99px;
  color: #fff; font-weight: 700; text-decoration: none;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--accent-2)));
  box-shadow: 0 14px 40px -10px rgba(var(--accent-rgb), .9), 0 0 0 1px rgba(255, 255, 255, .12) inset;
  transform: translate(-50%, 0); transition: transform .35s var(--spring), opacity .25s;
}
.fab.is-hidden { transform: translate(-50%, 140%); opacity: 0; pointer-events: none; }

/* ===== Шторка ===== */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(2, 4, 10, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .3s var(--ease); }
.sheet__panel {
  position: relative; width: 100%; max-width: 620px; max-height: 94svh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #111A2E, #0A101D 40%); border: 1px solid var(--line-2); border-bottom: 0;
  border-radius: 28px 28px 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .5);
  animation: up .45s var(--spring);
}
.sheet.closing .sheet__panel { animation: down .25s var(--ease) forwards; }
.sheet.closing .sheet__backdrop { animation: fade .25s var(--ease) reverse forwards; }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes down { to { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.sheet__grip { width: 40px; height: 5px; margin: 10px auto 0; border-radius: 99px; background: var(--line-2); }
.sheet__top { display: flex; align-items: center; gap: 10px; padding: 8px 12px 0; }
.progress { flex: 1; display: flex; gap: 6px; }
.progress i { flex: 1; height: 4px; border-radius: 99px; background: var(--line); transition: background .3s; }
.progress i.on { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.iconbtn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: none; color: var(--fg-2); cursor: pointer; }
.iconbtn:hover { background: var(--glass-2); color: var(--fg); }
.iconbtn[disabled] { visibility: hidden; }
.sheet__body { overflow-y: auto; overscroll-behavior: contain; padding: 8px 20px calc(env(safe-area-inset-bottom) + 24px); }
.sheet__title { margin: 18px 0 14px; font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 1.2; }
.view { animation: viewIn .35s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateX(16px); } }

.pick { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: rgba(var(--accent-rgb), .1); border: 1px solid rgba(var(--accent-rgb), .3); }
.pick__ico { width: 40px; height: 40px; display: grid; place-items: center; flex: none; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.pick__text b { display: block; font-size: 15px; }
.pick__text span { font-size: 14px; color: var(--fg-2); }

.days { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px 18px; padding: 4px 20px 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: none; width: 62px; height: 78px; scroll-snap-align: start; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--glass); border: 1px solid var(--line); border-radius: 16px;
  transition: transform .2s var(--spring), background .2s, border-color .2s, box-shadow .2s;
}
.day__wd { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--fg-2); }
.day__num { font-family: var(--display); font-size: 21px; font-weight: 700; }
.day__mo { font-size: 11px; color: var(--fg-3); }
.day[aria-selected="true"] {
  transform: translateY(-2px); border-color: transparent; color: #fff;
  background: linear-gradient(160deg, var(--accent), color-mix(in srgb, var(--accent) 50%, var(--accent-2)));
  box-shadow: 0 10px 24px -8px rgba(var(--accent-rgb), .8);
}
.day[aria-selected="true"] .day__wd, .day[aria-selected="true"] .day__mo { color: rgba(255, 255, 255, .8); }
.day:disabled { opacity: .3; cursor: default; }

.times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.time {
  min-height: 50px; border-radius: 14px; cursor: pointer; font-weight: 700; font-size: 16px;
  background: var(--glass); border: 1px solid var(--line);
  transition: transform .15s var(--ease), border-color .2s, background .2s;
  animation: pop .3s var(--ease) backwards;
}
.time:hover { border-color: rgba(var(--accent-rgb), .7); background: rgba(var(--accent-rgb), .12); }
.time:active { transform: scale(.94); }
@keyframes pop { from { opacity: 0; transform: scale(.9); } }
.empty { grid-column: 1 / -1; color: var(--fg-2); padding: 18px 0; text-align: center; }
.skeleton { height: 50px; border-radius: 14px; background: linear-gradient(90deg, var(--glass) 25%, var(--glass-2) 50%, var(--glass) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.when { margin: -4px 0 18px; font-size: 17px; font-weight: 700; color: var(--accent-2); }
.field { display: block; margin-bottom: 14px; }
.field__label { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 14px; font-weight: 700; color: var(--fg-2); }
.opt { font-weight: 500; color: var(--fg-3); }
.field input, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px; font-size: 16px; color: var(--fg);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); border-radius: 14px; resize: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(var(--accent-rgb), .06); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .18); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.field__error, .form-error { display: block; margin: 7px 0 0; color: var(--err); font-size: 14px; }
.field__error:empty, .form-error:empty { display: none; }
.form-error { margin: 0 0 12px; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 18px; font-size: 14px; color: var(--fg-2); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); flex: none; }

/* Успех */
.done { text-align: center; padding-top: 18px; }
.done .sheet__title { margin-top: 20px; font-size: 26px; }
.done__ring {
  position: relative; width: 96px; height: 96px; margin: 8px auto 0; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 10px rgba(var(--accent-rgb), .12), 0 0 0 22px rgba(var(--accent-rgb), .06), 0 20px 50px -10px rgba(var(--accent-rgb), .9);
  animation: ring .6s var(--spring);
}
.done__ring svg { width: 46px; height: 46px; stroke-width: 3; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .45s .25s var(--ease) forwards; }
@keyframes ring { from { transform: scale(.3); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done__when { margin: -4px 0 8px; font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--accent-2); }
.done__note { margin: 0 auto 22px; max-width: 32ch; color: var(--fg-2); }
.done .btn { margin-bottom: 10px; }
.spark { position: fixed; z-index: 60; width: 8px; height: 8px; border-radius: 2px; pointer-events: none; }

/* Подсказка установки */
.install {
  position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 84px);
  max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 12px;
  background: rgba(17, 26, 46, .85); border: 1px solid var(--line-2); border-radius: 20px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
  animation: up .5s var(--spring);
}
.install img { border-radius: 12px; flex: none; }
.install__text { flex: 1; font-size: 14px; line-height: 1.35; }
.install__text b { display: block; }
.install__text span { color: var(--fg-2); }

@media (min-width: 900px) {
  .hero { min-height: 560px; align-items: center; }
  .hero__content { max-width: 1120px; padding-left: 40px; padding-right: 40px; }
  .hero__content > * { max-width: 520px; }
  .car { position: absolute; top: 50%; right: calc(50% - 600px); width: 620px; max-width: none; margin: -110px 0 0; }
  .hero__content { position: static; }
  .hero__grid { height: 55%; }
}

@media (min-width: 640px) {
  .sheet { align-items: center; }
  .sheet__panel { border-radius: 28px; border-bottom: 1px solid var(--line-2); max-height: 88vh; }
  .gallery img { width: 60%; }
  .review { width: 60%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .done__ring svg { stroke-dashoffset: 0; }
}

@media (max-width: 899px) {
  .hero__grid, .streak { display: none; }
}

/* Машина на студийном фото: края растворяются в фоне страницы */
.car--photo { width: calc(100% + 40px); max-width: none; margin: -6px -20px 10px; }
.car__stage { position: relative; z-index: 1; }
.car--photo .car__img { filter: none; }
.car--photo .car__stage {
  -webkit-mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(180deg, transparent, #000 18%, #000 78%, transparent);
  -webkit-mask-composite: source-in;
  mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent) intersect, linear-gradient(180deg, transparent, #000 18%, #000 78%, transparent);
}
.car--photo .car__floor, .car--photo .car__shine { display: none; }
@media (min-width: 900px) {
  .car--photo { width: 760px; right: calc(50% - 660px); margin-top: -160px; }
}

/* Плашка демо */
.demobar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px;
  padding: calc(env(safe-area-inset-top) + 8px) 12px 8px 14px; font-size: 13px; line-height: 1.3;
  background: rgba(251, 191, 36, .12); border-bottom: 1px solid rgba(251, 191, 36, .35);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.demobar__tag {
  flex: none; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #1A1206; background: var(--warn);
}
.demobar__text { flex: 1; min-width: 0; color: #FDE68A; }
.demobar__cta {
  flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 10px;
  font-weight: 700; color: #1A1206; background: var(--warn); text-decoration: none;
}
body.is-demo .hero__content { padding-top: 12px; }

/* Шиномонтаж: старые колёса укатываются вправо, слева приезжают новые. Один раз; по нажатию на машину повтор.
   Поворот и сдвиг идут в одном transform с одной кривой — колесо катится без проскальзывания.
   Координаты печатает tools/make_tires.py */
.wheel { position: absolute; z-index: 3; display: block; width: 15.812%; height: auto; will-change: transform, opacity; }
.wheel--front { left: 17.530%; top: 47.485%; }
.wheel--rear { left: 67.239%; top: 46.805%; }
.wheel--new { opacity: 0; }
.arch { position: absolute; z-index: 2; display: block; width: 18.459%; height: auto; pointer-events: none; }
.arch--front { left: 16.206%; top: 44.388%; }
.arch--rear { left: 65.916%; top: 43.707%; }
.anim-tires .wheel--old.wheel--rear { animation: oldRear 2.6s cubic-bezier(.5, 0, .75, .5) 1s both; }
.anim-tires .wheel--old.wheel--front { animation: oldFront 3.6s cubic-bezier(.5, 0, .75, .5) 1.6s both; }
.anim-tires .wheel--new.wheel--front { animation: newFront 2.6s cubic-bezier(.2, .5, .35, 1) 5.2s both; }
.anim-tires .wheel--new.wheel--rear { animation: newRear 3.6s cubic-bezier(.2, .5, .35, 1) 5.6s both; }
/* Тень в арке гаснет, когда колесо уехало, и возвращается вместе с новым */
.anim-tires .arch--rear { animation: archRear 8.2s linear 1s both; }
.anim-tires .arch--front { animation: archFront 6.2s linear 1.6s both; }
@keyframes archRear { 0% { opacity: 1; } 7%, 86% { opacity: 0; } 100% { opacity: 1; } }
@keyframes archFront { 0% { opacity: 1; } 8%, 84% { opacity: 0; } 100% { opacity: 1; } }
@keyframes oldRear { 0% { opacity: 1; } 92% { opacity: 1; } to { transform: translateX(230%) rotate(276deg); opacity: 0; } }
@keyframes oldFront { 0% { opacity: 1; } 94% { opacity: 1; } to { transform: translateX(540%) rotate(647deg); opacity: 0; } }
@keyframes newFront { from { transform: translateX(-220%) rotate(-264deg); opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes newRear { from { transform: translateX(-540%) rotate(-647deg); opacity: 1; } to { transform: none; opacity: 1; } }
.car--tires { cursor: pointer; }
