/* Сказкин POC — product page layout. Built on theme.css tokens. */

* { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

/* Мобайл: без задержки двойного тапа на интерактивных элементах */
a, button, input, label, select, textarea { touch-action: manipulation; }

/* Уважение к reduced motion: гасим анимации и транзишены */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.container-narrow { max-width: 760px; }
.section-title { text-align: center; margin: 0 0 var(--skz-space-3); }
.section-sub { text-align: center; color: var(--skz-text-light-muted); margin: 0 0 var(--skz-space-10); }

/* Старая шапка PDP (.site-header/.nav/.nav-cta) удалена 16.07.2026 —
   единая шапка приходит партиалом на всех страницах (site-header.css). */

/* ---------- Hero ---------- */
.hero { padding-top: var(--skz-space-8, 32px); padding-bottom: var(--skz-space-8, 32px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: var(--skz-space-10, 48px); align-items: start; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: var(--skz-space-10); } }

/* Gallery */
.gallery { position: sticky; top: 112px; }
@media (max-width: 960px) { .gallery { position: static; } }
.stage {
  position: relative;
  border-radius: var(--skz-radius-md);
  overflow: hidden;
  background: var(--skz-surface);
  box-shadow: var(--skz-shadow-card);
  aspect-ratio: 1 / 1;
}
.stage img { width: 100%; height: 100%; object-fit: cover; }
.stage-badge {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  background: var(--skz-gold); color: var(--skz-indigo);
  font-size: var(--skz-text-descriptor); font-weight: var(--skz-weight-semibold);
  letter-spacing: var(--skz-tracking-wide);
  padding: 7px 14px; border-radius: var(--skz-radius-full);
  box-shadow: var(--skz-shadow-card);
}
.thumbs { display: flex; flex-wrap: wrap; gap: var(--skz-space-3); margin-top: var(--skz-space-3); }
.thumb {
  position: relative;
  flex: 0 0 auto; width: 76px; height: 76px; padding: 0;
  border: 1px solid var(--skz-line); border-radius: var(--skz-radius-sm);
  overflow: visible; cursor: pointer; background: var(--skz-surface);
  transition: border-color 0.2s ease;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--skz-radius-sm) - 1px); }
.thumb:hover { border-color: var(--skz-gold); }
.thumb.is-active { border-color: var(--skz-gold); }
/* активная миниатюра помечена ляссе-меткой (как в макете) */
.thumb.is-active::after {
  content: ""; position: absolute; top: -1px; left: 9px; width: 3px; height: 14px;
  background: var(--skz-gold);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4px), 50% calc(100% - 1px), 0 calc(100% - 4px));
}
.thumb--slot .thumb-slot-i { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.blint { width: 20px; height: 20px; fill: none; stroke: var(--skz-gold); stroke-width: 1.3; }
/* Слот-фото напечатанной книги в главном кадре галереи */
.stage-slot {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 32px; background: var(--skz-surface);
}
.stage-slot[hidden] { display: none; }
.stage-slot .blint { width: 34px; height: 34px; }
.stage-slot-cap {
  font-family: var(--skz-font-serif); font-style: italic; font-weight: 800; font-size: 16px;
  color: var(--skz-text-light-muted); max-width: 300px; margin: 0; line-height: 1.5;
}

/* Loader overlay */
.loader {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--skz-space-3);
  background: rgba(30, 18, 16, 0.62);
  backdrop-filter: blur(3px);
  color: var(--skz-text-dark);
  text-align: center; padding: var(--skz-space-6);
}
.spinner {
  width: 52px; height: 52px; border-radius: 50%;
  border: 4px solid rgba(240, 230, 211, 0.35);
  border-top-color: var(--skz-gold);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text { font-family: var(--skz-font-serif); font-weight: 800; font-size: var(--skz-text-h3); margin: var(--skz-space-2) 0 0; color: var(--skz-text-dark); }
.loader-sub { font-size: var(--skz-text-caption); color: var(--skz-text-dark-muted); margin: 0; }

/* ---------- Product column ---------- */
.product-title { margin: var(--skz-space-2) 0 var(--skz-space-3); }
.rating { display: flex; align-items: center; gap: var(--skz-space-3); margin-bottom: var(--skz-space-4); }
.stars { color: var(--skz-gold); letter-spacing: 2px; font-size: var(--skz-text-epigraph); }
.rating-count { color: var(--skz-text-light-muted); font-size: var(--skz-text-caption); }
.lede { font-size: var(--skz-text-epigraph); line-height: var(--skz-leading-relaxed); color: var(--skz-text-light); margin: 0 0 var(--skz-space-6); }

.price-row { display: flex; align-items: baseline; gap: var(--skz-space-3); margin-bottom: var(--skz-space-5); }
.price { font-family: var(--skz-font-serif); font-weight: 800; font-size: var(--skz-text-price); color: var(--skz-chocolate); }
.price-old { color: var(--skz-text-light-muted); text-decoration: line-through; font-size: var(--skz-text-epigraph); }
.price-badge { background: var(--skz-coral); color: var(--skz-text-on-primary); font-size: var(--skz-text-descriptor); font-weight: var(--skz-weight-semibold); padding: 4px 10px; border-radius: var(--skz-radius-full); }
.price-badge:empty { display: none; }  /* книга без бейджа — не показывать пустую плашку */

.features { list-style: none; padding: 0; margin: 0 0 var(--skz-space-6); display: grid; gap: var(--skz-space-2); }
.features li { padding-left: 26px; position: relative; color: var(--skz-text-light); }
.features li::before { content: "✓"; position: absolute; left: 0; color: var(--skz-success); font-weight: var(--skz-weight-bold); }

/* ---------- Form ---------- */
.gen-form { background: var(--skz-bg); border: 1px solid rgba(201, 191, 169, 0.18); }
.form-title { font-family: var(--skz-font-serif); font-weight: 800; font-size: var(--skz-text-h3); margin: 0 0 var(--skz-space-4); }

.photo-tips { margin-bottom: var(--skz-space-4); }
.photo-tips__title { margin: 0 0 var(--skz-space-2); font-weight: var(--skz-weight-semibold); font-size: var(--skz-text-caption); color: var(--skz-chocolate); }
.photo-tips ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.photo-tips li { position: relative; padding-left: 22px; font-size: var(--skz-text-caption); color: var(--skz-text-light-muted); line-height: 1.35; }
.photo-tips li::before { content: "✓"; position: absolute; left: 0; color: var(--skz-success); font-weight: var(--skz-weight-bold); }

.dropzone {
  display: block; cursor: pointer; text-align: center;
  border: 2px dashed rgba(201, 191, 169, 0.45);
  border-radius: var(--skz-radius-md);
  padding: var(--skz-space-8) var(--skz-space-5);
  background: var(--skz-sand);
  transition: border-color 0.2s ease, background 0.2s ease;
  margin-bottom: var(--skz-space-5);
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--skz-coral); background: #FCF8EE; }
.dropzone-empty { display: flex; flex-direction: column; align-items: center; gap: var(--skz-space-2); }
.dz-icon { font-size: 30px; }
.dz-title { font-weight: var(--skz-weight-semibold); color: var(--skz-chocolate); }
.dz-hint { font-size: var(--skz-text-caption); color: var(--skz-text-light-muted); max-width: 320px; }
.dropzone-filled { display: flex; flex-direction: column; align-items: center; gap: var(--skz-space-2); }
.dropzone-filled img { width: 110px; height: 110px; object-fit: cover; border-radius: var(--skz-radius-md); box-shadow: var(--skz-shadow-card); }
.dz-change { font-size: var(--skz-text-caption); color: var(--skz-coral); font-weight: var(--skz-weight-medium); }
.pcard-avatar__validation {
  min-height: 1.5em;
  margin: 8px 0 12px;
  color: var(--skz-text-light-muted);
  font: 500 13px/1.5 var(--skz-font-sans);
  text-align: center;
}
.pcard-avatar__validation:empty { min-height: 0; margin: 0; }
.pcard-avatar__validation.is-accepted { color: var(--skz-success); }
.pcard-avatar__validation.is-rejected { color: var(--skz-warning); }
.pcard-avatar__validation.is-unavailable { color: var(--skz-text-light-muted); }

.field { margin-bottom: var(--skz-space-4); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--skz-space-4); }
.field-label { display: block; font-size: var(--skz-text-caption); font-weight: var(--skz-weight-semibold); color: var(--skz-text-light); margin-bottom: var(--skz-space-2); }

