/* Витрина Картодела — общий стиль страниц /o-servise/ и /instrukciya/ (витрина 2.0, 21.09.2026).
   Тон: печатный цех — тёплая бумага, чернила, золотая кромка; главное на странице — НАСТОЯЩИЕ
   колоды из генератора (media/gallery/, собраны продуктом), а не рисунок. Светлая бумага показывает
   светлые колоды, тёмная полоса (лента колод и финал) — тёмные: заказчик просил видеть и то, и то.
   Шрифты локально: Playfair Display (OFL, /fonts/) для заголовков, Inter (шрифт продукта) для текста.
   Анимация по правилам заказчика: проявление opacity + подъём 8–12 px за 0.6–0.9 с по
   cubic-bezier(.16,1,.3,1) ступенями 100–120 мс; подъём карты под курсором 3 px; редкий блик знака
   раз в 11 с; без появления из нуля, пружин и каруселей; reduced-motion гасит всё. */
@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/PlayfairDisplay.ttf') format('truetype');
  font-weight: 400 900;
  font-display: swap;
}
:root {
  --paper: #f5f1e8;
  --paper-2: #ece6d8;
  --paper-3: #e3dccb;
  --ink: #17161a;
  --ink-2: #4a453d;
  --muted: #625b4f;
  --line: #d9d1bf;
  --line-2: #c4bba4;
  --gold: #b3862c;
  --gold-text: #7f5a12;
  --dark: #15151a;
  --dark-2: #1e1e25;
  --dark-line: #2f2f39;
  --dark-text: #efe8d8;
  --dark-muted: #b2ab9b;
  --red: #b8322e;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 22px 46px rgba(48, 36, 12, 0.18);
  --shadow-card: 0 14px 30px rgba(20, 14, 4, 0.28);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1140px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.6 Inter,
    -apple-system,
    'Segoe UI',
    Arial,
    sans-serif;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
a {
  color: var(--gold-text);
}
img {
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ШАПКА-КАТАЛОГ (29.09.2026, «ребрендинг верхнего меню»). Одна на все страницы: источник
   tools/site-shell/шапка.html, поведение js/site.js. Раскрывающийся раздел «Колоды» (две колонки и
   витринная карточка), «вы здесь», уплотнение при прокрутке, золотая полоса прочитанного; на узком
   экране — кнопка-меню и полноэкранная панель. Движение: проявление + 8 px за 0.3 с. */
:root {
  --top-h: 68px;
  --z-top: 40;
  --z-sheet: 60;
  --z-float: 30;
}
html {
  scroll-padding-top: calc(var(--top-h) + 16px); /* якоря не прячутся под шапку */
  scrollbar-color: var(--line-2) var(--paper);
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--paper);
}
::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 10px;
  border: 2px solid var(--paper);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.3s var(--ease);
}
.skip:focus {
  top: 12px;
}
#soderzhanie:focus {
  outline: none;
}
.ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.top {
  position: sticky;
  top: 0;
  z-index: var(--z-top);
  background: rgba(245, 241, 232, 0.9);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.top.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(48, 36, 12, 0.07);
}
.top-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--top-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
}
.brand .brand-mark {
  height: 30px;
  width: auto;
  display: block;
}
.brand i {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-style: normal;
  font-size: 16px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink-2);
  font:
    500 15px/1 Inter,
    -apple-system,
    'Segoe UI',
    Arial,
    sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 0.3s var(--ease),
    background-color 0.3s var(--ease);
}
.nav-link:hover,
.nav-item.open .nav-trigger {
  color: var(--ink);
  background: rgba(23, 22, 26, 0.05);
}
.nav-link[aria-current='page'],
.nav-item.is-current .nav-trigger {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--gold);
  border-radius: 0;
}
.ico--chev {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}
.nav-item.open .ico--chev {
  transform: rotate(180deg);
}
.nav-item {
  position: relative;
}
.mega {
  position: absolute;
  left: -24px;
  top: calc(100% + 10px);
  width: min(760px, calc(100vw - 48px));
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.mega::before {
  /* мост между кнопкой и панелью: курсор не «проваливается» и раздел не закрывается */
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.nav-item.open .mega {
  opacity: 1;
  transform: none;
}
.mega-in {
  display: grid;
  grid-template-columns: 1fr 1fr 190px;
  gap: 8px 20px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.mega-title {
  margin: 4px 12px 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.mega ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mega-col a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.3s var(--ease);
}
.mega-col a:hover,
.mega-col a:focus-visible {
  background: var(--paper);
}
.mega-col a b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
.mega-col a span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}
.mega-col a[aria-current='page'] b {
  color: var(--gold-text);
}
.mega-card {
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: var(--dark);
  color: var(--dark-text);
  text-decoration: none;
  overflow: hidden;
}
.mega-card img {
  width: 104px;
  height: auto;
  justify-self: center;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  transform: rotate(-4deg);
  transition: transform 0.4s var(--ease);
}
.mega-card:hover img {
  transform: rotate(-4deg) translateY(-3px);
}
.mega-card span {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--dark-muted);
}
.mega-card b {
  display: block;
  font-size: 14px;
  color: var(--dark-text);
}
.mega-card .ico {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-chat .ico {
  width: 18px;
  height: 18px;
}
.top-cta,
.top-cta:hover {
  color: var(--paper);
}
.top-cta {
  white-space: nowrap;
}
.cta-short {
  display: none;
}
.burger {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
}
.progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #d4b36a, var(--gold));
  transform-origin: 0 50%;
  transform: scaleX(0.0001);
}

/* панель меню на узком экране */
.sheet {
  position: fixed;
  inset: 0;
  z-index: var(--z-sheet);
  background: rgba(21, 21, 26, 0.5);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.sheet.open {
  opacity: 1;
}
.sheet-panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  padding: 0 24px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  transform: translateX(24px);
  transition: transform 0.3s var(--ease);
}
.sheet.open .sheet-panel {
  transform: none;
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--top-h);
  flex: none;
}
.sheet-nav {
  display: grid;
  padding: 8px 0 16px;
}
.sheet-nav .mega-title {
  margin: 18px 0 6px;
}
.sheet-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
}
.sheet-nav a[aria-current='page'] {
  color: var(--gold-text);
}
.sheet-foot {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
}
.sheet-foot .btn {
  text-align: center;
  color: var(--paper);
}
.sheet-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
html.sheet-open {
  overflow: hidden;
}

