/* INK / FORM — mobile-first. Брейкпоінти: 768px, 1440px. */

:root {
  --bg: #0e0e0e;
  --text: #ece8e1;
  --muted: #aaa49b; /* світліше за ТЗ (#8a857d): контраст ≥7:1 на фоні */
  --line: #262422;
  --accent: #c2362b;
  --accent-hover: #d6463a;
  --paper: #ece8e1;

  --font-head: "Unbounded", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1280px;
  --gutter: 20px;
  --header-h: 64px;
  --bar-h: calc(65px + env(safe-area-inset-bottom)); /* нижня панель на телефоні */
  --section-y: 72px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 72px; --section-y: 104px; }
}
@media (min-width: 1440px) {
  :root { --gutter: 48px; --section-y: 136px; }
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:where(ul[class], ol[class]) { list-style: none; padding: 0; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--text); }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
}
.skip-link:focus { top: 10px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn--accent { background: var(--accent); color: var(--text); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--muted); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 14, 14, .92);
  border-bottom: 1px solid var(--line);
}
/* blur на псевдоелементі: backdrop-filter на самій шапці зробив би її
   контейнером для position:fixed меню */
@supports (backdrop-filter: blur(8px)) {
  .header { background: none; }
  .header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(14, 14, 14, .78);
    backdrop-filter: blur(8px);
  }
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
}

.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
}
.logo__slash { color: var(--accent); margin-inline: .2em; }

.demo-badge {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.4;
  white-space: nowrap;
}

/* Бургер */
.burger {
  position: relative;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.burger__line {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: transform .3s var(--ease);
}
.burger[aria-expanded="true"] .burger__line:first-child { transform: translateY(4.25px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:last-child  { transform: translateY(-4.25px) rotate(-45deg); }

/* Меню: на мобільному — панель на весь екран */
.nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 32px var(--gutter);
  background: var(--bg);
  border-top: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
}
.nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .25s, transform .25s var(--ease), visibility 0s;
}
.nav__list { display: flex; flex-direction: column; }
.nav__link {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: 1.5rem;
  text-decoration: none;
}
.nav__link:hover { color: var(--accent); }
.nav__cta { align-self: flex-start; }

@media (min-width: 768px) {
  .burger { display: none; }

  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    margin-left: auto;
    padding: 0;
    background: none;
    border: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav__list { flex-direction: row; gap: 16px; }
  .nav__link {
    padding: 6px 0;
    border: 0;
    font-family: var(--font-body);
    font-size: .9rem;
    color: var(--muted);
  }
  .nav__link:hover { color: var(--text); }
  .nav__cta { min-height: 40px; padding: 8px 18px; }
}
@media (min-width: 1024px) {
  .nav { gap: 40px; }
  .nav__list { gap: 32px; }
}

/* ---------- Секції ---------- */
.section {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}
.eyebrow {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.section__title {
  max-width: 18ch;
  font-size: clamp(1.75rem, 5vw + .5rem, 3.5rem);
}

.section__lead {
  max-width: 56ch;
  margin-top: 16px;
  color: var(--muted);
}

.photo-note {
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .04em;
}
.photo-note--block { margin-top: 16px; }

/* Аркуш паперу (флеш-лист і майстри) */
.sheet {
  --ink: #161412;
  --ink-muted: #5d5852;
  position: relative;
  padding: 14px;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(255,255,255,.35), transparent 60%),
    var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .5);
}
.sheet__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(22, 20, 18, .3);
  color: var(--ink-muted);
  font-size: .75rem;
}
.sheet__num {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
}

/* ---------- Перший екран ---------- */
.hero {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  border-top: 0;
  overflow: clip;
  padding-block: 40px 64px;
}
.hero__inner {
  display: grid;
  gap: 40px;
  align-items: center;
}
.hero__text { position: relative; }
.hero__title {
  position: relative;
  max-width: 14ch;
  font-size: clamp(1.9rem, 7vw + .5rem, 5.5rem);
  font-weight: 700;
}
.hero__lead {
  position: relative;
  max-width: 42ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero__note {
  position: relative;
  margin-top: 14px;
  color: var(--muted);
  font-size: .8125rem;
}

.hero__media {
  position: relative;
  isolation: isolate;
}
.hero__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 60% 50%;
}
.hero__media .photo-note { margin-top: 10px; }

