/* ═════════ Вінниця Граніт — концепція «Карбування» ═════════ */
:root {
  --bg: #F6F4F0; --surface: #FFFFFF; --surface-alt: #ECE8E1; --dark: #1F2326;
  --text: #1F2326; --text-muted: #5C625F; --text-on-dark: #F6F4F0;
  --primary: #2B3033; --primary-hover: #1A1D1F;
  --accent: #8C6A43; --accent-hover: #735636; --accent-light: #C9A878;
  --border: #D8D3CA; --success: #4F6B55; --error: #9B3D3D;

  --f-display: "Forum", "Times New Roman", serif;
  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 14px; --r-lg: 22px;
  --pad: clamp(16px, 4vw, 56px);
  --sec: clamp(56px, 7vw, 92px);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --bronze: linear-gradient(135deg, #E2C796 0%, #B48D5C 45%, #8C6A43 70%, #C9A878 100%);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--f-body); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
svg { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-light); color: var(--dark); }
[hidden] { display: none !important; }

/* ── Типографіка ── */
.h2 {
  font: 400 clamp(32px, 4.4vw, 58px)/1.04 var(--f-display);
  margin: 0; letter-spacing: -.005em; color: var(--primary);
  /* ефект вибитих літер */
  text-shadow: 0 1px 0 rgba(255,255,255,.85), 0 -1px 0 rgba(0,0,0,.12);
}
.h2--light { color: var(--text-on-dark); text-shadow: 0 2px 0 rgba(0,0,0,.45), 0 -1px 0 rgba(255,255,255,.06); }
.h2__ital { background: var(--bronze); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.kicker {
  font: 600 12px/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-light); margin: 0 0 16px; display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.kicker--dark { color: var(--accent); }

/* ── Кнопки ── */
.btn {
  --bg-b: var(--primary); --fg-b: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--bg-b); color: var(--fg-b); font-weight: 600; font-size: 15px;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .3s var(--ease), background .3s, box-shadow .3s, color .3s;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn::after { /* полірувальний відблиск */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 48%, transparent 66%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: scale(.97); }
.btn--accent { --bg-b: var(--accent); box-shadow: 0 10px 24px -12px rgba(140,106,67,.8); }
.btn--accent:hover { --bg-b: var(--accent-hover); }
.btn--accent-light { --bg-b: var(--accent-light); --fg-b: var(--dark); }
.btn--primary:hover { --bg-b: var(--primary-hover); }
.btn--light { --bg-b: var(--bg); --fg-b: var(--dark); }
.btn--ghost { --bg-b: transparent; --fg-b: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary); }
.btn--ghost:hover { --bg-b: var(--primary); --fg-b: #fff; }
.btn--ghost-light { --bg-b: transparent; --fg-b: var(--text-on-dark); box-shadow: inset 0 0 0 1.5px rgba(246,244,240,.4); }
.btn--ghost-light:hover { box-shadow: inset 0 0 0 1.5px var(--accent-light); --fg-b: var(--accent-light); }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.glass { background: rgba(255,255,255,.55); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border: 1px solid rgba(255,255,255,.6); }
.glass-dark { background: linear-gradient(160deg, rgba(43,48,51,.78), rgba(26,29,31,.86)); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(201,168,120,.18); }

/* ═════════ Прелоадер ═════════ */
.loader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; pointer-events: none; }
.loader__slab { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--dark); }
.loader__slab::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .09; mix-blend-mode: screen; }
.loader__slab--top { top: 0; border-bottom: 1px solid rgba(201,168,120,.25); }
.loader__slab--bot { bottom: 0; }
.loader__core { position: relative; z-index: 2; display: grid; justify-items: center; gap: 22px; }
.loader__mark { width: 110px; height: auto; overflow: visible; }
.loader__mark path { stroke: var(--accent-light); stroke-width: .8; fill: transparent; stroke-linecap: round; }
.loader__mark .lm-stele { fill: #2B3033; stroke: rgba(201,168,120,.35); }
.loader__chisel { position: absolute; width: 18px; height: 45px; top: 0; left: 50%; transform-origin: 50% 100%; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
.loader__chips { position: absolute; inset: 0; pointer-events: none; }
.loader__chips i { position: absolute; width: 3px; height: 3px; background: var(--accent-light); border-radius: 1px; }
.loader__txt { margin: 0; font: 500 12px/1 var(--f-body); letter-spacing: .3em; text-transform: uppercase; color: rgba(246,244,240,.7); }
.loader__txt b { color: var(--accent-light); font-weight: 600; }
.loader.done { display: none; }

/* ═════════ Курсор-зубило ═════════ */
.chisel-cursor, .dust-canvas { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor, .has-cursor a, .has-cursor button, .has-cursor [role="tab"], .has-cursor label, .has-cursor summary { cursor: none; }
  .has-cursor input, .has-cursor textarea, .has-cursor select, .has-cursor canvas { cursor: auto; }
  .has-cursor input[type="range"] { cursor: none; }
  .has-cursor .chisel-cursor {
    display: block; position: fixed; left: 0; top: 0; z-index: 300; width: 16px; height: 40px; pointer-events: none;
    transform-origin: 50% 100%; will-change: transform; filter: drop-shadow(2px 4px 4px rgba(0,0,0,.35));
  }
  .has-cursor .chisel-cursor svg { width: 100%; height: 100%; transition: transform .25s var(--ease); transform-origin: 50% 100%; }
  .has-cursor .chisel-cursor.hit svg { transform: rotate(-22deg) translateY(-3px); }
  .has-cursor .chisel-cursor.hide { opacity: 0; }
  .has-cursor .dust-canvas { display: block; position: fixed; inset: 0; z-index: 299; pointer-events: none; }
}

/* ═════════ Шапка ═════════ */
.hdr {
  position: fixed; inset: 12px var(--pad) auto; z-index: 90;
  display: flex; align-items: center; gap: 22px; padding: 8px 10px 8px 18px; border-radius: 999px;
  transition: background .4s, box-shadow .4s, transform .5s var(--ease);
}
.hdr.scrolled { background: rgba(246,244,240,.72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 10px 30px -18px rgba(31,35,38,.45), inset 0 0 0 1px rgba(216,211,202,.7); }
.hdr.hidden { transform: translateY(-130%); }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { width: 30px; height: auto; }
.brand__txt { display: grid; line-height: 1.05; }
.brand__txt b { font: 400 21px/1 var(--f-display); letter-spacing: .02em; color: var(--primary); }
.brand__txt small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; }
.hdr__nav { display: flex; gap: 4px; }
.hdr__nav a { padding: 9px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--text-muted); transition: color .25s, background .25s; }
.hdr__nav a:hover { color: var(--primary); background: rgba(140,106,67,.1); }
.hdr__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.hdr__phone svg { color: var(--accent); width: 18px; height: 18px; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--primary); position: relative; z-index: 2; }
.burger i { position: absolute; left: 14px; right: 14px; height: 1.6px; background: #fff; transition: transform .45s var(--ease), opacity .3s; }
.burger i:nth-child(1) { top: 17px; } .burger i:nth-child(2) { top: 22.5px; right: 19px; } .burger i:nth-child(3) { top: 28px; }
.menu-open .burger i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-open .burger i:nth-child(2) { opacity: 0; }
.menu-open .burger i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Меню-плити */
.menu { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; justify-content: center; padding: 90px var(--pad) 32px; visibility: hidden; }
.menu.open { visibility: visible; }
.menu::before { content: ""; position: absolute; inset: 0; background: rgba(31,35,38,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .45s; }
.menu.open::before { opacity: 1; }
.menu__slabs { position: relative; display: grid; gap: 6px; }
.slab {
  position: relative; display: flex; align-items: baseline; gap: 16px; padding: 16px 22px; border-radius: 10px;
  font: 400 clamp(26px, 6.4vw, 40px)/1.1 var(--f-display); color: var(--text-on-dark);
  background: linear-gradient(100deg, #2B3033, #1A1D1F); box-shadow: 0 14px 30px -18px #000, inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden; transform: translateX(var(--from, -110%)); opacity: 0;
}
.slab::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .12; mix-blend-mode: screen; }
.slab:nth-child(even) { --from: 110%; background: linear-gradient(100deg, #1A1D1F, #2B3033); }
.slab em { font: 600 12px/1 var(--f-body); font-style: normal; color: var(--accent-light); letter-spacing: .12em; }
.slab:hover { color: var(--accent-light); }
.menu__foot { position: relative; margin-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: rgba(246,244,240,.75); font-size: 14px; opacity: 0; transition: opacity .4s .3s; }
.menu.open .menu__foot { opacity: 1; }
.menu__phone { color: var(--accent-light); font-weight: 600; font-size: 18px; }

/* ═════════ HERO ═════════ */
.hero {
  position: relative; min-height: 100svh; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(20px, 3vw, 48px);
  padding: 110px var(--pad) 48px;
  background: radial-gradient(120% 80% at 85% 20%, #ECE8E1 0%, transparent 60%), var(--bg);
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; font-size: 13.5px; font-weight: 500; color: var(--text-muted); padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(79,107,85,.18); }
.hero__title { margin: 0; font: 400 clamp(52px, 8.2vw, 124px)/.92 var(--f-display); letter-spacing: -.012em; color: var(--primary); }
.hero__title .ln { display: block; }
.engrave { display: inline-block; text-shadow: 0 2px 0 rgba(255,255,255,.9), 0 -2px 0 rgba(0,0,0,.1); }
.hero__in { background: var(--bronze); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 1px 0 rgba(255,255,255,.8)); }
.hero__lead { max-width: 520px; margin: 26px 0 30px; font-size: clamp(16px, 1.3vw, 18.5px); color: var(--text-muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { list-style: none; padding: 0; margin: 38px 0 0; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--border); }
.hero__facts li { padding: 16px 26px 0 0; margin-right: 26px; display: grid; gap: 2px; }
.hero__facts li + li { border-left: 1px solid var(--border); padding-left: 26px; }
.hero__facts b { font: 400 22px/1.1 var(--f-display); color: var(--primary); }
.hero__facts span { font-size: 13px; color: var(--text-muted); }

.hero__stage { position: relative; height: min(78svh, 760px); }
.niche {
  position: absolute; inset: 0; border-radius: 999px 999px 26px 26px; overflow: hidden;
  background: radial-gradient(80% 55% at 50% 38%, #3a4044 0%, #23282b 55%, #15181a 100%);
  box-shadow: inset 0 0 0 1px rgba(201,168,120,.25), inset 0 30px 80px -30px rgba(0,0,0,.8), 0 40px 80px -40px rgba(31,35,38,.7);
}
.niche::before { content: ""; position: absolute; inset: 14px; border-radius: inherit; border: 1px solid rgba(201,168,120,.22); pointer-events: none; z-index: 2; }
.niche::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .07; mix-blend-mode: screen; pointer-events: none; }
.niche canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.niche__cap { position: absolute; left: 0; right: 0; bottom: 22px; margin: 0; text-align: center; font-size: 12.5px; letter-spacing: .08em; color: rgba(246,244,240,.6); z-index: 3; }
.hotspot { position: absolute; left: 0; top: 0; z-index: 4; display: flex; align-items: center; gap: 10px; opacity: 0; transition: opacity .5s; will-change: transform; }
.hotspot.on { opacity: 1; }
.hotspot button { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(201,168,120,.22); box-shadow: inset 0 0 0 1px var(--accent-light); transform: translate(-50%, -50%); }
.hotspot button i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-light); animation: ping 2.4s infinite; }
.hotspot span {
  position: absolute; left: 14px; top: 0; transform: translate(0, -50%) scale(.92); transform-origin: left center; white-space: nowrap;
  font-size: 12.5px; font-weight: 500; color: var(--text-on-dark); padding: 8px 12px; border-radius: 10px;
  background: rgba(31,35,38,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(201,168,120,.3);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.hotspot.left span { left: auto; right: 14px; transform-origin: right center; }
.hotspot:hover span, .hotspot.show span, .hotspot button:focus-visible + span { opacity: 1; transform: translate(0, -50%) scale(1); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(201,168,120,.7); } 70%, 100% { box-shadow: 0 0 0 12px rgba(201,168,120,0); } }

/* Стрічка */
.ribbon { background: var(--primary); color: var(--accent-light); overflow: hidden; padding: 15px 0; border-block: 1px solid rgba(201,168,120,.25); }
.ribbon__track { display: flex; gap: 28px; width: max-content; animation: marquee 38s linear infinite; font: 400 21px/1 var(--f-display); letter-spacing: .04em; white-space: nowrap; }
.ribbon__track i { font-style: normal; font-size: 12px; opacity: .6; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ═════════ КОНСТРУКТОР ═════════ */
.builder { position: relative; padding: var(--sec) var(--pad); background: radial-gradient(70% 60% at 30% 40%, #2c3236 0%, var(--dark) 70%); color: var(--text-on-dark); overflow: clip; }
.builder::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .06; mix-blend-mode: screen; pointer-events: none; }
.builder__head { position: relative; max-width: 860px; margin-bottom: 34px; }
.builder__sub { margin: 16px 0 0; color: rgba(246,244,240,.72); max-width: 640px; }
.builder__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(360px, .9fr); gap: 20px; align-items: stretch; }
.stage { position: relative; min-height: 620px; border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(70% 70% at 50% 35%, #F6F4F0 0%, #ddd7cd 60%, #b9b2a6 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; touch-action: none; }
.stage__views { position: absolute; left: 14px; top: 14px; display: flex; padding: 4px; border-radius: 999px; gap: 2px; z-index: 2; }
.stage__views button { min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--primary); transition: background .25s, color .25s; }
.stage__views button.on, .stage__views button:hover { background: var(--primary); color: #fff; }
.stage__dims { position: absolute; right: 14px; top: 14px; padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--primary); z-index: 2; }
.stage__hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: inline-flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--text-muted); background: rgba(255,255,255,.6); padding: 7px 14px; border-radius: 999px; pointer-events: none; transition: opacity .6s; z-index: 2; }
.stage__hint svg { width: 18px; height: 18px; }
.stage.touched .stage__hint { opacity: 0; }
.stage__loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--primary); font-weight: 500; transition: opacity .5s; z-index: 3; }
.stage__loading span { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--accent); animation: spin 1s linear infinite; }
.stage.ready .stage__loading { opacity: 0; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.panel { border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; min-width: 0; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0,0,0,.25); margin-bottom: 18px; }
.steps button { display: grid; justify-items: center; gap: 3px; padding: 8px 2px; border-radius: 10px; font-size: 12px; font-weight: 500; color: rgba(246,244,240,.62); transition: background .3s, color .3s; min-height: 48px; }
.steps button b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; box-shadow: inset 0 0 0 1px currentColor; }
.steps button[aria-selected="true"] { background: rgba(201,168,120,.16); color: var(--accent-light); }
.steps button[aria-selected="true"] b { background: var(--accent-light); color: var(--dark); box-shadow: none; }
.pane { flex: 1; animation: paneIn .45s var(--ease); }
@keyframes paneIn { from { opacity: 0; transform: translateY(10px); } }
.pane__q { margin: 0 0 12px; font: 400 23px/1.15 var(--f-display); color: var(--text-on-dark); }
.pane__q--sm { font-size: 18px; margin-top: 18px; }
.pane__note { font-size: 13px; color: rgba(246,244,240,.55); margin: 14px 0 0; }