.pill-group { display: flex; gap: var(--skz-space-2); }
.pill { flex: 1; position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; }
.pill span {
  display: block; text-align: center; padding: 11px;
  border: 1.5px solid rgba(201, 191, 169, 0.35); border-radius: var(--skz-radius-xl);
  font-weight: var(--skz-weight-medium); color: var(--skz-text-light);
  transition: background-color 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out;
}
.pill input:checked + span { border-color: var(--skz-coral); background: var(--skz-coral); color: var(--skz-text-on-primary); }

select {
  width: 100%; padding: 11px 14px; min-height: var(--skz-button-min-height);
  border: 1.5px solid rgba(201, 191, 169, 0.35); border-radius: var(--skz-radius-md);
  background: var(--skz-bg); color: var(--skz-text-light); font-family: var(--skz-font-sans); font-size: var(--skz-text-body);
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23A67C2E' stroke-width='1.7' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
}
select:focus { outline: none; border-color: var(--skz-coral); }

.submit-btn { width: 100%; margin-top: var(--skz-space-3); font-size: var(--skz-text-button); white-space: normal; }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.form-error { color: var(--skz-warning); font-size: var(--skz-text-caption); margin: var(--skz-space-3) 0 0; text-align: center; }
.form-note { font-size: var(--skz-text-descriptor); color: var(--skz-text-light-muted); text-align: center; margin: var(--skz-space-3) 0 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--skz-space-6); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { text-align: center; background: var(--skz-bg); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--skz-coral); color: var(--skz-text-on-primary);
  font-family: var(--skz-font-serif); font-weight: 800; font-size: var(--skz-text-h3);
  margin-bottom: var(--skz-space-3);
}
.step h3 { margin: 0 0 var(--skz-space-2); }
.step p { margin: 0; color: var(--skz-text-light-muted); }

/* ---------- Result preview (cover + all spreads at once) ---------- */
.result-badge {
  display: table; margin: 0 auto var(--skz-space-3);
  background: var(--skz-gold); color: var(--skz-indigo);
  font-size: var(--skz-text-descriptor); font-weight: var(--skz-weight-semibold);
  letter-spacing: var(--skz-tracking-wide);
  padding: 7px 16px; border-radius: var(--skz-radius-full);
}
.result-grid {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--skz-space-10); max-width: 920px; margin: 0 auto;
}
.result-item { width: 100%; margin: 0; }
.result-item--cover { max-width: 460px; }
.result-item--spread { max-width: 920px; }
.result-item img { width: 100%; border-radius: var(--skz-radius-md); box-shadow: var(--skz-shadow-card); display: block; }
.result-item figcaption {
  text-align: center; margin-top: var(--skz-space-3);
  font-weight: var(--skz-weight-semibold); font-size: var(--skz-text-caption);
  color: var(--skz-text-light-muted); text-transform: uppercase; letter-spacing: var(--skz-tracking-wide);
}
.result-loader {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--skz-space-3); padding: var(--skz-space-20) 0; text-align: center;
}
.result-loader .spinner { border-color: rgba(36, 64, 110, 0.22); border-top-color: var(--skz-coral); }
.result-loader .loader-text { font-family: var(--skz-font-serif); font-weight: 800; font-size: var(--skz-text-h3); color: var(--skz-chocolate); margin: var(--skz-space-2) 0 0; }
.result-loader .loader-sub { font-size: var(--skz-text-caption); color: var(--skz-text-light-muted); margin: 0; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--skz-space-6); }
@media (max-width: 760px) { .reviews { grid-template-columns: 1fr; } }
.review { background: var(--skz-bg); margin: 0; }
.review blockquote { margin: var(--skz-space-2) 0; font-family: var(--skz-font-serif); font-style: italic; font-weight: 800; font-size: var(--skz-text-epigraph); line-height: var(--skz-leading-relaxed); color: var(--skz-chocolate); }
.review figcaption { color: var(--skz-text-light-muted); font-size: var(--skz-text-caption); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid rgba(201, 191, 169, 0.2); padding: var(--skz-space-4) 0; }
.faq summary { cursor: pointer; font-weight: var(--skz-weight-semibold); font-size: var(--skz-text-epigraph); color: var(--skz-chocolate); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--skz-coral); font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--skz-text-light-muted); margin: var(--skz-space-3) 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--skz-indigo); color: var(--skz-text-dark); padding: var(--skz-space-16) 0; margin-top: var(--skz-space-12); }
.footer-inner { text-align: center; display: grid; gap: var(--skz-space-3); justify-items: center; }
.footer-inner p { margin: 0; color: var(--skz-text-dark-muted); max-width: 480px; }
.footer-fine { font-size: var(--skz-text-descriptor); }

