/* ТУЕСОК — визуальная система «Белое поле».
   Белое поле, чёрные штрихи бересты, одна киноварь — «красная строка»: место, где вы находитесь. */

/* ---------- шрифты (SIL OFL 1.1, лицензии в fonts/) ---------- */

@font-face { font-family: "Sofia XC"; src: url(fonts/sofia-xc-cyr.woff2) format("woff2"); font-weight: 1 1000; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Sofia XC"; src: url(fonts/sofia-xc-lat.woff2) format("woff2"); font-weight: 1 1000; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos"; src: url(fonts/golos-cyr.woff2) format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos"; src: url(fonts/golos-lat.woff2) format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JB Mono"; src: url(fonts/jbmono-cyr-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JB Mono"; src: url(fonts/jbmono-lat-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- токены ---------- */

:root {
  --paper: #ffffff;
  --ink: #0a0a0a;
  --muted: #56564f;
  --hair: #d4d4cf;
  --fog: #f2f2f1;
  --on-dark-muted: #a9a9a3;
  --on-dark-line: rgba(255, 255, 255, .32);
  --kinovar: #d92b1c;

  --f-display: "Sofia XC", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-text: "Golos", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JB Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --gap: clamp(16px, 2vw, 32px);
  --maxw: 1520px;

  --fs-body: clamp(17px, .25vw + 16px, 19px);
  --fs-lead: clamp(19px, .8vw + 15px, 26px);
  --fs-d1: clamp(54px, min(9.2vw, 17vh), 156px);
  --fs-d2: clamp(44px, 6.2vw, 108px);
  --fs-d3: clamp(32px, 3.3vw, 58px);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- основа ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-body)/1.55 var(--f-text);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
p, ul, ol, dl, h1, h2, h3, figure { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--kinovar); color: #fff; }

.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--paper); }

.skip {
  position: absolute; left: 16px; top: -200px; z-index: 20;
  padding: 14px 18px; background: var(--ink); color: var(--paper);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; outline-color: var(--kinovar); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- типографика ---------- */

.d1, .d2, .d3 { font-family: var(--f-display); font-weight: 820; letter-spacing: -.005em; text-wrap: balance; }
.d1 { font-size: var(--fs-d1); line-height: .86; }
.d2 { font-size: var(--fs-d2); line-height: .88; }
.d3 { font-size: var(--fs-d3); line-height: .94; font-weight: 780; }

.lead { font-size: var(--fs-lead); line-height: 1.36; max-width: 34ch; text-wrap: pretty; }
.d1 + .lead, .d2 + .lead { margin-top: clamp(24px, 2.6vw, 40px); }

.eyebrow {
  margin: 0 0 22px;
  font: 400 12px/1.45 var(--f-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.eyebrow--h { margin: 0; }

p + p { margin-top: 1em; }

/* Прорези коры поверх крупных букв */
.cut { position: relative; }
.cut::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: url(bark/cuts-light.svg) 50% 50% / 100% 100% no-repeat; }
.cut--dark::after { background-image: url(bark/cuts-dark.svg); }

/* ---------- кнопки и ссылки ---------- */

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: clamp(28px, 3vw, 44px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 26px;
  border: 2px solid var(--ink); border-radius: 0;
  font: 600 17px/1.15 var(--f-text);
  text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--paper); color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline-offset: 4px; }
.btn--small { min-height: 44px; padding: 0 16px; font-size: 15px; }

.on-dark .btn--line { border-color: var(--paper); color: var(--paper); }
.on-dark .btn--line:hover { background: var(--paper); color: var(--ink); }

.i-arrow { flex: none; width: 26px; height: 12px; transition: transform .25s var(--ease); }
.i-arrow--down { width: 12px; height: 22px; }
.btn:hover .i-arrow { transform: translateX(5px); }
.btn:hover .i-arrow--down { transform: translateY(3px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 44px;
  font-weight: 600; text-decoration: none;
}
.link-arrow span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .28em; }
.link-arrow:hover span { text-decoration-thickness: 2px; }
.link-arrow:hover .i-arrow { transform: translateX(5px); }
.link-arrow:active { opacity: .7; }

.tag {
  display: inline-block; margin-left: 8px; padding: 2px 6px 1px;
  border: 1px solid currentColor;
  font: 400 11px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
  vertical-align: 2px; white-space: nowrap;
}

/* ---------- шапка и навигация ---------- */

.site-header { position: relative; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--ink); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; color: var(--ink); text-decoration: none; }
.brand__mark { width: 24px; height: 24px; flex: none; }
.brand__name { font: 860 31px/1 var(--f-display); letter-spacing: .03em; padding-top: 2px; }
.brand__sub {
  padding-left: 12px; border-left: 1px solid var(--hair);
  font: 400 11px/1.25 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  max-width: 7.5em;
}
.brand:hover .brand__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.site-nav ul { display: flex; gap: clamp(20px, 2.6vw, 44px); list-style: none; padding: 0; }
.site-nav a {
  position: relative; display: inline-flex; align-items: center;
  min-height: 48px;
  color: var(--ink); text-decoration: none;
  font: 500 17px/1 var(--f-text);
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 3px;
  border-radius: 50%; background: currentColor;
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .3s var(--ease);
}
.site-nav a:hover::after, .site-nav a[aria-current]::after { transform: scaleX(1); }
.site-nav a[aria-current] { font-weight: 640; }
.site-nav a[aria-current] .nav-label::before {
  content: ""; display: inline-block; width: 13px; height: 5px; margin-right: 8px;
  border-radius: 50%; background: var(--kinovar); vertical-align: .22em;
}
.site-nav a:active { opacity: .7; }
.nav-num { display: none; }

