/* Сервиз Тодоров: светла работилница (dieter-rams-braun). Един оранжев сигнал, само за функционални неща. */
@font-face { font-family: "Onest"; src: url(fonts/onest-cyr.woff2) format("woff2"); font-weight: 400 600; font-display: swap; unicode-range: U+0400-045F, U+2116, U+0301; }
@font-face { font-family: "Onest"; src: url(fonts/onest-lat.woff2) format("woff2"); font-weight: 400 600; font-display: swap; unicode-range: U+0020-007E, U+00A0, U+00AB, U+00BB, U+00D7, U+2013-2014, U+201C, U+201E, U+2026, U+20AC, U+2192; }
@font-face { font-family: "Plex Mono"; src: url(fonts/plexmono-400-cyr.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0400-045F, U+2116, U+0301; }
@font-face { font-family: "Plex Mono"; src: url(fonts/plexmono-400-lat.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0020-007E, U+00A0, U+00AB, U+00BB, U+00D7, U+2013-2014, U+201C, U+201E, U+2026, U+20AC, U+2192; }
@font-face { font-family: "Plex Mono"; src: url(fonts/plexmono-500-cyr.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0400-045F, U+2116, U+0301; }
@font-face { font-family: "Plex Mono"; src: url(fonts/plexmono-500-lat.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0020-007E, U+00A0, U+00AB, U+00BB, U+00D7, U+2013-2014, U+201C, U+201E, U+2026, U+20AC, U+2192; }

:root {
  --ground: #e4e1dc;     /* бетон */
  --paper: #f3f1ec;
  --ink: #191919;
  --body: #3d3d3b;
  --muted: #6b6a66;
  --line: #c4c0b8;
  --signal: #e96a26;     /* само за точката „отворено“ и активен избор */
  --sans: "Onest", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, "Consolas", monospace;
  --gutter: clamp(16px, 4.5vw, 56px);
  --max: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--body); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 500; letter-spacing: -0.025em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: clamp(2rem, 5.4vw, 3.4rem); }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }
html { scrollbar-color: #8f8c86 var(--ground); }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--paper); padding: .6rem 1rem; }

/* Бутони: правоъгълни, без сенки, без подскачане */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 1.5rem;
  font: 500 1rem/1 var(--sans); text-decoration: none; border-radius: 3px; border: 1.5px solid var(--ink);
  cursor: pointer; transition: background-color .1s, color .1s;
}
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #333; }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }

/* ===== Скелет: разделен екран. Вляво неподвижен панел, вдясно документ, който се скролва ===== */
.shell { display: block; }
.side { display: grid; gap: 2rem; padding: 20px var(--gutter) 40px; border-bottom: 1.5px solid var(--ink); }
.logo { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.logo svg { width: 26px; height: 26px; }
.status { display: inline-flex; align-items: center; gap: .6rem; font: 400 .9rem/1.3 var(--mono); color: var(--body); margin-bottom: 1.2rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.status.is-open .dot { background: var(--signal); box-shadow: 0 0 0 4px rgba(233, 106, 38, .18); }
.side h1 { font-size: clamp(2.6rem, 11vw, 4.4rem); max-width: 10ch; }
.side__lead { margin-top: 1.2rem; max-width: 36ch; font-size: 1.08rem; }
.side__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.side__nav, .side__foot { display: none; }

.doc { background: var(--paper); }
.doc__in { padding-inline: var(--gutter); }
.doc__plan { padding: 28px var(--gutter) 36px; }
.doc__label { font: 400 .8rem/1 var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1rem; }

/* Долна лента на телефон: два равни бутона */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1.5px solid var(--ink); background: var(--ground); padding-bottom: env(safe-area-inset-bottom);
  transition: transform .2s;
}
.dock a { display: flex; align-items: center; justify-content: center; min-height: 58px; font-weight: 500; color: var(--ink); text-decoration: none; }
.dock a + a { background: var(--ink); color: var(--paper); }
.dock.is-hidden { transform: translateY(110%); pointer-events: none; visibility: hidden; transition: transform .2s, visibility 0s .2s; }

@media (min-width: 1000px) {
  .shell { display: grid; grid-template-columns: minmax(380px, 38%) 1fr; }
  .side {
    position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto;
    grid-template-rows: auto 1fr auto auto; gap: 2.5rem;
    padding: 28px clamp(28px, 3.2vw, 56px) 32px; border-bottom: 0; border-right: 1.5px solid var(--ink);
  }
  .side__main { align-self: center; }
  .side h1 { font-size: clamp(3rem, 4.6vw, 4.8rem); }
  .side__nav { display: grid; border-top: 1.5px solid var(--ink); }
  .side__nav a { display: flex; justify-content: space-between; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
  .side__nav a span + span { font: 400 .8rem/1 var(--mono); color: var(--muted); }
  .side__nav a:hover, .side__nav a.is-here { padding-left: .5rem; }
  .side__nav a.is-here span:first-child::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); margin-right: .6rem; vertical-align: .1em; }
  .side__foot { display: grid; gap: .2rem; font-size: .92rem; }
  .side__phone { font: 500 1.7rem/1.2 var(--mono); color: var(--ink); text-decoration: none; }
  .doc__plan { padding: 48px clamp(32px, 4vw, 72px) 56px; }
  .doc__in { padding-inline: clamp(32px, 4vw, 72px); }
  .dock { display: none; }
}

/* Техническа рисунка */
.plan { margin: 0; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--paper); }
.plan__sheet {
  padding: 7% 5% 4%;
  background-image:
    linear-gradient(rgba(25,25,25,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25,25,25,.06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.plan__canvas { position: relative; }
.plan__car { display: block; width: 100%; height: auto; overflow: visible; }
.plan__car .draw { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.plan__car .thin { stroke-width: 1.2; }
.dim path { stroke: var(--muted); stroke-width: 1; fill: none; }
.dim text { font: 400 15px var(--mono); fill: var(--muted); }

.plan__pins { position: absolute; inset: 0; }
.pin {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--ink);
  background: var(--paper); color: var(--ink); font: 500 .95rem/1 var(--mono); cursor: pointer;
  transition: background-color .1s, color .1s, border-color .1s;
}
.pin::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; } /* зона за докосване 46px */
.pin:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 559px) { .pin { width: 28px; height: 28px; font-size: .8rem; } .pin::after { inset: -9px; } }
.pin[aria-pressed="true"] { background: var(--signal); border-color: var(--signal); color: var(--ink); }

.plan__info {
  display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; align-items: start;
  padding: 1.1rem 1.25rem; border-top: 1.5px solid var(--ink); min-height: 112px;
}
.plan__num { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 500 .9rem/1 var(--mono); }
.plan__body { display: grid; gap: .2rem; }
.plan__body b { color: var(--ink); font-weight: 600; }
.plan__body span { font-size: .96rem; }
.plan__price { grid-column: 2; font: 500 1rem/1.3 var(--mono); color: var(--ink); }
@media (min-width: 560px) {
  .plan__info { grid-template-columns: auto 1fr auto; }
  .plan__num { grid-row: auto; }
  .plan__price { grid-column: auto; white-space: nowrap; }
}

/* Рисунката се изчертава веднъж при отваряне */
@media (prefers-reduced-motion: no-preference) {
  .plan__car .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s cubic-bezier(.6, 0, .2, 1) forwards; }
  .plan__car .draw:nth-child(2), .plan__car .draw:nth-child(3) { animation-delay: .35s; }
  .plan__car .draw:nth-child(4) { animation-delay: .6s; }
  .plan__car .draw:nth-child(n+5) { animation-delay: .5s; animation-duration: 1s; }
  .dim, .pin { opacity: 0; animation: show .3s linear forwards; }
  .dim { animation-delay: 1.5s; }
  .pin { animation-delay: calc(1.5s + var(--d, 0s)); }
  .pin:nth-child(2) { --d: .08s; } .pin:nth-child(3) { --d: .16s; } .pin:nth-child(4) { --d: .24s; } .pin:nth-child(5) { --d: .32s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes show { to { opacity: 1; } }

/* Снимка на халето */
.band { margin: 0; }
.band img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #cfcbc4; border-block: 1.5px solid var(--ink); }
@media (min-width: 1000px) { .band img { aspect-ratio: 16 / 7; } }

/* Общи заглавия на секции */
.sec-head { display: grid; gap: 1rem; margin-bottom: 2.5rem; }
.sec-head p { max-width: 52ch; }
@media (min-width: 1300px) { .sec-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 3rem; } }

/* Ценоразпис като техническа таблица */
.prices { padding: clamp(56px, 7vw, 104px) 0; }
.spec { width: 100%; border-collapse: collapse; }
.spec thead th { font: 400 .8rem/1 var(--mono); color: var(--muted); text-align: left; padding: 0 0 .8rem; border-bottom: 1.5px solid var(--ink); }
.spec thead th:not(:first-child), .spec td { text-align: right; }
.spec tbody th, .spec td { padding: 1.05rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec tbody th { text-align: left; color: var(--ink); font-weight: 500; padding-right: 1rem; }
.spec small { display: block; margin-top: .2rem; color: var(--muted); font-size: .88rem; font-weight: 400; }
.spec td { font: 400 .98rem/1.5 var(--mono); color: var(--ink); white-space: nowrap; padding-left: 1rem; }
.spec td:last-child { font-weight: 500; }
@media (max-width: 559px) { .spec thead th:nth-child(2), .spec td:nth-child(2) { display: none; } }

/* Преди да оставите колата */
.how { padding: clamp(56px, 7vw, 104px) 0; border-top: 1.5px solid var(--ink); background: var(--ground); }
.how__grid { display: grid; gap: 2rem; }
.how__list { margin: 0; display: grid; }
.how__list > div { display: grid; gap: .3rem; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.how__list dt { color: var(--ink); font-weight: 600; }
.how__list dd { margin: 0; max-width: 48ch; }
.how__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.how__photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #cfcbc4; border-radius: 2px; }
@media (min-width: 1300px) {
  .how__grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; column-gap: 4rem; }
  .how__grid h2 { grid-column: 1; }
  .how__list { grid-column: 1; }
  .how__photos { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
}

/* Записване */
.booking { padding: clamp(56px, 7vw, 104px) 0; border-block: 1.5px solid var(--ink); overflow-x: clip; }
.booking__form { display: grid; gap: 2.25rem; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step legend { font: 400 .85rem/1 var(--mono); color: var(--muted); margin-bottom: 1rem; padding: 0; text-transform: uppercase; letter-spacing: .06em; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: flex; flex-direction: column; gap: 2px; min-height: 48px; justify-content: center;
  padding: .65rem 1rem; border: 1.5px solid var(--line); border-radius: 3px; background: var(--paper);
  color: var(--ink); cursor: pointer; transition: border-color .1s, background-color .1s; font-size: .98rem; line-height: 1.25;
}
.choice small { color: var(--muted); font: 400 .8rem/1.3 var(--mono); }
.choice input:hover + span { border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.choice input:checked + span small { color: #bdbab3; }
.choice input:disabled + span { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.choices--services { display: grid; grid-template-columns: 1fr 1fr; }
.choices--services .choice span { height: 100%; }
@media (min-width: 700px) { .choices--services { grid-template-columns: repeat(3, 1fr); } }
.choices--days { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: thin; }
.choices--days .choice { scroll-snap-align: start; flex: 0 0 auto; }
.choices--days .choice span { width: 70px; align-items: center; text-align: center; }
.choices--days .choice b { font: 500 1.5rem/1 var(--mono); color: inherit; }
.choices--times { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
.choices--times .choice span { align-items: center; font-family: var(--mono); }
.hint { color: var(--muted); font-size: .98rem; grid-column: 1 / -1; }
.step--contact { display: grid; gap: 1rem; }
.step--contact label { display: grid; gap: .4rem; font-size: .92rem; color: var(--body); }
.step--contact input, .step--contact textarea {
  font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 3px; padding: .85rem .95rem; min-height: 50px;
}
.step--contact input::placeholder, .step--contact textarea::placeholder { color: #8d8b86; }
.step--contact input:focus, .step--contact textarea:focus { border-color: var(--ink); outline: none; }
.step--contact input[aria-invalid="true"] { border-color: #b3261e; }
@media (min-width: 700px) { .step--contact { grid-template-columns: 1fr 1fr 1fr; } .step--contact .full { grid-column: 1 / -1; } }
.booking__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.booking__submit .btn { width: 100%; }
.summary { flex: 1 1 280px; color: var(--ink); }
@media (min-width: 700px) { .booking__submit .btn { width: auto; } }
.form-error { color: #b3261e; }
.booking__done { padding: 2rem; border: 1.5px solid var(--ink); border-radius: 3px; background: #fff; max-width: 640px; }
.booking__done h3 { font-size: 2rem; margin-bottom: .8rem; }
.booking__done p + p { margin-top: .6rem; }
.booking__done a { color: var(--ink); font-weight: 600; }

/* Контакти */
.contacts { display: grid; }
.contacts__text { padding: clamp(48px, 6vw, 88px) var(--gutter); }
.contacts__addr { margin-top: 1.2rem; color: var(--ink); }
.hours { margin-top: 1.4rem; border-collapse: collapse; width: 100%; max-width: 420px; }
.hours th, .hours td { text-align: left; padding: .7rem 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; font-family: var(--mono); color: var(--ink); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--ink); font-weight: 600; }
.hours tr.is-today th::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); margin-right: .55rem; vertical-align: .1em; }
.link { display: flex; width: max-content; align-items: center; min-height: 44px; margin-top: 1rem; color: var(--ink); text-underline-offset: 4px; }
.map { min-height: 340px; background: #d5d1ca; border-top: 1.5px solid var(--ink); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(1) contrast(1.05); }
@media (min-width: 1000px) { .contacts__text { padding-inline: clamp(32px, 4vw, 72px); } }
@media (min-width: 1300px) {
  .contacts { grid-template-columns: 1fr 1fr; }
  .map { border-top: 0; border-left: 1.5px solid var(--ink); }
}

/* Футър */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; border-top: 1.5px solid var(--ink); padding: 1.5rem var(--gutter) 88px; font: 400 .82rem/1.5 var(--mono); color: var(--muted); }
@media (min-width: 1000px) { .foot { padding: 1.5rem clamp(32px, 4vw, 72px); } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
