html { scroll-padding-bottom: calc(120px + var(--safe-b)); }
body { padding-bottom: calc(110px + var(--safe-b)); }

/* ================= главная ================= */
.hero-card { position: relative; overflow: hidden; aspect-ratio: 16 / 10.5; padding: 0; border-radius: 26px; isolation: isolate; }
.hero-card .scene {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(90% 70% at 50% 35%, #172338 0%, #0a0f18 55%, #06080d 100%);
}
.hero-card .car { position: absolute; left: 7%; bottom: 19%; width: 86%; mix-blend-mode: lighten; filter: contrast(1.08) brightness(1.1); }
.hero-card .ring {
  position: absolute; left: 16%; right: 16%; top: 6%; height: 56%; border-radius: 50%; mix-blend-mode: screen;
  background:
    radial-gradient(closest-side, transparent 64%, color-mix(in srgb, var(--brand) 85%, #fff) 66%, var(--brand) 78%, color-mix(in srgb, var(--brand) 70%, #000) 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 34%, transparent 58%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 34%, transparent 58%);
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--brand) 55%, transparent));
}
.hero-card .ring::after { /* зерно, как на заставке */
  content: ""; position: absolute; inset: 0; border-radius: 50%; opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.55) .6px, transparent .8px); background-size: 4px 4px;
  -webkit-mask-image: radial-gradient(closest-side, transparent 64%, #000 68%, #000 94%, transparent 100%);
  mask-image: radial-gradient(closest-side, transparent 64%, #000 68%, #000 94%, transparent 100%);
}
.hero-card .lights { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,.05) 0%, transparent 40%), linear-gradient(0deg, rgba(5,7,12,.85) 0%, transparent 38%); }
.hero-card.art .scene { background: radial-gradient(80% 70% at 50% 40%, #46546a 0%, #2a3442 55%, #1b222c 100%); }
.hero-card.art .ring {
  mix-blend-mode: normal; -webkit-mask-image: none; mask-image: none; left: 2%; right: 2%; top: -2%; height: 50%; filter: none;
  background: radial-gradient(closest-side, transparent 57%, var(--brand) 59%, var(--brand) 98%, transparent 100%);
}
.hero-card.art .art { position: absolute; left: -21%; width: 142%; max-width: none; top: 15%; }
.hero-card .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.hero-cta {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; min-height: 52px; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 999px;
  background: rgba(20, 26, 38, .55); border: 1px solid rgba(255,255,255,.14); color: #fff; font-weight: 700; font-size: 16px;
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}
.hero-cta:active { background: rgba(30, 38, 54, .7); }

.intro { margin: 22px 2px 18px; }
.intro h1 { font-size: 30px; }
.intro p { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.intro .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.dot.off { background: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 22%, transparent); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { padding: 16px 18px; }
.stat .v { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; letter-spacing: -.03em; text-shadow: var(--glow); }
.stat .v .icon { width: 19px; height: 19px; color: #e7ecf5; }
.stat span { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }
.stat.wide { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 18px; }
.stat.wide span { margin: 0; }

.section { margin-top: 30px; }
.section > h2 { font-size: 26px; margin: 0 2px 14px; }

.book-card { padding: 20px; position: relative; overflow: hidden; }
.book-card::before { /* лёгкий узор точками справа, как на макете */
  content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; opacity: .5; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--brand) 60%, transparent) 1px, transparent 1.4px); background-size: 7px 7px;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent);
}
.book-card h3 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; position: relative; }
.book-card p { margin: 6px 0 16px; color: var(--muted); font-size: 14px; position: relative; }
.book-card .soon { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px 16px; padding: 0 20px; position: relative; }
.book-card .soon::-webkit-scrollbar { display: none; }
.slot {
  flex: none; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2);
  font-size: 14px; font-weight: 600; white-space: nowrap; transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.slot b { font-variant-numeric: tabular-nums; }
.slot small { color: var(--muted); font-weight: 500; margin-right: 6px; font-size: 13px; }
.slot:active { background: var(--brand-soft); border-color: var(--brand-line); }
.slot.skeleton { width: 120px; height: 40px; border: 0; }

.svc-list { display: grid; gap: 10px; }
.svc-row { display: flex; align-items: center; gap: 14px; padding: 16px 16px 16px 18px; width: 100%; text-align: left; color: inherit; }
.svc-row .grow { flex: 1; min-width: 0; }
.svc-row b { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.svc-row small { display: block; color: var(--muted); font-size: 14px; margin-top: 3px; }
.svc-row p { margin: 6px 0 0; color: var(--faint); font-size: 13px; line-height: 1.45; }
.svc-row .price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.svc-row .go { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); flex: none; }