.menu-toggle {
  display: none; align-items: center; gap: 12px;
  min-height: 44px; padding: 0 14px;
  border: 1.5px solid var(--ink); border-radius: 0;
  background: var(--paper); color: var(--ink);
  font: 500 16px/1 var(--f-text);
  cursor: pointer;
}
.menu-toggle:hover { background: var(--ink); color: var(--paper); }
.menu-toggle:active { transform: translateY(1px); }
.menu-toggle__icon { display: grid; gap: 4px; width: 22px; }
.menu-toggle__icon i { display: block; height: 3px; border-radius: 50%; background: currentColor; transition: transform .25s var(--ease), opacity .2s, width .25s var(--ease); }
.menu-toggle__icon i:nth-child(1) { width: 22px; }
.menu-toggle__icon i:nth-child(2) { width: 13px; }
.menu-toggle__icon i:nth-child(3) { width: 18px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:nth-child(3) { width: 22px; transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .site-header__bar { flex-wrap: wrap; min-height: 62px; gap: 0 12px; }
  .brand__name { font-size: 27px; }
  .js .menu-toggle { display: inline-flex; }
  .site-nav { width: 100%; }
  .js .site-nav { display: none; }
  .js.menu-open .site-nav {
    display: block; min-height: calc(100svh - 63px); padding: 4px 0 48px;
    background: url(bark/trunk-3.svg) 100% 100% / 46px auto no-repeat;
  }
  .js.menu-open .site-nav ul { margin-right: 64px; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-top: 1px solid var(--hair); }
  .site-nav a { width: 100%; min-height: 78px; gap: 14px; font: 800 clamp(40px, 12.5vw, 58px)/1 var(--f-display); }
  .site-nav a[aria-current] { font-weight: 860; }
  .nav-num { display: inline-block; width: 26px; align-self: flex-start; padding-top: 20px; font: 400 12px/1 var(--f-mono); }
  .site-nav a::after { left: 40px; bottom: 14px; height: 4px; }
  .site-nav a[aria-current] .nav-label::before { width: 20px; height: 7px; vertical-align: .32em; margin-right: 10px; }
}
@media (max-width: 400px) {
  .brand__sub { display: none; }
}

/* ---------- раскладка секций ---------- */

.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

.section { padding-top: clamp(72px, 9vw, 168px); }
.section--tight { padding-top: 0; }

.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; margin-bottom: clamp(32px, 4vw, 64px); }
.sec-head .eyebrow { grid-column: 1 / -1; }
.sec-head h2 { grid-column: 1 / span 8; }
.sec-head__aside { grid-column: 9 / -1; max-width: 30ch; padding-bottom: .3em; }
.sec-head--small h2 { grid-column: 1 / -1; }

