@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Sofia Poster";
  src: url("assets/fonts/sofia-extra-condensed-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Sofia Poster";
  src: url("assets/fonts/sofia-extra-condensed-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}

:root {
  --paper: #e9e0d5;
  --paper-light: #f5eee5;
  --paper-shadow: #d9ccb9;
  --ink: #121517;
  --ink-muted: #605f5f;
  --cobalt: #1a26db;
  --cobalt-deep: #1022a1;
  --coral: #e54f35;
  --coral-light: #eb6147;
  --lime: #ccde20;
  --line: rgba(18, 21, 23, 0.74);
  --edge: clamp(1rem, 3vw, 2.75rem);
  --max: 1480px;
  --display: "Sofia Poster", "Arial Narrow", sans-serif;
  --body: "Manrope", Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-paper: 8px 13px 28px rgba(27, 23, 17, 0.16), 2px 4px 8px rgba(27, 23, 17, 0.11);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  scrollbar-color: var(--coral) var(--ink);
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("assets/textures/paper-ground.webp");
  background-size: 820px 820px;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--paper-light);
  background: var(--cobalt);
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--ink);
}

::-webkit-scrollbar-thumb {
  border: 3px solid var(--ink);
  background: var(--coral);
}

button,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

a {
  color: inherit;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

button,
[href],
[role="tab"] {
  cursor: pointer;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--paper-light);
  background: var(--ink);
  transform: translateY(-150%);
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 20px var(--edge) 16px;
  border-bottom: 2px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  width: max-content;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.85rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand span {
  color: var(--coral);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1rem, 2.8vw, 3.1rem);
}

.main-nav a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
}

.main-nav a:not(.nav-action)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--coral);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease-out);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-action {
  min-height: 44px;
  padding: 10px 17px;
  border: 2px solid var(--ink);
  background: var(--lime);
  box-shadow: 3px 5px 12px rgba(18, 21, 23, 0.16);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms var(--ease-out);
}

.nav-action:hover {
  background: var(--paper-light);
  box-shadow: 5px 8px 18px rgba(18, 21, 23, 0.2);
  transform: translateY(-2px) rotate(-0.4deg);
}

.menu-button {
  display: none;
  justify-self: end;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  background: transparent;
  font-weight: 800;
}

.menu-button svg {
  width: 24px;
  height: 24px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 72px minmax(175px, auto) minmax(280px, auto) 48px;
  width: min(100%, var(--max));
  min-height: 745px;
  margin: 0 auto;
  padding: 28px var(--edge) 36px;
  isolation: isolate;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -2;
  content: "";
  pointer-events: none;
}

.hero::before {
  top: 8%;
  right: -2%;
  width: 31%;
  height: 87%;
  background-color: var(--coral);
  background-image: url("assets/textures/coral-paper.webp");
  background-size: 600px 600px;
  transform: rotate(1.7deg);
}

.hero::after {
  right: 30%;
  bottom: 18%;
  width: 22%;
  height: 46%;
  border: 2px solid var(--ink);
  background: var(--lime);
  transform: rotate(-4deg);
}

.hero__registration {
  grid-column: 1 / 7;
  grid-row: 1;
  align-self: center;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  padding-top: 7px;
}

.poster {
  position: relative;
  box-shadow: var(--shadow-paper);
}

.poster--offer {
  z-index: 3;
  grid-column: 1 / 8;
  grid-row: 2 / 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 560px;
  padding: clamp(1.5rem, 3.2vw, 3.6rem);
  background-color: var(--paper-light);
  background-image: url("assets/textures/paper-ground.webp");
  background-size: 780px 780px;
  transform: rotate(-1.15deg);
  animation: settle-offer 900ms var(--ease-out) both;
}

.poster--offer::after {
  position: absolute;
  right: clamp(1rem, 2vw, 2rem);
  bottom: -12px;
  width: 38%;
  height: 28px;
  background: var(--cobalt);
  content: "";
  transform: rotate(2.4deg);
  z-index: -1;
}

.poster__stamp {
  width: max-content;
  max-width: 100%;
  padding: 7px 11px 5px;
  border: 2px solid var(--ink);
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(0.95rem, 1.5vw, 1.3rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(-1deg);
}

.poster--offer h1,
.section-heading h2,
.trial h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.poster--offer h1 {
  max-width: 8ch;
  font-size: clamp(5.5rem, 9.7vw, 9.4rem);
  line-height: 0.7;
}

.poster--offer h1 em {
  display: inline-block;
  color: var(--coral);
  font-style: normal;
  transform: translateX(0.12em);
}

.offer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto;
  align-items: end;
  gap: 24px;
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}

.offer-bottom p {
  max-width: 49ch;
  margin: 0;
  font-size: clamp(0.98rem, 1.3vw, 1.12rem);
  font-weight: 600;
}

.scribble-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 6px 8px;
  font-weight: 800;
  text-underline-offset: 5px;
}

.scribble-link::before {
  position: absolute;
  z-index: -1;
  right: -6px;
  bottom: 1px;
  left: -6px;
  height: 90%;
  background: var(--lime);
  content: "";
  transform: rotate(-1.5deg) scaleY(0.16);
  transform-origin: bottom;
  transition: transform 180ms var(--ease-out);
}

.scribble-link:hover::before {
  transform: rotate(-1.5deg) scaleY(1);
}

