/* ANTWOOD Tattoo Studio — головна
   Напрям: «органіка × технологія». Річні кільця дерева як жива графіка,
   антиква-капітель для заголовків, широкий гротеск для HUD-підписів. */

:root {
  --bg: #0a0a09;
  --bg-2: #10100e;
  --surface: #161613;
  --surface-2: #1d1d19;
  --line: rgba(236, 231, 216, .12);
  --line-2: rgba(236, 231, 216, .22);
  --ink: #ece7d8;
  --ink-2: #aaa594;
  --ink-3: #77736a;
  --gold: #cfc787;
  --gold-2: #9e9757;
  --gold-glow: rgba(207, 199, 135, .35);
  --red: #a3242a;

  --f-display: 'Cormorant Unicase', 'Cormorant Garamond', Georgia, serif;
  --f-label: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --radius: 2px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in: cubic-bezier(.55, 0, .75, .2);
  --header-h: 76px;

  --z-bg: 0;
  --z-content: 10;
  --z-header: 100;
  --z-ant: 150;
  --z-cursor: 300;
  --z-modal: 400;
  --z-loader: 500;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--bg); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 999;
  background: var(--gold); color: var(--bg); padding: 10px 16px;
  font: 600 13px var(--f-label);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* зерно плівки поверх усього — зшиває фото і графіку в один світ */
.grain {
  position: fixed; inset: -50%; z-index: 600; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- типографіка ---------- */
.label {
  font: 500 11px/1.4 var(--f-label);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.label--gold { color: var(--gold); }
.display {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.01em;
}
.gold-text {
  background: linear-gradient(100deg, #8f8a50 0%, #e8e1a6 38%, #cfc787 55%, #8f8a50 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 7s var(--ease) infinite;
}
@keyframes sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }

/* ---------- кнопки ---------- */
.btn {
  --h: 56px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 28px;
  font: 600 12px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .2s var(--ease);
  touch-action: manipulation;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--gold); transform: scaleY(0); transform-origin: bottom;
  transition: transform .45s var(--ease);
}
.btn:hover { color: var(--bg); border-color: var(--gold); }
.btn:hover::before { transform: scaleY(1); }
.btn:active { transform: scale(.98); }
.btn--gold { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.btn--gold::before { background: var(--ink); }
.btn--gold:hover { border-color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- прелоадер ---------- */
.loader {
  position: fixed; inset: 0; z-index: var(--z-loader);
  display: grid; place-items: center; background: var(--bg);
  transition: opacity .7s var(--ease), visibility .7s;
}
.loader__mark {
  width: 84px; aspect-ratio: 3456 / 3225;
  background: linear-gradient(0deg, var(--gold) 0 var(--p, 0%), rgba(236, 231, 216, .14) var(--p, 0%) 100%);
  -webkit-mask: url(../img/brand/logo-mark.svg) center / contain no-repeat;
  mask: url(../img/brand/logo-mark.svg) center / contain no-repeat;
}
.loader__count { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); }
.is-loaded .loader { opacity: 0; visibility: hidden; }
.no-loader .loader { display: none; }

/* ---------- шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-solid { background: rgba(10, 10, 9, .82); backdrop-filter: blur(14px); border-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__in { display: flex; align-items: center; gap: 32px; width: 100%; }
.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo__mark {
  width: 34px; aspect-ratio: 3456 / 3225; background: var(--gold);
  -webkit-mask: url(../img/brand/logo-mark.svg) center / contain no-repeat;
  mask: url(../img/brand/logo-mark.svg) center / contain no-repeat;
}
.logo__word {
  width: 118px; aspect-ratio: 4857 / 987; background: var(--ink);
  -webkit-mask: url(../img/brand/logo-wordmark.svg) center / contain no-repeat;
  mask: url(../img/brand/logo-wordmark.svg) center / contain no-repeat;
}
.nav { margin-left: auto; height: 100%; }
.nav__list { display: flex; align-items: center; gap: 2px; height: 100%; list-style: none; margin: 0; padding: 0; }
.nav__item { height: 100%; display: flex; align-items: center; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px;
  font: 500 11px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  transition: color .25s;
}
.nav__link::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav__link:hover, .nav__link.is-active, .nav__link[aria-expanded="true"] { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after, .nav__link[aria-expanded="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav__chev { width: 12px; height: 12px; transition: transform .35s var(--ease); }
.nav__link[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }

/* мега-меню: панель на всю ширину під шапкою */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: rgba(12, 12, 11, .97); backdrop-filter: blur(18px);
  border-block: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility .35s;
}
.has-mega.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega__in { display: grid; grid-template-columns: repeat(3, 1fr) 260px; gap: 40px; padding-top: 40px; padding-bottom: 44px; }
.mega__in:has(.mega__col--wide) { grid-template-columns: 2fr 1fr 260px; }
.mega__col ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 4px; }
.mega__col a {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 0;
  font: 400 26px/1.15 var(--f-display); color: var(--ink); transition: color .25s, transform .4s var(--ease);
}
.mega__col a:hover, .mega__col a:focus-visible { color: var(--gold); transform: translateX(8px); }
.mega__col sup { font: 500 10px var(--f-label); color: var(--ink-3); }
.mega__styles { grid-template-columns: 1fr 1fr; column-gap: 32px; }
.mega__card { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.mega__card img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s, transform 1.2s var(--ease); }
.mega__card:hover img { transform: scale(1.05); }
.mega__card img.is-swap { opacity: 0; }
.mega__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 18px 16px; display: grid; gap: 4px; font: 400 24px/1.1 var(--f-display); background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent); }
.header__side { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav + .header__side { margin-left: 28px; }
.header .header__call { display: none; }
.lang { display: flex; gap: 2px; font: 500 11px/1 var(--f-label); letter-spacing: .1em; }
.lang a { padding: 8px 6px; color: var(--ink-3); }
.lang a[aria-current] { color: var(--gold); }
.header__phone { font: 500 13px/1 var(--f-label); letter-spacing: .04em; white-space: nowrap; }
.header .btn { --h: 44px; padding: 0 20px; font-size: 11px; }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1px; background: var(--ink); transition: transform .35s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 26px; }
.menu-open .burger span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: calc(var(--z-header) - 1);
  background: var(--bg); padding: calc(var(--header-h) + 16px) var(--gutter) calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 24px; overflow-y: auto; overscroll-behavior: contain;
  clip-path: circle(0 at calc(100% - 40px) 32px); transition: clip-path .7s var(--ease), visibility .7s;
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 32px); visibility: visible; }
.mm { display: grid; }
.mm-link {
  display: flex; justify-content: space-between; align-items: center; padding: 12px 0;
  font: 400 34px/1.1 var(--f-display); border-bottom: 1px solid var(--line); list-style: none; cursor: pointer;
}
.mm-link::-webkit-details-marker { display: none; }
.mm-link i { position: relative; width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 50%; flex: none; }
.mm-link i::before, .mm-link i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1px; background: currentColor; transform: translate(-50%, -50%); }
.mm-link i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .35s var(--ease); }
.mm-group[open] .mm-link i::after { transform: translate(-50%, -50%) rotate(0); }
.mm-group[open] .mm-link { color: var(--gold); }
.mm-sub { display: grid; gap: 2px; padding: 14px 0 18px; border-bottom: 1px solid var(--line); }
.mm-sub .label { margin: 12px 0 4px; }
.mm-sub .label:first-child { margin-top: 0; }
.mm-sub a { padding: 7px 0; font-size: 17px; color: var(--ink-2); }
.mm-sub--chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mm-sub--chips a { padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 40px; font-size: 14px; }
.mm-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); flex: none; }
.mm-strip::-webkit-scrollbar { display: none; }
.mm-strip img { width: 96px; height: 128px; object-fit: cover; border-radius: var(--radius); flex: none; }
.mm-foot { display: grid; gap: 10px; margin-top: auto; }
.mm-row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 40px) 0 0; overflow: hidden; isolation: isolate;
}
.hero__canvas, .hero__fallback {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -4;
}
.hero__fallback {
  background: url(../img/brand/rings.webp) 78% 50% / auto 130% no-repeat;
  opacity: .35; mix-blend-mode: screen;
}
.has-webgl .hero__fallback { display: none; }
/* відео процесу: руки, машинка, шкіра — без облич */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -6; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero__video.is-on { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0; z-index: -5; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 75% at 60% 50%, rgba(10, 10, 9, .05) 0%, rgba(10, 10, 9, .55) 100%),
    rgba(10, 10, 9, .22);
}
.hero::after { /* затемнення під текстом — контраст 4.5:1 на будь-якому кадрі шейдера */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 10, 9, .86) 0%, rgba(10, 10, 9, .6) 36%, rgba(10, 10, 9, .08) 62%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10, 10, 9, 0) 26%);
}
/* арка з роботами — головний візуал першого екрана */
.arch {
  --h: min(70vh, 640px);
  position: absolute; z-index: -2; right: 8vw; top: 50%;
  height: var(--h); width: calc(var(--h) * .66);
  transform: translateY(-50%);
}
.arch::before, .arch::after { /* золоті контури арки, як кільця навколо */
  content: ''; position: absolute; pointer-events: none;
  border: 1px solid rgba(207, 199, 135, .38); border-radius: 999px 999px 8px 8px;
  opacity: 0; transition: opacity 1.4s var(--ease) .9s;
}
.arch::before { inset: -16px; }
.arch::after { inset: -34px; border-color: rgba(207, 199, 135, .16); border-style: dashed; }
.is-loaded .arch::before, .is-loaded .arch::after { opacity: 1; }
.arch__frame {
  position: absolute; inset: 0; display: block; width: 100%; overflow: hidden;
  border-radius: 999px 999px 4px 4px; background: var(--surface);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .65), 0 0 0 1px rgba(207, 199, 135, .25);
  clip-path: inset(100% 0 0 0 round 999px 999px 4px 4px);
  transition: clip-path 1.6s var(--ease) .15s;
}
.is-loaded .arch__frame { clip-path: inset(0 0 0 0 round 999px 999px 4px 4px); }
.arch__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.14);
  transition: opacity 1.2s var(--ease), transform 7s linear;
}
.arch__img.is-on { opacity: 1; transform: scale(1); }
.arch__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; justify-content: space-between; align-items: end;
  padding: 80px 22px 20px; background: linear-gradient(0deg, rgba(0, 0, 0, .8), transparent); text-align: left;
}
.arch__thumbs {
  position: absolute; right: calc(100% + 54px); top: 50%; transform: translateY(-50%);
  display: grid; gap: 8px;
}
.arch__thumb {
  position: relative; width: 44px; height: 58px; border-radius: 2px; overflow: hidden; opacity: .45;
  outline: 1px solid transparent; outline-offset: 3px; transition: opacity .3s, outline-color .3s;
}
.arch__thumb img { width: 100%; height: 100%; object-fit: cover; }
.arch__thumb:hover { opacity: .85; }
.arch__thumb.is-on { opacity: 1; outline-color: var(--gold); }
.arch__thumb i { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--gold); }
.arch__thumb.is-on i { animation: thumbProgress var(--dur, 5s) linear forwards; }
.arch.is-paused .arch__thumb.is-on i { animation-play-state: paused; }
@keyframes thumbProgress { to { width: 100%; } }