/* фото из цеха на первом экране (страница печати) — вместо веера карт */
.hero-photo {
  margin: 0;
  justify-self: center;
  width: min(100%, 460px);
}
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.hero-photo figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* хлебные крошки */
.crumbs {
  font-size: 13.5px;
  color: var(--muted);
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  list-style: none;
  margin-block: 0;
  padding-block: 18px 0;
}
.crumbs li + li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 12px 1px 10px;
  border-right: 1.5px solid var(--line-2);
  border-top: 1.5px solid var(--line-2);
  transform: rotate(45deg);
}
.crumbs a {
  color: var(--ink-2);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.crumbs [aria-current='page'] {
  color: var(--muted);
}

/* кнопка «наверх» */
.to-top {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: var(--z-float);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(48, 36, 12, 0.16);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease),
    color 0.3s var(--ease);
}
.to-top[hidden],
.sheet[hidden],
.mega[hidden] {
  /* свой display перебивает атрибут hidden — спрятанная прозрачная кнопка ловила бы нажатия */
  display: none;
}
.to-top.show {
  opacity: 1;
  transform: none;
}
.to-top:hover {
  color: var(--gold-text);
  transform: translateY(-2px);
}
.to-top.with-chat {
  bottom: calc(104px + env(safe-area-inset-bottom));
}

@media (max-width: 1080px) {
  .nav-chat span {
    display: none;
  }
}
@media (max-width: 960px) {
  .nav,
  .nav-chat {
    display: none;
  }
  .burger {
    display: grid;
  }
  .top-actions {
    margin-left: auto;
  }
  .top-bar {
    gap: 12px;
  }
}
@media (max-width: 560px) {
  .cta-long {
    display: none;
  }
  .cta-short {
    display: inline;
  }
}
@media (max-width: 420px) {
  .top-cta {
    padding: 9px 14px;
  }
  .to-top {
    right: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .top,
  .nav-link,
  .ico--chev,
  .mega,
  .sheet,
  .sheet-panel,
  .to-top,
  .skip,
  .mega-card img {
    transition: none;
  }
}

.btn {
  display: inline-block;
  padding: 15px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
  box-shadow: 0 10px 24px rgba(23, 22, 26, 0.18);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(23, 22, 26, 0.24);
}
.btn:active {
  transform: translateY(0);
}
.btn--sm {
  padding: 10px 16px;
  font-size: 14px;
  box-shadow: none;
}
.btn--light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn--light:hover {
  color: var(--ink);
}
.kicker {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 14px;
}

/* первый экран: текст слева, настоящие карты справа */
.hero {
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 85% 45%, rgba(179, 134, 44, 0.14), transparent 70%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.06;
  margin: 0 0 20px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-text);
}
.lead {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 34em;
  margin: 0 0 26px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.fan {
  position: relative;
  height: 520px;
}
.fan img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 212px;
  height: auto;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  transform-origin: 50% 110%;
  opacity: 0;
  animation: rv 0.9s var(--ease) forwards;
  transition: transform 0.4s var(--ease);
}
.fan .f1 {
  transform: translate(-50%, -50%) rotate(-16deg) translateX(-110px);
  animation-delay: 0.05s;
}
.fan .f2 {
  transform: translate(-50%, -50%) rotate(-5deg) translateX(-38px);
  animation-delay: 0.16s;
}
.fan .f3 {
  transform: translate(-50%, -50%) rotate(6deg) translateX(38px);
  animation-delay: 0.27s;
}
.fan .f4 {
  transform: translate(-50%, -50%) rotate(17deg) translateX(110px);
  animation-delay: 0.38s;
}
.fan img:hover {
  z-index: 2;
}
.fan .f1:hover {
  transform: translate(-50%, -52%) rotate(-16deg) translateX(-110px);
}
.fan .f2:hover {
  transform: translate(-50%, -52%) rotate(-5deg) translateX(-38px);
}
.fan .f3:hover {
  transform: translate(-50%, -52%) rotate(6deg) translateX(38px);
}
.fan .f4:hover {
  transform: translate(-50%, -52%) rotate(17deg) translateX(110px);
}
.fan .note {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* секции */
.sec {
  padding: 76px 0;
}
.sec + .sec {
  border-top: 1px solid var(--line);
}
.sec h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 12px;
}
.sec .sub {
  color: var(--ink-2);
  max-width: 44em;
  margin: 0 0 30px;
  font-size: 17px;
}

