/* «Пасмо» — перукарня для всієї родини.
   Теплі кольори: вершки, абрикос, теракота, пудрова троянда, какао. Чорного й золота немає.
   Перший екран — обкладинка-триптих, яку при прокрутці розрізають ножиці (cut.js). */
:root {
  --cream: #faf0e4;       /* вершки — основне тло */
  --sand: #f2dfcd;        /* тепліше тло розділів */
  --apricot: #f0b48a;     /* абрикос — підкладки, декор */
  --rose: #e8c3b6;        /* пудрова троянда */
  --copper: #c5714a;      /* мідь — лише декор */
  --terra: #9c4428;       /* теракота: білий текст 6,6:1 */
  --terra-dark: #78311b;  /* темна теракота */
  --peach: #ffdfc8;       /* світлий текст на теракоті, 5:1 */
  --cocoa: #3a241c;       /* какао — текст і темне тло */
  --muted: #654639;       /* приглушений текст */
  --line: #dfc6b2;

  --display: 'Fira Sans Extra Condensed', 'Arial Narrow', system-ui, sans-serif; /* не Sofia Sans: у неї болгарська кирилиця */
  --body: 'Commissioner', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gap: clamp(16px, 3vw, 36px);
  --cover-h: 100vh;
  color-scheme: light;
}
@supports (height: 100lvh) { :root { --cover-h: 100lvh; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--cream); color: var(--cocoa); font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; line-height: .95; text-transform: uppercase; text-wrap: balance; }
h2 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); }
p, figure, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; }
section[id] { scroll-margin-top: 68px; }

