/* ============ FONTS ============ */
@font-face {
  font-family: "MinecraftEvenings";
  src: url("/fonts/MinecraftEvenings-lgvPd.ttf") format("truetype");
  /* font-weight: 400;
  font-style: normal;
  font-display: swap; */
}
@font-face {
  font-family: "minecraft_ten";
  src: url("/fonts/minecraft-ten-font-cyrillic.ttf") format("truetype");
  /* font-weight: 400;
  font-style: normal;
  font-display: swap; */
}

/* ============ BASE ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: #0b0d10;
  color: #f2f4f7;
  font-family:
    "Geologica",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow {
  max-width: 820px;
}
.section {
  padding: clamp(56px, 8vw, 96px) 0;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  /* letter-spacing: -0.01em; */
  margin: 0 0 20px;
}
.section-lead {
  color: #9aa3ad;
  font-size: clamp(16px, 1.6vw, 18px);
  margin: 0 0 28px;
}
.section-muted {
  color: #9aa3ad;
  font-size: 14px;
  margin-top: 20px;
}
.section-muted a {
  color: #7cff6b;
  border-bottom: 1px dashed rgba(124, 255, 107, 0.5);
}

/* ============ GLOBAL SCROLLBAR ============ */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 255, 107, 0.35) transparent;
}

body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body::-webkit-scrollbar-track {
  background: transparent;
}

body::-webkit-scrollbar-thumb {
  background: rgba(124, 255, 107, 0.35);
  border-radius: 999px;
  transition: background 0.2s ease;
}

body::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 255, 107, 0.6);
}

body::-webkit-scrollbar-thumb:active {
  background: #7cff6b;
}

body::-webkit-scrollbar-corner {
  background: transparent;
}

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 13, 16, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(11, 13, 16, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
  position: relative;
}

.logo_wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  width: 233px;
  height: 55px;
  /* border: 1px solid tomato; */
}

.logo {
  width: 49px;
  height: 39px;
  background-image: url(..//img/logo.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 4px;
  /* border: 1px solid tomato; */
}

.logo_text_wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  line-height: 19px;
  padding-top: 11px;
  /* border: 1px solid sandybrown; */
}

.site-header__logo {
  font-family: "Geologica", system-ui, sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex: 0 0 auto;
  text-shadow: none;
  z-index: 2;
}

.logo_text {
  font-size: 12px;
  letter-spacing: 3px;
}

@media (max-width: 374px) {
  .logo_text {
    letter-spacing: 2px;
  }
}

/* ——— Desktop nav ——— */
.site-nav {
  display: flex;
  gap: 24px;
  font-family: "Geologica", system-ui, sans-serif;
  font-size: 15px;
  color: #9aa3ad;
  white-space: nowrap;
  flex: 0 0 auto;
}

.site-nav a {
  transition: color 0.2s ease;
  text-shadow: none;
}
.site-nav a:hover {
  color: #7cff6b;
}

/* ——— Burger (скрыт по умолчанию) ——— */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

.burger span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 5px auto;
  background: #f2f4f7;
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.2s ease,
    background 0.2s ease;
  transform-origin: center;
}