.split {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  margin-top: clamp(64px, 7vw, 128px); padding-top: clamp(28px, 3vw, 44px);
  background: linear-gradient(var(--ink), var(--ink)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.split > h2 { grid-column: 1 / span 5; }
.split__body { grid-column: 7 / -1; max-width: 64ch; }
.split__claim { margin-bottom: 20px; }
.split__body > .actions:first-child { margin-top: 0; }

.page-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-block: clamp(40px, 6vw, 104px) clamp(48px, 6vw, 104px); }
.page-intro > * { grid-column: 1 / -1; }
.page-intro .d1 { grid-column: 1 / span 11; }
.page-intro .lead { grid-column: 7 / span 5; margin-top: clamp(24px, 3vw, 48px); }

@media (max-width: 900px) {
  .sec-head h2, .sec-head__aside { grid-column: 1 / -1; }
  .sec-head__aside { margin-top: 20px; }
  .split > h2, .split__body { grid-column: 1 / -1; }
  .split > h2 { margin-bottom: 24px; }
  .page-intro .d1, .page-intro .lead { grid-column: 1 / -1; }
}

/* ---------- главная: первый экран ---------- */

.hero {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  min-height: calc(100svh - 77px);
  padding-top: clamp(24px, 3vw, 48px);
}
.hero__text { grid-column: 1 / span 7; align-self: center; padding-block: 16px clamp(32px, 4vw, 64px); }
.hero .d1 { font-size: clamp(54px, min(8.4vw, 14.5vh), 132px); }
.hero .eyebrow { margin-bottom: clamp(14px, 2vh, 22px); }
.hero .lead { max-width: 40ch; }
.hero .d1 + .lead { margin-top: clamp(20px, 3vh, 36px); }
.hero .actions { margin-top: clamp(24px, 3.5vh, 40px); }
.hero__grove { grid-column: 9 / -1; display: flex; flex-direction: column; padding-bottom: clamp(20px, 2.5vw, 32px); }

.grove { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 460px; container-type: inline-size; }
.grove__trunks { position: relative; flex: 1 1 auto; min-height: 0; }
.grove__trunks img {
  position: absolute; bottom: 0; height: 100%; width: 10.6%;
  object-fit: cover; object-position: 50% 100%;
}
.grove__trunks img:nth-child(1) { left: 3.03%; }
.grove__trunks img:nth-child(2) { left: 19.7%; }
.grove__trunks img:nth-child(3) { left: 36.37%; }
.grove__trunks img:nth-child(4) { left: 53.03%; }
.grove__trunks img:nth-child(5) { left: 69.7%; }
.grove__trunks img:nth-child(6) { left: 86.37%; }
.grove__word {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  font: 880 31cqw/.74 var(--f-display);
  text-align: center;
  padding-top: .04em;
}
.grove__word span { display: block; }

.art-note {
  margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--hair);
  font: 400 11px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}

@media (max-width: 1023px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__text, .hero__grove { grid-column: 1 / -1; }
  .hero__text { padding-bottom: clamp(40px, 8vw, 72px); }
  .grove { min-height: 0; height: clamp(340px, 92vw, 640px); }
}

/* ---------- указатель игр ---------- */

.index { list-style: none; padding: 0; border-bottom: 1px solid var(--ink); }
.index-row {
  position: relative;
  display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 15rem); column-gap: clamp(16px, 2.6vw, 44px);
  padding-block: clamp(24px, 2.6vw, 40px);
  border-top: 1px solid var(--ink);
  transition: background-color .25s var(--ease);
}
.index-row:hover { background: var(--fog); }
.index-row__bark { position: relative; overflow: hidden; min-height: 150px; }
.index-row__bark img {
  position: absolute; left: 0; top: 0; width: 100%; height: 135%; max-width: none;
  object-fit: cover; object-position: 50% 0;
  transition: transform .9s var(--ease);
}
.index-row:hover .index-row__bark img { transform: translateY(-22%); }
.index-row__format { margin-bottom: 12px; font: 400 12px/1.45 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; }
.index-row__num { display: inline-block; min-width: 3.2em; }
.index-row__title { margin-bottom: 14px; font: 820 clamp(40px, 5.2vw, 92px)/.9 var(--f-display); text-wrap: balance; }
.index-row__title a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat;
  transition: background-size .45s var(--ease);
}
.index-row:hover .index-row__title a { background-size: 100% 3px; }
.index-row__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.index-row__summary { max-width: 54ch; }
.index-row__aside { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding-top: 2px; }
.index-row__verb { display: flex; align-items: baseline; gap: 10px; font-weight: 500; }
.index-row__verb::before { content: ""; flex: none; width: 13px; height: 5px; border-radius: 50%; background: var(--ink); transform: translateY(-3px); }
.index-row__go { display: flex; align-items: center; gap: 12px; font-weight: 600; white-space: nowrap; }
.index-row:hover .index-row__go .i-arrow { transform: translateX(8px); }
@supports selector(:has(*)) {
  .index-row__title a:focus-visible { outline: none; }
  .index-row:has(.index-row__title a:focus-visible) { outline: 3px solid var(--ink); outline-offset: 4px; }
}