.persons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.persons button { display: grid; justify-items: center; gap: 6px; padding: 18px 8px 14px; border-radius: 16px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(246,244,240,.12); transition: background .3s, box-shadow .3s, transform .3s var(--ease); }
.persons button:hover { transform: translateY(-3px); }
.persons button.on { background: rgba(201,168,120,.13); box-shadow: inset 0 0 0 1.5px var(--accent-light); }
.persons b { font-weight: 600; font-size: 15px; }
.persons small { font-size: 12px; color: rgba(246,244,240,.55); }
.pp { display: flex; align-items: flex-end; gap: 3px; height: 48px; }
.pp i { width: 22px; height: 40px; border-radius: 11px 11px 3px 3px; background: linear-gradient(180deg, #4a5156, #2B3033); box-shadow: inset 0 0 0 1px rgba(201,168,120,.45); }
.pp i:nth-child(2) { height: 46px; }
.on .pp i { background: linear-gradient(180deg, #d9bc8c, #8C6A43); }

.shapes { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.shapes button, .stones button, .fonts button, .extras button {
  border-radius: 14px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(246,244,240,.12);
  transition: background .3s, box-shadow .3s, transform .3s var(--ease), opacity .3s;
}
.shapes button { display: grid; justify-items: center; gap: 6px; padding: 12px 6px 10px; font-size: 12.5px; font-weight: 500; }
.shapes svg { width: 48px; height: 48px; }
.shapes svg path { fill: #2B3033; stroke: var(--accent-light); stroke-width: 1.2; }
.shapes button.on, .stones button.on, .fonts button.on, .extras button.on { background: rgba(201,168,120,.13); box-shadow: inset 0 0 0 1.5px var(--accent-light); }
.shapes button.on svg path { fill: url(#none); fill: #8C6A43; }
.shapes button:disabled { opacity: .3; cursor: not-allowed; }
.shapes button:not(:disabled):hover, .stones button:hover, .fonts button:hover, .extras button:hover { transform: translateY(-2px); }

.stones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stones button { display: flex; align-items: center; gap: 12px; padding: 10px; text-align: left; }
.stones i { width: 44px; height: 44px; border-radius: 10px; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 6px 12px -6px #000; }
.stones b { display: block; font-size: 14px; font-weight: 600; }
.stones small { display: block; font-size: 11.5px; color: rgba(246,244,240,.55); line-height: 1.3; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; box-shadow: inset 0 0 0 1px rgba(246,244,240,.2); transition: background .25s, color .25s, box-shadow .25s; }
.chips button.on { background: var(--accent-light); color: var(--dark); box-shadow: none; }
.chips button:hover:not(.on) { box-shadow: inset 0 0 0 1px var(--accent-light); }
.chips--sm { margin-top: 8px; }
.chips--sm button { min-height: 34px; font-size: 12.5px; padding: 0 12px; color: rgba(246,244,240,.75); }

.fonts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fonts button { display: grid; justify-items: center; padding: 10px 4px 8px; gap: 2px; }
.fonts span { font-size: 26px; line-height: 1.1; color: var(--accent-light); }
.fonts small { font-size: 11px; color: rgba(246,244,240,.6); }

.person { border-radius: 14px; padding: 12px; background: rgba(0,0,0,.18); margin-bottom: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.person__h { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-light); }
.person .field:nth-of-type(1), .person .field:nth-of-type(2) { grid-column: 1 / -1; }
.upload { position: relative; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--text-on-dark); padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(246,244,240,.25); cursor: pointer; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload.has { background: var(--success); box-shadow: none; }

.field { display: grid; gap: 5px; font-size: 12px; color: rgba(246,244,240,.6); }
.field span { font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(246,244,240,.16);
  background: rgba(255,255,255,.06); color: var(--text-on-dark); font: 400 16px/1.35 var(--f-body); transition: border-color .25s, background .25s;
}
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent-light); background: rgba(255,255,255,.09); }
.pane .field { margin-top: 16px; }
.person .field { margin-top: 0; }

.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.extras button { display: grid; gap: 4px; padding: 14px; text-align: left; position: relative; }
.extras b { font-size: 14px; font-weight: 600; }
.extras small { font-size: 12.5px; color: var(--accent-light); }
.extras button::after { content: ""; position: absolute; right: 12px; top: 12px; width: 18px; height: 18px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px rgba(246,244,240,.35); transition: background .25s, box-shadow .25s; }
.extras button.on::after { background: var(--accent-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%231F2326' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; box-shadow: none; }

.panel__foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(246,244,240,.1); display: grid; grid-template-columns: 1fr auto; gap: 12px 14px; align-items: center; }
.price small { display: block; font-size: 12px; color: rgba(246,244,240,.55); }
.price b { display: block; font: 400 34px/1.05 var(--f-display); background: var(--bronze); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price span { font-size: 11.5px; color: rgba(246,244,240,.45); }
.panel__nav { display: flex; gap: 8px; }
.panel__foot .btn--block { grid-column: 1 / -1; }
.panel__tools { grid-column: 1 / -1; display: flex; justify-content: center; gap: 18px; }
.panel__tools button { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(246,244,240,.7); min-height: 36px; transition: color .25s; }
.panel__tools button:hover { color: var(--accent-light); }
.panel__tools svg { width: 16px; height: 16px; }

/* ═════════ БЮДЖЕТ ═════════ */
.budget { padding: var(--sec) var(--pad); display: grid; grid-template-columns: minmax(300px, .8fr) 1.6fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.budget__ctrl { position: sticky; top: 100px; }
.budget__lead { color: var(--text-muted); margin: 16px 0 26px; }
.range { padding: 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 20px 40px -30px rgba(31,35,38,.5), inset 0 0 0 1px var(--border); }
.range__val { display: block; font: 400 clamp(40px, 4.4vw, 56px)/1 var(--f-display); color: var(--primary); margin-bottom: 16px; }
.range input { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; }
.range input::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) var(--p, 30%), var(--surface-alt) var(--p, 30%)); }
.range input::-moz-range-track { height: 8px; border-radius: 99px; background: var(--surface-alt); }
.range input::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--accent); }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: var(--primary); border: 4px solid var(--bg); box-shadow: 0 0 0 1.5px var(--accent), 0 6px 14px -4px rgba(0,0,0,.4); transition: transform .2s; }
.range input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--primary); border: 4px solid var(--bg); box-shadow: 0 0 0 1.5px var(--accent); }
.range input:active::-webkit-slider-thumb { transform: scale(1.12); }
.range__scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.budget__count { margin: 20px 0 14px; color: var(--text-muted); }
.budget__count b { font: 400 30px/1 var(--f-display); color: var(--accent); margin-right: 4px; }
.budget__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; min-height: 420px; align-content: start; }
.mcard {
  position: relative; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border); transition: transform .4s var(--ease), box-shadow .4s;
}
.mcard:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--accent-light), 0 24px 40px -28px rgba(31,35,38,.6); }
.mcard__img { position: relative; aspect-ratio: 5 / 6; background: radial-gradient(80% 70% at 50% 35%, #fbfaf8, #e7e2da); }
.mcard__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.mcard__img img.ok { opacity: 1; }
.mcard__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); background-size: 250% 100%; animation: sheen 1.4s infinite; }
.mcard__img.loaded::after { display: none; }
@keyframes sheen { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.mcard__tag { position: absolute; left: 10px; top: 10px; z-index: 1; font-size: 11px; font-weight: 600; letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; background: var(--primary); color: var(--accent-light); }
.mcard__body { padding: 12px 14px 14px; display: grid; gap: 2px; flex: 1; }
.mcard__body h3 { margin: 0; font: 400 19px/1.15 var(--f-display); color: var(--primary); }
.mcard__body p { margin: 0; font-size: 12.5px; color: var(--text-muted); }
.mcard__row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; gap: 8px; }
.mcard__price { font-weight: 700; font-size: 16px; color: var(--primary); white-space: nowrap; }
.mcard__go { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.mcard__go svg { width: 14px; height: 14px; }
.mcard.out { opacity: 0; transform: scale(.94); }

/* ═════════ НАШІ РОБОТИ ═════════ */
.works { padding: var(--sec) var(--pad); background: var(--surface-alt); }
.works__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.works__head p { max-width: 420px; margin: 0; color: var(--text-muted); }
.filters { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-bottom: 24px; }
.filter { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.filter span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-right: 6px; }
.filter button { min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); transition: background .25s, color .25s, box-shadow .25s; }
.filter button.on { background: var(--primary); color: #fff; box-shadow: none; }
.filter button:hover:not(.on) { box-shadow: inset 0 0 0 1px var(--accent); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.work { margin: 0; position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--border); cursor: zoom-in; }
.work.big4 { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.work.big2 { grid-row: span 2; aspect-ratio: auto; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; }
.work:hover img { transform: scale(1.06); }
.work figcaption { position: absolute; inset: auto 0 0; padding: 40px 14px 14px; color: #fff; background: linear-gradient(transparent, rgba(20,22,24,.85)); font-size: 13.5px; line-height: 1.35; }
.work figcaption small { display: flex; gap: 6px; margin-bottom: 6px; }
.work figcaption small i { font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: rgba(201,168,120,.25); color: var(--accent-light); backdrop-filter: blur(4px); }
.work.is-off { display: none; }
.gallery__empty { margin: 18px 0 0; color: var(--text-muted); }
.gallery__empty a { color: var(--accent); font-weight: 600; }

/* ═════════ ГЕРОЯМ ═════════ */
.heroes { padding: var(--sec) var(--pad); background: var(--dark); color: var(--text-on-dark); position: relative; overflow: hidden; }
.heroes::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,87,183,.07), transparent 40%, rgba(255,215,0,.05)); pointer-events: none; }
.heroes__title { position: relative; margin: 0 0 40px; font: 400 clamp(36px, 6vw, 88px)/1.08 var(--f-display); max-width: 1200px; }
.heroes__title img { display: inline-block; vertical-align: middle; width: 1.9em; height: .82em; object-fit: cover; border-radius: 999px; margin: -.12em .06em 0; box-shadow: 0 0 0 1px rgba(201,168,120,.5); transform: rotate(-3deg); }
.heroes__title img + img, .heroes__title img:last-of-type { transform: rotate(3deg); }
.heroes__grid { position: relative; display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 28px 48px; align-items: start; }
.heroes__lead { margin: 0; color: rgba(246,244,240,.78); font-size: 17px; }
.heroes__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: h; }
.heroes__list li { counter-increment: h; padding: 0 0 14px 44px; border-bottom: 1px solid rgba(246,244,240,.12); position: relative; color: rgba(246,244,240,.7); font-size: 15px; }
.heroes__list li::before { content: "0" counter(h); position: absolute; left: 0; top: 2px; font: 400 18px/1 var(--f-display); color: var(--accent-light); }
.heroes__list b { display: block; color: var(--text-on-dark); font-weight: 600; margin-bottom: 2px; }