/* золота A — печатка на краю арки */
.hero__mark {
  position: absolute; z-index: 2; pointer-events: none;
  right: -52px; bottom: 16%; width: 120px; aspect-ratio: 3456 / 3225;
  background: linear-gradient(115deg, #6f6a3c 0%, #b7af6c 30%, #f3ecba 48%, #b7af6c 62%, #6f6a3c 100%);
  background-size: 250% 100%;
  -webkit-mask: url(../img/brand/logo-mark.svg) center / contain no-repeat;
  mask: url(../img/brand/logo-mark.svg) center / contain no-repeat;
  animation: sheen 9s var(--ease) infinite;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .9));
  opacity: 0; transform: scale(.6) rotate(-12deg);
  transition: opacity 1s var(--ease) 1.1s, transform 1.2s var(--ease) 1.1s;
}
.is-loaded .hero__mark { opacity: 1; transform: none; }
.hero__tag { color: var(--ink); font-weight: 600; }


.hud {
  position: absolute; z-index: 2; display: grid; gap: 6px;
  font: 500 10px/1.4 var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3);
}
.hud b { font-weight: 500; color: var(--ink-2); }
.hud--tl { top: calc(var(--header-h) + 24px); left: var(--gutter); }
.hud--tr { top: calc(var(--header-h) + 24px); right: var(--gutter); text-align: right; }
.hud .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-right: 8px; box-shadow: 0 0 10px var(--red); animation: blink 2.4s infinite; vertical-align: 1px; }
@keyframes blink { 50% { opacity: .25; } }

