/* ЛЕВО РУЛЯ — PRINTS section (/prints/, /prints/<slug>/).
   The approved artwork keeps its own palette; the interface around it uses the
   site tokens with amber as the section accent and a short fire gradient. */

.pr {
  --pr-accent: var(--amber);
  --pr-fire: linear-gradient(100deg, #ffc233 0%, #ff8a1f 45%, #ff5a5a 100%);
  --pr-plate: #0b0b0b;
  position: relative;
}
.pr-wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

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

/* ---------- shared pieces ---------- */
.pr-crumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px;
  margin: 0; padding: 0; list-style: none;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bone-dim);
}
.pr-crumbs li { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.pr-crumbs li + li::before { content: "/"; color: var(--border-strong); }
.pr-crumbs a { color: var(--bone-dim); text-decoration: none; padding: 12px 0; }
.pr-crumbs a:hover { color: var(--bone); }
.pr-crumbs [aria-current] { color: var(--pr-accent); }

.pr-head {
  display: flex; align-items: center; gap: 12px; margin: 0 0 20px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bone-dim);
}
.pr-head__n { color: var(--pr-accent); font-weight: 700; }
.pr-head__rule { width: 40px; height: 1px; background: var(--border-strong); }

.pr-fire { color: var(--pr-accent); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .pr-fire {
    background: var(--pr-fire);
    background-size: 180% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: pr-flame 7s ease-in-out infinite alternate;
  }
}

/* Per-print key-word accent ("theme" in content/prints/<slug>.json).
   noise: the flame turns into slowly rolling TV interference in bone tones. */
.pr-print--noise {
  --pr-fire: repeating-linear-gradient(180deg, #f2ecdc 0 3px, #8c8879 3px 4px, #d9d2c1 4px 7px, #5f5b51 7px 8px);
}
.pr-print--noise .pr-fire { color: var(--bone); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .pr-print--noise .pr-fire {
    color: transparent;
    background-size: 100% 16px;
    animation: pr-static 3.2s linear infinite;
  }
}

.pr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 20px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--bone); background: transparent; border: 2px solid var(--border-strong);
  text-decoration: none; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
}
.pr-btn:hover { border-color: var(--bone); }
.pr-btn--fire { background: var(--pr-accent); border-color: var(--pr-accent); color: var(--void); }
.pr-btn--fire:hover { background: #ffcb47; border-color: #ffcb47; }
.pr-btn__count { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; }

/* Print plate: dark proof sheet with crop marks. The glow stays under the
   lettering so bone text and the red Teiwaz keep full contrast. */
.pr-plate {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(16px, 4vw, 56px);
  background: var(--pr-plate);
  border: 1px solid var(--border);
}
.pr-plate::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(55% 75% at 50% 118%, rgba(255, 138, 31, 0.24), transparent 72%);
  opacity: 0.75;
  transition: opacity .45s ease;
  animation: pr-ember 6s ease-in-out infinite;
}
.pr-plate::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 4px);
}
.pr-plate__marks i {
  position: absolute; width: 18px; height: 18px;
  border: 0 solid rgba(232, 226, 211, 0.38);
}
.pr-plate__marks i:nth-child(1) { top: 10px; left: 10px; border-top-width: 1px; border-left-width: 1px; }
.pr-plate__marks i:nth-child(2) { top: 10px; right: 10px; border-top-width: 1px; border-right-width: 1px; }
.pr-plate__marks i:nth-child(3) { bottom: 10px; left: 10px; border-bottom-width: 1px; border-left-width: 1px; }
.pr-plate__marks i:nth-child(4) { bottom: 10px; right: 10px; border-bottom-width: 1px; border-right-width: 1px; }
.pr-artwork { position: relative; display: block; width: 100%; height: auto; }
/* A portrait artwork fits the screen height instead of the plate width. */
.pr-artwork--tall { width: auto; max-width: 100%; max-height: 62vh; max-height: min(62svh, 860px); margin-inline: auto; }

.pr-plate__zoom {
  position: absolute; right: 14px; bottom: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bone); background: rgba(10, 10, 10, 0.72);
  border: 1px solid var(--border-strong); text-decoration: none;
  transition: color .15s ease, border-color .15s ease;
}
.pr-plate__zoom:hover { color: var(--pr-accent); border-color: var(--pr-accent); }