/* ── Этап 3: PDP wonderwraps-style ── */
.product-title {
  font-family: var(--skz-font-serif);
  font-weight: 800;
  font-size: clamp(1.75rem, 2.4vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 var(--skz-space-3);
}

@media (max-width: 980px) {
  .product-title { margin: 0 0 var(--skz-space-4); }
  .hero-grid > .gallery { margin-bottom: var(--skz-space-8); }
}

@media (max-width: 640px) {
  /* Главный кадр книги — full-bleed; текст остаётся на полях shell 20px. */
  .section-skz.hero { padding-inline: 0; }
  .hero-grid > .gallery {
    width: auto;
    margin-inline: calc(-1 * var(--ds-shell-pad-mobile, 20px));
  }
  .stage {
    border-radius: 0;
    box-shadow: none;
  }
  .thumbs {
    flex-wrap: nowrap;
    gap: var(--skz-space-2);
    margin-top: var(--skz-space-3);
    padding: 0 var(--ds-shell-pad-mobile, 20px) var(--skz-space-1);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: thin;
  }
  .thumb {
    scroll-snap-align: start;
  }
}
.product .lede {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 var(--skz-space-4, 16px);
}
.product .rating { margin-bottom: var(--skz-space-3, 12px); }
.product .price-row { margin-bottom: var(--skz-space-3, 12px); }
.product .features { margin: 0 0 var(--skz-space-4, 16px); gap: 8px; }
.product .features--icons li { font-size: 0.95rem; }
.feat-icon { flex: 0 0 30px; width: 30px; height: 30px; }
.feat-icon svg { width: 18px; height: 18px; }
.cta-hero { margin-top: var(--skz-space-2, 8px); padding: 12px 26px; }
.hero-note { margin-top: 6px; }

/* Секция задаёт только вертикальный ритм; горизонтальные поля принадлежат container-skz. */
.section-skz { padding-block: var(--skz-space-10, 48px); }
.section-title { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin-bottom: var(--skz-space-2, 8px); }
.section-sub { margin-bottom: var(--skz-space-6, 24px); }
.features--icons { gap: var(--skz-space-3); }
.features--icons li {
  padding-left: 0;
  display: flex; align-items: center; gap: var(--skz-space-3);
  color: var(--skz-chocolate);
  font-weight: var(--skz-weight-medium);
}
.features--icons li::before { content: none; }
.feat-icon {
  flex: 0 0 36px; width: 36px; height: 36px;
  border-radius: 50%; background: var(--skz-sand);
  color: var(--skz-coral);
  display: inline-flex; align-items: center; justify-content: center;
}
.feat-icon svg { width: 22px; height: 22px; }
.cta-hero { display: inline-block; margin-top: var(--skz-space-3); padding: 14px 30px; }
.hero-note { color: var(--skz-text-light-muted); font-size: .9rem; margin: var(--skz-space-2) 0 0; }

/* Поле «Имя ребёнка» как у select */
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(201, 191, 169, 0.45);
  border-radius: var(--skz-radius-sm);
  background: var(--skz-bg);
  font-family: var(--skz-font-sans);
  font-size: 1rem;
  color: var(--skz-chocolate);
  transition: border-color .15s ease;
}
.field input[type="text"]:focus,
.field input[type="email"]:focus,
.field input[type="tel"]:focus,
.field input[type="number"]:focus { outline: none; border-color: var(--skz-coral); }
/* Уберём страшные browser-default стрелки у number — у нас inputmode=numeric */
.field input[type="number"]::-webkit-inner-spin-button,
.field input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.field input[type="number"] { appearance: textfield; -moz-appearance: textfield; }