.contacts { padding: 4px 18px; }
.c-row { display: flex; gap: 14px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.c-row:last-child { border-bottom: 0; }
.c-row > .icon { color: var(--muted); }
.c-row .grow { flex: 1; min-width: 0; }
.c-row small { display: block; color: var(--muted); font-size: 13px; }
details.hours summary { list-style: none; cursor: pointer; }
details.hours summary::-webkit-details-marker { display: none; }
details.hours[open] .chev { transform: rotate(90deg); }
.chev { transition: transform var(--dur) ease; color: var(--faint); }
.hours-grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; padding: 0 0 14px 34px; font-size: 14px; color: var(--muted); }
.hours-grid .today { color: var(--text); font-weight: 700; }

.install-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; width: 100%; text-align: left; margin-top: 12px; color: inherit; }
.install-card .grow { flex: 1; min-width: 0; font-size: 14px; color: var(--muted); }
.install-card b { display: block; color: var(--text); font-size: 15px; }
.install-card img { width: 44px; height: 44px; border-radius: 12px; }

.footer { text-align: center; font-size: 12px; color: var(--faint); margin: 30px 0 8px; }

/* ================= страницы ================= */
.page-title { margin: 6px 2px 18px; }
.page-title h1 { font-size: 34px; }
.page-title p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

/* моя запись */
.status-card { position: relative; overflow: hidden; padding: 20px; min-height: 150px; }
.status-card::after {
  content: ""; position: absolute; right: -30px; top: -10px; width: 240px; height: 200px; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--brand) 75%, #fff) 1.1px, transparent 1.5px); background-size: 6px 6px; opacity: .55;
  -webkit-mask-image: radial-gradient(closest-side, #000 10%, transparent); mask-image: radial-gradient(closest-side, #000 10%, transparent);
}
.check { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); margin-bottom: 14px; position: relative; z-index: 1; }
.check .icon { width: 17px; height: 17px; stroke-width: 3; }
.check.wait { background: color-mix(in srgb, var(--warn) 85%, #000); }
.status-card small { color: var(--muted); font-size: 13px; position: relative; z-index: 1; }
.status-card h2 { font-size: 22px; margin: 4px 0 6px; position: relative; z-index: 1; }
.status-card .when { position: relative; z-index: 1; font-size: 15px; }
.details { margin: 22px 2px 8px; }
.details h3 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; text-shadow: var(--glow); }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 15px; }
.kv span { color: var(--muted); }
.kv b { font-weight: 500; text-align: right; }
.plain { padding: 6px 0; color: var(--muted); font-size: 15px; }
.plain.strong { color: var(--text); }
.contact-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-top: 16px; text-decoration: none; color: inherit; }
.contact-row .round { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); flex: none; box-shadow: 0 6px 20px -8px var(--brand); }
.contact-row b { display: block; }
.contact-row small { color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.tile { display: grid; justify-items: center; gap: 8px; padding: 16px 6px; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; }
.tile .icon { color: var(--text); width: 21px; height: 21px; }
.cancel-link { display: block; margin: 16px auto 0; }
.mine-list { display: grid; gap: 28px; }
.mine-sep { height: 1px; background: var(--line); }

/* ================= нижняя навигация: плавающая «пилюля» ================= */
.dock { position: fixed; left: 0; right: 0; bottom: calc(14px + var(--safe-b)); z-index: 30; display: flex; justify-content: center; gap: 10px; padding: 0 16px; pointer-events: none; }
.nav {
  pointer-events: auto; display: flex; gap: 4px; padding: 6px; border-radius: 999px; flex: 1; max-width: 400px;
  background: rgba(16, 21, 31, .72); border: 1px solid var(--line-strong);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.08);
}
.nav button { white-space: nowrap;
  flex: 1; min-height: 52px; border: 0; border-radius: 999px; background: transparent; color: var(--muted);
  display: grid; justify-items: center; align-content: center; gap: 2px; font-size: 12px; font-weight: 600; position: relative;
  transition: background var(--dur) ease, color var(--dur) ease;
}
.nav button .icon { width: 20px; height: 20px; }
.nav button.on { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 22px -8px var(--brand), inset 0 1px 0 rgba(255,255,255,.3); }
.nav .count { position: absolute; top: 4px; right: calc(50% - 22px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 99px; background: var(--brand); color: var(--brand-ink); font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.nav button.on .count { background: var(--brand-ink); color: var(--brand); }
.fab {
  pointer-events: auto; width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff;
  background: rgba(16, 21, 31, .72); border: 1px solid var(--line-strong);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 16px 40px -12px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.08);
}
.fab .icon { width: 24px; height: 24px; }

/* ================= шторки: запись ================= */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px 20px 8px; flex: none; }
.steps i { height: 4px; border-radius: 4px; background: var(--surface-3); transition: background var(--dur) ease, box-shadow var(--dur) ease; }
.steps i.on { background: var(--brand); box-shadow: 0 0 10px -2px var(--brand); }

