:root {
  --bg: #06080f;
  --surface: #0f121b;
  --surface-2: #141927;
  --text: #f5f7ff;
  --muted: #afb6ca;
  --line: rgba(255, 255, 255, 0.12);
  --accent-pink: #ff2d8d;
  --accent-cyan: #46eaf2;
  --brand-red: #e50914;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(1200px 500px at 50% -20%, #1b2142 0%, transparent 65%), var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1320px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.topbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(5, 8, 16, 0.96), rgba(5, 8, 16, 0.7));
  backdrop-filter: blur(8px);
}

.topbar-inner {
  width: min(1320px, calc(100% - 2.4rem));
  margin-inline: auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: auto;
  height: 34px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 1.1rem;
}

.main-nav a {
  color: #d6dcf0;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.35rem 0.15rem;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #ffffff;
}

.join-btn {
  margin-left: auto;
  padding: 0.52rem 0.95rem;
  border-radius: 8px;
  background: var(--brand-red);
  color: #fff;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  font-size: 0.88rem;
}

.join-btn:hover {
  background: #ff1e2a;
}

.menu-toggle {
  display: none;
}

main {
  padding-top: 72px;
}

.hero {
  min-height: clamp(480px, 83vh, 760px);
  display: flex;
  align-items: flex-end;
  background: #050810;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      90deg,
      rgba(5, 8, 14, 0.95) 0%,
      rgba(5, 8, 14, 0.74) 32%,
      rgba(5, 8, 14, 0.38) 55%,
      rgba(5, 8, 14, 0.72) 100%
    ),
    linear-gradient(0deg, rgba(5, 8, 14, 0.92) 2%, rgba(5, 8, 14, 0.24) 45%, rgba(5, 8, 14, 0.14) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 150px;
  background: linear-gradient(180deg, rgba(6, 8, 15, 0) 0%, rgba(6, 8, 15, 1) 92%);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding-bottom: clamp(3.2rem, 8vh, 5.3rem);
}

.hero-kicker {
  margin: 0;
  color: #c9d3ed;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

.hero-subtitle {
  margin: 0.35rem 0 0;
  color: #dce4ff;
  font-size: clamp(1.1rem, 1.9vw, 1.5rem);
  font-family: "Montserrat", sans-serif;
}

.hero h1 {
  margin: 0.55rem 0 0;
  max-width: 13ch;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.05;
  font-family: "Montserrat", sans-serif;
  letter-spacing: -0.02em;
}

.hero-meta {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: #ced6ea;
  font-size: 0.95rem;
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #58eb84;
  box-shadow: 0 0 10px rgba(88, 235, 132, 0.55);
}

.hero-actions {
  margin-top: 1.45rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.2rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-light {
  background: #ffffff;
  color: #15192a;
}

.btn-light:hover {
  background: #edf1ff;
}

.btn-dark {
  background: rgba(12, 15, 22, 0.85);
  color: #f2f5ff;
  border-color: rgba(255, 255, 255, 0.16);
}

.btn-dark:hover {
  background: rgba(21, 26, 38, 0.95);
}

.btn-small {
  padding: 0.48rem 0.9rem;
  font-size: 0.82rem;
}

.catalog {
  margin-top: -1.4rem;
  padding-bottom: 2.8rem;
  position: relative;
  z-index: 2;
}

.rail {
  margin-top: 1.7rem;
}

.rail-top6 {
  margin-top: 0.7rem;
}

.rail-head-top6 h2 {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: clamp(1.4rem, 2.6vw, 2.05rem);
}

.top-dot {
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: linear-gradient(160deg, #67f3c2, #45b4ff);
  box-shadow: 0 0 14px rgba(103, 243, 194, 0.45);
}

.rail-head-top6 p {
  margin: 0.4rem 0 0;
  color: #b8c7ec;
  max-width: 78ch;
}

.rail-track-top6 {
  grid-auto-columns: clamp(205px, 17vw, 228px);
  gap: 0.82rem;
  padding-bottom: 0.65rem;
}

.top6-card {
  min-height: clamp(250px, 23vw, 305px);
  padding: 1rem 0.95rem 0.85rem;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42);
  background-image: linear-gradient(170deg, rgba(9, 12, 22, 0.25), rgba(4, 6, 14, 0.86)),
    radial-gradient(130% 120% at 100% 0%, var(--card-accent, rgba(70, 234, 242, 0.2)), transparent 48%),
    radial-gradient(100% 100% at 0% 0%, rgba(255, 45, 141, 0.22), transparent 52%),
    url("./assets/web.png");
  background-size: cover, cover, cover, 320%;
  background-position: center, center, center, var(--x, 50%) var(--y, 48%);
}

.top6-card:hover {
  transform: translateY(-2px) scale(1.03);
}

.top6-card h3 {
  margin-top: auto;
  font-size: clamp(1.38rem, 2.15vw, 2rem);
  line-height: 1.04;
}

.top6-card p {
  margin-top: 0.52rem;
  font-size: 0.83rem;
  color: #d3dcf4;
}

.top6-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 26px;
  padding: 0.26rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(8, 11, 19, 0.58);
  color: #e8f0ff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.top6-a {
  --card-accent: rgba(90, 235, 214, 0.26);
  --x: 12%;
  --y: 28%;
}

.top6-b {
  --card-accent: rgba(90, 170, 255, 0.24);
  --x: 30%;
  --y: 30%;
}

.top6-c {
  --card-accent: rgba(246, 109, 210, 0.24);
  --x: 46%;
  --y: 34%;
}

.top6-d {
  --card-accent: rgba(122, 220, 255, 0.24);
  --x: 62%;
  --y: 33%;
}

.top6-e {
  --card-accent: rgba(188, 120, 255, 0.24);
  --x: 76%;
  --y: 38%;
}

.top6-f {
  --card-accent: rgba(255, 130, 150, 0.24);
  --x: 88%;
  --y: 40%;
}

.newsletter-cta {
  margin-top: 1.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 1.25rem;
  background: linear-gradient(
      115deg,
      rgba(255, 45, 141, 0.16),
      rgba(70, 234, 242, 0.14),
      rgba(7, 10, 18, 0.3)
    ),
    rgba(11, 14, 23, 0.94);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem 1.4rem;
  align-items: center;
}

.newsletter-kicker {
  margin: 0;
  color: #9cc5ff;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.74rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.newsletter-copy h3 {
  margin: 0.45rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-family: "Montserrat", sans-serif;
}

.newsletter-copy p {
  margin: 0.55rem 0 0;
  color: #c8d4ef;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  align-items: center;
}

.newsletter-input {
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(8, 12, 21, 0.85);
  color: #f4f7ff;
  padding: 0 0.85rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.95rem;
}

.newsletter-input:focus {
  outline: 2px solid rgba(126, 240, 247, 0.7);
  outline-offset: 1px;
}

.newsletter-feedback {
  margin: 0;
  grid-column: 1 / -1;
  min-height: 1.2rem;
  color: #9feec0;
  font-size: 0.84rem;
}

.interactive-block {
  margin-top: 1.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(11, 14, 24, 0.98), rgba(8, 11, 19, 0.9));
  padding: 1.25rem;
}