/* лента настоящих колод — тёмная полоса, листается пальцем, без автопрокрутки */
.strip {
  background: var(--dark);
  color: var(--dark-text);
  padding: 64px 0 56px;
}
.strip h2 {
  color: var(--dark-text);
}
.strip .sub {
  color: var(--dark-muted);
}
.strip .kicker {
  color: var(--gold);
}
.rail {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 24px 22px;
  margin: 0 -24px;
  scrollbar-width: thin;
  scrollbar-color: var(--dark-line) transparent;
}
.deck {
  flex: 0 0 300px;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
}
.deck-art {
  position: relative;
  height: 250px;
  margin-bottom: 14px;
}
.deck-art img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s var(--ease);
}
.deck-art .a1 {
  transform: translate(-50%, -50%) rotate(-9deg) translateX(-62px);
}
.deck-art .a2 {
  transform: translate(-50%, -50%) rotate(0deg);
  z-index: 1;
}
.deck-art .a3 {
  transform: translate(-50%, -50%) rotate(9deg) translateX(62px);
}
.deck:hover .deck-art img {
  transform: translate(-50%, -53%);
}
.deck:hover .a1 {
  transform: translate(-50%, -53%) rotate(-9deg) translateX(-62px);
}
.deck:hover .a3 {
  transform: translate(-50%, -53%) rotate(9deg) translateX(62px);
}
.deck b {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 4px;
}
.deck span {
  color: var(--dark-muted);
  font-size: 14px;
}
.strip .more {
  color: var(--dark-muted);
  margin: 6px 0 0;
  font-size: 14px;
}

/* что можно сделать — сценарии: карта крупно + два абзаца, зигзагом */
.cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 48px;
}
.case {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}
.case:nth-child(4n + 2),
.case:nth-child(4n + 3) {
  grid-template-columns: minmax(0, 1fr) 180px;
}
.case:nth-child(4n + 2) .case-art,
.case:nth-child(4n + 3) .case-art {
  order: 2;
}
.case-art {
  position: relative;
}
.case-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease);
}
.case:hover .case-art img {
  transform: translateY(-3px);
}
.case h3 {
  font-size: 22px;
  margin: 0 0 8px;
}
.case p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
}

/* четыре шага одной линией с кадрами из генератора */
.steps {
  counter-reset: st;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.steps li {
  counter-increment: st;
}
.steps img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: left top;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  box-shadow: 0 10px 24px rgba(48, 36, 12, 0.14);
  margin-bottom: 14px;
  background: var(--paper-2);
}
.steps b {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.25;
  margin-bottom: 8px;
}
.steps b::before {
  content: counter(st, decimal-leading-zero);
  display: block;
  font:
    700 12px/1 Inter,
    sans-serif;
  letter-spacing: 0.22em;
  color: var(--gold-text);
  margin-bottom: 8px;
}
.steps span {
  color: var(--ink-2);
  font-size: 15px;
}

/* ролики */
.clips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}
.clip {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(48, 36, 12, 0.1);
}
.clip video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  background: var(--paper-2);
}
.clip figcaption {
  padding: 18px 22px 22px;
}
.clip figcaption b {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  margin-bottom: 6px;
}
.clip figcaption span {
  color: var(--ink-2);
  font-size: 15px;
}
.clip--hero {
  grid-column: 1 / -1;
}
.more {
  margin: 26px 0 0;
  color: var(--ink-2);
  font-size: 15px;
}

/* цена */
.price {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}
.pbox {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
}
.pbox--main {
  border-color: var(--gold);
  box-shadow: 0 16px 40px rgba(179, 134, 44, 0.16);
}
.pbox .num {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 52px;
  line-height: 1;
  margin: 6px 0 14px;
}
.pbox p {
  margin: 0 0 10px;
  color: var(--ink-2);
}
.pbox ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--ink-2);
}
.pbox li {
  margin: 6px 0;
}

/* ответственность */
.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  position: relative;
  overflow: hidden;
}
.tile::before {
  content: attr(data-suit);
  position: absolute;
  right: 18px;
  top: 8px;
  font-size: 84px;
  line-height: 1;
  color: var(--paper-2);
  pointer-events: none;
}
.tile h3 {
  font-size: 21px;
  margin: 0 0 10px;
  position: relative;
}
.tile p {
  margin: 0;
  color: var(--ink-2);
  position: relative;
}
.tile p + p {
  margin-top: 10px;
}

