/* G CUTZ — сайт. Посока: „Името като паметник“. Черно, кост и месинг; зеленото е от кадифените кресла в салона.
   Шрифтове: Oswald (заглавия, тесен и тежък като логото) и Geologica (текст). И двата имат кирилица. */

:root {
  --bg: #0e0e0d;
  --surface: #181816;
  --surface-2: #232320;
  --ink: #ebeae6;
  --muted: #a6a399;
  --accent: #c9a55c;          /* месинг: само бутоните за записване, лентата „Запази“ и цената */
  --accent-ink: #0e0e0d;
  --accent-2: #dcbb76;
  --green: #1b3326;           /* кадифените кресла */
  --green-2: #244232;
  --green-soft: #bfcdc3;

  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --font: 'Geologica', system-ui, sans-serif;

  --step-small: 0.875rem;
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.55vw, 1.625rem);
  --step-head: clamp(2.5rem, 0.9rem + 5vw, 6rem);
  --name-k: 2.86;             /* ширината на „G CUTZ“ в em; размерът се смята така, че името да стига от поле до поле */
  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(0.75rem, 1.6vw, 1.5rem);
  --section: clamp(5.5rem, 10vw, 10rem);
  --step-display: calc((100vw - 2 * var(--margin)) / var(--name-k));

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms; --t-hover: 180ms; --t-ui: 240ms;
}

/* ---------- основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.55; font-kerning: normal; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, figure, ul, ol, dl, dd, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; text-wrap: balance; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
fieldset { border: 0; min-width: 0; }
p { max-width: 62ch; text-wrap: pretty; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* taste-skill-ignore */
.nums { font-variant-numeric: tabular-nums; }
a[href^="tel:"] { white-space: nowrap; } /* номерът не се разделя на два реда */
.small { font-size: var(--step-small); line-height: 1.45; }
.head { font-size: var(--step-head); line-height: 0.92; letter-spacing: -0.01em; }
.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.skip { position: absolute; left: var(--margin); top: -4rem; z-index: 20; background: var(--ink); color: var(--bg); padding: 0.6rem 1rem; }
.skip:focus { top: 1rem; }

/* единна обработка на снимките: черно-бяло, малко по-тъмно и по-контрастно */
/* снимките и клиповете не се влачат извън сайта */
img, video { -webkit-user-drag: none; -webkit-touch-callout: none; user-select: none; }
.hero-img, .plate img, .frame img, .frame video, .sp img { filter: grayscale(1) contrast(1.08) brightness(0.86); }
/* снимките на работата и салона стават цветни: с мишка при посочване, на телефон докато са в средата на екрана */
.frame img, .frame video, .sp img { transition: filter 500ms ease; }
@media (hover: hover) and (pointer: fine) {
  .plate:hover img, .frame:hover img, .frame:hover video, .sp:hover img { filter: grayscale(0) contrast(1.03) brightness(0.97); }
}
.plate.is-color img, .frame.is-color img, .frame.is-color video, .sp.is-color img { filter: grayscale(0) contrast(1.03) brightness(0.97); }

/* ---------- бутони и връзки ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3.25rem; padding: 0 1.6rem; border-radius: 0; font-family: var(--display); font-weight: 600; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.button[disabled] { opacity: 0.6; cursor: progress; }
.button-accent { background: var(--accent); color: var(--accent-ink); }
.button-bone { background: var(--ink); color: var(--bg); }
.button-ink { background: var(--bg); color: var(--ink); }
.button-small { min-height: 2.75rem; padding: 0 1.1rem; font-size: 1rem; }
.button-wide { width: 100%; }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease; }
.link-plain { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: currentColor; }
  .link-plain:hover { text-decoration-thickness: 0.14em; }
  .button-accent:hover { background: var(--accent-2); }
  .button-bone:hover { background: var(--accent); }
  .button-ink:hover { background: var(--surface-2); }
}

/* ---------- 1. начало: името върху залата ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; background: #000; color: var(--ink); overflow: clip; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); opacity: 0; transition: opacity 1600ms ease, transform 9s linear; }
.hero-img.is-on { opacity: 1; }
/* неутрален тъмен слой само под текста: горе за менюто, долу за името */
.hero::before, .hero::after { content: ''; position: absolute; left: 0; right: 0; z-index: -1; pointer-events: none; }
.hero::before { top: 0; height: 9rem; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0)); } /* taste-skill-ignore: тъмен слой върху снимката */
.hero::after { bottom: 0; height: 58%; background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.7) 45%, rgba(0, 0, 0, 0) 100%); } /* taste-skill-ignore: тъмен слой върху снимката */