.interactive-head p {
  margin: 0;
}

.interactive-kicker {
  color: #8fc3ff;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.74rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.interactive-head h3 {
  margin: 0.4rem 0 0;
  font-size: clamp(1.06rem, 2vw, 1.4rem);
  font-family: "Montserrat", sans-serif;
}

.interactive-head p:last-child {
  margin-top: 0.5rem;
  color: #c8d4ef;
}

.quiz-step-card {
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(8, 11, 19, 0.68);
  padding: 1rem;
}

.quiz-progress {
  margin: 0;
  font-size: 0.84rem;
  color: #9eb4df;
}

.quiz-question {
  margin: 0.5rem 0 0;
  font-size: clamp(1.03rem, 2vw, 1.32rem);
  font-family: "Montserrat", sans-serif;
}

.quiz-answers {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.58rem;
}

.quiz-option {
  min-height: 50px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(10, 13, 23, 0.9);
  color: #e6ecff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 0.86rem;
  text-align: left;
  padding: 0.65rem 0.7rem;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.quiz-option:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.45);
}

.quiz-option.correct {
  border-color: rgba(88, 235, 132, 0.7);
  background: rgba(18, 64, 38, 0.92);
}

.quiz-option.wrong {
  border-color: rgba(255, 95, 95, 0.72);
  background: rgba(65, 18, 24, 0.9);
}

