/* Барбершоп «Демо» — стилі. Mobile-first, без фреймворків, без inline-стилів (CSP style-src 'self'). */

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/oswald-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+2116;
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/oswald-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

/* Запасний шрифт із підігнаною шириною: поки Oswald вантажиться, рядки переносяться так само, тож сторінка не стрибає. */
@font-face {
  font-family: "Oswald Fallback";
  font-weight: 400 700;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica-Bold"), local("Roboto Bold"), local("Roboto-Bold"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Arimo Bold");
  size-adjust: 82%;
}

:root {
  --bg: #0f0e0c;
  --bg-card: #181612;
  --line: #2d2922;
  --text: #f1ebe0;
  --muted: #b7ae9f;
  --brass: #d2a85a;
  --brass-hi: #e6c27a;
  --red: #c0392f;
  --paper: #efe8da;
  --ink: #1a1713;
  --ink-muted: #51493d;
  --ink-brass: #74500f;
  --radius: 6px;
  --pad: 20px;
  --font-display: "Oswald", "Oswald Fallback", "Arial Narrow", Impact, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 60px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
img, picture { display: block; max-width: 100%; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--brass-hi);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--brass);
  color: var(--ink);
  font-weight: 700;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--pad); }

/* ——— кнопки ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: 600 1.0625rem/1.1 var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--brass); color: #1a1407; }
.btn-primary:hover { background: var(--brass-hi); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(241, 235, 224, 0.55); color: var(--text); background: rgba(15, 14, 12, 0.25); }
.btn-ghost:hover { border-color: var(--text); background: rgba(241, 235, 224, 0.1); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; }
.btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }

/* ——— шапка ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(15, 14, 12, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 1.125rem/1 var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.brand svg { width: 32px; height: 32px; flex: none; }
.brand small { display: none; }
.nav { display: none; }
.header-cta { min-height: 40px; padding: 8px 16px; font-size: 0.9375rem; }
.header-cta .long { display: none; }

/* ——— hero ——— */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: calc(100svh - var(--header-h));
  min-height: calc(100vh - var(--header-h));
  isolation: isolate;
  overflow: hidden;
}
@supports (height: 100svh) {
  .hero { min-height: calc(100svh - var(--header-h)); }
}
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -2; }
.hero-media img { object-fit: cover; object-position: 50% 55%; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(15, 14, 12, 0.97) 0%, rgba(15, 14, 12, 0.78) 38%, rgba(15, 14, 12, 0.3) 100%);
}
.hero-inner { padding-block: 48px 40px; }
.eyebrow {
  margin-bottom: 14px;
  font: 500 0.8125rem/1.3 var(--font-display);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}
