/* КМ АУТО: демо. Дизайнът е този на Autoservice Grand Auto (името като монумент, стегната подредба). */
:root {
  /* светла гама: топъл светлосив фон, бели плочки, тъмнозелено за действията, мента за големите полета */
  --bg: #f2f1ec;
  --tone: #e7e6e0;
  --surface: #ffffff;
  --surface2: #ebeae4;
  --ink: #161c1a;
  --muted: #59605c;
  --accent: #2f7563;
  --accent-ink: #ffffff;
  --mint: #a9d3c3;
  --mint-ink: #161c1a;
  --mark: #e8c76a;

  --display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --text: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --pad: clamp(16px, 2.2vw, 32px);
  --gap: clamp(10px, 1.1vw, 16px);
  --sec: clamp(32px, 4vw, 56px);
  --head-h: 60px;

  --step-small: 1rem;
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --step-card: clamp(1.125rem, 1.05rem + 0.3vw, 1.3rem);
  --step-h2: clamp(1.9rem, 1.3rem + 2vw, 3rem);
  --step-h1: clamp(2.1rem, 1.1rem + 3.4vw, 4.4rem);
  --step-fact: clamp(1.4rem, 1.1rem + 1vw, 2.1rem);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--step-body)/1.55 var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, ul, ol, h1, h2, h3, h4, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: 8px; z-index: 100; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); background: var(--accent); color: var(--accent-ink); font-weight: 600; white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; padding: 10px 14px; }

.wrap { width: 100%; max-width: 1560px; margin-inline: auto; padding-inline: var(--pad); }
.sec { padding-block: var(--sec); }
.sec + .sec { padding-top: 0; }
.sec.tone { background: var(--tone); padding-block: var(--sec); }
.sec.tone + .sec { padding-top: var(--sec); }

/* Типографика */
.d, h1, h2, h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.005em; }
h1 { font-size: var(--step-h1); line-height: 0.98; text-wrap: balance; }
h2 { font-size: var(--step-h2); line-height: 1; text-wrap: balance; }
h3 { font-size: var(--step-card); line-height: 1.08; font-weight: 500; }
.lead { max-width: 56ch; text-wrap: pretty; font-size: 1.125rem; }
.small { font-size: var(--step-small); }
.soft { color: var(--muted); }

/* „За потвърждение“ (.tbc) и редовете за попълване (.fill-row): виждат се само от собственика
   в режим на редакция, за да знае какво още липсва. За посетителите functions/_middleware.js ги маха
   (попълненият ред остава като обикновен), а това тук ги крие, ако функцията не е тръгнала. */
.tbc, .fill-row { display: none; }
[data-editing] .tbc {
  display: inline-block; vertical-align: middle; margin-left: 8px; padding: 1px 7px;
  background: var(--mark); color: #1b1a12; font: 500 0.9375rem/1.35 var(--text); letter-spacing: 0;
  text-transform: none; white-space: normal;
}
[data-editing] .fill-row { display: block; background: #f6c9a2; color: #3a2410; padding: 4px 8px; }

/* Бутони: плоски, квадратни */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; font: 600 1rem/1 var(--text); white-space: nowrap;
  background: var(--accent); color: var(--accent-ink);
  transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn.alt { background: var(--surface2); color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--ink); color: var(--bg); }
  .btn.alt:hover { background: var(--mint); color: var(--mint-ink); }
  .btn:hover svg { transform: translateX(3px); }
}
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Хедър: обикновена лента */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); view-transition-name: header; }
.head-in { height: var(--head-h); display: flex; align-items: center; gap: 24px; }
.brand { font: 700 1.55rem/1 var(--display); letter-spacing: 0.02em; display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { padding: 10px 14px; font-weight: 500; transition: color 160ms ease, background-color 160ms ease; }
.nav a[aria-current="page"] { color: var(--accent); }
.head-phone { font-weight: 600; white-space: nowrap; padding: 10px 6px; }
.head-cta { min-height: 42px; padding: 0 18px; }
.menu-btn { display: none; margin-left: auto; min-height: 44px; padding: 0 14px; font-weight: 600; background: var(--surface2); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--accent); } }

/* Статус */
.status { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.status i { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.status.open i { background: var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.facts-sec { padding-block: var(--gap) 0; }
.facts-sec + .sec { padding-top: var(--sec); }
.fact { display: block; padding: 14px 16px; background: var(--surface); transition: background-color 180ms ease; }
.fact b { display: block; font: 600 var(--step-fact)/1.1 var(--display); text-transform: uppercase; }
.fact span { display: block; margin-top: 4px; font-size: 0.9375rem; }
@media (hover: hover) and (pointer: fine) { a.fact:hover { background: var(--surface2); } }

.facts.compact { grid-template-columns: 1fr 1fr; padding-top: 4px; margin-top: auto; }
@media (max-width: 899px) { .facts.compact { grid-template-columns: 1fr; margin-top: 0; } }

/* Заглавие на секция */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 18px; flex-wrap: wrap; }
.sec-head p { max-width: 52ch; }
.more { font-weight: 600; display: inline-flex; gap: 8px; align-items: center; padding: 8px 0; }
.more svg { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .more:hover svg { transform: translateX(4px); } }

/* Услуги: плочки в мрежа */
.svc-grid { --cols: 4; display: grid; grid-template-columns: repeat(var(--cols), 1fr); grid-auto-rows: 1fr; gap: var(--gap); }
.svc { position: relative; display: flex; flex-direction: column; background: var(--surface); box-shadow: 0 1px 2px rgba(22,28,26,0.06), 0 6px 18px rgba(22,28,26,0.05); transition: background-color 180ms ease, box-shadow 220ms ease; }
.svc figure { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface2); flex: none; }
.svc img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.svc-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.svc h3 { min-height: 2.16em; display: flex; align-items: flex-start; }
.svc p { font-size: 1rem; line-height: 1.45; }
.svc .go { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--accent); display: inline-flex; gap: 8px; align-items: center; }
.svc .go::after { content: ''; position: absolute; inset: 0; }
.svc .go svg { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .svc:hover { background: var(--surface); box-shadow: 0 2px 4px rgba(22,28,26,0.08), 0 14px 32px rgba(22,28,26,0.1); }
  .svc:hover img { transform: scale(1.05); }
  .svc:hover .go svg { transform: translateX(4px); }
}
.svc:active { transform: scale(0.985); transition: transform 120ms var(--ease-out); }

