/* Общие правила чтения и доступности */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Body, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-underline-offset: .2em;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(var(--width), calc(100% - 6rem));
  margin-inline: auto;
}

.spacer {
  flex: 1;
}

.skip {
  position: fixed;
  top: -12rem;
  left: 1rem;
  z-index: 20;
  padding: .7rem 1rem;
  background: white;
  color: black;
}
.skip:focus { top: 1rem; }

.mast {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
}

.headrow,
.account,
.direct,
.wordmark,
.hero-actions,
.foot-top {
  display: flex;
  align-items: center;
}

.headrow { min-height: 4.5rem; gap: 1.3rem; }
.wordmark { gap: .55rem; text-decoration: none; line-height: 1; }
.direct, .account { gap: 1.35rem; }
.account a, .direct a { text-decoration: none; font-weight: 700; }
.direct a:hover, .header-login:hover, .footer a:hover { text-decoration: underline; }
.header-join, .header-login { display: inline-flex; align-items: center; min-height: 42px; }
.header-join { padding: .45rem .95rem; }
.site-menu { position: relative; }
.site-menu summary {
  display: flex;
  align-items: center;
  min-height: 42px;
  cursor: pointer;
  gap: .6rem;
  font-size: .9rem;
  font-weight: 720;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
.hamb { width: 21px; display: grid; gap: 5px; }
.hamb i { display: block; height: 2px; background: currentColor; }
.site-menu[open] .hamb i:first-child { transform: translateY(3.5px) rotate(45deg); }
.site-menu[open] .hamb i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.site-menu nav {
  position: absolute;
  top: calc(100% + .6rem);
  display: grid;
  min-width: max-content;
  max-width: calc(100vw - 1.5rem);
  padding: .65rem;
  z-index: 11;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 15px 32px rgb(0 0 0 / 15%);
}
.site-menu nav a { padding: .48rem .7rem; text-decoration: none; }
.site-menu nav a:is(:hover, :focus-visible) { text-decoration: underline; }
.intro p { margin: 0; }
.hero-actions { flex-wrap: wrap; gap: 1.3rem; margin-top: 1.55rem; }
.button, .text-action, .second-link, .inline-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-weight: 750; }
.button { text-decoration: none; padding: .8rem 1.3rem; line-height: 1.2; }
.button:hover, .header-join:hover { filter: brightness(1.09); }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; font-size: .86rem; }
.crumb a:hover { text-decoration: underline; }
.crumb a { text-decoration: none; }
.reading { padding-block: 3.2rem 5.5rem; }
.prose { min-width: 0; font-size: 1.07rem; line-height: 1.8; }
.prose p { margin: 0 0 1.15em; }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { margin: 1rem 0 1.45rem; padding-left: 1.55rem; }
.prose li { margin: .25rem 0; }
.prose li p { margin: 0; }
.prose a { color: var(--link); text-decoration-thickness: 1.4px; font-weight: 650; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose h2, .prose h3, .gallery h2, .gallery h3 { text-wrap: balance; }
.prose h2, .prose h3 { line-height: 1.18; scroll-margin-top: 6rem; }
.prose h2 { margin: 0 0 1rem; }
.prose h3 { margin: 1.7rem 0 .65rem; }
.chapter { margin-top: 2.8rem; }
.chapter:first-child { margin-top: 0; }
.table-wrap { max-width: 100%; overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; text-align: left; font-size: .94rem; line-height: 1.55; }
.prose td, .prose th { padding: .8rem 1rem; vertical-align: top; min-width: 7rem; }
.prose tr + tr td { border-top: 1px solid var(--line); }
.prose th { font-weight: 720; }
.prose td p { margin: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details > :not(summary) { margin: 0 0 1rem; }
.faq summary, .contents summary { cursor: pointer; list-style: none; }
.faq summary { padding: .9rem 2rem .9rem 0; position: relative; font-weight: 720; }
.faq summary::after { content: '+'; position: absolute; right: .25rem; }
.faq details[open] summary::after { content: '−'; }
.contents a { display: block; text-decoration: none; }
.contents a:hover { text-decoration: underline; }
.footer { padding: 2.6rem 0; }
.foot-top { gap: 1rem; justify-content: space-between; padding-bottom: 1.5rem; }
.foot-top > span { font-size: .85rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: .65rem 1.5rem; padding-top: 1.1rem; border-top: 1px solid currentColor; }
.footer nav a { text-decoration: none; font-size: .9rem; }
.missing main { max-width: 42rem; padding: 12vh 1.4rem; margin: auto; }
.missing h1 { font-family: Display, sans-serif; font-size: clamp(2.4rem,7vw,5rem); line-height: 1.1; }
@media (max-width: 850px) {
  .shell { width: calc(100% - 2.4rem); }
  .headrow { min-height: 3.8rem; gap: .8rem; }
  .reading { padding-block: 2rem 3.5rem; }
}
@media (max-width: 590px) {
  .shell { width: calc(100% - 2rem); }
  .headrow { gap: .65rem; }
  .account { gap: .5rem; }
  .header-join { padding-inline: .62rem; }
  .header-login, .header-join { font-size: .84rem; }
  .header-login { font-size: 0; }
  .header-login::before { content: 'Вход'; font-size: .86rem; }
  .header-join { font-size: 0; }
  .header-join::before { content: "Регистрация"; font-size: .84rem; }
  .menu-name, .direct { display: none; }
  .site-menu summary { padding-inline: 5px; }
  .prose { font-size: 1rem; line-height: 1.75; }
  .chapter { margin-top: 2.2rem; }
  .prose td, .prose th { padding: .6rem .65rem; min-width: 6.4rem; }
  .foot-top { align-items: flex-start; flex-direction: column; }
  .hero-actions { gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
@media (max-width: 380px) {
  .mast .headrow { width: calc(100% - 1rem); gap: .35rem; }
  .mast .account { gap: .28rem; }
  .mast .wordmark { font-size: 1.28rem; gap: .25rem; }
  .mast .header-join { padding-inline: .5rem; }
  .mast .header-join::before, .mast .header-login::before { font-size: .79rem; }
  .mast .site-menu summary { padding-inline: 3px; }
  .mast .hamb { width: 18px; }
}
@media (max-width: 470px) {
  h1, .prose h2, .prose h3 {
    overflow-wrap: anywhere;
    hyphens: auto;
  }
}

@font-face {
  font-family: Body;
  src: url("type/body.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Display;
  src: url("type/display.ttf") format("truetype");
  font-weight: 200 700;
  font-display: swap;
}
:root {
  --paper: #fffcfa;
  --ink: #271d26;
  --line: #dfd7d4;
  --link: #982744;
  --focus: #da633b;
  --width: 84rem;
  --night: #1b101c;
  --coral: #ff8c87;
}
.mast { background: #211423; color: #fff3f1; border-color: #4a3348; }
.wordmark { font-family: Display, sans-serif; font-size: 1.85rem; font-weight: 620; text-transform: uppercase; letter-spacing: -.05em; }
.dice { position: relative; width: 25px; height: 25px; background: var(--coral); transform: rotate(-9deg); border-radius: 6px; }
.dice i { position: absolute; width: 4px; height: 4px; background: #281321; border-radius: 50%; left: 5px; bottom: 5px; }
.dice i:nth-child(2) { left: 10px; bottom: 10px; }
.dice i:nth-child(3) { left: 15px; bottom: 15px; }
.direct { margin-left: 2rem; color: #f0d7df; }
.header-join, .button { background: var(--coral); color: #211119; border-radius: 5px; }
.site-menu { border-left: 1px solid #735668; padding-left: 1.1rem; }
.site-menu nav { right: 0; border-radius: 5px; }
.feature { overflow: hidden; background: #1b101b; color: #fff7f2; }
.poster-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(1.2rem,4vw,4rem); align-items: stretch; }
.poster-copy { align-self: center; padding-block: clamp(2rem,4.2vw,4.2rem); }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .86rem; font-weight: 750; color: #ffb4ae; }
.pip { width: 9px; height: 9px; background: var(--coral); transform: rotate(45deg); }
.feature h1 { margin: .9rem 0 1.15rem; font: 550 clamp(2.9rem,4.65vw,5.25rem)/1.04 Display,sans-serif; text-transform: uppercase; letter-spacing: -.038em; text-wrap: balance; }
.intro { max-width: 43rem; color: #eedde3; font-size: clamp(1rem,1.3vw,1.12rem); line-height: 1.56; }
.poster-image { position: relative; min-height: 325px; }
.stage-image { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 67% 52%; }
.photo-label { position: absolute; bottom: 1.2rem; right: 1.2rem; color: #fff5ed; border: 1px solid #ffd1d07d; background: #210c16c2; padding: .12rem .7rem; border-radius: 3px; font-family: Display,sans-serif; text-transform: uppercase; letter-spacing: .07em; font-size: .85rem; }
.photo-label span { color: var(--coral); }
.crumb { color: #ffbeb6; }
.numbers { background: #f5dfda; border-bottom: 1px solid #dbc1bc; }
.numbers-row { display: grid; grid-template-columns: repeat(3,1fr) 1.12fr; }
.numbers-row > .stat, .num-action { min-height: 7.5rem; display: flex; align-items: flex-start; justify-content: center; flex-direction: column; padding: .7rem 1.5rem; border-right: 1px solid #c9aaa6; text-decoration: none; }
.numbers-row > .stat:first-child { padding-left: 0; }
.numbers-row strong { font: 540 clamp(2rem,3vw,3rem)/1.05 Display,sans-serif; color: #79243b; }
.numbers-row > .stat span { font-size: .9rem; margin-top: .33rem; }
.numbers-row > .stat:hover span { text-decoration: underline; }
.num-action { align-items: flex-end; border: 0; padding-right: 0; }
.second-link { color: #77253d; text-underline-offset: .3em; }
.quick { border-bottom: 1px solid var(--line); background: #f5dfda; }
.quick-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .6rem; }
.quick-inner strong { font-family: Display,sans-serif; text-transform: uppercase; font-size: 1.3rem; }
.reading { display: grid; grid-template-columns: minmax(12rem,.32fr) minmax(0,1fr); align-items: start; gap: clamp(2rem,5vw,5.5rem); }
.contents { position: sticky; top: 6rem; max-height: calc(100vh - 7rem); overflow: auto; border-top: 3px solid #94364a; }
.contents summary { font: 580 1.25rem/1.3 Display,sans-serif; padding: .9rem 0; text-transform: uppercase; }
.contents nav { border-top: 1px solid var(--line); }
.contents a { font-size: .9rem; padding: .47rem 0; border-bottom: 1px solid var(--line); line-height: 1.35; }
.prose { max-width: 52rem; }
.prose h2, .prose h3 { font-family: Display,sans-serif; font-weight: 510; }
.prose h2 { font-size: clamp(2rem,3vw,3.2rem); text-transform: uppercase; letter-spacing: -.022em; }
.prose h3 { font-size: 1.6rem; }
.prose th { background: #402334; color: white; }
.prose tbody tr:nth-child(even) { background: #faf2ef; }
.reviews h3 { color: #842944; font-size: 1.2rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.footer { background: var(--night); color: #f3dfe4; }
@media (max-width: 850px) {
  .direct { margin-left: 0; gap: .7rem; }
  .site-menu { padding-left: .6rem; }
  .poster-grid { gap: 1rem; }
  .reading { grid-template-columns: minmax(0,1fr); gap: 2rem; }
  .contents { position: static; max-height: 13rem; }
  .contents nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 1rem; }
}
@media (max-width: 650px) {
  .poster-grid { display: flex; flex-direction: column; gap: 0; }
  .poster-copy { align-self: stretch; padding-block: 1.6rem 1.35rem; }
  .feature h1 { font-size: clamp(2.45rem,9.3vw,3.4rem); }
  .poster-image { min-height: 0; height: clamp(142px,43vw,245px); }
  .stage-image { object-position: 60% 52%; }
  .numbers-row { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .numbers-row > .stat { min-height: 5.4rem; padding: .6rem .55rem; }
  .numbers-row > .stat:nth-child(3) { border-right: 0; }
  .numbers-row > .stat span { font-size: .8rem; line-height: 1.25; }
  .num-action { grid-column: 1/-1; min-height: 0; padding: 0; border-top: 1px solid #ccb0ad; align-items: flex-start; }
  .second-link { font-size: .91rem; }
  .inside .poster-image { display: none; }
  .wordmark { font-size: 1.5rem; }
  .dice { width: 21px; height: 21px; }
  .dice i { width: 3px; height: 3px; }
  .site-menu { padding-left: 0; border: 0; }
}
