/* Tihon Art — стилі сайту. 2026-11-25: чорна «армійська» подача на прохання власника: чорне тло, оливкові лінії,
   койотові підписи, заголовки Oswald великими літерами; оранжевий #f16823 — тільки дія / «де я».
   Радіус 2px, без градієнтів, світіння й декору.
   Mobile-first: 641 / 901 / 1101. */

@font-face { font-family: 'IBM Plex Sans'; src: url(/fonts/ibm-plex-sans-var.woff2) format('woff2'); font-weight: 400 700; font-stretch: 80% 100%; font-display: swap; }
/* шрифти гравіювання — вантажаться лише коли ними пишуть у конструкторі */
@font-face { font-family: 'Oswald'; src: url(/fonts/oswald.woff2) format('woff2'); font-weight: 200 700; font-display: swap; }
@font-face { font-family: EngPlex; src: url(/fonts/ibm-plex-sans-var.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: EngOswald; src: url(/fonts/oswald.woff2) format('woff2'); font-weight: 200 700; font-display: swap; }
@font-face { font-family: EngTektur; src: url(/fonts/tektur.woff2) format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: EngRusso; src: url(/fonts/russo-one.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: EngPlayfair; src: url(/fonts/playfair.woff2) format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: EngRuslan; src: url(/fonts/ruslan.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: EngScript; src: url(/fonts/marck-script.woff2) format('woff2'); font-display: swap; }

:root {
  --bg-0: #070706; --bg: #0c0c0b; --s1: #151513; --s2: #1e1e1b;
  --line: #262622; --line-2: #3a3a33; --line-input: #6f6f63;
  --fg: #eeede6; --fg-2: #cac8be; --muted: #a5a396; --dim: #8d8b7f;
  --od: #6b7142; --od-text: #868c57; --coy: #c2ab7e;
  --a: #f16823; --a-text: #111; --link: #f58a52; --ok: #7fd18b; --warn: #e8b84a;
  --plate: #dcdad2; --plate-fg: #3d3d3a;
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-h: 'Oswald', 'Arial Narrow', 'IBM Plex Sans', sans-serif;
  --t-xs: 13px; --t-sm: 15px; --t-md: 17px; --t-lg: 20px; --t-xl: 26px;
  --t-2xl: clamp(28px, 3vw, 40px); --t-3xl: clamp(32px, 4.2vw, 56px);
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;
  --r: 2px; --cut: 10px; --shadow: 0 12px 32px rgba(0, 0, 0, .5); --dur: 160ms;
  --wrap: 1320px; --gutter: 16px;
}
@media (min-width: 641px) { :root { --gutter: 32px; } }
.header, .footer, .pricebar { --line: #24241f; --line-2: #3f4130; --line-input: #7d7f6c; --dim: var(--muted); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-family: var(--font-h); font-weight: 600; letter-spacing: .01em; line-height: 1.15; text-wrap: balance; }
h1, h2, .h1, .h2 { text-transform: uppercase; letter-spacing: .02em; }
p, ul, ol, figure, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; text-underline-offset: .2em; text-decoration-thickness: 1px; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { color-scheme: dark; }
:focus-visible { outline: 2px solid var(--a); outline-offset: 2px; }
::placeholder { color: var(--dim); opacity: 1; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -64px; z-index: 300; padding: 12px 16px; background: var(--fg); color: var(--bg); font-weight: 600; }
.skip:focus { top: 8px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
@media (max-width: 640px) { .hide-sm { display: none !important; } }
html, body { overflow-x: clip; }
.h1 { font-size: var(--t-3xl); line-height: 1.05; }
.h2 { font-size: var(--t-2xl); line-height: 1.1; }
.h3 { font-size: var(--t-lg); line-height: 1.3; }
.lead { font-size: var(--t-md); color: var(--fg-2); max-width: 62ch; }
.label { font-size: var(--t-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--coy); }
.prose { font-size: var(--t-md); line-height: 1.6; color: var(--fg-2); max-width: 68ch; }
.prose h2 { color: var(--fg); font-size: var(--t-xl); margin: var(--sp-7) 0 var(--sp-3); }
.prose h3 { color: var(--fg); font-size: var(--t-lg); margin: var(--sp-6) 0 var(--sp-2); }
.prose p, .prose ul, .prose ol { margin-bottom: var(--sp-4); }
.prose a { color: var(--link); text-decoration: underline; }
.prose img { margin: var(--sp-5) 0; border-radius: var(--r); }
.section { padding-block: var(--sp-8); }
.section + .section { border-top: 1px solid var(--line); }
/* номер розділу, як у технічному паспорті: «01 //» над заголовком */
main { counter-reset: sec; }
.section > h2.h2, .section__head > h2.h2 { counter-increment: sec; }
.section > h2.h2::before, .section__head > h2.h2::before { content: counter(sec, decimal-leading-zero) ' //'; display: block; margin-bottom: var(--sp-2);
  font: 600 var(--t-xs)/1 var(--font); letter-spacing: .16em; color: var(--od-text); }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.section__head .lead { flex: 0 0 100%; max-width: none; padding-right: max(0px, calc(100% - 62ch)); }

/* ---------- кнопки, посилання, чипи, поля ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 48px; padding: 0 var(--sp-5);
  background: var(--a); color: var(--a-text); border: 0; border-radius: var(--r); font: 600 var(--t-sm)/1 var(--font-h); text-transform: uppercase; letter-spacing: .08em; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); text-align: center; }
.header .btn { white-space: nowrap; }
.btn:focus-visible { clip-path: none; }
.btn--sm { min-height: 44px; padding: 0 var(--sp-4); }
.btn--ghost { background: transparent; color: var(--fg); border: 1px solid var(--od); clip-path: none; }
.btn:disabled { opacity: .55; cursor: default; }
.link { background: none; border: 0; padding: 0; color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-input); cursor: pointer; font-size: var(--t-sm); }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip { min-height: 40px; padding: 0 var(--sp-3); background: var(--s1); border: 1px solid var(--line-2); border-radius: var(--r); font-size: var(--t-sm); cursor: pointer; display: inline-flex; align-items: center; }
.chip.is-on, .chip[aria-current] { background: var(--s2); border-color: var(--fg); }
@media (pointer: coarse) { .chip { min-height: 44px; } }
.input, .field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: var(--sp-3); background: var(--s1); border: 1px solid var(--line-input); border-radius: var(--r); font-size: var(--t-md); }
.field textarea { min-height: 96px; resize: vertical; }
.input:focus, .field :is(input, textarea, select):focus { border-color: var(--fg); outline: 2px solid var(--a); outline-offset: 0; }
.field { display: grid; gap: var(--sp-1); }
.field > span { font-size: var(--t-sm); color: var(--muted); }
.check { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px; font-size: var(--t-sm); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--a); }
.hp { position: absolute; left: -9999px; }

/* ---------- шапка ---------- */
.header { background: var(--bg-0); border-bottom: 3px solid var(--a); position: sticky; top: 0; z-index: 50; }
.header__in { border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: var(--sp-5); min-height: 60px; }
.logo { min-width: 0; display: flex; align-items: baseline; gap: var(--sp-2); font: 700 21px/1 var(--font-h); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.logo small { font-family: var(--font); text-transform: none; }
.logo { align-items: center; }
.logo__mark { height: 42px; width: auto; flex: none; color: var(--fg); }
.logo__art { padding-left: var(--sp-2); border-left: 1px solid var(--line-2); color: var(--coy); font-size: 18px; letter-spacing: .2em; }
.footer .logo__mark { height: 64px; }
.logo small { font-weight: 500; font-size: var(--t-xs); color: var(--muted); letter-spacing: 0; }
.nav { display: none; gap: var(--sp-5); font: 500 var(--t-sm)/1.5 var(--font-h); text-transform: uppercase; letter-spacing: .08em; }
.nav a { padding-block: 18px 15px; border-bottom: 2px solid transparent; }
.nav a[aria-current] { border-bottom-color: var(--a); }
.header__end { margin-left: auto; display: flex; align-items: center; gap: var(--sp-4); }
.langs { display: flex; gap: var(--sp-3); font-size: var(--t-xs); color: var(--muted); }
.langs a[aria-current] { color: var(--fg); font-weight: 600; }
.header .btn { display: none; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 1px solid var(--line-2); border-radius: var(--r); cursor: pointer; }
.mnav { border-top: 1px solid var(--line); padding-block: var(--sp-3); display: grid; }
.mnav a { padding: var(--sp-3) 0; font-size: var(--t-md); }
@media (min-width: 1101px) {
  .nav { display: flex; }
  .menu-btn, .mnav { display: none !important; }
  .header .btn { display: inline-flex; }
}

/* ---------- підвал ---------- */
.footer { background: var(--bg-0); border-top: 1px solid var(--od); margin-top: var(--sp-8); padding-block: var(--sp-7) var(--sp-6); font-size: var(--t-sm); color: var(--fg-2); }
.footer__grid { display: grid; gap: var(--sp-6); }
.footer__phone { font: 600 var(--t-xl)/1.2 var(--font-h); letter-spacing: .04em; color: var(--fg); }
.footer a:not(.footer__phone) { text-decoration: underline; text-decoration-color: var(--line-input); }
.footer ul { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.footer__bottom { margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; color: var(--muted); font-size: var(--t-xs); }
@media (min-width: 901px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }

/* ---------- головна ---------- */
.hero { padding-block: var(--sp-7) var(--sp-6); display: grid; gap: var(--sp-6); align-items: center; }
.hero__facts { font-size: var(--t-sm); color: var(--muted); margin-top: var(--sp-4); }
.hero .row { margin-top: var(--sp-5); }
.hero__img { background: var(--plate); border-radius: var(--r); padding: var(--sp-5); }
.hero__photo { position: relative; display: block; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--s1); }
.hero__photo img { width: 100%; }
.hero__tag { position: absolute; left: 0; bottom: 0; padding: var(--sp-2) var(--sp-3); background: var(--bg-0); color: var(--coy);
  font: 600 var(--t-xs)/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; border-top: 1px solid var(--line-2); border-right: 1px solid var(--line-2); }
@media (min-width: 901px) { .hero { grid-template-columns: 5fr 6fr; padding-block: var(--sp-8); } }

.guns { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--sp-5); }
.gun { display: grid; gap: var(--sp-2); }
.gun__img { display: block; background: var(--plate); border-radius: var(--r); padding: var(--sp-4); }
.gun__img img { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: contain; }
.gun__name { font: 600 var(--t-md)/1.3 var(--font-h); letter-spacing: .03em; text-transform: uppercase; }
.gun__price { font-size: var(--t-sm); color: var(--muted); }
@media (hover: hover) { .gun:hover .gun__name { text-decoration: underline; } }

/* фото цілими, у власних пропорціях: вертикальні не обрізаються до смужки (колонки замість рядів) */
.works { columns: 260px; column-gap: var(--sp-5); }
/* коротка стрічка на головній: рядами, фото так само цілі */
.works--row { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 var(--sp-5); align-items: start; }
.work { display: grid; gap: var(--sp-2); align-content: start; break-inside: avoid; margin-bottom: var(--sp-6); }
.work img { width: 100%; height: auto; border-radius: var(--r); background: var(--s1); border: 1px solid var(--line); }
.work__t { font-weight: 600; display: block; }
.work__d { font-size: var(--t-sm); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.work button { all: unset; cursor: zoom-in; display: block; }
.work button:focus-visible { outline: 2px solid var(--a); outline-offset: 2px; }
dialog.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
dialog.lightbox::backdrop { background: rgba(0, 0, 0, .86); }
dialog.lightbox img { max-height: 86vh; width: auto; margin: auto; }
dialog.lightbox p { color: var(--fg); padding: var(--sp-3) 0; text-align: center; }
.work button { position: relative; }
.work__n { position: absolute; right: var(--sp-2); bottom: var(--sp-2); background: rgba(7, 7, 6, .85); color: var(--fg); font-size: var(--t-xs); padding: 2px var(--sp-2); border-radius: var(--r); }
.work__date { display: block; font-size: var(--t-xs); margin-top: 2px; }
dialog.lightbox .lb-nav { display: none; position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; background: var(--s1); border: 1px solid var(--line-2); border-radius: var(--r); color: var(--fg); font-size: 32px; cursor: pointer; }
dialog.lightbox.is-multi .lb-nav { display: block; }
dialog.lightbox .lb-prev { left: var(--sp-3); } dialog.lightbox .lb-next { right: var(--sp-3); }
dialog.lightbox .close { position: fixed; top: var(--sp-3); right: var(--sp-3); width: 44px; height: 44px; background: var(--s1); border: 1px solid var(--line-2); border-radius: var(--r); font-size: 24px; cursor: pointer; }

.steps { counter-reset: s; display: grid; gap: var(--sp-5); list-style: none; padding: 0; }
.steps li { counter-increment: s; padding-top: var(--sp-3); border-top: 1px solid var(--line-2); }
.steps li { border-top-color: var(--od); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 600 var(--t-2xl)/1 var(--font-h); color: var(--coy); margin-bottom: var(--sp-3); }
.steps b { display: block; font-size: var(--t-md); margin-bottom: var(--sp-1); }
.steps p { color: var(--muted); font-size: var(--t-sm); }
@media (min-width: 901px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.swrow { display: flex; flex-wrap: wrap; gap: 6px; margin-block: var(--sp-4); }
.swrow span { width: 36px; height: 36px; border-radius: var(--r); background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }

/* ---------- таблиця цін ---------- */
.ptable { width: 100%; border-collapse: collapse; font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.ptable th, .ptable td { padding: var(--sp-3) var(--sp-2); border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.ptable th:first-child, .ptable td:first-child { text-align: left; white-space: normal; }
.ptable thead th { color: var(--muted); font-weight: 500; font-size: var(--t-xs); }
.ptable tbody th { font-weight: 600; }
.ptable .grp th { padding-top: var(--sp-6); color: var(--coy); font-weight: 600; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .06em; }
.ptable a { text-decoration: underline; text-decoration-color: var(--line-input); }
.tscroll { overflow-x: auto; }

/* ---------- палітра ---------- */
.pal { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--sp-4) var(--sp-3); }
.pal--main { grid-template-columns: repeat(3, minmax(0, 260px)); }
.pal--main .pal__n { font-size: var(--t-md); }
.pal__i { display: grid; align-content: start; gap: 2px; font-size: var(--t-xs); }
.pal__c { aspect-ratio: 3 / 2; border-radius: var(--r); background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); margin-bottom: var(--sp-1); }
.pal__n { font-size: var(--t-sm); font-weight: 600; color: var(--fg); }
.ok { color: var(--ok); } .warn { color: var(--warn); }

/* ================================================================
   Конструктор
   ================================================================ */
.studio { display: grid; gap: 0; }
.stage-wrap { background: var(--plate); color: var(--plate-fg); position: sticky; top: 63px; z-index: 10; border-bottom: 1px solid var(--line); }
.stage-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--gutter); border-bottom: 1px solid #d8d6d0; }
.stage-bar h1 { font-size: var(--t-lg); margin-right: auto; color: #1d1d1b; }
.stage-bar button { min-height: 40px; padding: 0 var(--sp-3); background: transparent; border: 1px solid #c9c6bf; border-radius: var(--r); color: #1d1d1b; font-size: var(--t-xs); font-weight: 500; cursor: pointer; }
#stage { padding: var(--sp-4) var(--gutter); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
/* наближена сцена і перетягування напису — жести наші, сторінка не прокручується */
#stage.is-zoomed, #stage[data-mode='engrave'] .eng { touch-action: none; }
.stage__svg { width: 100%; height: auto; max-height: 38vh; display: block; margin: auto; }
.stage__svg .part { cursor: pointer; }
.stage__svg .sel-outline { fill: none; stroke: #f16823; stroke-width: 3; vector-effect: non-scaling-stroke; pointer-events: none; stroke-dasharray: 6 4; }
.stage__svg .eng { cursor: grab; }
.stage__svg .eng__box { fill: none; stroke: #f16823; stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 4 3; }
#stage[data-mode='engrave'] .part { cursor: default; }
.stage-note { padding: 0 var(--gutter) var(--sp-3); font-size: var(--t-xs); color: #5c5b57; }
@media (max-width: 900px) {
  .stage-note { display: none; }
  .stage-bar { padding-block: 6px; }
  .stage-bar h1 { font-size: var(--t-md); }
  .stage-bar button { min-height: 36px; padding: 0 10px; }
  #stage { padding-block: var(--sp-2); }
  .stage__svg { max-height: 30vh; }
}

.panel { padding: var(--sp-4) var(--gutter) 120px; display: grid; grid-auto-rows: max-content; gap: var(--sp-4); align-content: start; }
.tabs { display: flex; gap: var(--sp-1); overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs button { flex: none; min-height: 44px; padding: 0 var(--sp-3); background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: 500 var(--t-sm)/1 var(--font-h); letter-spacing: .01em; cursor: pointer; }
@media (max-width: 1100px) { .tabs { gap: 0; justify-content: space-between; } .tabs button { padding: 0 5px; } }
@media (min-width: 1101px) { .tabs { justify-content: space-between; } .tabs button { padding: 0 4px; } }
.tabs button[aria-selected='true'] { color: var(--fg); border-bottom-color: var(--a); }
[data-pane] { display: grid; gap: var(--sp-4); align-content: start; }
.selbar__now { font-size: var(--t-sm); color: var(--fg-2); min-height: 1.5em; }
.selbar { display: grid; gap: var(--sp-2); }
.sw-filters { display: grid; gap: var(--sp-3); }
.sw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--sp-3) var(--sp-2); max-height: 520px; overflow-y: auto; padding: 2px; }
.sw { display: grid; align-content: start; gap: 2px; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
.sw__chip { aspect-ratio: 3 / 2; border-radius: var(--r); background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.sw.is-on .sw__chip { outline: 2px solid var(--fg); outline-offset: 2px; }
.sw__name { font-size: var(--t-xs); color: var(--fg); line-height: 1.25; }
.sw__code { font-size: 13px; color: var(--dim); }
.chip__sw { width: 16px; height: 16px; margin-right: var(--sp-2); border-radius: var(--r); background: linear-gradient(135deg, var(--c) 50%, var(--c2) 50%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.palette { display: grid; gap: var(--sp-3); }
.sw-grid--main { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: none; overflow: visible; align-items: start; }
.sw-grid--main .sw__name { font-size: var(--t-sm); font-weight: 600; }
.note { font-size: var(--t-sm); }
.slots { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.slot { width: 72px; min-height: 64px; padding: 36px 4px 4px; background: var(--c); border: 1px solid var(--line-2); border-radius: var(--r); cursor: pointer; position: relative; }
.slot__name { display: block; font-size: 11px; line-height: 1.2; background: rgba(7, 7, 6, .85); color: var(--fg); padding: 2px; border-radius: var(--r); }
.slot.is-on { outline: 2px solid var(--fg); outline-offset: 2px; }
.slot--add { background: var(--s1); padding: 0; font-size: 24px; color: var(--muted); }
.range { display: grid; gap: var(--sp-1); font-size: var(--t-sm); color: var(--muted); flex: 1 1 200px; }
.range input { width: 100%; accent-color: var(--a); min-height: 32px; }
.eng-list { display: grid; gap: var(--sp-1); }
.eng-item { display: flex; justify-content: space-between; gap: var(--sp-3); min-height: 44px; padding: 0 var(--sp-3); background: var(--s1); border: 1px solid var(--line-2); border-radius: var(--r); cursor: pointer; text-align: left; align-items: center; }
.eng-item.is-on { border-color: var(--fg); background: var(--s2); }
.eng-edit { display: grid; gap: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.stz { display: grid; gap: var(--sp-2); padding-block: var(--sp-2); border-bottom: 1px solid var(--line); }
.pane__foot { padding-top: var(--sp-2); }

.q__row { display: flex; justify-content: space-between; gap: var(--sp-3); padding-block: var(--sp-2); border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.q__price { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.order-sum { padding-left: 1.2em; color: var(--fg-2); font-size: var(--t-sm); display: grid; gap: var(--sp-1); }
.form { display: grid; gap: var(--sp-4); }

.pricebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--bg-0); border-top: 1px solid var(--line); padding: var(--sp-2) var(--gutter); display: flex; align-items: center; gap: var(--sp-4); }
.pricebar__sum { display: grid; }
.pricebar__sum small { font-size: var(--t-xs); color: var(--muted); }
.pricebar__sum b { font-size: var(--t-lg); font-variant-numeric: tabular-nums; }
.pricebar .btn { margin-left: auto; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 60; background: var(--fg); color: var(--bg); padding: var(--sp-3) var(--sp-4); border-radius: var(--r); font-size: var(--t-sm); box-shadow: var(--shadow); }
.variants { display: grid; gap: var(--sp-3); }
#variantList { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--sp-3); }
.var { display: grid; gap: var(--sp-1); justify-items: start; }
.var__img { all: unset; cursor: pointer; background: var(--plate); border-radius: var(--r); display: block; width: 100%; }
.var__img:focus-visible { outline: 2px solid var(--a); }

@media (min-width: 1101px) {
  .studio { grid-template-columns: minmax(0, 1fr) 420px; min-height: calc(100vh - 63px); }
  .stage-wrap { position: sticky; top: 63px; height: calc(100vh - 63px); display: grid; grid-template-rows: auto 1fr auto; border-bottom: 0; border-right: 1px solid var(--line); }
  #stage { display: grid; place-items: center; padding: var(--sp-6); }
  .stage__svg { max-height: calc(100vh - 220px); }
  .panel { padding: var(--sp-4) var(--sp-5) 120px; max-height: calc(100vh - 63px); overflow-y: auto; position: sticky; top: 63px; }
  .pricebar { left: auto; width: 420px; }
  .studio + .footer { display: none; }
}

/* ---------- рух ---------- */
@media (prefers-reduced-motion: no-preference) {
  .btn, .chip, .link, .tabs button, .sw__chip { transition: background-color var(--dur), border-color var(--dur), color var(--dur), opacity var(--dur); }
}
@media (hover: hover) {
  .btn--ghost:hover, .chip:hover { border-color: var(--fg); }
  .nav a:hover, .footer a:hover, .link:hover { color: var(--fg); text-decoration-color: var(--fg); }
  .stage-bar button:hover { border-color: #1d1d1b; }
  .eng-item:hover { border-color: var(--fg); }
}

/* онлайн-чат Tihon (віджет Site Chat з tihon.com.ua): у конструкторі — над смугою з ціною */
body:has(.pricebar) .sc { bottom: 76px; }
@media (min-width: 1101px) { body:has(.pricebar) .sc { right: 436px; bottom: 16px; } }

/* порівняння збережених варіантів */
.var__t { font-size: var(--t-xs); color: var(--fg-2); }
dialog.cmp { width: min(1400px, 96vw); max-height: 92vh; padding: 0; background: var(--bg); color: var(--fg); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); }
dialog.cmp::backdrop { background: rgba(0, 0, 0, .75); }
.cmp__bar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: var(--sp-3) var(--sp-5); background: var(--bg-0); }
.cmp__bar .close { width: 44px; height: 44px; background: none; border: 1px solid var(--line-2); border-radius: var(--r); color: var(--fg); font-size: 24px; cursor: pointer; }
.cmp__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-5); padding: var(--sp-5); }
.cmp__col { display: grid; gap: var(--sp-3); align-content: start; }
.cmp__h { font-size: var(--t-md); }
.cmp__img { background: var(--plate); border-radius: var(--r); }
.cmp__img img { width: 100%; height: auto; }
.cmp__price { font-size: var(--t-xl); font-weight: 600; font-variant-numeric: tabular-nums; }
.cmp__sum { padding-left: 1.2em; display: grid; gap: var(--sp-1); font-size: var(--t-sm); color: var(--fg-2); }