/* КМ АУТО: белег върху примерна (не на сервиза) снимка */
.svc figure, .page-hero figure { position: relative; }
.sample { position: absolute; left: 8px; bottom: 8px; z-index: 1; padding: 2px 8px; background: var(--mark); color: #1b1a12; font: 500 0.8125rem/1.35 var(--text); }

/* КМ АУТО: три плочки в „Още услуги“ */
.svc-grid.three { --cols: 3; }

/* КМ АУТО: 15+ години и 5,0 в Google */
.proof { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gap); }
.proof .panel { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; background: var(--surface); }
.proof h2 { font-size: var(--step-h2); }
.proof-num { display: block; font: 700 clamp(4.5rem, 2.4rem + 7vw, 9.5rem)/0.86 var(--display); color: var(--accent); margin-bottom: 0.17em; } /* въздух между „15+“ и реда под него */
.proof-years p { max-width: 58ch; }
.proof-years .more { margin-top: auto; }
.proof-google { background: var(--mint) !important; color: var(--mint-ink); transition: background-color 180ms ease, color 180ms ease; }
.proof-score { display: flex; align-items: center; gap: 16px; }
.proof-score b { font: 700 clamp(4.5rem, 2.4rem + 7vw, 9.5rem)/0.86 var(--display); }
.stars { display: flex; gap: 4px; }
.stars svg { width: clamp(20px, 2vw, 30px); height: clamp(20px, 2vw, 30px); }
.proof-count { font-weight: 600; }
.proof-google .ticks { columns: 2; column-gap: 24px; }
.proof-google .ticks li { break-inside: avoid; }
.proof-google .ticks li::before { background: currentColor; }
.proof-google .go { margin-top: auto; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.proof-google .go svg { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .proof-google:hover { background: var(--ink) !important; color: var(--bg); } .proof-google:hover .go svg { transform: translateX(4px); } }
.proof-google:active { transform: scale(0.99); }

/* КМ АУТО: бързи връзки към услугите на страницата */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; background: var(--surface2); font-weight: 500; font-size: 0.9375rem; transition: background-color 160ms ease, color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .chips a:hover { background: var(--mint); color: var(--mint-ink); } }
.svc-detail { scroll-margin-top: calc(var(--head-h) + 8px); }
.two.with-photo { grid-template-columns: 1fr 1fr 0.9fr; }
.detail-photo { position: relative; overflow: hidden; background: var(--surface); min-height: 260px; }
.detail-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Как работим */
.how { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gap); align-items: stretch; }
.stairs { counter-reset: none; display: grid; gap: clamp(14px, 1.6vw, 22px); align-content: start; }
.stairs li { margin-left: calc(var(--i) * clamp(0px, 3.6vw, 56px)); }
.stairs b { display: block; font: 600 clamp(1.5rem, 1.1rem + 1.6vw, 2.6rem)/1.02 var(--display); text-transform: uppercase; text-wrap: balance; }
.stairs p { margin-top: 6px; max-width: 46ch; }
.stairs li:last-child b { color: var(--accent); }
.how-photo { position: relative; overflow: hidden; min-height: 320px; background: var(--surface); }
.how-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Снимки: мозайка (начало) */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(120px, 14vw, 210px); gap: var(--gap); }
.mosaic figure { position: relative; overflow: hidden; background: var(--surface); }
.mosaic figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic figure:nth-child(4) { grid-column: span 2; }
.mosaic.strip { grid-auto-rows: clamp(130px, 14vw, 220px); }
.mosaic.strip figure:nth-child(n) { grid-column: span 1; grid-row: span 1; }
.mosaic img, .gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .mosaic figure:hover img, .gal figure:hover img { transform: scale(1.04); } }

/* Галерия (страница) */
.gal { columns: 3 320px; column-gap: var(--gap); }
.gal figure { break-inside: avoid; margin-bottom: var(--gap); position: relative; overflow: hidden; background: var(--surface); }
.gal button { display: block; width: 100%; }
.gal img { height: auto; }
.gal figcaption { padding: 8px 12px 10px; font-size: 1rem; background: var(--surface); }
dialog.lb { border: 0; padding: 0; background: rgba(10, 13, 12, 0.96); color: var(--ink); width: 100vw; height: 100dvh; max-width: none; max-height: none; }
dialog.lb::backdrop { background: rgba(0, 0, 0, 0.8); }
.lb-in { height: 100%; display: grid; grid-template-rows: 1fr auto; padding: 16px var(--pad); gap: 12px; }
.lb img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.lb-bar .btn { min-height: 44px; padding: 0 16px; }

/* Страница на услуга */
.page-hero { display: grid; grid-template-columns: 5fr 7fr; grid-template-areas: 'h h' 'c f'; gap: var(--gap); align-items: stretch; padding-top: 6px; }
.page-hero h1 { grid-area: h; font-size: clamp(1.55rem, 0.6rem + 4.6vw, 5.2rem); }
.page-hero .copy { grid-area: c; display: flex; flex-direction: column; gap: 16px; justify-content: flex-start; padding: 6px 0; }
.page-hero figure { grid-area: f; overflow: hidden; background: var(--surface); min-height: clamp(260px, 28vw, 420px); position: relative; }
.page-hero figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.panel { background: var(--surface); padding: clamp(18px, 2vw, 28px); }
.panel h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); margin-bottom: 12px; }
.ticks li { position: relative; padding: 6px 0 6px 22px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.95em; width: 9px; height: 9px; background: var(--accent); }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.steps3 li { background: var(--surface2); padding: 18px 20px; font: 500 clamp(1.15rem, 1rem + 0.6vw, 1.5rem)/1.2 var(--display); text-transform: uppercase; display: flex; align-items: center; min-height: 92px; }
.faq details { background: var(--surface); margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 52px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 500 1.6rem/1 var(--display); color: var(--accent); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; max-width: 70ch; }