.poster--dialogue {
  z-index: 5;
  grid-column: 6 / 10;
  grid-row: 2 / 3;
  align-self: center;
  min-height: 245px;
  padding: clamp(1.1rem, 2vw, 2rem);
  color: var(--paper-light);
  background-color: var(--cobalt);
  background-image: url("assets/textures/cobalt-ink.webp");
  background-size: 560px 560px;
  transform: rotate(2.2deg);
  animation: settle-dialogue 980ms 80ms var(--ease-out) both;
}

.dialogue-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(245, 238, 229, 0.65);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dialogue-line {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.93;
}

.dialogue-line--en {
  font-size: clamp(2rem, 4vw, 4.25rem);
}

.dialogue-line--ru {
  margin: 10px 0 14px 21%;
  color: var(--lime);
  font-size: clamp(1.2rem, 2vw, 2rem);
  transform: rotate(-1deg);
}

.swap-phrase,
.listen-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.swap-phrase svg,
.listen-button svg {
  width: 20px;
  height: 20px;
}

.ticket {
  z-index: 7;
  grid-column: 9 / 13;
  grid-row: 1 / 4;
  align-self: center;
  min-height: 600px;
  padding: 24px clamp(1.2rem, 2.4vw, 2.35rem) 30px;
  border: 2px solid var(--ink);
  background-color: var(--paper-light);
  background-image: url("assets/textures/paper-ground.webp");
  background-size: 740px 740px;
  box-shadow: 11px 18px 34px rgba(18, 21, 23, 0.24), 2px 4px 10px rgba(18, 21, 23, 0.14);
  transform: rotate(0.8deg);
  animation: settle-ticket 1040ms 140ms var(--ease-out) both;
}

.ticket::before {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: -11px;
  width: 20px;
  background: radial-gradient(circle at 50% 8px, var(--paper) 0 5px, transparent 5.5px) 0 0 / 20px 22px repeat-y;
  content: "";
}

.ticket__topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 2px dashed var(--ink);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.test {
  display: flex;
  flex-direction: column;
  min-height: 495px;
  padding-top: 24px;
}

.test__progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 17px;
}

.test__progress span {
  height: 7px;
  border: 1px solid var(--ink);
  background: transparent;
  transition: background 220ms ease, transform 220ms var(--ease-out);
}

.test__progress span.is-active,
.test__progress span.is-done {
  background: var(--cobalt);
}

.test__progress span.is-active {
  transform: rotate(-1.2deg) scaleY(1.4);
}

.test__step {
  margin: 0 0 2px;
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.test h2 {
  max-width: 11ch;
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(2.3rem, 4vw, 4.25rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.9;
  text-transform: uppercase;
}

.test__options {
  display: grid;
  gap: 9px;
}

.test-option {
  position: relative;
  display: grid;
  grid-template-columns: 25px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 9px 12px;
  border: 1.5px solid var(--ink);
  background: rgba(245, 238, 229, 0.62);
  text-align: left;
  transition: color 180ms ease, background 180ms ease, transform 180ms var(--ease-out), box-shadow 180ms ease;
}

.test-option::before {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1.5px solid currentColor;
  content: "";
}

.test-option:hover {
  box-shadow: 4px 6px 14px rgba(18, 21, 23, 0.14);
  transform: translateY(-1px) rotate(-0.2deg);
}

.test-option.is-selected {
  color: var(--paper-light);
  background: var(--cobalt);
}

.test-option.is-selected::before {
  content: "×";
  font-size: 1.2rem;
  line-height: 1;
}

.test__error {
  min-height: 24px;
  margin: 8px 0 0;
  color: #9d261a;
  font-size: 0.76rem;
  font-weight: 800;
}

.test__actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  margin-top: auto;
}

.test__actions button {
  min-height: 52px;
  border: 2px solid var(--ink);
  font-weight: 800;
}

.test__back {
  padding: 0 15px;
  background: transparent;
}

.test__next {
  padding: 0 20px;
  color: var(--paper-light);
  background: var(--ink);
  transition: background 180ms ease, color 180ms ease, transform 180ms var(--ease-out);
}

.test__next:not(:disabled):hover {
  color: var(--ink);
  background: var(--lime);
  transform: translateY(-2px);
}

.test__next:disabled {
  color: #77716a;
  border-color: #9f968b;
  background: #d5cdc4;
  cursor: not-allowed;
}

.test__result {
  margin: auto 0;
}

.test__result strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: clamp(2.5rem, 4vw, 4.4rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.test__result p {
  margin: 0 0 20px;
  font-weight: 600;
}

.test__result a {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  color: var(--paper-light);
  background: var(--cobalt);
  font-weight: 800;
  text-decoration: none;
}

.hero__note {
  grid-column: 1 / 9;
  grid-row: 4;
  align-self: end;
  color: var(--ink-muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.scenario-rail {
  overflow: hidden;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  color: var(--paper-light);
  background: var(--ink);
}

.scenario-rail__track {
  display: flex;
  width: max-content;
  min-width: 100%;
  align-items: center;
  justify-content: space-around;
  gap: clamp(1.3rem, 3vw, 3.2rem);
  padding: 14px var(--edge) 12px;
  font-family: var(--display);
  font-size: clamp(0.9rem, 1.5vw, 1.18rem);
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.scenario-rail i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--lime);
  transform: rotate(45deg);
}

.section-shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 9rem) var(--edge);
}

.section-heading {
  margin-bottom: clamp(2.3rem, 5vw, 5rem);
}

.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 7rem);
}