/* ---------- /prints/ ---------- */
/* Catalog page: a short header, then a filterable grid of equal tiles. */
.pr-index__hero {
  position: relative; overflow: hidden;
  padding: 24px 0 48px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--void) 0%, #140d02 100%);
}
.pr-index__head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 24px 64px; align-items: end; margin-top: 32px;
}
.pr-index__title {
  margin: 14px 0 0;
  font-size: clamp(64px, 8.4vw, 124px); line-height: 0.85; letter-spacing: -0.02em;
}
.pr-index__title span { color: var(--pr-accent); }
.pr-index__intro { display: grid; gap: 22px; }
.pr-index__lead { margin: 0; font-size: 18px; line-height: 1.55; color: var(--bone); }
.pr-index__stats {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 36px;
  margin: 0; padding-top: 16px; border-top: 1px solid var(--border);
}
.pr-index__stats div { display: grid; gap: 4px; }
.pr-index__stats dt {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bone-dim);
}
.pr-index__stats dd {
  margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1;
  color: var(--bone);
}

.pr-shop { padding: 40px 0 96px; }
.pr-shop__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 32px; margin-bottom: 28px;
}
.pr-shop__title {
  display: flex; align-items: baseline; gap: 12px; margin: 0;
  font-size: clamp(28px, 3vw, 40px); line-height: 1;
}
.pr-shop__count { font-family: var(--font-mono); font-size: 14px; font-weight: 400; color: var(--pr-accent); }
.pr-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.pr-filter__chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 16px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bone); background: transparent;
  border: 1px solid var(--border-strong); border-radius: 0; cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.pr-filter__chip:hover { border-color: var(--pr-accent); }
.pr-filter__chip[aria-pressed="true"] { color: var(--void); background: var(--pr-accent); border-color: var(--pr-accent); }
.pr-filter__n { color: var(--bone-dim); }
.pr-filter__chip[aria-pressed="true"] .pr-filter__n { color: rgba(10, 10, 10, 0.62); }
.pr-filter__chip:focus-visible { outline: 2px solid var(--cyber-cyan); outline-offset: 2px; }

.pr-shop__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px;
  margin: 0; padding: 0; list-style: none;
}
.pr-tile { position: relative; display: flex; flex-direction: column; }
/* Every artwork, wide lettering or tall drawing, sits whole in the same square. */
.pr-plate--tile { aspect-ratio: 1 / 1; padding: 11%; }
.pr-plate--tile .pr-artwork {
  width: 100%; height: 100%; max-height: none; object-fit: contain;
  transition: transform .45s ease;
}
.pr-tile__body {
  display: flex; flex-direction: column; flex: 1;
  padding: 16px 0 0; border-bottom: 1px solid var(--border);
  transition: border-color .2s ease;
}
.pr-tile__meta {
  display: flex; justify-content: space-between; gap: 12px; margin: 0 0 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bone-dim);
}
.pr-tile__num { color: var(--pr-accent); font-weight: 700; }
.pr-tile__title { margin: 0; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.02; }
.pr-tile__link { color: var(--bone); text-decoration: none; transition: color .15s ease; }
.pr-tile__link::after { content: ""; position: absolute; inset: 0; z-index: 4; }
.pr-tile__phrase {
  margin: 8px 0 0;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bone-dim);
}
.pr-tile__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding: 18px 0 16px;
}
.pr-tile__colors { display: flex; align-items: center; gap: 6px; margin: 0; }
.pr-tile__dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--pr-swatch); box-shadow: 0 0 0 1px rgba(232, 226, 211, 0.45);
}
.pr-tile__more { margin-left: 2px; font-family: var(--font-mono); font-size: 11px; color: var(--bone-dim); }
.pr-tile__go {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--pr-accent);
}
.pr-tile__go span { display: inline-block; transition: transform .2s ease; }
.pr-tile:hover .pr-plate::before { opacity: 1; }
.pr-tile:hover .pr-plate--tile .pr-artwork { transform: scale(1.035); }
.pr-tile:hover .pr-tile__link { color: var(--pr-accent); }
.pr-tile:hover .pr-tile__go span { transform: translateX(5px); }
.pr-tile:hover .pr-tile__body { border-bottom-color: var(--pr-accent); }
@supports selector(:has(a)) {
  .pr-tile__link:focus-visible { outline: none !important; }
  .pr-tile:has(.pr-tile__link:focus-visible) { outline: 2px solid var(--cyber-cyan); outline-offset: 6px; }
}