/* Контакт */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gap); align-items: start; }
.rows { display: grid; gap: var(--gap); }
.row { display: block; background: var(--surface); padding: 16px 20px; }
.row b { display: block; font: 600 clamp(1.5rem, 1.1rem + 1.5vw, 2.4rem)/1.05 var(--display); text-transform: uppercase; }
.row span { display: block; margin-top: 4px; }
a.row { transition: background-color 180ms ease; }
@media (hover: hover) and (pointer: fine) { a.row:hover { background: var(--surface2); } }
form.inq { background: var(--surface); padding: clamp(18px, 2vw, 28px); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form.inq .full { grid-column: 1 / -1; }
form.inq h2 { grid-column: 1 / -1; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); }
label { display: grid; gap: 6px; font-weight: 500; }
input, textarea, select { font: 400 16px/1.3 var(--text); color: var(--ink); background: var(--surface2); border: 0; border-radius: 0; padding: 13px 14px; width: 100%; min-height: 48px; transition: border-color 160ms ease; border-bottom: 3px solid transparent; }
textarea { min-height: 112px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-bottom-color: var(--accent); }
::placeholder { color: #8a908c; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 0.9375rem; }
.check input { width: 22px; min-height: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.form-note { min-height: 1.4em; font-size: 0.9375rem; }
.map { width: 100%; height: clamp(280px, 30vw, 380px); border: 0; display: block; background: var(--surface); filter: grayscale(0.4) contrast(0.95); }
/* картата преди зареждане: адрес и бутон (Google не получава данни, докато посетителят не натисне) */
.map-off { filter: none; display: grid; place-items: center; padding: 24px; text-align: center;
  background: var(--surface) repeating-linear-gradient(135deg, transparent 0 22px, rgba(47, 117, 99, 0.05) 22px 23px); }
.map-cover { display: grid; gap: 14px; justify-items: center; max-width: 520px; }
.map-addr { font-size: 1.125rem; line-height: 1.4; }
.map-addr b { display: block; font: 700 1.5rem/1.1 var(--display); text-transform: uppercase; margin-bottom: 4px; }
.map-cover .btn-row { justify-content: center; }
.map-cover .small { color: var(--muted); }

/* Текст (поверителност) */
.prose { max-width: 78ch; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 28px 0 10px; }
.prose p, .prose li { margin-bottom: 10px; }
.prose ul { padding-left: 20px; list-style: square; }

/* Ленти за действие и подвал */
.cta { display: block; background: var(--mint); color: var(--mint-ink); padding: 14px var(--pad) 8px; position: relative; overflow: hidden; transition: background-color 200ms ease, color 200ms ease; }
.cta-in { max-width: 1560px; margin: 0 auto; display: grid; grid-template-columns: auto auto 1fr; grid-template-areas: 'w a p'; align-items: end; gap: 8px clamp(14px, 2vw, 32px); }
.cta strong { grid-area: w; }
.cta svg { grid-area: a; }
.cta p { grid-area: p; font-weight: 500; max-width: 30ch; justify-self: end; text-align: right; padding-bottom: 1.4vw; font-size: 1.125rem; }
.cta strong { font: 700 clamp(56px, 12.5vw, 190px)/0.86 var(--display); text-transform: uppercase; white-space: nowrap; letter-spacing: -0.005em; }
.cta svg { width: clamp(36px, 5vw, 72px); height: clamp(36px, 5vw, 72px); margin-bottom: 0.6vw; transition: transform 260ms var(--ease-out); }
.cta:active { filter: brightness(0.95); }
@media (hover: hover) and (pointer: fine) { .cta:hover { background: var(--ink); color: var(--bg); } .cta:hover svg { transform: translate(6px, -6px); } }

.site-footer { background: var(--ink); color: var(--bg); overflow: hidden; position: relative; }
.foot-grid { display: grid; grid-template-columns: 1.1fr 1.7fr 1fr; gap: 24px var(--gap); padding-block: 36px 20px; }
.foot-grid h2 { font-size: 1.25rem; margin-bottom: 8px; }
.foot-grid li { padding: 3px 0; }
.foot-grid a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: transparent; transition: text-decoration-color 160ms ease; }
.foot-grid .big { font: 600 clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem)/1.05 var(--display); text-transform: uppercase; max-width: 12ch; margin-bottom: 14px; }
.foot-grid .btn { background: var(--mint); color: var(--mint-ink); }
@media (hover: hover) and (pointer: fine) { .foot-grid a:hover { text-decoration-color: currentColor; } .foot-grid .btn:hover { background: var(--mint); color: var(--mint-ink); } }
.legal { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: var(--step-small); padding-bottom: 6px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.cols { columns: 2; column-gap: 24px; }
/* Краят на страницата („Запази час“ + подвал) се събира на един екран; името долу заема останалото място, без да се реже */
.closing { display: flex; flex-direction: column; min-height: calc(100vh - var(--head-h)); }
@supports (height: 100svh) { .closing { min-height: calc(100svh - var(--head-h)); } }
.closing .cta { flex: none; padding-bottom: clamp(14px, 1.5vw, 26px); }
.closing .site-footer { flex: 1 0 auto; display: flex; flex-direction: column; }
.closing .site-footer > .wrap { flex: none; }
.closing .site-footer > .foot-mark-box { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 6px; padding-bottom: clamp(8px, 1.6vh, 18px); position: relative; min-height: 0; }
.foot-mark { flex: 1 0 clamp(36px, min(9vw, 12vh), 110px); position: relative; max-height: calc((min(100vw, 1560px) - 2 * var(--pad)) / 4.275); transform-origin: 0 100%; user-select: none; }
.foot-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.foot-mark text { font-family: var(--display); font-weight: 700; fill: currentColor; }
@media (min-width: 900px) {
  .cta strong { font-size: clamp(56px, min(12.5vw, 19vh), 190px); }
  .foot-grid { padding-block: clamp(16px, 3.4vh, 36px) clamp(8px, 1.8vh, 20px); }
  .foot-grid li { padding: clamp(0px, 0.35vh, 3px) 0; line-height: 1.45; }
}

/* Лента „Обадете се / Viber“ на телефон */
.dock { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--bg); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px; view-transition-name: dock; }
.dock .btn { flex: 1; min-height: 52px; padding: 0 10px; font-size: 1rem; }
.dock svg { width: 20px; height: 20px; }