.pick-list { display: grid; gap: 10px; }
.pick { display: flex; align-items: center; gap: 12px; padding: 16px 18px; width: 100%; text-align: left; color: inherit; }
.pick .grow { flex: 1; min-width: 0; }
.pick b { display: block; font-size: 16px; font-weight: 600; }
.pick small { color: var(--muted); font-size: 14px; }
.pick .price { font-weight: 700; white-space: nowrap; }

.svc-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 4px 0 16px; }
.svc-line b { font-size: 17px; font-weight: 600; }
.svc-line span { color: var(--muted); font-weight: 600; white-space: nowrap; }
.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px 18px; padding: 0 20px; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: none; width: 56px; padding: 11px 0 10px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface);
  display: grid; justify-items: center; gap: 4px; color: inherit; transition: background var(--dur-fast) ease;
}
.day small { font-size: 13px; color: var(--muted); }
.day b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.day.sel { background: var(--brand); border-color: transparent; color: var(--brand-ink); box-shadow: 0 8px 22px -8px var(--brand); }
.day.sel small { color: inherit; opacity: .8; }
.day[disabled] { opacity: .3; cursor: default; }
.other-date { margin-bottom: 18px; }
.other-date .input { text-align: center; font-weight: 500; }
.times { display: flex; flex-wrap: wrap; gap: 8px; }
.time {
  min-width: 78px; min-height: 46px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-weight: 600; font-variant-numeric: tabular-nums; color: inherit; transition: background var(--dur-fast) ease;
}
.time.sel { background: var(--brand); border-color: transparent; color: var(--brand-ink); box-shadow: 0 8px 22px -8px var(--brand); }
.note { padding: 18px; text-align: center; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; font-size: 14px; }

.review { padding: 18px 20px; margin-bottom: 16px; }
.review h3 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; text-shadow: var(--glow); }
.policy { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 2px 14px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 0 2px 4px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.back-link { display: flex; justify-content: center; margin-top: 6px; }

/* ================= ассистент ================= */
.chat-log { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.chips button { border: 1px solid var(--line); background: var(--surface-2); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; min-height: 42px; color: inherit; }
.msg { max-width: 86%; padding: 12px 16px; border-radius: 20px; white-space: pre-line; font-size: 15px; line-height: 1.45; }
.msg.bot { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg.me { background: var(--surface-3); border: 1px solid var(--line-strong); border-bottom-right-radius: 6px; align-self: flex-end; }
.typing { display: inline-flex; gap: 4px; padding: 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .25; } }
.sugg { display: grid; gap: 8px; }
.sugg button { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; text-align: left; border: 1px solid var(--brand-line); background: var(--brand-soft); color: inherit; }
.sugg .grow { flex: 1; min-width: 0; }
.sugg b { display: block; font-size: 15px; font-weight: 600; }
.sugg small { color: var(--muted); font-size: 13px; }
.sugg .icon { color: var(--brand); }
.chat-form { display: flex; gap: 10px; align-items: flex-end; }
.chat-form .field { flex: 1; margin: 0; }
.send { width: 54px; height: 54px; border-radius: 50%; padding: 0; flex: none; }

/* ================= установка ================= */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin: 6px 0 18px; }
.seg button { min-height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; }
.seg button.on { background: var(--surface-3); color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.how { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: s; }
.how li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; counter-increment: s; font-size: 15px; }
.how li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-size: 13px; font-weight: 800; }
.app-badge { display: flex; gap: 14px; align-items: center; margin-bottom: 4px; }
.app-badge img { width: 56px; height: 56px; border-radius: 14px; }
.app-badge small { color: var(--muted); }

.consent a, .footer a { color: var(--brand); }
