/* Маяк — тестов автосервиз. Тъмна „гаражна“ тема, mobile-first. */
:root {
  --bg: #0b0c0e;
  --bg-2: #101215;
  --surface: #15181c;
  --surface-2: #1c2026;
  --line: #2a2f36;
  --line-2: #3a414a;
  --text: #f4f1ea;
  --muted: #a9b0b9;
  --steel: #8d97a4;
  --amber: #ffad33;
  --amber-2: #ff8a1f;
  --amber-ink: #1a0f00;
  --ok: #4fd08a;
  --err: #ff7a6b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .7);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--amber); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--amber); color: var(--amber-ink); }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.sr-only { 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: -60px; z-index: 100; background: var(--amber); color: var(--amber-ink); padding: .6rem 1rem; border-radius: 10px; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.wrap-narrow { width: min(860px, 100% - 2.5rem); }

/* ---------- бутони ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: var(--h); padding: 0 1.25rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), background-color .2s, border-color .2s, box-shadow .25s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active:not([disabled]) { transform: translateY(1px) scale(.985); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-sm { --h: 40px; padding: 0 1rem; font-size: .92rem; }
.btn-lg { --h: 56px; padding: 0 1.6rem; font-size: 1.06rem; }
.btn-primary {
  background: linear-gradient(180deg, #ffc061, var(--amber) 45%, var(--amber-2)); color: var(--amber-ink);
  box-shadow: 0 10px 30px -10px rgba(255, 150, 40, .65), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-primary:hover:not([disabled]) { box-shadow: 0 14px 38px -10px rgba(255, 150, 40, .85), inset 0 1px 0 rgba(255, 255, 255, .5); transform: translateY(-1px); }
.btn-primary svg { transition: transform .25s var(--ease); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover:not([disabled]) { background: rgba(255, 255, 255, .08); border-color: var(--steel); }
.btn-outline { background: transparent; border-color: var(--amber); color: var(--amber); }
.btn-outline:hover:not([disabled]) { background: rgba(255, 173, 51, .1); }
.btn-chip { --h: 40px; padding: 0 .95rem; font-size: .92rem; background: rgba(255, 173, 51, .12); color: var(--amber); border-color: rgba(255, 173, 51, .35); }
.btn-chip:hover { background: var(--amber); color: var(--amber-ink); }

/* ---------- лента „тест“ и зареждане ---------- */
.test-ribbon {
  position: relative; z-index: 60; display: flex; gap: .6rem; align-items: center; justify-content: center;
  padding: .5rem 1rem; font-size: .85rem; line-height: 1.4; text-align: center;
  background: repeating-linear-gradient(135deg, #2a1c05 0 14px, #231703 14px 28px); color: #ffd79a;
  border-bottom: 1px solid rgba(255, 173, 51, .35);
}
.test-ribbon-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(255, 173, 51, .2); }
.boot-status {
  position: fixed; z-index: 70; left: 50%; top: calc(var(--nav-h) + 14px); transform: translateX(-50%);
  display: flex; align-items: center; gap: .6rem; padding: .55rem 1rem; border-radius: 999px;
  background: rgba(21, 24, 28, .92); border: 1px solid var(--line-2); font-weight: 600; font-size: .92rem; box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.boot-spin { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--line-2); border-top-color: var(--amber); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.boot-error {
  position: fixed; z-index: 70; left: 1rem; right: 1rem; top: calc(var(--nav-h) + 14px); margin-inline: auto; max-width: 520px;
  padding: 1rem 1.1rem; border-radius: var(--radius-sm); background: #2a1512; border: 1px solid #6a2a22; color: #ffe1dc; box-shadow: var(--shadow);
}
.boot-error p { margin-bottom: .7rem; }

/* ---------- навигация ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  transition: background-color .3s, border-color .3s, -webkit-backdrop-filter .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.is-scrolled .nav, .menu-open .nav { background: rgba(11, 12, 14, .82); border-bottom-color: rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -.01em; min-width: 0; }
.brand-mark { flex: none; color: var(--amber); filter: drop-shadow(0 0 10px rgba(255, 173, 51, .45)); }
.brand-mark svg { width: 28px; height: 28px; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-links { display: none; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.nav-toggle { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); display: grid; place-content: center; gap: 6px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu-open .nav-links {
  display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0;
  padding: .5rem 1.25rem 1.25rem; background: rgba(11, 12, 14, .97); border-bottom: 1px solid var(--line);
  animation: drop .25s var(--ease);
}
.menu-open .nav-links a { padding: .85rem .25rem; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

@media (min-width: 960px) {
  :root { --nav-h: 72px; }
  .nav-toggle { display: none; }
  .nav-links, .menu-open .nav-links { display: flex; position: static; flex-direction: row; gap: .25rem; padding: 0; background: none; border: 0; margin-left: 1.5rem; animation: none; }
  .nav-links a, .menu-open .nav-links a { padding: .5rem .75rem; border: 0; border-radius: 999px; color: var(--muted); font-size: .93rem; text-decoration: none; font-weight: 600; transition: color .2s, background-color .2s; }
  .nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
  .brand-name { font-size: 1rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; min-height: min(92svh, 860px); display: flex; align-items: flex-end; margin-top: calc(-1 * var(--nav-h)); padding: calc(var(--nav-h) + 3rem) 0 3.5rem; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; background: #0b0c0e; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; filter: saturate(.75) contrast(1.08) brightness(.7); transform: scale(1.08); animation: heroZoom 14s var(--ease) forwards; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 12, 14, .55) 0%, rgba(11, 12, 14, .15) 30%, rgba(11, 12, 14, .7) 68%, var(--bg) 100%),
    linear-gradient(90deg, rgba(11, 12, 14, .85) 0%, rgba(11, 12, 14, .2) 70%);
}
.hero-glow { position: absolute; z-index: 1; width: 70vmax; height: 70vmax; right: -25vmax; top: -20vmax; background: radial-gradient(closest-side, rgba(255, 150, 40, .28), transparent 70%); animation: glow 9s ease-in-out infinite alternate; pointer-events: none; }
.hero-grid { position: absolute; z-index: 1; inset: auto 0 0 0; height: 45%; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%, transparent); mask-image: linear-gradient(180deg, transparent, #000 60%, transparent); transform: perspective(500px) rotateX(55deg); transform-origin: bottom; opacity: .55; }
@keyframes heroZoom { to { transform: scale(1); } }
@keyframes glow { from { transform: translate(0, 0); opacity: .8; } to { transform: translate(-6vmax, 4vmax); opacity: 1; } }

.hero-inner { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .85rem; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; font-weight: 600; color: #e6e0d4; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(79, 208, 138, .6); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(79, 208, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(79, 208, 138, 0); } }
.hero-title { margin-top: 1.1rem; font-family: var(--display); font-weight: 700; font-size: clamp(2.1rem, 8.4vw, 4.6rem); line-height: 1.04; letter-spacing: -.03em; max-width: 14ch; text-wrap: balance; }
.accent { background: linear-gradient(100deg, #ffd08a, var(--amber) 40%, var(--amber-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { margin-top: 1.1rem; max-width: 36rem; font-size: clamp(1.03rem, 2.6vw, 1.2rem); color: #d6d2ca; }
.hero-cta { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-cta .btn { flex: 1 1 auto; }
.hero-stats { list-style: none; margin: 2.4rem 0 0; padding: 1.1rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; border-top: 1px solid rgba(255, 255, 255, .1); max-width: 40rem; }
.hero-stats strong { display: block; font-family: var(--display); font-size: clamp(1.3rem, 4.5vw, 1.9rem); font-weight: 600; color: var(--text); }
.hero-stats span { display: block; color: var(--muted); font-size: .84rem; line-height: 1.3; }
.hero-scroll { display: none; }
.hero-anim { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.hero-anim.d1 { animation-delay: .1s; } .hero-anim.d2 { animation-delay: .22s; } .hero-anim.d3 { animation-delay: .34s; } .hero-anim.d4 { animation-delay: .48s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (min-width: 720px) {
  .hero-cta .btn { flex: 0 0 auto; }
  .hero { align-items: center; padding-bottom: 5rem; }
  .hero-scroll { display: block; position: absolute; z-index: 2; left: 50%; bottom: 1.5rem; width: 26px; height: 42px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .3); transform: translateX(-50%); }
  .hero-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--amber); animation: wheel 1.8s ease-in-out infinite; }
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- секции ---------- */
.section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid rgba(255, 255, 255, .04); }
.section-head { margin-bottom: clamp(1.8rem, 4vw, 2.8rem); max-width: 44rem; }
.kicker { display: inline-flex; align-items: center; gap: .6rem; font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); }
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head h2, .cancel-copy h2 { margin-top: .7rem; font-family: var(--display); font-weight: 600; font-size: clamp(1.65rem, 5vw, 2.7rem); letter-spacing: -.025em; text-wrap: balance; }
.section-lead { margin-top: .8rem; color: var(--muted); font-size: 1.06rem; }
.note { margin-top: 1.4rem; display: flex; gap: .6rem; align-items: flex-start; color: var(--muted); font-size: .92rem; }
.note-sm { margin-top: .8rem; font-size: .86rem; }
.note-ico { flex: none; width: 20px; height: 20px; display: grid; place-content: center; border-radius: 50%; border: 1.5px solid var(--steel); font-size: .72rem; font-weight: 800; font-style: italic; margin-top: .1rem; }

