/* Inner pages of the ЧЕРНИКОВ mockup: woods, cords, engraving, builder.
   Built on site.css (tokens, header, buttons, cards, motion copied from the home page). */
.crumbs { font-size: var(--s-1); color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
nav a[aria-current="page"] { color: var(--gold); }

/* Page hero: text + one own photo */
.page-hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-block: 40px 72px; }
.page-hero .hero-copy { gap: 20px; }
.page-hero h1 { font-size: clamp(2.4rem, 7.5vw, 4.4rem); }
.page-hero .photo { aspect-ratio: 4 / 5; }
.pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .page-hero .wrap { grid-template-columns: 1fr; padding-block: 20px 56px; gap: 24px; }
  .page-hero .photo { aspect-ratio: 1 / 1; }
}

.block .wrap { padding-block: 80px; display: grid; gap: 32px; }
.block .intro { max-width: 60ch; color: var(--muted); font-size: 1.125rem; }
@media (max-width: 760px) { .block .wrap { padding-block: 60px; } }

/* Wood / cord / engraving cards with a photo on top */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.item .photo { aspect-ratio: 4 / 5; border-radius: var(--r-ui) var(--r-ui) 0 0; }
.item .photo.wide { aspect-ratio: 4 / 3; }
.item .photo svg { width: 100%; height: 100%; display: block; }
.item .cap { display: grid; gap: 10px; padding: 18px 18px 22px; align-content: start; }
.item .cap p { color: var(--muted); }
.facts { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font-size: var(--s-1); }
.facts li { display: grid; grid-template-columns: 9.5em 1fr; gap: 8px; }
.facts li span:first-child { color: var(--muted); }
.tag { justify-self: start; font-size: .75rem; color: var(--gold); border: 1px solid rgba(201,164,106,.4); padding: 3px 9px; border-radius: 999px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid, .grid.two { grid-template-columns: 1fr; } .item .photo { aspect-ratio: 1 / 1; } }

/* Numbered how-to */
.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: s; }
.how li { counter-increment: s; padding: 20px; gap: 10px; align-content: start; }
.how li::before { content: counter(s); position: static; inset: auto; opacity: 1; background: transparent; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-family: var(--display); font-size: 1.3rem; }
.how b { display: block; font-weight: 600; margin-bottom: 4px; }
.how span { color: var(--muted); }
@media (max-width: 900px) { .how { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .how { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split .copy { display: grid; gap: 18px; }
.split .copy > p { color: var(--muted); }
.split .photo { aspect-ratio: 1 / 1; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.cta .wrap { padding-block: 80px; display: grid; gap: 20px; justify-items: start; }
.cta p { color: var(--muted); max-width: 52ch; }

/* ---------- Builder ---------- */
.builder .wrap { padding-block: 32px 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.b-stage { position: sticky; top: 84px; display: grid; gap: 14px; justify-items: center; background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(201,164,106,.10), transparent 70%), var(--deep); border: 1px solid var(--line); border-radius: var(--r-ui); padding: 20px 16px; }
.b-stage svg { width: 100%; max-width: 420px; height: auto; max-height: calc(100vh - 230px); display: block; }
.b-cross { transition: transform .6s var(--e-out); transform-origin: 100px 160px; }
.b-side { transition: opacity .35s ease; }
.b-size { font-size: var(--s-1); color: var(--muted); font-variant-numeric: tabular-nums; }
.b-stage .actions { justify-content: center; }
.b-form { display: grid; gap: 28px; min-width: 0; }
.b-step { display: grid; gap: 12px; padding: 0; border: 0; margin: 0; min-width: 0; }
.b-step legend, .b-step h2 { padding: 0; font-family: var(--display); font-size: 1.6rem; line-height: 1.1; margin-bottom: 4px; }
.b-step .hint { font-size: var(--s-1); color: var(--muted); }
.chip .sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 8px; vertical-align: -2px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.b-step textarea { font: 400 1.125rem var(--display); background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-ui); padding: 12px 14px; width: 100%; min-height: 84px; resize: vertical; }
.b-step textarea:focus { outline: none; border-color: var(--gold); }
.seg2 { display: inline-flex; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; gap: 4px; }
.seg2 button { font: 500 var(--s-1) var(--sans); background: transparent; border: 0; color: var(--muted); padding: 8px 16px; border-radius: 999px; cursor: pointer; min-height: 38px; }
.seg2 button[aria-pressed="true"] { background: var(--text); color: var(--deep); }
.summary { display: grid; gap: 14px; padding: 22px; }
.summary dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: var(--s-1); }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; }
.summary .price { font-family: var(--display); font-size: 1.5rem; }
.summary .small { font-size: var(--s-1); color: var(--muted); }
.copied { font-size: var(--s-1); color: var(--gold); }
@media (max-width: 860px) {
  .builder .wrap { grid-template-columns: 1fr; gap: 24px; }
  .b-stage { position: sticky; top: 104px; z-index: 5; padding: 10px; }
  .b-stage svg { max-width: none; height: 28vh; width: auto; }
  .b-stage .actions, .b-stage .ph { display: none; }
}

/* Model-based preview (22.11.2026): real photo on the front, model silhouette on the back */
.bm { width: 100%; height: min(56vh, 440px); display: grid; place-items: center; }
.bm-box { position: relative; height: 100%; aspect-ratio: var(--ar, .6); transition: transform .6s var(--e-out); filter: drop-shadow(0 18px 22px rgba(0,0,0,.55)); }
.bm-front { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; transition: opacity .35s ease; }
.bm-back { position: absolute; inset: 0; transition: opacity .35s ease; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.bm-text { position: absolute; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; font-family: var(--display, Forum), "Times New Roman", serif; line-height: 1.12; overflow-wrap: normal; word-break: keep-all; }
.bm-text.burn { animation: burn .7s ease both; }
.w-belyj { background: repeating-linear-gradient(92deg, rgba(120,80,30,.10) 0 2px, transparent 2px 7px), linear-gradient(180deg, #e3cd9c, #d4b983); }
.w-chernyj { background: repeating-linear-gradient(92deg, rgba(255,255,255,.035) 0 1px, transparent 1px 6px), linear-gradient(180deg, #232325, #19191b); }
.w-blackwood { background: repeating-linear-gradient(92deg, rgba(120,90,60,.10) 0 1px, transparent 1px 5px), linear-gradient(180deg, #2a221d, #1c1714); }
.w-carbon { background: conic-gradient(#3b3e41 25%, #151617 0 50%, #2d2f31 0 75%, #151617 0) 0 0 / 10px 10px; }
.chips.models .chip { display: inline-flex; align-items: center; gap: 8px; padding-left: 6px; }
.chip .th { width: 26px; height: 34px; object-fit: cover; border-radius: 4px; }
@media (max-width: 760px) { .bm { height: 30vh; } }
.bm { position: relative; }
.bm-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .35s ease, transform .6s var(--e-out); opacity: 0; }
.bm-box { transition: transform .6s var(--e-out), opacity .35s ease; }
#goldStep { display: grid; gap: 8px; justify-items: start; }
#goldStep[hidden], #customWrap[hidden] { display: none; }
#customWrap { display: grid; gap: 8px; }