@media (max-width: 760px) {
  .index-row { grid-template-columns: 44px minmax(0, 1fr); row-gap: 18px; }
  .index-row__bark { grid-row: 1 / span 2; min-height: 0; }
  .index-row__main, .index-row__aside { grid-column: 2; }
  .index-row__aside { gap: 12px; }
}

/* ---------- тёмная полоса ---------- */

.band { position: relative; margin-top: clamp(88px, 10vw, 184px); background: var(--ink); color: var(--paper); overflow: hidden; }
.band__trunk {
  position: absolute; top: 0; bottom: 0; right: clamp(16px, 7vw, 132px);
  width: clamp(36px, 5.2vw, 88px);
  background: var(--paper) url(bark/night-trunk.svg) 50% 100% / cover no-repeat;
}
.band__grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-block: clamp(72px, 9vw, 152px); }
.band__grid > h2 { grid-column: 1 / span 6; }
.band__body { grid-column: 7 / span 4; }
.venues { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--on-dark-line); }
.venues li { padding: 12px 0; border-bottom: 1px solid var(--on-dark-line); font: 400 12px/1.45 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; }

@media (max-width: 1023px) {
  .band__grid > h2 { grid-column: 1 / span 10; margin-bottom: 32px; }
  .band__body { grid-column: 1 / span 9; }
}
@media (max-width: 760px) {
  .band__grid { grid-template-columns: minmax(0, 1fr); padding-right: calc(var(--gutter) + 52px); }
  .band__grid > h2, .band__body { grid-column: 1; }
  .band__trunk { right: 0; width: 40px; }
}

/* ---------- высказывание: три действия ---------- */

.triad { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); }
.triad li { padding-top: 20px; border-top: 1px solid var(--ink); }
.triad__verb { margin-bottom: 18px; font: 800 var(--fs-d3)/.94 var(--f-display); text-wrap: balance; }
.triad__game {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 400 12px/1.45 var(--f-mono); letter-spacing: .07em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: .3em;
}
.triad__game:hover { text-decoration-thickness: 2px; }
.statement__foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; margin-top: clamp(40px, 5vw, 72px); }
.statement__text { grid-column: 1 / span 6; font-size: var(--fs-lead); line-height: 1.36; max-width: 36ch; }
.statement__foot .link-arrow { grid-column: 9 / -1; }

@media (max-width: 760px) {
  .triad { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .statement__text, .statement__foot .link-arrow { grid-column: 1 / -1; }
  .statement__foot .link-arrow { margin-top: 20px; }
}

/* ---------- подвал ---------- */

.site-footer { margin-top: clamp(96px, 12vw, 208px); }
.site-footer__edge { height: clamp(110px, 13vw, 220px); background: url(bark/edge.svg) 50% 100% / auto 100% repeat-x; }
.site-footer__body { margin-top: -1px; padding-bottom: 40px; background: var(--ink); color: var(--paper); }
.site-footer__wrap { container-type: inline-size; padding-top: 8px; }
.site-footer__word {
  display: flex; justify-content: space-between;
  font: 880 27cqw/.76 var(--f-display);
  color: var(--paper);
}
.site-footer__grid {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gap);
  margin-top: clamp(32px, 4vw, 56px); padding-top: 28px; border-top: 1px solid var(--on-dark-line);
}
.site-footer__lead { margin-bottom: 8px; font: 600 20px/1.3 var(--f-text); }
.site-footer__about p:not(.site-footer__lead) { color: var(--on-dark-muted); max-width: 36ch; }
.footer-h { margin-bottom: 10px; font: 400 12px/1.45 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--on-dark-muted); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

@media (max-width: 760px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 32px; }
  .site-footer__about { grid-column: 1 / -1; }
}

/* ---------- путь по сайту ---------- */

