
/* ЧЕРНИКОВ, variant А, dark (owner decision 26.10.2026).
   The whole page is the dark "back" of the cross; the object is lit, not the background.
   Motion system ported from graver74.pro (motion.js + v2.css «Motion v2»): staged hero, laser scan line,
   scenes that light up, typed reveals (title / text / media / card), photo parallax, desktop depth layers
   with smoothed scroll, scene rail, tactile cards, animated FAQ, anchor target sweep, reading progress.
   Accent split: wax red = actions only; engraving gold = light (rules, glow, active states). */
:root {
  --bg: #121110;          /* black hornbeam */
  --raised: #191715;
  --deep: #0c0b0a;
  --surface: #211e1b;
  --line: #2f2b27;
  --text: #ece7df;
  --muted: #a39b91;
  --gold: #c9a46a;        /* colour of laser engraving on dark wood */
  --gold-soft: rgba(201, 164, 106, .12);
  --wax: #8a2a1f;         /* sealing wax: buttons and the seal */
  --wax-hover: #a13426;
  --wax-on: #f6eee8;
  --r-btn: 14px;          /* rounded buttons (owner, 26.10.2026) */
  --r-ui: 10px;           /* inputs, cards, FAQ; photos stay square */
  --display: "Forum", "Times New Roman", serif;
  --sans: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --s-1: .875rem; --s0: 1.0625rem; --s1: 1.375rem; --s2: clamp(1.9rem, 6vw, 3rem); --s3: clamp(2.6rem, 9vw, 5.2rem);
  --e-out: cubic-bezier(.16, 1, .3, 1); --e-io: cubic-bezier(.65, 0, .35, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: var(--s0); line-height: 1.55; overflow-x: hidden; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: .005em; }
h1 { font-size: var(--s3); }
h2 { font-size: var(--s2); position: relative; }
h3 { font-size: var(--s1); }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.note { background: var(--deep); color: var(--muted); font-size: var(--s-1); border-bottom: 1px solid var(--line); }
.note .wrap { padding-block: 8px; }

/* ---------- Header ---------- */
header.top { position: sticky; top: 0; z-index: 30; background: rgba(18, 17, 16, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.mark { font-family: var(--display); font-size: 1.6rem; letter-spacing: .14em; text-decoration: none; }
nav ul { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; font-size: var(--s-1); }
nav a { text-decoration: none; color: var(--muted); transition: color .2s ease; }
nav a:hover { color: var(--gold); }
nav .keep a { color: var(--text); }
@media (max-width: 760px) { nav ul li:not(.keep) { display: none; } }

/* ---------- Buttons: rounded ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: 0 26px; font: 500 var(--s0) var(--sans); text-decoration: none; border: 0; border-radius: var(--r-btn); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .12s ease; }
.btn:active { transform: scale(.97); }
.btn-wax { background: var(--wax); color: var(--wax-on); }
.btn-wax:hover { background: var(--wax-hover); }
.btn-plain { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px rgba(236, 231, 223, .35); }
.btn-plain:hover { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: var(--s-1); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) { .hero .actions .btn { flex: 1 1 100%; } }

/* ---------- Scenes: each section lights up as it enters (graver74) ---------- */
main > section { position: relative; }
main > section > .wrap { position: relative; z-index: 1; }
main > section:not(.hero)::before { content: ""; position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, rgba(201,164,106,0), rgba(201,164,106,.8) 30%, rgba(201,164,106,.8) 70%, rgba(201,164,106,0)); }
main > section:not(.hero)::after { content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 55% at 50% 0%, rgba(201,164,106,.08), transparent 70%); }
.motion main > section:not(.hero):not(.is-in)::before { transform: scaleX(0); }
.motion main > section:not(.hero):not(.is-in)::after { opacity: 0; }
.motion main > section:not(.hero)::before { transition: transform 1.4s var(--e-io); }
.motion main > section:not(.hero)::after { transition: opacity 1.6s ease .2s; }
.raised { background: var(--raised); }

/* ---------- Hero: staged assembly, shutter, laser scan ---------- */
.hero { background: radial-gradient(ellipse 55% 70% at 80% 35%, rgba(201,164,106,.10), transparent 70%), var(--bg); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-block: 48px 72px; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero .lead { font-size: var(--s1); line-height: 1.4; max-width: 30ch; color: var(--muted); }
.hero .price { color: var(--muted); }
.hero .price b { font-family: var(--display); font-weight: 400; font-size: 1.9rem; color: var(--text); }
.hero-figure { margin: 0; display: grid; gap: 10px; }
.photo { position: relative; overflow: hidden; background: var(--deep); }
.photo > .pic { display: grid; place-items: center; width: 100%; height: 100%; }
.hero .photo { aspect-ratio: 4 / 5; }
.hero .photo .pic svg { width: 62%; height: auto; filter: drop-shadow(0 22px 26px rgba(0,0,0,.6)); }
.scan::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10%; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, rgba(201,164,106,0) 0%, rgba(226,196,140,.55) 50%, rgba(201,164,106,0) 100%); }
.ph { font-size: var(--s-1); color: var(--muted); }
.slot { position: absolute; left: 12px; bottom: 12px; z-index: 1; font-size: .75rem; color: var(--muted); background: rgba(12,11,10,.75); padding: 4px 8px; border-radius: 6px; }
@keyframes m-rise { from { opacity: 0; transform: translate3d(0, 34px, 0); } to { opacity: 1; transform: none; } }
@keyframes m-mask { from { clip-path: inset(0 0 100% 0); transform: translate3d(0, 40px, 0); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes m-shutter { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }
@keyframes m-scan { 0% { transform: translateY(-10%); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(1000%); opacity: 0; } }
.js .hero h1 { animation: m-mask 1.3s var(--e-out) .15s both; }
.js .hero .lead { animation: m-rise 1s var(--e-out) .55s both; }
.js .hero .price { animation: m-rise 1s var(--e-out) .7s both; }
.js .hero .actions { animation: m-rise 1s var(--e-out) .85s both; }
.js .hero .photo { animation: m-shutter 1.5s var(--e-io) .9s both; }
.js .hero .scan::after { animation: m-scan 1.8s ease-in-out 2.2s both; }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 20px 56px; gap: 28px; }
  .hero-figure { order: -1; }
  .hero .photo { aspect-ratio: 1 / 1; margin-inline: -16px; }
  .hero .photo .pic svg { width: 46%; }
}