.quiz-foot {
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.quiz-result {
  margin: 0;
  min-height: 1.25rem;
  color: #d4def7;
  font-size: 0.92rem;
}

.runner-wrap {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: stretch;
}

#arcadeCanvas {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: radial-gradient(120% 130% at 100% 0%, rgba(70, 234, 242, 0.2), transparent 50%),
    linear-gradient(180deg, #0b0f1f 0%, #060910 100%);
}

.runner-hud {
  min-width: 146px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(9, 12, 20, 0.78);
  padding: 0.75rem;
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.runner-hud p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #dbe3fb;
  font-size: 0.88rem;
}

.runner-hud strong {
  font-size: 1rem;
  font-family: "Montserrat", sans-serif;
}

.runner-hud .btn {
  margin-top: 0.25rem;
  width: 100%;
}

.runner-state {
  margin: 0;
  color: #a9b7da;
  font-size: 0.8rem;
}

.runner-help {
  margin: 0.72rem 0 0;
  color: #aab8db;
  font-size: 0.86rem;
}

.rail-head {
  margin-bottom: 0.78rem;
}

.rail-head h2 {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: #f4f6fe;
}

.rail-head span {
  color: #92a0c7;
  font-weight: 500;
}

.rail-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(200px, 21vw, 265px);
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  padding: 0.25rem 0 0.55rem;
}

.rail-track::-webkit-scrollbar {
  height: 7px;
}

.rail-track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.card {
  position: relative;
  height: clamp(118px, 13vw, 148px);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background-image: linear-gradient(160deg, rgba(12, 16, 27, 0.12), rgba(3, 5, 12, 0.72)),
    radial-gradient(120% 120% at 100% 0%, rgba(70, 234, 242, 0.2), transparent 48%),
    radial-gradient(100% 100% at 0% 0%, rgba(255, 45, 141, 0.22), transparent 52%),
    url("./assets/web.png");
  background-size: cover, cover, cover, 310%;
  background-position: center, center, center, var(--x, 50%) var(--y, 50%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  scroll-snap-align: start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 15, 0.03) 25%, rgba(8, 10, 15, 0.86) 100%);
}

.card > * {
  position: relative;
  z-index: 1;
}

.card:hover {
  transform: scale(1.06);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5);
}

.card h3 {
  margin: 0.2rem 0 0;
  font-size: 1.06rem;
  font-family: "Montserrat", sans-serif;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.card p {
  margin: 0.18rem 0 0;
  color: #d1d8ee;
  font-size: 0.76rem;
}

.badge {
  position: absolute;
  top: 0.58rem;
  left: 0.58rem;
  padding: 0.16rem 0.43rem;
  border-radius: 6px;
  font-size: 0.63rem;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(9, 12, 20, 0.72);
  color: #d8def0;
}

.badge.free {
  border-color: rgba(88, 235, 132, 0.5);
  color: #9ef3bc;
}

.badge.easy {
  border-color: rgba(70, 234, 242, 0.5);
  color: #8bf3f8;
}

.badge.pro {
  border-color: rgba(255, 45, 141, 0.5);
  color: #ff9ac8;
}

.p1 {
  --x: 8%;
  --y: 18%;
}

.p2 {
  --x: 25%;
  --y: 16%;
}

.p3 {
  --x: 42%;
  --y: 24%;
}

.p4 {
  --x: 60%;
  --y: 20%;
}

.p5 {
  --x: 76%;
  --y: 23%;
}

.p6 {
  --x: 13%;
  --y: 43%;
}

.p7 {
  --x: 30%;
  --y: 45%;
}

.p8 {
  --x: 45%;
  --y: 49%;
}

.p9 {
  --x: 62%;
  --y: 43%;
}

.p10 {
  --x: 80%;
  --y: 46%;
}

.p11 {
  --x: 6%;
  --y: 62%;
}

.p12 {
  --x: 24%;
  --y: 63%;
}

.p13 {
  --x: 38%;
  --y: 64%;
}

.p14 {
  --x: 56%;
  --y: 67%;
}

.p15 {
  --x: 74%;
  --y: 64%;
}

.p16 {
  --x: 10%;
  --y: 80%;
}

.p17 {
  --x: 26%;
  --y: 82%;
}

.p18 {
  --x: 42%;
  --y: 84%;
}

.p19 {
  --x: 59%;
  --y: 82%;
}

.p20 {
  --x: 76%;
  --y: 85%;
}

.p21 {
  --x: 12%;
  --y: 95%;
}

.p22 {
  --x: 30%;
  --y: 95%;
}

.p23 {
  --x: 46%;
  --y: 95%;
}

.p24 {
  --x: 63%;
  --y: 95%;
}

.p25 {
  --x: 82%;
  --y: 95%;
}

.p26 {
  --x: 7%;
  --y: 12%;
}

.p27 {
  --x: 23%;
  --y: 20%;
}

.p28 {
  --x: 41%;
  --y: 18%;
}

.p29 {
  --x: 58%;
  --y: 24%;
}

.p30 {
  --x: 76%;
  --y: 22%;
}

.p31 {
  --x: 12%;
  --y: 34%;
}

.p32 {
  --x: 29%;
  --y: 38%;
}

.p33 {
  --x: 45%;
  --y: 42%;
}

.p34 {
  --x: 63%;
  --y: 39%;
}

.p35 {
  --x: 81%;
  --y: 44%;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 15, 0.58) 0%, rgba(6, 8, 15, 0.82) 38%, rgba(6, 8, 15, 0.93) 100%);
}