/* Крестик */
.burger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.is-active span:nth-child(2) {
  opacity: 0;
}
.burger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ——— Mobile ≤767px ——— */
@media (max-width: 767px) {
  .burger {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 64px; /* высота хедера */
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 0 20px;
    background: rgba(11, 13, 16, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
    z-index: 1;
  }

  .site-nav a {
    padding: 14px 24px;
    font-size: 16px;
    color: #f2f4f7;
  }
  .site-nav a:hover {
    color: #7cff6b;
  }

  /* Открытое состояние */
  body.menu-open .site-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Блокируем скролл под меню */
  body.menu-open {
    overflow: hidden;
  }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  /* height: 100vh; */
  height: 620px;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: -10% 0 -10% 0;
  z-index: -2;
  will-change: transform;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  /* background:
    radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0.25) 0%,
      rgba(0, 0, 0, 0.75) 100%
    ),
    linear-gradient(
      180deg,
      rgba(11, 13, 16, 0.35) 0%,
      rgba(11, 13, 16, 0.9) 100%
    ); */
}
.hero__content {
  position: relative;
  text-align: center;
  padding: 0 24px;
  will-change: transform;
}
.hero__title {
  font-family: "Minecraft_ten";
  font-size: clamp(33px, 6vw, 66px);
  font-weight: 800;
  letter-spacing: 0.25em;
  margin: 0 0 16px;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
  .hero__title-sur {
    color: rgb(255, 170, 0);
  }
  /* .hero__title-sur,
  .hero__title-frontier {
    text-shadow:
      3px 3px 0 #000,
      -3px 3px 0 #000,
      3px -3px 0 #000,
      -3px -3px 0 #000,
      3px 0 0 #000,
      -3px 0 0 #000,
      0 3px 0 #000,
      0 -3px 0 #000,
      0 6px 40px rgba(0, 0, 0, 0.6);
  } */

  .hero__title-frontier {
    color: rgb(85, 255, 255);
    margin-left: 0.25em; /* отступ между словами */
  }
}
.hero__subtitle {
  font-size: clamp(16px, 2vw, 22px);
  color: #9aa3ad;
  margin: 0;
}
.hero__scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
}
.hero__scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: #7cff6b;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s infinite ease-in-out;
}
@keyframes scrollDot {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  70% {
    transform: translate(-50%, 14px);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, 14px);
    opacity: 0;
  }
}

/* ============ ABOUT ============ */
.about {
  padding: clamp(72px, 10vw, 120px) 0;
}
.about__head {
  max-width: 780px;
  margin-bottom: 56px;
}
.about__lead {
  color: #9aa3ad;
  font-size: clamp(16px, 1.6vw, 19px);
  margin: 0;
}

@media (max-width: 374px) {
  .about__lead {
    font-size: 14px;
  }
}

