/* ProLine, автосервиз в Пловдив. Посока: името като монумент, стегната подредба.
   Разлики: студен графит вместо зеленикав фон, кехлибарен акцент (цветът на лампите на таблото), по 4 плочки на ред,
   четири факта с оценката от Google, знакът със зъбните колела в хедъра и таблото с лампи. */
:root {
  --bg: #12161b;
  --surface: #1b2128;
  --surface2: #262e37;
  --ink: #e8eaed;
  --muted: #a4abb5;
  --accent: #f2a33a;
  --accent-ink: #12161b;
  --mark: #a9d6f2;
  --lamp-amber: #f7a21b;
  --lamp-red: #ef3b32;

  --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(--surface); 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 {
  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;
}
.fill { background: #f5b9a8; }
.hide-marks .tbc, .hide-marks .fill { display: none; }
.marks-toggle { font-size: var(--step-small); text-decoration: underline; text-underline-offset: 3px; }

/* Бутони: плоски, квадратни */
.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(--accent); color: var(--accent-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: center; gap: 10px; white-space: nowrap; }
.brand-mark { height: 30px; width: auto; flex: none; color: var(--accent); transition: transform 500ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .brand:hover .brand-mark { transform: rotate(-35deg); } }
.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); } }

/* Първи екран: снимка на цял екран, името отгоре, текстът вляво */
.hero { --wm: clamp(60px, 17.6vw, 262px); position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: calc(100vh - var(--head-h)); }
@supports (height: 100svh) { .hero { min-height: calc(100svh - var(--head-h)); } }
.hero-photo { position: absolute; inset: 0; overflow: hidden; background: var(--surface); }
.hero-photo img { position: absolute; inset: -4% 0; width: 100%; height: 108%; object-fit: cover; object-position: 50% 62%; }
.hero-photo::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(18,22,27,0.86) 0%, rgba(18,22,27,0.64) 36%, rgba(18,22,27,0) 66%), linear-gradient(180deg, rgba(18,22,27,0.7) 0%, rgba(18,22,27,0.42) 34%, rgba(18,22,27,0) 58%, rgba(18,22,27,0.32) 100%); /* taste-skill-ignore */ }
.hero-in { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; padding-top: 6px; padding-bottom: 20px; }
.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; }
.facts-sec { padding-block: var(--gap) 0; }
.facts-sec + .sec { padding-top: var(--sec); }
@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); }
}
.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; } }
.wordmark {
  font: 700 var(--wm)/1 var(--display); letter-spacing: -0.005em; white-space: nowrap;
  text-transform: uppercase; display: block; transform-origin: 0 100%;
  margin: -0.07em 0 -0.06em; position: relative; z-index: 2; user-select: none;
}
.wordmark span { display: inline-block; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.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 { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); grid-auto-rows: 1fr; gap: var(--gap); }
.svc { position: relative; display: flex; flex-direction: column; background: var(--surface); transition: background-color 180ms ease; }
.svc figure { aspect-ratio: 16 / 10; 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(--surface2); }
  .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); }