/* ── Personalize block (wonderwraps Start Personalising) ── */
.personalize-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: var(--skz-space-12, 56px);
  align-items: start;
}
@media (max-width: 960px) {
  .personalize-grid { grid-template-columns: 1fr; gap: var(--skz-space-6); }
}
/* ── Мобильная адаптация personalize-блока ── */
@media (max-width: 720px) {
  /* запрет горизонтального скролла на узких экранах */
  html, body { overflow-x: hidden; max-width: 100%; }

  .section-skz#personalize {
    padding-block: var(--skz-space-6, 24px);
    padding-inline: 0;
    overflow: hidden;
  }
  /* как у wonderwraps на мобильном — скрываем заголовок/лид/шаги, оставляем только карточку */
  .personalize-left { display: none; }
  .personalize-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    max-width: 100%;
  }
  .personalize-card-wrap { max-width: 100%; min-width: 0; }
  /* СОВЕТЫ компактнее, не растягиваются по контенту */
  .personalize-card {
    padding: var(--skz-space-5, 20px) var(--skz-space-4, 16px);
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .tips-eyebrow { margin-bottom: var(--skz-space-3); }
  .tips-circles {
    gap: var(--skz-space-3, 12px) var(--skz-space-2, 8px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }
  .tipc { min-width: 0; }
  .personalize-card .tipc__circle { width: 56px; height: 56px; }
  .tipc__label {
    font-size: .7rem;
    line-height: 1.25;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: manual;
  }
  .upload-cta { padding: 14px; font-size: 1rem; }
  .btn-tips-info { font-size: .9rem; padding: 10px 14px; }
}
/* Очень узкий экран (iPhone и ниже) — кружки в один ряд, чуть меньше */
@media (max-width: 460px) {
  .tips-circles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--skz-space-2, 8px) 4px;
    align-items: start;
  }
  .tipc { gap: 6px; align-self: start; }
  .personalize-card .tipc__circle { width: 62px; height: 62px; }
  .personalize-card .tipc__circle img { border-width: 1.5px; }
  .personalize-card .tipc__mark { width: 18px; height: 18px; font-size: .68rem; top: -3px; right: -3px; }
  .tipc__label {
    font-size: .62rem;
    line-height: 1.2;
    text-wrap: balance;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
  }
}
@media (max-width: 380px) {
  .personalize-card .tipc__circle { width: 54px; height: 54px; }
  .personalize-card .tipc__circle img { border-width: 1.5px; }
  .tipc__label { font-size: .58rem; }
}
.personalize-h2 {
  margin: 0 0 var(--skz-space-4);
  font-size: clamp(1.75rem, 2.4vw, 2.4rem);
  line-height: 1.15;
}
.personalize-lead {
  color: var(--skz-text-light);
  font-size: 1.0625rem;
  line-height: 1.55;
  margin: 0 0 var(--skz-space-8, 32px);
}

.steps-row {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--skz-space-5);
}
@media (max-width: 560px) { .steps-row { grid-template-columns: 1fr; } }
.step-card {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: var(--skz-space-3);
}
/* Шаг: иконка-пунктир слева + фото справа с перекрытием, цифра под иконкой */
.step-card { align-items: center; text-align: center; }
.step-card p {
  text-align: center; max-width: 240px;
  margin: var(--skz-space-4, 16px) 0 0;
}
.step-visual {
  position: relative;
  display: inline-flex; align-items: center;
  height: 110px;
  padding-bottom: 14px; /* место под цифру */
}
.step-icon {
  width: 75px; height: 75px;
  border-radius: 50%;
  border: 1.5px dashed rgba(36, 64, 110, 0.38);
  background: transparent;
  color: rgba(36, 64, 110, 0.4);
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.step-icon svg { width: 28px; height: 28px; }
.step-photo {
  width: 100px; height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-left: -22px;
  position: relative; z-index: 2;
  box-shadow: 0 6px 18px rgba(30, 18, 16, 0.18);
  background: var(--skz-surface);
}
.step-photo img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.step-num {
  position: absolute;
  left: 12px; bottom: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--skz-coral); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--skz-font-sans);
  font-weight: var(--skz-weight-bold); font-size: 0.9rem;
  border: 2.5px solid var(--skz-bg);
  z-index: 3;
}
.step-num {
  position: absolute; right: -6px; bottom: -6px;
  background: var(--skz-coral); color: #fff;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--skz-font-sans);
  font-weight: var(--skz-weight-bold); font-size: .85rem;
  border: 2px solid var(--skz-bg);
}
.step-card p {
  margin: 0;
  color: var(--skz-chocolate);
  font-weight: var(--skz-weight-medium);
  font-size: 1rem;
  line-height: 1.35;
}