/* поява при превъртане (класът .rv се слага от JS само под видимата част) */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }

/* ---------- услуги ---------- */
.svc-grid { display: grid; gap: .9rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .svc-grid { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; } }
.svc-card {
  position: relative; display: flex; flex-direction: column; gap: 1rem; min-height: 190px; padding: 1.3rem;
  border-radius: var(--radius); background: linear-gradient(160deg, var(--surface-2), var(--surface) 60%); border: 1px solid var(--line);
  overflow: hidden; transition: border-color .3s, transform .35s var(--ease), box-shadow .35s;
}
.svc-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px circle at 100% 0%, rgba(255, 173, 51, .12), transparent 45%); opacity: 0; transition: opacity .35s; pointer-events: none; }
.svc-card:hover { border-color: rgba(255, 173, 51, .45); transform: translateY(-3px); box-shadow: var(--shadow); }
.svc-card:hover::before { opacity: 1; }
.svc-top { display: flex; justify-content: space-between; align-items: center; }
.svc-ico { width: 52px; height: 52px; display: grid; place-content: center; border-radius: 14px; color: var(--amber); background: rgba(255, 173, 51, .09); border: 1px solid rgba(255, 173, 51, .22); }
.svc-dur { font-size: .82rem; font-weight: 700; color: var(--muted); padding: .3rem .65rem; border-radius: 999px; border: 1px solid var(--line-2); }
.svc-card h3 { font-size: 1.15rem; font-weight: 700; }
.svc-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.svc-price { font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--text); }
.skel { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; border-color: var(--line); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- помощник за записване ---------- */
.section-book { background: radial-gradient(900px 400px at 20% 0%, rgba(255, 150, 40, .07), transparent 70%), var(--bg-2); border-block: 1px solid rgba(255, 255, 255, .05); }
.bk-shell { border-radius: calc(var(--radius) + 6px); background: rgba(21, 24, 28, .8); border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(1rem, 3.5vw, 2rem); scroll-margin-top: calc(var(--nav-h) + 12px); }
.bk-wait, .bk-noscript { display: flex; gap: .7rem; align-items: center; color: var(--muted); padding: 1rem 0; }
.bk-noscript { color: var(--text); }

.bk-progress { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; counter-reset: none; }
.bk-progress li { position: relative; }
.bk-progress li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--line); transition: background-color .3s; }
.bk-progress li.is-done::after { background: rgba(255, 173, 51, .55); }
.bk-progress li.is-on::after { background: var(--amber); }
.bk-progress button { width: 100%; display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .25rem .1rem .7rem; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: .74rem; font-weight: 700; }
.bk-progress button[disabled] { cursor: default; opacity: .55; }
.bk-progress .bk-n { width: 30px; height: 30px; display: grid; place-content: center; border-radius: 50%; border: 1.5px solid var(--line-2); font-size: .85rem; transition: all .3s var(--ease); }
.bk-progress .is-done .bk-n { border-color: var(--amber); color: var(--amber); }
.bk-progress .is-on button { color: var(--text); }
.bk-progress .is-on .bk-n { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); box-shadow: 0 0 0 5px rgba(255, 173, 51, .15); }
.bk-progress .bk-l { display: none; }
@media (min-width: 560px) { .bk-progress .bk-l { display: block; } .bk-progress button { font-size: .82rem; } }