@media (min-width: 768px) {
  .hero { padding-block: 56px 80px; }
  .hero__img { aspect-ratio: 16 / 10; }
}
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 5fr 6fr; gap: 56px; }
  .hero__img { aspect-ratio: 4 / 5; max-height: calc(100svh - var(--header-h) - 140px); }
}

/* ---------- Роботи ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}
.filter {
  min-height: 40px;
  padding: 8px 16px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .9rem;
  cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.filter:hover { color: var(--text); border-color: var(--muted); }
.filter[aria-pressed="true"] {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 24px;
}
.work[hidden] { display: none; }
.work.is-in { animation: work-in .45s var(--ease) both; }
@keyframes work-in {
  from { opacity: 0; transform: translateY(12px); }
}
.work__btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--line);
  border: 0;
  cursor: zoom-in;
}
.work__btn img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .6s var(--ease), opacity .3s;
}
.work__btn:hover img { transform: scale(1.04); }
.work__cat {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 8px;
  background: rgba(14, 14, 14, .8);
  font-size: .72rem;
}
@media (min-width: 768px) {
  .works-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (min-width: 1440px) {
  .works-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

/* Лайтбокс */
.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(8, 8, 8, .96);
  color: var(--text);
  overflow: hidden;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; place-items: center; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: lb-in .25s ease both; }
}
@keyframes lb-in { from { opacity: 0; } }
body.lb-open { overflow: hidden; }

.lightbox__figure {
  display: grid;
  place-items: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 56px 12px 88px;
  touch-action: pan-y;
  user-select: none;
}
.lightbox__img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100svh - 170px);
  object-fit: contain;
  -webkit-user-drag: none;
}
.lightbox__cap { color: var(--muted); font-size: .85rem; text-align: center; }

.lightbox__close,
.lightbox__nav {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: rgba(14, 14, 14, .7);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color .2s;
}
.lightbox__close:hover,
.lightbox__nav:hover { border-color: var(--text); }
.lightbox__close svg,
.lightbox__nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.lightbox__close { position: absolute; top: 12px; right: 12px; }
.lightbox__bar {
  position: absolute;
  left: 50%;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  transform: translateX(-50%);
}
.lightbox__count { min-width: 5ch; text-align: center; font-variant-numeric: tabular-nums; font-size: .9rem; }