/* Карточка справа */
.personalize-card-wrap { display: flex; flex-direction: column; }
.personalize-card {
  padding: var(--skz-space-6) var(--skz-space-6) var(--skz-space-5);
  border: 1.5px dashed rgba(36, 64, 110, 0.45);
  background: var(--skz-bg);
}
.personalize-card[data-state="empty"] .pcard-uploaded,
.personalize-card[data-state="uploaded"] .pcard-empty { display: none; }
.tips-eyebrow {
  margin: 0 0 var(--skz-space-4);
  color: var(--skz-text-light-muted);
  letter-spacing: var(--skz-tracking-wide, 0.14em);
  font-weight: var(--skz-weight-semibold);
  font-size: .8rem;
  text-align: center;
}
.tips-circles {
  list-style: none; padding: 0; margin: 0 0 var(--skz-space-5);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--skz-space-3);
}
.tipc {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--skz-space-2);
  text-align: center;
}
.tipc__circle {
  position: relative;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--skz-sand);
  color: var(--skz-text-light);
  display: inline-flex; align-items: center; justify-content: center;
  overflow: visible;
}
.tipc__circle svg { width: 32px; height: 32px; }
.tipc__circle img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid currentColor;
}
.tipc--do .tipc__circle img { border-color: var(--skz-success, #35865c); }
.tipc--dont .tipc__circle img { border-color: var(--skz-coral); }
.tipc--do .tipc__circle {
  background: rgba(53, 134, 92, 0.14);
  color: var(--skz-success, #35865c);
}
.tipc--dont .tipc__circle {
  background: rgba(36, 64, 110, 0.12);
  color: var(--skz-coral);
}
.tipc__mark {
  position: absolute;
  top: -4px; right: -4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: var(--skz-weight-bold);
  color: #fff;
  border: 2px solid var(--skz-bg);
}
.tipc__mark--do { background: var(--skz-success, #35865c); }
.tipc__mark--dont { background: var(--skz-coral); }
.tipc__label {
  font-size: .8rem; line-height: 1.25;
  color: var(--skz-text-light);
}

.card-divider {
  height: 1px;
  background: rgba(201, 191, 169, 0.2);
  margin: var(--skz-space-5) 0 var(--skz-space-5);
}

.gen-form--inline { background: transparent; border: 0; padding: 0; }
.gen-form--inline .form-title { display: none; }
.gen-form__row {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 12px;
  margin-bottom: 14px;
}
.gen-form__row .field { margin-bottom: 0; }
.gen-form__agree {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 14px 0 16px;
  font-size: .82rem; line-height: 1.45;
  color: rgba(35, 46, 71,0.75);
}
.gen-form__agree input { margin-top: 3px; flex-shrink: 0; }
.gen-form__agree a { color: var(--skz-coral); }

/* ── PERSONALIZE: state EMPTY ── */
.upload-cta {
  display: flex; align-items: center; justify-content: center;
  gap: var(--skz-space-3);
  width: 100%;
  padding: 18px var(--skz-space-5);
  background: var(--skz-coral);
  color: #fff;
  border-radius: var(--skz-radius-md);
  cursor: pointer;
  transition: filter .15s ease, transform .05s ease;
  font-family: var(--skz-font-sans);
  font-weight: var(--skz-weight-semibold);
  font-size: 1.0625rem;
  border: 0;
}
.upload-cta:hover { filter: brightness(1.06); }
.upload-cta:active { transform: translateY(1px); }
.upload-cta__label { letter-spacing: 0.01em; }
.upload-cta__icon { display: inline-flex; }
.upload-cta__icon svg { width: 20px; height: 20px; }
/* Вторичная кнопка отделена от главного действия самостоятельным интервалом ДС. */
.btn-tips-info {
  width: 100%;
  margin-top: var(--skz-space-4, 16px);
}

/* ── PERSONALIZE: state UPLOADED ── */
.pcard-avatar {
  position: relative;
  width: 160px; height: 160px;
  border-radius: 50%;
  margin: 0 auto var(--skz-space-5);
  overflow: visible;
  background: var(--skz-surface);
  border: 4px solid var(--skz-bg);
  box-shadow: 0 6px 20px rgba(30, 18, 16, 0.12);
}
.pcard-avatar img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.pcard-avatar__remove {
  position: absolute;
  top: -4px; right: -4px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--skz-bg);
  color: var(--skz-chocolate);
  border: 1.5px solid rgba(201, 191, 169, 0.35);
  font-size: 1.25rem; line-height: 1;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: var(--skz-weight-bold);
}
.pcard-avatar__remove:hover { background: var(--skz-coral); color: #fff; border-color: var(--skz-coral); }
/* ── Пожелание (опциональный блок в форме) ──────────────────────────────── */
.dedication-toggle {
  margin: var(--skz-space-3, 12px) 0 0;
  border-top: 1px dashed rgba(201, 191, 169, 0.35);
  padding-top: var(--skz-space-3, 12px);
}
.dedication-toggle > summary {
  cursor: pointer;
  color: var(--skz-coral);
  font-weight: 600;
  font-size: .92rem;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}
.dedication-toggle > summary::-webkit-details-marker { display: none; }
.dedication-toggle > summary::before {
  content: "+";
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 700;
}
.dedication-toggle[open] > summary::before { content: "−"; }
.dedication-toggle > summary .opt {
  color: var(--skz-text-light, #545D70);
  font-weight: 400;
  font-size: .85rem;
}
.dedication-toggle textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(201, 191, 169, 0.45);
  border-radius: var(--skz-radius-sm);
  background: var(--skz-bg);
  color: var(--skz-text);
  font: inherit;
  resize: vertical;
  min-height: 70px;
}
.dedication-toggle .field { margin-top: var(--skz-space-3, 12px); }
/* Прогресс-бар upload фото — тонкая полоска под аватаром, видна только пока идёт upload. */
.photo-upload-track {
  position: absolute;
  left: 8%; right: 8%;
  bottom: -10px;
  height: 3px;
  background: rgba(201, 191, 169, 0.2);
  border-radius: 2px;
  overflow: hidden;
  pointer-events: none;
}
.photo-upload-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--skz-coral);
  border-radius: 2px;
  opacity: 0;
  transition: width 0.25s ease, opacity 0.25s ease;
}
.submit-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── Почему выбирают: ляссе-реестр ── */
.trust-registry {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: var(--skz-space-12);
  align-items: start;
  padding: var(--skz-space-12);
  background: var(--skz-surface);
  border-radius: var(--skz-radius-md);
  box-shadow: var(--skz-shadow-card);
}
.trust-registry__heading h2 {
  margin: 0;
  text-wrap: balance;
}
.trust-registry__list {
  position: relative;
  min-width: 0;
  border-top: 1px solid var(--skz-line);
}
/* Одна непрерывная тонкая лента 6px — рабочий регистр ляссе из ДС. */
.trust-registry__list::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: var(--skz-space-2);
  left: 14px;
  width: 6px;
  background: var(--skz-gold);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), 50% calc(100% - 2px), 0 calc(100% - 8px));
}
.trust-registry__row {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: var(--skz-space-4);
  align-items: start;
  padding: var(--skz-space-6) 0;
  border-bottom: 1px solid var(--skz-line);
}
.trust-registry__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--skz-light-tan);
  border-radius: var(--skz-radius-full);
  background: var(--skz-sand);
  color: var(--skz-gold-hover);
}
.trust-registry__icon svg {
  width: 18px;
  height: 18px;
}
.trust-registry__copy h3 {
  margin: 0 0 var(--skz-space-2);
  font-size: 1.25rem;
  text-wrap: balance;
}
.trust-registry__copy p {
  margin: 0;
  color: var(--skz-text-light);
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}

@media (max-width: 960px) {
  .trust-registry {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--skz-space-8);
    padding: var(--skz-space-8);
  }
}

@media (max-width: 640px) {
  .trust-registry {
    gap: var(--skz-space-6);
    padding: var(--skz-space-4);
  }
  .trust-registry__copy p {
    font-size: 16px;
  }
}