/* Табло с лампи */
.lamps { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gap); align-items: stretch; }
.lamps-copy { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 6px 0; }
.lamps-copy p { max-width: 46ch; }
.lamps-copy input { max-width: 30rem; background: var(--surface); }
.lamps-count { font-weight: 600; }
.lamps-msg { background: var(--surface); padding: 14px 16px; max-width: 52ch; border-left: 4px solid var(--accent); }
.cluster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: clamp(14px, 2vw, 28px); background: #0b0e12; }
.lamp { display: grid; justify-items: center; align-content: center; gap: 10px; min-height: clamp(112px, 10.5vw, 150px); padding: 12px 6px; color: #4a525e; transition: color 160ms ease, background-color 160ms ease, transform 140ms var(--ease-out); }
.lamp svg { width: clamp(40px, 3.8vw, 58px); height: auto; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.lamp .lamp-fill { fill: currentColor; stroke: none; }
.lamp text { font: 800 9.5px var(--text); }
.lamp .lamp-teeth { stroke-width: 4.4; stroke-linecap: butt; }
.lamp span { font-size: 0.9375rem; font-weight: 500; line-height: 1.25; text-align: center; color: var(--muted); transition: color 160ms ease; }
.lamp:active { transform: scale(0.96); }
.lamp[aria-pressed="true"] span { color: var(--ink); }
.lamp--amber[aria-pressed="true"] { color: var(--lamp-amber); }
.lamp--red[aria-pressed="true"] { color: var(--lamp-red); }
@media (hover: hover) and (pointer: fine) { .lamp:hover { background: var(--surface); } .lamp:hover:not([aria-pressed="true"]) { color: #7a8392; } }
@media (prefers-reduced-motion: no-preference) { .lamp[aria-pressed="true"] svg { animation: lamp-on 420ms ease-out; } }
@keyframes lamp-on { 0% { opacity: 0.2; } 30% { opacity: 1; } 45% { opacity: 0.55; } 100% { opacity: 1; } }

/* Как работим */
.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(9, 11, 14, 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: #7f8792; }
.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); }

/* Текст (поверителност) */
.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(--accent); color: var(--accent-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); } .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(--bg); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .foot-grid a:hover { text-decoration-color: currentColor; } .foot-grid .btn:hover { background: var(--accent); color: var(--accent-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.09); 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; }
  .js:not(.no-anim) .hero-photo { clip-path: inset(0 0 100% 0); }
}
@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(.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(.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 { --cols: 2; }
  .facts { grid-template-columns: 1fr 1fr; }
  .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, .contact-grid, .lamps { grid-template-columns: 1fr; }
  .page-hero { grid-template-columns: 1fr; grid-template-areas: 'h' 'f' 'c'; }
  .hero { min-height: calc(100vh - var(--head-h) - 68px); }
  .hero-photo { bottom: 20%; background: var(--bg); }
  .hero-photo img { inset: 0; height: 100%; object-position: 50% 40%; }
  .hero-photo::after { background: linear-gradient(180deg, rgba(18,22,27,0.74) 0%, rgba(18,22,27,0.12) 26%, rgba(18,22,27,0.06) 40%, rgba(18,22,27,0.86) 70%, rgb(18,22,27) 100%); /* taste-skill-ignore */ }
  .hero-copy { max-width: none; justify-content: flex-end; gap: 12px; padding-bottom: 0; }
  .hero-in { padding-bottom: 14px; }
  .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) {
  .lamp { min-height: 96px; gap: 8px; }
  .lamp span { font-size: 0.875rem; }
  .svc-grid, .svc-grid.four { --cols: 1; gap: 10px; }
  .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; }
}
@supports (height: 100svh) { @media (max-width: 899px) { .hero { min-height: calc(100svh - var(--head-h) - 68px - env(safe-area-inset-bottom)); } } }
.hero .wordmark { align-self: flex-start; }
.hero-copy h1, .hero-copy .lead, .hero-copy .status { text-shadow: 0 1px 18px rgba(10,13,17,0.75); /* taste-skill-ignore */ }
@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; } }
/* Подвал на телефон: по-сбит, за да се побира на един екран (бутоните за обаждане и 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 .marks-toggle { font-size: 0.875rem; }
  .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.09 * 1.25); } }
@media (max-width: 599px) and (max-height: 700px) { .closing .cta p { display: none; } }

/* ---- ProLine: дребни разлики ---- */
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn[disabled]:active { transform: none; }
@media (hover: hover) and (pointer: fine) { .btn[disabled]:hover { background: var(--accent); color: var(--accent-ink); } .btn[disabled]:hover svg { transform: none; } }
/* колата на снимката е под името, не зад него */
.hero-photo img { object-position: 50% 24%; }
@media (max-width: 899px) { .hero-photo img { object-position: 50% 50%; } }