/* ---------- Collection ---------- */
.collection .wrap { padding-block: 80px; display: grid; gap: 32px; }
.coll-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
.card { position: relative; overflow: hidden; display: grid; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ui); -webkit-tap-highlight-color: transparent; }
.card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--e-out); }
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 100%, rgba(201,164,106,.2), transparent 70%); opacity: 0; transition: opacity .25s ease; }
a.card:active, a.card.is-pressed { transform: scale(.975) !important; border-color: rgba(201,164,106,.8) !important; transition: transform .12s ease, border-color .12s ease !important; }
a.card:active::before, a.card.is-pressed::before { opacity: 1; transition: opacity .08s ease; }
a.card:active::after, a.card.is-pressed::after { transform: scaleX(1); }
@media (hover: hover) {
  a.card:hover { border-color: rgba(201,164,106,.55); background: #25221e; }
  a.card.is-in:hover, .no-motion a.card:hover { transform: translateY(-4px); }
  a.card:hover::after { transform: scaleX(1); }
  a.card:hover .go i { transform: translateX(4px); }
}
.go { display: inline-flex; align-items: center; gap: .45rem; font-size: var(--s-1); font-weight: 600; color: var(--gold); }
.go i { font-style: normal; transition: transform .3s var(--e-out); }
.feature { grid-template-columns: .85fr 1fr; gap: 24px; padding: 28px; align-items: center; }
.feature .photo { aspect-ratio: 3 / 4; border-radius: 6px; }
.feature .photo .pic svg { width: 70%; height: auto; }
.feature .info { display: grid; gap: 12px; min-width: 0; }
.feature .info p:not(.cost) { color: var(--muted); }
.feature .cost { font-family: var(--display); font-size: 2rem; }
.list { display: grid; gap: 10px; }
.row { grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 10px 16px 10px 10px; }
.row .thumb { width: 56px; height: 72px; background: var(--deep); border-radius: 6px; display: grid; place-items: center; }
.row .thumb svg { width: 40px; height: 64px; }
.row .nm { font-family: var(--display); font-size: 1.35rem; line-height: 1.1; }
.row .mt { font-size: var(--s-1); color: var(--muted); }
.row .pr { font-size: var(--s-1); color: var(--muted); white-space: nowrap; }
.row.all .pr { color: var(--gold); font-size: 1.2rem; }
@media (max-width: 760px) { .coll-grid, .feature { grid-template-columns: 1fr; } .feature { padding: 16px; } .feature .photo { aspect-ratio: 1 / 1; } .feature .photo .pic svg { width: 44%; } }

/* ---------- The back: live engraving ---------- */
.back .wrap { padding-block: 88px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.back .copy { display: grid; gap: 22px; min-width: 0; }
.back .lead { color: var(--muted); font-size: var(--s1); line-height: 1.4; max-width: 32ch; }
.field { display: grid; gap: 8px; }
.field label, .lbl { font-size: var(--s-1); color: var(--muted); }
.field input { font: 400 1.25rem var(--display); background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-ui); padding: 14px; min-height: 54px; width: 100%; transition: border-color .2s ease; }
.field input:focus { outline: none; border-color: var(--gold); }
.count { font-size: var(--s-1); color: var(--muted); font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 400 var(--s-1) var(--sans); background: transparent; color: var(--text); border: 1px solid var(--line); padding: 9px 15px; border-radius: 999px; cursor: pointer; min-height: 42px; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--deep); }
.stage { display: grid; justify-items: center; gap: 18px; }
.flip { width: min(100%, 340px); aspect-ratio: 200 / 320; perspective: 1400px; }
.flip-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.3,.7,.2,1); }
.flip.showback .flip-inner { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face svg { width: 100%; height: 100%; filter: drop-shadow(0 20px 24px rgba(0,0,0,.6)); }
.face.rear { transform: rotateY(180deg); }
#engrText text { transition: opacity .35s ease; }
#engrText.burn text { animation: burn .9s var(--e-out) both; }
@keyframes burn { from { opacity: 0; filter: blur(2px); } to { opacity: 1; filter: none; } }
@media (max-width: 760px) { .back .wrap { grid-template-columns: 1fr; padding-block: 64px; } .stage { order: -1; } .flip { width: min(72%, 280px); } }

/* ---------- Materials ---------- */
.materials .wrap { padding-block: 80px; display: grid; gap: 32px; }
.mats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mat { gap: 0; }
.mat .photo { height: 220px; border-radius: var(--r-ui) var(--r-ui) 0 0; }
.mat .photo svg { width: 100%; height: 100%; display: block; }
.mat .cap { display: grid; gap: 6px; padding: 16px 18px 20px; }
.mat .cap p { color: var(--muted); }
@media (max-width: 760px) { .mats { grid-template-columns: 1fr; } .mat .photo { height: 150px; } }

/* ---------- Gift ---------- */
.gift .wrap { padding-block: 88px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.gift .copy { display: grid; gap: 22px; min-width: 0; }
.gift .copy > p { color: var(--muted); }
.gift .photo { aspect-ratio: 440 / 300; border-radius: 0; background: transparent; }
.gift .photo svg { width: 100%; height: auto; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px; counter-increment: s; }
.steps li::before { content: counter(s); position: static; inset: auto; opacity: 1; background: var(--wax); font-family: var(--display); font-size: 1.5rem; width: 44px; height: 44px; border-radius: 50%; color: var(--wax-on); display: grid; place-items: center; }
.steps b { font-weight: 600; display: block; }
.steps li span { color: var(--muted); }
.steps li b { color: var(--text); }
@media (max-width: 760px) { .gift .wrap { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Delivery ---------- */
.delivery .wrap { padding-block: 72px; display: grid; gap: 28px; }
.geo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.geo .card { gap: 4px; padding: 18px; }
.geo .c { font-family: var(--display); font-size: 1.7rem; }
.geo .d { font-size: var(--s-1); color: var(--muted); }
@media (max-width: 760px) { .geo { grid-template-columns: 1fr 1fr; } }

/* ---------- FAQ: one card = question + answer, animated height ---------- */
.faq .wrap { padding-block: 88px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; }
.faq-item { margin: 0 0 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ui); transition: border-color .25s ease, background-color .25s ease; }
.faq-item[open] { border-color: rgba(201,164,106,.55); background: #25221e; }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; padding: 14px 16px 14px 20px; cursor: pointer; font-family: var(--display); font-size: 1.35rem; line-height: 1.2; -webkit-tap-highlight-color: transparent; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { flex: 0 0 30px; height: 30px; position: relative; border: 1px solid rgba(236,231,223,.25); border-radius: 50%; transition: transform .35s var(--e-out), border-color .25s ease, background-color .25s ease; }
.faq-item summary i::before, .faq-item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq-item summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] summary i { transform: rotate(45deg); border-color: var(--gold); background: var(--gold-soft); color: var(--gold); }
@media (hover: hover) { .faq-item summary:hover { color: var(--gold); } }
.faq-a { overflow: hidden; }
.faq-a p { padding: 0 20px 18px; max-width: 62ch; color: var(--muted); }
@media (max-width: 760px) { .faq .wrap { grid-template-columns: 1fr; gap: 20px; padding-block: 64px; } }

/* ---------- Order ---------- */
.order .wrap { padding-block: 88px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.order .copy { display: grid; gap: 20px; align-content: start; }
.order .copy > p { color: var(--muted); }
.msg { display: flex; flex-wrap: wrap; gap: 10px; }
form { display: grid; gap: 14px; min-width: 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ui); }
form label { font-size: var(--s-1); color: var(--muted); display: grid; gap: 6px; }
form input, form textarea { font: 400 16px var(--sans); background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 13px 14px; min-height: 48px; width: 100%; transition: border-color .2s ease; }
form input:focus, form textarea:focus { outline: none; border-color: var(--gold); }
form textarea { min-height: 96px; resize: vertical; }
.sent { font-size: var(--s-1); color: var(--gold); }
@media (max-width: 760px) { .order .wrap { grid-template-columns: 1fr; padding-block: 64px; } form { padding: 16px; } }

footer { background: var(--deep); color: var(--muted); font-size: var(--s-1); border-top: 1px solid var(--line); }
footer .wrap { padding-block: 24px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- Typed reveals (start states only under html.motion) ---------- */
.motion [data-rv="title"]:not(.is-in) { clip-path: inset(0 0 100% 0); transform: translate3d(0, 44px, 0); }
.motion [data-rv="title"] { transition: clip-path 1.1s var(--e-out) calc(var(--d, 0ms) + 120ms), transform 1.1s var(--e-out) calc(var(--d, 0ms) + 120ms); }
.motion [data-rv="text"]:not(.is-in) { opacity: 0; transform: translate3d(0, 30px, 0); }
.motion [data-rv="text"] { transition: opacity .8s ease calc(var(--d, 0ms) + 220ms), transform .9s var(--e-out) calc(var(--d, 0ms) + 220ms); }
.motion [data-rv="media"]:not(.is-in) { clip-path: inset(22% 10% 22% 10%); opacity: .35; }
.motion [data-rv="media"] { transition: clip-path 1.3s var(--e-io) var(--d, 0ms), opacity .9s ease var(--d, 0ms); }
.motion [data-rv="card"]:not(.is-in) { opacity: 0; transform: translate3d(0, 56px, 0) scale(.94); }
.motion [data-rv="card"] { transition: opacity .7s ease var(--d, 0ms), transform 1s var(--e-out) var(--d, 0ms), border-color .25s ease, background-color .25s ease; }
.motion [data-rv="card"].is-done { transition: transform .3s var(--e-out), border-color .25s ease, background-color .25s ease; }

/* Parallax: the inner picture is moved/scaled every frame by the script */
.px .pic { will-change: transform; transform-origin: 50% 50%; backface-visibility: hidden; }
.layer { will-change: translate; }

/* Anchor destination: heading underline sweep */
h2::after { content: ""; position: absolute; left: 0; bottom: -.18em; height: 2px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
section.is-target h2::after { animation: underline 1.8s var(--e-out) both; }
@keyframes underline { 0% { transform: scaleX(0); } 45% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

/* Scene rail (desktop) */
.rail { display: none; }
@media (min-width: 1100px) and (pointer: fine) {
  .rail { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
  .rail a { display: flex; align-items: center; gap: 10px; height: 16px; color: #615a52; text-decoration: none; font-size: 12px; }
  .rail a::after { content: ""; width: 12px; height: 1px; background: currentColor; transition: width .35s var(--e-out); }
  .rail a span { opacity: 0; transform: translateX(6px); transition: opacity .25s ease, transform .25s ease; background: rgba(12,11,10,.9); padding: 2px 8px; border-radius: 4px; }
  .rail a:hover span { opacity: 1; transform: none; color: var(--text); }
  .rail a.is-active { color: var(--gold); }
  .rail a.is-active::after { width: 28px; }
}

/* Reading progress (desktop, where scroll timelines exist) */
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@supports (animation-timeline: scroll()) {
  @media (min-width: 782px) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    body::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: var(--gold); transform-origin: left; animation: progress linear both; animation-timeline: scroll(root); }
  }
}

/* Reduced motion: everything visible, nothing moves */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero *, .js .hero .scan::after, section.is-target h2::after, #engrText.burn text { animation: none !important; }
  .flip-inner { transition: none; }
  a.card:active, a.card.is-pressed, .btn:active { transform: none !important; }
  .layer { translate: none !important; }
}

/* Phones: second header row with the page links, scrolls sideways */
.subnav { display: none; }
@media (max-width: 760px) {
  .subnav { display: block; border-top: 1px solid var(--line); }
  .subnav .wrap { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; font-size: var(--s-1); white-space: nowrap; }
  .subnav .wrap::-webkit-scrollbar { display: none; }
  .subnav a { text-decoration: none; color: var(--muted); }
  .subnav a[aria-current="page"] { color: var(--gold); }
}
.feature .info p a.in-link { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.feature .go { text-decoration: none; justify-self: start; }