.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem var(--margin) 0; }
.mark { font-family: var(--display); font-weight: 700; font-size: var(--step-lead); letter-spacing: 0.01em; text-decoration: none; line-height: 1; }
.toplinks { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.navlink { position: relative; display: inline-block; font-family: var(--display); font-weight: 500; font-size: var(--step-body); text-transform: uppercase; text-decoration: none; padding-block: 0.5rem; }
.navlink::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0.2rem; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .navlink:hover::after { transform: none; } }
.narrow { display: list-item; }
.wide { display: none; }
@media (min-width: 60em) { .wide { display: list-item; } .narrow { display: none; } }
/* BG / EN: вижда се и на телефон, и на компютър */
.lang-link { display: inline-flex; align-items: center; justify-content: center; border: 2px solid currentColor; padding: 0 0.55rem; line-height: 1; min-width: 2.75rem; min-height: 2.75rem; }
.lang-link::after { display: none; }
@media (hover: hover) and (pointer: fine) { .lang-link { transition: background-color var(--t-hover) ease, color var(--t-hover) ease; } .lang-link:hover { background: var(--ink); color: var(--bg); } }

.hero-bottom { padding: 0 var(--margin); }
.hero-row { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: clamp(0.75rem, 2vh, 1.5rem); }
.hero-lead { max-width: 34ch; font-size: var(--step-body); line-height: 1.45; }
.hero-live { display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem; text-align: right; }
.hero-when { font-family: var(--display); font-weight: 500; font-size: 1.25rem; text-transform: uppercase; color: var(--ink); max-width: none; }
.hero-slots { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.4rem; }
/* свободните часове се показват наведнъж, когато се заредят (без „Виж календара“, което после се сменя) */
.js .hero-when, .js .hero-slots { transition: opacity 300ms var(--ease-out); }
.js .hero-live:not(.is-ready) .hero-when, .js .hero-live:not(.is-ready) .hero-slots { opacity: 0; }
.hero-slot { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.9rem; background: rgba(14, 14, 13, 0.78); color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 1.25rem; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.hero-slot:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .hero-slot:hover { background: var(--ink); color: var(--bg); } }
.hero-none { font-size: var(--step-small); }
.hero-name { display: block; font-size: var(--step-display); font-weight: 700; line-height: 0.74; letter-spacing: -0.005em; white-space: nowrap; padding-top: 0.06em; margin-bottom: calc(0.08em + clamp(1rem, 2.6vh, 2.2rem)); } /* знаците слизат 0.08em под реда: отстъпът ги държи над ръба */
.hero-word { display: block; }

@media (max-width: 47.99em) {
  .hero-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .hero-live { align-items: flex-start; text-align: left; }
  .hero-slots { justify-content: flex-start; }
  .hero-cta { display: none; }
  .hero-img { object-position: var(--pos-m, 50% 50%); }
}