.hero__content { position: relative; z-index: 2; padding-bottom: clamp(24px, 5vh, 56px); pointer-events: none; }
.hero__content > * { pointer-events: auto; }
.hero h1 { margin: 0; font-weight: 400; }
.hero__eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 26px; }
.hero__eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--gold); }
.hero__title {
  display: block;
  font: 400 clamp(54px, 7.6vw, 128px)/.9 var(--f-display);
  letter-spacing: -.02em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.3s var(--ease); }
.hero__title .line:nth-child(2) > span { transition-delay: .12s; }
.is-loaded .hero__title .line > span { transform: none; }
.hero__title em { font-style: normal; }
.hero__lead {
  max-width: 470px; margin: 30px 0 0; color: var(--ink-2); font-size: 17px;
  opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease) .5s, transform 1s var(--ease) .5s;
}
.hero__cta {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px;
  opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease) .65s, transform 1s var(--ease) .65s;
}
.is-loaded .hero__lead, .is-loaded .hero__cta { opacity: 1; transform: none; }

.hero__bar {
  position: relative; z-index: 2; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr) auto;
}
.hero__fact { padding: 22px 24px 24px 0; display: grid; gap: 4px; }
.hero__fact + .hero__fact { padding-left: 24px; border-left: 1px solid var(--line); }
.hero__fact strong { font: 400 34px/1 var(--f-display); color: var(--ink); }
.hero__fact strong small { font-size: .55em; color: var(--gold); margin-right: 4px; }
.hero__scroll { display: flex; align-items: center; gap: 12px; padding-left: 24px; border-left: 1px solid var(--line); }
.hero__scroll i { width: 1px; height: 38px; background: var(--line-2); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold); animation: drip 2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------- муравей ---------- */
.ant {
  position: fixed; left: 0; top: 0; z-index: var(--z-ant); width: 46px; height: 46px;
  pointer-events: none; color: var(--gold); will-change: transform; opacity: 0; transition: opacity .6s;
}
.ant.is-on { opacity: 1; }
.ant svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 1.5px #000) drop-shadow(0 0 8px rgba(207, 199, 135, .45)); }
.ant .leg { stroke: currentColor; stroke-width: 1.3; fill: none; stroke-linecap: round; transform-box: fill-box; }
.ant .leg-a { transform-origin: 100% 50%; } .ant .leg-b { transform-origin: 0% 50%; }
.ant.is-walking .g1 { animation: legs .22s linear infinite alternate; }
.ant.is-walking .g2 { animation: legs .22s linear infinite alternate-reverse; }
@keyframes legs { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }

/* ---------- курсор-голка ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: var(--z-cursor); pointer-events: none; mix-blend-mode: difference; display: none; }
.cursor__dot { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; border-radius: 50%; }
.cursor__ring {
  position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 50%;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s;
}
.cursor.is-hover .cursor__ring { width: 74px; height: 74px; margin: -37px 0 0 -37px; background: rgba(255, 255, 255, .08); }
.cursor__label {
  position: absolute; transform: translate(-50%, -50%); font: 600 9px/1 var(--f-label); letter-spacing: .16em;
  text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .25s; white-space: nowrap;
}
.cursor.has-label .cursor__label { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
  body.cursor-on, body.cursor-on a, body.cursor-on button { cursor: none; }
}

/* ---------- біжучий рядок ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--bg-2); }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 36px; padding-right: 36px; font: 400 clamp(28px, 3.4vw, 48px)/1 var(--f-display); white-space: nowrap; color: var(--ink-2); }
.marquee__item:nth-child(odd) { color: var(--ink); }
.marquee__sep { width: 22px; height: 22px; flex: none; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- секції ---------- */
.section { position: relative; padding: clamp(80px, 12vw, 160px) 0; }
.section--alt { background: var(--bg-2); }
.sec-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 40px; margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head__num { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.sec-head__num::after { content: ''; width: 64px; height: 1px; background: var(--line-2); }
.sec-head h2 { margin: 0; font: 400 clamp(44px, 6.6vw, 104px)/.9 var(--f-display); letter-spacing: -.015em; }
.sec-head p { margin: 0; max-width: 380px; color: var(--ink-2); }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }

/* ---------- стилі (індекс із прев'ю) ---------- */
.styles-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: st; }
.style-row {
  position: relative; display: grid; grid-template-columns: 80px 1fr auto 40px; align-items: center; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--line); counter-increment: st;
  transition: padding .5s var(--ease), color .3s;
}
.style-row::before { content: counter(st, decimal-leading-zero); font: 500 11px/1 var(--f-label); letter-spacing: .16em; color: var(--ink-3); }
.style-row__name { font: 400 clamp(36px, 5vw, 72px)/1 var(--f-display); transition: transform .5s var(--ease), color .3s; }
.style-row__meta { color: var(--ink-3); font-size: 14px; text-align: right; }
.style-row__go { width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; transition: background .3s, border-color .3s, transform .5s var(--ease); }
.style-row__go svg { width: 14px; }
.style-row::after { /* заливка рядка «чорнилом» */
  content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(207, 199, 135, .08), transparent 70%);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.style-row:hover::after, .style-row:focus-within::after { transform: scaleX(1); }