.section-heading h2,
.trial h2 {
  font-size: clamp(3.3rem, 6.8vw, 7rem);
  line-height: 0.78;
}

.section-heading h2 em,
.trial h2 em {
  color: var(--cobalt);
  font-style: normal;
}

.section-heading p {
  max-width: 62ch;
  margin: 0;
  font-weight: 600;
}

.lesson-board {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  border: 2px solid var(--ink);
  background: var(--paper-light);
  box-shadow: 10px 16px 32px rgba(18, 21, 23, 0.12);
}

.lesson-board__prompt {
  position: relative;
  min-height: 520px;
  padding: clamp(1.7rem, 4vw, 4rem);
  overflow: hidden;
  color: var(--paper-light);
  background-color: var(--cobalt);
  background-image: url("assets/textures/cobalt-ink.webp");
  background-size: 640px 640px;
}

.lesson-board__prompt::after {
  position: absolute;
  right: -20%;
  bottom: -48%;
  width: 74%;
  aspect-ratio: 1;
  border: 45px solid var(--lime);
  border-radius: 50%;
  content: "";
  opacity: 0.95;
}

.board-label {
  display: inline-block;
  margin-bottom: 28px;
  padding: 5px 8px;
  border: 1px solid currentColor;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prompt-context {
  max-width: 42ch;
  margin: 0 0 36px;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 650;
}

.speech-bubble {
  position: relative;
  z-index: 1;
  width: max-content;
  max-width: 88%;
  margin: 12px 0;
  padding: 16px 20px;
  border: 2px solid currentColor;
  font-weight: 800;
}

.speech-bubble--light {
  color: var(--ink);
  background: var(--paper-light);
  transform: rotate(-1deg);
}

.speech-bubble--dark {
  margin-left: auto;
  color: var(--ink);
  background: var(--lime);
  transform: rotate(1deg);
}

.listen-button {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  left: clamp(1.7rem, 4vw, 4rem);
}

.listen-button.is-playing svg {
  animation: sound-pulse 720ms ease-in-out infinite alternate;
}

.lesson-steps {
  display: flex;
  margin: 0;
  padding: 0;
  flex-direction: column;
  list-style: none;
}

.lesson-steps li {
  display: grid;
  flex: 1;
  grid-template-columns: 68px 1fr;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  padding: clamp(1.4rem, 3vw, 2.6rem);
  border-bottom: 1.5px solid var(--ink);
}

.lesson-steps li:last-child {
  border-bottom: 0;
}

.lesson-steps__number {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--coral);
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  transform: rotate(-3deg);
}

.lesson-steps li:nth-child(2) .lesson-steps__number {
  color: var(--paper-light);
  background: var(--cobalt);
  transform: rotate(2deg);
}

.lesson-steps li:nth-child(3) .lesson-steps__number {
  background: var(--lime);
  transform: rotate(-1deg);
}