/* ---- Версия 2: 3D първи екран. Сцената стои закрепена, скролът движи камерата по стъпките ---- */
.hero3d { position: relative; height: 520vh; }
.hero3d.no-3d { height: auto; }
.stage { position: sticky; top: var(--head-h); height: calc(100vh - var(--head-h)); overflow: hidden; background: #c9c8c2; }
@supports (height: 100svh) { .stage { height: calc(100svh - var(--head-h)); } }
.hero3d.no-3d .stage { position: relative; top: 0; }
.stage-canvas { position: absolute; inset: 0; }
.stage-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-poster { position: absolute; inset: 0; z-index: 1; transition: opacity 900ms ease; }
.stage-poster img { width: 100%; height: 100%; object-fit: cover; }
.hero3d.is-3d .stage-poster { opacity: 0; pointer-events: none; }
.stage-shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(18,22,27,0.82) 0%, rgba(18,22,27,0.55) 30%, rgba(18,22,27,0) 58%), linear-gradient(180deg, rgba(18,22,27,0.55) 0%, rgba(18,22,27,0) 26%, rgba(18,22,27,0) 72%, rgba(18,22,27,0.5) 100%); /* taste-skill-ignore */ }
.stage-ui { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; padding-top: 6px; padding-bottom: 18px; }
.stage-ui .wordmark { transition: opacity 600ms ease, transform 800ms var(--ease-out); }
.hero3d[data-step]:not([data-step="0"]) .wordmark { opacity: 0; transform: translateY(-14%); }
.step { position: absolute; left: var(--pad); bottom: 92px; max-width: min(560px, 44vw); display: flex; flex-direction: column; gap: 16px; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity 500ms ease, transform 700ms var(--ease-out), visibility 0s linear 500ms; }
.step.on { opacity: 1; visibility: visible; transform: none; transition: opacity 600ms ease 120ms, transform 800ms var(--ease-out) 120ms, visibility 0s; }
.step h2 { font-size: var(--step-h1); line-height: 0.98; }
.step p { font-size: 1.125rem; max-width: 46ch; }
.step h2, .step p, .hero-copy .lead, .hero-copy .status { text-shadow: 0 1px 18px rgba(10,13,17,0.75); /* taste-skill-ignore */ }
.stage-ui .hero-copy { position: absolute; left: var(--pad); bottom: 92px; max-width: min(640px, 48vw); gap: 16px; justify-content: flex-end; padding: 0; }
.stage-foot { position: absolute; left: var(--pad); right: var(--pad); bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: var(--step-small); }
.stage-hint { color: var(--ink); opacity: 0.85; }
.stage-dots { position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.stage-dots i { display: block; width: 4px; height: 26px; background: rgba(232,234,237,0.35); opacity: 1; visibility: visible; transform: none; position: static; transition: background-color 300ms ease, height 300ms var(--ease-out); }
.stage-dots i.on { background: var(--accent); height: 44px; }
.hero3d.no-3d .step:not(.hero-copy), .hero3d.no-3d .stage-dots, .hero3d.no-3d .stage-hint { display: none; }
@media (max-width: 899px) {
  .hero3d { height: 480vh; }
  .stage { height: calc(100vh - var(--head-h) - 68px); }
  @supports (height: 100svh) { .stage { height: calc(100svh - var(--head-h) - 68px - env(safe-area-inset-bottom)); } }
  .stage-shade { background: linear-gradient(180deg, rgba(18,22,27,0.6) 0%, rgba(18,22,27,0) 24%, rgba(18,22,27,0) 42%, rgba(18,22,27,0.88) 74%, rgba(18,22,27,0.96) 100%); /* taste-skill-ignore */ }
  .step, .stage-ui .hero-copy { left: var(--pad); right: var(--pad); bottom: 52px; max-width: none; gap: 12px; }
  .step h2 { font-size: clamp(1.9rem, 1.2rem + 3vw, 2.6rem); }
  .step p { font-size: 1rem; }
  .stage-dots { top: auto; bottom: auto; top: 50%; right: 10px; }
  .stage-dots i { height: 18px; } .stage-dots i.on { height: 30px; }
  .stage-hint { display: none; }
}
.hero3d { --wm: clamp(60px, 17.6vw, 262px); }
.stage-ui .wordmark { font: 700 var(--wm)/1 var(--display); text-transform: uppercase; align-self: flex-start; }
@media (min-width: 900px) and (max-height: 760px) { .stage-ui .wordmark { transform: scaleY(0.8); transform-origin: 0 0; } }
/* режим за снимане на постера */
.poster-mode .site-header, .poster-mode .stage-ui, .poster-mode .stage-shade, .poster-mode .dock { display: none !important; }
.poster-mode .stage { position: fixed; inset: 0; top: 0; height: 100vh; z-index: 999; }