.style-row:hover .style-row__name { transform: translateX(16px); color: var(--gold); }
.style-row:hover .style-row__go { background: var(--gold); border-color: var(--gold); color: var(--bg); transform: rotate(-45deg); }
.style-row > a { position: absolute; inset: 0; z-index: 1; }
.style-preview {
  position: fixed; left: 0; top: 0; z-index: 50; width: 260px; aspect-ratio: 3 / 4; pointer-events: none;
  overflow: hidden; border-radius: var(--radius); opacity: 0; transform: scale(.8);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.style-preview.is-on { opacity: 1; transform: scale(1); }
.style-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.style-preview img.is-current { opacity: 1; }

/* ---------- роботи ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip {
  height: 40px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 40px;
  font: 500 11px/1 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
  transition: background .3s, color .3s, border-color .3s;
}
.chip:hover { border-color: var(--gold); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.chip sup { font-size: 9px; margin-left: 4px; opacity: .7; }
.works { columns: 4 260px; column-gap: 14px; }
.work {
  position: relative; display: block; width: 100%; margin: 0 0 14px; break-inside: avoid;
  overflow: hidden; border-radius: var(--radius); background: var(--surface);
}
.work img { width: 100%; height: auto; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.92); }
.work:hover img { transform: scale(1.06); filter: saturate(1.05); }
.work__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px;
  background: linear-gradient(0deg, rgba(0, 0, 0, .75), transparent);
  display: flex; justify-content: space-between; align-items: end; gap: 8px;
  transform: translateY(100%); transition: transform .5s var(--ease);
}
.work:hover .work__cap, .work:focus-visible .work__cap { transform: none; }
.work.is-hidden { display: none; }
.work.is-new { animation: workIn .7s var(--ease) both; }
@keyframes workIn { from { opacity: 0; transform: translateY(24px); } }
.works-more { display: flex; justify-content: center; margin-top: 40px; gap: 12px; flex-wrap: wrap; }

/* лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: var(--z-modal); width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #070706; color: var(--ink); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fadeIn .35s var(--ease); }
.lightbox::backdrop { background: #070706; }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox__top, .lightbox__bottom { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter); gap: 16px; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 64px; }
.lightbox__stage { overflow: hidden; }
.lightbox__stage img { position: absolute; top: 0; bottom: 0; left: 64px; right: 64px; width: calc(100% - 128px); height: 100%; object-fit: contain; animation: fadeIn .4s var(--ease); }
.icon-btn { width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; transition: background .3s, color .3s, border-color .3s; }
.icon-btn:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.icon-btn svg { width: 18px; height: 18px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 8px; } .lightbox__nav--next { right: 8px; }
.lightbox__pager { display: flex; align-items: center; gap: 16px; }
.lightbox__pager .icon-btn { display: none; } /* на десктопі стрілки збоку від фото */

/* ---------- майстри ---------- */
.masters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.master {
  position: relative; padding: 28px 24px 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); display: flex; flex-direction: column; gap: 18px;
  transition: border-color .4s, transform .6s var(--ease);
}
.master:hover { border-color: rgba(207, 199, 135, .45); transform: translateY(-6px); }
.master__photo { position: relative; width: 78%; margin: 6px auto 4px; aspect-ratio: 1; }
.master__photo img { position: absolute; inset: 14%; width: 72%; height: 72%; border-radius: 50%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .6s var(--ease); }
.master:hover .master__photo img { filter: grayscale(0); }
.master__rings { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold); opacity: .55; transition: transform 1.4s var(--ease), opacity .4s; }
.master:hover .master__rings { transform: rotate(40deg) scale(1.03); opacity: .9; }
.master__name { margin: 0; font: 400 40px/1 var(--f-display); }
.master__role { margin-top: -10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tags li { font-size: 12.5px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 30px; color: var(--ink-2); }
.master__fact { margin: 0; font-size: 14px; color: var(--ink-2); padding-left: 14px; border-left: 1px solid var(--gold-2); }
.master .btn { --h: 46px; margin-top: auto; padding: 0 12px; font-size: 10px; letter-spacing: .08em; white-space: nowrap; }
.master--soon { border-style: dashed; background: transparent; justify-content: center; text-align: center; align-items: center; }
.master--soon .master__photo { display: grid; place-items: center; }
.master--soon .master__name { color: var(--ink-3); }

/* ---------- послуги ---------- */
.services { border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 1.1fr 1.3fr .7fr; gap: 32px; padding: 36px 0; border-bottom: 1px solid var(--line); align-items: start; }
.service h3 { margin: 0; font: 400 clamp(30px, 3.4vw, 46px)/1.02 var(--f-display); }
.service p { margin: 0; color: var(--ink-2); }
.service ul { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-2); font-size: 14px; }
.service ul li::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: 2px; }
.service__price { text-align: right; display: grid; gap: 6px; justify-items: end; }
.service__price strong { font: 400 40px/1 var(--f-display); color: var(--gold); }
.service__price strong small { font-size: .55em; color: var(--ink-2); margin-right: 4px; }
.price-note { margin-top: 28px; color: var(--ink-3); font-size: 14px; max-width: 720px; }

/* ---------- переваги ---------- */
.why { position: relative; overflow: hidden; }
.why__bg { position: absolute; inset: 0; background: url(../img/brand/rings.webp) 105% 50% / auto 120% no-repeat; opacity: .14; pointer-events: none; }
.why__grid { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.why__intro { grid-column: 1 / 6; }
.why__intro p.quote { font: italic 400 clamp(28px, 2.8vw, 40px)/1.22 'Cormorant Garamond', Georgia, serif; margin: 0; }
.why__list { grid-column: 7 / 13; list-style: none; margin: 0; padding: 0; counter-reset: w; }
.why__list li { position: relative; padding: 26px 0 26px 72px; border-bottom: 1px solid var(--line); counter-increment: w; }
.why__list li:first-child { border-top: 1px solid var(--line); }
.why__list li::before { content: counter(w, decimal-leading-zero); position: absolute; left: 0; top: 30px; font: 500 11px var(--f-label); letter-spacing: .16em; color: var(--gold); }
.why__list h3 { margin: 0 0 6px; font: 400 30px/1.1 var(--f-display); }
.why__list p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- процес ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before { content: ''; position: absolute; left: 0; right: 0; top: 27px; height: 1px; background: var(--line-2); }
.steps__progress { position: absolute; left: 0; top: 27px; height: 1px; width: 0; background: var(--gold); box-shadow: 0 0 12px var(--gold-glow); transition: width 1.8s var(--ease); }
.steps.is-in .steps__progress { width: 100%; }
.step { position: relative; padding: 0 24px 0 0; }
.step__dot { width: 55px; height: 55px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); display: grid; place-items: center; font: 500 12px var(--f-label); color: var(--gold); position: relative; transition: border-color .5s, box-shadow .5s; }
.steps.is-in .step__dot { border-color: var(--gold); box-shadow: 0 0 0 6px rgba(207, 199, 135, .06); }
.step h3 { margin: 26px 0 10px; font: 400 30px/1.05 var(--f-display); }
.step p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* ---------- пам'ятка ---------- */
.memo { display: grid; grid-template-columns: 5fr 7fr; gap: 60px; }
.memo__aside { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.memo__aside h2 { margin: 0 0 24px; font: 400 clamp(44px, 5.4vw, 84px)/.92 var(--f-display); }
.memo__aside p { color: var(--ink-2); max-width: 380px; }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; cursor: pointer; font: 400 clamp(24px, 2.4vw, 32px)/1.15 var(--f-display);
  transition: color .3s;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--gold); }