.footer-overlay {
  position: relative;
  z-index: 1;
}

.footer-content {
  text-align: center;
  padding: clamp(4.2rem, 11vw, 7rem) 0 clamp(3rem, 8vw, 5rem);
}

.footer-brand-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  display: block;
  width: min(460px, 82vw);
  max-width: 200px;
}

.social-row {
  margin-top: 0;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
}

.social-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.social-row-top,
.social-row-bottom {
  flex-wrap: nowrap;
}

.social-link {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #ecf0ff;
  background: rgba(7, 11, 20, 0.5);
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.social-link svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.social-link .icon-fill {
  fill: currentColor;
  stroke: none;
}

.social-link:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(17, 24, 38, 0.92);
  transform: translateY(-1px);
}

.social-link:focus-visible {
  outline: 2px solid rgba(126, 240, 247, 0.9);
  outline-offset: 2px;
}

.social-link.youtube:hover {
  color: #ff4d5a;
}

.social-link.facebook:hover {
  color: #7fa5ff;
}

.social-link.instagram:hover {
  color: #ff73b3;
}

.social-link.x:hover {
  color: #ffffff;
}

.social-link.tiktok:hover {
  color: #8af1f7;
}

.social-link.spotify:hover {
  color: #5eff94;
}

.social-link.telegram:hover {
  color: #7fd6ff;
}

.social-link.discord:hover {
  color: #9fa8ff;
}

.social-link.whatsapp:hover {
  color: #6df79b;
}

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

.footer-links,
.footer-legal {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a,
.footer-legal a {
  color: #dbe3fb;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: #ffffff;
}

.disclaimer {
  margin: 2rem auto 0;
  max-width: 70ch;
  color: #b7c2de;
}

.copyright {
  margin-top: 5rem;
  color: #98a5c8;
}

.rail-track .card {
  cursor: pointer;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  padding: 2.5rem 1rem;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.netflix-modal {
  position: relative;
  width: min(920px, 96vw);
  margin-bottom: 2rem;
  border-radius: 14px;
  background: #181b23;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transform: translateY(18px) scale(0.98);
  transition: transform 0.24s ease;
}

.modal-backdrop.open .netflix-modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(9, 11, 16, 0.78);
  color: #ecf1ff;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(18, 23, 35, 0.95);
}

.modal-hero {
  min-height: clamp(220px, 40vh, 340px);
  display: flex;
  align-items: flex-end;
  padding: 1.4rem;
  position: relative;
  background-image: linear-gradient(
      0deg,
      rgba(9, 12, 19, 0.92) 2%,
      rgba(9, 12, 19, 0.35) 52%,
      rgba(9, 12, 19, 0.22) 100%
    ),
    linear-gradient(120deg, rgba(70, 234, 242, 0.2), rgba(255, 45, 141, 0.16)),
    url("./assets/web.png");
  background-size: cover, cover, cover;
  background-position: center, center, var(--modal-focus-x, 50%) var(--modal-focus-y, 35%);
}

.modal-hero-overlay {
  width: min(520px, 100%);
}

.modal-kicker {
  margin: 0;
  color: #9bb0de;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: "Montserrat", sans-serif;
}

.modal-hero h2 {
  margin: 0.48rem 0 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-family: "Montserrat", sans-serif;
  line-height: 1.06;
}

.modal-subtitle {
  margin: 0.58rem 0 0;
  color: #d7def1;
}

.modal-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.modal-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(9, 12, 18, 0.75);
  color: #f2f5ff;
  font-size: 1.1rem;
  cursor: pointer;
}

.modal-content {
  padding: 1.2rem 1.4rem 1.6rem;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0.22rem 0.56rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.76rem;
  color: #dce4ff;
  background: rgba(13, 18, 28, 0.45);
}

.modal-description {
  margin: 0.95rem 0 0;
  color: #d0d8ee;
  max-width: 80ch;
}