.rules {
  list-style: none;
  padding: 0;
  margin: 0 0 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.rules__item {
  display: flex;
  gap: 18px;
  padding: 22px;
  background: #12151a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* border-radius: 14px; */
  height: 177px;
  transition:
    border-color 0.25s ease,
    transform 0.25s ease;
  /* border: 1px solid tomato; */
}

@media (max-width: 374px) {
  .rules__item h3 {
    font-size: 15px !important;
  }
  .rules__item p {
    font-size: 13px !important;
  }
}

.rules__item:hover {
  border-color: rgba(124, 255, 107, 0.35);
  transform: translateY(-2px);
}
.rules__item h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
}
.rules__item p {
  margin: 0;
  color: #9aa3ad;
  font-size: 14.5px;
}
.rules__num {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  color: #7cff6b;
  letter-spacing: 0.08em;
  padding-top: 3px;
}
.constitution-link {
  display: inline-block;
  font-weight: 500;
  color: #7cff6b;
  border-bottom: 1px dashed rgba(124, 255, 107, 0.5);
  padding-bottom: 2px;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

@media (max-width: 374px) {
  .constitution-link {
    font-size: 13px;
  }
}

.constitution-link:hover {
  color: #3ddc84;
  border-color: #3ddc84;
}

.constitution-link span {
  display: inline-block;
  transition: transform 0.2s ease;
}
.constitution-link:hover span {
  transform: translate(2px, -2px);
}

/* ============ CTA & BTN ============ */
.cta {
  padding: 20px 0 clamp(80px, 10vw, 120px);
}
.cta__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  /* border: 1px solid tomato; */
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  /* border-radius: 11px; */
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn--primary {
  background: #7cff6b;
  color: #07120a;
  width: 255px;
  /* border: 1px solid sandybrown; */
}
.btn--primary:hover {
  background: #3ddc84;
}
.btn--ghost {
  background: transparent;
  color: #f2f4f7;
  width: 255px;
  border-color: rgba(255, 255, 255, 0.25);
}
.btn--ghost:hover {
  border-color: #7cff6b;
  color: #7cff6b;
}

/* ============ FORM ============ */
.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 8px 0 4px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field__label {
  font-size: 14px;
  color: #9aa3ad;
}
.field input {
  font-family: inherit;
  font-size: 16px;
  padding: 14px 16px;
  background: #12151a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #f2f4f7;
  outline: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
.field input:focus {
  border-color: #7cff6b;
  background: #0f1216;
}
.notice {
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.notice--ok {
  background: rgba(124, 255, 107, 0.08);
  border-color: rgba(124, 255, 107, 0.35);
  color: #c7ffbe;
}
.notice--err {
  background: rgba(255, 90, 90, 0.08);
  border-color: rgba(255, 90, 90, 0.35);
  color: #ffc4c4;
}

/* ============ PROSE ============ */
.prose {
  color: #d6dbe1;
}
.prose h2 {
  font-size: 20px;
  margin: 32px 0 12px;
  color: #f2f4f7;
}
.prose p,
.prose li {
  color: #9aa3ad;
  font-size: 15.5px;
}
.prose a {
  color: #7cff6b;
  border-bottom: 1px dashed rgba(124, 255, 107, 0.5);
}
.prose ul {
  padding-left: 20px;
}

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 48px 0 32px;
  margin-top: 40px;
  background: #0a0c0f;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
}
.site-footer__col a {
  color: #9aa3ad;
  transition: color 0.2s ease;
}
.site-footer__col a:hover {
  color: #7cff6b;
}
.site-footer__brand {
  font-weight: 800;
  font-size: 18px;
  color: #f2f4f7;
}
.site-footer__muted {
  color: #6b737c;
  font-size: 13.5px;
}
/* ============ DOC HERO ============ */
.doc-hero {
  padding: 160px 0 56px; /* 160px ≈ высота хедера + воздух */
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(
      ellipse at 30% 0%,
      rgba(124, 255, 107, 0.06) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 90% 20%,
      rgba(85, 255, 255, 0.05) 0%,
      transparent 55%
    );
}

.doc-hero__eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: #7cff6b;
  font-weight: 600;
}

.doc-hero__title {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.doc-hero__lead {
  margin: 0;
  /* max-width: 720px; */
  color: #9aa3ad;
  font-size: clamp(16px, 1.6vw, 18px);
  /* font-style: italic; */
}

/* ============ DOC LAYOUT ============ */
.doc {
  padding: 56px 0 96px;
}

.doc__layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
}

/* ——— TOC ——— */
.doc__toc {
  position: sticky;
  top: 96px;
  align-self: start;
  font-size: 14.5px;
}

.doc__toc-title {
  margin: 0 0 14px;
  color: #6b737c;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

.doc__toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 16px;
}

.doc__toc a {
  display: block;
  color: #9aa3ad;
  padding: 4px 0;
  transition:
    color 0.18s ease,
    transform 0.18s ease;
}

.doc__toc a:hover {
  color: #7cff6b;
  transform: translateX(2px);
}

/* ——— Body ——— */
.doc__body section + section {
  margin-top: 48px;
}

.doc__body h2 {
  margin: 0 0 20px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f2f4f7;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.doc__chapter-num {
  display: inline-block;
  margin-right: 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7cff6b;
  font-weight: 700;
  vertical-align: middle;
}

.doc__body p {
  margin: 0 0 14px;
  color: #c8ced5;
  font-size: 16px;
  line-height: 1.7;
}

/* ——— Numbered lists ——— */
.doc__list {
  list-style: none;
  counter-reset: doc;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.doc__list > li {
  counter-increment: doc;
  position: relative;
  padding-left: 44px;
  color: #c8ced5;
  font-size: 16px;
  line-height: 1.65;
}

.doc__list > li::before {
  content: counter(doc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 13px;
  font-weight: 700;
  color: #7cff6b;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.doc__list strong {
  color: #f2f4f7;
  font-weight: 600;
}

.doc__list--plain > li::before {
  content: "—";
  color: #6b737c;
}

/* ——— Penalty highlight ——— */
.doc__penalty {
  color: #ff9b8a;
  font-weight: 600;
  background: rgba(255, 107, 90, 0.08);
  border-radius: 4px;
  padding: 1px 6px;
}

/* ——— Divider & meta ——— */
.doc__divider {
  margin: 56px 0 24px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.doc__meta {
  color: #6b737c;
  font-size: 14px;
}

.doc__meta a {
  color: #7cff6b;
  border-bottom: 1px dashed rgba(124, 255, 107, 0.5);
}

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .doc__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .doc__toc {
    position: sticky;
    top: 64px; /* ровно под хедером */
    padding: 10px 11px;
    background: #12151a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    z-index: 40;
  }

  .doc__toc a.is-active::before {
    display: none;
  }

  .doc__toc-title {
    margin: 3px 0px 3px;
    /* border: 1px solid; */
  }

  .doc__toc ol {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px 11px;
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  .doc-hero {
    padding: 120px 0 40px;
  }
  .doc__body h2 {
    font-size: 22px;
  }
  .doc__list > li {
    padding-left: 36px;
    font-size: 15.5px;
  }
}
/* Активный пункт в TOC */
.doc__toc a.is-active {
  color: #7cff6b;
  font-weight: 600;
}

.doc__toc a.is-active::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 18px;
  background: #7cff6b;
  border-radius: 2px;
}

.doc__toc li {
  position: relative;
}

/* Учитываем фиксированный хедер при переходе по якорям */
.doc__body section[id] {
  scroll-margin-top: 96px;
}
/* ============ MODAL ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: min(84vh, 900px);
  background: #12151a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column; /* шапка / скролл / подвал */
  overflow: hidden; /* чтобы радиусы не резались */
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.modal.is-open .modal__backdrop {
  opacity: 1;
}
.modal.is-open .modal__dialog {
  transform: none;
  opacity: 1;
}

/* ——— Верх ——— */
.modal__head {
  flex: 0 0 auto;
  padding: 32px 40px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 13, 16, 0.7);
  color: #f2f4f7;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
  z-index: 2;
}
.modal__close:hover {
  background: rgba(124, 255, 107, 0.1);
  border-color: rgba(124, 255, 107, 0.4);
  color: #7cff6b;
}

.modal__title {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #f2f4f7;
  padding-right: 44px; /* чтобы не залезал под крестик */
}

.modal__subtitle {
  margin: 0;
  color: #9aa3ad;
  font-size: 15px;
  line-height: 1.55;
  padding-right: 44px;
}

/* ——— Середина (скролл) ——— */
.modal__body {
  flex: 1 1 auto;
  min-height: 0; /* важно для flex + overflow */
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 40px 28px;
}

/* ============ MODAL SCROLLBAR ============ */
.modal__body::-webkit-scrollbar {
  width: 8px;
}

.modal__body::-webkit-scrollbar-track {
  background: transparent;
  margin: 12px 0; /* отступы сверху/снизу, чтобы ползунок не прилипал к краям */
}

.modal__body::-webkit-scrollbar-thumb {
  background: rgba(124, 255, 107, 0.35);
  border-radius: 999px;
  transition: background 0.2s ease;
}

.modal__body::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 255, 107, 0.6);
}

.modal__body::-webkit-scrollbar-thumb:active {
  background: #7cff6b;
}

/* Firefox */
.modal__body {
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 255, 107, 0.35) transparent;
}