.acc summary i { position: relative; width: 40px; height: 40px; flex: none; border: 1px solid var(--line-2); border-radius: 50%; transition: transform .45s var(--ease), background .3s, border-color .3s; }
.acc summary i::before, .acc summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; background: currentColor; transform: translate(-50%, -50%); }
.acc summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .45s var(--ease); }
.acc details[open] summary i { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.acc details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.acc__body { padding: 0 0 30px; color: var(--ink-2); display: grid; gap: 12px; max-width: 680px; }
.acc__body p { margin: 0; }
.acc__body ol, .acc__body ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.acc__body strong { color: var(--ink); font-weight: 600; }

/* ---------- запис ---------- */
.booking { position: relative; overflow: hidden; }
.booking__glow { position: absolute; width: 900px; height: 900px; right: -300px; top: -200px; background: radial-gradient(circle, rgba(207, 199, 135, .10), transparent 60%); pointer-events: none; }
.booking__grid { position: relative; display: grid; grid-template-columns: 6fr 5fr; gap: clamp(40px, 6vw, 96px); }
.booking h2 { margin: 0 0 24px; font: 400 clamp(52px, 7vw, 116px)/.88 var(--f-display); }
.booking__lead { color: var(--ink-2); max-width: 460px; margin: 0 0 40px; }
.channels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.channel {
  display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .3s, background .3s, transform .4s var(--ease);
}
.channel:hover { border-color: var(--gold); background: rgba(207, 199, 135, .05); transform: translateY(-3px); }
.channel svg { width: 26px; height: 26px; color: var(--gold); flex: none; }
.channel span { display: grid; gap: 2px; font-size: 14px; }
.channel span small { color: var(--ink-3); font: 500 10px/1.3 var(--f-label); letter-spacing: .14em; text-transform: uppercase; }

.form { padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(22, 22, 19, .7); backdrop-filter: blur(8px); display: grid; gap: 18px; }
.form__title { font: 400 32px/1.1 var(--f-display); margin: 0; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font: 500 10.5px/1.3 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); padding: 0; }
.field label b { color: var(--gold); font-weight: 500; }
.input {
  width: 100%; min-height: 52px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: rgba(10, 10, 9, .6); color: var(--ink); font: 400 16px/1.4 var(--f-body);
  transition: border-color .25s, box-shadow .25s;
}
.input::placeholder { color: var(--ink-3); }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(207, 199, 135, .15); }
.input[aria-invalid="true"] { border-color: #d0574f; }
textarea.input { min-height: 112px; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cfc787' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
select.input option { background: var(--surface); }
.field__err { color: #e58c85; font-size: 13px; min-height: 0; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  height: 40px; padding: 0 14px; display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 40px;
  font: 500 12px/1 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--ink-2); cursor: pointer; transition: all .25s;
}
.seg input:checked + label { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.seg input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.form__note { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.form .btn { width: 100%; }
.form .btn[disabled] { opacity: .6; pointer-events: none; }
.form__done { display: none; text-align: center; padding: 40px 10px; gap: 14px; justify-items: center; }
.form.is-done > :not(.form__done) { display: none; }
.form.is-done .form__done { display: grid; }
.form__done svg { width: 64px; color: var(--gold); }

/* ---------- контакти ---------- */
.contacts { display: grid; grid-template-columns: 5fr 7fr; gap: 20px; }
.contacts__info { display: grid; gap: 28px; align-content: start; }
.contacts__info address { font-style: normal; font: 400 clamp(30px, 3vw, 42px)/1.1 var(--f-display); }
.contacts__info .label { display: block; margin-bottom: 10px; }
.contacts__phone { font: 400 clamp(30px, 3vw, 42px)/1.1 var(--f-display); }
.contacts__phone:hover { color: var(--gold); }
.socials { display: flex; gap: 10px; }
.map {
  position: relative; min-height: 440px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--surface) url(../img/brand/rings.webp) center / cover; display: grid; place-items: center;
}
.map::before { content: ''; position: absolute; inset: 0; background: rgba(10, 10, 9, .72); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }
.map__btn { position: relative; z-index: 1; display: grid; justify-items: center; gap: 14px; text-align: center; }
.map__pin { width: 54px; height: 54px; border-radius: 50%; background: var(--gold); color: var(--bg); display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(207, 199, 135, .12), 0 0 0 26px rgba(207, 199, 135, .05); animation: pulse 2.6s var(--ease) infinite; }
.map__pin svg { width: 22px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 18px rgba(207, 199, 135, .08), 0 0 0 36px rgba(207, 199, 135, .02); } }

/* ---------- підвал ---------- */
.footer { border-top: 1px solid var(--line); padding: 72px 0 28px; position: relative; overflow: hidden; }
.footer__big {
  width: 100%; aspect-ratio: 4857 / 987; margin-bottom: 56px; opacity: .1;
  background: var(--ink);
  -webkit-mask: url(../img/brand/logo-wordmark.svg) center / contain no-repeat;
  mask: url(../img/brand/logo-wordmark.svg) center / contain no-repeat;
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer h3 { margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--ink-2); font-size: 14.5px; }
.footer a:hover { color: var(--gold); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }
.footer__bottom a { color: var(--ink-2); }

/* мобільна панель запису */
.mbar { display: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__phone { display: none; }
  .masters { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before, .steps__progress { left: 27px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps__progress { height: 0; transition: height 1.8s var(--ease); }
  .steps.is-in .steps__progress { width: 1px; height: 100%; }
  .step { display: grid; grid-template-columns: 55px 1fr; column-gap: 24px; padding: 0 0 36px; }
  .step h3 { margin: 10px 0 8px; }
  .step p { grid-column: 2; }
  .step h3 { grid-column: 2; grid-row: 1; }
  .step p { grid-row: 2; }
  .step__dot { grid-row: 1 / 3; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .header__cta, .header .lang { display: none; }
  .hero { justify-content: flex-end; }
  .hero { justify-content: flex-start; padding-top: calc(var(--header-h) + 40px); }
  .arch { --h: min(54svh, 520px); position: relative; right: auto; top: auto; transform: none; margin: 0 auto 40px; flex: none; }
  .arch__thumbs { display: none; }
  .hero__mark { width: 78px; right: -14px; bottom: 10%; }
  .hud--tl { display: none; }
  .hero__eyebrow { letter-spacing: .1em; font-size: 10px; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(10, 10, 9, .2) 45%, rgba(10, 10, 9, 0) 100%); }
  .hud--tr { display: none; }
  .hero__bar { grid-template-columns: repeat(3, 1fr); }
  .hero__scroll { display: none; }
  .hero__fact { padding: 16px 10px 18px 0; }
  .hero__fact + .hero__fact { padding-left: 12px; }
  .hero__fact strong { font-size: 26px; }
  .hero__fact .label { font-size: 9px; letter-spacing: .12em; }
  .sec-head { grid-template-columns: 1fr; }
  .style-row { grid-template-columns: 40px 1fr 40px; gap: 14px; padding: 18px 0; }
  .style-row__meta { display: none; }
  .style-preview { display: none; }
  .service { grid-template-columns: 1fr; gap: 12px; }
  .service__price { text-align: left; justify-items: start; }
  .why__intro, .why__list { grid-column: 1 / -1; }
  .memo, .booking__grid, .contacts { grid-template-columns: 1fr; }
  .memo__aside { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: calc(var(--z-header) - 2); display: grid; grid-template-columns: 1fr 56px 56px;
    gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(10, 10, 9, .9); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .5s var(--ease);
  }
  .mbar.is-on { transform: none; }
  .mbar .btn { --h: 50px; padding: 0 12px; }
  .mbar .icon-btn { width: 56px; height: 50px; border-radius: var(--radius); }
  body { padding-bottom: 0; }
  .footer { padding-bottom: 96px; }
}
@media (max-width: 560px) {
  .masters { grid-template-columns: 1fr; }
  .form__row, .channels { grid-template-columns: 1fr; }
  .works { columns: 2 140px; column-gap: 8px; }
  .work { margin-bottom: 8px; }
  .work__cap { display: none; }
  .hero__lead { font-size: 16px; }
  .hero__cta .btn { flex: 1 1 100%; padding: 0 18px; letter-spacing: .08em; font-size: 11px; }
  .lightbox__stage { padding: 0 8px; }
  .lightbox__stage img { left: 8px; right: 8px; width: calc(100% - 16px); }
  .lightbox__nav { display: none; }
  .lightbox__bottom { flex-direction: column; align-items: stretch; gap: 12px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .lightbox__pager { justify-content: space-between; }
  .lightbox__pager .icon-btn { display: grid; }
  .lightbox__bottom .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .grain { display: none; }
}

/* ================= ФОТО ПО ВСІЙ СТОРІНЦІ ================= */

/* фото в біжучому рядку */
.marquee__item > span { display: inline-block; }
.marquee__img { width: 64px; height: 84px; object-fit: cover; border-radius: 40px; flex: none; transform: rotate(-6deg); transition: transform .5s var(--ease); }
.marquee__item:hover .marquee__img { transform: rotate(0); }
.marquee { padding: 18px 0; }

/* мініатюри в індексі стилів */
.style-row { grid-template-columns: 56px 72px 1fr auto 40px; }
.style-row__thumb { width: 72px; height: 96px; object-fit: cover; border-radius: var(--radius); filter: grayscale(1) brightness(.8); transition: filter .5s var(--ease), transform .6s var(--ease); }
.style-row:hover .style-row__thumb { filter: none; transform: scale(1.06) rotate(-3deg); }

/* стіна робіт */
.wall { position: relative; height: 120vh; min-height: 760px; overflow: hidden; background: var(--bg); isolation: isolate; }
.wall__cols { position: absolute; inset: -20% -4%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; transform: rotate(-6deg); }
.wall__col { display: grid; gap: 14px; align-content: start; will-change: transform; }
.wall__col:nth-child(even) { margin-top: -40%; }
.wall__col img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; filter: saturate(.85) brightness(.75); }
.wall::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(10, 10, 9, .88) 0%, rgba(10, 10, 9, .55) 55%, rgba(10, 10, 9, .2) 100%),
    linear-gradient(180deg, var(--bg) 0%, transparent 14%, transparent 86%, var(--bg) 100%);
}
.wall__text { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; text-align: center; gap: 26px; padding: 0 var(--gutter); }
.wall__title { margin: 0; font: 400 clamp(56px, 9vw, 150px)/.88 var(--f-display); letter-spacing: -.02em; }
.wall__title em { font-style: normal; }

/* колонки робіт за формою запису */
.bwall {
  position: absolute; top: 0; bottom: 0; right: 0; width: 46%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  opacity: .22; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%);
  mask-image: linear-gradient(90deg, transparent, #000 45%);
}
.bwall__col { display: grid; gap: 12px; align-content: start; animation: bwall 60s linear infinite; }
.bwall__col:nth-child(2) { animation-direction: reverse; animation-duration: 70s; }
.bwall__col img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; filter: grayscale(.4); }
@keyframes bwall { to { transform: translateY(-50%); } }