.lesson-steps h3 {
  margin: 0 0 5px;
  font-family: var(--display);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.lesson-steps p {
  max-width: 47ch;
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.93rem;
  font-weight: 600;
}

.programs {
  position: relative;
  color: var(--paper-light);
  background-color: var(--cobalt);
  background-image: url("assets/textures/cobalt-ink.webp");
  background-size: 700px 700px;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.programs::before {
  position: absolute;
  top: 5%;
  right: 4%;
  width: clamp(90px, 13vw, 190px);
  aspect-ratio: 1;
  border: 18px solid var(--lime);
  border-radius: 50%;
  content: "";
  transform: rotate(12deg);
}

.section-heading--programs {
  display: grid;
  position: relative;
  z-index: 1;
  grid-template-columns: 1fr minmax(260px, 0.44fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 6rem);
}

.section-heading--programs h2 em {
  color: var(--lime);
}

.program-picker {
  position: relative;
  z-index: 2;
}

.program-tabs {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.program-tabs button {
  min-height: 50px;
  padding: 10px clamp(1rem, 2.2vw, 2.25rem);
  border: 2px solid var(--paper-light);
  border-bottom: 0;
  color: var(--paper-light);
  background: transparent;
  font-weight: 800;
  transition: color 180ms ease, background 180ms ease, transform 180ms var(--ease-out);
}

.program-tabs button[aria-selected="true"] {
  color: var(--ink);
  background: var(--paper-light);
  transform: translateY(-7px);
}

.program-sheet {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.35fr);
  color: var(--ink);
  border: 2px solid var(--paper-light);
  background-color: var(--paper-light);
  background-image: url("assets/textures/paper-ground.webp");
  background-size: 760px 760px;
  box-shadow: 12px 18px 34px rgba(3, 4, 33, 0.25);
}

.program-sheet__copy {
  padding: clamp(2rem, 5vw, 5.25rem);
}

.program-code {
  display: block;
  margin-bottom: 22px;
  color: var(--cobalt-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.program-sheet h3 {
  max-width: 14ch;
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: clamp(3rem, 5.8vw, 6.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.8;
  text-transform: uppercase;
}

.program-sheet__copy > p {
  max-width: 65ch;
  margin: 0 0 26px;
  font-weight: 600;
}

.program-sheet ul,
.plan-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.program-sheet li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-weight: 750;
}

.program-sheet li::before {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  background: var(--coral);
  content: "";
  transform: rotate(45deg);
}

.program-sheet__result {
  display: flex;
  min-height: 100%;
  padding: clamp(1.8rem, 3.4vw, 3.4rem);
  flex-direction: column;
  justify-content: center;
  border-left: 2px solid var(--ink);
  background: var(--lime);
}

.program-sheet__result > span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.program-sheet__result strong {
  display: block;
  margin: 8px 0 18px;
  font-family: var(--display);
  font-size: clamp(3rem, 4.6vw, 5rem);
  line-height: 0.84;
  text-transform: uppercase;
}

.program-sheet__result p {
  margin: 0 0 26px;
  font-weight: 700;
}

.program-sheet__result a {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  color: var(--paper-light);
  background: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms var(--ease-out), box-shadow 180ms ease;
}

.program-sheet__result a:hover {
  box-shadow: 5px 8px 18px rgba(18, 21, 23, 0.22);
  transform: translateY(-2px) rotate(-0.4deg);
}

.practice-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr 0.82fr;
  align-items: stretch;
  gap: clamp(1rem, 2vw, 2rem);
}

.practice-note {
  position: relative;
  min-height: 360px;
  padding: clamp(1.5rem, 3vw, 3rem);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-paper);
}

.practice-note h3 {
  margin: auto 0 10px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 3.2vw, 3.7rem);
  line-height: 0.88;
  text-transform: uppercase;
}

.practice-note p {
  max-width: 42ch;
  margin: 0;
  font-weight: 600;
}

.practice-note--lime {
  display: flex;
  flex-direction: column;
  background: var(--lime);
  transform: rotate(-1.3deg);
}

.practice-note--lime svg {
  width: 86px;
  height: 86px;
  margin-bottom: auto;
  stroke-width: 1.4;
}

.practice-note--paper {
  display: flex;
  padding-top: 4rem;
  flex-direction: column;
  background-color: var(--paper-light);
  background-image: url("assets/textures/paper-ground.webp");
  background-size: 700px 700px;
  transform: rotate(0.7deg) translateY(-12px);
}

.waveform {
  display: flex;
  height: 112px;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: auto;
}

.waveform i {
  width: 8%;
  background: var(--cobalt);
}

.waveform i:nth-child(1),
.waveform i:nth-child(9) { height: 22%; }
.waveform i:nth-child(2),
.waveform i:nth-child(8) { height: 52%; }
.waveform i:nth-child(3),
.waveform i:nth-child(7) { height: 76%; }
.waveform i:nth-child(4),
.waveform i:nth-child(6) { height: 45%; }
.waveform i:nth-child(5) { height: 100%; background: var(--coral); }

.practice-note--coral {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background-color: var(--coral);
  background-image: url("assets/textures/coral-paper.webp");
  background-size: 600px 600px;
  transform: rotate(-0.6deg) translateY(12px);
}

.practice-note__big {
  margin-bottom: auto;
  font-family: var(--display);
  font-size: clamp(6rem, 11vw, 11rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.7;
}

.plans {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--paper-light);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.plan-card {
  position: relative;
  display: flex;
  min-height: 475px;
  padding: clamp(1.4rem, 2.6vw, 2.8rem);
  flex-direction: column;
  border: 2px solid var(--ink);
  background-color: var(--paper);
  background-image: url("assets/textures/paper-ground.webp");
  background-size: 680px 680px;
  box-shadow: 7px 11px 24px rgba(18, 21, 23, 0.1);
  transition: transform 220ms var(--ease-out), box-shadow 220ms ease;
}

.plan-card:hover {
  box-shadow: 11px 17px 32px rgba(18, 21, 23, 0.16);
  transform: translateY(-5px) rotate(-0.3deg);
}

.plan-card--featured {
  color: var(--paper-light);
  background-color: var(--cobalt);
  background-image: url("assets/textures/cobalt-ink.webp");
  transform: translateY(-22px) rotate(0.7deg);
}

.plan-card--featured:hover {
  transform: translateY(-28px) rotate(0deg);
}

.plan-card__tag {
  position: absolute;
  top: -16px;
  right: 18px;
  padding: 7px 11px 5px;
  color: var(--ink);
  border: 2px solid var(--ink);
  background: var(--lime);
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  transform: rotate(1.4deg);
}

.plan-card__format {
  display: block;
  margin-bottom: 22px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plan-card h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(3.2rem, 5vw, 5.4rem);
  line-height: 0.84;
  text-transform: uppercase;
}

.plan-card__price {
  margin: 0 0 25px;
  font-size: 0.82rem;
  font-weight: 700;
}

.plan-card__price strong {
  font-size: clamp(1.55rem, 2.4vw, 2.4rem);
}

.plan-card ul {
  margin-bottom: 28px;
}

.plan-card li {
  padding: 10px 0;
  border-bottom: 1px solid currentColor;
  font-size: 0.9rem;
  font-weight: 650;
}

.plan-card a {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  border: 2px solid currentColor;
  color: var(--paper-light);
  background: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.plan-card--featured a {
  color: var(--ink);
  background: var(--lime);
}

.demo-disclaimer {
  max-width: 72ch;
  margin: 26px 0 0;
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 650;
}

.trial {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  min-height: 680px;
  border-bottom: 2px solid var(--ink);
  color: var(--paper-light);
  background-color: var(--coral);
  background-image: url("assets/textures/coral-paper.webp");
  background-size: 720px 720px;
}

.trial__copy {
  display: flex;
  padding: clamp(3.2rem, 8vw, 8rem) var(--edge);
  flex-direction: column;
  justify-content: center;
}

.trial__stamp {
  width: max-content;
  max-width: 100%;
  margin-bottom: 28px;
  padding: 7px 10px;
  border: 2px solid currentColor;
  font-family: var(--display);
  font-size: clamp(0.9rem, 1.5vw, 1.25rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(-1deg);
}

.trial h2 {
  color: var(--paper-light);
  font-size: clamp(5rem, 10vw, 11rem);
}

.trial h2 em {
  color: var(--lime);
}

.trial__copy p {
  max-width: 57ch;
  margin: 34px 0 0;
  font-weight: 650;
}

.trial-form {
  position: relative;
  align-self: center;
  width: min(92%, 620px);
  margin: 46px auto;
  padding: clamp(1.5rem, 4vw, 4rem);
  color: var(--ink);
  border: 2px solid var(--ink);
  background-color: var(--paper-light);
  background-image: url("assets/textures/paper-ground.webp");
  background-size: 720px 720px;
  box-shadow: 12px 20px 38px rgba(60, 17, 10, 0.25);
  transform: rotate(0.8deg);
}

.trial-form::before {
  position: absolute;
  top: -21px;
  left: 14%;
  width: 36%;
  height: 42px;
  background: rgba(217, 204, 185, 0.82);
  content: "";
  transform: rotate(-2deg);
}

.trial-form__status {
  min-height: 28px;
  margin-bottom: 8px;
  color: #8d2117;
  font-size: 0.82rem;
  font-weight: 800;
}

.trial-form label:not(.consent) {
  display: block;
  margin-bottom: 20px;
}

.trial-form label > span {
  display: block;
  margin-bottom: 7px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.trial-form input[type="text"] {
  width: 100%;
  min-height: 55px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: rgba(233, 224, 213, 0.55);
  caret-color: var(--cobalt);
}

.trial-form input[type="text"]::placeholder {
  color: #6e6862;
  opacity: 1;
}

.trial-form input[aria-invalid="true"] {
  border-color: #a6291e;
  background: rgba(229, 79, 53, 0.1);
}

.trial-form small {
  display: block;
  min-height: 20px;
  padding-top: 4px;
  color: #8d2117;
  font-size: 0.72rem;
  font-weight: 750;
}

.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px;
  margin: 4px 0 24px;
  cursor: pointer;
}

.consent input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--cobalt);
}

.consent span {
  margin: 0 !important;
  line-height: 1.45;
}

.trial-form button {
  display: grid;
  width: 100%;
  min-height: 62px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 13px 18px;
  border: 2px solid var(--ink);
  color: var(--paper-light);
  background: var(--cobalt);
  font-weight: 800;
  text-align: left;
  transition: color 180ms ease, background 180ms ease, transform 180ms var(--ease-out), box-shadow 180ms ease;
}

.trial-form button:hover:not(:disabled) {
  color: var(--ink);
  background: var(--lime);
  box-shadow: 5px 8px 18px rgba(18, 21, 23, 0.2);
  transform: translateY(-2px);
}

.trial-form button:disabled {
  color: #77716a;
  border-color: #9f968b;
  background: #d5cdc4;
  cursor: wait;
}

.trial-form button svg {
  width: 25px;
  height: 25px;
}

.trial-form.is-success {
  color: var(--paper-light);
  background: var(--cobalt);
}

.trial-form.is-success::after {
  display: block;
  margin-top: 12px;
  color: var(--lime);
  font-family: var(--display);
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  content: "Форма сработала — данные остались в браузере";
}

.trial-form.is-success > :not(.trial-form__status) {
  display: none;
}

.trial-form.is-success .trial-form__status {
  color: var(--paper-light);
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: end;
  gap: clamp(1.5rem, 4vw, 5rem);
  padding: 38px var(--edge) 34px;
  color: var(--paper-light);
  background: var(--ink);
}

.brand--footer {
  color: var(--paper-light);
  font-size: clamp(2.3rem, 4vw, 4rem);
}

.site-footer p {
  max-width: 58ch;
  margin: 0;
  color: var(--paper-shadow);
  font-size: 0.75rem;
}

.site-footer > a:last-child {
  color: var(--lime);
  font-weight: 800;
  text-underline-offset: 5px;
}

@keyframes settle-offer {
  from { clip-path: inset(0 0 100% 0); filter: blur(3px); transform: translateY(-28px) rotate(-3deg); }
  to { clip-path: inset(0); filter: blur(0); transform: translateY(0) rotate(-1.15deg); }
}

@keyframes settle-dialogue {
  from { clip-path: inset(0 100% 0 0); filter: blur(2px); transform: translateX(30px) rotate(5deg); }
  to { clip-path: inset(0); filter: blur(0); transform: translateX(0) rotate(2.2deg); }
}

@keyframes settle-ticket {
  from { clip-path: inset(100% 0 0); filter: blur(3px); transform: translateY(42px) rotate(3deg); }
  to { clip-path: inset(0); filter: blur(0); transform: translateY(0) rotate(0.8deg); }
}

@keyframes sound-pulse {
  from { filter: drop-shadow(0 2px 2px rgba(204, 222, 32, 0.18)); transform: scale(0.95); }
  to { filter: drop-shadow(2px 5px 8px rgba(204, 222, 32, 0.55)); transform: scale(1.08); }
}

@media (max-width: 1180px) {
  .hero {
    grid-template-rows: 46px minmax(220px, auto) minmax(360px, auto) 42px;
    min-height: 780px;
  }

  .poster--offer {
    grid-column: 1 / 9;
  }

  .poster--dialogue {
    grid-column: 6 / 10;
    align-self: start;
  }

  .ticket {
    grid-column: 9 / 13;
  }

  .poster--offer h1 {
    font-size: clamp(5rem, 11vw, 8rem);
  }

  .offer-bottom {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .program-sheet h3 {
    font-size: clamp(3rem, 6vw, 5rem);
  }
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-button {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 2px);
    right: var(--edge);
    left: var(--edge);
    display: none;
    align-items: stretch;
    padding: 16px;
    border: 2px solid var(--ink);
    background: var(--paper-light);
    box-shadow: var(--shadow-paper);
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav a {
    min-height: 45px;
    padding: 10px 8px;
  }

  .nav-action {
    color: var(--ink);
    background: var(--lime);
  }

  .hero {
    grid-template-rows: auto;
    min-height: 0;
    gap: 18px;
    padding-top: 34px;
  }

  .hero::before {
    top: 27%;
    right: -12%;
    width: 45%;
    height: 66%;
  }

  .hero::after {
    right: 36%;
    bottom: 11%;
    width: 28%;
    height: 30%;
  }

  .hero__registration {
    grid-column: 1 / 13;
    grid-row: 1;
  }

  .poster--offer {
    grid-column: 1 / 10;
    grid-row: 2;
    min-height: 520px;
  }

  .poster--dialogue {
    grid-column: 7 / 13;
    grid-row: 2;
    align-self: end;
    margin-bottom: 34px;
  }

  .ticket {
    grid-column: 2 / 12;
    grid-row: 3;
    min-height: 560px;
    margin-top: 4px;
  }

  .hero__note {
    grid-column: 1 / 13;
    grid-row: 4;
  }

  .section-heading--split,
  .section-heading--programs {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
  }

  .lesson-board {
    grid-template-columns: 1fr;
  }

  .lesson-board__prompt {
    min-height: 460px;
  }

  .program-sheet {
    grid-template-columns: 1fr;
  }

  .program-sheet__result {
    min-height: 330px;
    border-top: 2px solid var(--ink);
    border-left: 0;
  }

  .practice-grid {
    grid-template-columns: 1fr 1fr;
  }

  .practice-note--coral {
    grid-column: 1 / 3;
  }

  .plans-grid {
    grid-template-columns: 1fr 1fr;
  }

  .plan-card--featured {
    transform: none;
  }

  .plan-card--featured:hover {
    transform: translateY(-5px);
  }

  .plans-grid .plan-card:last-child {
    grid-column: 1 / 3;
  }

  .trial {
    grid-template-columns: 1fr;
  }

  .trial__copy {
    padding-bottom: 2rem;
  }

  .trial-form {
    margin-top: 0;
  }
}

@media (max-width: 620px) {
  :root {
    --edge: 15px;
  }

  .site-header {
    padding-top: 17px;
  }

  .brand {
    font-size: 2.55rem;
  }

  .hero {
    display: flex;
    padding-top: 27px;
    flex-direction: column;
    gap: 14px;
  }

  .hero::before {
    top: 42%;
    right: -20%;
    width: 64%;
    height: 53%;
  }

  .hero::after {
    right: auto;
    bottom: 18%;
    left: -11%;
    width: 48%;
    height: 27%;
  }

  .hero__registration {
    width: 100%;
  }

  .poster--offer {
    width: calc(100% - 8px);
    min-height: 520px;
    padding: 24px 19px 26px;
    transform: rotate(-0.7deg);
  }

  .poster--offer h1 {
    font-size: clamp(4.5rem, 20.5vw, 6.1rem);
    line-height: 0.69;
  }

  .offer-bottom {
    gap: 13px;
  }

  .poster--dialogue {
    width: 92%;
    min-height: 230px;
    margin: -34px 0 0 auto;
    padding: 20px;
  }

  .dialogue-line--en {
    font-size: clamp(2.7rem, 13vw, 3.7rem);
  }

  .dialogue-line--ru {
    font-size: 1.35rem;
  }

  .ticket {
    width: calc(100% - 14px);
    min-height: 570px;
    margin: 18px 0 0 14px;
    padding: 22px 20px 24px;
  }

  .test h2 {
    font-size: 3.25rem;
  }

  .hero__note {
    margin-top: 10px;
  }

  .scenario-rail {
    overflow-x: auto;
  }

  .scenario-rail__track {
    justify-content: flex-start;
  }

  .section-shell {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }

  .section-heading h2 {
    font-size: clamp(3.3rem, 17vw, 5rem);
  }

  .lesson-board__prompt {
    min-height: 510px;
    padding: 26px 20px;
  }

  .speech-bubble {
    max-width: 96%;
    padding: 14px 12px;
    font-size: 0.9rem;
  }

  .listen-button {
    bottom: 21px;
    left: 20px;
  }

  .lesson-steps li {
    grid-template-columns: 50px 1fr;
    padding: 22px 18px;
  }

  .lesson-steps__number {
    width: 46px;
    height: 46px;
    font-size: 1.8rem;
  }

  .lesson-steps h3 {
    font-size: 2.25rem;
  }

  .programs::before {
    top: 3%;
    right: -8%;
  }

  .program-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }

  .program-tabs button {
    padding: 10px 7px;
    font-size: 0.78rem;
  }

  .program-sheet__copy,
  .program-sheet__result {
    padding: 28px 20px;
  }

  .program-sheet h3 {
    font-size: clamp(3.2rem, 16vw, 4.7rem);
  }

  .practice-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .practice-note,
  .plans-grid .plan-card:last-child {
    grid-column: auto;
  }

  .practice-note {
    min-height: 330px;
  }

  .practice-note--paper,
  .practice-note--coral {
    transform: none;
  }

  .plan-card {
    min-height: 430px;
  }

  .trial {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .trial__copy {
    min-width: 0;
    padding: 5.5rem var(--edge) 2rem;
  }

  .trial h2 {
    font-size: clamp(4.8rem, 21vw, 7rem);
  }

  .trial-form {
    min-width: 0;
    width: calc(100% - 30px);
    margin: 20px 15px 60px;
    padding: 28px 19px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Approved-comp hero rebuild: dense flyposter wall + semantic live ticket. */
[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (min-width: 921px) {
  .site-header::before,
  .site-header::after {
    position: absolute;
    top: 50%;
    width: 24px;
    height: 24px;
    background:
      linear-gradient(var(--ink), var(--ink)) 50% 0 / 1px 100% no-repeat,
      linear-gradient(90deg, var(--ink), var(--ink)) 0 50% / 100% 1px no-repeat;
    content: "";
    opacity: 0.52;
    transform: translateY(-50%);
  }

  .site-header::before { left: 4px; }
  .site-header::after { right: 4px; }
}

.nav-action {
  display: grid;
  grid-template-columns: 1fr 42px;
  align-items: stretch;
  min-width: 174px;
  padding: 0;
  overflow: hidden;
  background: var(--paper-light);
}

.nav-action span {
  display: grid;
  min-height: 44px;
  place-items: center;
  padding: 8px 12px;
}

.nav-action svg {
  width: 42px;
  height: 44px;
  padding: 11px;
  color: var(--paper-light);
  background: var(--ink);
}

.nav-action:hover {
  background: var(--lime);
}

.hero {
  grid-template-rows: 54px minmax(580px, auto) 48px;
  min-height: 760px;
  overflow: hidden;
  background-color: var(--ink);
  background-image: url("assets/hero/poster-wall.webp");
  background-position: center;
  background-size: cover;
}

.hero::before,
.hero::after {
  display: none;
}

.hero__registration {
  z-index: 10;
  grid-column: 1 / 7;
  grid-row: 1;
  width: max-content;
  padding: 7px 10px 5px;
  border: 1px solid var(--paper-light);
  color: var(--paper-light);
  background: var(--ink);
  letter-spacing: 0.18em;
  transform: rotate(-0.8deg);
}

.poster--offer {
  grid-column: 1 / 9;
  grid-row: 2;
  min-height: 590px;
  padding: clamp(2.4rem, 4vw, 4.5rem) clamp(2.8rem, 5vw, 5.5rem);
  background-color: transparent;
  background-image: url("assets/hero/offer-sheet.webp");
  background-position: center;
  background-size: 100% 100%;
  box-shadow: none;
  filter: drop-shadow(10px 16px 18px rgba(5, 5, 7, 0.31));
  transform: rotate(-0.7deg);
}

.poster--offer::after {
  display: none;
}

.poster__stamp {
  padding: 5px 10px 4px;
  color: var(--ink);
  background: var(--paper-light);
  font-size: clamp(0.78rem, 1.15vw, 1.05rem);
}

.poster--offer h1 {
  max-width: none;
}

.hero-wordmark {
  display: block;
  color: var(--cobalt);
  font-size: clamp(10.5rem, 18vw, 18rem);
  line-height: 0.58;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.hero-wordmark > span {
  color: var(--cobalt);
}

.hero-offer-line {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  margin: 20px 0 6px;
  padding: 7px 14px 5px;
  color: var(--ink);
  background: var(--lime);
  font-size: clamp(2.35rem, 4vw, 4.15rem);
  line-height: 0.86;
  letter-spacing: -0.025em;
  transform: rotate(-1deg);
}

.offer-bottom {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-right: 6%;
  padding-top: 14px;
}

.poster--dialogue {
  grid-column: 7 / 10;
  grid-row: 2;
  align-self: start;
  min-height: 340px;
  margin-top: 12px;
  padding: clamp(2.4rem, 3.5vw, 3.6rem) clamp(1.6rem, 2.7vw, 2.8rem);
  color: var(--ink);
  background-color: transparent;
  background-image: url("assets/hero/coral-dialogue.webp");
  background-position: center;
  background-size: 100% 100%;
  box-shadow: none;
  filter: drop-shadow(8px 13px 16px rgba(5, 5, 7, 0.28));
  transform: rotate(2.1deg);
}

.dialogue-meta {
  border-bottom-color: rgba(18, 21, 23, 0.72);
}

.dialogue-line--en {
  font-size: clamp(2.6rem, 4vw, 4.3rem);
}

.dialogue-line--ru {
  margin-left: 7%;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.25vw, 2.35rem);
}

.ticket {
  grid-column: 10 / 13;
  grid-row: 2;
  min-height: 570px;
  margin: 55px 3% 0 -5%;
  padding: 25px clamp(1.15rem, 2vw, 2rem) 28px;
  transform: rotate(0.4deg);
}

.test {
  min-height: 465px;
}

.test__intro {
  position: relative;
  display: flex;
  min-height: 455px;
  align-items: center;
  padding: 18px 2px 112px;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.test__intro::before,
.test__intro::after {
  position: absolute;
  top: 27%;
  width: 11px;
  height: 11px;
  border: 2px solid var(--cobalt);
  content: "";
  transform: rotate(45deg);
}

.test__intro::before { left: 4%; }
.test__intro::after { right: 4%; }

.test__intro-mark {
  display: grid;
  width: clamp(150px, 14vw, 190px);
  aspect-ratio: 1;
  place-items: center;
  border: 3px solid var(--cobalt);
  border-radius: 50%;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(7rem, 10vw, 10rem);
  font-weight: 900;
  line-height: 0.7;
  box-shadow: inset 0 0 0 9px var(--paper-light), inset 0 0 0 11px var(--cobalt);
}

.test__intro-unit {
  margin-top: -45px;
  padding: 2px 8px;
  background: var(--paper-light);
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.test__intro p {
  max-width: 34ch;
  margin: 34px auto 0;
  font-size: 0.76rem;
  font-weight: 700;
}

.test__intro button {
  position: absolute;
  right: -2px;
  bottom: 0;
  left: -2px;
  display: grid;
  min-height: 78px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 17px 20px;
  border: 0;
  border-top: 2px dashed var(--ink);
  color: var(--paper-light);
  background: var(--cobalt);
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, transform 180ms var(--ease-out);
}

.test__intro button::before,
.test__intro button::after {
  position: absolute;
  top: -10px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  content: "";
}

.test__intro button::before { left: -10px; }
.test__intro button::after { right: -10px; }

.test__intro button:hover {
  color: var(--ink);
  background: var(--lime);
  transform: translateY(-3px) rotate(-0.5deg);
}

.test__intro button svg {
  width: 28px;
  height: 28px;
}

.test__questions {
  display: flex;
  min-height: 465px;
  padding-top: 18px;
  flex-direction: column;
}

.test__questions h3 {
  max-width: 11ch;
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(2.55rem, 3.3vw, 3.65rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.84;
  text-transform: uppercase;
}

.test__questions .test__actions {
  margin-top: auto;
}

.hero__note {
  z-index: 12;
  grid-column: 1 / 8;
  grid-row: 3;
  width: max-content;
  max-width: 100%;
  align-self: center;
  padding: 5px 8px;
  color: var(--paper-light);
  background: var(--ink);
}

@media (max-width: 1180px) and (min-width: 921px) {
  .hero {
    grid-template-rows: 48px minmax(610px, auto) 44px;
    min-height: 790px;
  }

  .poster--offer {
    grid-column: 1 / 9;
  }

  .hero-wordmark {
    font-size: clamp(9rem, 17.5vw, 13rem);
  }

  .hero-offer-line {
    font-size: clamp(2rem, 3.7vw, 3.15rem);
  }

  .poster--dialogue {
    grid-column: 7 / 10;
  }

  .ticket {
    grid-column: 10 / 13;
    margin-left: -10%;
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-rows: auto;
    min-height: 0;
    background-position: 60% center;
  }

  .poster--offer {
    grid-column: 1 / 11;
    grid-row: 2;
    min-height: 560px;
    padding: 54px 46px;
  }

  .hero-wordmark {
    font-size: clamp(9.4rem, 24vw, 12.5rem);
  }

  .hero-offer-line {
    white-space: normal;
  }

  .poster--dialogue {
    grid-column: 7 / 13;
    grid-row: 2;
    align-self: end;
    min-height: 300px;
    margin: 0 0 8px;
  }

  .ticket {
    grid-column: 2 / 12;
    grid-row: 3;
    min-height: 565px;
    margin: 22px 0 0;
  }

  .test__intro-mark {
    width: 190px;
  }

  .hero__note {
    grid-column: 1 / 13;
    grid-row: 4;
  }
}

@media (max-width: 620px) {
  .nav-action {
    min-width: 0;
  }

  .hero {
    padding-top: 26px;
    background-position: 66% center;
  }

  .hero__registration {
    align-self: flex-start;
  }

  .poster--offer {
    width: 104%;
    min-height: 535px;
    margin-left: -2%;
    padding: 48px 30px 46px;
  }

  .hero-wordmark {
    font-size: clamp(7.5rem, 35vw, 9rem);
  }

  .hero-offer-line {
    width: 92%;
    margin-top: 15px;
    font-size: clamp(2.5rem, 12vw, 3.3rem);
  }

  .offer-bottom {
    grid-template-columns: 1fr;
    margin-right: 0;
  }

  .poster--dialogue {
    width: 94%;
    min-height: 280px;
    margin: -46px 0 0 auto;
    padding: 42px 31px;
  }

  .dialogue-line--en {
    font-size: clamp(3rem, 14vw, 4rem);
  }

  .dialogue-line--ru {
    font-size: 1.45rem;
  }

  .ticket {
    width: calc(100% - 12px);
    min-height: 570px;
    margin: 28px 0 0 12px;
  }

  .test__questions h3 {
    font-size: 3.2rem;
  }
}