/* ============ MODAL SCROLLBAR ============ */

.modal__body h3 {
  margin: 28px 0 12px;
  font-size: 17px;
  font-weight: 700;
  color: #f2f4f7;
  letter-spacing: -0.005em;
}
.modal__body h3:first-child {
  margin-top: 0;
}

.modal__body p {
  margin: 0 0 12px;
  color: #c8ced5;
  font-size: 13px;
  line-height: 1.7;
}

.modal__body a {
  color: #7cff6b;
  border-bottom: 1px dashed rgba(124, 255, 107, 0.5);
}
.modal__body a:hover {
  border-color: #7cff6b;
}

.modal__date {
  margin-top: 32px !important;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #6b737c !important;
  font-size: 13.5px !important;
}

/* ——— Низ ——— */
.modal__foot {
  flex: 0 0 auto;
  padding: 16px 40px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
  background: #12151a;
}

.modal__ok {
  min-width: 120px;
  padding: 12px 28px;
  font-size: 15px;
}

body.modal-open {
  overflow: hidden;
}

/* ——— Мобилка ——— */
@media (max-width: 640px) {
  .modal {
    padding: 0;
    align-items: flex-end;
  }
  .modal__dialog {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
    transform: translateY(24px);
  }
  .modal__head {
    padding: 24px 20px 16px;
  }
  .modal__title {
    font-size: 20px;
    padding-right: 40px;
  }
  .modal__subtitle {
    font-size: 14px;
    padding-right: 40px;
  }
  .modal__body {
    padding: 20px 20px 24px;
  }
  .modal__foot {
    padding: 12px 20px 16px;
  }
  .modal__ok {
    width: 100%;
  }
}
/* ——— copy mail ——— */
.mail-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mail-copy__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6b737c;
  cursor: pointer;
  border-radius: 6px;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}