/* стрічка Instagram у підвалі */
.insta { position: relative; display: block; margin-bottom: 64px; border-radius: var(--radius); overflow: hidden; }
.insta__grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.insta__grid img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(.7) brightness(.7); transition: filter .5s var(--ease), transform .8s var(--ease); }
.insta:hover .insta__grid img { filter: none; }
.insta__grid img:hover { transform: scale(1.05); }
.insta__cap {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 60px;
  font: 500 13px/1 var(--f-label); letter-spacing: .06em; white-space: nowrap; transition: background .3s, color .3s;
}
.insta__cap svg { width: 20px; height: 20px; color: var(--gold); }
.insta:hover .insta__cap { background: var(--gold); color: var(--bg); }
.insta:hover .insta__cap svg { color: var(--bg); }
.footer__about { color: var(--ink-2); max-width: 340px; margin: 20px 0; font-size: 14.5px; }

/* демо: посилання на сторінки наступного етапу */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 700; transform: translate(-50%, 20px); opacity: 0;
  padding: 14px 22px; background: var(--surface-2); border: 1px solid var(--gold-2); border-radius: 40px; font-size: 14px;
  transition: opacity .3s, transform .4s var(--ease); pointer-events: none; max-width: calc(100% - 32px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1180px) {
  .header .header__call { display: grid; width: 44px; height: 44px; }
  .nav + .header__side { margin-left: auto; gap: 8px; }
  .burger { margin-right: -11px; } /* смужки бургера — рівно по краю сітки, як логотип зліва */
  .mega { display: none; }
}
@media (max-width: 900px) {
  .style-row { grid-template-columns: 26px 56px minmax(0, 1fr) 36px; gap: 12px; }
  .style-row__name { font-size: clamp(26px, 7.4vw, 40px); }
  .style-row__thumb { width: 56px; height: 72px; filter: none; }
  .style-row__go { width: 36px; height: 36px; }
  .wall { height: 90vh; min-height: 560px; }
  .wall__cols { grid-template-columns: repeat(3, 1fr); inset: -15% -20%; }
  .wall__col:nth-child(n+4) { display: none; }
  .bwall { width: 100%; opacity: .1; }
  .insta__grid { grid-template-columns: repeat(4, 1fr); }
  .insta__grid img:nth-child(n+5) { display: none; }
  .insta__cap { font-size: 11px; padding: 12px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .bwall__col { animation: none; }
}

.menu-open .ant, .lightbox[open] ~ .ant { opacity: 0 !important; }

/* ===== віяло карток з роботами (замість арки — вона виглядала як надгробок) ===== */
.deck {
  --h: min(66vh, 600px);
  position: absolute; z-index: -2; right: 10vw; top: 52%;
  height: var(--h); width: calc(var(--h) * .7);
  transform: translateY(-50%);
}
.deck__card {
  position: absolute; inset: 0; padding: 0; overflow: hidden; border-radius: 4px; background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .65), 0 0 0 1px rgba(207, 199, 135, .3);
  transform-origin: 50% 120%;
  transform: rotate(var(--rot, 0deg)) translateY(var(--ty, 0)) scale(var(--s, 1));
  filter: brightness(var(--b, 1));
  opacity: 0;
  transition: transform .9s var(--ease), filter .6s var(--ease), opacity .6s var(--ease), box-shadow .3s;
}
.is-loaded .deck__card { opacity: 1; }
.deck__card.is-hidden { opacity: 0 !important; pointer-events: none; }
.deck__card img { width: 100%; height: 100%; object-fit: cover; }
.deck__card.is-top { box-shadow: 0 30px 80px rgba(0, 0, 0, .65), 0 0 0 1px rgba(207, 199, 135, .6); }
.deck__card:not(.is-top):hover { filter: brightness(.9); }
.deck__card.is-out {
  transform: translate(-75%, -4%) rotate(-22deg) scale(.92); opacity: 0 !important;
  transition: transform .62s var(--ease-in), opacity .45s .15s;
}
.deck__cap {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: end;
  padding: 70px 20px 18px; background: linear-gradient(0deg, rgba(0, 0, 0, .82), transparent);
  opacity: 0; transition: opacity .4s;
}
.deck__card.is-top .deck__cap { opacity: 1; }
.deck .hero__mark { z-index: 30; right: -56px; bottom: 12%; }