/* ── Footer: 4 колонки ── */
.site-footer {
  background: var(--skz-indigo);
  color: rgba(255, 255, 255, 0.78);
  padding: var(--skz-space-12, 64px) 0 var(--skz-space-6, 24px);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: var(--skz-space-10, 48px);
  padding-bottom: var(--skz-space-10, 48px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 960px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__subscribe { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  /* minmax(0,1fr) + wrap подписки: intrinsic-ширина формы (инпут size=20 +
     кнопка) не распирает футер на узких экранах (~320px) */
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .subscribe-form { flex-wrap: wrap; }
  .subscribe-form input { flex: 1 1 140px; }
}

.site-footer__brand img { display: block; margin-bottom: var(--skz-space-4); }
.site-footer__brand p { color: rgba(255, 255, 255, 0.7); max-width: 320px; line-height: 1.5; margin: 0 0 var(--skz-space-4); }
.site-footer__social { display: flex; gap: var(--skz-space-3); }
.site-footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--skz-gold);
  text-decoration: none;
  transition: background .15s ease;
}
.site-footer__social a:hover { background: rgba(255, 255, 255, 0.16); }
.site-footer__social svg { width: 18px; height: 18px; }

.site-footer__col h4 {
  color: #fff;
  font-family: var(--skz-font-sans);
  font-size: 1rem;
  margin: 0 0 var(--skz-space-4);
  font-weight: var(--skz-weight-semibold);
}
.site-footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--skz-space-2); }
.site-footer__col a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: .95rem;
  transition: color .15s ease;
}
.site-footer__col a:hover { color: var(--skz-gold); }

.site-footer__subscribe p { font-size: .9rem; color: rgba(255, 255, 255, 0.7); margin: 0 0 var(--skz-space-3); }
.subscribe-form {
  display: flex; gap: var(--skz-space-2);
  margin-bottom: var(--skz-space-4);
}
.subscribe-form input {
  flex: 1; min-width: 0;
  padding: 10px 14px;
  border-radius: var(--skz-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--skz-font-sans);
}
.subscribe-form input::placeholder { color: rgba(255, 255, 255, 0.45); }
.subscribe-form input:focus { outline: none; border-color: var(--skz-gold); }
.subscribe-form button { padding: 10px 16px; min-height: 0; font-size: .95rem; }

.site-footer__payments { display: flex; gap: var(--skz-space-2); flex-wrap: wrap; }
.pay-badge {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--skz-indigo);
  font-family: var(--skz-font-sans);
  font-weight: var(--skz-weight-bold);
  font-size: .75rem;
  letter-spacing: 0.06em;
}

.site-footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--skz-space-5);
  font-size: .85rem;
  color: rgba(255, 255, 255, 0.55);
}
.site-footer__bottom .footer-fine { margin: 0; }

/* Юр-строка футера: ©2026 · Доставка и возвраты · Оферта · Правила сайта · Политика ПД
   Inline-список с разделителями ·, отдельная строка под reqвизитами. */
.site-footer__legal-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 14px;
  padding: 16px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: var(--skz-space-4);
  font-size: .82rem;
  color: rgba(255, 255, 255, 0.55);
}
.site-footer__legal-row a { color: inherit; text-decoration: none; transition: color .15s; }
.site-footer__legal-row a:hover { color: var(--skz-gold); }
.site-footer__legal-row li { list-style: none; }
.site-footer__legal-row ul { display: contents; }
.site-footer__legal-row li + li::before { content: "·"; margin-right: 14px; color: rgba(255,255,255,0.3); }
@media (max-width: 760px) {
  .site-footer__legal-row { gap: 8px; padding-top: 12px; font-size: .76rem; }
  .site-footer__legal-row li + li::before { margin-right: 8px; }
}

@media (max-width: 560px) {
  .site-footer__bottom { flex-direction: column; gap: var(--skz-space-2); }
}

/* ── Top-stepper ──
   Единый 6-шаговый stepper заказного флоу:
   Предпросмотр → Корзина → Доставка → Оплата → Утверждение → В работе.
   Используется на preview-странице, /checkout/*, /book/<id>, /account/orders/<id>.
   Размещён в styles.css (а не checkout.css), потому что preview-страница
   подключает только styles.css. */
/* Шаги заказа — рецепт «Экслибрис» (эталон layouts-web/checkout.html):
   номер каталожной строкой, активный шаг помечен латунным ляссе-риббоном.
   Фолбэки к токенам — превью-страница может не подключать theme.css. */