.mail-copy__btn:hover {
  color: #7cff6b;
  background: rgba(124, 255, 107, 0.08);
}
.mail-copy__btn.is-copied {
  color: #7cff6b;
}
/* ——— copy mail ——— */
/* ============ 404 ============ */
.notfound {
  padding: 160px 0 120px;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(
      ellipse at 20% 10%,
      rgba(255, 170, 0, 0.06) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 85% 90%,
      rgba(85, 255, 255, 0.05) 0%,
      transparent 55%
    );
}

.notfound__inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.notfound__code {
  margin: 0 0 12px;
  font-family: "MinecraftEvenings", "Geologica", system-ui, sans-serif;
  font-size: clamp(96px, 22vw, 220px);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 0%, #9aa3ad 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    2px 2px 0 rgba(0, 0, 0, 0.5),
    -2px 2px 0 rgba(0, 0, 0, 0.5),
    2px -2px 0 rgba(0, 0, 0, 0.5),
    -2px -2px 0 rgba(0, 0, 0, 0.5);
  user-select: none;
}

.notfound__title {
  margin: 0 0 16px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f2f4f7;
}

.notfound__lead {
  margin: 0 auto 36px;
  max-width: 520px;
  color: #9aa3ad;
  font-size: 16px;
  line-height: 1.65;
}

.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 44px;
}

.notfound__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: center;
  font-size: 14.5px;
  color: #6b737c;
}

.notfound__links a {
  color: #9aa3ad;
  border-bottom: 1px dashed transparent;
  padding-bottom: 2px;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}
.notfound__links a:hover {
  color: #7cff6b;
  border-color: rgba(124, 255, 107, 0.5);
}

@media (max-width: 640px) {
  .notfound {
    padding: 120px 0 80px;
  }
  .notfound__actions .btn {
    width: 100%;
  }
}
/* ============ 404 ============ */
/* ============ PASS ============ */
/* ============ PASS / DONATE ============ */
.pass {
  padding: 99px 0 55px;
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(124, 255, 107, 0.06) 0%,
      transparent 55%
    ),
    #0b0d10;
}

@media (max-width: 768px) {
  .pass {
    padding: 99px 0 11px;
  }
}

.pass__inner {
  max-width: 560px;
  margin: 0 auto;
}

.pass__head {
  text-align: center;
  margin-bottom: 28px;
}

.pass__eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: #7cff6b;
  font-weight: 600;
}

/* ============ PASS TITLE (two-line logo style) ============ */
.pass__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  line-height: 1.05;
}

@media (max-width: 374px) {
  .pass__title {
    font-size: 27px;
  }
}