@media (max-width: 900px) {
  .deck { --h: min(52svh, 480px); position: relative; right: auto; top: auto; transform: none; margin: 10px auto 52px; flex: none; }
  .deck .hero__mark { width: 74px; right: -18px; }
}

/* портфоліо: колонки збирає JS (найкоротша колонка), CSS лише розкладає їх у ряд */
.works { columns: auto; display: flex; align-items: flex-start; gap: 14px; }
.works__col { flex: 1 1 0; min-width: 0; display: grid; gap: 14px; }
.works .work { margin: 0; }
@media (max-width: 560px) {
  .works, .works__col { gap: 8px; }
}

/* добірка найкращих на головній: рівна сітка 4×3 (телефон — 2 в ряд) */
.works.works--grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.works--grid .work { aspect-ratio: 3 / 4; }
.works--grid .work img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .works.works--grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

[hidden] { display: none !important; }

/* ================= ДВИЖОК: ВНУТРІШНІ СТОРІНКИ ================= */
.deck__card { display: block; }
.service { color: inherit; text-decoration: none; transition: background .4s var(--ease); }
.service:hover h3 { color: var(--gold); }
.link { color: var(--gold); border-bottom: 1px solid currentColor; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.h2-sm { margin: 0 0 32px; font: 400 clamp(34px, 4vw, 56px)/1 var(--f-display); }
.sec-head .btn { align-self: end; }
.empty { color: var(--ink-2); padding: 40px 0; }

/* шапка внутрішньої сторінки */
.phero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(40px, 6vw, 88px)) 0 clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.phero__rings { position: absolute; inset: 0; z-index: -1; background: url(../img/brand/rings.webp) 100% 40% / auto 150% no-repeat; opacity: .16; mask-image: linear-gradient(90deg, transparent 20%, #000 80%); -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 80%); }
.phero__h1 { margin: 0; max-width: 16ch; font: 400 clamp(46px, 7vw, 112px)/.92 var(--f-display); letter-spacing: -.015em; }
.phero__lead { max-width: 640px; margin: 28px 0 0; color: var(--ink-2); font-size: 18px; }
.phero__cta { opacity: 1; transform: none; margin-top: 32px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 28px; padding: 0; font: 500 11px/1.4 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.crumbs li + li::before { content: '/'; margin-right: 10px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current] { color: var(--gold); }

/* фільтр стилів — посилання */
.filters .chip { display: inline-flex; align-items: center; text-decoration: none; }
.filters .chip[aria-current] { background: var(--gold); border-color: var(--gold); color: var(--bg); }

/* сітка робіт без JS — рівна сітка; з JS — мейсонрі колонками */
.works--flat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; columns: auto; }
.works--flat .work { aspect-ratio: 3 / 4; }
.works--flat .work img { width: 100%; height: 100%; object-fit: cover; }
.works--flat.is-masonry { display: flex; align-items: flex-start; }
.works--flat.is-masonry .work { aspect-ratio: auto; }
.works--flat.is-masonry .work img { height: auto; }

/* текст з адмінки */
.rich { max-width: 760px; color: var(--ink-2); font-size: 17px; }
.rich > :first-child { margin-top: 0; }
.rich h2 { margin: 1.6em 0 .5em; color: var(--ink); font: 400 clamp(30px, 3vw, 42px)/1.05 var(--f-display); }
.rich h3 { margin: 1.4em 0 .4em; color: var(--ink); font: 400 26px/1.15 var(--f-display); }
.rich p { margin: 0 0 1em; }
.rich ul, .rich ol { margin: 0 0 1.2em; padding-left: 22px; display: grid; gap: 8px; }
.rich li::marker { color: var(--gold); }
.rich strong, .rich b { color: var(--ink); font-weight: 600; }
.rich a { color: var(--gold); border-bottom: 1px solid currentColor; }
.rich blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--gold); color: var(--ink); font: italic 22px/1.4 'Cormorant Garamond', Georgia, serif; }
.rich--seo { font-size: 15px; columns: 2 340px; column-gap: 48px; max-width: none; }
.rich--article { margin: 0 auto; }