/* ═════════ ПРОЦЕС ═════════ */
.process { position: relative; padding: var(--sec) var(--pad); max-width: 1180px; margin: 0 auto; }
.process__h { text-align: center; margin-bottom: 44px; }
.process__line { position: absolute; left: 50%; top: calc(var(--sec) + 120px); bottom: var(--sec); width: 2px; background: var(--border); transform: translateX(-50%); }
.process__fill { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--bronze); transform-origin: top; transform: scaleY(0); }
.process__chisel { position: absolute; left: 50%; top: 0; width: 18px; height: 45px; transform: translate(-50%, -100%) rotate(180deg); filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }
.process__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.process__steps li { position: relative; width: calc(50% - 46px); padding: 22px 24px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.process__steps li:nth-child(even) { margin-left: auto; }
.process__steps li::after { content: ""; position: absolute; top: 30px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--accent); }
.process__steps li:nth-child(odd)::after { right: -53px; }
.process__steps li:nth-child(even)::after { left: -53px; }
.process__steps .n { font: 400 15px/1 var(--f-display); color: var(--accent); letter-spacing: .1em; }
.process__steps h3 { margin: 6px 0 6px; font: 400 25px/1.15 var(--f-display); color: var(--primary); }
.process__steps p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* ═════════ ЦИФРИ ═════════ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: end; padding: 0 var(--pad) var(--sec); height: calc(380px + var(--sec)); max-width: 1320px; margin: 0 auto; }
.stat { position: relative; height: var(--h); border-radius: 999px 999px 14px 14px; padding: 0 14px 22px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center;
  background: linear-gradient(180deg, #353b3f, var(--dark)); color: var(--text-on-dark); overflow: hidden; box-shadow: 0 30px 50px -30px rgba(31,35,38,.7); transform-origin: bottom; }
.stat::before { content: ""; position: absolute; inset: 10px; border-radius: inherit; border: 1px solid rgba(201,168,120,.25); }
.stat::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .08; mix-blend-mode: screen; }
.stat b { position: relative; font: 400 clamp(48px, 6vw, 84px)/1 var(--f-display); background: var(--bronze); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { position: relative; font-size: 14px; color: rgba(246,244,240,.72); max-width: 170px; }

/* ═════════ ЗА КОРДОНОМ ═════════ */
.remote { padding: var(--sec) var(--pad); display: grid; grid-template-columns: 1fr minmax(300px, 420px); gap: clamp(28px, 5vw, 80px); align-items: center; background: linear-gradient(180deg, var(--bg), var(--surface-alt)); }
.ticks { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; font-size: 17px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.chat { border-radius: 28px; padding: 14px; box-shadow: 0 40px 70px -40px rgba(31,35,38,.6); background: rgba(255,255,255,.62); }
.chat__top { display: flex; align-items: center; gap: 10px; padding: 6px 8px 12px; border-bottom: 1px solid var(--border); }
.chat__top b { display: block; font-size: 14.5px; }
.chat__top small { color: var(--success); font-size: 12px; }
.chat__body { display: flex; flex-direction: column; gap: 8px; padding: 14px 4px 4px; min-height: 400px; }
.msg { margin: 0; max-width: 84%; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.45; }
.msg--in { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 6px; box-shadow: 0 1px 0 var(--border); }
.msg--out { align-self: flex-end; background: var(--primary); color: var(--text-on-dark); border-bottom-right-radius: 6px; }
.msg--img { padding: 4px; }
.msg--img img { border-radius: 14px; width: 200px; height: 150px; object-fit: cover; }

/* ═════════ ВІДГУКИ ═════════ */
.reviews { padding: var(--sec) var(--pad); background: var(--dark); color: var(--text-on-dark); display: grid; grid-template-columns: minmax(260px, .7fr) 1.3fr; gap: clamp(28px, 5vw, 80px); align-items: center; overflow: hidden; position: relative; }
.reviews::before { content: "“"; position: absolute; right: 2%; top: -8%; font: 400 520px/1 var(--f-display); color: rgba(201,168,120,.06); pointer-events: none; }
.rating { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; margin: 26px 0 30px; }
.rating b { grid-row: span 2; font: 400 64px/1 var(--f-display); color: var(--accent-light); }
.stars { display: flex; gap: 3px; color: var(--accent-light); }
.stars svg { width: 18px; height: 18px; }
.rating small { color: rgba(246,244,240,.6); font-size: 13px; }
.deck__nav { display: flex; align-items: center; gap: 16px; }
.round { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(246,244,240,.25); transition: background .3s, box-shadow .3s, color .3s; }
.round svg { width: 20px; height: 20px; }
.round:hover { background: var(--accent-light); color: var(--dark); box-shadow: none; }
.deck__count { font: 400 18px/1 var(--f-display); color: rgba(246,244,240,.6); }
.deck__count b { color: var(--text-on-dark); font-weight: 400; font-size: 26px; }
.deck__bar { height: 2px; background: rgba(246,244,240,.12); margin-top: 22px; max-width: 260px; border-radius: 2px; overflow: hidden; }
.deck__bar i { display: block; height: 100%; width: 0; background: var(--accent-light); }
.deck { position: relative; height: 360px; touch-action: pan-y; }
.card {
  position: absolute; inset: 0; margin: 0 auto; max-width: 640px; padding: clamp(24px, 3vw, 40px); border-radius: 22px;
  background: linear-gradient(160deg, #F6F4F0, #ECE8E1); color: var(--text); display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); transform-origin: 50% 100%; will-change: transform; user-select: none;
}
.card p { margin: 0; font: 400 clamp(20px, 2.2vw, 28px)/1.35 var(--f-display); color: var(--primary); }
.card footer { display: flex; flex-direction: column; gap: 2px; padding-top: 18px; border-top: 1px solid var(--border); }
.card footer b { font-size: 15px; }
.card footer span { font-size: 13px; color: var(--text-muted); }

/* ═════════ FAQ ═════════ */
.faq { padding: var(--sec) var(--pad); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 4vw, 64px); align-items: start; max-width: 1320px; margin: 0 auto; }
.faq__aside { position: sticky; top: 100px; display: grid; gap: 28px; }
.faq__list { display: grid; gap: 10px; }
.qa { border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; transition: box-shadow .3s; }
.qa[open] { box-shadow: inset 0 0 0 1.5px var(--accent-light); }
.qa summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-weight: 600; font-size: 16.5px; cursor: pointer; min-height: 56px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { position: relative; width: 30px; height: 30px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1.5px var(--accent); transition: background .3s, transform .45s var(--ease); }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; background: var(--accent); transform: translate(-50%, -50%); transition: transform .45s var(--ease), background .3s; }
.qa summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa.is-open summary i { background: var(--accent); transform: rotate(180deg); }
.qa.is-open summary i::before { background: #fff; }
.qa.is-open summary i::after { transform: translate(-50%, -50%) rotate(0deg); background: #fff; }
.qa__a { overflow: hidden; }
.qa__a p { margin: 0; padding: 0 22px 20px; color: var(--text-muted); }

/* ═════════ КОНТАКТИ ═════════ */
.contacts { padding: var(--sec) var(--pad); background: var(--dark); color: var(--text-on-dark); display: grid; grid-template-columns: minmax(300px, .85fr) 1.15fr; gap: clamp(24px, 4vw, 56px); }
.contacts__lead { color: rgba(246,244,240,.72); margin: 16px 0 22px; }
.clist { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.clist li { display: flex; align-items: center; gap: 14px; font-size: 17px; }
.clist svg { width: 22px; height: 22px; color: var(--accent-light); }
.clist a { font-weight: 600; }
.contacts__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.shop { margin: 26px 0 0; position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; }
.shop img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.shop figcaption { position: absolute; left: 12px; bottom: 12px; font-size: 12.5px; padding: 6px 12px; border-radius: 999px; background: rgba(31,35,38,.7); backdrop-filter: blur(6px); }
.map { position: relative; border-radius: 26px; overflow: hidden; min-height: 520px; background: #2B3033; box-shadow: 0 0 0 1px rgba(201,168,120,.3); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) sepia(.32) contrast(1.08) brightness(.9) hue-rotate(-8deg); transition: filter .8s; }
.map:hover iframe { filter: grayscale(.4) sepia(.15) contrast(1.02) brightness(.98); }
.map::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 80px rgba(31,35,38,.55); }
.map__card { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 18px; color: var(--text); background: rgba(246,244,240,.82); }
.map__card div { flex: 1; display: grid; line-height: 1.3; }
.map__card b { font: 400 19px/1.1 var(--f-display); }
.map__card span { font-size: 13px; color: var(--text-muted); }
.map__card a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 14px; font-weight: 600; min-height: 44px; }
.map__corner { position: absolute; width: 38px; height: 38px; z-index: 2; pointer-events: none; border: 2px solid var(--accent-light); }
.map__corner.tl { left: 14px; top: 14px; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.map__corner.br { right: 14px; top: 14px; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }

/* ═════════ Футер ═════════ */
.foot { background: #171a1c; color: rgba(246,244,240,.6); padding: 40px var(--pad) 32px; display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: center; font-size: 14px; }
.foot__brand { display: flex; align-items: center; gap: 14px; }
.foot__brand b { display: block; font: 400 22px/1 var(--f-display); color: var(--text-on-dark); }
.foot__nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; }
.foot__nav a:hover { color: var(--accent-light); }
.foot__copy { grid-column: 1 / -1; margin: 0; padding-top: 18px; border-top: 1px solid rgba(246,244,240,.08); font-size: 13px; }

/* ═════════ Док звʼязку ═════════ */
.dock { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 70; display: grid; gap: 8px; padding: 8px; border-radius: 999px;
  background: rgba(31,35,38,.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 16px 30px -16px rgba(0,0,0,.6), inset 0 0 0 1px rgba(201,168,120,.25); transition: opacity .4s, transform .4s var(--ease); }
.dock a, .dock button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--text-on-dark); transition: background .25s, color .25s, transform .25s var(--ease); }
.dock svg { width: 20px; height: 20px; }
.dock a:hover, .dock button:hover { background: var(--accent-light); color: var(--dark); transform: scale(1.06); }
.dock.away { opacity: 0; pointer-events: none; transform: translate(20px, -50%); }

/* ═════════ Лайтбокс ═════════ */
.lightbox { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; background: rgba(18,20,22,.92); backdrop-filter: blur(6px); padding: 60px 70px; }
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; max-height: 100%; }
.lightbox img { max-height: calc(100svh - 160px); width: auto; border-radius: 14px; }
.lightbox figcaption { color: var(--text-on-dark); font-size: 15px; text-align: center; }
.lightbox__x { position: absolute; right: 18px; top: 14px; width: 48px; height: 48px; font-size: 32px; color: #fff; border-radius: 50%; }
.lightbox__nav { position: absolute; top: 50%; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.1); transform: translateY(-50%); }
.lightbox__nav.prev { left: 14px; } .lightbox__nav.next { right: 14px; }
.lightbox__nav svg { width: 22px; height: 22px; }

/* ═════════ Модалка ═════════ */
.modal { position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; padding: 16px; }
.modal__veil { position: absolute; inset: 0; background: rgba(18,20,22,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal__box { position: relative; width: min(560px, 100%); max-height: calc(100svh - 32px); overflow: auto; border-radius: 26px; padding: clamp(22px, 4vw, 36px); background: var(--bg); box-shadow: 0 50px 100px -40px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.6); }
.modal__box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--bronze); }
.modal__x { position: absolute; right: 14px; top: 12px; width: 44px; height: 44px; border-radius: 50%; font-size: 28px; line-height: 1; color: var(--text-muted); transition: background .25s; }
.modal__x:hover { background: var(--surface-alt); }
.modal__step { display: none; }
.modal__step.on { display: block; }
.modal__h { margin: 0 0 8px; font: 400 32px/1.1 var(--f-display); color: var(--primary); }
.modal__p { margin: 0 0 18px; color: var(--text-muted); font-size: 15px; }
.mrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field--light { color: var(--text-muted); margin-bottom: 10px; }
.field--light input, .field--light textarea, .field--light select { background: var(--surface); border-color: var(--border); color: var(--text); }
.field--light input:focus, .field--light textarea:focus, .field--light select:focus { background: #fff; border-color: var(--accent); }
.field--light input.bad { border-color: var(--error); }
.err { margin: 0 0 10px; min-height: 1em; color: var(--error); font-size: 13.5px; }
.engraved-check { display: block; width: 64px; height: 64px; margin: 0 0 14px; }
.engraved-check circle, .engraved-check path { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.engraved-check circle { stroke-dasharray: 151; stroke-dashoffset: 151; }
.engraved-check path { stroke-dasharray: 36; stroke-dashoffset: 36; }
.modal__step.on .engraved-check circle { animation: draw .7s .1s var(--ease) forwards; }
.modal__step.on .engraved-check path { animation: draw .45s .65s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.msgbox { margin: 0 0 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); font: 400 14px/1.55 var(--f-body); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 220px; overflow: auto; }
.sendvia { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.sendvia a { display: grid; justify-items: center; gap: 4px; padding: 12px 4px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); font-size: 12.5px; font-weight: 600; transition: box-shadow .25s, transform .25s var(--ease); }
.sendvia a:hover { box-shadow: inset 0 0 0 1.5px var(--accent); transform: translateY(-2px); }
.sendvia svg { width: 22px; height: 22px; color: var(--accent); }
.modal__back { margin-top: 14px; font-size: 14px; color: var(--text-muted); min-height: 40px; }
.modal__back:hover { color: var(--accent); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 170; transform: translate(-50%, 140%); opacity: 0; transition: transform .5s var(--ease), opacity .3s !important; padding: 12px 20px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 16px 30px -12px rgba(0,0,0,.5); transition: transform .5s var(--ease); pointer-events: none; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }

/* ═════════ Сторінка каталогу ═════════ */
.cat-hero { padding: 120px var(--pad) 28px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: end; }
.cat-hero h1 { margin: 0; font: 400 clamp(46px, 7vw, 100px)/.95 var(--f-display); color: var(--primary); text-shadow: 0 2px 0 rgba(255,255,255,.9), 0 -2px 0 rgba(0,0,0,.08); }
.cat-hero p { margin: 0; color: var(--text-muted); }
.crumbs { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; display: flex; gap: 8px; }
.crumbs a { color: var(--accent); }
.cat { padding: 0 var(--pad) var(--sec); display: grid; grid-template-columns: 290px 1fr; gap: 26px; align-items: start; }
.cat__side { position: sticky; top: 96px; padding: 20px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); display: grid; gap: 20px; }
.cat__side h3 { margin: 0 0 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.cat__side .range { padding: 0; box-shadow: none; }
.cat__side .range__val { font-size: 34px; margin-bottom: 6px; }
.lchips { display: flex; flex-wrap: wrap; gap: 6px; }
.lchips button { min-height: 38px; padding: 0 13px; border-radius: 999px; font-size: 13.5px; font-weight: 500; background: var(--bg); box-shadow: inset 0 0 0 1px var(--border); transition: background .25s, color .25s; }
.lchips button.on { background: var(--primary); color: #fff; box-shadow: none; }
.cat__reset { font-size: 13.5px; color: var(--accent); font-weight: 600; justify-self: start; min-height: 36px; }
.cat__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.cat__top p { margin: 0; color: var(--text-muted); }
.cat__top b { color: var(--primary); }
.cat__top select { min-height: 44px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); padding: 0 16px; font: 500 14px var(--f-body); color: var(--text); }
.cat__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cat__empty { padding: 40px; border-radius: 22px; background: var(--surface-alt); text-align: center; color: var(--text-muted); }
.filters-toggle { display: none; }
.cta-band { margin: 0 var(--pad) var(--sec); border-radius: 28px; padding: clamp(28px, 4vw, 48px); background: var(--dark); color: var(--text-on-dark); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .06; mix-blend-mode: screen; pointer-events: none; }
.cta-band h2 { margin: 0; font: 400 clamp(28px, 3.4vw, 44px)/1.1 var(--f-display); max-width: 640px; }
.cta-band > div { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ═════════ Адаптив ═════════ */
@media (max-width: 1240px) {
  .hdr__nav a { padding: 9px 9px; font-size: 14px; }
  .hdr__phone span { display: none; }
  .budget__list, .cat__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
  .hdr__nav, .hdr__cta { display: none; }
  .hdr__phone span { display: inline; }
  .burger { display: block; }
  .hero { grid-template-columns: 1fr; padding-top: 100px; min-height: auto; }
  .hero__stage { height: 62svh; min-height: 440px; }
  .builder__grid { grid-template-columns: 1fr; }
  .stage { min-height: 0; height: 64svh; max-height: 620px; }
  .budget { grid-template-columns: 1fr; }
  .budget__ctrl { position: static; }
  .heroes__grid { grid-template-columns: 1fr 1fr; }
  .heroes__grid .btn { grid-column: 1 / -1; justify-self: start; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .faq { grid-template-columns: 1fr; }
  .faq__aside { display: contents; }
  .faq .ask { order: 3; }
  .reviews { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; }
  .cat { grid-template-columns: 1fr; }
  .cat__side { position: fixed; inset: auto 0 0 0; top: auto; z-index: 95; border-radius: 24px 24px 0 0; max-height: 82svh; overflow: auto; transform: translateY(105%); transition: transform .5s var(--ease); box-shadow: 0 -20px 50px -20px rgba(0,0,0,.4); }
  .cat__side.open { transform: none; }
  .filters-toggle { display: inline-flex; }
  .cat-hero { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --sec: 60px; }
  .hdr { inset: 8px 10px auto; padding: 6px 6px 6px 12px; gap: 10px; }
  .hdr__phone span { display: none; }
  .hdr__phone { width: 46px; height: 46px; justify-content: center; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
  .brand__txt b { font-size: 19px; }
  .brand__txt small { font-size: 9.5px; }
  .hero { padding-top: 92px; gap: 26px; }
  .hero__title { font-size: clamp(48px, 14.5vw, 70px); }
  .hero__lead { margin: 20px 0 24px; }
  .hero__cta .btn { width: 100%; }
  .hero__facts li { padding: 14px 14px 0 0; margin-right: 14px; }
  .hero__facts li + li { padding-left: 14px; }
  .hero__facts b { font-size: 18px; }
  .hero__facts span { font-size: 12px; }
  .hero__facts li:nth-child(3) { display: none; }
  .hero__stage { height: 480px; min-height: 0; }
  .hotspot span { font-size: 11.5px; white-space: normal; width: 160px; }
  .stage { position: relative; height: 52svh; min-height: 300px; max-height: 440px; border-radius: 18px; }
  .stage__views { left: 8px; top: 8px; }
  .stage__views button { padding: 0 10px; font-size: 12px; }
  .stage__dims { top: auto; bottom: 10px; right: 10px; font-size: 12px; padding: 7px 12px; }
  .stage__hint { left: 12px; transform: none; bottom: 12px; }
  .panel { padding: 12px; }
  .steps button { font-size: 10.5px; }
  .stones, .extras { grid-template-columns: 1fr; }
  .fonts { grid-template-columns: repeat(2, 1fr); }
  .price b { font-size: 28px; }
  .budget__list { grid-template-columns: repeat(2, 1fr); gap: 10px; min-height: 0; }
  .mcard__body { padding: 10px 10px 12px; }
  .mcard__body h3 { font-size: 16.5px; }
  .mcard__row { flex-direction: column; align-items: flex-start; gap: 2px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .work.big2 { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3.2; }
  .work figcaption { font-size: 12.5px; padding: 30px 10px 10px; }
  .filters { gap: 12px; }
  .filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); }
  .filter button { flex: none; }
  .heroes__grid { grid-template-columns: 1fr; }
  .heroes__title img { height: .8em; width: 1.7em; }
  .process__line { left: 22px; top: calc(var(--sec) + 150px); }
  .process__steps li { width: auto; margin-left: 48px !important; padding: 18px; }
  .process__steps li::after { left: -33px !important; right: auto !important; }
  .process__h { text-align: left; }
  .stats { grid-template-columns: repeat(2, 1fr); height: auto; align-items: stretch; }
  .stat { height: 200px !important; border-radius: 999px 999px 12px 12px; }
  .stat:nth-child(2), .stat:nth-child(3) { height: 220px !important; }
  .remote { grid-template-columns: 1fr; }
  .chat__body { min-height: 380px; }
  .reviews::before { font-size: 300px; }
  .deck { height: 400px; }
  .mrow { grid-template-columns: 1fr; gap: 0; }
  .sendvia { grid-template-columns: repeat(2, 1fr); }
  .map { min-height: 420px; }
  .map__card { flex-wrap: wrap; }
  .foot { grid-template-columns: 1fr; }
  .foot__nav { justify-content: flex-start; }
  .dock { top: auto; bottom: 14px; right: 12px; transform: none; grid-auto-flow: column; }
  .dock.away { transform: translateY(20px); }
  .lightbox { padding: 60px 10px 80px; }
  .lightbox__nav { top: auto; bottom: 16px; transform: none; }
  .cat__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat__top select { width: 100%; }
}
@media (max-width: 380px) {
  .budget__list, .cat__grid { grid-template-columns: 1fr; }
}

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

/* правки після перевірки на 390px */
.work figcaption small { flex-wrap: wrap; }
@media (max-width: 760px) {
  .stage__hint { display: none; }
  .deck { height: 330px; }
  .work figcaption small i { font-size: 9.5px; padding: 2px 6px; }
}
@media (max-width: 1080px) {
  .cat__side { visibility: hidden; transition: transform .5s var(--ease), visibility 0s .5s; }
  .cat__side.open { visibility: visible; transition: transform .5s var(--ease), visibility 0s; }
}
@media (max-width: 1080px) { #cApply { position: sticky; bottom: 0; box-shadow: 0 -12px 20px 6px var(--surface); } }

/* док: горизонтальна пігулка внизу праворуч на всіх ширинах */
.dock { top: auto; bottom: 18px; right: 18px; transform: none; grid-auto-flow: column; }
.dock.away { transform: translateY(24px); }

/* ── Stage: sticky на десктопі + специфікація ── */
@media (min-width: 1081px) {
  .builder__grid { align-items: start; }
  .stage { position: sticky; top: 92px; height: calc(100svh - 116px); min-height: 560px; max-height: 860px; }
}
.spec { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; margin: 0; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 10px 18px; padding: 12px 18px; border-radius: 18px; color: var(--primary); }
.spec dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 3px; }
.spec dd { margin: 0; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.spec dd i { width: 14px; height: 14px; border-radius: 50%; background: #222; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.spec__price dd { font-family: var(--f-display, 'Forum', serif); font-size: 22px; font-weight: 400; color: var(--accent-dark, #735636); }
.stage .stage__hint { bottom: 92px; }
@media (max-width: 1080px) { .spec { display: none; } }

/* ── FAQ: картка «Не знайшли питання?» ── */
.ask { display: grid; grid-template-columns: 1fr; border-radius: var(--r-lg, 24px); overflow: hidden; background: var(--surface, #fff); border: 1px solid var(--border); box-shadow: 0 24px 40px -32px rgba(31,35,38,.45); }
.ask__img { margin: 0; aspect-ratio: 16 / 7; overflow: hidden; }
.ask__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.ask__body { padding: 22px 24px 24px; }
.ask__t { font-family: var(--f-display, 'Forum', serif); font-size: 26px; line-height: 1.15; margin: 0 0 8px; color: var(--text); }
.ask__p { margin: 0 0 16px; color: var(--text-muted); font-size: 15px; }
.ask__facts { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ask__facts li { padding: 10px 12px; border-radius: 12px; background: var(--surface-alt, #ECE8E1); font-size: 13px; color: var(--text-muted); }
.ask__facts b { display: block; font-family: var(--f-display, 'Forum', serif); font-weight: 400; font-size: 22px; color: var(--accent); }
.ask__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.ask__btns svg { width: 16px; height: 16px; }