.pr-steps { padding: 64px 0 104px; border-top: 1px solid var(--border); background: #0d0d0d; }
.pr-steps__title { margin: 0 0 32px; font-size: clamp(28px, 3vw, 40px); line-height: 1; }
.pr-steps__list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  margin: 0; padding: 0; list-style: none;
}
.pr-step { padding-top: 18px; border-top: 2px solid var(--border-strong); }
.pr-step:first-child { border-top-color: var(--pr-accent); }
.pr-step__n { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--pr-accent); }
.pr-step__title { margin: 10px 0 8px; font-size: 22px; line-height: 1.1; }
.pr-step__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--bone-dim); }

/* ---------- /prints/<slug>/ hero ---------- */
.pr-hero { padding: 24px 0 88px; border-bottom: 1px solid var(--border); }
.pr-hero .pr-plate { margin-top: 16px; padding-block: clamp(8px, 1.4vw, 20px); }
.pr-hero .pr-artwork { max-width: 1040px; margin: 0 auto; }
.pr-hero__head { margin-top: 44px; }
.pr-hero__latin {
  margin: 0 0 16px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bone-dim);
}
.pr-hero__latin [lang] { color: var(--pr-accent); }
/* --pr-title-chars (longest word, set in _prints.jsx) caps the size so a long
   word like "Информационный" never runs past the edge: ~0.62em per letter. */
.pr-hero__title {
  margin: 0; line-height: 0.88; letter-spacing: -0.02em;
  font-size: min(clamp(48px, 8.6vw, 132px), calc((100vw - 64px) / (var(--pr-title-chars, 1) * 0.64)));
}
.pr-hero__grid {
  display: grid; grid-template-columns: minmax(0, 660px) auto; justify-content: space-between;
  gap: 24px 64px; align-items: end;
  margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border);
}
.pr-hero__lead { margin: 0; font-size: 19px; line-height: 1.6; color: var(--bone); }
.pr-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- video ---------- */
.pr-film { padding: 96px 0; border-bottom: 1px solid var(--border); }
/* Label, frame and caption fit one screen on short laptops; the frame stays 16:9. */
.pr-film__stage { max-width: min(1280px, max(624px, calc((100svh - 240px) * 16 / 9 + 64px))); }
.pr-film__figure { margin: 0; }
.pr-film__frame {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #050505;
  border: 1px solid var(--border-strong);
}
.pr-film__frame.is-playing,
.pr-film__frame.is-paused { cursor: pointer; }
.pr-film__media { display: block; width: 100%; height: 100%; object-fit: cover; }
.pr-film__badge {
  position: absolute; left: 16px; bottom: 16px;
  display: grid; place-items: center; width: 48px; height: 48px;
  color: var(--pr-accent); background: rgba(10, 10, 10, 0.72);
  border: 1px solid var(--pr-accent); font-size: 15px; pointer-events: none;
}
.pr-film__bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 16px 24px; padding-top: 20px;
}
.pr-film__caption { margin: 0; font-size: clamp(26px, 3.4vw, 46px); line-height: 1; }
.pr-film__toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 14px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bone); background: transparent; border: 1px solid var(--border-strong); cursor: pointer;
}
.pr-film__toggle:hover { color: var(--pr-accent); border-color: var(--pr-accent); }

/* ---------- story ---------- */
.pr-story { padding: 112px 0; border-bottom: 1px solid var(--border); }
.pr-story__title { margin: 0 0 64px; max-width: 13ch; font-size: clamp(40px, 6vw, 88px); line-height: 0.9; }
.pr-story__grid {
  display: grid; grid-template-columns: minmax(220px, 290px) minmax(0, 700px);
  gap: 48px 104px; align-items: start;
}
.pr-spec {
  position: sticky; top: 104px;
  padding: 22px 22px 6px;
  background: rgba(20, 20, 20, 0.78);
  border: 1px solid var(--border);
}
.pr-spec__title {
  margin: 0 0 12px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--pr-accent);
}
.pr-spec dl { margin: 0; }
.pr-spec dl > div { padding: 12px 0 14px; border-top: 1px dashed var(--border-strong); }
.pr-spec dt {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bone-dim);
}
.pr-spec dd { margin: 5px 0 0; font-size: 15px; line-height: 1.45; color: var(--bone); overflow-wrap: anywhere; }
.pr-spec dd a { color: var(--pr-accent); text-underline-offset: 4px; }

