/* Ключ 13: тъмна работилница, едно оранжево (цветът на апарата и пружината) */
:root {
  --bg: #0b0c0d;
  --bg-2: #131517;
  --bg-3: #1b1e21;
  --ink: #efece6;
  --ink-2: #a4a7ab;
  --line: rgba(239, 236, 230, .12);
  --acc: #ff5a1f;
  --acc-ink: #120700;
  --cursor: #efece6;
  --pad: clamp(16px, 2.6vw, 40px);
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --text: "Onest", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--acc); color: var(--acc-ink); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* филмово зърно върху целия екран */
body::after { content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .6s steps(4) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-4%, 3%); } 50% { transform: translate(3%, -5%); } 75% { transform: translate(-2%, 4%); } }

/* ---------- бутони ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--acc); color: var(--acc-ink); font: 600 16px/1 var(--text); text-decoration: none; cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); border-radius: inherit; transform: translateY(101%); transition: transform .5s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 15px; }
.btn-lg { min-height: 64px; padding: 0 40px; font-size: 18px; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: .55em; padding: 6px 0; border: 0; background: none; font: 600 16px/1.2 var(--text); color: var(--ink); text-decoration: none; cursor: pointer;
  background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .5s var(--ease); }
.link-arrow:hover, .link-arrow:focus-visible { background-size: 100% 1.5px; }
.link-arrow span { transition: transform .4s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- навигация ---------- */
.nav { position: fixed; z-index: 80; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 32px; padding: 14px var(--pad);
  transition: background-color .4s, transform .6s var(--ease); }