.pass__title-line1 {
  display: block;
  font-family: "Geologica", system-ui, sans-serif;
  font-weight: 800;
  /* letter-spacing: -0.02em; */
  color: #f2f4f7;
}

@media (max-width: 424px) {
  .pass__title-line1 {
    font-size: 25px;
  }
  .pass__title-line2 {
    font-size: 37px !important;
  }
}

.pass__title-line2 {
  display: block;
  font-family:
    "MinecraftTen", "MinecraftEvenings", "Geologica", system-ui, sans-serif;
  margin-top: 4px;
  font-weight: normal;
  font-size: 48px;
}

.pass__title-sur {
  color: rgb(255, 170, 0);
}

.pass__title-frontier {
  color: rgb(85, 255, 255);
  margin-left: 0.28em;
}

/* Белая обводка 2px — как у логотипа */
/* .pass__title-sur,
.pass__title-frontier {
  text-shadow:
    2px 2px 0 #fff,
    -2px 2px 0 #fff,
    2px -2px 0 #fff,
    -2px -2px 0 #fff,
    2px 0 0 #fff,
    -2px 0 0 #fff,
    0 2px 0 #fff,
    0 -2px 0 #fff,
    0 6px 24px rgba(0, 0, 0, 0.5);
} */

.pass__lead {
  margin: 0 auto;
  max-width: 480px;
  color: #9aa3ad;
  font-size: 16px;
  line-height: 1.65;
}

@media (max-width: 495px) {
  .pass__lead {
    font-size: 13px;
  }
}

.pass__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin: 32px 0 28px;
  padding: 24px;
  background: #12151a;
  border: 1px solid rgba(124, 255, 107, 0.25);
  /* border-radius: 16px; */
}

.pass__price-value {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  color: #f2f4f7;
  letter-spacing: -0.02em;
  line-height: 1;
}

.pass__price-period {
  color: #9aa3ad;
  font-size: 16px;
}

.pass__features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pass__features li {
  position: relative;
  padding-left: 28px;
  color: #c8ced5;
  font-size: 15.5px;
  line-height: 1.55;
}

.pass__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 8px;
  border-left: 2px solid #7cff6b;
  border-bottom: 2px solid #7cff6b;
  transform: rotate(-45deg);
}

.pass__notice {
  margin: 0 0 28px;
  padding: 18px 20px;
  background: rgba(124, 255, 107, 0.05);
  border: 1px solid rgba(124, 255, 107, 0.18);
  /* border-radius: 14px; */
  font-size: 14.5px;
  line-height: 1.6;
  color: #c8ced5;
}

.pass__notice p {
  margin: 0 0 8px;
}
.pass__notice p:last-child {
  margin-bottom: 0;
}
.pass__notice strong {
  color: #f2f4f7;
}
.pass__notice a {
  color: #7cff6b;
  border-bottom: 1px dashed rgba(124, 255, 107, 0.5);
}

/* ——— Формы на /pass и /donate ——— */