.pr-story__body { max-width: 700px; }
.pr-story__p { position: relative; margin: 0 0 28px; font-size: 19px; line-height: 1.72; color: var(--bone); }
.pr-story__n {
  position: absolute; left: -72px; top: 0.5em;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--pr-accent);
}
.pr-quote {
  margin: 44px 0 48px; padding: 30px 0;
  border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong);
}
.pr-quote p {
  margin: 0;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(34px, 4.6vw, 66px); line-height: 0.95; letter-spacing: -0.01em;
}
.pr-quote__latin { display: block; color: var(--bone); }
.pr-story__cta { margin-top: 12px; }

/* ---------- assortment ---------- */
.pr-assort { padding: 112px 0 40px; }
.pr-assort__head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  gap: 28px 64px; align-items: end; margin-bottom: 56px;
}
.pr-assort__title { margin: 0; font-size: clamp(48px, 7vw, 108px); line-height: 0.88; }
.pr-assort__notes p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--bone); }
.pr-assort__notes .pr-assort__fine { margin-top: 12px; font-size: 14px; color: var(--bone-dim); }

/* Rows of 3 (2 on tablets): a card's width share follows its photo's aspect
   ratio (--pr-share-*, set in _prints.jsx), so all photos in a row have the
   same height and none is cropped. Colors and buttons line up below. */
.pr-grid {
  --pr-gap: 28px;
  display: flex; flex-wrap: wrap; justify-content: center; column-gap: var(--pr-gap);
  margin: 0; padding: 0; list-style: none;
}
.pr-card {
  display: flex; flex-direction: column; min-width: 0;
  flex: 0 0 calc((100% - 2 * var(--pr-gap) - 1px) * var(--pr-share-3));
}
.pr-card__media {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: var(--pr-ratio);
  background: var(--ash-2);
  border: 1px solid var(--border);
}
.pr-card__media img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.pr-card__zoom {
  position: absolute; top: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: 0; min-height: 36px; padding: 6px 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bone); background: rgba(10, 10, 10, 0.72);
  border: 1px solid rgba(232, 226, 211, 0.22);
  transition: gap .25s ease, border-color .2s ease;
}
.pr-card__zoom-text {
  max-width: 0; overflow: hidden; white-space: nowrap;
  transition: max-width .25s ease;
}
.pr-card__media:hover img { transform: scale(1.03); }
.pr-card__media:hover .pr-card__zoom,
.pr-card__media:focus-visible .pr-card__zoom { gap: 8px; border-color: var(--pr-accent); }
.pr-card__media:hover .pr-card__zoom-text,
.pr-card__media:focus-visible .pr-card__zoom-text { max-width: 14ch; }
.pr-card__media:focus-visible { outline-offset: 4px; }

.pr-card__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 14px; padding: 18px 0 72px; }
.pr-card__num {
  margin: 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--bone-dim);
}
.pr-card__name { margin: -6px 0 0; font-size: clamp(22px, 2vw, 28px); line-height: 1.02; }
.pr-card__caption { margin: 0; font-size: 15px; line-height: 1.5; color: var(--bone-dim); }

.pr-colors__label {
  margin: 0 0 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bone-dim);
}
.pr-colors__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pr-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 11px;
  font-size: 14px; line-height: 1.2; color: var(--bone); text-decoration: none;
  border: 1px solid var(--border-strong);
  transition: border-color .15s ease, background .15s ease;
}
.pr-chip:hover { border-color: var(--pr-accent); background: rgba(255, 184, 0, 0.07); }
.pr-chip__dot {
  flex: none; width: 14px; height: 14px; border-radius: 50%;
  background: var(--pr-swatch);
  box-shadow: 0 0 0 1px rgba(232, 226, 211, 0.5);
}
.pr-chip__tag {
  padding: 2px 5px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--void); background: var(--bone-dim);
}
.pr-chip__out { font-size: 12px; color: var(--bone-dim); }