.crumbs ol { display: flex; flex-wrap: wrap; list-style: none; padding: 18px 0 0; font: 400 12px/1.45 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; }
.crumbs li { display: flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin: 0 12px; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .3em; }
.crumbs a:hover { text-decoration-thickness: 2px; }

/* ---------- игры: триптих ---------- */

.triptych { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(8, auto); column-gap: var(--gap); }
.tri { display: grid; grid-row: span 8; grid-template-rows: subgrid; }
.tri__card { position: relative; display: grid; grid-row: 1 / -1; grid-template-rows: subgrid; align-content: start; }
.tri__bark { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-top: 1px solid var(--ink); }
.tri__bark img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.tri__bark .tri__strip { display: none; }
.tri__card:hover .tri__bark img { transform: translateY(-3%) scale(1.06); }
.tri__num { padding-top: 18px; font: 400 12px/1.45 var(--f-mono); }
.tri__title { padding: 10px 0 18px; font: 820 clamp(40px, 4.4vw, 80px)/.9 var(--f-display); text-wrap: balance; }
.tri__title a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat;
  transition: background-size .45s var(--ease);
}
.tri__card:hover .tri__title a { background-size: 100% 3px; }
.tri__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tri__facts { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
.tri__facts div { padding: 10px 0 12px; border-top: 1px solid var(--hair); }
.tri__facts dt { font: 400 12px/1.45 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.tri__facts dd { margin: 4px 0 0; font-weight: 500; }
.tri__summary { padding: 16px 0 0; border-top: 1px solid var(--hair); }
.tri__go { display: flex; align-items: center; gap: 12px; padding-top: 20px; font-weight: 600; }
.tri__card:hover .tri__go .i-arrow { transform: translateX(8px); }
@supports selector(:has(*)) {
  .tri__title a:focus-visible { outline: none; }
  .tri__card:has(.tri__title a:focus-visible) { outline: 3px solid var(--ink); outline-offset: 6px; }
}

@media (max-width: 900px) {
  .triptych { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 48px; }
  .tri, .tri__card, .tri__facts { grid-row: auto; grid-template-rows: none; }
  .tri__card { grid-template-columns: minmax(96px, 30%) minmax(0, 1fr); column-gap: var(--gap); border-top: 1px solid var(--ink); }
  .tri__bark { grid-column: 1; grid-row: 1 / span 6; aspect-ratio: auto; border-top: 0; min-height: 100%; }
  .tri__bark img { position: absolute; inset: 0; }
  .tri__bark .tri__sheet { display: none; }
  .tri__bark .tri__strip { display: block; object-position: 50% 0; }
  .tri__card > :not(.tri__bark) { grid-column: 2; }
}
@media (max-width: 480px) {
  .tri__card { grid-template-columns: 64px minmax(0, 1fr); }
}

/* ---------- страница игры ---------- */

.game-hero {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center;
  padding-block: clamp(24px, 4vw, 64px) clamp(40px, 5vw, 80px);
}
.game-hero__text { grid-column: 1 / span 7; padding-bottom: 8px; }
.game-hero__media { grid-column: 9 / -1; }
.sheet__img { width: 100%; height: auto; aspect-ratio: 3 / 4; }

.avail { display: flex; align-items: center; gap: 10px; margin-top: 16px; font: 400 12px/1.45 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.avail__mark, .gaps__title::before { flex: none; width: 14px; height: 6px; border: 1.5px dashed var(--ink); border-radius: 50%; }

.gaps { margin-bottom: 28px; padding: 18px 20px 20px; border: 1px solid var(--ink); }
.gaps__title { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font: 400 12px/1.45 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; }
.gaps__title::before { content: ""; }
.gaps__list { padding-left: 1.1em; }
.gaps__list li + li { margin-top: 6px; }
.gaps__need { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hair); font-weight: 600; }

.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap);
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.facts div { padding: 16px 0 18px; }
.facts dt { font: 400 12px/1.45 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 6px 0 0; font-weight: 500; }

.prep { list-style: none; counter-reset: prep; padding: 0; margin-bottom: 20px; border-bottom: 1px solid var(--hair); }
.prep li { counter-increment: prep; display: grid; grid-template-columns: 48px minmax(0, 1fr); padding: 14px 0; border-top: 1px solid var(--hair); }
.prep li::before { content: counter(prep, decimal-leading-zero); padding-top: .4em; font: 400 12px/1.45 var(--f-mono); }

.roles__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); margin-bottom: clamp(40px, 5vw, 72px); }
.role { padding: 22px 0 0; border-top: 1px solid var(--ink); }
.role--host { padding: 26px clamp(20px, 2.4vw, 36px) 30px; background: var(--ink); color: var(--paper); border-top-color: var(--ink); }
.role__title { margin-bottom: 16px; font: 800 var(--fs-d3)/.94 var(--f-display); }
.role p { max-width: 44ch; }
.role__note { margin-top: 20px !important; padding-top: 12px; border-top: 1px solid var(--hair); font: 400 12px/1.5 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; }
.role--host .role__note { border-top-color: var(--on-dark-line); }