/* таблица форматов (страница-справочник /razmery-kart/) */
.sizes-wrap {
  overflow-x: auto;
  margin: 8px 0 14px;
}
.sizes {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
.sizes th,
.sizes td {
  text-align: left;
  padding: 14px 18px 14px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.sizes thead th {
  font:
    600 13px/1.3 Inter,
    sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom-width: 2px;
}
.sizes tbody th {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  white-space: nowrap;
}
.sizes tbody td:first-of-type {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.sizes tbody td:last-child {
  color: var(--ink-2);
  max-width: 44em;
}

/* на телефоне таблица разворачивается в карточки: третья колонка иначе уезжает за край, и
   боковая прокрутка внутри таблицы выглядит обрывом текста */
@media (max-width: 680px) {
  .sizes {
    min-width: 0;
  }
  .sizes thead {
    display: none;
  }
  .sizes tbody tr {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .sizes tbody th,
  .sizes tbody td {
    display: block;
    padding: 0;
    border: 0;
  }
  .sizes tbody td:first-of-type {
    margin: 2px 0 6px;
    font-size: 17px;
  }
  .sizes tbody td:last-child {
    max-width: none;
  }
}

/* вопросы */
.faq details {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 40px 16px 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 6px;
  top: 12px;
  font:
    300 28px/1 Inter,
    sans-serif;
  color: var(--gold-text);
  transition: transform 0.35s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq p {
  margin: 0 0 18px;
  color: var(--ink-2);
  max-width: 60em;
}

/* финал — тёмная полоса */
.final {
  background: var(--dark);
  color: var(--dark-text);
  padding: 72px 0;
  text-align: center;
}
.final h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  margin-bottom: 12px;
}
.final p {
  color: var(--dark-muted);
  margin: 0 0 24px;
}
/* ПОДВАЛ (29.09.2026, просьба директора «профессиональный эстетичный практичный»). Продолжает тёмную
   финальную полосу, но на тон светлее и отделён золотой нитью — как обрез колоды. Четыре колонки:
   знак и слова о сервисе · страницы · покупателю · связь и печать; внизу — реквизиты продавца одной
   строкой (закон требует их на сайте, страж site-copy-guards сверяет ИНН/ОГРНИП с офертой).
   Движение — только смена цвета ссылки за 0.3 с; водяной знак пики неподвижен. Разметка подвала на
   всех страницах витрины ОДНА (страж site-pages-served). */
.foot {
  position: relative;
  overflow: hidden;
  background: var(--dark-2);
  color: var(--dark-muted);
  font-size: 14.5px;
  line-height: 1.55;
  padding: 64px 0 0;
}
.foot::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 162, 74, 0.7) 20%,
    rgba(201, 162, 74, 0.7) 80%,
    transparent
  );
}
.foot-mark {
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 360px;
  height: auto;
  color: #fff;
  opacity: 0.035;
  pointer-events: none;
}
.foot-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 40px 48px;
  padding-bottom: 48px;
}
.foot .brand {
  color: var(--dark-text);
  text-decoration: none;
}
.foot-lead {
  margin: 16px 0 0;
  max-width: 300px;
  color: var(--dark-muted);
}
.foot-col h2 {
  margin: 4px 0 16px;
  font-family:
    Inter,
    -apple-system,
    'Segoe UI',
    Arial,
    sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d4b36a;
}
.foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.foot a {
  color: var(--dark-text);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition:
    color 0.3s var(--ease),
    text-decoration-color 0.3s var(--ease);
}
.foot a:hover,
.foot a:focus-visible {
  color: #fff;
  text-decoration-color: #d4b36a;
}
.foot-phone {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.foot-note {
  margin: 14px 0 0;
  font-size: 13.5px;
}
.foot-legal {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  padding-block: 20px 28px; /* только сверху/снизу: боковые поля даёт .wrap */
  border-top: 1px solid var(--dark-line);
  font-size: 12.5px;
  color: #8d8778;
}
@media (max-width: 960px) {
  .foot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .foot-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 680px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-grid > .foot-col:last-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 520px) {
  .foot {
    padding-top: 48px;
  }
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .foot-mark {
    width: 240px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .foot a {
    transition: none;
  }
}

/* инструкция */
.howto {
  counter-reset: hs;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 40px;
}
.howto li {
  counter-increment: hs;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
}
.howto li:nth-child(even) .txt {
  order: 2;
}
.howto .txt::before {
  content: 'Шаг ' counter(hs);
  display: block;
  font:
    700 12px/1 Inter,
    sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 10px;
}
.howto h3 {
  font-size: 22px;
  margin: 0 0 10px;
}
.howto p {
  margin: 0;
  color: var(--ink-2);
}
.howto img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  background: var(--paper-2);
}

/* появление */
.rv {
  opacity: 0;
  transform: translateY(10px);
  animation: rv 0.8s var(--ease) forwards;
}
.rv:nth-child(2) {
  animation-delay: 0.11s;
}
.rv:nth-child(3) {
  animation-delay: 0.22s;
}
.rv:nth-child(4) {
  animation-delay: 0.33s;
}
@keyframes rv {
  to {
    opacity: 1;
    transform: none;
  }
}
.fan img {
  animation-name: fan-in;
}
@keyframes fan-in {
  to {
    opacity: 1;
  }
}
.brand i {
  animation: gleam 11s linear infinite;
}
@keyframes gleam {
  0%,
  92% {
    filter: brightness(1);
  }
  96% {
    filter: brightness(1.35);
  }
  100% {
    filter: brightness(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .rv,
  .fan img {
    animation: none;
    opacity: 1;
  }
  .rv {
    transform: none;
  }
  .brand i {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* адаптив */
@media (max-width: 1100px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cases {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .case,
  .case:nth-child(4n + 2),
  .case:nth-child(4n + 3) {
    grid-template-columns: 160px minmax(0, 1fr);
  }
  .case:nth-child(4n + 2) .case-art,
  .case:nth-child(4n + 3) .case-art {
    order: 0;
  }
}
@media (max-width: 900px) {
  .hero {
    padding: 28px 0 44px;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .fan {
    order: -1; /* на телефоне карты — первым делом, чтобы попали в первый экран целиком */
    height: 250px;
  }
  .fan .note {
    display: none; /* та же фраза — в ленте колод ниже */
  }
  .cta-row .btn {
    width: 100%;
    text-align: center;
  }
  .fan img {
    width: 118px;
  }
  .fan .f1,
  .fan .f1:hover {
    transform: translate(-50%, -50%) rotate(-16deg) translateX(-62px);
  }
  .fan .f2,
  .fan .f2:hover {
    transform: translate(-50%, -50%) rotate(-5deg) translateX(-21px);
  }
  .fan .f3,
  .fan .f3:hover {
    transform: translate(-50%, -50%) rotate(6deg) translateX(21px);
  }
  .fan .f4,
  .fan .f4:hover {
    transform: translate(-50%, -50%) rotate(17deg) translateX(62px);
  }
  .clips,
  .price,
  .two {
    grid-template-columns: 1fr;
  }
  .howto li {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .howto li:nth-child(even) .txt {
    order: 0;
  }
  .deck {
    flex-basis: 260px;
  }
}
@media (max-width: 560px) {
  .sec {
    padding: 48px 0;
  }
  .strip {
    padding: 48px 0 40px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .case,
  .case:nth-child(4n + 2),
  .case:nth-child(4n + 3) {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 16px;
  }
  .top .wrap {
    gap: 10px;
  }
  .brand {
    font-size: 18px;
  }
  .btn--sm {
    padding: 9px 13px;
  }
  .pbox {
    padding: 22px 20px;
  }
  .pbox .num {
    font-size: 44px;
  }
}

/* ═══ «Правите колоду, а не карту» + полоса симметрии (23.09.2026) ═══════════════════════════
   Просьба заказчика: рассказать, что продукт задуман как работа СО ВСЕЙ КОЛОДОЙ сразу, и что
   симметрия карт сохраняется сама. Сценки — векторные, в цветах витрины; оживают один раз, когда
   блок попадает на экран (класс .in ставит наблюдатель в конце страницы). Движение по правилам
   витрины: проявление + подъём 10 px за 0,6–0,9 с, ступени ~110 мс, прорисовка линий, редкий
   блик (9 с); единственное постоянное движение — «дыхание» раскладки девятки раз в 10 с: оно и
   есть доказательство симметрии. Без появления из точки, пружин и доворота при появлении;
   prefers-reduced-motion — всё стоит в конечном виде. */
.whole .kicker,
.sym .kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 10px;
}
.sym .kicker {
  color: var(--gold);
}
.wd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.wd-card {
  background: #fbf8f1;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px 22px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  transition:
    translate 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.wd-card:hover {
  translate: 0 -3px;
  border-color: var(--line-2);
  box-shadow: 0 18px 34px -18px rgba(48, 36, 12, 0.35);
}
.wd-art {
  aspect-ratio: 240 / 150;
  margin: -4px -6px 12px;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 50% 20%, #fffdf8, transparent 70%),
    linear-gradient(180deg, #f3ede0, #ece6d8);
  overflow: hidden;
}
.wd-scene {
  display: block;
  width: 100%;
  height: 100%;
}
.wd-card h3 {
  font-size: 21px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.wd-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.55;
}

/* появление карточек — когда блок в кадре */
.js-reveal .wd-card {
  opacity: 0;
  transform: translateY(10px);
}
.js-reveal .whole.in .wd-card {
  animation: rv 0.85s var(--ease) forwards;
}
.whole.in .wd-card:nth-child(2) {
  animation-delay: 0.11s;
}
.whole.in .wd-card:nth-child(3) {
  animation-delay: 0.22s;
}
.whole.in .wd-card:nth-child(4) {
  animation-delay: 0.33s;
}
.whole.in .wd-card:nth-child(5) {
  animation-delay: 0.44s;
}
.whole.in .wd-card:nth-child(6) {
  animation-delay: 0.55s;
}

/* СЦЕНКИ ПОВТОРЯЮТСЯ (просьба заказчика 23.09: «чтобы анимация периодически проигрывалась и
   привлекала внимание»). Карточки появляются один раз; сама СЦЕНКА играет, пока у карточки класс
   .play. Наблюдатель в конце страницы ставит .play всем при первом показе, а дальше, пока блок на
   экране, раз в 4 с снимает и возвращает .play у следующей карточки по кругу — сценки оживают
   по очереди, а не мигают разом. Покой сценки — её конечный вид; анимация начинается со
   «скрытого» кадра (fill both), поэтому повтор — это заново рассказанная история, без мигания
   всей карточки. */
/* 1. фигуры обводятся золотом по очереди */
.wd-card.play .wd-court {
  animation: wdIn 0.6s var(--ease) both;
  animation-delay: calc(0.5s + var(--i) * 0.07s);
}
@keyframes wdIn {
  from {
    opacity: 0;
  }
}
/* 2. снимки опускаются на карты */
.wd-photo {
  transform-box: fill-box;
}
.wd-card.play .wd-photo {
  animation: wdDrop 0.8s var(--ease) both;
  animation-delay: calc(0.55s + var(--i) * 0.12s);
}
@keyframes wdDrop {
  from {
    opacity: 0;
    transform: translateY(-26px);
  }
}
/* 3. блик по знаку — раз в 9 с (идёт сам, повтор ему не нужен) */
.wd-glint {
  transform-box: view-box;
  transform: translateX(0) skewX(-18deg);
}
.whole.in .wd-glint {
  animation: wdGlint 9s cubic-bezier(0.45, 0, 0.25, 1) 1.4s infinite;
}
@keyframes wdGlint {
  0% {
    transform: translateX(0) skewX(-18deg);
  }
  16%,
  100% {
    transform: translateX(300px) skewX(-18deg);
  }
}
/* 4. нить связи прорисовывается, узор на лице проявляется следом */
.wd-thread {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.wd-card.play .wd-thread {
  animation: wdDraw 0.9s var(--ease) 0.7s both;
}
@keyframes wdDraw {
  from {
    stroke-dashoffset: 1;
  }
}
.wd-card.play .wd-echo {
  animation: wdIn 0.8s var(--ease) 1.3s both;
}
/* 5. тёмная половина ложится на светлую, фото на месте */
.wd-dark {
  transform-box: fill-box;
}
.wd-card.play .wd-dark {
  animation: wdSlide 0.9s var(--ease) 0.9s both;
}
@keyframes wdSlide {
  from {
    opacity: 0;
    transform: translate(10px, -10px);
  }
}
/* 6. четыре части в ряд проявляются, рамка подсвечивается, стрелка «обновить» — следом */
.wd-layer {
  transform-box: fill-box;
}
.wd-card.play .wd-layer {
  animation: wdRise 0.7s var(--ease) both;
  animation-delay: calc(0.6s + var(--i) * 0.11s);
}
@keyframes wdRise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.wd-refresh {
  transform-box: fill-box;
}
.wd-card.play .wd-refresh {
  animation: wdIn 0.7s var(--ease) 1.2s both;
}

/* полоса симметрии */
.sym {
  padding: 76px 0;
}
.sym-wrap {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
.sym h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  margin-bottom: 16px;
}
.sym p {
  color: var(--dark-muted);
  font-size: 16.5px;
  line-height: 1.65;
  margin: 0 0 14px;
}
.sym-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.wd-nine {
  width: min(300px, 80%);
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
}
.wd-rose {
  position: absolute;
  right: -2%;
  bottom: -6%;
  width: 96px;
  height: 96px;
  opacity: 0.9;
}
.wd-pip {
  transform-box: view-box;
}
/* «дыхание» раскладки: раз в 10 с значки расходятся к краям и возвращаются — строго зеркально
   (левая колонка влево, правая вправо, верх вверх, низ вниз на одинаковую величину) */
.sym.in .wd-pip.wd-l {
  animation: wdBreathL 10s var(--ease) 1.2s infinite;
}
.sym.in .wd-pip.wd-r {
  animation: wdBreathR 10s var(--ease) 1.2s infinite;
}
@keyframes wdBreathL {
  0%,
  64%,
  100% {
    translate: 0 0;
  }
  76%,
  84% {
    translate: -7px 0;
  }
}
@keyframes wdBreathR {
  0%,
  64%,
  100% {
    translate: 0 0;
  }
  76%,
  84% {
    translate: 7px 0;
  }
}
.js-reveal .wd-axes {
  opacity: 0;
}
.sym.in .wd-axes {
  animation: wdFade 0.9s var(--ease) 0.4s forwards;
}
.js-reveal .sym-text > * {
  opacity: 0;
  transform: translateY(10px);
}
.js-reveal .sym.in .sym-text > * {
  animation: rv 0.85s var(--ease) forwards;
}
.sym.in .sym-text > :nth-child(2) {
  animation-delay: 0.11s;
}
.sym.in .sym-text > :nth-child(3) {
  animation-delay: 0.22s;
}
.sym.in .sym-text > :nth-child(4) {
  animation-delay: 0.33s;
}
.sym.in .sym-text > :nth-child(5) {
  animation-delay: 0.44s;
}

@media (max-width: 900px) {
  .wd-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sym-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
@media (max-width: 560px) {
  .wd-grid {
    grid-template-columns: 1fr;
  }
  .wd-card h3 {
    font-size: 19px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal .wd-card,
  .js-reveal .wd-axes,
  .js-reveal .sym-text > * {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
  .wd-card .wd-court,
  .wd-card .wd-photo,
  .wd-card .wd-thread,
  .wd-card .wd-echo,
  .wd-card .wd-dark,
  .wd-card .wd-layer,
  .wd-card .wd-refresh,
  .wd-glint,
  .wd-pip {
    animation: none !important;
  }
  .wd-glint {
    display: none;
  }
  .wd-card {
    transition: none;
  }
}

/* ═══ «Смотрите колоду так, как удобно вам» — виды просмотра и темы (23.09.2026) ═══════════════
   Просьба заказчика: рассказать о способах посмотреть колоду (вся колода, одна крупно + лента,
   3D, технический вид, листание, показ, цветопроба) и о темах оформления — с эффектной, но
   аккуратной анимацией. Каждая сценка — короткий цикл 8–15 с, чтобы блок жил, пока на него
   смотрят; стартуют, когда блок попал в кадр (.views.in). Движение — transform/opacity и штрих
   тонких линий; без появления из точки и пружин; «меньше движения» — неподвижный кадр. */
.views h2 {
  line-height: 1.15;
}
.views .kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 10px;
}
.vw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.vw-card {
  background: #fbf8f1;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px 22px;
  transition:
    translate 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.vw-card:hover {
  translate: 0 -3px;
  border-color: var(--line-2);
  box-shadow: 0 18px 34px -18px rgba(48, 36, 12, 0.35);
}
.vw-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: center;
}
.vw-art {
  aspect-ratio: 240 / 150;
  margin: -4px -6px 12px;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 50% 20%, #fffdf8, transparent 70%),
    linear-gradient(180deg, #f3ede0, #ece6d8);
  overflow: hidden;
  perspective: 700px;
}
.vw-wide .vw-art {
  margin: 0;
}
.vw-scene {
  display: block;
  width: 100%;
  height: 100%;
}
.vw-card h3 {
  font-size: 21px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.vw-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.55;
}
.js-reveal .vw-card {
  opacity: 0;
  transform: translateY(10px);
}
.js-reveal .views.in .vw-card {
  animation: rv 0.85s var(--ease) forwards;
}
.views.in .vw-card:nth-child(2) {
  animation-delay: 0.11s;
}
.views.in .vw-card:nth-child(3) {
  animation-delay: 0.22s;
}
.views.in .vw-card:nth-child(4) {
  animation-delay: 0.33s;
}
.views.in .vw-card:nth-child(5) {
  animation-delay: 0.44s;
}
.views.in .vw-card:nth-child(6) {
  animation-delay: 0.55s;
}
.views.in .vw-card:nth-child(7) {
  animation-delay: 0.66s;
}
.views.in .vw-card:nth-child(8) {
  animation-delay: 0.77s;
}
.vw-scene g,
.vw-scene rect,
.vw-scene path,
.vw-scene text {
  transform-box: view-box;
}
/* 1. рамка выделения переходит с карты на карту */
.views.in .vw-focus {
  animation: vwFocus 10s var(--ease) 1s infinite;
}
@keyframes vwFocus {
  0%,
  18% {
    translate: 0 0;
  }
  28%,
  46% {
    translate: 54px -24px;
  }
  56%,
  74% {
    translate: -72px 24px;
  }
  84%,
  100% {
    translate: 0 0;
  }
}
/* 2. лента колоды едет на карту, большая карта сменяется */
.views.in .vw-rail {
  animation: vwRail 12s var(--ease) 1s infinite;
}
@keyframes vwRail {
  0%,
  15% {
    translate: 0 0;
  }
  25%,
  40% {
    translate: -26px 0;
  }
  50%,
  65% {
    translate: -52px 0;
  }
  75%,
  90% {
    translate: -78px 0;
  }
  100% {
    translate: -104px 0;
  }
}
.vw-big2 {
  opacity: 0;
}
.views.in .vw-big1 {
  animation: vwBigA 12s var(--ease) 1s infinite;
}
.views.in .vw-big2 {
  animation: vwBigB 12s var(--ease) 1s infinite;
}
@keyframes vwBigA {
  0%,
  17%,
  50%,
  67%,
  100% {
    opacity: 1;
  }
  25%,
  42%,
  75%,
  92% {
    opacity: 0;
  }
}
@keyframes vwBigB {
  0%,
  17%,
  50%,
  67%,
  100% {
    opacity: 0;
  }
  25%,
  42%,
  75%,
  92% {
    opacity: 1;
  }
}
/* 3. карта в объёме медленно покачивается; блик раз в цикл */
.views.in .vw-card:nth-child(3) .vw-scene {
  animation: vwSway 8s ease-in-out 1.2s infinite;
}
@keyframes vwSway {
  0%,
  100% {
    transform: rotateY(-14deg) rotateX(5deg);
  }
  50% {
    transform: rotateY(14deg) rotateX(7deg);
  }
}
.vw-glint {
  translate: -40px 0;
}
.views.in .vw-glint {
  animation: vwGlint 8s cubic-bezier(0.45, 0, 0.25, 1) 2s infinite;
}
@keyframes vwGlint {
  0% {
    translate: -40px 0;
  }
  22%,
  100% {
    translate: 140px 0;
  }
}
/* 4. линия реза прочерчивается, запас за краем «срезается» и возвращается */
.views.in .vw-cut {
  animation: vwCut 11s var(--ease) 1s infinite;
}
@keyframes vwCut {
  0% {
    stroke-dashoffset: 100;
  }
  15%,
  100% {
    stroke-dashoffset: 0;
  }
}
.views.in .vw-bleed {
  animation: vwBleed 11s var(--ease) 1s infinite;
}
@keyframes vwBleed {
  0%,
  18% {
    opacity: 1;
  }
  28%,
  60% {
    opacity: 0.3;
  }
  75%,
  100% {
    opacity: 1;
  }
}
/* 5. верхняя карта уходит в сторону, звук расходится */
.views.in .vw-flip {
  animation: vwFlip 8s var(--ease) 1s infinite;
}
@keyframes vwFlip {
  0%,
  30% {
    translate: 0 0;
    rotate: 0deg;
    opacity: 1;
  }
  45% {
    translate: 44px -4px;
    rotate: 6deg;
    opacity: 0;
  }
  55% {
    translate: 0 6px;
    rotate: 0deg;
    opacity: 0;
  }
  70%,
  100% {
    translate: 0 0;
    rotate: 0deg;
    opacity: 1;
  }
}
.vw-snd {
  opacity: 0.2;
}
.views.in .vw-snd {
  animation: vwSnd 8s ease-in-out 1s infinite;
  animation-delay: calc(1s + var(--i) * 0.15s);
}
@keyframes vwSnd {
  0%,
  28%,
  60%,
  100% {
    opacity: 0.15;
  }
  40% {
    opacity: 0.9;
  }
}
/* 6. показ: веер → три → одна → веер (покой — веер: без скрипта и при «меньше движения») */
.vw-show {
  transform-origin: 0 0;
}
.vw-s0 {
  translate: 72px 88px;
  rotate: -24deg;
}
.vw-s1 {
  translate: 96px 80px;
  rotate: -12deg;
}
.vw-s2 {
  translate: 120px 77px;
  rotate: 0deg;
}
.vw-s3 {
  translate: 144px 80px;
  rotate: 12deg;
}
.vw-s4 {
  translate: 168px 88px;
  rotate: 24deg;
}
.views.in .vw-s0 {
  animation: vwS0 9s var(--ease) 1s infinite;
}
.views.in .vw-s1 {
  animation: vwS1 9s var(--ease) 1s infinite;
}
.views.in .vw-s2 {
  animation: vwS2 9s var(--ease) 1s infinite;
}
.views.in .vw-s3 {
  animation: vwS3 9s var(--ease) 1s infinite;
}
.views.in .vw-s4 {
  animation: vwS4 9s var(--ease) 1s infinite;
}
@keyframes vwS0 {
  0%,
  25%,
  100% {
    translate: 72px 88px;
    rotate: -24deg;
    opacity: 1;
  }
  36%,
  58% {
    translate: 120px 78px;
    rotate: 0deg;
    opacity: 0;
  }
  69%,
  91% {
    translate: 120px 78px;
    rotate: 0deg;
    opacity: 0;
  }
}
@keyframes vwS1 {
  0%,
  25%,
  100% {
    translate: 96px 80px;
    rotate: -12deg;
    opacity: 1;
  }
  36%,
  58% {
    translate: 78px 78px;
    rotate: 0deg;
    opacity: 1;
  }
  69%,
  91% {
    translate: 120px 78px;
    rotate: 0deg;
    opacity: 0;
  }
}
@keyframes vwS2 {
  0%,
  25%,
  100% {
    translate: 120px 77px;
    rotate: 0deg;
    opacity: 1;
  }
  36%,
  58% {
    translate: 120px 78px;
    rotate: 0deg;
    opacity: 1;
  }
  69%,
  91% {
    translate: 120px 76px;
    rotate: 0deg;
    opacity: 1;
  }
}
@keyframes vwS3 {
  0%,
  25%,
  100% {
    translate: 144px 80px;
    rotate: 12deg;
    opacity: 1;
  }
  36%,
  58% {
    translate: 162px 78px;
    rotate: 0deg;
    opacity: 1;
  }
  69%,
  91% {
    translate: 120px 78px;
    rotate: 0deg;
    opacity: 0;
  }
}
@keyframes vwS4 {
  0%,
  25%,
  100% {
    translate: 168px 88px;
    rotate: 24deg;
    opacity: 1;
  }
  36%,
  58% {
    translate: 120px 78px;
    rotate: 0deg;
    opacity: 0;
  }
  69%,
  91% {
    translate: 120px 78px;
    rotate: 0deg;
    opacity: 0;
  }
}
/* 7. граница «экран | печать» проходит по карте и возвращается */
.views.in .vw-proof {
  animation: vwProof 10s var(--ease) 1s infinite;
}
@keyframes vwProof {
  0%,
  12% {
    translate: 0 0;
  }
  35%,
  55% {
    translate: -36px 0;
  }
  78%,
  100% {
    translate: 0 0;
  }
}
/* 8. подложка меняет тему, карта неподвижна */
.vw-th2,
.vw-th3 {
  opacity: 0;
}
.views.in .vw-th1 {
  animation: vwTh1 9s var(--ease) 1s infinite;
}
.views.in .vw-th2 {
  animation: vwTh2 9s var(--ease) 1s infinite;
}
.views.in .vw-th3 {
  animation: vwTh3 9s var(--ease) 1s infinite;
}
@keyframes vwTh1 {
  0%,
  25%,
  92%,
  100% {
    opacity: 1;
  }
  33%,
  84% {
    opacity: 0;
  }
}
@keyframes vwTh2 {
  0%,
  25%,
  58%,
  100% {
    opacity: 0;
  }
  33%,
  50% {
    opacity: 1;
  }
}
@keyframes vwTh3 {
  0%,
  58%,
  100% {
    opacity: 0;
  }
  66%,
  84% {
    opacity: 1;
  }
}
circle.vw-th2 {
  animation-name: vwTh2Glow !important;
}
@keyframes vwTh2Glow {
  0%,
  25%,
  58%,
  100% {
    opacity: 0;
  }
  33%,
  50% {
    opacity: 0.18;
  }
}
@media (max-width: 900px) {
  .vw-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .vw-wide {
    grid-column: span 2;
  }
}
@media (max-width: 560px) {
  .vw-grid {
    grid-template-columns: 1fr;
  }
  .vw-wide {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .vw-card h3 {
    font-size: 19px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal .vw-card {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
  .vw-scene,
  .vw-scene * {
    animation: none !important;
  }
  .vw-s0 {
    translate: 72px 88px;
    rotate: -24deg;
  }
  .vw-s1 {
    translate: 96px 80px;
    rotate: -12deg;
  }
  .vw-s3 {
    translate: 144px 80px;
    rotate: 12deg;
  }
  .vw-s4 {
    translate: 168px 88px;
    rotate: 24deg;
  }
  .vw-card {
    transition: none;
  }
}

/* ── Обложка для телефона (24.09.2026) ─────────────────────────────────────────────────────
   Окно поверх главной: что это, цена, три настоящие колоды, «прислать ссылку себе», «всё равно
   открыть». Появление — проявление с подъёмом на 10 px за 0.7 с (правила заказчика). */
.pc {
  width: min(420px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 28px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.pc[open] {
  animation: pc-in 0.7s var(--ease) both;
}
.pc::backdrop {
  background: rgba(21, 21, 26, 0.55);
  animation: pc-fade 0.5s var(--ease) both;
}
@keyframes pc-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes pc-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.pc h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 12px;
}
.pc-lead {
  margin: 0 0 18px;
  color: var(--ink-2);
}
.pc-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.pc-close:hover {
  background: var(--paper-2);
  color: var(--ink);
}
.pc-decks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 16px;
}
.pc-decks img {
  width: 100%;
  aspect-ratio: 63 / 88;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}
.pc-price {
  margin: 0 0 18px;
  color: var(--ink-2);
}
.pc-price b {
  color: var(--ink);
  white-space: nowrap;
}
/* окно получает фокус целиком при открытии — рамка фокуса вокруг всего окна лишняя; у кнопок
   внутри она остаётся (клавиатура) */
.pc:focus,
.pc:focus-visible {
  outline: none;
}
.pc-send {
  display: block;
  width: 100%;
  min-height: 48px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.pc-note {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--gold-text);
  word-break: break-all;
}
.pc-anyway {
  display: block;
  margin-top: 14px;
  padding: 12px 0;
  text-align: center;
  font-weight: 600;
  color: var(--ink-2);
}
@media (prefers-reduced-motion: reduce) {
  .pc[open],
  .pc::backdrop {
    animation: none;
  }
}

/* «Написать нам» видна, только когда сервер подключил чат Битрикса (CHAT_WIDGET_URL) */
[data-chat][hidden] {
  display: none !important;
}