.hero h1 {
  max-width: 7em;
  font: 700 clamp(2.75rem, 13vw, 5.75rem)/0.98 var(--font-display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.hero h1 em { font-style: normal; color: var(--brass); }
.hero-lead { max-width: 34rem; margin-top: 20px; font-size: 1.0625rem; color: #ded6c7; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: 0.9375rem; color: var(--muted); }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li:first-child { flex: 0 0 100%; } /* статус в окремому рядку: зміна його тексту не перебудовує решту */
.hero-facts strong { color: var(--text); font-weight: 600; }

.status-pill { display: inline-flex; align-items: flex-start; gap: 10px; line-height: 1.4; }
.status-pill .dot { width: 9px; height: 9px; margin-top: 0.45em; border-radius: 50%; background: var(--muted); flex: none; }
.status-pill[data-state="open"] .dot { background: #5fcf80; box-shadow: 0 0 0 4px rgba(95, 207, 128, 0.18); }
.status-pill[data-state="closed"] .dot { background: #e0746b; }

/* ——— секції ——— */
.section { padding-block: 72px; }
.section-light { background: var(--paper); color: var(--ink); }
.section-head { margin-bottom: 36px; max-width: 40rem; }
.section-head .eyebrow { color: var(--brass); }
.section-light .eyebrow { color: var(--ink-brass); }
.section h2 {
  font: 700 clamp(2rem, 8vw, 3.25rem)/1.05 var(--font-display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.section-head p { margin-top: 14px; color: var(--muted); }
.section-light .section-head p { color: var(--ink-muted); }
.section-cta { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; align-items: stretch; }

/* ——— ціни ——— */
.services { border-top: 1px solid var(--line); }
.service {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 4px 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.service h3 { font: 600 1.375rem/1.2 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; }
.service .meta { grid-column: 1; color: var(--muted); font-size: 0.9375rem; }
.service .price {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font: 700 2rem/1 var(--font-display);
  color: var(--brass);
  white-space: nowrap;
}
.service .price span { font-size: 1.125rem; font-weight: 500; margin-left: 4px; font-family: var(--font-body); }
.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid var(--brass);
  border-radius: 99px;
  color: var(--brass);
  font: 500 0.75rem/1.4 var(--font-body);
  letter-spacing: 0.02em;
  text-transform: none;
  vertical-align: middle;
}
.note { margin-top: 18px; font-size: 0.9375rem; color: var(--muted); }

/* ——— як це працює ——— */
.steps { display: grid; gap: 14px; counter-reset: step; }
.step {
  position: relative;
  padding: 26px 22px 24px 22px;
  background: #e6dcc9;
  border-radius: var(--radius);
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  font: 700 3rem/1 var(--font-display);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink-brass);
}
.step h3 { font: 600 1.375rem/1.2 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; }
.step p { margin-top: 8px; color: var(--ink-muted); }

/* ——— галерея ——— */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery figure { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-card); aspect-ratio: 4 / 5; }
.gallery .wide { grid-column: span 2; aspect-ratio: 3 / 2; }
.gallery picture { width: 100%; height: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery-note { margin-top: 16px; font-size: 0.875rem; color: var(--muted); }

/* ——— контакти + форма ——— */
.contact-grid { display: grid; gap: 28px; }
.card { padding: 26px 22px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); }
.card h3 { margin-bottom: 18px; font: 600 1.375rem/1.2 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; }
.hours dt { color: var(--muted); font-size: 0.875rem; margin-top: 14px; }
.hours dt:first-child { margin-top: 0; }
.hours dd { font-size: 1.125rem; }
.hours dd.big { font: 600 1.5rem/1.2 var(--font-display); letter-spacing: 0.03em; }
.hours address { font-style: normal; }
.hours .fake { color: var(--muted); font-size: 0.9375rem; }
.hours .status-pill { margin-top: 4px; }
.card-links { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }

.form { display: grid; gap: 16px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9375rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid #4a443a;
  border-radius: var(--radius);
  background: #100f0c;
  color: var(--text);
  font: inherit;
  font-size: 1rem; /* ≥16px: iOS не зумить сторінку при фокусі */
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8a8274; }
.field input:hover, .field textarea:hover { border-color: #6b6354; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--brass-hi); outline-offset: 1px; border-color: var(--brass); }
.field [aria-invalid="true"] { border-color: #f0857b; }
.field-error { margin-top: 6px; color: #ff9d94; font-size: 0.9375rem; }
.field-error[hidden] { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-size: 0.9375rem; color: var(--muted); }
.form-status[data-kind="error"] { color: #ff9d94; }
.form-note { font-size: 0.8125rem; color: var(--muted); }
.form-success { text-align: left; }
.form-success[hidden] { display: none; }
.form-success h3 { margin-bottom: 12px; }
.form-success p + p { margin-top: 10px; }
.form-success p { color: #ded6c7; }
.form-success:focus { outline: none; }

/* ——— FAQ ——— */
.faq { border-top: 1px solid #cfc4ae; }
.faq details { border-bottom: 1px solid #cfc4ae; }
.faq summary {
  position: relative;
  display: block;
  padding: 20px 44px 20px 0;
  font: 600 1.125rem/1.35 var(--font-display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:focus-visible { outline-color: var(--ink); }
.faq .answer { padding: 0 0 22px; max-width: 42rem; color: var(--ink-muted); }
.faq .answer a { color: var(--ink); font-weight: 600; }

/* ——— підвал ——— */
.site-footer { padding-block: 44px 120px; background: #090806; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--muted); }
.demo-note { padding: 20px 22px; border: 1px dashed var(--brass); border-radius: var(--radius); color: var(--text); }
.demo-note strong { color: var(--brass); font-family: var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; }
.footer-links a { color: var(--text); }
.credits { margin-top: 18px; font-size: 0.8125rem; line-height: 1.6; }
.credits a { color: var(--muted); }

/* ——— липка кнопка на мобільному ——— */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: rgba(15, 14, 12, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0s linear 0.25s;
}
.sticky-cta.is-visible { transform: none; visibility: visible; transition: transform 0.25s ease; }
.sticky-cta .btn { width: 100%; }

/* ——— прості сторінки (подяка, 404, помилка) ——— */
.page-plain { min-height: 100vh; display: grid; place-items: center; padding: 24px var(--pad); }
.plain { width: 100%; max-width: 34rem; padding: 36px 26px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); }
.plain h1 { margin-bottom: 14px; font: 700 clamp(2rem, 9vw, 3rem)/1.05 var(--font-display); text-transform: uppercase; }
.plain p { color: #ded6c7; }
.plain .eyebrow { margin-bottom: 12px; }
.plain-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }

/* ——— ≥ 700px ——— */
@media (min-width: 700px) {
  :root { --pad: 32px; }
  .hero-actions { flex-direction: row; }
  .hero-actions .btn { min-width: 250px; }
  .section-cta { flex-direction: row; align-items: center; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .plain-actions { flex-direction: row; }
  .card-links { flex-direction: row; flex-wrap: wrap; }
}

/* ——— ≥ 900px ——— */
@media (min-width: 900px) {
  :root { --header-h: 72px; }
  .section { padding-block: 104px; }
  .nav { display: flex; gap: 28px; }
  .nav a { font: 500 0.9375rem/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; color: var(--muted); padding: 8px 0; }
  .nav a:hover { color: var(--text); }
  .header-cta { min-height: 46px; padding: 10px 22px; font-size: 1rem; }
  .header-cta .long { display: inline; }
  .hero-inner { padding-block: 96px 72px; }
  .service { padding: 26px 0; }
  .service h3 { font-size: 1.75rem; }
  .service .price { font-size: 2.5rem; }
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 14px; grid-auto-rows: 340px; }
  .gallery figure, .gallery .wide { aspect-ratio: auto; }
  .gallery .wide { grid-column: span 2; }
  .contact-grid { grid-template-columns: 5fr 6fr; gap: 32px; align-items: start; }
  .card { padding: 36px 34px; }
  .sticky-cta { display: none; }
  .site-footer { padding-bottom: 56px; }
}

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