/* Флеш-лист */
.flash { margin-top: 72px; }
.flash__title { font-size: clamp(1.25rem, 3vw + .5rem, 2rem); }
.flash-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 14px;
  margin-top: 28px;
}
.flash-card {
  display: flex;
  flex-direction: column;
  transform: rotate(-1.2deg);
  transition: transform .35s var(--ease);
}
.flash-card:nth-child(even) { transform: rotate(.9deg); }
.flash-card:nth-child(3n) { transform: rotate(-.4deg); }
.flash-card:hover { transform: translateY(-6px) rotate(0); }
.flash-card__art {
  width: 100%;
  margin-block: 10px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flash-card__art .ink { fill: var(--accent); stroke: none; }

/* Примірка: той самий SVG-ескіз на фото чистої шкіри (будує script.js) */
.tryon { position: relative; margin-block: 10px; }
.tryon .flash-card__art { display: block; margin: 0; }
.tryon__btn {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  border: 0;
  background: none;
  cursor: pointer;
}
.tryon__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tryon__skin {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: var(--radius);
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.tryon__photo { width: 100%; height: 100%; object-fit: cover; }
.tryon__skin .flash-card__art {
  position: absolute;
  inset: 12%;
  width: 76%;
  height: 76%;
  mix-blend-mode: multiply;
  stroke: #1d1a1c;
  stroke-width: 2;
  opacity: .85;
}
.tryon__note {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 2px 7px;
  background: rgba(14, 14, 14, .78);
  color: var(--text);
  font-size: .68rem;
  line-height: 1.3;
}
.tryon.is-on .tryon__skin { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .flash-card:hover .tryon__skin { opacity: 1; }
}
.flash-card__name { font-size: 1rem; }
.flash-card__price { color: var(--ink-muted); font-size: .85rem; }
.flash-card__link {
  margin-top: auto;
  padding-top: 10px;
  color: #a82c22;
  font-size: .85rem;
  font-weight: 600;
  text-underline-offset: 3px;
}
.flash-card__link:hover { color: var(--ink); }
@media (min-width: 768px) {
  .flash-grid { grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
  .sheet { padding: 18px; }
}
@media (min-width: 1440px) {
  .flash-grid { grid-template-columns: repeat(6, 1fr); }
}

/* ---------- Лінія голки ---------- */
/* SVG лежить під секціями (вони прозорі), іде по полях контейнера */
main { position: relative; }
main > .section { position: relative; z-index: 1; }
.needle {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  max-width: none;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  fill: none;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity .6s;
}
.needle.is-ready { opacity: 1; }
.needle__track { stroke: var(--line); stroke-width: 1; }
/* Бліда: лише натяк на червоний, не відволікає від вмісту */
.needle__ink path { stroke: var(--accent); stroke-opacity: .28; stroke-width: 1.25; }
.needle__dots circle {
  fill: var(--accent);
  fill-opacity: .35;
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .4s var(--ease);
}
.needle__dots circle.is-on { transform: scale(1); }
.needle__tip { fill: var(--muted); fill-opacity: .6; }
.needle.is-static .needle__tip { display: none; }
/* На телефоні лінії немає (JS її теж не будує) */
@media (max-width: 767.98px) {
  .needle { display: none; }
}

/* ---------- Свіже / загоєне ---------- */
.healing {
  display: grid;
  gap: 32px;
  margin-top: 16px;
}
.healing .section__lead { margin-top: 0; }
.healing__steps {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.healing__steps li {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.healing__when {
  color: var(--accent-hover);
  font-family: var(--font-head);
  font-size: .8rem;
  line-height: 1.9;
}

.compare__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--line);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
/* Кадр 4:3 показує верх фото збільшено (тату на плечі), однаково на всіх ширинах */
.compare__img {
  position: absolute;
  top: 0;
  left: -28%;
  width: 140%;
  max-width: none;
  height: auto;
  pointer-events: none;
  -webkit-user-drag: none;
}
.compare__fresh {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare__fresh .compare__img { filter: saturate(1.45) contrast(1.08) brightness(1.03); }
.compare__fresh::after { /* почервоніння навколо свіжого тату */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 36% 32% at 52% 17%, rgba(214, 40, 30, .55), rgba(214, 40, 30, .2) 55%, transparent 78%);
  mix-blend-mode: multiply;
}
.compare__tag {
  position: absolute;
  bottom: 12px;
  padding: 3px 10px;
  background: rgba(14, 14, 14, .8);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.compare__tag--fresh { left: 12px; }
.compare__tag--healed { right: 12px; }

.compare__range { /* для клавіатури й читачів екрана; мишу/палець обробляє script.js */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.compare__handle {
  position: absolute;
  inset: 0;
  transform: translateX(var(--pos));
  pointer-events: none;
}
.compare__handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -.5px;
  width: 1px;
  background: var(--text);
}
.compare__knob {
  position: absolute;
  top: 50%;
  left: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  background: rgba(14, 14, 14, .75);
  border: 1px solid var(--text);
  border-radius: 50%;
}
.compare__knob svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.5;
}
.compare__range:focus-visible + .compare__handle .compare__knob {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.compare__note {
  margin-top: 12px;
  color: var(--muted);
  font-size: .8rem;
}
.compare__note strong { color: var(--text); font-weight: 500; }

@media (min-width: 1024px) {
  .healing { grid-template-columns: 4fr 7fr; gap: 56px; align-items: center; }
}

/* ---------- Майстри: конвеєр ---------- */
/* База (мобільний і reduced-motion): гортається пальцем зі scroll-snap */
.marquee {
  margin-top: 40px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.marquee__track {
  display: flex;
  width: max-content;
  padding: 12px var(--gutter) 28px;
}
.marquee__item {
  flex: 0 0 auto;
  width: min(78vw, 300px);
  padding-right: 16px;
  scroll-snap-align: start;
}
.marquee__item[data-clone] { display: none; }

.master { height: 100%; display: flex; flex-direction: column; }
.master__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin-top: 12px;
  filter: grayscale(1) contrast(1.05);
}
.master__name { margin-top: 14px; font-size: 1.1rem; }
.master__style { margin-top: 4px; font-weight: 500; }
.master__exp { color: var(--ink-muted); font-size: .85rem; }
.master__works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-block: 14px 16px;
}
.master__works img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.master__cta { margin-top: auto; width: 100%; }

/* Планшет і десктоп з анімацією: стрічка їде сама */
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .marquee {
    overflow: hidden;
    scroll-snap-type: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }
  .marquee__track {
    padding-inline: 0;
    animation: marquee var(--marquee-dur, 48s) linear infinite;
  }
  .marquee__item { width: 320px; padding-right: 28px; }
  .marquee__item[data-clone] { display: block; }
  .marquee:hover .marquee__track,
  .marquee:focus-within .marquee__track,
  .marquee.is-paused .marquee__track { animation-play-state: paused; }
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Ціни + калькулятор ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.prices {
  display: grid;
  gap: 48px;
  margin-top: 40px;
  align-items: start;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
.price-table th,
.price-table td {
  padding: 14px 8px 14px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: baseline;
}
.price-table thead th {
  padding-top: 0;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.price-table tbody th { font-weight: 500; }
.price-table td:nth-child(2) { white-space: nowrap; }
.price-table td:last-child { color: var(--muted); padding-right: 0; }
.prices__note { margin-top: 16px; color: var(--muted); font-size: .85rem; }

.calc { padding: 18px; }
.calc__title { margin-block: 14px 4px; font-size: 1.15rem; }
.calc__group {
  margin-top: 16px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.calc__group legend {
  margin-bottom: 8px;
  padding: 0;
  color: var(--ink-muted);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; cursor: pointer; }
.chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid rgba(22, 20, 18, .35);
  border-radius: 999px;
  font-size: .9rem;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.calc__result {
  display: grid;
  gap: 2px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed rgba(22, 20, 18, .3);
}
.calc__price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.35rem, 4vw + .5rem, 1.9rem);
  line-height: 1.2;
}
.calc__time { color: var(--ink-muted); font-size: .9rem; }
.calc__note { color: #a82c22; font-size: .85rem; font-weight: 600; }
.calc__note[hidden] { display: none; }
.calc__cta { width: 100%; margin-top: 18px; }

@media (min-width: 768px) {
  .calc { padding: 28px; }
}
@media (min-width: 1024px) {
  .prices { grid-template-columns: 1fr 1fr; gap: 56px; }
}

/* ---------- Форма заявки ---------- */
.booking { margin-top: 40px; }
.booking-form {
  display: grid;
  gap: 18px;
  max-width: 820px;
  padding: 24px 20px;
  border: 1px solid var(--line);
}
.booking-form__title { font-size: 1.25rem; }
.booking-form__lead { margin-top: -10px; color: var(--muted); font-size: .9rem; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: .85rem; color: var(--muted); }
.req { color: var(--accent); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: #151413;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%); background-position: right 18px center, right 13px center; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field select option { background: var(--bg); }
.field input::placeholder,
.field textarea::placeholder { color: #6b675f; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #3a3734; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: none; border-color: var(--text); }
.field [aria-invalid="true"] { border-color: var(--accent); }
.field__err { min-height: 0; color: #e0675c; font-size: .8rem; }
.field__err:empty { display: none; }

.booking-form__foot { display: grid; gap: 12px; justify-items: start; }
.booking-form__submit:disabled { opacity: .6; cursor: progress; }
.booking-form__status { font-size: .9rem; color: var(--muted); }
.booking-form__status:empty { display: none; }
.booking-form[data-state="success"] .booking-form__status { color: var(--text); }
.booking-form[data-state="error"] .booking-form__status { color: #e0675c; }

@media (min-width: 768px) {
  .booking-form { grid-template-columns: 1fr 1fr; gap: 20px 24px; padding: 36px; }
  .booking-form__title,
  .booking-form__lead,
  .field--wide { grid-column: 1 / -1; }
}

/* ---------- Чому ми ---------- */
.why-grid {
  display: grid;
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.why {
  position: relative;
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--line);
}
.why__num {
  font-family: var(--font-head);
  font-size: .8rem;
  color: var(--accent-hover);
}
.why__title { margin-block: 10px 8px; font-size: 1.15rem; }
.why p { color: var(--muted); font-size: .95rem; }
@media (min-width: 768px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
}
@media (min-width: 1440px) {
  .why-grid { grid-template-columns: repeat(4, 1fr); border-top: 0; }
  .why { padding: 28px 28px 32px 0; border-bottom: 0; border-top: 1px solid var(--line); }
}

/* ---------- Як проходить ---------- */
.steps {
  display: grid;
  margin-top: 40px;
  counter-reset: none;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 16px;
  align-content: start;
  padding-bottom: 28px;
}
.step::before { /* тонка лінія між кроками */
  content: "";
  position: absolute;
  left: 21.5px;
  top: 44px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.step:last-child { padding-bottom: 0; }
.step:last-child::before { display: none; }
.step__num {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--muted);
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: .9rem;
}
.step:first-child .step__num { background: var(--accent); border-color: var(--accent); }
.step__title { font-size: 1.1rem; line-height: 44px; }
.step p { color: var(--muted); font-size: .95rem; max-width: 52ch; }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .step { grid-template-columns: 1fr; align-content: start; padding-bottom: 0; }
  .step::before { left: 52px; right: -20px; top: 21.5px; bottom: auto; width: auto; height: 1px; }
  .step:last-child::before { display: none; }
  .step__num { grid-row: auto; }
  .step__title { margin-top: 18px; line-height: 1.2; margin-bottom: 8px; }
}

/* ---------- Акордеон (перед сеансом, FAQ) ---------- */
.accordion {
  max-width: 820px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.acc { border-bottom: 1px solid var(--line); }
.acc__sum {
  position: relative;
  display: block;
  padding: 20px 48px 20px 0;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.acc__sum::-webkit-details-marker { display: none; }
.acc__sum::before,
.acc__sum::after { /* плюс → мінус */
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: transform .3s var(--ease);
}
.acc__sum::after { transform: rotate(90deg); }
.acc[open] > .acc__sum::after { transform: rotate(0); }
.acc__sum:hover { color: var(--accent-hover); }
.acc--alert .acc__sum::before,
.acc--alert .acc__sum::after { background: var(--accent); }
.acc__body {
  padding: 0 0 22px;
  color: var(--muted);
  max-width: 64ch;
}
.acc__body p + .acc__list { margin-top: 8px; }
.acc__list { padding-left: 1.1em; list-style: disc; }
.acc__list li::marker { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .acc[open] > .acc__body { animation: acc-in .3s var(--ease); }
}
@keyframes acc-in { from { opacity: 0; transform: translateY(-6px); } }
@media (min-width: 768px) {
  .acc__sum { font-size: 1.1rem; padding-block: 24px; }
}

/* ---------- Вкладки «Важливо» ---------- */
.tabs__list {
  display: flex;
  gap: 4px;
  margin-top: 32px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.tabs__list[hidden] { display: none; }
.tabs__tab {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 16px;
  margin-bottom: -1px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font: 600 .95rem/1.2 var(--font-head);
  cursor: pointer;
}
.tabs__tab:hover { color: var(--text); }
.tabs__tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.tabs__tab:focus-visible { outline-offset: -2px; }
.tabs__panel { padding-top: 8px; scroll-margin-top: calc(var(--header-h) + 16px); }
.tabs__panel[hidden] { display: none; }
.tabs__panel:focus-visible { outline-offset: 4px; }
.tabs__heading { margin-top: 32px; font-size: clamp(1.15rem, 2vw + .6rem, 1.6rem); }
/* З JS заголовок панелі дублює вкладку — лишаємо лише для читачів екрана */
.tabs.is-ready .tabs__heading {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.tabs.is-ready .tabs__panel > .section__lead:first-of-type { margin-top: 24px; }
@media (min-width: 768px) {
  .tabs__tab { padding-inline: 24px; font-size: 1rem; }
}

/* ---------- Догляд ---------- */
.care {
  display: grid;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.care__item {
  display: grid;
  gap: 6px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}
.care__day {
  font-family: var(--font-head);
  font-size: .9rem;
  color: var(--accent-hover);
}
.care__item p { color: var(--muted); max-width: 60ch; }
@media (min-width: 768px) {
  .care__item { grid-template-columns: 10em 1fr; gap: 24px; }
}

/* ---------- Відгуки ---------- */
.reviews {
  margin-top: 40px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.reviews:focus-visible { outline-offset: -2px; }
@media (min-width: 1440px) {
  .reviews { --rv-pad: max(var(--gutter), calc((100% - var(--container)) / 2)); scroll-padding-inline: var(--rv-pad); }
}
.reviews__track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 4px var(--gutter) 24px;
}
/* центруємо в контейнері на широких екранах */
@media (min-width: 1440px) {
  .reviews__track { padding-inline: var(--rv-pad); }
}
.review {
  display: flex;
  flex-direction: column;
  width: min(82vw, 360px);
  padding: 24px;
  border: 1px solid var(--line);
  background: #121110;
  scroll-snap-align: start;
}
.review__tag {
  align-self: flex-start;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .7rem;
}
.review__text {
  margin-block: 18px 20px;
  font-size: 1rem;
  line-height: 1.55;
}
.review__text::before { content: "«"; color: var(--accent); }
.review__text::after { content: "»"; color: var(--accent); }
.review__who { margin-top: auto; color: var(--muted); font-size: .85rem; }
@media (min-width: 768px) {
  .review { width: 380px; padding: 28px; }
}

/* ---------- Контакти ---------- */
.booking { display: grid; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 20px; justify-items: start; }
.contact-info__demo {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .75rem;
}
.contact-list { display: grid; gap: 16px; width: 100%; }
.contact-list div { display: grid; gap: 2px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.contact-list dt {
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.contact-list dd { margin: 0; font-size: 1.05rem; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--accent-hover); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .9rem;
  text-decoration: none;
  transition: border-color .2s;
}
.social:hover { border-color: var(--text); }
/* Неактивні посилання-заглушки (акаунтів ще немає) */
.is-demo { cursor: not-allowed; color: var(--muted); }
.social.is-demo:hover { border-color: var(--line); }
.btn.is-demo { border-color: var(--line); }
.demo-tag {
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: lowercase;
}
.social svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.social svg .fill { fill: currentColor; stroke: none; }
@media (min-width: 1024px) {
  .booking { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; }
}

/* ---------- Підвал ---------- */
.footer {
  padding-block: 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
}
.footer__inner { display: grid; gap: 24px; }
.footer__brand p { margin-top: 6px; }
.footer .logo { color: var(--text); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer__nav a { padding-block: 6px; text-decoration: none; color: var(--text); }
.footer__nav a:hover { color: var(--accent-hover); }
.footer__note { max-width: 60ch; }
@media (min-width: 1024px) {
  .footer__inner { grid-template-columns: auto 1fr; align-items: start; column-gap: 64px; }
  .footer__nav { justify-content: flex-end; }
  .footer__note { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); max-width: none; }
}

/* ---------- Нижня панель (телефон) ---------- */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(14, 14, 14, .94);
  border-top: 1px solid var(--line);
  transition: transform .25s var(--ease), opacity .25s;
}
.mobile-bar .btn { min-height: 44px; padding-block: 8px; }
body { padding-bottom: var(--bar-h); }
body.nav-open .mobile-bar,
.mobile-bar.is-away { transform: translateY(100%); opacity: 0; pointer-events: none; }
@media (min-width: 768px) {
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Менше руху ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