.wrap { width: 100%; max-width: 1220px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.kicker { font: 600 .8rem/1.4 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--terra); }
.kicker--light { color: var(--peach); }
.link { font-weight: 600; text-underline-offset: 4px; }
.optional { font-weight: 400; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  border: 2px solid transparent; border-radius: 999px; font: 600 1rem/1 var(--body); text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn--terra { background: var(--terra); color: #fff; }
.btn--terra:hover { background: var(--cocoa); }
.btn--cream { background: var(--cream); color: var(--cocoa); }
.btn--cream:hover { background: var(--apricot); }
.btn--line { border-color: var(--cocoa); color: var(--cocoa); }
.btn--line:hover { background: var(--cocoa); color: var(--cream); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: .92rem; }
.btn--wide { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.demo-bar {
  position: absolute; inset: 0 0 auto; z-index: 50; padding: 6px 12px;
  background: var(--cocoa); color: var(--cream); font: 500 .72rem/1.4 var(--body); text-align: center;
}

/* ───────── 1. Обкладинка ───────── */
.cover { position: relative; z-index: 40; height: var(--cover-h); overflow: hidden; }
.cover__move { position: absolute; inset: 0; }
.cover__half { position: absolute; inset: 0; overflow: hidden; background: var(--cream); }
.cover__photo { position: absolute; top: 0; bottom: 0; width: 29%; overflow: hidden; background: var(--rose); }
.cover__photo--her { left: 0; }
.cover__photo--him { right: 0; }
.cover__photo img { width: 100%; height: 100%; object-fit: cover; }
.cover__photo--him img { object-position: 64% 50%; } /* щоб обличчя не різало краєм */
.has-cut .cover__photo { bottom: -14%; }
.cover__photo figcaption {
  position: absolute; bottom: 28px; padding: 6px 18px 4px; border-radius: 999px; background: var(--cream); color: var(--cocoa);
  font: 800 1.5rem/1.1 var(--display); text-transform: uppercase;
}
.has-cut .cover__photo figcaption { bottom: calc(var(--cover-h) * .14 + 28px); }
.cover__photo--her figcaption { left: 24px; }
.cover__photo--him figcaption { right: 24px; }

/* пунктир «відрізати тут»: починається там, де зараз ножиці */
.cover__seam {
  position: absolute; left: 50%; top: var(--tip, 24%); bottom: 0; width: 4px; margin-left: -2px; z-index: 1;
  background: repeating-linear-gradient(to bottom, var(--copper) 0 12px, transparent 12px 22px);
}
.cover__top { position: absolute; z-index: 3; inset: 48px 24px auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cover__brand { display: grid; padding: 10px 20px 9px; border-radius: 22px; background: var(--cream); line-height: 1; }
.cover__name { font: 800 1.9rem/1 var(--display); text-transform: uppercase; letter-spacing: .03em; color: var(--terra); }
.cover__tag { margin-top: 3px; font: 500 .72rem/1 var(--body); color: var(--muted); }
.cover__top .btn--cream { color: var(--terra-dark); }

.cover__text {
  position: absolute; z-index: 2; left: 29%; right: 29%; top: calc(100svh * .39);
  display: grid; justify-items: center; gap: clamp(12px, 2.2svh, 22px); padding-inline: 18px; text-align: center;
}
.cover__kicker { padding: 3px 10px; background: var(--cream); font: 600 .82rem/1.4 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--terra); }
.cover__title { font-size: min(10.4vw, 19svh, 9.5rem); line-height: .93; color: var(--cocoa); }
.cover__title span { display: block; }
.cover__title span + span { color: var(--terra); }
.cover__lead { max-width: 30ch; padding: 4px 6px; background: var(--cream); font-size: clamp(1rem, 1.4vw, 1.18rem); line-height: 1.5; color: var(--muted); }
.cover__actions { display: grid; justify-items: center; gap: 4px; }
.cover__hint { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px; background: var(--cream); color: var(--terra-dark); font: 500 .9rem/1 var(--body); text-decoration: none; }
.cover__hint::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.cover__hint:hover { text-decoration: underline; text-underline-offset: 4px; }

.cover__tool { position: absolute; inset: 0; z-index: 5; overflow: hidden; pointer-events: none; }
.scissors {
  position: absolute; left: 50%; top: 0; height: clamp(150px, 29svh, 270px); aspect-ratio: 1 / 2; overflow: visible;
  transform: translate3d(-50%, calc(var(--cover-h) * .24), 0) translateY(-62%);
}
.scissors__blade { transform-box: view-box; transform-origin: 80px 168px; }
.scissors__blade--a { transform: rotate(-9deg); }
.scissors__blade--b { transform: rotate(9deg); }
.cover__edge { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; pointer-events: none; }
.cover__edge polyline { fill: none; stroke: #fffaf4; stroke-width: 7; vector-effect: non-scaling-stroke; }

.hair { position: absolute; left: 50%; top: 0; width: 15px; height: 34px; border: 2.5px solid transparent; border-left-color: var(--terra); border-radius: 50%; opacity: 0; }
.hair--1 { height: 24px; border-left-color: var(--cocoa); }
.hair--2 { height: 44px; border-left-color: var(--copper); }
.hair--3 { width: 22px; border-left-color: #794b27; }

/* без розрізу (немає скрипта або «менше руху») місця під обкладинкою не треба */
.cover-space { display: none; }

/* з розрізом: обкладинка — шар над сторінкою, сторінка під нею їде як завжди */
.has-cut .cover { position: fixed; inset: 0 0 auto; pointer-events: none; }
.has-cut .cover__move { will-change: transform; }
.has-cut .cover__half { pointer-events: auto; will-change: transform, clip-path; }
.has-cut .cover__half--a { transform-origin: 0 100%; }
.has-cut .cover__half--b { transform-origin: 100% 100%; }
.has-cut .cover.is-open .cover__half { pointer-events: none; }
/* обкладинка повзе вгору, тому знизу має запас 14%: інакше з-під неї завчасно визирає заголовок «Про нас» */
.has-cut .cover__half { overflow: visible; }
.has-cut .cover__half::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14%; background: var(--cream); }
.has-cut .cover__seam { bottom: -14%; }
/* не visibility: програми читання мають і далі бачити заголовок сторінки */
.has-cut .cover.is-done .cover__move { opacity: 0; }
.has-cut .cover-space { display: block; height: calc(var(--cover-h) * .85); background: var(--terra); }
/* Tab на кнопці обкладинки: рамку видно й на правій половині-копії */
.cover:has(.cover__half--a .cover__actions .btn:focus-visible) .cover__half--b .cover__actions .btn,
.cover:has(.cover__half--a .cover__actions .cover__hint:focus-visible) .cover__half--b .cover__actions .cover__hint,
.cover:has(.cover__half--a .cover__top .btn:focus-visible) .cover__half--b .cover__top .btn { outline: 3px solid var(--terra); outline-offset: 3px; }

/* ───────── Шапка ───────── */
.header { position: sticky; top: 0; z-index: 30; background: var(--cream); border-bottom: 1px solid var(--line); }
.has-cut .header { position: fixed; inset: 0 0 auto; opacity: 0; pointer-events: none; transform: translateY(-100%); transition: transform .3s ease, opacity .3s; }
.has-cut.is-header .header { opacity: 1; pointer-events: auto; transform: none; }
/* Tab дійшов до меню ще на обкладинці — показуємо шапку над нею */
.has-cut .header:has(:focus-visible) { z-index: 55; opacity: 1; pointer-events: auto; transform: none; }
.header__inner { display: flex; align-items: center; gap: var(--gap); min-height: 68px; }
.brand { display: grid; text-decoration: none; line-height: 1; }
.brand__name { font: 800 1.8rem/1 var(--display); text-transform: uppercase; letter-spacing: .03em; color: var(--terra); }
.brand__tag { margin-top: 3px; font: 500 .72rem/1 var(--body); color: var(--muted); }
.nav { position: static; inset: auto; display: flex; gap: 24px; width: auto; height: auto; margin: 0 0 0 auto; padding: 0; border: 0; background: none; color: inherit; overflow: visible; }
.nav a { font-weight: 500; text-decoration: none; }
.nav a:hover { color: var(--terra); }
.header__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 2px solid var(--line); border-radius: 999px; background: none; color: var(--cocoa); cursor: pointer; }
.icon-btn:hover { border-color: var(--terra); }
.icon-btn svg, .nav__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.nav__close, .header .menu-btn { display: none; }

/* ───────── 2. Про нас ───────── */
.about { background: var(--terra); color: #fff; padding-block: clamp(64px, 10vw, 120px) clamp(64px, 9vw, 120px); }
.has-cut .about { padding-top: max(var(--cover-h) * .44, var(--cover-h) * .32 + 92px); }
.has-cut #about { scroll-margin-top: calc(var(--cover-h) * -.32); } /* посилання «Про нас» докручує за обкладинку */
.about__intro { display: grid; justify-items: center; gap: 16px; max-width: 880px; margin-inline: auto; text-align: center; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; margin-top: clamp(40px, 7vw, 88px); }
.about__photo { overflow: hidden; background: var(--terra-dark); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo--main { aspect-ratio: 4 / 5; border-radius: 999px 999px 28px 28px; }
.about__text { display: grid; gap: 22px; color: var(--peach); font-size: 1.08rem; }
.about__lead { color: #fff; font: 700 clamp(1.7rem, 3vw, 2.5rem)/1.12 var(--display); }
.about__photo--small { width: min(260px, 70%); aspect-ratio: 1; border-radius: 50%; border: 6px solid var(--apricot); }
.about :focus-visible, .booking :focus-visible, .footer :focus-visible { outline-color: var(--peach); }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(40px, 7vw, 88px); border-top: 2px dashed rgba(255, 223, 200, .55); }
.rules li { display: grid; gap: 8px; align-content: start; padding: 26px 24px 0; }
.rules li + li { border-left: 2px dashed rgba(255, 223, 200, .55); }
.rules strong { font: 800 1.6rem/1 var(--display); text-transform: uppercase; }
.rules span { color: var(--peach); }

/* ───────── Загальне для розділів ───────── */
.services, .masters, .booking, .reviews { padding-block: clamp(64px, 9vw, 120px); }
.section__head { display: grid; gap: 14px; justify-items: start; margin-bottom: clamp(28px, 4vw, 52px); }
.section__head h2 { max-width: 15ch; }
.section__head--center { justify-items: center; text-align: center; }
.section__lead { max-width: 46ch; color: var(--muted); font-size: 1.08rem; }

/* ───────── 3. Послуги-пасма ───────── */
.groups { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.group { min-height: 46px; padding: 0 22px; border: 2px solid var(--line); border-radius: 999px; background: none; font: 800 1.2rem/1 var(--display); text-transform: uppercase; cursor: pointer; }
.group:hover { border-color: var(--terra); }
.group[aria-pressed="true"] { border-color: var(--terra); background: var(--terra); color: #fff; }
.services__layout { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.services__photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 28px; background: var(--rose); }
.services__photo img { width: 100%; height: 100%; object-fit: cover; }
.scale { position: relative; height: 30px; margin-right: 8px; border-bottom: 2px solid var(--line); color: var(--muted); font-size: .75rem; }
.scale span { position: absolute; bottom: 8px; transform: translateX(-100%); white-space: nowrap; }
.scale span::after { content: ""; position: absolute; right: 0; bottom: -8px; height: 8px; border-right: 2px solid var(--line); }
.strand {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "tip time" "lock lock";
  align-items: baseline; gap: 2px 16px; width: 100%; padding: 18px 8px 16px 0; border: 0; border-bottom: 1px solid var(--line);
  background: none; color: inherit; text-align: left; text-decoration: none; cursor: pointer;
}
.strand__name { grid-area: name; min-width: 0; overflow-wrap: anywhere; font: 800 clamp(1.35rem, 2.1vw, 1.75rem)/1.05 var(--display); text-transform: uppercase; transition: color .2s; }
.strand__price { grid-area: price; justify-self: end; font-weight: 600; color: var(--terra-dark); white-space: nowrap; }
.strand__tip { grid-area: tip; font-size: .9rem; color: var(--muted); }
.strand__time { grid-area: time; justify-self: end; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.strand__lock { grid-area: lock; position: relative; width: var(--len); height: 26px; margin-top: 10px; transform-origin: 0 50%; }
.strand__lock svg { width: 100%; height: 100%; }
.strand__lock::before { content: ""; position: absolute; z-index: 1; left: 0; top: 1px; width: 11px; height: 24px; border-radius: 5px; background: var(--apricot); box-shadow: inset -3px 0 0 var(--copper); }
.strand__body { fill: var(--lock, #86603f); }
.strand__shine { fill: none; stroke: #f6d3b5; stroke-opacity: .7; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.strand:hover .strand__name { color: var(--terra); }
.strand:hover .strand__body { fill: var(--terra); }

/* ───────── 4. Відтінки ───────── */
.shades { background: var(--sand); }
.shades__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 88px); align-items: center; padding-top: clamp(48px, 7vw, 90px); }
.shade-figure { --h-base: #b4532a; --h-dark: #7c3018; --h-light: #eb9a5e; align-self: end; justify-self: center; width: min(100%, 470px); }
.shade-figure svg { display: block; width: 100%; height: auto; }
.hair-base { fill: var(--h-base); transition: fill .7s ease; }
.hair-dark { stroke: var(--h-dark); transition: stroke .7s ease; }
.hair-light { stroke: var(--h-light); transition: stroke .7s ease; }
.shades__text { display: grid; justify-items: start; gap: 18px; padding-bottom: clamp(48px, 7vw, 90px); }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch { position: relative; width: 56px; height: 56px; border: 3px solid var(--sand); border-radius: 50%; background: linear-gradient(135deg, var(--l) 0 24%, var(--b) 24% 70%, var(--d) 70%); box-shadow: 0 0 0 2px transparent; cursor: pointer; }
.swatch:hover { box-shadow: 0 0 0 2px var(--copper); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--cocoa); }
.shade-note { min-height: 3.2em; color: var(--muted); }
.shade-note strong { display: block; color: var(--cocoa); font: 800 1.6rem/1.2 var(--display); text-transform: uppercase; }

/* ───────── 5. Майстри в ручних дзеркалах ───────── */
.masters { background: var(--apricot); }
.masters .kicker { color: var(--cocoa); }
.mirrors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.mirror { display: grid; align-content: start; justify-items: center; text-align: center; }
.mirror:nth-child(2) { margin-top: 48px; }
.mirror__glass { width: min(100%, 290px); transform-origin: 50% 120%; transition: transform .4s ease; }
.mirror:nth-child(odd):hover .mirror__glass { transform: rotate(-2.5deg); }
.mirror:nth-child(even):hover .mirror__glass { transform: rotate(2.5deg); }
.mirror__frame { position: relative; z-index: 1; aspect-ratio: 4 / 5; overflow: hidden; border: 12px solid var(--terra-dark); border-radius: 50%; background: var(--rose); box-shadow: inset 0 0 0 4px var(--copper); }
.mirror__frame img { width: 100%; height: 100%; object-fit: cover; }
.mirror__handle { width: 34px; height: 76px; margin: -8px auto 0; border-radius: 8px 8px 18px 18px; background: linear-gradient(to right, var(--terra-dark) 0 60%, var(--terra) 60%); }
.mirror__name { margin-top: 16px; font-size: 2.2rem; }
.mirror__role { font-weight: 600; }
.mirror__fact { max-width: 26ch; margin-block: 8px 16px; }

/* ───────── 6. Запис ───────── */
.booking { background: var(--terra-dark); color: #fff; }
.booking .section__lead { color: var(--peach); }
.booking__layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.form { display: grid; gap: 28px; min-width: 0; }
.booking__layout:has(.form[hidden]) { grid-template-columns: minmax(0, 1fr); } /* готово: талон по центру */
.step { min-width: 0; margin: 0; padding: 0; border: 0; }
.step__title { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 0; font: 800 1.45rem/1 var(--display); text-transform: uppercase; }
.step__no { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--apricot); color: var(--cocoa); font-size: 1.05rem; }
.mode-note a { color: inherit; font-weight: 600; }
.mode-note { padding: 12px 16px; border: 1.5px dashed var(--apricot); border-radius: 14px; color: var(--peach); font-size: .92rem; }
.booking select, .field input, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid transparent; border-radius: 14px;
  background-color: var(--cream); color: var(--cocoa); font: 400 16px/1.4 var(--body);
}
.booking select { appearance: none; padding-right: 44px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--terra) 50%), linear-gradient(135deg, var(--terra) 50%, transparent 50%); background-position: right 22px center, right 15px center; background-size: 7px 7px; background-repeat: no-repeat; }
.booking [aria-invalid="true"] { border-color: #ffb199; }
.choices, .times__row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice > span { display: grid; place-items: center; min-height: 46px; min-width: 76px; padding: 8px 16px; border: 1.5px solid rgba(255, 223, 200, .6); border-radius: 14px; color: #fff; text-align: center; line-height: 1.2; pointer-events: none; transition: background-color .15s, color .15s; }
.choice small { color: var(--peach); font-size: .72rem; }
.choice input:hover + span { border-color: var(--apricot); background: rgba(255, 223, 200, .1); }
.choice input:checked + span { border-color: var(--apricot); background: var(--apricot); color: var(--cocoa); }
.choice input:checked + span small { color: var(--cocoa); }
.choice input:focus-visible + span { outline: 3px solid var(--peach); outline-offset: 2px; }
.choice input:disabled { cursor: not-allowed; }
.choice input:disabled + span { border-style: dashed; background: none; color: rgba(255, 255, 255, .6); }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.days .choice > span { min-width: 0; min-height: 62px; padding: 6px 2px; }
.days b { font: 700 1.1rem/1.2 var(--display); }
.times { display: grid; gap: 14px; }
.times__row .choice > span { font-variant-numeric: tabular-nums; }
.times__part { margin-bottom: 6px; color: var(--peach); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.hint { color: var(--peach); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; align-content: start; gap: 6px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 500; }
.booking .optional { color: var(--peach); }
.error { margin-top: 6px; color: #ffd0bd; font-size: .86rem; font-weight: 500; }
.error::before { content: "↳ "; }
.error:empty { display: none; }
.send-error { padding: 12px 16px; border: 2px solid #ffb199; border-radius: 14px; }
.form__note { margin-top: -16px; color: var(--peach); font-size: .82rem; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ticket-area { display: grid; gap: 28px; min-width: 0; padding-top: 4px; }
.ticket { position: relative; max-width: 420px; width: 100%; margin-inline: auto; color: var(--cocoa); transform: rotate(1.2deg); }
.ticket__main { padding: 26px 24px 22px; border-radius: 22px 22px 0 0; background: var(--cream); }
.ticket__brand { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--terra); font: 800 2rem/1 var(--display); text-transform: uppercase; }
.ticket__brand small { color: var(--muted); font: 500 .72rem/1 var(--body); letter-spacing: .1em; }
.ticket__rows { display: grid; margin-top: 18px; }
.ticket__rows div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.ticket__rows dt { color: var(--muted); font-size: .78rem; line-height: 2; text-transform: uppercase; }
.ticket__rows dd { font-weight: 600; overflow-wrap: anywhere; }
.ticket__cut { position: relative; height: 28px; background: radial-gradient(circle at 0 50%, transparent 12px, var(--cream) 12.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 12px, var(--cream) 12.5px) right / 51% 100% no-repeat; }
.ticket__cut::after { content: ""; position: absolute; left: 18px; right: 18px; top: 50%; border-top: 2px dashed var(--copper); }
.ticket__cut svg { position: absolute; z-index: 1; left: 22px; top: 2px; width: 24px; height: 24px; fill: var(--cream); stroke: var(--terra); stroke-width: 1.8; transition: left 1s ease-in-out; }
.ticket__stub { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px 22px; border-radius: 0 0 22px 22px; background: var(--cream); font: 800 2rem/1 var(--display); text-transform: uppercase; transform-origin: 0 0; transition: transform .7s cubic-bezier(.3, 1.5, .5, 1) .9s; }
.ticket.is-torn .ticket__cut svg { left: calc(100% - 46px); }
.ticket.is-torn .ticket__stub { transform: translateY(16px) rotate(4deg); }
.done { display: grid; justify-items: start; gap: 14px; max-width: 420px; width: 100%; margin-inline: auto; padding-top: 22px; }
.done h3 { font-size: 2rem; }
.done h3:focus { outline: none; }
.done p { color: var(--peach); }
.done__demo { padding: 12px 16px; border: 1.5px dashed var(--apricot); border-radius: 14px; font-size: .9rem; }

/* ───────── 7. Відгуки ───────── */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.quote { display: grid; align-content: space-between; gap: 20px; padding: 30px 26px; background: var(--rose); border-radius: 6px 48px 6px 48px; }
.quote:nth-child(2) { background: var(--sand); border-radius: 48px 6px 48px 6px; }
.quote blockquote { margin: 0; font: 700 1.45rem/1.2 var(--display); }
.quote figcaption { font-size: .88rem; }
.quote figcaption b { display: block; }

/* ───────── 8. Контакти й підвал ───────── */
.contacts { padding-block: clamp(56px, 8vw, 96px); background: var(--sand); }
.contacts__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(24px, 6vw, 88px); align-items: start; }
.contacts h2 { margin-top: 14px; }
.facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid #d3b49d; }
.facts dt { color: var(--muted); font-size: .78rem; line-height: 2.1; text-transform: uppercase; letter-spacing: .06em; }
.facts dd { font-weight: 500; }
.contacts__actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 10px; }

.footer { padding-bottom: 28px; background: var(--cocoa); color: var(--rose); font-size: .85rem; }
.comb { height: 34px; background: repeating-linear-gradient(to right, var(--sand) 0 5px, transparent 5px 14px); border-top: 10px solid var(--sand); }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 34px; padding-bottom: 24px; }
.footer__brand { color: var(--cream); font: 800 3rem/1 var(--display); text-transform: uppercase; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.social { display: grid; place-items: center; width: 46px; height: 46px; border: 1.5px solid rgba(240, 180, 138, .55); border-radius: 50%; color: var(--cream); transition: background-color .2s, color .2s, border-color .2s; }
.social svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.social .solid { fill: currentColor; stroke: none; }
.social:hover { border-color: var(--apricot); background: var(--apricot); color: var(--cocoa); }

.toast { position: fixed; z-index: 60; inset: auto auto 28px 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); margin: 0; padding: 12px 18px; border: 0; border-radius: 18px; outline: 1px solid rgba(255, 255, 255, .3); background: var(--cocoa); color: var(--cream); font: 500 .92rem/1.4 var(--body); pointer-events: none; }

/* ───────── Рух ───────── */
@media (prefers-reduced-motion: no-preference) {
  .cover.is-idle .scissors__blade--a { animation: snip-a 2.4s ease-in-out infinite; }
  .cover.is-idle .scissors__blade--b { animation: snip-b 2.4s ease-in-out infinite; }
  .strand__lock { animation: grow .8s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes snip-a { 0%, 60%, 100% { transform: rotate(-12deg); } 70%, 90% { transform: rotate(-3deg); } 80% { transform: rotate(-16deg); } }
@keyframes snip-b { 0%, 60%, 100% { transform: rotate(12deg); } 70%, 90% { transform: rotate(3deg); } 80% { transform: rotate(16deg); } }
@keyframes grow { from { transform: scaleX(.04); } to { transform: scaleX(1); } }

/* ───────── Планшет і телефон ───────── */
@media (max-width: 1000px) {
  .nav { display: none; }
  .header__actions { margin-left: auto; }
  .header .menu-btn { display: inline-grid; }
  /* меню — теракотовий аркуш із лінією відрізу */
  .nav:popover-open { position: fixed; inset: 8px 8px auto; display: grid; gap: 0; margin: 0; max-height: calc(100dvh - 16px); overflow: auto; padding: 70px 24px 22px; border-radius: 28px; background: var(--terra); color: #fff; }
  .nav:popover-open a { display: flex; align-items: center; min-height: 56px; border-bottom: 2px dashed rgba(255, 223, 200, .5); color: #fff; font: 800 1.8rem/1 var(--display); text-transform: uppercase; }
  .nav:popover-open :focus-visible { outline-color: var(--peach); }
  .nav:popover-open .nav__close { position: absolute; top: 14px; right: 14px; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 2px solid rgba(255, 223, 200, .6); border-radius: 50%; background: none; color: inherit; cursor: pointer; }
  .nav::backdrop { background: rgba(58, 36, 28, .45); }
}
@media (max-width: 900px) {
  .booking__layout { grid-template-columns: minmax(0, 1fr); }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .mirror:nth-child(2) { margin-top: 0; }
  .mirrors { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
}
@media (max-width: 760px), (max-aspect-ratio: 4 / 5) {
  /* обкладинка: два фото вгорі, шов між ними, текст унизу */
  .cover__photo, .has-cut .cover__photo { width: 50%; bottom: auto; height: calc(100svh * .46); }
  .cover__photo figcaption, .has-cut .cover__photo figcaption { bottom: 12px; padding: 5px 14px 3px; font-size: 1.15rem; }
  .cover__photo--her figcaption { left: 12px; }
  .cover__photo--him figcaption { right: 12px; }
  .cover__text { left: 0; right: 0; top: calc(100svh * .48); gap: min(1.8svh, 16px); }
  .cover__title { font-size: min(21vw, 10.5svh); }
  .cover__lead { font-size: min(1rem, 2.2svh); }
  .cover__top { inset: 38px 12px auto; }
  .cover__brand { padding: 8px 14px 7px; border-radius: 18px; }
  .cover__name { font-size: 1.45rem; }
  .cover__top .btn { min-height: 44px; padding: 0 16px; font-size: .9rem; }
  .scissors { height: clamp(130px, 23svh, 220px); }
}
@media (max-width: 760px) {
  .about__grid, .shades__inner, .contacts__inner, .services__layout { grid-template-columns: minmax(0, 1fr); }
  .rules { grid-template-columns: minmax(0, 1fr); }
  .rules li { padding: 20px 0 0; }
  .rules li + li { margin-top: 20px; border-left: 0; border-top: 2px dashed rgba(255, 223, 200, .55); }
  .services__photo { aspect-ratio: 16 / 10; }
  .shades__text { order: -1; padding-bottom: 0; }
  .contacts__actions { grid-column: 1; }
  .mirrors { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .mirror__glass { width: min(76%, 270px); }
}
@media (max-height: 600px) and (max-width: 760px) and (max-aspect-ratio: 4 / 5) {
  /* маленький телефон */
  .cover__text { top: calc(100svh * .47); gap: .9svh; }
  .cover__actions { gap: 0; }
  .cover__actions .btn { min-height: 46px; }
}
@media (max-width: 480px) {
  .header__phone { display: none; }
  .header__inner { gap: 10px; }
  .days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .swatch { width: 46px; height: 46px; }
  .swatches { gap: 8px; }
  .groups { gap: 6px; }
  .group { padding: 0 14px; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-height: 760px) and (min-width: 761px) and (min-aspect-ratio: 4 / 5) {
  /* низький екран ноутбука: уся обкладинка з кнопкою й підказкою */
  .cover__text { top: calc(100svh * .34); gap: 1svh; }
  .cover__title { font-size: min(10.4vw, 15svh); }
  .cover__lead { font-size: 1rem; }
  .cover__actions { gap: 0; }
}
@media (max-height: 600px) and (min-width: 761px) and (min-aspect-ratio: 4 / 5) {
  .cover__lead { display: none; }
}
@media (max-height: 460px) and (min-aspect-ratio: 5 / 4) {
  /* телефон боком */
  .cover__kicker, .cover__lead { display: none; }
  .cover__text { top: calc(100svh * .36); }
  .cover__title { font-size: min(9vw, 20svh); }
  .cover__actions .btn { min-height: 44px; }
  .cover__top { inset: 32px 12px auto; }
  .scissors { height: 110px; }
}
@supports not selector(:popover-open) { .header .menu-btn { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