.modal-grid {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.modal-col h3 {
  margin: 0;
  font-size: 1rem;
  font-family: "Montserrat", sans-serif;
}

.modal-list {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  color: #bac8e8;
  display: grid;
  gap: 0.42rem;
}

body.modal-open {
  overflow: hidden;
}

.mobile-nav {
  display: none;
}

@media (max-width: 1110px) {
  .main-nav {
    gap: 0.82rem;
  }

  .main-nav a {
    font-size: 0.84rem;
  }
}

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(8, 11, 20, 0.75);
    color: #eaf0ff;
    font-family: "Montserrat", sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
  }

  .main-nav {
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    top: calc(100% + 0.45rem);
    margin: 0;
    padding: 0.7rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(9, 12, 20, 0.98);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 0.56rem;
  }

  .join-btn {
    margin-left: 0;
  }

  .hero h1 {
    max-width: 14ch;
    font-size: clamp(1.9rem, 6vw, 3rem);
  }

  .rail-track {
    grid-auto-columns: clamp(205px, 44vw, 262px);
  }

  .rail-track-top6 {
    grid-auto-columns: clamp(210px, 42vw, 255px);
  }

  .newsletter-cta {
    grid-template-columns: 1fr;
  }

  .quiz-answers {
    grid-template-columns: 1fr;
  }

  .runner-wrap {
    grid-template-columns: 1fr;
  }

  .runner-hud {
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
  }

  .runner-hud .btn {
    grid-column: 1 / -1;
  }

  .runner-state {
    grid-column: 1 / -1;
  }

  .modal-backdrop {
    padding: 1.2rem 0.65rem 4.2rem;
  }

  .netflix-modal {
    width: min(780px, 100%);
  }

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

  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(8, 11, 19, 0.96);
    backdrop-filter: blur(8px);
    z-index: 55;
  }

  .mobile-nav a {
    text-align: center;
    padding: 0.58rem 0.2rem 0.62rem;
    font-size: 0.72rem;
    color: #cdd5ea;
  }

  body {
    padding-bottom: 54px;
  }
}

@media (max-width: 640px) {
  .container,
  .topbar-inner {
    width: min(1320px, calc(100% - 1.2rem));
  }

  .topbar-inner {
    min-height: 64px;
  }

  .brand img {
    height: 30px;
  }

  .join-btn {
    display: none;
  }

  main {
    padding-top: 64px;
  }

  .hero {
    min-height: 64vh;
    background-position: 60% top;
  }

  .hero-content {
    padding-bottom: 2.3rem;
  }

  .hero-kicker {
    font-size: 1.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 9.3vw, 2.6rem);
  }

  .hero-meta {
    gap: 0.55rem 0.9rem;
    font-size: 0.86rem;
  }

  .btn {
    padding: 0.64rem 0.95rem;
    font-size: 0.86rem;
  }

  .catalog {
    margin-top: -0.4rem;
  }

  .rail {
    margin-top: 1.2rem;
  }

  .rail-track {
    grid-auto-columns: clamp(170px, 64vw, 220px);
  }

  .rail-head-top6 h2 {
    font-size: clamp(1.25rem, 6vw, 1.62rem);
  }

  .rail-track-top6 {
    grid-auto-columns: clamp(185px, 72vw, 230px);
  }

  .top6-card {
    min-height: 230px;
  }

  .newsletter-cta {
    padding: 1rem;
    margin-top: 1.35rem;
  }

  .interactive-block {
    padding: 1rem;
    margin-top: 1.35rem;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .newsletter-form .btn {
    width: 100%;
  }

  .quiz-answers {
    grid-template-columns: 1fr;
  }

  .quiz-foot .btn {
    width: 100%;
  }

  .card {
    height: 110px;
    border-radius: 10px;
    padding: 0.62rem;
  }

  .card h3 {
    font-size: 0.94rem;
  }

  .card p {
    font-size: 0.72rem;
  }

  .footer-content {
    padding-top: 3.2rem;
  }

  .modal-backdrop {
    padding: 0.6rem 0.35rem 4rem;
  }

  .netflix-modal {
    border-radius: 12px;
  }

  .modal-close {
    right: 0.75rem;
    top: 0.75rem;
    width: 34px;
    height: 34px;
  }

  .modal-hero {
    min-height: 230px;
    padding: 1rem;
  }

  .modal-content {
    padding: 1rem 1rem 1.2rem;
  }

  .modal-description {
    font-size: 0.92rem;
  }

  .modal-meta {
    gap: 0.35rem;
  }

  .meta-item {
    font-size: 0.72rem;
  }

  .social-stack {
    gap: 0.55rem;
  }

  .social-row {
    gap: 0.4rem;
  }

  .social-link {
    width: 40px;
    height: 40px;
  }

  .social-link svg {
    width: 16px;
    height: 16px;
  }

  .disclaimer {
    font-size: 0.92rem;
  }
}

@media (max-width: 430px) {
  .social-row-top {
    flex-wrap: wrap;
    max-width: 290px;
  }
}