.nav.solid { background: rgba(11, 12, 13, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav.away { transform: translateY(-110%); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 18px/1 var(--display); letter-spacing: -.02em; text-decoration: none; }
.brand svg { width: 26px; height: 26px; fill: var(--acc); transition: transform .6s var(--ease); }
.brand:hover svg { transform: rotate(-35deg); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-weight: 500; font-size: 15px; text-decoration: none; color: var(--ink-2); transition: color .3s; }
.nav-links a:hover { color: var(--ink); }

/* ---------- сцената ---------- */
.stage { position: relative; isolation: isolate; }
.stage::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60vw 60vh at 50% 42vh, #1d2024 0%, transparent 70%); background-attachment: fixed; }
.stage-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; z-index: 1; pointer-events: none; }
.stage-sticky .three-fallback { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.stage-flow { position: relative; margin-top: -100vh; margin-top: -100svh; }

.hero { position: relative; overflow: clip; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: calc(96px + var(--ribbon-h, 0px)) var(--pad) 36px; }
.monument { position: absolute; z-index: 0; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad);
  font: 800 clamp(80px, 14vw, 280px)/.82 var(--display); letter-spacing: -.06em; color: var(--ink); text-transform: uppercase; pointer-events: none; white-space: nowrap; }
.monument > span { display: block; }
.hero-top, .hero-foot, .scroll-cue { position: relative; z-index: 2; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.hero h1 { max-width: 15em; font: 600 clamp(20px, 1.9vw, 28px)/1.25 var(--display); letter-spacing: -.02em; }
.open { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.open i { width: 9px; height: 9px; border-radius: 50%; background: #6b6f74; }
.open.on i { background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: ping 2s infinite; }
.open.on span { color: var(--ink); }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.hero-foot { grid-row: 3; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.hero-say { max-width: 27em; font-size: 18px; color: var(--ink); }
.hero-act { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: flex-end; }
.scroll-cue { position: absolute; left: 50%; bottom: 36px; width: 1.5px; height: 56px; background: var(--line); overflow: hidden; }
.scroll-cue i { position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--ink); animation: cue 2s var(--ease) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* частите: текстът отляво, колелото отдясно */
.part { position: relative; z-index: 2; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px var(--pad); }
.part-text { width: min(40vw, 560px); }
.part-count { font: 600 14px/1 var(--display); color: var(--ink-2); margin-bottom: 28px; }
.part-count b { color: var(--acc); font-weight: 600; }
.part h2 { font: 800 clamp(44px, 5.8vw, 112px)/.9 var(--display); letter-spacing: -.05em; margin-left: -.05em; }
.part-price { margin-top: 18px; font: 400 clamp(22px, 2.2vw, 32px)/1 var(--display); color: var(--ink-2); }
.part-price b { color: var(--ink); font-weight: 800; font-size: 1.6em; letter-spacing: -.04em; }
.part-say { margin-top: 28px; max-width: 27em; font-size: 19px; }
.part-list { margin: 26px 0 30px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.part-list li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); display: flex; gap: 14px; align-items: baseline; }
.part-list li::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--acc); border-radius: 50%; transform: translateY(-2px); }

/* ---------- лента ---------- */
.band { overflow: hidden; padding: 34px 0; background: var(--acc); color: var(--acc-ink); }
.band p { display: flex; width: max-content; }
.band span { font: 800 clamp(40px, 6vw, 96px)/1 var(--display); letter-spacing: -.04em; text-transform: uppercase; padding: 0 .35em; display: flex; align-items: center; gap: .7em; }
.band span::after { content: ""; width: .32em; height: .32em; border-radius: 50%; background: currentColor; margin-left: .35em; }

/* ---------- цени ---------- */
.prices { position: relative; padding: clamp(110px, 14vw, 200px) var(--pad) clamp(90px, 10vw, 160px); }
.prices-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(48px, 6vw, 90px); }
.prices-head h2 { font: 800 clamp(40px, 6.2vw, 108px)/.95 var(--display); letter-spacing: -.05em; max-width: 9.5em; }
.prices-head p { max-width: 26em; font-size: 18px; color: var(--ink-2); }
.prices-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 4vw, 72px); align-items: start; }
.svc { border-top: 1px solid var(--line); }
.svc button { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 24px; padding: 26px 8px 26px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; position: relative; transition: padding .5s var(--ease); }
.svc .name { font: 600 clamp(26px, 3.2vw, 52px)/1 var(--display); letter-spacing: -.04em; color: var(--ink-2); transition: color .4s; }
.svc .desc { grid-column: 1; font-size: 15px; color: var(--ink-2); opacity: .8; }
.svc .price { grid-row: 1 / span 2; grid-column: 2; font: 600 clamp(18px, 1.7vw, 26px)/1 var(--display); letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.svc button::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--acc); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.svc button:hover, .svc button[aria-pressed="true"] { padding-left: 18px; }
.svc button:hover .name, .svc button[aria-pressed="true"] .name { color: var(--ink); }
.svc button[aria-pressed="true"]::after { transform: scaleX(1); }
.svc button[aria-pressed="true"] .price { color: var(--acc); }

