/* Плойки у Ярика — bold, warm, "party" look: cream paper, ink outlines, hard offset shadows */
:root {
  --paper: #fff4e6;
  --paper-2: #ffe8cc;
  --ink: #1c1326;
  --ink-2: #4a3d57;
  --hot: #ff4d6d;
  --violet: #6b2fd6;
  --lime: #c8f542;
  --sun: #ffc93c;
  --line: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --r: 14px;
  --wrap: 1080px;
  --head: "Bahnschrift", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --body: "Trebuchet MS", "Segoe UI", Ubuntu, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--body);
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--violet); }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.muted { color: var(--ink-2); }
.small { font-size: .95rem; }
.nb { white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 22px;
  font: 700 1.05rem/1.2 var(--head);
  color: var(--ink); text-decoration: none;
  border: var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover, .btn:focus-visible { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-hot { background: var(--hot); }
.btn-line { background: #fff; }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: .95rem; }
a:focus-visible, summary:focus-visible, select:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: var(--line); }
.top-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 1.15rem/1 var(--head); }
.logo-mark { width: 44px; height: 44px; object-fit: contain; }
.top-nav { display: none; gap: 20px; margin-left: auto; }
.top-nav a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 10px 0; }
.top-nav a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--hot); }
.top-cta { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.top-phone { display: none; color: var(--ink); font-weight: 700; text-decoration: none; padding: 10px 0; }

/* Hero */
.hero { padding: 28px 0 40px; background:
  radial-gradient(circle at 85% 20%, var(--sun) 0 70px, transparent 71px),
  radial-gradient(circle at 8% 90%, var(--paper-2) 0 120px, transparent 121px), var(--paper); }
.hero-grid { display: grid; gap: 24px; align-items: center; }
.tag {
  display: inline-block; margin-bottom: 14px; padding: 6px 12px;
  background: var(--ink); color: var(--lime); border-radius: 999px;
  font: 700 .85rem/1.2 var(--head); letter-spacing: .04em; text-transform: uppercase;
}
.lead { font-size: 1.08rem; max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 12px; }
.hero-note { font-weight: 700; color: var(--ink-2); margin: 0; }
.hero-art { justify-self: center; width: 100%; max-width: 360px; }
.hero-art svg { width: 100%; max-width: 420px; height: auto; filter: drop-shadow(8px 8px 0 var(--ink)); }
.hero-photo { display: block; width: 100%; max-width: 420px; height: auto; border: 3px solid var(--ink); border-radius: 22px; box-shadow: 8px 8px 0 var(--ink); }
.art-card { fill: var(--violet); stroke: var(--ink); stroke-width: 4; }
.art-text { fill: var(--ink); font: 800 28px var(--head); letter-spacing: 3px; }
.sc-tv { fill: var(--ink); }
.sc-sofa { fill: var(--hot); stroke: var(--ink); stroke-width: 4; }
.sc-line { stroke: var(--ink); stroke-width: 3; }
.sc-eye { fill: var(--ink); }
.sc-mouth { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.sc-screen-off { fill: #2a2038; }
.sc-screen-on { fill: var(--lime); }
.sc-text-dim { fill: #8d7fa3; font: 700 16px var(--body); }
.sc-text-bubble { fill: var(--ink); font: 700 13px var(--body); }
/* Hero scene: three frames; the final one is the static fallback */
.scene { opacity: 0; }
.scene-3 { opacity: 1; }
@keyframes scene-a { 0%, 30% { opacity: 1; } 34%, 100% { opacity: 0; } }
@keyframes scene-b { 0%, 30% { opacity: 0; } 34%, 64% { opacity: 1; } 68%, 100% { opacity: 0; } }
@keyframes scene-c { 0%, 64% { opacity: 0; } 68%, 96% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .scene-1 { animation: scene-a 9s infinite; }
  .scene-2 { animation: scene-b 9s infinite; }
  .scene-3 { animation: scene-c 9s infinite; }
}

/* Blocks */
.block { padding: 56px 0; border-top: var(--line); }
.block-ink { background: var(--ink); color: var(--paper); }
.block-ink .muted, .block-ink .small { color: #d8cfe3; }
.block-ink h2, .block-ink h3 { color: #fff; }
.block-sun { background: var(--sun); }
.block-hot { background: var(--hot); }
.block-final { background: var(--lime); text-align: center; }
.final .cta-row { justify-content: center; }

.cards { display: grid; gap: 16px; }
.card {
  background: #fff; border: var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 20px;
}
.card p { margin: 0; }
.card-ico { display: block; width: 44px; height: 44px; margin-bottom: 10px; fill: var(--sun); stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.cards.four .card:nth-child(2) .card-ico { fill: var(--hot); }
.cards.four .card:nth-child(3) .card-ico { fill: var(--violet); }
.cards.four .card:nth-child(4) .card-ico { fill: var(--lime); }
mark { background: linear-gradient(transparent 55%, var(--sun) 55%); color: inherit; padding: 0 2px; font-weight: 700; }
.card { transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translate(-2px, -2px) rotate(-.6deg); box-shadow: 8px 8px 0 var(--ink); }
.bag-badge { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 8px 18px 8px 8px; background: var(--lime); color: var(--ink); border: var(--line); border-radius: 999px; font: 800 1.3rem/1 var(--head); transform: rotate(-2deg); box-shadow: 4px 4px 0 var(--hot); }
.bag-num { display: grid; place-items: center; width: 46px; height: 46px; background: var(--ink); color: var(--lime); border-radius: 50%; font-size: 1.7rem; }
.cards.four .card:nth-child(1) { background: #fff; }
.cards.four .card:nth-child(2) { background: #ffe0e6; }
.cards.four .card:nth-child(3) { background: #eadfff; }
.cards.four .card:nth-child(4) { background: #f1fccf; }

.split { display: grid; gap: 24px; align-items: start; }
.checklist li {
  position: relative; padding: 12px 0 12px 40px; border-bottom: 2px dashed rgba(255, 244, 230, .3);
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 28px; height: 28px;
  background: var(--lime); border: 2px solid var(--paper); border-radius: 50%;
}
.checklist li:nth-child(even)::before { background: var(--sun); }
.checklist li::after {
  content: ""; position: absolute; left: 8px; top: 19px; width: 11px; height: 6px;
  border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(-50deg);
}
.checklist li { padding-left: 44px; font-weight: 700; }

/* Recommendations */
.recommend { margin: 24px 0; padding: 20px; background: var(--paper); color: var(--ink); border: var(--line); border-radius: var(--r); box-shadow: 6px 6px 0 var(--hot); }
.recommend h3 { font-size: 1.5rem; color: var(--ink); }
.rec-list { display: grid; gap: 12px; }
.rec-card { padding: 14px; background: #fff; border: var(--line); border-radius: 10px; }
.rec-card p { margin: 6px 0 0; }
.rec-card strong { display: block; font: 800 1.15rem/1.2 var(--head); }
.rec-for { display: inline-block; margin-bottom: 6px; padding: 3px 10px; background: var(--violet); color: #fff; border-radius: 999px; font: 700 .8rem/1.3 var(--head); text-transform: uppercase; letter-spacing: .04em; }
.rec-card[data-rec="pair"] .rec-for { background: var(--hot); }

/* Prices */
.prices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0; }
.prices li {
  display: flex; flex-direction: column; gap: 4px; padding: 16px;
  background: #fff; border: var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm);
}
.prices .days { font-weight: 700; color: var(--ink-2); }
.prices .sum { font: 800 1.6rem/1 var(--head); white-space: nowrap; }
.prices .best { background: var(--lime); grid-column: 1 / -1; }
.calc {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding: 18px; margin: 8px 0 16px; background: var(--paper-2);
  border: var(--line); border-radius: var(--r);
}
.calc label { font-weight: 700; }
.calc select {
  min-height: 48px; padding: 8px 12px; font: inherit; color: var(--ink);
  background: #fff; border: var(--line); border-radius: 10px;
}
.calc output { font: 800 1.6rem/1 var(--head); color: var(--violet); white-space: nowrap; }

/* Steps */
.steps { display: grid; gap: 16px; counter-reset: step; }
.steps li {
  position: relative; padding: 20px 20px 20px 76px; counter-increment: step;
  background: #fff; border: var(--line); border-radius: var(--r);
}
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 18px;
  display: grid; place-items: center; width: 42px; height: 42px;
  background: var(--hot); border: var(--line); border-radius: 50%;
  font: 800 1.2rem/1 var(--head);
}
.steps p { margin: 0; }

/* Games */
.games { display: grid; gap: 20px; margin: 20px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 8px 14px; background: var(--paper); color: var(--ink);
  border: 3px solid var(--lime); border-radius: 999px; font-weight: 700;
}

/* Rules */
.rules li { padding: 14px 0 14px 34px; position: relative; border-bottom: 2px solid var(--paper-2); }
.rules li::before { content: "!"; position: absolute; left: 0; top: 12px; width: 24px; height: 24px;
  display: grid; place-items: center; background: var(--sun); border: 2px solid var(--ink); border-radius: 50%;
  font: 800 .9rem/1 var(--head); }

/* Yarik */
.yarik { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.yarik p { margin: 0; font-size: 1.08rem; }
.yarik-photo {
  flex: none; width: 140px; height: 140px; object-fit: cover; object-position: top; background: var(--lime);
  border: var(--line); border-radius: 50%; box-shadow: var(--shadow-sm); transform: rotate(-3deg);
}
.komu-photo {
  max-width: 760px; margin: 0 auto 28px; padding: 12px; background: var(--sun);
  border: var(--line); border-radius: 22px; box-shadow: var(--shadow); transform: rotate(-1deg);
}
.komu-photo img { display: block; width: 100%; height: auto; border: var(--line); border-radius: 12px; }
.kit-photo { display: block; width: 100%; max-width: 420px; height: auto; margin-top: 20px; border: var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: var(--line); border-radius: var(--r); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; position: relative;
  font: 700 1.05rem/1.3 var(--head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font: 800 1.6rem/1 var(--head); color: var(--hot); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 18px 18px; }

/* Footer */
.foot { background: var(--ink); color: var(--paper); padding: 28px 0; }
.foot a { color: var(--lime); }
.foot-row { display: grid; gap: 8px; }
.foot p { margin: 0; }
.foot-legal { grid-column: 1 / -1; font-size: .9rem; opacity: .85; }

/* Cookie banner (built by analytics.js); removed after a choice, so CTAs are never covered for good */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 20;
  padding: 14px 16px; background: #fff; border: var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  font-size: .95rem; line-height: 1.45;
}
.consent-text { margin: 0 0 10px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-actions .btn { flex: 1 1 140px; cursor: pointer; }
.consent button:focus-visible, .consent-reset:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.consent-reset { cursor: pointer; }

/* Reveal on scroll: only with JS and without reduced motion */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (min-width: 720px) {
  .yarik { flex-direction: row; align-items: center; }
  .yarik-photo { width: 160px; height: 160px; }
  .cards.four { grid-template-columns: repeat(2, 1fr); }
  .cards.three { grid-template-columns: repeat(3, 1fr); }
  .prices { grid-template-columns: repeat(5, 1fr); }
  .prices .best { grid-column: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .games { grid-template-columns: repeat(2, 1fr); }
  .rec-list { grid-template-columns: repeat(3, 1fr); }
  .top-phone { display: inline; }
  .foot-row { grid-template-columns: 1fr auto; align-items: center; }
  .consent { left: auto; right: 20px; bottom: 20px; max-width: 440px; }
}
@media (min-width: 960px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1.25fr 1fr; }
  .hero-art { max-width: 420px; }
  .top-nav { display: flex; }
  .top-cta { margin-left: 24px; }
  .cards.four { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1.3fr; }
  .yarik-photo { width: 200px; height: 200px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
  .scene { animation: none; }
  .card, .card:hover { transition: none; transform: none; }
}

/* Subpages: breadcrumbs, intro and text column */
.crumbs { font-size: .95rem; margin: 0 0 14px; color: var(--ink-2); }
.sub-hero { padding: 24px 0 36px; background: var(--paper-2, var(--paper)); border-bottom: var(--line); }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; }
.prose ul li { margin-bottom: .35em; }
.more-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; font-weight: 700; }