/* сторінка послуги */
.svc { display: grid; grid-template-columns: 1fr 360px; gap: clamp(32px, 6vw, 96px); align-items: start; }
.svc__side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; padding: 28px; border: 1px solid var(--line-2); background: var(--surface); }
.svc__price { display: grid; gap: 6px; }
.svc__price strong { font: 400 46px/1 var(--f-display); color: var(--gold); }
.svc__price p { margin: 0; color: var(--ink-2); font-size: 14px; }
.svc__list { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.svc__list li { position: relative; padding-left: 18px; }
.svc__list li::before { content: ''; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ціни */
.ptable { border-top: 1px solid var(--line); }
.ptable__row { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 4px 16px; padding: 22px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.ptable__row:hover .ptable__name { color: var(--gold); }
.ptable__name { font: 400 clamp(24px, 2.4vw, 32px)/1.1 var(--f-display); transition: color .3s; }
.ptable__dots { border-bottom: 1px dotted var(--line-2); transform: translateY(-6px); }
.ptable__price { font: 400 clamp(24px, 2.4vw, 32px)/1 var(--f-display); color: var(--gold); white-space: nowrap; }
.ptable__note { grid-column: 1 / -1; color: var(--ink-3); font-size: 14px; }

/* блог */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--line); background: var(--surface); color: inherit; text-decoration: none; transition: border-color .3s, transform .5s var(--ease); }
.post-card:hover { border-color: rgba(207, 199, 135, .5); transform: translateY(-4px); }
.post-card__img { aspect-ratio: 16 / 10; overflow: hidden; margin: -28px -28px 8px; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__h { margin: 0; font: 400 28px/1.1 var(--f-display); }
.post-card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.post-card__go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font: 600 11px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; }
.post-card__go svg { width: 16px; height: 16px; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pager .chip { display: inline-grid; place-items: center; min-width: 40px; }
.pager .chip[aria-current] { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.article__cover { margin: 0 auto 40px; max-width: 960px; }

@media (max-width: 900px) {
  .svc { grid-template-columns: 1fr; }
  .svc__side { position: static; }
  .posts { grid-template-columns: 1fr; }
  .works--flat { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ptable__row { grid-template-columns: 1fr auto; }
  .ptable__dots { display: none; }
  .phero__lead { font-size: 16px; }
}

/* віяло з 3 робіт праворуч у шапці внутрішньої сторінки */
.phero__side { position: absolute; right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); top: calc(var(--header-h) + 40px); bottom: 40px; width: min(30vw, 380px); z-index: 1; }
.phero__card { position: absolute; left: 50%; top: 50%; width: 62%; aspect-ratio: 3 / 4; margin: 0; border-radius: 4px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(207, 199, 135, .25); transition: transform .7s var(--ease), filter .4s; }
.phero__card img { width: 100%; height: 100%; object-fit: cover; }
.phero__card--0 { transform: translate(-50%, -50%) rotate(-2deg); z-index: 3; }
.phero__card--1 { transform: translate(-92%, -46%) rotate(-12deg); z-index: 2; filter: brightness(.7); }
.phero__card--2 { transform: translate(-8%, -44%) rotate(10deg); z-index: 1; filter: brightness(.6); }
.phero__side:hover .phero__card--1 { transform: translate(-108%, -46%) rotate(-16deg); filter: brightness(.9); }
.phero__side:hover .phero__card--2 { transform: translate(8%, -44%) rotate(14deg); filter: brightness(.9); }
.phero .wrap { position: relative; z-index: 2; }
.phero__lead, .phero__h1 { max-width: min(640px, 58vw); }
@media (max-width: 1100px) { .phero__side { display: none; } .phero__lead, .phero__h1 { max-width: none; } }

/* ===== спливаюче вікно запису ===== */
.modal { width: min(640px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.modal::backdrop { background: rgba(5, 5, 4, .78); backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn .45s var(--ease); }
.modal[open]::backdrop { animation: fadeIn .35s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.modal__box { position: relative; max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 40px 120px rgba(0, 0, 0, .7); }
.modal__head { padding: 32px 32px 0; display: grid; gap: 12px; }
.modal__title { margin: 0; padding-right: 48px; font: 400 clamp(32px, 4vw, 44px)/1 var(--f-display); }
.modal__channels { display: flex; gap: 8px; }
.modal__channels .icon-btn { width: 42px; height: 42px; }
.modal .form { border: 0; background: transparent; backdrop-filter: none; padding: 24px 32px 32px; opacity: 1; transform: none; }
.modal .form__title { display: none; }
.modal__close { position: absolute; right: 16px; top: 16px; z-index: 2; background: var(--bg-2); }
.modal-open body { overflow: hidden; }
.modal-open .ant, .modal-open .mbar { opacity: 0 !important; pointer-events: none; }
@media (max-width: 560px) {
  .modal { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; inset: 0; }
  .modal__box { max-height: 100dvh; height: 100%; border: 0; }
  .modal__head { padding: 24px 16px 0; }
  .modal .form { padding: 20px 16px calc(24px + env(safe-area-inset-bottom)); }
}

/* Вікно запису й лайтбокс браузер показує у верхньому шарі — над курсором-голкою.
   Поки вони відкриті, повертаємо звичайний курсор миші, а голку ховаємо. */
body.cursor-on dialog, body.cursor-on dialog * { cursor: auto; }
body.cursor-on dialog a, body.cursor-on dialog button, body.cursor-on dialog label, body.cursor-on dialog select,
body.cursor-on dialog summary, body.cursor-on dialog .seg label { cursor: pointer; }
body.cursor-on dialog input, body.cursor-on dialog textarea { cursor: text; }
body:has(dialog[open]) .cursor, .modal-open .cursor { opacity: 0; }
