/* Aleks Auto: демо сайт. Посока „Името като паметник“ (taste-skill), шрифт Geologica, цветове от логото и фасадата. */

@font-face { font-family: 'Geologica'; src: url(/assets/fonts/geologica-cyrillic.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Geologica'; src: url(/assets/fonts/geologica-latin-ext.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geologica'; src: url(/assets/fonts/geologica-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0b0b0c;
  --surface: #151618;
  --surface-2: #1e2023;
  --surface-3: #282a2e;
  --ink: #efefec;
  --muted: #aaa69f;
  --accent: #ffc21a;
  --accent-ink: #0b0b0c;
  --field-1: #0f1c3d;
  --field-1b: #13234b;
  --field-1-ink: #efefec;
  --field-1-muted: #b9c2da;
  --field-2: #ebebe7;
  --field-2-b: #dcdcd7;
  --field-2-ink: #111214;
  --field-2-muted: #4a4945;
  --mark: #ff5fa2;
  --mark-bg: #3b1028;

  --m: clamp(16px, 2.2vw, 32px);
  --gap: clamp(16px, 1.6vw, 24px);
  --sec: clamp(96px, 11vw, 192px);
  --bar-h: 68px;

  --step-small: clamp(0.9375rem, 0.9rem + 0.1vw, 1rem);
  --step-body: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --step-lead: clamp(1.25rem, 1.08rem + 0.7vw, 1.75rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.4vw, 4.25rem);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Geologica', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--step-body); line-height: 1.55; font-weight: 400;
  font-variation-settings: 'SHRP' 0;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 800; line-height: 1.02; letter-spacing: -0.025em; font-variation-settings: 'SHRP' 100; text-wrap: balance; }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); letter-spacing: -0.015em; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: var(--step-small); color: var(--muted); line-height: 1.5; }