.pr-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; min-height: 50px; padding: 12px 16px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--bone); border: 2px solid var(--bone); text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pr-cta:hover { color: var(--void); background: var(--pr-accent); border-color: var(--pr-accent); }

.pr-outro { padding: 40px 0 72px; border-top: 1px solid var(--border); }
.pr-outro__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.pr-outro__top {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bone-dim); text-decoration: none;
}
.pr-outro__top:hover { color: var(--bone); }

/* ---------- full-size viewer ---------- */
.pr-viewer {
  width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh;
  margin: 0; padding: 0; border: 0;
  color: var(--bone); background: rgba(8, 8, 8, 0.97);
  color-scheme: dark;
}
.pr-viewer[open] { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
.pr-viewer--product[open] { grid-template-columns: minmax(0, 1fr) 360px; }
.pr-viewer::backdrop { background: rgba(0, 0, 0, 0.86); }
body:has(.pr-viewer[open]) { overflow: hidden; }
.pr-viewer__bar {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
}
.pr-viewer__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 18px; text-transform: uppercase; }
.pr-viewer__title [lang] { color: var(--pr-accent); }
.pr-viewer__count { margin-right: 10px; font-family: var(--font-mono); font-size: 11px; color: var(--pr-accent); }
.pr-viewer__tools { display: flex; flex-wrap: wrap; gap: 6px; }
.pr-viewer__tools button {
  min-width: 44px; min-height: 44px; padding: 8px 12px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--bone); background: transparent; border: 1px solid var(--border-strong); cursor: pointer;
}
.pr-viewer__tools button:hover,
.pr-viewer__tools button[aria-pressed="true"] { color: var(--pr-accent); border-color: var(--pr-accent); }
.pr-viewer__stage { position: relative; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.pr-viewer__stage img {
  position: absolute; inset: 0; display: block; margin: auto;
  width: auto; height: auto; max-width: calc(100% - 32px); max-height: calc(100% - 32px);
  background: center / contain no-repeat;
  cursor: zoom-in;
}
.pr-viewer__stage.is-zoomed img {
  position: static; max-width: none; max-height: none; margin: 16px auto; cursor: zoom-out;
}
.pr-viewer--art .pr-viewer__stage { background: var(--pr-plate); }
.pr-viewer__info {
  display: flex; flex-direction: column; gap: 20px; min-height: 0; overflow: auto;
  padding: 24px 20px; border-left: 1px solid var(--border);
}

/* ---------- not found ---------- */
.pr-missing { min-height: 60vh; padding: 24px 0 120px; }
.pr-missing__title { margin: 56px 0 0; font-size: clamp(48px, 8vw, 120px); line-height: 0.9; }
.pr-missing__lead { max-width: 560px; margin: 20px 0 28px; font-size: 19px; color: var(--bone-dim); }

/* ---------- home page teaser ---------- */
/* A ticket beside the hero logotype. It stays quieter than the buttons: dark
   glass with mono labels; only the proof window and "ТЫ." carry fire. */
.pr-teaser {
  --pr-accent: var(--amber);
  --pr-fire: linear-gradient(100deg, #ffc233 0%, #ff8a1f 45%, #ff5a5a 100%);
  position: relative;
  display: grid; grid-template-columns: clamp(120px, 40%, 208px) minmax(0, 1fr); align-items: center; gap: 18px;
  padding: 9px 16px 9px 9px;
  color: var(--bone); text-decoration: none;
  background: rgba(12, 11, 10, 0.74);
  border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color .2s ease, background-color .2s ease;
  container-type: inline-size;
}
.pr-teaser:hover { border-color: var(--pr-accent); background-color: rgba(24, 16, 4, 0.84); }
.pr-teaser:focus-visible { outline: 2px solid var(--pr-accent); outline-offset: 3px; border-color: var(--pr-accent); }

.pr-teaser__window {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 5 / 3;
  background: #0b0b0b;
  border: 1px solid var(--border);
}
.pr-teaser__window::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 80% at 50% 120%, rgba(255, 138, 31, 0.3), transparent 72%);
  animation: pr-ember 6s ease-in-out infinite;
}
.pr-teaser__window::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px);
}
.pr-teaser .pr-plate__marks i { width: 9px; height: 9px; border-color: rgba(232, 226, 211, 0.32); }
.pr-teaser .pr-plate__marks i:nth-child(1), .pr-teaser .pr-plate__marks i:nth-child(2) { top: 5px; }
.pr-teaser .pr-plate__marks i:nth-child(3), .pr-teaser .pr-plate__marks i:nth-child(4) { bottom: 5px; }
.pr-teaser .pr-plate__marks i:nth-child(odd) { left: 5px; }
.pr-teaser .pr-plate__marks i:nth-child(even) { right: 5px; }