.pass form .cancel_label {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* .pass form label {
  margin-bottom: 7px;
} */

.pass form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pass form label {
  color: #9aa3ad;
  font-size: 14px;
}

.pass form input[type="text"],
.pass form input[type="number"] {
  font-family: inherit;
  font-size: 16px;
  padding: 14px 16px;
  background: #12151a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* border-radius: 12px; */
  color: #f2f4f7;
  outline: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.pass form input:focus {
  border-color: #7cff6b;
  background: #0f1216;
}

.pass form input[type="number"]::-webkit-outer-spin-button,
.pass form input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none; /* выключаем нативный вид */
  margin: 0; /* убираем отступ, который браузер оставляет */
}

.pass form input[type="number"] {
  -moz-appearance: textfield; /* Firefox: рендерим как текстовое поле */
  appearance: textfield; /* стандарт для будущих браузеров */
}

.pass form button[type="submit"] {
  margin-top: 6px;
  padding: 16px 32px;
  border: 0;
  /* border-radius: 999px; */
  background: #7cff6b;
  color: #07120a;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.pass form button[type="submit"]:hover:not([disabled]) {
  background: #3ddc84;
  transform: translateY(-2px);
}

.pass form button[type="submit"][disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

#passError,
#donateError {
  padding: 12px 16px;
  /* border-radius: 12px; */
  background: rgba(255, 90, 90, 0.08);
  border: 1px solid rgba(255, 90, 90, 0.35);
  font-size: 14.5px;
}

.pass__legal {
  margin: 20px 0 0;
  text-align: center;
  color: #6b737c;
  font-size: 13px;
  line-height: 1.55;
}
.pass__legal a {
  color: #9aa3ad;
  border-bottom: 1px dashed rgba(154, 163, 173, 0.4);
}
.pass__legal a:hover {
  color: #7cff6b;
  border-color: rgba(124, 255, 107, 0.5);
}
/* ============ PASS ============ */
/* ============ DONATE ============ */
/* ============ DONATE THANKS ============ */
.pass__thanks {
  text-align: center;
  padding: 36px 24px;
  background: #12151a;
  border: 1px solid rgba(124, 255, 107, 0.25);
  border-radius: 16px;
  margin-bottom: 24px;
}

.pass__thanks-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(124, 255, 107, 0.12);
  border: 2px solid #7cff6b;
  color: #7cff6b;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.pass__thanks-title {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #f2f4f7;
}

.pass__thanks-text {
  margin: 0 0 22px;
  color: #9aa3ad;
  font-size: 15.5px;
  line-height: 1.6;
}
/* ============ DONATE ============ */
/* ============CheckBox============ */
/* ============ AGREEMENT CHECKBOX ============ */
.agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
  color: #9aa3ad;
  user-select: none;
}

.agree input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.agree__box {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  background: #12151a;
  position: relative;
  margin-top: 1px;
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}

.agree__box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #07120a;
  border-bottom: 2px solid #07120a;
  transform: rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform 0.15s ease;
}

.agree input[type="checkbox"]:checked + .agree__box {
  background: #7cff6b;
  border-color: #7cff6b;
}
.agree input[type="checkbox"]:checked + .agree__box::after {
  transform: rotate(45deg) scale(1);
}

.agree input[type="checkbox"]:focus-visible + .agree__box {
  outline: 2px solid #7cff6b;
  outline-offset: 2px;
}

.agree:hover .agree__box {
  border-color: rgba(124, 255, 107, 0.6);
}

.agree__text a {
  color: #7cff6b;
  border-bottom: 1px dashed rgba(124, 255, 107, 0.5);
  transition: border-color 0.2s ease;
}
.agree__text a:hover {
  border-color: #7cff6b;
}

/* Кнопка в disabled-состоянии */
.pass form button[type="submit"][disabled] {
  background: #2a2f36;
  color: #6b737c;
  cursor: not-allowed;
  opacity: 1;
  transform: none;
}
.pass form button[type="submit"][disabled]:hover {
  background: #2a2f36;
  transform: none;
}
/* ============CheckBox============ */

/* ============ PAY METHODS ============ */
.pay-methods {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pay-methods__list {
  width: 77%;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  opacity: 0.5;
  /* border: 1px solid tomato; */
}

.pay-methods__item {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  /* border: 1px solid tomato; */
  /* padding: 6px 10px; */
  /* background: #12151a; */
  /* border: 1px solid rgba(255, 255, 255, 0.08); */
  /* border-radius: 10px; */
  /* transition:
    border-color 0.2s ease,
    transform 0.2s ease; */
}

/* .pay-methods__item:hover {
  border-color: rgba(124, 255, 107, 0.35);
  transform: translateY(-1px);
} */

.pay-methods__item img {
  display: block;
  height: 55px;
  width: 55px;
  /* border: 1px solid tomato; */
}

@media (max-width: 374px) {
  .pay-methods__item img {
    width: 44px;
    height: 44px;
  }
}