.muted { color: var(--muted); }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 12px 16px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- иконки и бутони ---------- */
.ic { width: 1.15em; height: 1.15em; flex: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 52px; padding: 0 22px; border: 0; border-radius: 0;
  font-size: var(--step-body); font-weight: 650; line-height: 1.1; text-decoration: none; text-align: center;
  cursor: pointer; transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease;
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: var(--surface-2); color: var(--ink); }
.btn-xl { min-height: 60px; padding: 0 28px; font-size: var(--step-body); }
.btn .ic-arrow { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn-accent:hover { background: #ffd24f; }
  .btn-ghost:hover { background: var(--surface-3); }
  .btn:hover .ic-arrow { transform: translateX(3px); }
}
.acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.linkbtn { background: none; border: 0; padding: 6px 0; color: var(--ink); text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; cursor: pointer; display: inline-flex; gap: 0.4em; align-items: center; font-size: var(--step-body); }

/* ---------- белези за демото ---------- */
mark.tbc {
  display: inline-block; vertical-align: 0.12em; margin-left: 0.3em; padding: 0.1em 0.45em 0.15em;
  background: var(--mark-bg); color: var(--mark); font-size: 0.8125rem; line-height: 1.25; font-weight: 650; letter-spacing: 0; white-space: nowrap;
  font-variation-settings: 'SHRP' 0;
}
.fill { display: inline; background: var(--mark-bg); color: #ffc2dc; padding: 0.05em 0.35em; font-size: 0.82em; line-height: 1.5; font-weight: 500; -webkit-box-decoration-break: clone; box-decoration-break: clone; font-variation-settings: 'SHRP' 0; }
.fill b { color: var(--mark); font-weight: 700; }
.no-marks mark.tbc, .no-marks .fill, .no-marks .sample { display: none !important; }
.marks-btn { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; font-size: inherit; color: inherit; }

/* ---------- снимки ---------- */
.ph { position: relative; overflow: hidden; background: var(--surface); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.sample { position: absolute; right: 14px; top: 14px; z-index: 2; padding: 3px 8px; background: rgba(11, 11, 12, 0.78); color: var(--mark); font-size: 0.8125rem; font-weight: 600; line-height: 1.3; pointer-events: none; }

/* ---------- лента горе ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--m);
  background: var(--bg); view-transition-name: bar;
  transition: background-color 240ms ease;
}
.home .bar:not([data-solid]) { background: transparent; }
.wordmark { font-size: var(--step-lead); font-weight: 900; letter-spacing: -0.045em; text-decoration: none; font-variation-settings: 'SHRP' 100; line-height: 1; }
.nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 30px); font-size: var(--step-small); font-weight: 550; }
.nav > a, .nav-btn { text-decoration: none; padding: 10px 0; color: var(--ink); background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: var(--step-small); font-weight: 550; position: relative; }
.nav > a[aria-current], .nav-btn[data-current] { color: var(--accent); }
.chev { width: 12px; height: 12px; transition: transform 200ms var(--ease-out); }
.nav-btn[aria-expanded='true'] .chev { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .nav > a:hover, .nav-btn:hover { color: var(--accent); } }
.nav-drop { position: relative; }
.drop {
  position: absolute; top: calc(100% + 10px); left: -24px; width: min(520px, 80vw); display: none;
  background: var(--surface); padding: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); /* taste-skill-ignore: истинско падащо меню */
  transform-origin: 24px 0; transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.nav-drop.open .drop { display: block; opacity: 1; transform: none; }
@starting-style { .nav-drop.open .drop { opacity: 0; transform: translateY(-6px) scale(0.98); } }
.drop a { display: grid; gap: 2px; padding: 12px 14px; text-decoration: none; transition: background-color 120ms ease; }
.drop a b { font-weight: 650; }
.drop a span { color: var(--muted); font-size: var(--step-small); }
.drop a[aria-current] b { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .drop a:hover { background: var(--surface-2); } }
.bar-act { display: flex; align-items: center; gap: 18px; }
.bar-phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 650; font-size: var(--step-small); font-variant-numeric: tabular-nums; }
.bar-book { min-height: 46px; padding: 0 18px; font-size: var(--step-small); }
.menu-btn { display: none; min-height: 44px; padding: 0 14px; background: var(--surface-2); border: 0; font-weight: 650; cursor: pointer; }
main { position: relative; z-index: 1; background: var(--bg); padding-top: var(--bar-h); }
.home main { padding-top: 0; background: transparent; }

/* меню на телефон */
.sheet { position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow-y: auto; opacity: 0; transform: translateY(12px); transition: opacity 220ms var(--ease-out), transform 280ms var(--ease-drawer); }
.sheet[data-open] { opacity: 1; transform: none; }
.sheet-in { min-height: 100%; display: flex; flex-direction: column; padding: 0 var(--m) calc(28px + env(safe-area-inset-bottom)); }
.sheet-top { height: 60px; display: flex; align-items: center; justify-content: space-between; }
.sheet .menu-btn { display: inline-block; }
.sheet-links { display: grid; gap: 2px; margin: 12px 0 24px; }
.sheet-links a { display: block; padding: 12px 0; font-size: var(--step-lead); font-weight: 650; text-decoration: none; letter-spacing: -0.01em; }
.sheet-links a[aria-current] { color: var(--accent); }
.sheet-foot { margin-top: auto; display: grid; gap: 16px; }

/* ---------- голямата дума ---------- */
.monument {
  display: block; font-weight: 850; letter-spacing: -0.045em; line-height: 0.8; white-space: nowrap;
  font-variation-settings: 'SHRP' 100; font-kerning: normal;
  font-size: min(calc((100vw - 2 * var(--m)) / var(--fit, 5)), var(--mono-max, 22vw));
  margin-left: -0.04em;
}
.monument-2 span { display: block; }

/* ---------- първи екран на началото ---------- */
.wheel-layer { position: fixed; inset: 0 0 auto 0; height: 100lvh; z-index: 0; pointer-events: none; }

.wheel-layer canvas { width: 100%; height: 100%; opacity: 0; transition: opacity 900ms var(--ease-out); }
.wheel-layer canvas.on { opacity: 1; }
.hero { position: relative; z-index: 1; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; }
.hero-stage { position: relative; min-height: 46svh; }
.wheel-poster { position: absolute; left: calc(50vw - 0.37 * 2.083 * 100svh / 2); top: calc(42svh - 0.37 * 2.083 * 100svh / 2); width: calc(0.37 * 2.083 * 100svh); height: auto; aspect-ratio: 1; transition: opacity 700ms var(--ease-out); }
.wheel-layer canvas.on + .wheel-poster { opacity: 0; }
.no-webgl .wheel-layer, .wheel-still .wheel-layer { position: absolute; height: 100svh; }
.hero-flat { position: absolute; left: var(--m); bottom: 18px; }
.hero-flat .linkbtn { color: var(--ink); font-weight: 600; }
.hero-band { position: relative; background: var(--bg); padding: 22px var(--m) 0; overflow: hidden; }
.hero-h1 { display: flex; flex-direction: column; gap: clamp(14px, 2.2svh, 28px); }
.hero-h1-line { display: block; max-width: 34ch; font-size: var(--step-lead); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; font-variation-settings: 'SHRP' 0; }
.hero-h1-line .muted { font-weight: 400; }
.monument-name { --mono-max: 46svh; margin-bottom: -0.035em; }
.hero-act { position: absolute; right: var(--m); top: 22px; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; max-width: 48%; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: var(--step-small); color: var(--muted); }
.status::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.status.is-open::before { background: var(--accent); }
.status.is-open { color: var(--ink); }
.hero-act .status { flex-basis: 100%; justify-content: flex-end; }
@keyframes rise { from { transform: translateY(45%); opacity: 0; } }
.monument-name { animation: rise 1000ms var(--ease-out) both 120ms; }

/* ---------- надписът на гумата (сцена) ---------- */
.size-scene { position: relative; z-index: 1; height: 160svh; }
.size-inner { position: sticky; top: 0; height: 100svh; width: min(44%, 640px); padding: calc(var(--bar-h) + 4svh) 0 6svh var(--m); display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.size-text { max-width: 36ch; }
.size-rows { display: grid; gap: 4px; margin: 8px 0; }
.size-rows li { display: grid; grid-template-columns: minmax(3.4ch, auto) 1fr; gap: 20px; align-items: baseline; padding: 10px 14px 10px 0; transition: opacity 300ms ease; }
.size-rows b { font-size: var(--step-head); font-weight: 850; letter-spacing: -0.04em; line-height: 1; font-variation-settings: 'SHRP' 100; transition: color 300ms ease; }
.js .size-rows[data-live] li { opacity: 0.42; }
.js .size-rows[data-live] li.on { opacity: 1; }
.js .size-rows[data-live] li.on b { color: var(--accent); }
.size-links { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }

/* ---------- услугите + колата ---------- */
.services { position: relative; z-index: 2; background: var(--bg); padding: calc(var(--sec) * 0.55) var(--m) var(--sec); }
.services-h { max-width: 16ch; text-indent: 3vw; line-height: 0.98; }
.services-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: 96px; align-items: start; }
.car-wrap { grid-column: 1 / span 6; position: sticky; top: calc(var(--bar-h) + 24px); display: grid; grid-template-columns: clamp(200px, 19vw, 290px) minmax(0, 1fr); gap: clamp(20px, 2.4vw, 40px); align-items: start; }
.car { grid-row: 1 / span 2; width: 100%; height: auto; max-height: calc(100svh - var(--bar-h) - 64px); }
.car-hint, .car-cards { grid-column: 2; }
.car .body { fill: #1c1e21; stroke: transparent; stroke-width: 4; transition: fill 200ms ease, stroke 200ms ease; }
.car .glass { fill: #30353c; }
.car .roof { fill: #24262a; }
.car .seam { fill: none; stroke: #2c2f33; stroke-width: 3; }
.car .mirror { fill: #1c1e21; }
.car .zone { cursor: pointer; outline: none; }
.car .part { fill: #3c3f45; transition: fill 200ms ease; }
.car .hole { fill: #222428; transition: fill 200ms ease; }
.car .wire { fill: none; stroke: #3c3f45; stroke-width: 4; transition: stroke 200ms ease; }
.car .hit { fill: transparent; }
.car [data-zone='gumi'] rect { fill: #060607; transition: fill 200ms ease; }
.car [data-zone='gumi'] rect.tread { fill: #26282c; }
.car .zone.on .part, .car .zone:focus-visible .part { fill: var(--accent); }
.car .zone.on .wire, .car .zone:focus-visible .wire { stroke: var(--accent); }
.car .zone.on .hole { fill: #7a5c00; }
.car [data-zone='gumi'].on rect:not(.tread), .car [data-zone='gumi']:focus-visible rect:not(.tread) { fill: var(--accent); }
.car [data-zone='gumi'].on rect.tread { fill: #8a6900; }
.car .zone.peek .part { fill: var(--accent); }
.car .zone.peek .wire { stroke: var(--accent); }
.car [data-zone='gumi'].peek rect:not(.tread) { fill: var(--accent); }
.car [data-zone='pregled'].peek .body { stroke: var(--accent); }
.car [data-zone='pregled'].on .body, .car [data-zone='pregled']:focus-visible .body { stroke: var(--accent); fill: #2a2412; }
@media (hover: hover) and (pointer: fine) {
  .car .zone:hover .part { fill: #6b6f77; }
  .car [data-zone='gumi']:hover rect:not(.tread) { fill: #3c3f45; }
  .car [data-zone='pregled']:hover .body { fill: #24272b; }
}
.car-hint { margin-bottom: 14px; }
.car-card { animation: card-in 260ms var(--ease-out) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } }
.car-card-k { color: var(--accent); font-weight: 650; font-size: var(--step-small); margin-bottom: 6px; }
.car-card h3 { margin-bottom: 10px; }
.car-card p { margin-bottom: 18px; }
.services-list { grid-column: 7 / -1; position: relative; }
.services-label { position: absolute; right: calc(100% + var(--gap)); top: 18px; font-size: var(--step-small); color: var(--muted); }

.rows li a, .rows li > .rows-n { text-decoration: none; }
.rows li a { display: grid; grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr) auto; gap: 8px 20px; align-items: baseline; padding: 18px 12px; margin: 0 -12px; transition: background-color 160ms ease; }
.rows-k { color: var(--muted); font-size: var(--step-small); }
.rows-n { font-weight: 650; font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.01em; }
.rows-v { grid-column: 2 / -1; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: var(--step-small); }
.rows-v .ic-arrow { color: var(--ink); width: 1.4em; height: 1.4em; transition: transform 200ms var(--ease-out); }
.rows li.on a { background: var(--surface); }
.rows li.on .rows-n { color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .rows li a:hover { background: var(--surface); }
  .rows li a:hover .ic-arrow { transform: translateX(4px); }
}

/* ---------- как работим ---------- */
.how { position: relative; z-index: 2; background: var(--bg); }
.how-h { padding: 0 var(--m) 48px; }
.verb { position: relative; height: 112svh; }
.verb-img { position: absolute; inset: 0; }
.verb-img::after { content: ''; position: absolute; inset: 0; background: rgba(8, 8, 9, 0.5); }
.verb-img .sample { display: none; }
.band-p .sample { top: auto; bottom: 14px; }
.how-h .sample-note { display: block; margin-top: 12px; }
.verb-stick { position: sticky; top: 50%; z-index: 2; margin-top: 50svh; transform: translateY(-50%); padding: 0 var(--m); }
.verb-word { display: block; font-weight: 850; letter-spacing: -0.045em; line-height: 0.82; white-space: nowrap; font-variation-settings: 'SHRP' 100; color: var(--ink); font-size: min(calc((100vw - 2 * var(--m)) / var(--fit, 6)), 21vw); margin-left: -0.04em; }
.verb-text { margin-top: clamp(16px, 2.4svh, 28px); max-width: 520px; padding: 16px 20px; background: rgba(11, 11, 12, 0.82); }
.verb-text p { font-size: var(--step-body); }

/* ---------- отзивите ---------- */
.proof { position: relative; z-index: 2; background: var(--bg); padding-top: var(--sec); }
.marquee { background: var(--field-1); color: var(--field-1-ink); height: 34vh; min-height: 200px; display: flex; align-items: center; overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee-track > span { display: flex; align-items: center; white-space: nowrap; font-size: 8vw; font-weight: 800; letter-spacing: -0.035em; line-height: 1; font-variation-settings: 'SHRP' 100; padding-right: 0.4em; }
.marquee-track i { display: inline-block; width: 0.28em; height: 0.28em; border-radius: 50%; background: var(--field-1-muted); margin: 0 0.4em; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee-track { animation-play-state: paused; } }
.proof-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: 40px var(--m) 0; align-items: baseline; }
.proof-row h2 { grid-column: 1 / span 6; font-size: var(--step-head); }
.proof-row h2 a { text-decoration: none; }
.proof-row p { grid-column: 8 / -1; }
.proof-row p a { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
@media (max-width: 1020px) { .proof-row { grid-template-columns: 1fr; } .proof-row h2, .proof-row p { grid-column: 1; } }

/* ---------- сервизът отблизо ---------- */
.show { position: relative; z-index: 2; background: var(--bg); padding-top: var(--sec); }
.show-h { padding: 0 var(--m) 0 calc(var(--m) + (100vw - 2 * var(--m)) * 2 / 12); margin-bottom: 64px; }
.band { display: flex; height: 68svh; min-height: 380px; }
.band-p { position: relative; display: block; flex: 2 1 0; min-width: 0; transition: flex-grow 500ms var(--ease-out); }
.band-p:nth-child(1) { flex-grow: 5; }
.band-p:nth-child(3) { flex-grow: 3; }
.band-p .ph { position: absolute; inset: 0; }
.band-title { position: absolute; left: 0; top: 0; z-index: 2; max-width: 22ch; padding: 22px 24px; font-size: var(--step-lead); font-weight: 750; line-height: 1.12; letter-spacing: -0.02em; background: rgba(11, 11, 12, 0.78); font-variation-settings: 'SHRP' 100; }
@media (hover: hover) and (pointer: fine) { .band:hover .band-p:hover { flex-grow: 6; } }
.show-more { padding: 18px var(--m) 0; }
.show-more a { display: inline-flex; gap: 8px; align-items: center; font-weight: 650; }

/* ---------- Александър ---------- */
.about-home, .story { position: relative; z-index: 2; background: var(--bg); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: var(--sec) var(--m); }
.about-facts { grid-column: 1 / span 2; display: grid; gap: 22px; align-content: start; padding-top: 6px; font-size: var(--step-small); }
.about-facts p span { display: block; color: var(--muted); }
.about-text { grid-column: 3 / -1; }
.story .about-text h2 { margin-bottom: 28px; }
.about-p { font-size: var(--step-lead); line-height: 1.32; max-width: 46ch; }
.about-p b { font-weight: 750; }
.about-p2 { color: var(--muted); margin-top: 1.1em; margin-bottom: 28px; }
.portrait { float: left; width: 5.3em; height: 5.3em; margin: 0.25em 0.75em 0.2em 0; background: var(--surface-2); display: grid; place-items: center; padding: 10px; font-size: var(--step-small); line-height: 1.3; text-align: center; }
.portrait .fill { font-size: 0.8125rem; background: transparent; }

/* ---------- адрес в големи редове ---------- */
.rows-contact { position: relative; z-index: 2; background: var(--field-1); color: var(--field-1-ink); }
.cr { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; min-height: 150px; padding: 0 var(--m) 24px; text-decoration: none; font-size: var(--step-head); font-weight: 750; letter-spacing: -0.035em; line-height: 1; font-variation-settings: 'SHRP' 100; transition: background-color 160ms ease; }
.cr:nth-child(even) { background: var(--field-1b); }
.cr h2 { font-size: inherit; font-weight: inherit; letter-spacing: inherit; line-height: inherit; }
.cr-hours { display: flex; flex-wrap: wrap; column-gap: 0.5em; }
.cr-go { background: var(--accent) !important; color: var(--accent-ink); }
.cr-btn { display: grid; place-items: center; width: 0.95em; height: 0.95em; background: var(--accent-ink); color: var(--accent); }
.cr-btn .ic { width: 0.6em; height: 0.6em; }
@media (hover: hover) and (pointer: fine) { a.cr:not(.cr-go):hover { background: #1a2c5c; } }

/* ---------- страница: първи екран ---------- */
.phero { display: grid; grid-template-rows: auto auto; }
.phero-img { height: calc(52svh - var(--bar-h)); min-height: 260px; }
.phero-band { padding: 22px var(--m) 0; overflow: hidden; }
.phero-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px 40px; margin-bottom: clamp(24px, 4svh, 48px); }
.phero-row .acts { flex-wrap: nowrap; flex: none; }
.phero-lead { max-width: 54ch; font-size: var(--step-lead); line-height: 1.3; }
.phero .monument { --mono-max: min(22vw, 28svh); margin-bottom: -0.04em; animation: rise 1000ms var(--ease-out) both 80ms; }
.plain-head { padding: calc(var(--sec) * 0.6) var(--m) 0; display: grid; gap: 28px; }
.plain-head .monument { --mono-max: min(16vw, 30svh); }

/* ---------- какво включва ---------- */
.incl { padding: var(--sec) var(--m) 0; }
.incl-h { max-width: 18ch; text-indent: 3vw; }
.incl-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: 80px; align-items: end; }
.incl-img { grid-column: 1 / span 4; aspect-ratio: 4 / 5; }
.rows-incl { grid-column: 6 / -1; display: grid; gap: 30px; }
.rows-incl li { display: grid; grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr); gap: 8px 24px; align-items: baseline; }
.rows-incl li:nth-child(4n) { margin-top: 18px; }

/* ---------- сезонът (гуми) ---------- */
.season { display: grid; grid-template-columns: repeat(12, 1fr); margin-top: var(--sec); background: var(--field-1); color: var(--field-1-ink); }
.season-in { grid-column: 1 / span 6; padding: clamp(40px, 6vw, 96px) var(--m); display: grid; gap: 22px; align-content: center; }
.season-in .small { color: var(--field-1-muted); }
.season-img { grid-column: 7 / -1; min-height: 420px; }

/* ---------- помощник за размера ---------- */
.size-sec { background: var(--field-2); color: var(--field-2-ink); padding: var(--sec) var(--m); }
.size-sec-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-bottom: 48px; }
.size-sec-head h2 { grid-column: 1 / span 7; }
.size-sec-head p { grid-column: 8 / -1; align-self: end; }
.size-help { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px var(--gap); }
.size-art { grid-column: 1 / -1; }
.sidewall { width: 100%; height: auto; }
.sw-tread { fill: #19191b; }
.sw-blocks { fill: #2b2b2e; }
.sw-rubber { fill: #141415; }
.sw-rib { fill: #1d1d1f; }
.sw-rim { fill: #9ea3aa; }
.sw-rim-edge { fill: #c9cdd2; }
.sw-text { font-family: 'Geologica', sans-serif; font-weight: 800; fill: #3a3a3e; letter-spacing: 0.02em; font-variation-settings: 'SHRP' 100; }
.sw-text tspan[data-tok] { cursor: pointer; transition: fill 200ms ease; }
.sw-text tspan[data-tok].on { fill: var(--accent); }
.sw-small { font-weight: 700; }
.sw-mute { fill: #2e2e31; }
.size-chips { grid-column: 1 / span 6; display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.size-out { grid-column: 7 / -1; min-height: 6.5em; }
.size-def b { display: block; font-size: var(--step-lead); margin-bottom: 6px; }
.size-yours { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px var(--gap); padding-top: 28px; }
.size-yours label { grid-column: 1 / -1; font-weight: 650; }
.size-yours-row { grid-column: 1 / span 6; display: flex; gap: 8px; }
.size-yours-row input { flex: 1; min-width: 0; }
.size-calc { grid-column: 7 / -1; grid-row: 2 / span 3; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; }
.size-calc dt { color: var(--field-2-muted); }
.size-calc dd { font-weight: 650; }
.size-yours .small { grid-column: 1 / span 6; }
.size-sec .small, .size-dlg .small { color: var(--field-2-muted); }
.size-sec .chip { background: var(--field-2-b); color: var(--field-2-ink); }
.size-sec .chip[aria-pressed='true'] { background: var(--field-2-ink); color: var(--field-2); }
.size-sec input { background: #fff; color: var(--field-2-ink); }
.size-sec .btn-accent:focus-visible, .size-sec :focus-visible { outline-color: #b07d00; }

/* ---------- съхранение / спукана гума ---------- */
.storage { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: var(--sec) var(--m) 0; align-items: center; }
.storage-img { grid-column: 1 / span 6; aspect-ratio: 3 / 2; }
.storage-in { grid-column: 8 / -1; display: grid; gap: 20px; }
.steps-plain { display: grid; gap: 10px; counter-reset: none; }
.steps-plain li { padding-left: 22px; position: relative; }
.steps-plain li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 10px; height: 10px; background: var(--accent); }
.flat-sec { margin: var(--sec) var(--m) 0; padding: clamp(32px, 4vw, 56px); background: var(--surface); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px var(--gap); align-items: center; }
.flat-sec > div { grid-column: 1 / span 7; display: grid; gap: 14px; }
.flat-sec .acts { grid-column: 8 / -1; justify-content: flex-end; }

/* ---------- признаци и време ---------- */
.signs { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: var(--sec) var(--m) 0; }
.signs-list { grid-column: 1 / span 6; }
.signs-side { grid-column: 8 / -1; }
.signs h2 { margin-bottom: 28px; }
.signs ul { display: grid; gap: 14px; }
.signs ul li { padding-left: 26px; position: relative; font-size: var(--step-lead); line-height: 1.3; }
.signs ul li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 10px; height: 10px; background: var(--accent); }
.signs-side ul li { font-size: var(--step-body); }
.times { display: grid; gap: 14px; margin: 0; }
.times div { display: grid; gap: 2px; padding: 16px 20px; background: var(--surface); }
.times dt { color: var(--muted); font-size: var(--step-small); }
.times dd { font-size: var(--step-lead); font-weight: 650; line-height: 1.25; }

/* ---------- как протича ---------- */
.steps { margin-top: var(--sec); padding: clamp(48px, 7vw, 112px) var(--m); background: var(--field-1); color: var(--field-1-ink); }
.steps h2 { margin-bottom: 56px; }
.steps-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px var(--gap); }
.steps-list li { display: grid; gap: 16px; align-content: start; }
.steps-list li::before { content: ''; display: block; height: 8px; background: var(--field-1-ink); width: var(--w, 100%); }
.steps-list li:nth-child(1)::before { --w: 20%; }
.steps-list li:nth-child(2)::before { --w: 40%; }
.steps-list li:nth-child(3)::before { --w: 60%; }
.steps-list li:nth-child(4)::before { --w: 80%; }
.steps-list li:nth-child(5)::before { --w: 100%; }
.steps-list li:last-child::before { --w: 100%; background: var(--accent); }
.steps-list p { font-size: var(--step-lead); line-height: 1.3; }

/* ---------- бележка със снимка ---------- */
.note { position: relative; margin-top: var(--sec); min-height: 78svh; display: grid; align-items: end; }
.note-img { position: absolute; inset: 0; }
.note-in { position: relative; z-index: 2; margin: var(--m); max-width: 620px; padding: clamp(24px, 3vw, 40px); background: rgba(11, 11, 12, 0.88); display: grid; gap: 16px; }
.note-in ul { display: grid; gap: 8px; }
.note-in ul li { padding-left: 22px; position: relative; }
.note-in ul li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 10px; height: 10px; background: var(--accent); }
.note-quote { font-size: var(--step-lead); line-height: 1.3; font-weight: 600; }

/* ---------- въпроси ---------- */
.faq { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: var(--sec) var(--m) 0; }
.faq h2 { grid-column: 1 / span 4; }
.faq-list { grid-column: 6 / -1; display: grid; gap: 6px; }
.faq details { background: var(--surface); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 64px 22px 24px; font-size: var(--step-lead); font-weight: 650; line-height: 1.25; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ''; position: absolute; right: 24px; top: 50%; width: 18px; height: 3px; margin-top: -1.5px; background: var(--ink); transition: transform 220ms var(--ease-out); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 24px 24px; max-width: 62ch; }
.prices { padding: 40px var(--m) 0; }

/* ---------- форми ---------- */
.forms { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px var(--gap); padding: var(--sec) var(--m) 0; scroll-margin-top: calc(var(--bar-h) + 8px); }
.forms-head { grid-column: 1 / span 4; display: grid; gap: 24px; align-content: start; align-self: start; position: sticky; top: calc(var(--bar-h) + 28px); }
.forms-side { display: grid; gap: 10px; }
.big-link { display: inline-flex; align-items: center; gap: 10px; font-size: var(--step-lead); font-weight: 700; text-decoration: none; }
.forms-body { grid-column: 6 / -1; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { min-height: 48px; padding: 0 18px; border: 0; background: var(--surface-2); color: var(--ink); font-weight: 650; cursor: pointer; transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out); }
.tab:active { transform: scale(0.97); }
.tab[aria-selected='true'], .tab[aria-pressed='true'] { background: var(--ink); color: var(--bg); }
.req { display: grid; gap: 22px; }
.fld { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.fld label, .fld legend { font-weight: 650; padding: 0; }
.opt, .req-star { font-weight: 400; color: var(--muted); font-size: var(--step-small); }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px var(--gap); }
input, select, textarea {
  width: 100%; min-height: 56px; padding: 14px 16px; border: 0; border-radius: 0;
  background: var(--surface-2); color: var(--ink); font: inherit; font-size: var(--step-body); line-height: 1.4;
  transition: background-color 160ms ease, box-shadow 160ms ease; appearance: none;
}
textarea { resize: vertical; min-height: 96px; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23efefec' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 14px; padding-right: 44px; }
input[type='date'] { color-scheme: dark; }
input::placeholder, textarea::placeholder { color: #8a867f; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; background: var(--surface-3); }
.fld.err input, .fld.err textarea { box-shadow: inset 0 0 0 2px #ff6b5b; /* taste-skill-ignore: рамка при грешка във форма */ }
.err-msg { color: #ff8b7e; font-size: var(--step-small); }
.fld-size .linkbtn { justify-self: start; font-size: var(--step-small); }
.fld-note { margin-top: -10px; }
.radio { display: flex; align-items: center; gap: 12px; padding: 8px 0; cursor: pointer; font-weight: 400; }
.radio input { width: 24px; height: 24px; min-height: 0; padding: 0; border-radius: 50%; background: var(--surface-3); flex: none; display: grid; place-items: center; cursor: pointer; }
.radio input::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transform: scale(0.4); opacity: 0; transition: transform 160ms var(--ease-out), opacity 120ms ease; }
.radio input:checked::before { transform: scale(1); opacity: 1; }
.fld-radio { display: flex; flex-wrap: wrap; gap: 0 24px; }
.fld-radio legend { width: 100%; margin-bottom: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border: 0; background: var(--surface-2); color: var(--ink); cursor: pointer; font-size: var(--step-small); font-weight: 500; transition: background-color 140ms ease, color 140ms ease, transform 140ms var(--ease-out); }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed='true'] { background: var(--ink); color: var(--bg); }
.lamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.lamp { display: grid; justify-items: center; gap: 6px; padding: 12px 6px 10px; border: 0; background: var(--surface-2); color: #7d7a74; cursor: pointer; font-size: var(--step-small); line-height: 1.2; text-align: center; transition: background-color 140ms ease, color 140ms ease, transform 140ms var(--ease-out); }
.lamp svg { width: 40px; height: 40px; }
.lamp span { color: var(--ink); }
.lamp:active { transform: scale(0.96); }
.lamp[aria-pressed='true'] { background: #262013; color: var(--accent); }
.lamp.lamp-red[aria-pressed='true'] { background: #2a1513; color: #ff5b45; }
.lamp-warn { color: #ff8b7e; }
.video-box { display: grid; gap: 10px; padding: 20px; background: var(--surface); }
.video-box .btn { justify-self: start; }
.sent { display: grid; gap: 18px; padding: 28px; background: var(--surface); }
.sent:focus { outline: none; }
.sent-h { font-size: var(--step-lead); font-weight: 700; }
.sent-text { margin: 0; padding: 18px; background: var(--surface-2); font-family: inherit; font-size: var(--step-body); white-space: pre-wrap; word-break: break-word; }

/* ---------- още услуги ---------- */
.others { padding: var(--sec) var(--m); }
.others h2 { margin-bottom: 40px; }

/* ---------- за нас ---------- */
.approach { background: var(--field-2); color: var(--field-2-ink); padding: var(--sec) var(--m); }
.approach h2 { max-width: 20ch; margin-bottom: 64px; }
.approach-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px var(--gap); }
.approach-list li { display: grid; gap: 12px; align-content: start; }
.approach-list li::before { content: ''; height: 8px; background: var(--field-2-ink); }
.approach-list li:last-child::before { background: #b07d00; }
.approach-coffee { margin-top: 56px; font-size: var(--step-lead); font-weight: 600; }
.pair { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: var(--sec) var(--m) 0; align-items: end; }
.pair-a { grid-column: 1 / span 7; aspect-ratio: 3 / 2; }
.pair-b { grid-column: 9 / -1; aspect-ratio: 4 / 5; }
.team { padding: var(--sec) var(--m); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.team h2 { grid-column: 1 / span 4; }
.team p { grid-column: 6 / -1; font-size: var(--step-lead); }

/* ---------- снимки ---------- */
.gal { padding: var(--sec) var(--m) 0; }
.gal-filters { margin-bottom: 28px; }
.gal-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(120px, 12vw, 200px); grid-auto-flow: dense; gap: 6px; }
.gal-grid li { grid-column: span 4; grid-row: span 2; }
.gal-grid li.g0 { grid-column: span 7; grid-row: span 3; }
.gal-grid li.g1 { grid-column: span 5; grid-row: span 3; }
.gal-grid li.g3 { grid-column: span 4; grid-row: span 3; }
.gal-grid li.g5 { grid-column: span 8; grid-row: span 2; }
.gal-grid li[hidden] { display: none; }
.gal-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gal-btn .ph { width: 100%; height: 100%; }
.gal-btn img { transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .gal-btn:hover img { transform: scale(1.03); } }
.sources { padding: var(--sec) var(--m) 0; display: grid; gap: 20px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--step-small); }
th, td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--surface-3); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

/* ---------- контакт ---------- */
.channels { padding: var(--sec) var(--m) 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.channels h2 { grid-column: 1 / span 4; }
.rows-ch { grid-column: 6 / -1; }
.ch-note { grid-column: 6 / -1; }
.show-page { padding-top: var(--sec); }
.rows-thumbs li a { grid-template-columns: 112px minmax(0, 0.3fr) minmax(0, 0.7fr) auto; }
.rows-thumbs .rows-t { grid-row: 1 / span 2; aspect-ratio: 4 / 3; width: 112px; align-self: center; }
.rows-thumbs .rows-v { grid-column: 3 / -1; }
.map { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px var(--gap); padding: var(--sec) var(--m) 0; }
.map-text { grid-column: 1 / span 4; display: grid; gap: 20px; align-content: start; }
.map-frame { grid-column: 6 / -1; display: grid; gap: 8px; }
.map-frame .small { padding: 0 var(--m); }
@media (min-width: 761px) { .map-frame .small { padding: 0; } }
.map-frame iframe { width: 100%; height: min(70svh, 620px); border: 0; background: var(--surface); filter: invert(0.9) hue-rotate(180deg) saturate(0.6) brightness(0.95); }

/* ---------- текстови страници ---------- */
.plain { padding: 64px var(--m) 0; max-width: calc(68ch + 2 * var(--m)); display: grid; gap: 14px; }
.plain h2 { font-size: var(--step-lead); margin-top: 22px; }

/* ---------- долна част ---------- */
.foot { position: relative; z-index: 0; background: var(--ink); color: var(--bg); min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto auto; padding: 40px var(--m) 20px; margin-top: var(--sec); }
.foot a { color: inherit; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px var(--gap); font-size: var(--step-small); }
.foot-cols h2 { font-size: var(--step-small); font-weight: 750; letter-spacing: 0; margin-bottom: 12px; font-variation-settings: 'SHRP' 0; }
.foot-cols p, .foot-cols ul { color: #4a4945; display: grid; gap: 4px; }
.foot-cols p + p { margin-top: 12px; }
.foot-cols a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .foot-cols a:hover { text-decoration: underline; } }
.foot-phone { font-weight: 750; color: var(--bg) !important; font-size: var(--step-body); }
.foot .status { color: #4a4945; }
.foot .status::before { background: #8a877f; }
.foot .status.is-open { color: var(--bg); }
.foot .status.is-open::before { background: #d99e00; }
.foot-mark { align-self: end; margin-top: 40px; }
.foot-mark svg { width: 100%; height: auto; overflow: visible; }
.foot-mark text { font-family: 'Geologica', sans-serif; font-weight: 900; font-size: 280px; fill: var(--bg); font-variation-settings: 'SHRP' 100; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 16px; font-size: var(--step-small); color: #4a4945; }
.foot .marks-btn { color: #8a1d4f; font-weight: 600; }

/* ---------- лента на телефон и прозорци ---------- */
.dock { display: none; }
.dlg { border: 0; padding: clamp(24px, 4vw, 36px); background: var(--surface); color: var(--ink); width: min(560px, calc(100vw - 24px)); max-height: calc(100svh - 24px); overflow-y: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); /* taste-skill-ignore: диалогов прозорец */ }
.dlg[open] { display: grid; gap: 16px; animation: dlg-in 240ms var(--ease-out); }
.dlg::backdrop { background: rgba(0, 0, 0, 0.72); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.dlg h2 { padding-right: 48px; }
.dlg .btn { width: 100%; }
.dlg-x { position: absolute; right: 10px; top: 10px; margin: 0; }
.dlg-x button { width: 48px; height: 48px; border: 0; background: var(--surface-2); color: var(--ink); font-size: 1.75rem; line-height: 1; cursor: pointer; }
.size-dlg { width: min(860px, calc(100vw - 24px)); background: var(--field-2); color: var(--field-2-ink); }
.size-dlg .dlg-x button { background: var(--field-2-b); color: var(--field-2-ink); }
.size-dlg .chip { background: var(--field-2-b); color: var(--field-2-ink); }
.size-dlg .chip[aria-pressed='true'] { background: var(--field-2-ink); color: var(--field-2); }
.size-dlg input { background: #fff; color: var(--field-2-ink); }
.size-dlg .btn { width: auto; }
.size-dlg .size-chips, .size-dlg .size-out, .size-dlg .size-yours-row, .size-dlg .size-calc, .size-dlg .size-yours .small { grid-column: 1 / -1; grid-row: auto; }
.lightbox { border: 0; padding: 0; background: rgba(5, 5, 6, 0.96); color: var(--ink); width: 100vw; height: 100svh; max-width: none; max-height: none; }
.lightbox[open] { display: grid; place-items: center; grid-template-rows: 1fr auto; animation: dlg-in 220ms var(--ease-out); }
.lightbox img { max-width: 94vw; max-height: 84svh; object-fit: contain; }
.lightbox p { padding: 12px var(--m) 20px; }
.lightbox .dlg-x { position: fixed; z-index: 2; }

/* ---------- снимки, които се успокояват при скрол (работи извън главната нишка; без поддръжка просто стоят) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .verb-img img, .band-p .ph img, .note-img img, .season-img img, .phero-img img {
      animation: settle linear both; animation-timeline: view(); animation-range: cover 0% cover 100%;
    }
    .phero-img img { animation-range: exit 0% exit 100%; animation-name: drift; }
  }
}
@keyframes settle { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes drift { from { transform: translateY(0) scale(1.02); } to { transform: translateY(12%) scale(1.08); } }

/* ---------- преходи между страниците ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 180ms ease-out both; }
::view-transition-new(root) { animation: vt-in 320ms var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
.dock { view-transition-name: dock; }

/* ---------- таблет ---------- */
@media (max-width: 1180px) {
  .nav { gap: 14px; }
  .bar-phone span { display: none; }
}
@media (max-width: 1020px) {
  .nav, .bar-phone { display: none; }
  .menu-btn { display: inline-block; }
  .car-wrap { grid-template-columns: 1fr; }
  .car { max-width: 280px; }
}


/* ---------- таблет: колоните се сгъват ---------- */
@media (max-width: 1020px) {
  .services-grid { display: block; margin-top: 56px; }
  .car-wrap { position: static; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); }
  .services-list { margin-top: 48px; }
  .services-label { display: none; }
  .about-home, .story { grid-template-columns: 1fr; }
  .about-facts { grid-column: 1; grid-row: 2; grid-template-columns: repeat(3, 1fr); }
  .about-text { grid-column: 1; }
  .incl-grid { display: flex; flex-direction: column-reverse; gap: 40px; align-items: stretch; }
  .incl-img { width: 60%; margin-left: auto; }
  .season { grid-template-columns: 1fr; }
  .season-in, .season-img { grid-column: 1; }
  .size-sec-head { grid-template-columns: 1fr; }
  .size-sec-head > * { grid-column: 1 !important; }
  .size-help > *, .size-yours > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .storage { grid-template-columns: 1fr; }
  .storage-img, .storage-in { grid-column: 1; }
  .flat-sec { grid-template-columns: 1fr; }
  .flat-sec > div, .flat-sec .acts { grid-column: 1; justify-content: flex-start; }
  .signs { grid-template-columns: 1fr; gap: 56px; }
  .signs-list, .signs-side { grid-column: 1; }
  .faq { grid-template-columns: 1fr; }
  .faq h2, .faq-list { grid-column: 1; }
  .forms { grid-template-columns: 1fr; gap: 28px; }
  .forms-head, .forms-body { grid-column: 1; }
  .forms-head { position: static; }
  .approach-list { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: 1fr; }
  .team h2, .team p { grid-column: 1; }
  .channels { grid-template-columns: 1fr; }
  .channels h2, .rows-ch, .ch-note { grid-column: 1; }
  .map { grid-template-columns: 1fr; }
  .map-text, .map-frame { grid-column: 1; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .show-h { padding-left: var(--m); }
  .phero-row { flex-direction: column; }
}

/* ---------- телефон ---------- */
@media (max-width: 760px) {
  :root { --bar-h: 60px; --sec: 104px; }
  .bar { gap: 12px; }
  .wordmark { font-size: 1.4rem; }
  .bar-book { display: none; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

  .dock { position: fixed; inset: auto 0 0 0; z-index: 55; display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 4px; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); background: var(--bg); }
  .dock a, .dock button { min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; text-decoration: none; font-weight: 650; font-size: 0.9375rem; line-height: 1.1; cursor: pointer; transition: transform 140ms var(--ease-out); }
  .dock a:active, .dock button:active { transform: scale(0.97); }
  .dock .ic { width: 22px; height: 22px; }
  .dock-call { background: var(--accent); color: var(--accent-ink); }
  .dock-viber, .dock-flat { background: var(--surface-2); color: var(--ink); }

  .hero { min-height: calc(100svh - 64px - env(safe-area-inset-bottom)); }
  .hero-stage { min-height: 40svh; }
  .hero-flat { display: none; }
  .hero-band { padding-top: 14px; padding-bottom: 18px; display: flex; flex-direction: column; }
  .hero-h1 { gap: 14px; }
  .hero-h1-line { max-width: none; }
  .monument-name { --mono-max: 40vw; }
  .hero-act { position: static; max-width: none; justify-content: flex-start; margin-top: 16px; }
  .hero-act .status { justify-content: flex-start; order: -1; }

  .size-scene { height: 185svh; }
  .size-inner { width: 100%; padding: 40svh var(--m) calc(76px + env(safe-area-inset-bottom)); justify-content: flex-end; gap: 12px; }
  .size-text { display: none; }
  .wheel-poster { left: calc(50vw - min(0.46 * 100vw, 0.225 * 100svh) * 2.083 / 2); top: calc(31svh - min(0.46 * 100vw, 0.225 * 100svh) * 2.083 / 2); width: calc(min(0.46 * 100vw, 0.225 * 100svh) * 2.083); }
  .size-inner > * { position: relative; }
  .size-text { font-size: 1rem; }
  .size-rows { gap: 0; margin: 0; padding: 8px 12px; background: rgba(11, 11, 12, 0.86); }
  .size-rows li { gap: 14px; padding: 6px 0; font-size: var(--step-small); line-height: 1.35; }
  .size-rows b { font-size: var(--step-lead); }
  .size-links { gap: 8px 16px; }
  .size-links .linkbtn { font-size: 0.9375rem; }

  .services-h { text-indent: 0; font-size: 9.5vw; }
  .services-grid { display: block; margin-top: 40px; }
  .car-wrap { position: static; grid-template-columns: 1fr; gap: 16px; }
  .car { grid-row: auto; }
  .car-hint, .car-cards { grid-column: 1; }
  .phero-row .acts { flex-wrap: wrap; }
  .car { max-width: 210px; max-height: none; margin: 0 auto; }
  .car-hint { text-align: center; }
  .services-list { margin-top: 32px; }
  .services-label { display: none; }
  .rows li a { grid-template-columns: 1fr auto; padding: 16px 8px; margin: 0 -8px; }
  .rows-k { grid-column: 1 / -1; }
  .rows-n { font-size: 1.25rem; }
  .rows-v { grid-column: 1 / -1; }

  .how-h { padding-bottom: 32px; }
  .verb { height: 100svh; }
  .verb-word { font-size: min(calc((100vw - 2 * var(--m)) / var(--fit, 6)), 24vw); }
  .verb-text { max-width: none; padding: 14px 16px; }

  .marquee { height: 22vh; min-height: 150px; }
  .marquee-track > span { font-size: 15vw; }
  .proof-row { display: grid; grid-template-columns: 1fr; gap: 14px; padding-top: 28px; }
  .proof-row h2, .proof-row p { grid-column: 1; }

  .show-h { padding: 0 var(--m); margin-bottom: 32px; }
  .band { flex-wrap: wrap; height: 84svh; min-height: 520px; }
  .band-p { flex: none !important; height: 50%; }
  .band-p:nth-child(1), .band-p:nth-child(4) { width: 64%; }
  .band-p:nth-child(2), .band-p:nth-child(3) { width: 36%; }
  .band-title { padding: 14px 16px; max-width: 16ch; }

  .about-home, .story { display: flex; flex-direction: column-reverse; gap: 32px; }
  .about-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .about-p { line-height: 1.3; }
  .portrait { width: 6.6em; height: 6.6em; }

  .cr { min-height: 84px; padding-bottom: 16px; font-size: min(9.6vw, var(--step-head)); }
  .cr-hours { flex-direction: column; }
  .cr-btn { width: 56px; height: 56px; }

  .phero-img { height: calc(44svh - var(--bar-h)); min-height: 220px; }
  .phero-row { flex-direction: column; gap: 18px; margin-bottom: 26px; }
  .phero .monument { --mono-max: 26vw; }
  .monument-2 span { font-size: 0.6em; letter-spacing: -0.03em; margin-top: 0.12em; }

  .incl-h { text-indent: 0; }
  .incl-grid { display: flex; flex-direction: column-reverse; gap: 40px; margin-top: 40px; align-items: stretch; }
  .incl-img { width: 70%; margin-left: auto; }
  .rows-incl { gap: 24px; }
  .rows-incl li { grid-template-columns: 1fr; }
  .rows-incl .rows-n { font-size: 1.25rem; }
  .rows-incl li:nth-child(4n) { margin-top: 0; }

  .season { grid-template-columns: 1fr; }
  .season-in, .season-img { grid-column: 1; }
  .season-img { min-height: 260px; }

  .size-sec-head, .size-help, .size-yours { display: grid; grid-template-columns: 1fr; }
  .size-sec-head > *, .size-help > *, .size-yours > * { grid-column: 1 !important; grid-row: auto !important; }
  .size-art { margin: 0 calc(-1 * var(--m)); }
  .size-yours-row { flex-direction: column; }
  .size-yours-row .btn { width: 100%; }

  .storage { grid-template-columns: 1fr; }
  .storage-img, .storage-in { grid-column: 1; }
  .flat-sec { grid-template-columns: 1fr; margin-left: 0; margin-right: 0; }
  .flat-sec > div, .flat-sec .acts { grid-column: 1; justify-content: flex-start; }
  .flat-sec .btn { width: 100%; }

  .signs { grid-template-columns: 1fr; gap: 56px; }
  .signs-list, .signs-side { grid-column: 1; }
  .steps-list { grid-template-columns: 1fr; }
  .note { min-height: 0; padding-top: 52svh; }
  .note-in { margin: 0; }

  .faq { grid-template-columns: 1fr; }
  .faq h2, .faq-list { grid-column: 1; }
  .faq summary { padding: 18px 56px 18px 18px; }
  .faq details p { padding: 0 18px 18px; }

  .forms { grid-template-columns: 1fr; gap: 28px; }
  .forms-head, .forms-body { grid-column: 1; }
  .forms-head { position: static; }
  .fld-row { grid-template-columns: 1fr; }
  .lamps { grid-template-columns: repeat(3, 1fr); }
  .req .btn-xl, .sent .btn-xl { width: 100%; }

  .approach-list { grid-template-columns: 1fr; gap: 36px; }
  .pair { grid-template-columns: 1fr; gap: 6px; }
  .pair-a, .pair-b { grid-column: 1; }
  .pair-b { width: 70%; margin-left: auto; }
  .team { grid-template-columns: 1fr; }
  .team h2, .team p { grid-column: 1; }

  .gal-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; }
  .gal-grid li, .gal-grid li[class] { grid-column: span 1; grid-row: span 1; }
  .gal-grid li.g0, .gal-grid li.g5 { grid-column: span 2; grid-row: span 1; }
  .gal-grid li.g3 { grid-row: span 2; }

  .rows-thumbs li a { grid-template-columns: 76px minmax(0, 1fr) auto; }
  .rows-thumbs .rows-t { width: 76px; grid-row: 1 / span 3; }
  .rows-thumbs .rows-k, .rows-thumbs .rows-n, .rows-thumbs .rows-v { grid-column: 2 / -1; }
  .phero-row { display: contents; }
  .phero-band { display: flex; flex-direction: column; padding-bottom: 8px; }
  .phero-lead { order: 0; margin-bottom: 22px; }
  .phero .monument { order: 1; margin-bottom: 0; }
  .phero .acts { order: 2; margin-top: 22px; }
  .map { grid-template-columns: 1fr; }
  .map-text, .map-frame { grid-column: 1; }
  .map-frame { margin: 0 calc(-1 * var(--m)); }

  .foot { min-height: 0; padding-bottom: 20px; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .foot-mark { margin-top: 20svh; }
}

@media (max-width: 380px) {
  .lamps { grid-template-columns: repeat(2, 1fr); }
  .dock a, .dock button { font-size: 0.875rem; }
}

/* ---------- намалено движение ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
  .monument-name, .phero .monument { animation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