.calc { position: sticky; top: 96px; }
.calc-in { background: var(--bg-2); border-radius: 28px; padding: clamp(24px, 2.6vw, 40px); }
.calc-sum { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.total { font: 800 clamp(72px, 8vw, 132px)/.9 var(--display); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.total small { font-size: .38em; margin-left: .12em; color: var(--acc); letter-spacing: 0; }
.total-label { margin-top: 12px; color: var(--ink-2); }
.car-type { border: 0; margin: 0 0 18px; padding: 0; }
.car-type legend { padding: 0; margin-bottom: 12px; font-weight: 600; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: var(--bg); border-radius: 16px; padding: 6px; }
.seg button { border: 0; border-radius: 11px; padding: 12px 6px; background: none; cursor: pointer; display: grid; gap: 2px; text-align: center; transition: background-color .3s, color .3s; }
.seg b { font-weight: 600; font-size: 15px; }
.seg span { font-size: 12px; color: var(--ink-2); }
.seg button:hover { background: var(--bg-3); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.seg button[aria-pressed="true"] span { color: #55585c; }
.toggle { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; cursor: pointer; font-weight: 500; }
.toggle input { position: absolute; opacity: 0; }
.sw { width: 46px; height: 26px; border-radius: 99px; background: var(--bg-3); position: relative; flex: none; transition: background-color .3s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); transition: transform .4s var(--ease); }
.toggle input:checked + .sw { background: var(--acc); }
.toggle input:checked + .sw::after { transform: translateX(20px); }
.toggle input:focus-visible + .sw { outline: 2px solid var(--acc); outline-offset: 3px; }
.book { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.field input { min-height: 52px; padding: 0 16px; border: 1px solid transparent; border-radius: 14px; background: var(--bg); color: var(--ink); font-size: 16px; transition: border-color .3s; }
.field input:focus { outline: none; border-color: var(--acc); }
.field input::placeholder { color: #5d6166; }
.book-msg { min-height: 1.5em; font-size: 15px; color: var(--ink); }

/* снимката, която следва мишката над списъка */
.peek { position: fixed; left: 0; top: 0; z-index: 70; width: 300px; aspect-ratio: 4 / 3; pointer-events: none; overflow: hidden; border-radius: 18px; opacity: 0; transform: scale(.6); }
.peek img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- как работим ---------- */
.how { background: var(--bg-2); }
.how-pin { height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.how-track { display: flex; gap: clamp(20px, 2vw, 32px); padding: 0 var(--pad); will-change: transform; }
.how-intro { flex: none; width: min(34vw, 480px); display: flex; flex-direction: column; justify-content: center; gap: 24px; padding-right: 3vw; }
.how-intro h2 { font: 800 clamp(40px, 4.4vw, 80px)/.95 var(--display); letter-spacing: -.05em; }
.how-intro p { font-size: 19px; color: var(--ink-2); max-width: 20em; }
.step { flex: none; width: min(62vw, 860px); height: min(72vh, 640px); position: relative; overflow: hidden; border-radius: 28px; background: var(--bg-3); }
.step img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.step::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 9, 10, 0) 35%, rgba(8, 9, 10, .88) 100%); }
.step div { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: clamp(24px, 3vw, 44px); display: grid; grid-template-columns: auto 1fr; gap: 6px 28px; align-items: end; }
.step span { grid-row: 1 / span 2; font: 800 clamp(64px, 8vw, 132px)/.8 var(--display); letter-spacing: -.06em; color: var(--acc); }
.step h3 { font: 600 clamp(24px, 2.6vw, 40px)/1.05 var(--display); letter-spacing: -.03em; }
.step p { max-width: 30em; color: var(--ink); opacity: .85; }

/* ---------- снимката до целия екран ---------- */
.reveal { position: relative; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.reveal-frame { position: absolute; inset: 0; clip-path: inset(18% 22% round 28px); }
.reveal-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); }
.reveal-frame::after { content: ""; position: absolute; inset: 0; background: rgba(8, 9, 10, .5); }
.reveal-text { position: relative; z-index: 1; padding: 0 var(--pad); text-align: center; }
.reveal h2 { font: 800 clamp(34px, 5.4vw, 96px)/.98 var(--display); letter-spacing: -.05em; max-width: 13em; margin: 0 auto; }

/* ---------- обещания ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); padding: clamp(100px, 12vw, 180px) var(--pad); gap: 0; }
.fact { padding: 28px clamp(16px, 2vw, 32px) 0 0; border-top: 1px solid var(--line); margin-right: clamp(16px, 2vw, 32px); }
.fact-n { font: 800 clamp(56px, 7vw, 120px)/1 var(--display); letter-spacing: -.06em; margin-bottom: 18px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fact:nth-child(1) .fact-n { color: var(--acc); }
.fact p:last-child { color: var(--ink-2); max-width: 15em; }

/* ---------- контакт ---------- */
.contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 96px); padding: 0 var(--pad) clamp(100px, 12vw, 180px); align-items: stretch; }
.contact h2 { font: 800 clamp(44px, 6.6vw, 116px)/.92 var(--display); letter-spacing: -.05em; max-width: 8em; margin-bottom: clamp(36px, 4vw, 64px); }
.info { display: grid; margin-bottom: 40px; border-top: 1px solid var(--line); }
.info div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: clamp(18px, 1.6vw, 24px); }
.info dt { color: var(--ink-2); font-size: 16px; align-self: center; }
.info dd { font-weight: 500; }
.info a { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .5s var(--ease); }
.info a:hover { background-size: 100% 1.5px; }
.info .today dt, .info .today dd { color: var(--acc); }
.note { margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.contact-photo { position: relative; overflow: hidden; border-radius: 28px; min-height: 520px; }
.contact-photo img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }

