:root {
  color-scheme: dark;
  --night: #181b15;
  --panel: #24281e;
  --paper: #f5f0e2;
  --ink: #1c2017;
  --muted: #c9cbbb;
  --acid: #facc4d;
  --line: #444939;
  --width: 1280px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body { margin: 0; background: var(--night); color: var(--paper); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-underline-offset: .22em; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #e3a927; outline-offset: 5px; }
img { display: block; max-width: 100%; }
button { font: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.02; letter-spacing: -.055em; text-wrap: balance; }
h1 { font-size: clamp(54px, 6.8vw, 108px); font-weight: 900; }
h1 em { font-style: normal; color: var(--acid); }
h2 { font-size: clamp(38px, 5vw, 77px); font-weight: 850; }
h3 { font-size: clamp(24px, 2.8vw, 38px); font-weight: 800; }
p { text-wrap: pretty; }
.wrap { width: min(var(--width), calc(100% - 88px)); margin-inline: auto; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 20; padding: 10px 16px; background: var(--acid); color: var(--ink); transform: translateY(-180%); }
.skip:focus { transform: none; }
.header { position: sticky; top: 0; z-index: 10; background: #181b15f5; border-bottom: 1px solid #ffffff19; backdrop-filter: blur(16px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; gap: 11px; align-items: center; color: var(--paper); text-decoration: none; font-size: 15px; font-weight: 900; line-height: .96; letter-spacing: -.035em; white-space: nowrap; }
.brand b { color: var(--acid); }
.brand-mark { display: grid; place-items: center; width: 41px; height: 41px; background: var(--acid); color: var(--ink); border-radius: 12px; transform: rotate(-8deg); font-size: 30px; letter-spacing: -.10em; padding-inline-end: .1em; }
.header nav { display: flex; gap: clamp(16px, 2.4vw, 38px); align-items: center; }
.header nav a, .header-contact { font-size: .92rem; font-weight: 680; text-decoration: none; white-space: nowrap; }
.header nav a { color: var(--muted); }
.header nav a:is(:hover, [aria-current]) { color: var(--acid); }
.header-contact { background: #2e3226; padding: 10px 16px; border: 1px solid var(--line); border-radius: 100px; }
.header-contact:hover { border-color: var(--acid); }
.header-contact span { margin-left: .35em; color: var(--acid); }
.menu-toggle { display: none; }
.hero { position: relative; overflow: clip; background: radial-gradient(ellipse at 75% 68%, #373c25, transparent 63%), var(--night); padding-block: clamp(55px, 7vw, 120px); }
.hero::before { content: ""; pointer-events: none; position: absolute; inset: 0; opacity: .20; background-image: linear-gradient(#f5f0e21c 1px, transparent 1px), linear-gradient(90deg, #f5f0e21c 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse at 75% 68%, #000, transparent 80%); }
.hero-grid { position: relative; display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(26px, 4vw, 70px); }
.hero-copy { padding-block: 14px; }
.eyebrow { font-size: .8rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 22px; color: var(--muted); }
.eyebrow span { display: inline-block; width: 9px; height: 9px; margin-right: 7px; background: var(--acid); border-radius: 50%; box-shadow: 0 0 18px #facc4d90; }
.hero-lead { color: var(--muted); font-size: clamp(17px, 1.65vw, 22px); max-width: 46ch; margin-top: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .actions { margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 13px 17px; min-height: 51px; border: 1px solid transparent; border-radius: 10px; font-weight: 780; font-size: .94rem; line-height: 1.2; text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.button span { font-size: 1.13em; }
.button--primary { color: #1b1e14; background: var(--acid); }
.button--primary:hover { background: #ffe294; transform: translateY(-2px); }
.button--line { border-color: #f5f0e260; background: #1b1e1480; color: var(--paper); }
.button--line:hover { border-color: var(--acid); color: var(--acid); }
.hero-media { position: relative; z-index: 0; aspect-ratio: 1.33; min-width: 0; transform: rotate(2.4deg); margin: 4px 12px; }
.hero-media::before { content: ""; position: absolute; z-index: -1; inset: 9px -10px -9px 10px; border: 1px solid #facc4d9c; border-radius: 22px; }
.hero-media::after { content: ""; pointer-events: none; position: absolute; inset: 0; background: linear-gradient(0deg,#181b15d9 0%, transparent 36%), linear-gradient(130deg,#181b1533, transparent 48%); border-radius: 22px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 22px; }
.photo-caption { position: absolute; z-index: 1; bottom: 17px; left: 20px; right: 20px; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .91rem; font-weight: 800; }
.photo-caption b { color: var(--ink); background: var(--acid); border-radius: 5px; padding: 4px 8px; font-size: .72rem; white-space: nowrap; }
.hero--welcome .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .94fr); }
.hero--welcome h1 { font-size: clamp(44px, 6.3vw, 96px); }
.facts { color: #252617; background: var(--acid); }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 22px; }
.facts-grid div { display: flex; flex-direction: column; padding-inline: clamp(10px, 3vw, 44px); border-right: 1px solid #25261740; }
.facts-grid div:first-child { padding-left: 0; }
.facts-grid div:last-child { padding-right: 0; border-right: 0; }
.facts-grid b { font-size: clamp(21px, 3.2vw, 43px); letter-spacing: -.06em; line-height: 1.1; }
.facts-grid span { margin-top: 3px; font-size: .87rem; font-weight: 650; }
.section { padding-block: clamp(60px, 7.7vw, 116px); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(23px, 3.5vw, 47px); }
.section-head--split { grid-template-columns: 1.6fr 1fr; align-items: end; }
.section-head p, .how p, .welcome-video p { font-size: clamp(17px, 1.55vw, 21px); color: var(--muted); max-width: 41ch; }
.section--cream { color-scheme: light; background: var(--paper); color: var(--ink); }
.section--cream .section-head p { color: #515444; }
.format-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.format { display: flex; align-items: end; isolation: isolate; position: relative; overflow: hidden; border: 1px solid #f5f0e233; border-radius: 21px; min-height: 330px; padding: clamp(22px, 3vw, 38px); background: var(--panel); }
.format::before { content: ""; position: absolute; inset: 0; z-index: -1; transition: transform .42s ease; background: linear-gradient(0deg, #171b14 1%, #171b14ef 29%, #171b1480 64%, #171b1430), var(--format-image) center / cover no-repeat; }
.format:hover::before { transform: scale(1.055); }
.format--team { --format-image: url("igra-s-derevyannym-rekvizitom.jpg"); }
.format--welcome { --format-image: url("derevyannyy-labirint.jpg"); }
.format p { max-width: 42ch; margin: 11px 0 21px; color: var(--muted); }
.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.game { min-width: 0; background: #fffaf0; border-radius: 14px; overflow: hidden; border: 1px solid #c8c0af; }
.game > a { display: block; position: relative; overflow: hidden; aspect-ratio: 1; background: #263d31; }
.game > a:focus-visible, .video-poster:focus-visible { outline-offset: -5px; }
.game img { width: 100%; height: 100%; transition: transform .35s ease; }
.game > a:hover img { transform: scale(1.045); }
.game-expand { position: absolute; right: 9px; bottom: 9px; display: grid; place-items: center; height: 39px; width: 39px; font-weight: 900; border-radius: 8px; background: var(--acid); color: var(--ink); }
.game-copy { padding: 15px; }
.game-copy h3 { font-size: clamp(19px, 2vw, 27px); }
.game-copy p { margin-top: 8px; color: #545643; font-size: .92rem; }
.video-grid, .welcome-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.video-card { overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.video-poster { display: grid; place-items: center; position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1.62; background: #4a523a; }
.video-poster::after { content: ""; position: absolute; inset: 0; background: #171b1436; z-index: -1; }
.video-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .35s ease; }
.video-poster:hover img { transform: scale(1.065); }
.play { display: grid; place-items: center; width: 59px; height: 59px; padding-inline-start: 3px; border-radius: 50%; color: var(--ink); background: var(--acid); box-shadow: 0 0 0 7px #181b1560; transition: box-shadow .22s; }
.video-poster:hover .play { box-shadow: 0 0 0 12px #facc4d52; }
.video-copy { padding: 18px; }
.video-copy h3 { font-size: clamp(21px, 2.35vw, 31px); }
.video-copy p { margin-top: 8px; color: var(--muted); font-size: .95rem; }
.how { background: #212519; border-block: 1px solid var(--line); }
.how-grid, .faq-grid, .welcome-video { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(28px, 6vw, 90px); }
.how h2 + p, .welcome-video h2 + p { margin-top: 19px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { display: flex; align-items: start; gap: 15px; padding-block: 19px; counter-increment: step; border-bottom: 1px solid var(--line); }
.steps li:first-child { padding-top: 0; }
.steps li::before { content: counter(step); display: grid; place-items: center; min-width: 35px; height: 35px; border-radius: 7px; background: var(--acid); color: var(--ink); font-weight: 850; }
.steps h3 { font-size: 26px; }
.steps p { margin-top: 7px; font-size: 1rem; }
.faq { border-top: 1px solid var(--line); }
.faq h2 { font-size: clamp(35px, 4.1vw, 61px); }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-block: 15px; font-weight: 750; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--acid); font-size: 23px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); padding: 0 25px 16px 0; }
.welcome-card { border: 1px solid #c8c0af; border-radius: 14px; padding: clamp(18px, 3vw, 35px); background: #fffaf0; }
.welcome-card p { color: #545643; margin-top: 11px; }
.welcome-video { align-items: center; }
.welcome-video h2 { font-size: clamp(36px, 4.6vw, 65px); }
.checks { margin: 18px 0; padding: 0; list-style: none; }
.checks li { padding-block: 3px; }
.checks li::before { content: "✓"; color: var(--acid); margin-right: .65em; }
.welcome-video .price { color: var(--acid); font-size: clamp(31px, 4vw, 48px); font-weight: 850; letter-spacing: -.05em; }
.price span { color: var(--muted); font-size: 1rem; letter-spacing: 0; font-weight: 600; white-space: nowrap; }
.contact { padding-top: 8px; }
.contact-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 26px; padding: clamp(23px, 5vw, 64px); border-radius: 20px; color: var(--ink); background: var(--acid); }
.contact-panel h2 { font-size: clamp(38px, 4.7vw, 70px); }
.contact-panel p { margin-top: 13px; max-width: 48ch; font-size: 1.08rem; }
.contact-panel .button--primary { background: var(--ink); color: var(--paper); }
.contact-panel .button--primary:hover { background: #363b2c; }
.contact-panel .button--line { border-color: #1c201780; background: transparent; color: var(--ink); }
.contact-panel .button--line:hover { background: #1c201712; }
.footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 30px; }
.footer strong { color: var(--paper); }
.footer-links { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--acid); }
.viewer { position: fixed; color-scheme: dark; background: #1c2118; color: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 0; max-width: min(calc(100vw - 24px), 900px); max-height: calc(100dvh - 26px); overflow: auto; }
.viewer::backdrop { background: #0b100de8; backdrop-filter: blur(5px); }
.viewer-close { position: sticky; z-index: 2; float: right; top: 9px; margin: 9px 9px -53px 0; display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; border: 1px solid var(--line); border-radius: 50%; color: var(--paper); background: #181b15ee; font-size: 30px; line-height: 1; }
.viewer img { width: auto; max-height: calc(100dvh - 30px); object-fit: contain; }
.viewer-video { width: min(390px, calc(100vw - 28px)); padding: 12px; }
.viewer iframe { display: block; width: 100%; height: min(64dvh, 590px); border: 0; background: #0b100d; border-radius: 9px; }
.viewer-video p { padding: 9px 3px 2px; font-size: .88rem; }
.reveal { transition: opacity .55s ease, transform .55s ease; }
.reveal.is-waiting { opacity: 0; transform: translateY(18px); }
.reveal:focus-within { opacity: 1; transform: none; }
@media (max-width: 1090px) {
  .contact-panel { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 870px) {
  .wrap { width: min(var(--width), calc(100% - 42px)); }
  .hero-grid, .hero--welcome .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 19px; }
  .hero h1 { font-size: clamp(43px, 7.3vw, 68px); }
  .hero--welcome h1 { font-size: clamp(36px, 6.6vw, 66px); }
  .header-inner { min-height: 64px; }
  .header-contact { display: none; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 68px; }
  .wrap { width: calc(100% - 32px); }
  .hero { padding-block: 38px 45px; }
  .hero-grid, .hero--welcome .hero-grid { grid-template-columns: 1fr; gap: 21px; }
  .hero-copy { padding-block: 0; }
  .hero h1 { font-size: clamp(45px, 11vw, 70px); }
  .hero--welcome h1 { font-size: clamp(38px, 9.8vw, 64px); }
  .hero-media { aspect-ratio: 1.48; margin: 9px 7px; transform: rotate(1.7deg); }
  .hero-lead { margin-top: 17px; }
  .hero .actions { margin-top: 20px; }
  .eyebrow { margin-bottom: 14px; }
  .header-inner { position: relative; flex-wrap: wrap; gap: 0 10px; }
  .header nav { width: 100%; padding: 2px 0 12px; flex-wrap: wrap; gap: 8px 18px; }
  .header nav a { display: block; padding-block: 3px; }
  .js .menu-toggle { display: block; background: #2e3226; border: 1px solid var(--line); border-radius: 8px; color: var(--paper); padding: 7px 10px; cursor: pointer; }
  .menu-toggle span { margin-left: .25em; }
  .js .header nav:not(.open) { display: none; }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 14px; gap: 10px 0; }
  .facts-grid div { padding: 5px 12px; }
  .facts-grid div:nth-child(odd) { padding-left: 0; }
  .facts-grid div:nth-child(even) { border-right: 0; padding-right: 0; }
  .facts-grid span { font-size: .79rem; }
  .section-head--split, .format-grid, .video-grid, .welcome-grid, .how-grid, .faq-grid, .welcome-video { grid-template-columns: minmax(0, 1fr); }
  .format { min-height: 274px; }
  .game-grid { gap: 10px; }
  .game-copy { padding: 10px; }
  .game-copy p { font-size: .84rem; line-height: 1.35; }
  .game-copy h3 { font-size: clamp(16px, 4.7vw, 24px); }
  .photo-caption { left: 12px; right: 12px; bottom: 13px; font-size: .77rem; }
  .photo-caption b { font-size: .65rem; }
  .footer-inner { flex-direction: column; }
  .welcome-video .video-card { grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .reveal.is-waiting { opacity: 1; transform: none; }
}