@media (max-width: 1023px) {
  .game-hero__text { grid-column: 1 / -1; }
  .game-hero__media { grid-column: 1 / span 8; margin-top: 48px; max-width: 460px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(n + 3) { border-top: 1px solid var(--hair); }
}
@media (max-width: 760px) {
  .game-hero__media { grid-column: 1 / -1; max-width: 300px; }
  .roles__grid { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
}

/* ---------- материалы ---------- */

.files { list-style: none; padding: 0; margin-bottom: 20px; border-top: 1px solid var(--ink); }
.file {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--gap); row-gap: 6px;
  padding: 16px 0; border-bottom: 1px solid var(--hair);
}
.file__main { grid-row: span 2; }
.file__title { font: 600 18px/1.3 var(--f-text); }
.file__purpose { margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.file__ver { display: block; margin-top: 6px; font: 400 12px/1.4 var(--f-mono); }
.file__aud { display: flex; align-items: center; justify-content: flex-end; gap: 8px; font: 400 12px/1.45 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; text-align: right; }
.file__aud-mark { flex: none; width: 14px; height: 6px; border: 1.5px solid var(--ink); border-radius: 50%; }
.file--host .file__aud-mark, .file--host-organizer .file__aud-mark { background: var(--ink); }
.file .btn { justify-self: end; }
.file__size { margin-left: 4px; font: 400 12px/1 var(--f-mono); }

@media (max-width: 480px) {
  .file { grid-template-columns: minmax(0, 1fr); }
  .file__main { grid-row: auto; }
  .file__aud { justify-content: flex-start; text-align: left; }
  .file .btn { justify-self: start; }
}

.notice {
  display: flex; align-items: baseline; gap: 14px;
  max-width: 66ch; margin-bottom: clamp(32px, 4vw, 48px); padding: 16px 20px;
  border: 1px solid var(--ink);
  font-size: 16px; line-height: 1.5;
}
.notice__mark { flex: none; width: 14px; height: 6px; border-radius: 50%; background: var(--ink); transform: translateY(-3px); }

.empty { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-top: clamp(28px, 3vw, 44px); background: linear-gradient(var(--ink), var(--ink)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.empty__text { grid-column: 1 / span 8; padding-bottom: 16px; }
.empty__text > p:not(.eyebrow) { max-width: 52ch; margin-top: 20px; font-size: var(--fs-lead); line-height: 1.36; }
.empty__text > .empty__game { font-weight: 600; }
.empty__trunk { grid-column: 11 / span 2; min-height: 340px; position: relative; }
.empty__trunk img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
@media (max-width: 760px) {
  .empty__text { grid-column: 1 / -1; }
  .empty__trunk { display: none; }
}

.filter { margin-bottom: clamp(32px, 4vw, 48px); }
.filter fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.filter legend { padding: 0; margin-bottom: 14px; }
.filter__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip__face {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 18px;
  border: 1.5px solid var(--ink);
  background: var(--paper); color: var(--ink);
  font: 500 16px/1.2 var(--f-text);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.chip:hover .chip__face { background: var(--fog); }
.chip__mark { flex: none; width: 13px; height: 5px; border: 1.5px solid currentColor; border-radius: 50%; }
.chip input:checked + .chip__face { background: var(--ink); color: var(--paper); }
.chip input:checked + .chip__face .chip__mark { background: var(--kinovar); border-color: var(--kinovar); }
.chip input:focus-visible + .chip__face { outline: 3px solid var(--ink); outline-offset: 3px; }
.chip input:active + .chip__face { transform: translateY(1px); }
.filter__status { margin-top: 16px; font: 400 12px/1.45 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); min-height: 1.45em; }

.files-group {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  padding-block: 28px 20px; border-top: 1px solid var(--ink);
}
.files-group:last-child { border-bottom: 1px solid var(--ink); }
.files-group__head { grid-column: 1 / span 4; padding-bottom: 20px; }
.files-group__num { font: 400 12px/1.45 var(--f-mono); }
.files-group__title { margin: 8px 0 10px; font: 820 var(--fs-d3)/.92 var(--f-display); }
.files-group__title a { text-decoration: none; }
.files-group__title a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .1em; }
.files-group__format { font: 400 12px/1.45 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.files-group .files { grid-column: 6 / -1; margin-bottom: 0; border-top: 0; }
.files-group .file:first-child { padding-top: 4px; }
.files-group .file:last-child { border-bottom: 0; }

@media (max-width: 900px) {
  .files-group__head, .files-group .files { grid-column: 1 / -1; }
}

/* ---------- как играть ---------- */

.steps { list-style: none; padding: 0; border-bottom: 1px solid var(--ink); }
.step {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start;
  padding-block: clamp(24px, 3vw, 44px); border-top: 1px solid var(--ink);
}
.step__num { grid-column: 1 / span 3; font: 880 clamp(88px, 11vw, 184px)/.78 var(--f-display); letter-spacing: -.01em; }
.step__title { grid-column: 4 / span 4; padding-top: .1em; font: 800 var(--fs-d3)/.94 var(--f-display); text-wrap: balance; }
.step__body { grid-column: 8 / -1; max-width: 52ch; }

@media (max-width: 900px) {
  .step__num { grid-column: 1 / span 4; }
  .step__title { grid-column: 5 / -1; }
  .step__body { grid-column: 5 / -1; margin-top: 16px; }
}
@media (max-width: 560px) {
  .step__num { grid-column: 1 / -1; margin-bottom: 14px; font-size: 96px; }
  .step__title, .step__body { grid-column: 1 / -1; }
}

/* ---------- вопросы ---------- */

.faq { border-top: 1px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--ink); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 68px; padding: 18px 0;
  list-style: none; cursor: pointer;
  font: 600 clamp(18px, .5vw + 15px, 21px)/1.3 var(--f-text);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover .faq__q { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; }
.faq__icon { position: relative; flex: 0 0 24px; height: 24px; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px;
  border-radius: 50%; background: currentColor;
  transition: transform .3s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg) scaleX(.4); opacity: 0; }
.faq__a { padding-bottom: 24px; max-width: 62ch; }

/* ---------- о проекте ---------- */

.for-list { list-style: none; counter-reset: f; padding: 0; margin-bottom: 20px; border-bottom: 1px solid var(--hair); }
.for-list li { counter-increment: f; display: grid; grid-template-columns: 48px minmax(0, 1fr); padding: 16px 0; border-top: 1px solid var(--hair); font-size: clamp(18px, .5vw + 15px, 22px); line-height: 1.4; }
.for-list li::before { content: counter(f, decimal-leading-zero); padding-top: .55em; font: 400 12px/1.45 var(--f-mono); }

/* ---------- 404 ---------- */

.lost {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  min-height: calc(100svh - 77px); padding-top: clamp(32px, 4vw, 64px);
}
.lost__text { grid-column: 1 / span 7; align-self: center; padding-bottom: 48px; }
.lost__code { display: inline-block; margin-bottom: 28px; font: 880 clamp(132px, 24vw, 380px)/.76 var(--f-display); letter-spacing: -.01em; }
.lost__trunk { grid-column: 10 / span 2; display: flex; flex-direction: column; padding-bottom: 32px; }
.lost__trunk img { flex: 1 1 auto; width: 100%; min-height: 320px; object-fit: cover; object-position: 50% 100%; }

@media (max-width: 900px) {
  .lost { min-height: 0; }
  .lost__text { grid-column: 1 / -1; }
  .lost__trunk { grid-column: 1 / span 6; flex-direction: row; gap: var(--gap); align-items: flex-end; padding-bottom: 0; }
  .lost__trunk img { flex: 0 0 72px; height: 280px; min-height: 0; }
}

/* ---------- мелкие экраны ---------- */

@media (max-width: 480px) {
  .actions .btn { width: 100%; }
  .sec-head { margin-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