/* ---------- 2. записване: живият календар ---------- */
.book { padding-block: var(--section); background: var(--bg); }
.book-head { row-gap: 1.5rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.book-head .head { grid-column: 1 / span 6; }
.book-intro { grid-column: 7 / -1; font-size: var(--step-lead); line-height: 1.35; max-width: 36ch; }
.book-form { row-gap: 3rem; align-items: start; }
.book-form[hidden], .book-done[hidden] { display: none; }
.book-pick { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 2.25rem; }
.book-details { grid-column: 9 / -1; display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 1.5rem; }
.pick-legend { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: var(--step-lead); margin-bottom: 0.75rem; }

.svc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr)); gap: 0.4rem; }
.svc-opt, .day-opt, .time-opt { position: relative; display: block; }
.svc-opt input, .day-opt input, .time-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.svc-box { display: flex; flex-direction: column; gap: 0.15rem; min-height: 4.25rem; padding: 0.75rem 1rem; background: var(--surface); transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.svc-name { font-weight: 500; line-height: 1.25; }
.svc-meta { font-size: var(--step-small); color: var(--muted); }
input:checked + .svc-box { background: var(--ink); color: var(--bg); }
input:checked + .svc-box .svc-meta { color: #4b4944; }
input:focus-visible + .svc-box, input:focus-visible + .day-box, input:focus-visible + .time-box { outline: 3px solid var(--accent); outline-offset: 2px; }

.pick-month { font-family: var(--font); font-weight: 400; text-transform: none; font-size: var(--step-body); color: var(--muted); margin-left: 0.5em; }
.day-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.35rem; }
.day-head { font-size: var(--step-small); color: var(--muted); padding: 0 0.15rem 0.2rem; }
.day-box { display: flex; flex-direction: column; align-items: flex-start; padding: 0.5rem 0.6rem; background: var(--surface); min-height: 4.5rem; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.day-n { font-family: var(--display); font-size: var(--step-lead); font-weight: 600; line-height: 1.1; }
.day-tag { font-size: var(--step-small); color: var(--muted); margin-top: auto; }
.day-opt.is-today .day-n { text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.15em; }
input:checked + .day-box { background: var(--ink); color: var(--bg); }
input:checked + .day-box .day-tag { color: #4b4944; }
.day-opt.is-off .day-box { background: transparent; color: var(--muted); }
.day-opt.is-off .day-n { font-weight: 500; }
.day-opt.is-off input { cursor: not-allowed; }
@media (max-width: 29.99em) {
  .day-grid { gap: 0.25rem; }
  .day-box { min-height: 3.25rem; padding: 0.4rem; align-items: center; justify-content: center; }
  .day-n { font-size: var(--step-body); }
  .day-tag { display: none; }
  .day-opt.is-off .day-n { text-decoration: line-through; }
}

.time-note { color: var(--muted); margin-bottom: 0.75rem; }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.25rem, 1fr)); gap: 0.4rem; }
.time-box { display: flex; align-items: center; justify-content: center; min-height: 3rem; background: var(--surface); font-family: var(--display); font-weight: 500; font-size: 1.125rem; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.time-opt:active .time-box { transform: scale(0.96); }
input:checked + .time-box { background: var(--ink); color: var(--bg); }
.time-opt.is-taken { display: flex; align-items: center; justify-content: center; min-height: 3rem; color: var(--muted); font-family: var(--display); font-size: 1.125rem; text-decoration: line-through; text-decoration-thickness: 0.08em; opacity: 0.8; }
@media (hover: hover) and (pointer: fine) {
  .svc-opt:hover input:not(:checked) + .svc-box,
  .day-opt:not(.is-off):hover input:not(:checked) + .day-box,
  .time-opt:hover input:not(:checked) + .time-box { background: var(--surface-2); }
}

.book-summary { display: flex; flex-direction: column; gap: 0.2rem; padding: 1.25rem; background: var(--surface-2); margin-bottom: 0.5rem; max-width: none; }
.sum-main { font-family: var(--display); font-size: var(--step-lead); font-weight: 600; text-transform: uppercase; line-height: 1.15; }
.sum-sub { color: var(--muted); }
.fld { display: flex; flex-direction: column; gap: 0.35rem; }
.fld-label { font-weight: 500; }
.field { width: 100%; min-height: 3.25rem; padding: 0.75rem 0.9rem; background: var(--surface); color: var(--ink); border: 0; border-radius: 0; font-size: max(1rem, var(--step-body)); }
textarea.field { resize: vertical; min-height: 5rem; }
.field::placeholder { color: var(--muted); opacity: 0.8; }
.field:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; }
.fld-hint { color: var(--muted); margin-top: -0.4rem; }
.fld-opt { font-weight: 400; font-size: var(--step-small); color: var(--muted); margin-left: 0.35em; }
/* отметката за промоциите */
.fld-check { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: start; padding: 0.35rem 0; cursor: pointer; }
.fld-check input { -webkit-appearance: none; appearance: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; margin: 0; background: var(--surface); cursor: pointer; transition: background-color var(--t-ui, 160ms) ease; }
.fld-check input::after { content: ''; width: 0.45rem; height: 0.8rem; border: solid var(--accent-ink); border-width: 0 3px 3px 0; transform: translateY(-0.1rem) rotate(45deg); opacity: 0; }
.fld-check input:checked { background: var(--accent); }
.fld-check input:checked::after { opacity: 1; }
.fld-check input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.fld-check-text { font-weight: 500; padding-top: 0.12rem; }
.fld-check-text small { display: block; margin-top: 0.2rem; font-weight: 400; font-size: var(--step-small); color: var(--muted); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; } /* taste-skill-ignore */
.book-status { min-height: 1.5em; font-weight: 500; }
.book-status[data-kind="error"] { color: #f0a58f; }
.fld-err { color: #f0a58f; font-weight: 500; margin-top: -0.4rem; }
.field[aria-invalid="true"] { outline: 2px solid #f0a58f; outline-offset: -2px; }
.book-done { max-width: 44rem; display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.book-done .lead { font-size: var(--step-lead); line-height: 1.35; }
.done-title { font-size: var(--step-head); line-height: 0.95; }
.done-title:focus { outline: none; }
/* кое поред е подстригването */
.done-loy { font-size: var(--step-lead); line-height: 1.35; padding: 1rem 1.25rem; background: var(--surface); max-width: 40ch; }
.done-loy b { font-weight: 500; }
.done-loy.is-free { background: var(--accent); color: var(--accent-ink); }
.muted { color: var(--muted); }

@media (max-width: 63.99em) {
  .book-head .head, .book-intro, .book-pick, .book-details { grid-column: 1 / -1; }
  .book-details { position: static; }
}

/* ---------- 3. цени ---------- */
.prices { padding-block: var(--section); background: var(--surface); min-height: 80svh; }
.price-line { font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.01em; }
.price-l1, .price-l2 { display: block; }
.price-block { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 0.02em 0.15em 0; margin-top: 0.06em; }
.price-under { margin-top: clamp(2rem, 4vw, 4rem); row-gap: 1.5rem; align-items: end; }
.price-say { grid-column: 1 / span 6; font-size: var(--step-lead); line-height: 1.35; max-width: 40ch; }
.price-go { grid-column: 9 / -1; justify-self: end; }
.price-table { width: 100%; border-collapse: collapse; margin-top: clamp(3rem, 6vw, 5rem); font-size: var(--step-lead); }
.price-table th, .price-table td { text-align: left; padding: 1rem; vertical-align: middle; font-weight: 400; }
.price-table thead th { font-size: var(--step-small); color: var(--muted); padding-block: 0.6rem; }
.price-table tbody th { font-weight: 500; }
.price-table tbody tr:nth-child(odd) { background: var(--surface-2); }
.price-table td.price { font-family: var(--display); font-weight: 600; white-space: nowrap; }
.price-table td.price-empty { color: var(--muted); font-weight: 400; }
.price-table .row-action { text-align: right; }
.price-table .button-small { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--surface-2); } /* taste-skill-ignore: рамка на бутона в таблицата */
.price-table tbody tr:nth-child(odd) .button-small { box-shadow: inset 0 0 0 2px var(--muted); } /* taste-skill-ignore: рамка на бутона в таблицата */
@media (hover: hover) and (pointer: fine) { .price-table .button-small:hover { background: var(--ink); color: var(--bg); } }
.svc-note { display: block; font-size: var(--step-small); color: var(--muted); font-weight: 400; }
.price-note { margin-top: 1.5rem; color: var(--muted); }
@media (max-width: 47.99em) {
  .price-say, .price-go { grid-column: 1 / -1; justify-self: stretch; }
  .price-table { font-size: var(--step-body); }
  .price-table th, .price-table td { padding: 0.85rem 0.5rem; }
  .price-table thead th:nth-child(2), .price-table tbody td:nth-child(2) { display: none; }
}

/* ---------- 4. преди и след ---------- */
.show { display: grid; grid-template-columns: 1fr 1fr; min-height: 88svh; background: var(--bg); padding-block: clamp(2.5rem, 5vw, 4rem); }
.show-plate { display: flex; align-items: center; padding-inline: var(--margin) clamp(1.5rem, 3vw, 2.5rem); }
.plate { width: 100%; aspect-ratio: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.plate-half { position: relative; overflow: clip; background: var(--surface); }
.plate-half img { width: 100%; height: 100%; object-fit: cover; transition: opacity 420ms ease, filter 500ms ease; }
.plate.is-swapping img { opacity: 0; }
.plate-tag { position: absolute; left: 0; bottom: 0; background: var(--bg); color: var(--ink); padding: 0.35rem 0.75rem; font-weight: 500; }
.show-text { display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; padding: clamp(0.5rem, 2vw, 1.5rem) var(--margin) clamp(0.5rem, 2vw, 1.5rem) clamp(1rem, 2vw, 2rem); }
.show-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.show-tab { font-family: var(--display); font-weight: 500; font-size: var(--step-lead); text-transform: uppercase; color: var(--muted); padding-block: 0.3rem; border-bottom: 3px solid transparent; transition: color var(--t-hover) ease, border-color var(--t-hover) ease; }
.show-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .show-tab:hover { color: var(--ink); } }
.show-desc { margin-top: 1.5rem; font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; min-height: 4.1em; }
.show-cells { display: grid; grid-template-columns: 1fr 1fr; }
.cell { display: flex; align-items: center; justify-content: center; min-height: 4.5rem; padding: 0 1rem; font-family: var(--display); font-weight: 600; font-size: 1.125rem; text-transform: uppercase; text-decoration: none; text-align: center; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.cell:active { transform: scale(0.98); }
.cell-ink { background: var(--ink); color: var(--bg); }
.cell-tone { background: var(--surface-2); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .cell-ink:hover { background: var(--accent); } .cell-tone:hover { background: var(--ink); color: var(--bg); } }
@media (max-width: 47.99em) {
  .show { grid-template-columns: 1fr; min-height: 0; padding-block: var(--section); }
  .show-plate { padding-inline: var(--margin); }
  .show-text { padding-inline: var(--margin); padding-top: 1.5rem; gap: 1.75rem; }
  .show-tab { font-size: var(--step-body); }
  .show-cells { grid-template-columns: 1fr; gap: 0.4rem; }
  .cell { min-height: 3.75rem; }
}
html:not(.js) .show-tabs { display: none; }

/* ---------- 5. последни подстрижки: лента ---------- */
.reel { min-height: 80svh; display: flex; flex-direction: column; justify-content: center; gap: 1.25rem; padding-block: var(--section); background: var(--surface); }
.reel-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; }
.reel-title { font-size: var(--step-lead); line-height: 1.1; }
/* бутоните към Instagram и TikTok */
.social { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.social-btn { gap: 0.6rem; }
.social-ico { width: 1.2em; height: 1.2em; flex: none; }
.reel-count { color: var(--muted); margin-left: 0.4em; }
.reel-row { display: flex; gap: clamp(1rem, 3vw, 3rem); overflow-x: auto; overscroll-behavior-x: contain; padding: 2.5rem var(--margin); scrollbar-width: none; cursor: grab; }
.reel-row::-webkit-scrollbar { display: none; }
.reel-row.is-dragging { cursor: grabbing; }
.reel-row.is-dragging .frame { pointer-events: none; }
.reel-row.is-rolling { scroll-snap-type: none; } /* лентата върви сама: прихващането пречи */
.frame { position: relative; flex: 0 0 auto; width: clamp(9.5rem, 15vw, 15rem); aspect-ratio: 2 / 3; overflow: clip; background: var(--surface-2); transition: transform 250ms var(--ease-out); }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
/* клиповете: знак „видео“, докато стоят; тръгват при посочване с мишката, а на телефон, когато са в средата */
.frame-video { cursor: pointer; }
.frame-play { position: absolute; left: 0.6rem; bottom: 0.6rem; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; background: rgba(14, 14, 13, 0.8); pointer-events: none; transition: opacity var(--t-ui) ease; }
.frame-play::before { content: ''; width: 0.75rem; height: 0.85rem; margin-left: 0.15rem; background: var(--ink); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.frame.is-playing .frame-play { opacity: 0; }
@media (hover: hover) and (pointer: fine) { .frame:hover { transform: scale(1.1); } }
@media (max-width: 47.99em) {
  .reel { min-height: 0; }
  .reel-row { scroll-snap-type: x mandatory; scroll-padding-inline: var(--margin); padding-block: 1.25rem; cursor: auto; }
  .frame { width: 40vw; scroll-snap-align: start; }
}

/* ---------- 6. салонът ---------- */
.salon { padding-block: var(--section); background: var(--bg); }
.salon-top { display: grid; grid-template-columns: minmax(0, 30fr) minmax(0, 70fr); column-gap: var(--gutter); row-gap: 2.5rem; }
.facts { display: flex; flex-direction: column; gap: 1.25rem; padding-top: 0.6rem; }
.facts dt { font-size: var(--step-small); color: var(--muted); }
.facts dd { font-weight: 500; }
.salon-text { display: flex; flex-direction: column; gap: clamp(1.5rem, 3vw, 2.5rem); }
.salon-para { font-size: var(--step-lead); line-height: 1.38; max-width: 44ch; }
.salon-photos { margin-top: clamp(4rem, 8vw, 7.5rem); display: flex; flex-wrap: wrap; gap: var(--gutter); }
.sp { display: flex; flex-direction: column; min-width: 0; }
.sp img { width: 100%; aspect-ratio: var(--ar); object-fit: cover; }
.sp figcaption { margin-top: 0.6rem; color: var(--muted); }
/* редовете са еднакво високи: всяка снимка заема ширина според пропорцията си */
.sp-a { --ar: 3 / 4; flex: 75 1 0; }
.sp-b { --ar: 4 / 3; flex: 133 1 0; }
.sp-c { --ar: 3 / 4; flex: 75 1 0; }
.sp-d { --ar: 3 / 4; flex: 75 1 0; }
.sp-e { --ar: 4 / 3; flex: 133 1 0; }
.salon-photos::after { content: ''; flex-basis: 100%; order: 1; }
.sp-c, .sp-d, .sp-e { order: 2; }
.shutter { overflow: clip; }
@media (max-width: 47.99em) {
  .salon-top { grid-template-columns: 1fr; }
  .facts { order: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .salon-photos { gap: 0.5rem; }
  .sp-a, .sp-b, .sp-e { flex: 1 1 100%; }
  .sp-c, .sp-d { flex: 1 1 calc(50% - 0.25rem); }
  .salon-photos::after { display: none; }
}

/* ---------- 7. всяко десето подстригване и ваучер ---------- */
.gift { padding-block: var(--section); background: var(--green); color: var(--ink); }
.gift-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(var(--gutter) * 3); row-gap: 5rem; }
.gift-part { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.gift-part p { font-size: var(--step-lead); line-height: 1.38; max-width: 34ch; }
.gift-h { margin-top: 1.5rem; }
.gift-call { margin-top: 0.5rem; }
/* броячът: както го вижда системата за записване */
.tally { width: min(100%, 30rem); aspect-ratio: 9 / 5; background: var(--bg); color: var(--ink); padding: clamp(1rem, 2.4vw, 1.75rem); display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
.tally-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; max-width: none; font-family: var(--display); font-weight: 600; font-size: 1.25rem; text-transform: uppercase; }
.tally-row { display: grid; grid-template-columns: repeat(10, 1fr); gap: clamp(0.25rem, 0.6vw, 0.4rem); flex: 1; max-height: 7rem; }
.tally-row li { display: flex; align-items: flex-end; justify-content: center; padding-bottom: 0.4rem; background: var(--surface-2); font-family: var(--display); font-weight: 600; font-size: 1.25rem; line-height: 1; transform-origin: bottom; }
.tally-row .free { background: var(--accent); color: var(--accent-ink); }
.gift-part .tally-foot { font-family: var(--display); font-weight: 500; font-size: 1.25rem; text-transform: uppercase; color: var(--accent); max-width: none; }
.voucher { width: min(100%, 30rem); aspect-ratio: 9 / 5; background: var(--ink); color: var(--bg); display: grid; grid-template-columns: 1fr auto; transform: rotate(1.5deg); clip-path: polygon(0 0, calc(100% - 7.5rem - 0.8rem) 0, calc(100% - 7.5rem) 0.8rem, calc(100% - 7.5rem + 0.8rem) 0, 100% 0, 100% 100%, calc(100% - 7.5rem + 0.8rem) 100%, calc(100% - 7.5rem) calc(100% - 0.8rem), calc(100% - 7.5rem - 0.8rem) 100%, 0 100%); }
.voucher-main { padding: clamp(1rem, 2.4vw, 1.75rem); display: flex; flex-direction: column; justify-content: space-between; }
.v-name { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); line-height: 1; }
.v-what { font-weight: 500; font-size: var(--step-small); max-width: 14ch; }
.v-price { width: 7.5rem; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-weight: 700; font-size: 2.25rem; }
@media (max-width: 47.99em) {
  .gift-grid { grid-template-columns: 1fr; }
  .voucher { transform: none; }
}

/* ---------- 8. отличия ---------- */
.proof { padding-block: var(--section); background: var(--bg); }
.proof-h { margin-bottom: clamp(3rem, 5vw, 4.5rem); }
.proof-h span { display: block; }
.proof-h .proof-h2 { padding-left: calc((100% + var(--gutter)) / 12 * 2); }
.proof-table { width: 100%; border-collapse: collapse; font-size: var(--step-body); table-layout: fixed; }
.proof-table th, .proof-table td { padding: 0.95rem 1rem; text-align: left; font-weight: 400; vertical-align: top; }
.proof-table thead th { font-size: var(--step-small); color: var(--muted); font-weight: 500; }
.proof-table th:nth-child(1) { width: 16%; }
.proof-table th:nth-child(2) { width: 38%; }
.proof-table th:nth-child(3) { width: 28%; }
.proof-table tbody tr:not(.gap):nth-child(odd) { background: var(--surface); }
.proof-table tr.gap td { padding: 0.9rem 0; background: transparent; }
.proof-table td.yr { font-family: var(--display); font-weight: 600; font-size: var(--step-lead); line-height: 1.1; }
.proof-table .r { text-align: right; font-weight: 500; }
@media (max-width: 47.99em) {
  .proof-h .proof-h2 { padding-left: 12vw; }
  .proof-table thead { display: none; }
  .proof-table, .proof-table tbody, .proof-table tr, .proof-table td { display: block; width: auto; }
  .proof-table tr { padding: 0.9rem 1rem; }
  .proof-table td { padding: 0.1rem 0; }
  .proof-table td:empty { display: none; }
  .proof-table .r { text-align: left; color: var(--muted); }
}

/* отзивите от Google: лента, която се движи наляво; спира под мишката или пръста */
.reviews { margin-top: clamp(4rem, 8vw, 6.5rem); }
.reviews-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.75rem 2rem; margin-bottom: 1.75rem; }
.reviews-score { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.2rem 0.75rem; max-width: none; font-family: var(--display); font-weight: 700; font-size: var(--step-head); line-height: 0.9; text-transform: uppercase; }
.reviews-of { font-weight: 500; font-size: var(--step-lead); line-height: 1.1; }
.reviews-track { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; padding-left: var(--margin); }
.reviews-track::-webkit-scrollbar { display: none; }
.reviews-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .reviews-track { cursor: grab; }
  .reviews-track.is-dragging { cursor: grabbing; }
}
.reviews-list { display: flex; width: max-content; }
.review { flex: none; width: clamp(16.5rem, 26vw, 23rem); margin-right: var(--gutter); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; background: var(--surface); }
.review-stars { display: flex; gap: 0.2rem; }
.review-stars svg { width: 1.05rem; height: 1.05rem; fill: var(--ink); }
.review-text { line-height: 1.5; }
.review-who { margin-top: auto; font-weight: 500; }
.review-when { display: block; font-weight: 400; font-size: var(--step-small); color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .reviews-track { scroll-snap-type: x mandatory; scroll-padding-left: var(--margin); }
  .review { scroll-snap-align: start; }
}

/* ---------- 9. лентата „Запази“: цялата е връзка ---------- */
.band { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 60svh; padding: clamp(1.25rem, 2.5vw, 2rem) var(--margin) 1.5rem; background: var(--accent); color: var(--accent-ink); text-decoration: none; overflow: clip; }
.band-say { position: relative; z-index: 1; display: block; max-width: 30ch; padding-right: 4rem; font-size: var(--step-lead); line-height: 1.3; font-weight: 500; }
.band-arrow { position: absolute; top: clamp(1.25rem, 2.5vw, 2rem); right: var(--margin); width: 3rem; height: 3rem; transition: transform var(--t-ui) var(--ease-out); }
.band-word { display: block; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: calc((100vw - 2 * var(--margin)) / 3.35); line-height: 0.74; white-space: nowrap; padding-top: 0.08em; margin-bottom: 0.08em; }
@media (hover: hover) and (pointer: fine) {
  .band:hover { background: var(--accent-ink); color: var(--accent); }
  .band:hover .band-arrow { transform: translate(4px, -4px); }
}
.band:focus-visible { outline-offset: -6px; outline-color: var(--accent-ink); }
@media (max-width: 47.99em) { .band { min-height: 46svh; } .band-arrow { width: 2rem; height: 2rem; } .band-say { font-size: var(--step-body); } }

/* ---------- 10. контакти: адресът в редове ---------- */
.contact { padding-top: var(--section); background: var(--surface); }
.contact-h { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: flex-end; min-height: clamp(5.25rem, 10vw, 9.5rem); padding: 0.6rem var(--margin) clamp(0.9rem, 1.6vw, 1.4rem); font-family: var(--display); font-weight: 500; text-transform: uppercase; font-size: var(--step-head); line-height: 1; }
.row:nth-child(odd) { background: var(--surface-2); }
.row a { text-decoration: none; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .row a:hover { color: var(--accent); } }
.row-phone { background: var(--ink) !important; color: var(--bg); } /* taste-skill-ignore: телефонът е отделен ред в обратни цветове */
@media (hover: hover) and (pointer: fine) { .row-phone a:hover { color: #6a5427; } }
.contact-more { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; padding-block: 1.5rem 2rem; color: var(--ink); }
/* картата и упътването */
.map { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: calc(var(--gutter) * 2); align-items: end; padding-top: clamp(1.5rem, 4vw, 3.5rem); padding-bottom: var(--section); }
.map-frame { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
.map-how { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.map-h { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem); line-height: 0.95; text-transform: uppercase; }
.map-how p { font-size: var(--step-lead); line-height: 1.38; max-width: 30ch; }
@media (max-width: 47.99em) {
  .map { grid-template-columns: 1fr; }
  .map-frame { aspect-ratio: 1 / 1; }
  .map-go { width: 100%; white-space: normal; text-align: center; padding-block: 0.75rem; }
  .social { width: 100%; }
  .social-btn { flex: 1 1 0; padding-inline: 1rem; }
  .social .social-viber { flex-basis: 100%; }
}
@media (max-width: 47.99em) { .row { font-size: clamp(1.75rem, 8.4vw, 2.5rem); min-height: 4.75rem; } }

/* ---------- работа при нас ---------- */
.jobs { padding-block: var(--section); background: var(--bg); }
.jobs-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 3.5rem; align-items: start; }
.jobs-main { grid-column: 1 / span 6; display: flex; flex-direction: column; align-items: flex-start; gap: 1.75rem; }
.jobs-lead { font-size: var(--step-lead); line-height: 1.38; max-width: 34ch; }
.jobs-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.jobs-mail { color: var(--muted); max-width: 44ch; }
.jobs-need { grid-column: 8 / -1; padding-top: 0.6rem; }
.jobs-h3 { font-size: var(--step-lead); font-weight: 600; line-height: 1.1; margin-bottom: 1rem; }
.jobs-list { display: flex; flex-direction: column; gap: 0.4rem; }
.jobs-list li { display: grid; grid-template-columns: 10rem 1fr; gap: 0.25rem 1rem; align-items: baseline; padding: 1.1rem 1.25rem; background: var(--surface); font-size: var(--step-lead); line-height: 1.35; }
.jobs-k { font-family: var(--display); font-weight: 600; text-transform: uppercase; }
@media (max-width: 63.99em) { .jobs-main, .jobs-need { grid-column: 1 / -1; } }
@media (max-width: 47.99em) {
  .jobs-actions { width: 100%; }
  .jobs-actions .button { flex: 1 1 100%; }
  .jobs-list li { grid-template-columns: 1fr; font-size: var(--step-body); padding: 1rem; }
}

/* ---------- 11. долу: поканата и отрязаното име ---------- */
.footer { position: relative; display: flex; flex-direction: column; background: var(--ink); color: var(--bg); overflow: clip; padding-top: clamp(3.5rem, 8vw, 6rem); }
.foot-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.5rem; align-items: start; }
.foot-invite { grid-column: 1 / span 7; display: flex; flex-direction: column; align-items: flex-start; gap: 1.75rem; }
.foot-line { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: var(--step-head); line-height: 0.92; max-width: none; }
.foot-links { grid-column: 10 / -1; display: flex; flex-direction: column; gap: 0.5rem; }
.foot-links a { text-decoration-color: transparent; }
.foot-legal { display: flex; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: 0.75rem; font-size: var(--step-small); }
/* на широк екран краят заема целия екран; на тесен е колкото съдържанието */
@media (min-width: 64em) and (min-aspect-ratio: 4/3) { .footer { min-height: 100svh; } }
/* името стои цяло от поле до поле; размерът се мери по ширината на самия footer (без лентата за превъртане) */
.footer { container-type: inline-size; }
.foot-name { font-family: var(--display); font-weight: 700; font-size: calc((100vw - 2 * var(--margin)) / 2.92); font-size: calc((100cqi - 2 * var(--margin)) / 2.92); line-height: 0.9; white-space: nowrap; padding-inline: var(--margin); padding-bottom: clamp(0.5rem, 2vw, 1.25rem); max-width: none; pointer-events: none; user-select: none; }
/* буквите на името са по-високи от реда си: връзките отгоре трябва да остават натискаеми */
.foot-top, .foot-legal { position: relative; z-index: 1; }
@media (max-width: 47.99em) {
  .foot-invite, .foot-links { grid-column: 1 / -1; }
  .foot-links { flex-direction: row; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
  .foot-invite .button { width: 100%; }
}

/* ---------- движение (съдържанието остава видимо без JavaScript) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-word { transform: translateY(102%); animation: line-up 1100ms var(--ease-expo) 150ms forwards; }
  .js .hero-img.is-on { transform: scale(1.05); }
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise 800ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 450ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  /* снимката изплува в рамката си; без изрязване, иначе браузърът не я зарежда навреме */
  .js .shutter[data-reveal] { opacity: 1; transform: none; }
  .js .shutter[data-reveal] img { opacity: 0; transform: scale(1.08); transition: opacity 700ms ease, transform 1200ms var(--ease-soft), filter 500ms ease; transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms; }
  .js .shutter[data-reveal].is-in img { opacity: 1; transform: none; }
  .js .tally.is-in .tally-row li { animation: tally 520ms var(--ease-out) both; animation-delay: calc(var(--n, 0) * 60ms + 250ms); }
  .js .band-word { transform: translateY(22%); transition: transform 1000ms var(--ease-expo); }
  .js .band.is-in .band-word { transform: none; }
  .js .frame { opacity: 0; transform: translateY(24px); transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .js .frame.is-in { opacity: 1; transform: none; transition-delay: var(--d, 0ms), var(--d, 0ms); }
  @media (hover: hover) and (pointer: fine) { .js .frame.is-in:hover { transform: scale(1.1); transition-delay: 0ms; } }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes tally { from { transform: scaleY(0.08); } to { transform: none; } }