/* Every artwork sits in the same box; the active one cuts in like a glitching proof. */
.pr-teaser__art {
  position: absolute; inset: 0; margin: auto;
  width: 80%; height: 70%; object-fit: contain;
  opacity: 0; transition: opacity .35s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}
.pr-teaser__art[data-on] { opacity: 1; animation: pr-teaser-cut .62s steps(1, end) both; }
.pr-teaser:hover .pr-teaser__art[data-on] { transform: scale(1.05); }
.pr-teaser__scan {
  position: absolute; left: 0; right: 0; top: 0; height: 34%; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 184, 0, 0), rgba(255, 184, 0, 0.16) 78%, rgba(255, 214, 128, 0.7) 100%);
  mix-blend-mode: screen;
  animation: pr-teaser-scan .8s cubic-bezier(.3, .6, .3, 1) both;
}

.pr-teaser__body { display: grid; gap: 3px; min-width: 0; }
.pr-teaser__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--pr-accent);
}
.pr-teaser__kicker::before {
  content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%;
  background: var(--pr-accent);
  animation: pr-teaser-ping 2.4s ease-out infinite;
}
.pr-teaser__title {
  font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 0.95; letter-spacing: -0.01em;
}
.pr-teaser__now {
  margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--bone-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* The print name needs about 220px; a narrower ticket shows the art alone. */
@container (max-width: 430px) {
  .pr-teaser__now { display: none; }
}
.pr-teaser__meta {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--bone);
}
.pr-teaser__go { display: inline-block; color: var(--pr-accent); transition: transform .2s ease; }
.pr-teaser:hover .pr-teaser__go { transform: translateX(4px); }