.toast { position: fixed; left: 50%; bottom: 84px; z-index: 80; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--bg); padding: 12px 16px; font-weight: 500; max-width: min(92vw, 460px); transition: opacity 200ms ease, transform 200ms var(--ease-out); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Преходи между страниците */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 160ms ease-out both vt-out; }
::view-transition-new(root) { animation: 280ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
.page-out main, .page-out .cta, .page-out .site-footer { opacity: 0; transition: opacity 160ms ease-out; }

/* Начално състояние на ефектите: само при включен JS и допускани анимации.
   На телефон се крият само заглавията и снимките (по-малко слоеве за рисуване = по-гладък скрол). */
@media (prefers-reduced-motion: no-preference) {
  .js:not(.no-anim) .hero [data-r] { opacity: 0; }
  .js:not(.no-anim) [data-split] { visibility: hidden; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 768px) {
  .js:not(.no-anim) [data-r], .js:not(.no-anim) [data-card] { opacity: 0; }
  .js:not(.no-anim) [data-wipe] { clip-path: inset(100% 0 0 0); }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 767px) {
  .js:not(.no-anim) main > section:not(.stage):not(.hero) :is([data-wipe], [data-split]) {
    visibility: visible; opacity: 0; transform: translateY(14px);
    transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
  }
  .js:not(.no-anim) main > section:not(.stage):not(.hero) :is([data-wipe], [data-split]).in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .status.open i { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---- Таблет ---- */
@media (max-width: 1099px) {
  .svc-grid, .svc-grid.three { --cols: 2; }
  .two.with-photo { grid-template-columns: 1fr 1fr; }
  .two.with-photo .detail-photo { grid-column: 1 / -1; min-height: 0; aspect-ratio: 16 / 9; }
  .svc-grid.four { --cols: 2; }
  .head-phone { display: none; }
}
@media (max-width: 899px) {
  :root { --head-h: 56px; }
  .nav { position: fixed; left: 0; right: 0; top: var(--head-h); background: var(--bg); flex-direction: column; gap: 0; padding: 8px var(--pad) 20px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 180ms ease, transform 220ms var(--ease-out), visibility 0s linear 220ms; }
  .nav.open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav a { font: 600 1.9rem/1 var(--display); text-transform: uppercase; padding: 14px 0; }
  .head-cta { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .how, .two, .two.with-photo, .contact-grid, .proof { grid-template-columns: 1fr; }
  .page-hero { grid-template-columns: 1fr; grid-template-areas: 'h' 'f' 'c'; }
  .page-hero figure { min-height: 0; aspect-ratio: 16 / 10; }
  .how-photo { min-height: 0; aspect-ratio: 16 / 10; }
  .facts { grid-template-columns: 1fr; }
  .fact { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 14px; padding: 12px 14px; }
  .fact span { margin-top: 0; }
  .stairs li { margin-left: calc(var(--i) * 5vw); }
  .steps3 { grid-template-columns: 1fr; }
  .steps3 li { min-height: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:nth-child(2) { grid-column: 1 / -1; order: 3; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 38vw; }
  .mosaic figure:nth-child(1) { grid-row: span 1; }
  .dock { display: flex; }
  body { padding-bottom: 68px; }
  .toast { bottom: 90px; }
  .gal { columns: 2 200px; }
  form.inq { grid-template-columns: 1fr 1fr; }
}
/* ---- Телефон: една плочка на ред, снимка вляво ---- */
@media (max-width: 599px) {
  .svc-grid, .svc-grid.four, .svc-grid.three { --cols: 1; gap: 10px; }
  .proof-google .ticks { columns: 1; }
  .svc { flex-direction: row; min-height: 124px; }
  .svc figure { width: 38%; aspect-ratio: auto; }
  .svc-body { padding: 12px 14px; gap: 5px; }
  .svc h3 { min-height: 0; font-size: 1.15rem; }
  .svc p { font-size: 0.9375rem; line-height: 1.4; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-grid > div:nth-child(2) { order: 0; grid-column: auto; }
  .gal { columns: 1; }
  form.inq { grid-template-columns: 1fr; }
  .cta p { font-size: 1rem; }
}
@media (max-width: 699px) {
  .cta-in { grid-template-columns: 1fr auto; grid-template-areas: 'p p' 'w a'; }
  .cta p { justify-self: start; text-align: left; max-width: none; padding-bottom: 0; }
}

/* ===== 3D сцени: двигател и скоростна кутия =====
   Без WebGL: неподвижна картина. При намалени анимации: 3D с плъзгач, без залепяне и без движение.
   Иначе (html.can3d) сцената остава залепена на екрана, а скролът я разглобява. */
.stage { position: relative; --stage-h: calc(100vh - var(--head-h)); --travel: 440vh; background: var(--bg); }
@supports (height: 100svh) { .stage { --stage-h: calc(100svh - var(--head-h)); --travel: 440svh; } }
.stage-gearbox { background: #101513; --travel: 390vh; margin-block: 0; }
@supports (height: 100svh) { .stage-gearbox { --travel: 390svh; } }
.stage-sticky { position: relative; display: flex; flex-direction: column; }
.stage-bg { pointer-events: none; user-select: none; }
.stage-word { display: block; font: 700 clamp(60px, 17.6vw, 262px)/1 var(--display); text-transform: uppercase; white-space: nowrap; letter-spacing: -0.005em; color: #e0dfd8; margin: -0.04em 0 -0.08em; transition: opacity 400ms ease; }
.stage-word span, .stage-word div { display: inline-block; }
.stage:not([data-at="0"]):not([data-at="7"]) .stage-word { opacity: 0.35; }
.stage-view { position: relative; height: clamp(260px, 72vw, 460px); }
.stage-view canvas, .stage-poster { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-poster { object-fit: contain; }
.is-live .stage-poster { display: none; }
.stage-ui { position: relative; padding-block: 10px 14px; }
.stage-panels { display: grid; }
.stage-panels > .step { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; visibility: hidden; opacity: 0; transform: translateY(14px); transition: opacity 220ms ease, transform 320ms var(--ease-out), visibility 0s linear 220ms; }
.stage-panels > .step.is-on { visibility: visible; opacity: 1; transform: none; transition: opacity 360ms ease 80ms, transform 420ms var(--ease-out) 80ms, visibility 0s; }
.stage-panels h2, .stage-panels h3 { font-size: var(--step-h2); font-weight: 600; line-height: 1; }
.stage-panels p { max-width: 44ch; }
.stage-panels .status { font-weight: 500; }
.stage-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-top: 10px; font-size: var(--step-small); }
.stage-hint { color: var(--muted); }
.stage-hint { display: none; }
.can3d .stage-hint { display: block; }
.can3d .stage:not([data-at="0"]) .stage-hint { visibility: hidden; }
.stage-range { display: none; }
.has-webgl:not(.can3d) .stage-range { display: grid; gap: 4px; width: min(100%, 420px); }
.stage-range input { min-height: 40px; padding: 0; background: none; accent-color: var(--accent); border: 0; }
.stage-bar { display: none; height: 3px; background: var(--surface2); margin-top: 10px; }
.stage-bar i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.gear-row { display: flex; align-items: center; gap: 22px; }
.gear-no { font: 700 clamp(4rem, 2rem + 6vw, 8rem)/0.9 var(--display); color: var(--accent); min-width: 0.7em; }
.pips { display: flex; gap: 6px; }
.pips li { width: clamp(12px, 1.3vw, 18px); height: clamp(30px, 3.4vw, 46px); background: var(--surface2); border: 2px solid transparent; transition: background-color 160ms ease, border-color 160ms ease; }
.pips li.next { border-color: var(--accent); }
.pips li.on { background: var(--accent); }
.stage-panels .ratio b { color: var(--ink); }
.stage-panels .ratio { color: var(--muted); font-size: var(--step-small); }

.can3d .stage { height: calc(var(--stage-h) + var(--travel)); }
.can3d .stage-sticky { position: sticky; top: var(--head-h); height: var(--stage-h); overflow: hidden; }

/* широк екран: текстът вляво, моделът вдясно */
@media (min-width: 900px) {
  /* мека сянка зад текста, за да се чете, когато част от модела мине под него */
  .stage:not([data-at="0"]) .stage-view::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 48%; background: linear-gradient(90deg, rgba(242,241,236,0.94) 45%, rgba(242,241,236,0)); /* taste-skill-ignore */ pointer-events: none; }
  .stage-gearbox:not([data-at="0"]) .stage-view::after { background: linear-gradient(90deg, rgba(16,21,19,0.94) 45%, rgba(16,21,19,0)); /* taste-skill-ignore */ }
  .stage-bg { position: absolute; left: 0; right: 0; top: 0; }
  .stage-view { position: absolute; inset: 0; height: auto; }
  .stage-poster { left: 36%; width: 64%; }
  .stage-sticky { min-height: min(760px, var(--stage-h)); }
  .can3d .stage-sticky { min-height: 0; }
  .stage-ui { position: absolute; inset: 0; margin-inline: auto; display: flex; flex-direction: column; justify-content: flex-end; pointer-events: none; padding-block: 0 14px; }
  .stage-ui a, .stage-ui button, .stage-ui input { pointer-events: auto; }
  .stage-panels { width: min(440px, 36%); margin-block: auto; }
  .stage-engine .stage-panels { margin-top: clamp(190px, 20vw, 300px); }
  .stage-engine .stage-panels h1 { font-size: clamp(2.4rem, 1rem + 3vw, 4.2rem); }
  .stage-bar { display: block; }
  .has-webgl:not(.can3d) .stage-bar { display: none; }
}
@media (min-width: 900px) and (max-height: 760px) {
  .stage-engine .stage-panels { margin-top: clamp(130px, 13vw, 190px); }
  .stage-engine .stage-word { transform: scaleY(0.66); transform-origin: 0 0; }
  .stage-panels > .step { gap: 9px; }
}

/* телефон и таблет: моделът отгоре, текстът отдолу */
@media (max-width: 899px) {
  .stage { --stage-h: calc(100vh - var(--head-h) - 68px); }
  @supports (height: 100svh) { .stage { --stage-h: calc(100svh - var(--head-h) - 68px - env(safe-area-inset-bottom)); } }
  .stage-bg { position: absolute; left: 0; right: 0; top: 4px; }
  .stage-ui { width: 100%; }
  .stage-panels h1 { font-size: clamp(1.9rem, 8.4vw, 3rem); }
  .stage-panels h2, .stage-panels h3 { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .stage-panels p { font-size: 1.0625rem; line-height: 1.45; }
  .stage-panels > .step { gap: 9px; }
  .stage-panels .wide-only { display: none; }
  .stage-foot { margin-top: 4px; }
  .can3d .stage-view { flex: 1 1 0; height: auto; min-height: 0; }
  .can3d .stage-ui { flex: none; padding-block: 4px 10px; }
  .can3d .stage-bar { display: block; margin-top: 6px; }
  .stage-foot { flex-wrap: nowrap; justify-content: space-between; }
  .has-webgl:not(.can3d) .stage-foot { flex-wrap: wrap; }
  .stage-foot .more { margin-left: auto; padding: 6px 0; white-space: nowrap; }
  .wide-text { display: none; }
  .can3d .stage:not([data-at="0"]) .stage-hint { display: none; }
  .gear-no { font-size: 3.6rem; }
  .pips li { width: 11px; height: 30px; }
  .pips { gap: 4px; }
  .gear-row { position: absolute; right: 0; top: 0; gap: 10px; }
  .gear-row + h3 { padding-right: 170px; min-height: 58px; display: flex; align-items: center; font-size: 1.5rem; }
  .stage-panels .step { position: relative; }
}
@media (max-width: 899px) and (max-height: 700px) {
  .stage-engine .step.hero .lead { display: none; }
  .stage-panels p { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .stage-panels > .step, .stage-panels > .step.is-on { transition: none; transform: none; } }
/* Подвал на телефон: по-сбит, за да се побира на един екран (бутоните за обаждане и Viber са в долната лента) */
@media (max-width: 899px) {
  .closing { min-height: calc(100vh - var(--head-h) - 68px); }
}
@supports (height: 100svh) { @media (max-width: 899px) { .closing { min-height: calc(100svh - var(--head-h) - 68px - env(safe-area-inset-bottom)); } } }
@media (max-width: 699px) {
  .cta strong { font-size: min(13.8vw, 56px); }
  .cta svg { width: 32px; height: 32px; }
  .closing .cta { padding-top: 10px; padding-bottom: 12px; }
  .cta-in { row-gap: 4px; }
  .cta p { font-size: 0.9375rem; line-height: 1.4; }
}
@media (max-width: 599px) {
  .foot-grid { gap: 10px; padding-block: 14px 8px; }
  .foot-grid .big { font-size: 1.25rem; max-width: none; margin-bottom: 0; }
  .foot-grid > div:first-child .btn { display: none; }
  .foot-grid h2 { font-size: 1.05rem; margin-bottom: 2px; }
  .foot-grid ul { font-size: 0.9375rem; line-height: 1.3; }
  .foot-grid li { padding: 3px 0; break-inside: avoid; }
  .foot-grid .cols { column-gap: 14px; }
  .foot-grid > div:nth-child(3) ul { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; }
  .foot-grid > div:nth-child(3) li:nth-child(n+3) { grid-column: 1 / -1; }
  .foot-grid .tbc { margin-left: 4px; font-size: 0.8125rem; }
  .legal { font-size: 0.875rem; line-height: 1.4; gap: 4px 16px; padding-bottom: 0; }
  .legal .tbc { margin-left: 2px; font-size: 0.8125rem; }
}
@media (max-width: 599px) and (max-height: 700px) {
  .foot-grid > div:first-child { display: none; }
  .foot-grid { padding-top: 8px; gap: 6px; }
  .foot-grid li { padding: 1px 0; }
}
@media (max-width: 899px) { .foot-mark { max-height: calc((100vw - 2 * var(--pad)) / 4.275 * 1.6); } }
@media (max-width: 599px) and (max-height: 700px) { .closing .cta p { display: none; } }


/* ===== Запитване и час за преглед: бутони, календар, готово съобщение за Viber с копиране ===== */
.book-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: start; }
.book-steps { display: grid; gap: var(--gap); }
.book-step { background: var(--surface); padding: clamp(18px, 2vw, 28px); display: grid; gap: 14px; box-shadow: 0 1px 2px rgba(22,28,26,0.05); }
.book-step h3 { font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.7rem); font-weight: 600; }
.book-step .hint { color: var(--muted); font-size: 0.9375rem; margin-top: -8px; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; background: var(--surface2); color: var(--ink); font: 500 0.9375rem/1.2 var(--text); transition: background-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out); touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.pick:active { transform: scale(0.96); }
.pick[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) { .pick[aria-pressed="false"]:hover { background: var(--mint); } }
.pick:disabled { opacity: 0.35; cursor: not-allowed; }
.car-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 10px; }
.book-step label { font-weight: 500; }
.book-step select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23161c1a' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.two-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.book-step input, .book-step select, .book-step textarea { min-width: 0; }
.book-steps, .book-step { min-width: 0; }

/* календар */
.cal { display: grid; gap: 8px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-head b { font: 600 1.25rem/1 var(--display); text-transform: uppercase; }
.cal-nav { width: 44px; height: 44px; display: grid; place-items: center; background: var(--surface2); transition: background-color 160ms ease; }
.cal-nav svg { width: 18px; height: 18px; }
.cal-nav:disabled { opacity: 0.3; cursor: default; }
@media (hover: hover) and (pointer: fine) { .cal-nav:not(:disabled):hover { background: var(--mint); } }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { text-align: center; font-size: 0.8125rem; font-weight: 600; color: var(--muted); padding: 4px 0; }
.cal-day { aspect-ratio: 1 / 0.82; min-height: 40px; display: grid; place-items: center; background: var(--surface2); font: 500 1rem/1 var(--text); font-variant-numeric: tabular-nums; transition: background-color 140ms ease, color 140ms ease, transform 120ms var(--ease-out); }
.cal-day:active:not(:disabled) { transform: scale(0.94); }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-day[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.cal-day:disabled { background: transparent; color: #b7bbb7; cursor: default; }
.cal-day.blank { background: none; }
@media (hover: hover) and (pointer: fine) { .cal-day:not(:disabled):not([aria-pressed="true"]):hover { background: var(--mint); } }
.slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.slots .pick { padding: 0 6px; font-variant-numeric: tabular-nums; }

/* обобщение: готовото съобщение */
.book-sum { position: sticky; top: calc(var(--head-h) + 16px); background: var(--ink); color: #eceae4; padding: clamp(18px, 2vw, 28px); display: grid; gap: 14px; }
.book-sum h3 { font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.7rem); font-weight: 600; color: #fff; }
.book-msg { margin: 0; padding: 14px 16px; background: #222a27; color: #f2f1ec; font: 400 0.9375rem/1.5 var(--text); white-space: pre-wrap; word-break: break-word; min-height: 8.5em; }
.book-sum .btn { width: 100%; }
.book-sum .btn.mint { background: var(--mint); color: var(--mint-ink); }
.book-sum .btn.ghost { background: #2c3532; color: #f2f1ec; }
@media (hover: hover) and (pointer: fine) { .book-sum .btn.mint:hover { background: #fff; color: var(--ink); } .book-sum .btn.ghost:hover { background: #3a4541; } }
.book-sum .note { font-size: 0.875rem; color: #c3c7c2; }
.book-sum .err { color: #f3c27a; font-weight: 600; min-height: 1.3em; font-size: 0.9375rem; }
.btn.copied { background: var(--mint) !important; color: var(--mint-ink) !important; }
.book-when { font-weight: 600; }

@media (max-width: 899px) {
  .book-grid { grid-template-columns: minmax(0, 1fr); }
  .book-sum { position: static; }
  .car-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .car-row label:last-child { grid-column: 1 / -1; }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 420px) { .two-in { grid-template-columns: minmax(0, 1fr); } }

.contact-rows .rows { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.has-cal .cal-fallback { display: none; }


/* ===== Първи екран: голяма снимка на цял екран, името отгоре, текстът вляво (като Grand Auto, версия 1) ===== */
.hero { --wm: clamp(60px, 17.6vw, 262px); position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: calc(100vh - var(--head-h)); color: #f4f3ef; background: #161c1a; }
@supports (height: 100svh) { .hero { min-height: calc(100svh - var(--head-h)); } }
.hero-photo { position: absolute; inset: 0; overflow: hidden; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 55%; will-change: transform; }
.hero-photo::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(14,18,17,0.82) 0%, rgba(14,18,17,0.58) 34%, rgba(14,18,17,0) 66%), linear-gradient(180deg, rgba(14,18,17,0.55) 0%, rgba(14,18,17,0.2) 34%, rgba(14,18,17,0) 56%, rgba(14,18,17,0.35) 100%); /* taste-skill-ignore */ }
.hero-in { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; padding-top: 6px; padding-bottom: 22px; }
.hero .wordmark { font: 700 var(--wm)/1 var(--display); letter-spacing: -0.005em; white-space: nowrap; text-transform: uppercase; display: block; align-self: flex-start; margin: -0.07em 0 -0.06em; color: #f4f3ef; user-select: none; }
.hero .wordmark div, .hero .wordmark span { display: inline-block; }
.hero-copy { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 14px 0 4px; max-width: 50%; }
.hero-copy h1 { max-width: none; }
.hero-copy .lead { margin-top: 2px; font-size: 1.1875rem; }
.hero-copy h1, .hero-copy .lead, .hero-copy .status { text-shadow: 0 1px 18px rgba(12,16,15,0.6); /* taste-skill-ignore */ }
.hero .btn.alt { background: rgba(244,243,239,0.16); color: #f4f3ef; }
@media (hover: hover) and (pointer: fine) { .hero .btn.alt:hover { background: var(--mint); color: var(--mint-ink); } }
.hero .status i { background: #c9cfc9; }
.hero .status.open i { background: var(--mint); }
@media (min-width: 900px) and (max-height: 760px) {
  .hero .wordmark { transform: scaleY(0.76); transform-origin: 0 0; margin-bottom: calc(var(--wm) * -0.2); }
  .hero-copy { gap: 10px; padding-top: 8px; }
  .hero-copy h1 { font-size: clamp(2rem, 1rem + 2.6vw, 3.4rem); }
}
@media (max-width: 899px) {
  .hero { min-height: calc(100vh - var(--head-h) - 68px); }
  .hero-photo { bottom: 22%; }
  .hero-photo img { object-position: 64% 50%; }
  .hero-photo::after { background: linear-gradient(180deg, rgba(22,28,26,0.62) 0%, rgba(22,28,26,0.08) 26%, rgba(22,28,26,0.05) 42%, rgba(22,28,26,0.85) 72%, rgb(22,28,26) 100%); /* taste-skill-ignore */ }
  .hero-copy { max-width: none; justify-content: flex-end; gap: 12px; padding-bottom: 0; }
  .hero-in { padding-bottom: 16px; }
}
@supports (height: 100svh) { @media (max-width: 899px) { .hero { min-height: calc(100svh - var(--head-h) - 68px - env(safe-area-inset-bottom)); } } }
@media (max-width: 400px) { .hero-copy .btn-row { flex-wrap: nowrap; } .hero-copy .btn { flex: 1; padding: 0 10px; } .hero-copy .lead { font-size: 1rem; line-height: 1.45; } }
/* снимката влиза леко (само transform, работи и на телефон) */
@media (prefers-reduced-motion: no-preference) {
  .js:not(.no-anim) .hero-photo img { animation: hero-in 1.6s var(--ease-out) both; }
}
@keyframes hero-in { from { transform: scale(1.12); } }


/* ===== Първи екран с видео: модерна подредба =====
   горе: оценка в Google; среда: голям надпис със сменяща се дума и бутони вдясно; долу: лента с час, телефон, адрес */
.hv { min-height: calc(100vh - var(--head-h)); color: #f4f3ef; background: #0f1312; }
@supports (height: 100svh) { .hv { min-height: calc(100svh - var(--head-h)); } }
.hv-media { position: absolute; inset: 0; overflow: hidden; }
.hv-poster img, .hv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hv-video { opacity: 0; transition: opacity 900ms ease; }
.hv-video.is-on { opacity: 1; }
.hv-media::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10,13,12,0.78) 0%, rgba(10,13,12,0.45) 42%, rgba(10,13,12,0.1) 70%, rgba(10,13,12,0.25) 100%),
              linear-gradient(180deg, rgba(10,13,12,0.45) 0%, rgba(10,13,12,0) 26%, rgba(10,13,12,0) 46%, rgba(10,13,12,0.6) 76%, rgba(10,13,12,0.88) 100%); /* taste-skill-ignore */ }
.hv-in { position: relative; z-index: 1; flex: 1; display: grid; grid-template-rows: auto 1fr auto; gap: 20px; padding-top: clamp(18px, 3vh, 36px); padding-bottom: 0; }
.hv-top { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.hv-rating { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 16px 0 12px; background: rgba(244,243,239,0.12); border: 1px solid rgba(244,243,239,0.18); border-radius: 999px; font-weight: 500; font-size: 0.9375rem; transition: background-color 180ms ease; }
.hv-rating .stars { color: var(--mint); display: inline-flex; gap: 2px; }
.hv-rating .stars svg { width: 15px; height: 15px; }
.hv-rating b { font: 600 1.15rem/1 var(--display); }
@media (hover: hover) and (pointer: fine) { .hv-rating:hover { background: rgba(244,243,239,0.22); } }
.hv-sample { font-size: 0.8125rem; color: rgba(244,243,239,0.7); }
.hv-sample .tbc { font-size: 0.75rem; }
.hv-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); align-items: end; gap: 24px 48px; padding-bottom: clamp(18px, 4vh, 48px); }
.hv-h1 { font: 500 clamp(1rem, 0.85rem + 0.5vw, 1.35rem)/1.2 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint); display: flex; align-items: center; gap: 14px; margin-bottom: clamp(10px, 1.6vh, 18px); }
.hv-h1::before { content: ''; width: 40px; height: 2px; background: currentColor; flex: none; }
.hv-big { font: 700 clamp(3rem, 1rem + 5.2vw, 6.6rem)/0.9 var(--display); text-transform: uppercase; letter-spacing: -0.005em; display: grid; }
.hv-line { display: block; }
.hv-rot { display: inline-grid; overflow: hidden; color: var(--mint); padding-bottom: 0.14em; margin-bottom: -0.1em; }
.hv-word { grid-area: 1 / 1; white-space: nowrap; transform: translateY(105%); opacity: 0; transition: transform 750ms cubic-bezier(0.22, 1, 0.36, 1), opacity 450ms ease; }
.hv-word.is-on { transform: none; opacity: 1; }
.hv-word.is-out { transform: translateY(-105%); opacity: 0; }
.hv-side { display: grid; gap: 18px; }
.hv-lead { font-size: 1.125rem; line-height: 1.5; color: rgba(244,243,239,0.9); text-wrap: pretty; }
.hv .btn.alt { background: rgba(244,243,239,0.14); color: #f4f3ef; }
@media (hover: hover) and (pointer: fine) { .hv .btn.alt:hover { background: var(--mint); color: var(--mint-ink); } }
.hv-bar { display: flex; align-items: center; gap: 12px 36px; flex-wrap: wrap; border-top: 1px solid rgba(244,243,239,0.2); padding: 16px 0 18px; font-size: 0.9375rem; }
.hv-bar .status { font-weight: 500; }
.hv-bar .status i { background: #c9cfc9; }
.hv-bar .status.open i { background: var(--mint); }
.hv-bar-link { color: rgba(244,243,239,0.88); transition: color 160ms ease; }
.hv-down { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.hv-down svg { width: 18px; height: 18px; animation: hv-bob 2.2s ease-in-out infinite; }
@keyframes hv-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (hover: hover) and (pointer: fine) { .hv-bar-link:hover, .hv-down:hover { color: var(--mint); } }
@media (prefers-reduced-motion: reduce) { .hv-down svg { animation: none; } .hv-word { transition: none; } }
@media (min-width: 900px) and (max-height: 760px) { .hv-big { font-size: clamp(2.8rem, 1rem + 5vw, 5.6rem); } .hv-main { padding-bottom: 14px; } }

/* телефон: вертикалното видео, всичко подредено отдолу */
@media (max-width: 899px) {
  .hv { min-height: calc(100vh - var(--head-h) - 68px); }
  .hv-media::after { background: linear-gradient(180deg, rgba(10,13,12,0.5) 0%, rgba(10,13,12,0) 22%, rgba(10,13,12,0.05) 40%, rgba(10,13,12,0.78) 68%, rgba(10,13,12,0.95) 100%); /* taste-skill-ignore */ }
  .hv-in { gap: 14px; padding-top: 14px; }
  .hv-top { justify-content: flex-start; }
  .hv-sample { order: 2; width: 100%; }
  .hv-main { grid-template-columns: minmax(0, 1fr); align-self: end; padding-bottom: 4px; gap: 18px; }
  .hv-big { font-size: clamp(2.2rem, 10.6vw, 3.8rem); }
  .hv-h1 { font-size: 0.95rem; letter-spacing: 0.12em; }
  .hv-h1::before { width: 26px; }
  .hv-lead { font-size: 1rem; }
  .hv-side .btn-row { display: grid; grid-template-columns: 1fr 1fr; }
  .hv-side .btn { padding: 0 10px; }
  .hv-bar { padding: 12px 0 14px; gap: 8px 18px; }
  .hv-bar-link, .hv-down { display: none; }
}
@supports (height: 100svh) { @media (max-width: 899px) { .hv { min-height: calc(100svh - var(--head-h) - 68px - env(safe-area-inset-bottom)); } } }

/* ===== КМ АУТО, 2026-11-30: номер на рамата, два телефона, пет услуги, един бутон „Направи запитване“ ===== */
.vin .opt { font-weight: 400; color: var(--muted); font-size: 0.875rem; margin-left: 4px; }
.vin input { letter-spacing: 0.04em; text-transform: uppercase; }
.vin input::placeholder { text-transform: none; letter-spacing: 0; }
.book-step .vin-hint { margin-top: -6px; color: #8a5a12; }
.book-step .vin-hint:empty { display: none; }
.book-sum .note.phones { color: #eceae4; font-weight: 500; }
.book-sum .note.phones a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(236,234,228,0.4); }

/* четири плочки с работно време, два телефона и адрес */
.facts.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1099px) and (min-width: 900px) { .facts.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 899px) { .facts.four { grid-template-columns: 1fr; } }
.fact.phones b { line-height: 1.2; }
.fact.phones b a { display: inline-block; padding: 2px 0; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: transparent; transition: text-decoration-color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .fact.phones b a:hover { text-decoration-color: currentColor; } }

/* пет услуги: три плочки отгоре и две широки отдолу, със снимка отляво */
@media (min-width: 1100px) {
  .svc-grid.five { --cols: 6; grid-auto-rows: auto; }
  .svc-grid.five > .svc { grid-column: span 2; }
  .svc-grid.five > .svc:nth-child(n+4) { grid-column: span 3; flex-direction: row; min-height: 230px; }
  .svc-grid.five > .svc:nth-child(n+4) figure { width: 46%; aspect-ratio: auto; }
  .svc-grid.five > .svc:nth-child(n+4) h3 { min-height: 0; }
}
@media (min-width: 600px) and (max-width: 1099px) {
  .svc-grid.five > .svc:last-child { grid-column: 1 / -1; flex-direction: row; min-height: 210px; }
  .svc-grid.five > .svc:last-child figure { width: 48%; aspect-ratio: auto; }
}

/* един бутон в първия екран и в долната лента на телефон */
.hv .btn.hv-cta { background: var(--mint); color: var(--mint-ink); }
@media (hover: hover) and (pointer: fine) { .hv .btn.hv-cta:hover { background: #fff; color: var(--ink); } }
.dock .btn.mint { background: var(--accent); color: var(--accent-ink); }
.dock { transition: transform 240ms var(--ease-out), visibility 0s; }
.dock-off .dock { transform: translateY(calc(100% + 2px)); visibility: hidden; transition: transform 200ms var(--ease-out), visibility 0s linear 200ms; }
@media (prefers-reduced-motion: reduce) { .dock, .dock-off .dock { transition: none; } }
@media (max-width: 899px) { .hv-side .btn-row { grid-template-columns: 1fr; } }

/* „Направи запитване“ е по-дълго от „Запази час“: по-малък шрифт и пренасяне на телефон */
.cta strong { font-size: clamp(48px, 8.4vw, 150px); white-space: normal; }
@media (max-width: 699px) { .cta strong { font-size: clamp(44px, 14.5vw, 96px); } }