.bk-body { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .bk-body { grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; } }
.bk-main { min-width: 0; }
.bk-step { animation: stepIn .45s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } }
.bk-h { font-size: clamp(1.2rem, 3.4vw, 1.5rem); font-weight: 800; }
.bk-h:focus { outline: none; }
.bk-h:focus-visible { outline: 3px solid var(--amber); }
.bk-sub { margin-top: .3rem; color: var(--muted); }
.bk-empty { color: var(--muted); padding: .8rem 0; display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.bk-actions { margin-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.bk-actions .btn-primary { margin-left: auto; }

/* 1. услуги */
.bk-services { margin-top: 1.1rem; display: grid; gap: .6rem; }
@media (min-width: 620px) { .bk-services { grid-template-columns: repeat(2, 1fr); } }
.bk-svc { position: relative; display: flex; align-items: center; gap: .9rem; padding: 1rem 1.05rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1.5px solid var(--line); cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.bk-svc:hover { border-color: var(--line-2); background: #20252c; }
.bk-svc-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bk-svc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.bk-svc-name { font-weight: 700; }
.bk-svc-meta { display: flex; gap: .8rem; color: var(--muted); font-size: .9rem; }
.bk-svc-price { color: var(--text); font-weight: 700; }
.bk-tick { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-content: center; transition: all .2s var(--ease); }
.bk-svc:has(.bk-svc-input:checked) { border-color: var(--amber); background: rgba(255, 173, 51, .08); }
.bk-svc-input:checked ~ .bk-tick { border-color: var(--amber); background: var(--amber); }
.bk-svc-input:checked ~ .bk-tick::after { content: ""; width: 10px; height: 6px; border: solid var(--amber-ink); border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }
.bk-svc:has(.bk-svc-input:focus-visible) { outline: 3px solid var(--amber); outline-offset: 2px; }

/* 2. дни */
.bk-days-wrap { position: relative; margin: 1.1rem -.25rem 0; }
.bk-days { display: flex; gap: .5rem; overflow-x: auto; padding: .35rem .25rem .8rem; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.bk-day {
  flex: 0 0 74px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: .05rem;
  padding: .7rem .3rem; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface-2); cursor: pointer;
  transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.bk-day.skel { height: 104px; border: 0; }
.bk-day:hover:not([disabled]) { border-color: var(--amber); transform: translateY(-2px); }
.bk-day-wd { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.bk-day-num { font-family: var(--display); font-size: 1.45rem; font-weight: 600; line-height: 1.2; }
.bk-day-mon { font-size: .8rem; color: var(--muted); }
.bk-day-cnt { margin-top: .25rem; font-size: .7rem; font-weight: 700; color: var(--ok); }
.bk-day.is-off { cursor: not-allowed; background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(255, 255, 255, .03) 6px 12px), var(--bg-2); border-style: dashed; border-color: var(--line); opacity: .65; }
.bk-day.is-off .bk-day-num { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--steel); }
.bk-day.is-off .bk-day-cnt { color: var(--steel); }
.bk-day.is-on { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.bk-day.is-on .bk-day-wd, .bk-day.is-on .bk-day-mon, .bk-day.is-on .bk-day-cnt { color: var(--amber-ink); }
.bk-legend { margin-top: .3rem; display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; color: var(--muted); font-size: .82rem; }
.lg { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line-2); background: var(--surface-2); }
.lg-off { border-style: dashed; background: var(--bg-2); margin-left: .5rem; }

/* 3. часове */
.bk-times { margin-top: 1rem; display: grid; gap: 1.2rem; }
.bk-thead { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .55rem; font-weight: 800; }
.bk-thead small { color: var(--muted); font-weight: 600; font-size: .82rem; }
.bk-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; }
.bk-time { min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface-2); font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; transition: all .18s var(--ease); }
.bk-time:hover { border-color: var(--amber); color: var(--amber); }
.bk-time.is-on { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }

/* 4. данни */
.bk-fields { margin-top: 1.1rem; display: grid; gap: .9rem; }
@media (min-width: 620px) { .bk-fields { grid-template-columns: 1fr 1fr; } .fld-wide { grid-column: 1 / -1; } }
.fld { display: flex; flex-direction: column; gap: .4rem; font-weight: 700; font-size: .92rem; }
.fld .opt { color: var(--muted); font-weight: 500; }
.fld input, .fld textarea {
  width: 100%; min-height: 50px; padding: .75rem .95rem; border-radius: 12px; border: 1.5px solid var(--line-2);
  background: var(--bg-2); font-size: 1.02rem; font-weight: 500; transition: border-color .2s, box-shadow .2s;
}
.fld textarea { resize: vertical; min-height: 88px; }
.fld input::placeholder, .fld textarea::placeholder { color: #707883; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(255, 173, 51, .18); }
.fld input[aria-invalid="true"], .fld textarea[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 3px rgba(255, 122, 107, .15); }
.plate, .code-input { text-transform: uppercase; letter-spacing: .06em; }
.mk-email-hint { font-weight: 500; font-size: .85rem; color: var(--muted); }
.bk-privacy { margin-top: 1.1rem; color: var(--muted); font-size: .88rem; }
.bk-ack { margin-top: .8rem; display: flex; gap: .75rem; align-items: flex-start; padding: .85rem .95rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2); cursor: pointer; font-size: .93rem; }
.bk-ack input { flex: none; width: 22px; height: 22px; margin: .05rem 0 0; accent-color: var(--amber); cursor: pointer; }
.bk-ack:has(input[aria-invalid="true"]) { border-color: var(--err); }
.bk-ack:has(input:checked) { border-color: rgba(255, 173, 51, .5); }

/* 5. преглед */
.bk-review { margin: 1.1rem 0 0; display: grid; border-radius: var(--radius-sm); border: 1px solid var(--line); overflow: hidden; }
.bk-review div { display: grid; grid-template-columns: 7.5rem 1fr; gap: .8rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.bk-review div:nth-child(odd) { background: rgba(255, 255, 255, .02); }
.bk-review div:last-child { border-bottom: 0; }
.bk-review dt { color: var(--muted); font-size: .9rem; }
.bk-review dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

.sdc-book-errors { margin-top: 1.2rem; padding: .8rem 1rem; border-radius: 12px; background: rgba(255, 122, 107, .1); border: 1px solid rgba(255, 122, 107, .45); color: #ffd3cc; font-weight: 600; white-space: pre-line; }
.sdc-book-errors::before { content: "! "; font-weight: 900; color: var(--err); }

/* обобщение отстрани */
.bk-aside { display: none; }
@media (min-width: 960px) {
  .bk-aside { display: block; align-self: start; position: sticky; top: calc(var(--nav-h) + 20px); padding: 1.3rem; border-radius: var(--radius); background: linear-gradient(160deg, #1f232a, var(--surface)); border: 1px solid var(--line); }
}
.bk-aside-title { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.bk-sum { margin: .9rem 0 0; display: grid; gap: .75rem; }
.bk-sum div { padding-bottom: .7rem; border-bottom: 1px dashed var(--line-2); }
.bk-sum dt { font-size: .8rem; color: var(--muted); }
.bk-sum dd { margin: .1rem 0 0; font-weight: 700; color: var(--steel); transition: color .3s; }
.bk-sum .is-set dd { color: var(--text); }
.bk-aside-note { margin-top: .9rem; font-size: .85rem; color: var(--muted); }

/* успех */
.bk-done { animation: stepIn .5s var(--ease); }
.bk-confirm { text-align: left; display: flex; flex-direction: column; gap: .5rem; }
.bk-ok-ico { width: 60px; height: 60px; display: grid; place-content: center; border-radius: 50%; background: rgba(79, 208, 138, .14); color: var(--ok); border: 1.5px solid rgba(79, 208, 138, .5); animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.bk-ok-title { margin-top: .4rem; font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 4vw, 1.9rem); }
.bk-ok-title:focus { outline: none; }
.bk-ok-when { color: var(--amber); font-weight: 700; }
.bk-ok-text { margin-top: .3rem; padding: 1rem 1.1rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); white-space: pre-line; overflow-wrap: anywhere; }
.bk-again { margin-top: 1.2rem; }

/* „Добави в календара“ (calendar.js) */
.mk-cal { display: flex; flex-direction: column; align-items: stretch; gap: .5rem; margin-top: .8rem; }
.mk-cal .sdc-confirm-btn.mk-cal-btn {
  display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; min-height: 54px; padding: .7rem 1.3rem;
  border-radius: 999px; border: 0; font-weight: 800; font-size: 1.05rem; text-decoration: none; cursor: pointer;
  background: linear-gradient(180deg, #ffc061, var(--amber) 45%, var(--amber-2)); color: var(--amber-ink);
  box-shadow: 0 10px 30px -10px rgba(255, 150, 40, .65);
}
.mk-cal-btn svg { flex: none; }
.mk-cal-btn:focus-visible, .mk-cal-alt:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.mk-cal-hint { margin: 0; font-size: .9rem; text-align: center; color: var(--muted); }
.mk-cal-alt { align-self: center; background: none; border: 0; padding: .4rem .2rem; font: inherit; font-size: .95rem; color: var(--amber); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mk-cal-invite { margin: 0; padding: .7rem .9rem; border-radius: 12px; background: rgba(79, 208, 138, .1); border: 1px solid rgba(79, 208, 138, .4); font-weight: 700; }
@media (min-width: 700px) { .mk-cal .sdc-confirm-btn.mk-cal-btn { width: auto; align-self: flex-start; } .mk-cal-alt, .mk-cal-hint { align-self: flex-start; text-align: left; } }

/* ---------- защо при нас ---------- */
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
@media (min-width: 620px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .why-grid { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; } }
.why-card { padding: 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.why-card::after { content: ""; position: absolute; left: 1.4rem; right: 1.4rem; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 173, 51, .6), transparent); }
.why-ico { width: 48px; height: 48px; display: grid; place-content: center; border-radius: 14px; color: var(--amber); background: rgba(255, 173, 51, .08); border: 1px solid rgba(255, 173, 51, .2); margin-bottom: 1rem; }
.why-card h3 { font-size: 1.1rem; font-weight: 800; }
.why-card p { margin-top: .45rem; color: var(--muted); }

/* ---------- отзиви ---------- */
.demo-flag { margin-top: 1rem; display: inline-flex; gap: .5rem; align-items: center; padding: .5rem .85rem; border-radius: 10px; background: rgba(255, 173, 51, .08); border: 1px dashed rgba(255, 173, 51, .5); color: #ffd79a; font-size: .9rem; font-weight: 600; }
.rev-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
@media (min-width: 860px) { .rev-grid { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; } }
.rev-card { display: flex; flex-direction: column; gap: .7rem; padding: 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.rev-tag { align-self: flex-start; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); border: 1px solid var(--line-2); padding: .2rem .55rem; border-radius: 6px; }
.rev-stars { color: var(--amber); letter-spacing: .15em; }
.rev-card blockquote { margin: 0; font-size: 1.02rem; color: #e3dfd6; }
.rev-who { margin-top: auto; display: flex; align-items: center; gap: .65rem; color: var(--muted); font-size: .9rem; font-weight: 600; }
.rev-av { width: 36px; height: 36px; display: grid; place-content: center; border-radius: 50%; background: linear-gradient(135deg, #3a414a, #22272e); color: var(--text); font-weight: 800; }

/* ---------- ЧЗВ ---------- */
.faq { display: grid; gap: .6rem; }
.faq details { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, background-color .25s; }
.faq details[open] { border-color: rgba(255, 173, 51, .4); background: var(--surface-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.05rem 1.15rem; font-weight: 700; font-size: 1.02rem; border-radius: var(--radius-sm); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border: solid var(--amber); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 1.15rem 1.1rem; color: var(--muted); animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- контакти ---------- */
.contact-grid { display: grid; gap: 1rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr 1fr; gap: 1.2rem; } }
.contact-cards { display: grid; gap: 1rem; }
.info-card { padding: 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.info-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: .9rem; }
.hours { margin: 0; display: grid; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.hours div:last-child { border-bottom: 0; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.hours .is-closed dd { color: var(--steel); font-weight: 500; }
.hours .is-today dt, .hours .is-today dd { color: var(--text); }
.today-tag { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: .1rem .45rem; border-radius: 6px; background: var(--amber); color: var(--amber-ink); vertical-align: 2px; }
.contact-line { display: flex; gap: .7rem; align-items: flex-start; padding: .35rem 0; font-weight: 600; }
.ci { flex: none; color: var(--amber); margin-top: .2rem; }

.map-ph {
  position: relative; min-height: 300px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 34px 34px,
    radial-gradient(circle at 45% 45%, #1d2228, #121519 70%);
}
.map-sea { position: absolute; right: -10%; bottom: -25%; width: 70%; height: 80%; border-radius: 45% 0 0 0; background: linear-gradient(160deg, #0f2733, #0b1a22); border-top-left-radius: 60% 70%; opacity: .95; }
.map-road { position: absolute; background: #2c333c; border-radius: 4px; }
.map-road.r1 { left: -5%; right: -5%; top: 48%; height: 8px; transform: rotate(-8deg); }
.map-road.r2 { top: -10%; bottom: -10%; left: 38%; width: 7px; transform: rotate(14deg); }
.map-road.r3 { left: 5%; right: 30%; top: 24%; height: 5px; transform: rotate(18deg); background: #262c34; }
.map-pin { position: absolute; left: 42%; top: 40%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 6px rgba(255, 173, 51, .25), 0 0 30px rgba(255, 173, 51, .6); }
.map-pin span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--amber); animation: radar 2.4s var(--ease) infinite; }
@keyframes radar { from { transform: scale(1); opacity: .9; } to { transform: scale(4); opacity: 0; } }
.map-label { position: absolute; left: calc(42% + 22px); top: calc(40% - 16px); font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: .02em; text-shadow: 0 2px 10px #000; }
.map-cap { position: absolute; left: 1rem; bottom: .8rem; font-size: .78rem; color: var(--steel); }

/* ---------- отказ ---------- */
.cancel-card { padding: clamp(1.3rem, 4vw, 2.2rem); border-radius: calc(var(--radius) + 4px); background: linear-gradient(150deg, #1b1f25, var(--surface)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cancel-copy p:not(.kicker) { margin-top: .7rem; color: var(--muted); }
.cancel-form { margin-top: 1.3rem; display: grid; gap: .9rem; }
@media (min-width: 680px) { .cancel-form { grid-template-columns: 1fr 1fr auto; align-items: end; } .cancel-btn { --h: 50px; } }
.cancel-result { margin-top: 1rem; padding: .8rem 1rem; border-radius: 12px; white-space: pre-line; font-weight: 600; }
.cancel-result.is-ok { background: rgba(79, 208, 138, .1); border: 1px solid rgba(79, 208, 138, .45); color: #c9f5dc; }
.cancel-result.is-ok::before { content: "✓ "; color: var(--ok); }
.cancel-result.is-err { background: rgba(255, 122, 107, .1); border: 1px solid rgba(255, 122, 107, .45); color: #ffd3cc; }
.cancel-result.is-err::before { content: "! "; color: var(--err); font-weight: 900; }

/* ---------- футър и плаващ бутон ---------- */
.footer { padding: 2.2rem 0 calc(5.5rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #08090a; color: var(--muted); font-size: .92rem; }
.footer-inner { display: flex; flex-direction: column; gap: .4rem; }
.footer strong { color: var(--amber); }
.footer-small { font-size: .82rem; color: #7d8590; }
@media (min-width: 760px) { .footer { padding-bottom: 2.2rem; } .footer-inner { flex-direction: row; justify-content: space-between; } }

.dock {
  position: fixed; z-index: 40; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 54px; border-radius: 999px;
  background: linear-gradient(180deg, #ffc061, var(--amber) 45%, var(--amber-2)); color: var(--amber-ink); font-weight: 800; text-decoration: none;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .8), 0 8px 30px -12px rgba(255, 150, 40, .7);
  transform: translateY(140%); opacity: 0; transition: transform .4s var(--ease), opacity .3s; pointer-events: none;
}
.dock-on .dock { transform: none; opacity: 1; pointer-events: auto; }
@media (min-width: 760px) { .dock { left: auto; right: 1.5rem; bottom: 1.5rem; padding: 0 1.4rem; } }

.noscript { position: fixed; bottom: 0; left: 0; right: 0; z-index: 80; margin: 0; padding: .8rem 1rem; text-align: center; background: #2a1512; color: #ffe1dc; }

/* ---------- намалено движение ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero-media img { transform: none; }
  .hero-anim, .rv { opacity: 1; transform: none; }
  .boot-spin { animation: spin 1.6s linear infinite !important; }
}