.flow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 1120px;
  margin: 0 auto;
  padding: 13px 24px;
  flex-wrap: wrap;
}
.flow-step {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 0 15px;
  color: var(--skz-gray-warm, #545D70);
  text-decoration: none;
  background: transparent;
  white-space: nowrap;
  font: 500 13px/1.2 var(--skz-font-sans, "Golos Text"), system-ui, sans-serif;
  transition: color .15s;
}
.flow-step__num {
  width: auto; height: auto;
  font: 500 10px/1 var(--skz-font-sans, "Golos Text"), system-ui, sans-serif;
  letter-spacing: .22em;
  border-radius: 0;
  background: none;
  color: var(--skz-gray-warm, #545D70);
}
.flow-step--done { color: var(--skz-gold-hover, #6E5316); }
.flow-step--done .flow-step__num { background: none; color: var(--skz-gold-hover, #6E5316); }
.flow-step--active {
  background: none;
  color: var(--skz-ink, #232E47);
  font-weight: 600;
  padding-left: 16px;
}
.flow-step--active .flow-step__num { background: none; color: var(--skz-gold-hover, #6E5316); }
.flow-step--active::before {
  content: "";
  position: absolute;
  top: -14px; left: 1px;
  width: 5px; height: 27px;
  background: var(--skz-gold, #A67C2E);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), 50% calc(100% - 2px), 0 calc(100% - 6px));
}
.flow-step--locked { color: rgba(35, 46, 71,0.3); cursor: default; pointer-events: none; }
.flow-step--locked .flow-step__num { color: rgba(35, 46, 71,0.3); }
a.flow-step:hover:not(.flow-step--active):not(.flow-step--locked) { color: var(--skz-gold-hover, #6E5316); background: none; }
.flow-step__sep {
  width: 26px; height: 1px;
  background: var(--skz-line, #DCD1B8);
  margin: 0 6px;
}
@media (max-width: 760px) {
  .flow-steps { gap: 4px; font-size: .78rem; padding: 12px; }
  .flow-step { padding: 5px 9px; }
  .flow-step__sep { width: 8px; }
}

/* Мобильный степпер — ОДНА строка: текущий этап по центру + стрелки
   назад/вперёд на соседние шаги (только если туда можно перейти — locked-шаги
   и спаны без ссылки не показываем). Требует :has (iOS 15.4+); без поддержки
   остаётся только центральный пилл текущего шага — мягкая деградация. */
@media (max-width: 640px) {
  .flow-steps {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
  }
  .flow-step, .flow-step__sep { display: none; }
  .flow-step--active {
    display: inline-flex;
    grid-row: 1;
    grid-column: 2;
    justify-self: center;
    max-width: 100%;
    font-size: .85rem;
    padding: 7px 14px;
  }
  /* Соседние шаги-ссылки — круглые кнопки-стрелки */
  a.flow-step:has(+ .flow-step__sep + .flow-step--active),
  .flow-step--active + .flow-step__sep + a.flow-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-row: 1;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid rgba(201, 191, 169, 0.35);
    font-size: 0;
    line-height: 0;
  }
  a.flow-step:has(+ .flow-step__sep + .flow-step--active) { grid-column: 1; }
  .flow-step--active + .flow-step__sep + a.flow-step { grid-column: 3; }
  a.flow-step:has(+ .flow-step__sep + .flow-step--active) .flow-step__num,
  .flow-step--active + .flow-step__sep + a.flow-step .flow-step__num { display: none; }
  a.flow-step:has(+ .flow-step__sep + .flow-step--active)::before,
  .flow-step--active + .flow-step__sep + a.flow-step::before {
    content: "";
    width: 9px;
    height: 9px;
    border-left: 2px solid var(--skz-coral, #24406E);
    border-bottom: 2px solid var(--skz-coral, #24406E);
    transform: rotate(45deg);
    margin-left: 3px;
  }
  .flow-step--active + .flow-step__sep + a.flow-step::before {
    transform: rotate(-135deg);
    margin-left: -3px;
  }
}

/* ── Tips modal (рекомендации к фото) ── */
.tips-modal {
  width: min(640px, 92vw);
  max-height: 86vh;
  padding: var(--skz-space-8, 32px) var(--skz-space-8, 32px) var(--skz-space-6, 24px);
  border: 0;
  border-radius: var(--skz-radius-lg);
  background: var(--skz-bg);
  color: var(--skz-chocolate);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  overflow-y: auto;
  font-family: var(--skz-font-sans);
}
.tips-modal::backdrop {
  background: rgba(30, 18, 16, 0.55);
  backdrop-filter: blur(3px);
}
.tips-modal__close {
  position: sticky; top: 0; float: right;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(201, 191, 169, 0.15);
  color: var(--skz-chocolate);
  border: 0;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 1;
}
.tips-modal__close:hover { background: var(--skz-coral); color: #fff; }
.tips-modal__title {
  font-family: var(--skz-font-serif);
  font-weight: 800;
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  margin: 0 0 var(--skz-space-3);
  line-height: 1.2;
}
.tips-modal__lead { color: var(--skz-text-light); line-height: 1.55; margin: 0 0 var(--skz-space-5); }
.tips-modal__h4 {
  margin: var(--skz-space-5) 0 var(--skz-space-3);
  font-size: 1.1rem;
  font-family: var(--skz-font-sans);
  display: inline-flex; align-items: center; gap: var(--skz-space-2);
}
.tips-modal__h4::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
}
.tips-modal__h4--do::before { background: var(--skz-success, #35865c); }
.tips-modal__h4--dont::before { background: var(--skz-coral); }
.tips-modal__list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--skz-space-3); }
.tips-modal__list li {
  padding-left: 28px;
  position: relative;
  line-height: 1.5;
  color: var(--skz-text);
}
.tips-modal__list li::before {
  position: absolute;
  left: 0; top: 0.1em;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: var(--skz-weight-bold);
  color: #fff;
}
.tips-modal__list--do li::before { content: "✓"; background: var(--skz-success, #35865c); }
.tips-modal__list--dont li::before { content: "✕"; background: var(--skz-coral); }
.tips-modal__list strong { color: var(--skz-chocolate); }
.tips-modal__hint {
  margin: var(--skz-space-6) 0 0;
  padding: var(--skz-space-4);
  background: var(--skz-surface);
  border-left: 3px solid var(--skz-gold);
  border-radius: var(--skz-radius-sm);
  line-height: 1.5;
  color: var(--skz-chocolate);
}

/* ── Transform «Книжный разворот»: текст 5 колонок + воздух + слайдер 6 колонок ── */
.transform-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--skz-space-6);
  align-items: center;
}
.transform-text {
  grid-column: 1 / span 5;
  padding-left: var(--skz-space-4);
  border-left: 1px solid var(--skz-light-tan);
}
.transform-h2 {
  font-size: var(--skz-text-h2);
  line-height: var(--skz-leading-snug);
  margin: 0 0 var(--skz-space-4);
  text-wrap: balance;
}
.transform-lead {
  font-size: 17px;
  color: var(--skz-text-light-muted);
  line-height: var(--skz-leading-loose);
  margin: 0;
  text-wrap: pretty;
}

/* ── Before / After интерактивный слайдер ── */
.ba-slider {
  grid-column: 7 / -1;
  position: relative;
  width: 100%;
  margin: 0;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--skz-line-deep);
  border-radius: var(--skz-radius-sm);
  overflow: hidden;
  box-shadow: 0 1px 0 var(--skz-line-deep), 0 8px 24px rgba(35, 46, 71, .06);
  background: var(--skz-surface);
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y;
}
.ba-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.ba-clip {
  position: absolute; inset: 0;
  clip-path: inset(0 50% 0 0);
  z-index: 2;
}
.ba-handle {
  position: absolute;
  top: 50%; left: 50%;
  width: 64px; height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 0;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: ew-resize;
  z-index: 3;
  display: inline-flex; align-items: center; justify-content: center;
}
.ba-handle:focus-visible {
  outline: 2px solid var(--skz-blue-core);
  outline-offset: 3px;
}
.ba-handle::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 3px;
  height: 9999px;
  background: var(--skz-surface);
  box-shadow: 0 0 2px rgba(35, 46, 71, .28);
  z-index: 0;
  pointer-events: none;
}
.ba-handle::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 10px; height: 56px;
  transform: translate(-50%, -50%);
  background: var(--skz-surface);
  box-shadow: 0 1px 4px rgba(35, 46, 71, .22);
  z-index: 1;
  pointer-events: none;
}
.ba-handle__chevrons {
  position: relative;
  z-index: 2;
  display: inline-flex; align-items: center;
  color: var(--skz-surface);
  filter: drop-shadow(0 1px 2px rgba(35, 46, 71, .38));
}
.ba-handle__chevrons svg {
  width: 64px; height: 24px;
  display: block;
}
.ba-arrow {
  transform-box: fill-box;
  transform-origin: center;
}
@media (hover: hover) {
  .ba-handle:hover .ba-handle__chevrons {
    filter: drop-shadow(0 2px 3px rgba(35, 46, 71, .52));
  }
}
.ba-slider.is-hinting:not(.is-interacted) .ba-arrow--left {
  animation: ba-hint-arrow-left 1400ms cubic-bezier(.23, 1, .32, 1) 240ms infinite both;
}
.ba-slider.is-hinting:not(.is-interacted) .ba-arrow--right {
  animation: ba-hint-arrow-right 1400ms cubic-bezier(.23, 1, .32, 1) 240ms infinite both;
}
@keyframes ba-hint-arrow-left {
  0%, 18%, 82%, 100% { transform: translateX(0); opacity: 1; }
  45%, 55% { transform: translateX(-5px); opacity: .78; }
}
@keyframes ba-hint-arrow-right {
  0%, 18%, 82%, 100% { transform: translateX(0); opacity: 1; }
  45%, 55% { transform: translateX(5px); opacity: .78; }
}
@media (prefers-reduced-motion: reduce) {
  .ba-slider.is-hinting .ba-arrow {
    animation: none;
  }
}

@media (max-width: 960px) {
  .transform-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--skz-space-8);
  }
  .transform-text {
    grid-column: auto;
    padding: 0 0 var(--skz-space-6);
    border-left: 0;
    border-bottom: 1px solid var(--skz-light-tan);
  }
  .ba-slider { grid-column: auto; }
}

/* ── Этап 3: триптих превью ── */
.section-skz#preview { padding-top: var(--skz-space-16, 96px); }
.result-grid {
  display: grid; gap: var(--skz-space-6);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}
@media (max-width: 1024px) { .result-grid { grid-template-columns: 1fr; } }
.result-item { width: 100%; margin: 0 auto; max-width: 100%; }
.result-item--hero, .result-item--cover, .result-item--spread { max-width: 100%; }
.result-item img { aspect-ratio: 1 / 1; object-fit: cover; }
.result-item figcaption {
  font-family: var(--skz-serif);
  font-weight: 800;
  font-size: 1.125rem; text-align: center;
  margin-top: var(--skz-space-3); color: var(--skz-text);
}
.result-controls {
  display: flex; align-items: center; justify-content: center;
  gap: var(--skz-space-3); margin-top: var(--skz-space-2);
}
.result-arrow {
  background: var(--skz-surface);
  border: 1px solid var(--skz-line);
  border-radius: 50%;
  width: 36px; height: 36px; line-height: 1;
  font-size: 1rem; cursor: pointer;
  color: var(--skz-text);
}
.result-arrow:disabled { opacity: .3; cursor: not-allowed; }
.result-counter {
  font-family: var(--skz-sans); font-size: .9rem;
  color: var(--skz-text-light); min-width: 60px; text-align: center;
}
.result-regen { display: block; margin: var(--skz-space-3) auto 0; }

.checkout-cta {
  text-align: center;
  margin-top: var(--skz-space-12, 64px);
  padding: var(--skz-space-8) var(--skz-space-6);
  background: var(--skz-surface);
  border-radius: var(--skz-radius-lg);
}
.checkout-cta p { margin-bottom: var(--skz-space-4); color: var(--skz-text-light); }

/* ── Страница «полная книга»: 14 разворотов ── */
.book-progress {
  max-width: 540px;
  margin: 0 auto var(--skz-space-6);
  text-align: center;
}
.book-progress__bar {
  height: 8px;
  background: rgba(201, 191, 169, 0.18);
  border-radius: 999px;
  overflow: hidden;
}
.book-progress__bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--skz-coral), var(--skz-gold));
  transition: width .4s ease;
}
.book-progress__txt {
  margin: 8px 0 0;
  color: var(--skz-text-light-muted);
  font-size: .9rem;
}
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--skz-space-6);
}
.spread-card {
  margin: 0;
  background: var(--skz-bg);
  border-radius: var(--skz-radius-md);
  box-shadow: 0 6px 18px rgba(30, 18, 16, 0.08);
  padding: var(--skz-space-3);
}
.spread-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--skz-radius-sm);
  overflow: hidden;
  background: var(--skz-surface);
}
.spread-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.spread-card__loader {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: var(--skz-space-2);
  color: var(--skz-text-light-muted);
  font-size: .85rem;
}
.spread-card figcaption {
  display: flex; align-items: center;
  gap: var(--skz-space-2);
  margin: var(--skz-space-3) 0 var(--skz-space-2);
  font-family: var(--skz-font-serif);
  font-weight: 800;
  font-size: 1rem;
  color: var(--skz-chocolate);
}
.spread-card__num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 22px; padding: 0 6px;
  border-radius: 11px;
  background: rgba(36, 64, 110, 0.12);
  color: var(--skz-coral);
  font-family: var(--skz-font-sans);
  font-weight: var(--skz-weight-semibold);
  font-size: .75rem;
}
.spread-card__controls {
  display: flex; align-items: center; justify-content: center;
  gap: var(--skz-space-2); margin-bottom: var(--skz-space-2);
}
.spread-card__regen { width: 100%; padding: 8px; font-size: .85rem; }
.book-cta { text-align: center; margin-top: var(--skz-space-10, 48px); }