/* ---------- футър ---------- */
.foot { position: relative; overflow: hidden; background: #060707; padding: clamp(60px, 8vw, 120px) var(--pad) 0; }
.foot-plan { width: min(100%, 980px); margin: 0 auto clamp(48px, 6vw, 90px); opacity: .55; mix-blend-mode: screen; }
.foot-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.foot-links { display: grid; gap: 10px; font-size: 18px; }
.foot-links a { text-decoration: none; color: var(--ink-2); transition: color .3s; }
.foot-links a:hover { color: var(--ink); }
.foot-legal { font-size: 14px; color: var(--ink-2); justify-self: end; max-width: 34em; }
.foot-legal summary { cursor: pointer; margin-top: 10px; color: var(--ink); }
.foot-legal details p { margin-top: 10px; }
.foot-word { font: 800 clamp(64px, 17vw, 330px)/.78 var(--display); letter-spacing: -.06em; text-transform: uppercase; white-space: nowrap; text-align: center; margin: 4vw -1vw 0; color: var(--ink); transform: translateY(18%); }

/* ---------- телефон ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav .btn-sm { margin-left: auto; }
  .hero { padding-top: calc(84px + var(--ribbon-h, 0px)); padding-bottom: 28px; }
  .hero-top { flex-direction: column; gap: 14px; }
  .hero h1 { font-size: 21px; }
  .monument { justify-content: center; align-items: flex-end; gap: .22em; padding-bottom: 205px; font-size: 17vw; }
  .hero-foot { flex-direction: column; align-items: stretch; gap: 22px; }
  .hero-say { font-size: 16px; }
  .hero-act { justify-content: space-between; }
  .scroll-cue { display: none; }
  .part { align-items: flex-end; padding: 54vh var(--pad) 56px; }
  .part-text { width: 100%; padding: 22px 0 0; }
  .part-count { margin-bottom: 14px; }
  .part h2 { font-size: min(10.4vw, 72px); }
  .part-say { margin-top: 16px; font-size: 17px; }
  .part-list { margin: 18px 0 18px; }
  .part-list li { padding: 10px 0; font-size: 15px; }
  .prices-head, .prices-grid, .contact, .foot-row { grid-template-columns: 1fr; }
  .calc { position: static; }
  .svc button { padding: 20px 0; }
  .svc button:hover, .svc button[aria-pressed="true"] { padding-left: 10px; }
  .seg { grid-template-columns: repeat(2, 1fr); }
  .peek { display: none; }
  .how-pin { height: auto; overflow: visible; display: block; padding: 100px 0; }
  .how-track { flex-direction: column; }
  .how-intro { width: auto; padding: 0 0 12px; }
  .step { width: 100%; height: 72vh; max-height: 560px; }
  .reveal { height: 80vh; }
  .facts { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .contact-photo { min-height: 380px; }
  .info div { grid-template-columns: 6.5em 1fr; }
  .foot-legal { justify-self: start; }
}
@media (max-width: 480px) {
  .hero-act .link-arrow { display: none; }
  .hero-act .btn { width: 100%; }
  .fact-n { font-size: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
  .reveal-frame { clip-path: none; }
  .step img, .reveal-frame img { transform: none; }
  .foot-word { transform: none; }
}

/* без анимации (или без JS): таблата на „Как работим“ се подреждат в мрежа, вместо да се плъзгат */
html:not(.fx-on) .how-pin { height: auto; overflow: visible; display: block; padding: clamp(90px, 10vw, 160px) 0; }
html:not(.fx-on) .how-track { flex-wrap: wrap; }
html:not(.fx-on) .how-intro { width: 100%; padding-bottom: 24px; }
html:not(.fx-on) .step { width: calc(50% - 16px); height: 520px; }
@media (max-width: 900px) { html:not(.fx-on) .step { width: 100%; } }