/* ---------- motion ---------- */
@keyframes pr-ember { 0%, 100% { opacity: 0.6; } 50% { opacity: 0.95; } }
@keyframes pr-flame { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes pr-static { to { background-position: 0 32px; } }
@keyframes pr-teaser-cut {
  0% { opacity: 0; }
  12% { opacity: 1; clip-path: inset(0 0 62% 0); transform: translateX(-5px); filter: drop-shadow(3px 0 0 rgba(0, 229, 255, 0.7)); }
  30% { clip-path: inset(48% 0 0 0); transform: translateX(4px); filter: drop-shadow(-3px 0 0 rgba(255, 184, 0, 0.8)); }
  48% { clip-path: inset(18% 0 30% 0); transform: translateX(-2px); filter: none; }
  66%, 100% { opacity: 1; clip-path: inset(0); transform: none; filter: none; }
}
@keyframes pr-teaser-scan { from { transform: translateY(-110%); } to { transform: translateY(310%); } }
@keyframes pr-teaser-ping {
  0% { box-shadow: 0 0 0 0 rgba(255, 184, 0, 0.55); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(255, 184, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .pr-plate::before, .pr-fire { animation: none !important; }
  .pr-teaser__window::before, .pr-teaser__art[data-on], .pr-teaser__kicker::before { animation: none !important; }
  .pr-teaser__scan { display: none; }
  .pr-teaser__art, .pr-teaser__go { transition: none !important; }
  .pr-teaser:hover .pr-teaser__art[data-on], .pr-teaser:hover .pr-teaser__go { transform: none !important; }
  .pr-card__media img, .pr-tile__go span, .pr-plate--tile .pr-artwork, .pr-card__zoom, .pr-card__zoom-text { transition: none !important; }
  .pr-card__media:hover img, .pr-tile:hover .pr-tile__go span, .pr-tile:hover .pr-plate--tile .pr-artwork { transform: none !important; }
}

/* ---------- layout breakpoints ---------- */
@media (max-width: 1100px) {
  .pr-index__head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .pr-shop__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-grid { --pr-gap: 20px; }
  .pr-card { flex-basis: calc((100% - var(--pr-gap) - 1px) * var(--pr-share-2)); }
  .pr-hero__grid, .pr-assort__head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .pr-story__grid { grid-template-columns: minmax(0, 1fr); }
  .pr-spec { position: static; max-width: 700px; }
  .pr-story__n { position: static; display: block; margin-bottom: 6px; }
}

@media (max-width: 860px) {
  .pr-steps__list { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pr-viewer--product[open] { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
  .pr-viewer__info { max-height: 42dvh; border-left: 0; border-top: 1px solid var(--border); padding: 16px; }
}

@media (max-width: 720px) {
  .pr-wrap { padding: 0 20px; }
  .pr-crumbs li:last-child:not(:first-child) { display: none; }
  .pr-index__hero { padding-bottom: 32px; }
  .pr-index__head { margin-top: 16px; }
  .pr-index__lead { font-size: 16px; }
  .pr-index__stats dd { font-size: 24px; }
  .pr-shop { padding: 28px 0 64px; }
  .pr-shop__bar { margin-bottom: 20px; }
  .pr-shop__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pr-plate--tile { aspect-ratio: 5 / 4; padding: 8%; }
  .pr-filter { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; }
  .pr-filter::-webkit-scrollbar { display: none; }
  .pr-filter__chip { flex: none; }
  .pr-steps { padding: 48px 0 72px; }
  .pr-plate { padding: 14px; }
  .pr-plate__marks i { width: 10px; height: 10px; }
  .pr-plate__marks i:nth-child(1), .pr-plate__marks i:nth-child(2) { top: 6px; }
  .pr-plate__marks i:nth-child(3), .pr-plate__marks i:nth-child(4) { bottom: 6px; }
  .pr-plate__marks i:nth-child(odd) { left: 6px; }
  .pr-plate__marks i:nth-child(even) { right: 6px; }
  .pr-hero { padding-bottom: 64px; }
  .pr-hero .pr-plate { overflow: visible; margin-bottom: 52px; }
  .pr-plate__zoom { right: 0; bottom: -52px; }
  .pr-hero__grid { margin-top: 32px; gap: 24px; }
  .pr-hero__title { font-size: min(clamp(40px, 12.5vw, 64px), calc((100vw - 40px) / (var(--pr-title-chars, 1) * 0.64))); }
  .pr-hero__lead { font-size: 17px; }
  .pr-hero__actions .pr-btn { flex: 1 1 auto; }
  .pr-film { padding: 64px 0; }
  .pr-film__frame { margin: 0 -20px; border-left: 0; border-right: 0; }
  .pr-film__badge { left: 10px; bottom: 10px; width: 40px; height: 40px; }
  .pr-story { padding: 72px 0; }
  .pr-story__title { margin-bottom: 36px; }
  .pr-story__p { font-size: 17px; line-height: 1.68; }
  .pr-quote { margin: 32px 0 36px; padding: 22px 0; }
  .pr-assort { padding-top: 72px; }
  .pr-assort__head { margin-bottom: 36px; }
  .pr-card { flex-basis: 100%; }
  .pr-card__body { padding-bottom: 56px; }
  .pr-card__name { font-size: 26px; }
  .pr-viewer__bar { padding: 8px 12px; }
  .pr-viewer__title { font-size: 15px; flex-basis: 100%; }
  .pr-viewer__stage { padding: 8px; }
  .pr-teaser { grid-template-columns: 136px minmax(0, 1fr); gap: 14px; padding-right: 12px; }
  .pr-teaser__title { font-size: 28px; }
  .pr-teaser__now { display: none; }
}

/* Small phones: a narrower proof window keeps every label on one line. */
@media (max-width: 400px) {
  .pr-teaser { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .pr-teaser__kicker { letter-spacing: 0.1em; }
  .pr-teaser__meta { letter-spacing: 0.02em; }
}

.pr-code {
  font-family: var(--font-mono); font-size: 0.86em; letter-spacing: 0.02em;
  white-space: nowrap;
}
.pr-story__p .pr-code { color: var(--bone); padding: 1px 4px; background: rgba(232, 226, 211, 0.06); }
