/* ============================================
   SECTIONS.CSS — All landing page sections
   ============================================ */

/* ============================
   1. NAVBAR
   ============================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 2.5rem;
  background: rgba(14, 16, 27, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow 0.3s;
  -webkit-mask: none;
  mask: none;
}

.nav.scrolled {
  box-shadow: 0 10px 30px rgba(36, 30, 10, 0.4);
}

/* Left block: logo + menu side by side */
.nav__left {
  display: flex;
  align-items: center;
  gap: 3rem;
  height: 100%;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 100%;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  height: 100%;
  flex-shrink: 0;
}

.logo__img {
  height: 48px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(255, 173, 51, 0.25));
  transition: filter 0.3s;
}

.logo:hover .logo__img {
  filter: drop-shadow(0 2px 16px rgba(255, 196, 107, 0.55));
}

/* Menu */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  height: 100%;
}

.nav__menu-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  font-family: 'Oswald', 'PT Sans Narrow', Tahoma, sans-serif;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav__menu-item:hover {
  color: var(--accent-gold);
}

.nav__menu-item::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent-gold);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.3s ease;
}

.nav__menu-item:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* Dropdown — Скачать игру */
.nav__dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.nav__dropdown-trigger {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  gap: 0.4rem;
}

.nav__dropdown-caret {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.nav__dropdown:hover .nav__dropdown-caret,
.nav__dropdown:focus-within .nav__dropdown-caret {
  transform: rotate(180deg);
}

.nav__dropdown:hover .nav__dropdown-trigger,
.nav__dropdown:focus-within .nav__dropdown-trigger {
  color: var(--accent-gold);
}

.nav__dropdown:hover .nav__dropdown-trigger::after,
.nav__dropdown:focus-within .nav__dropdown-trigger::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: -0.75rem;
  min-width: 300px;
  padding: 0.5rem;
  background: rgba(13, 18, 28, 0.97);
  border: 1px solid rgba(255, 196, 107, 0.22);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease-out,
    transform 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.15);
  backdrop-filter: blur(10px);
  z-index: 100;
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown:focus-within .nav__dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav__dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.nav__dropdown-item:hover,
.nav__dropdown-item:focus-visible {
  background: rgba(255, 196, 107, 0.08);
  border-left-color: var(--accent-gold);
  color: #fff;
  outline: none;
}

.nav__dropdown-icon {
  flex-shrink: 0;
  color: var(--accent-gold);
  transition: transform 0.25s;
}

.nav__dropdown-item:hover .nav__dropdown-icon {
  transform: scale(1.08);
}

.nav__dropdown-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.nav__dropdown-label {
  font-family: 'Oswald', 'PT Sans Narrow', Tahoma, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
}

.nav__dropdown-desc {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.3;
}

/* Language selector */
.lang-selector {
  position: relative;
}

.lang-selector__current {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 12px;
  transition: color 0.3s;
}

.lang-selector__current:hover {
  color: var(--text-primary);
}

.lang-selector__arrow {
  font-size: 8px;
  transition: transform 0.3s;
}

.lang-selector.open .lang-selector__arrow {
  transform: rotate(180deg);
}

.lang-selector__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  min-width: 80px;
  z-index: 10;
}

.lang-selector.open .lang-selector__dropdown {
  display: block;
}

.lang-selector__option {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-selector__option:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.navbar__login {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: color 0.3s;
  cursor: pointer;
}

.navbar__login:hover {
  color: var(--text-primary);
}


/* ============================
   2. HERO
   ============================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  -webkit-mask: none;
  mask: none;
  padding: 0;
}

/* === BACKGROUND VIDEO === */
.hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
  pointer-events: none;
  background: var(--bg-primary);
}

/* === OVERLAY === */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(14, 16, 27, 0.55) 0%,
      rgba(14, 16, 27, 0.45) 40%,
      rgba(14, 16, 27, 0.85) 75%,
      rgba(14, 16, 27, 1) 100%
    );
  box-shadow: inset 0 0 250px 100px rgba(14, 16, 27, 0.9);
}

/* === CONTENT === */
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
  max-width: 720px;
  width: 100%;
  padding: 0 2rem;
  margin: 0 auto;
}

.hero__title {
  font-family: 'Oswald', 'PT Sans Narrow', Tahoma, sans-serif;
  font-size: clamp(2rem, 6.5vw, 4.75rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 0.95;
  white-space: nowrap;
  text-align: center;
  background: linear-gradient(180deg, #fff0d4 20%, rgba(255, 221, 168, 0.6) 60%, rgba(255, 240, 212, 0.4) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.hero__subtitle {
  font-family: 'Oswald', 'PT Sans Narrow', Tahoma, sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
  color: var(--accent-gold);
  margin: 0;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}



/* ============================
   CLIENT SECTION
   ============================ */
.client {
  position: relative;
  width: 100%;
  padding: 6rem 0;
  background-color: var(--bg-primary);
  overflow: hidden;
  isolation: isolate;
}

.client__bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
  pointer-events: none;
  background: var(--bg-primary);
}

.client__bg-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(14, 16, 27, 1) 0,
      rgba(14, 16, 27, 0.92) 2.5rem,
      rgba(14, 16, 27, 0.45) 14%,
      rgba(14, 16, 27, 0.4) 60%,
      rgba(14, 16, 27, 0.92) calc(100% - 2.5rem),
      rgba(14, 16, 27, 1) 100%),
    linear-gradient(90deg,
      rgba(14, 16, 27, 0.55) 0%,
      rgba(14, 16, 27, 0.2) 45%,
      rgba(14, 16, 27, 0.5) 100%);
  box-shadow: inset 0 0 220px 70px rgba(14, 16, 27, 0.75);
}

.client__container {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  max-width: 1344px;
  margin: 0 auto;
  padding: 0 2.5rem;
  gap: 3rem 4rem;
  align-items: stretch;
}

.client__visual {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.client__visual-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 540px;
  padding-left: 1.5rem;
}

.client__visual-content::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 35%;
  background: linear-gradient(180deg,
    rgba(255, 173, 51, 0.85) 0%,
    rgba(255, 173, 51, 0.25) 60%,
    rgba(255, 173, 51, 0) 100%);
  transition: height 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s ease;
}

.client__visual-content:hover::before {
  height: 100%;
  box-shadow: 0 0 18px rgba(255, 173, 51, 0.45);
}

.client__visual-tagline {
  font-family: 'Oswald', 'PT Sans Narrow', Tahoma, sans-serif;
  font-size: 0.9375rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  transition: letter-spacing 0.45s ease, color 0.3s ease;
}

.client__visual-content:hover .client__visual-tagline {
  letter-spacing: 0.4em;
  color: #ffd27a;
}

.client__visual-caption {
  font-family: 'Oswald', 'PT Sans Narrow', Tahoma, sans-serif;
  font-size: clamp(1.625rem, 2.6vw, 2.25rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.85);
  transition: text-shadow 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.client__visual-content:hover .client__visual-caption {
  text-shadow:
    0 3px 14px rgba(0, 0, 0, 0.85),
    0 0 24px rgba(255, 173, 51, 0.4);
  transform: translateX(2px);
}

.client__resources {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.client__resource-item {
  margin: 0;
}

.client__resource {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.125rem;
  background: rgba(14, 16, 27, 0.65);
  border: 1px solid rgba(255, 196, 107, 0.18);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  overflow: hidden;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.client__resource::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
    transparent 0%,
    rgba(255, 173, 51, 0.14) 50%,
    transparent 100%);
  transform: translateX(-110%);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.client__resource:hover {
  background: rgba(24, 28, 38, 0.9);
  border-color: rgba(255, 196, 107, 0.5);
  transform: translateX(4px);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 173, 51, 0.18),
    0 0 32px rgba(255, 173, 51, 0.12);
}

.client__resource:hover::before {
  transform: translateX(110%);
}

.client__resource-icon {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  background: rgba(255, 173, 51, 0.1);
  border: 1px solid rgba(255, 196, 107, 0.3);
  filter: drop-shadow(0 2px 8px rgba(255, 173, 51, 0.2));
  transition: background 0.3s, color 0.3s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.client__resource:hover .client__resource-icon {
  background: rgba(255, 173, 51, 0.2);
  color: #ffd27a;
  transform: scale(1.06) rotate(-3deg);
}

.client__resource-text {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex-grow: 1;
  min-width: 0;
}

.client__resource-label {
  font-family: 'Oswald', 'PT Sans Narrow', Tahoma, sans-serif;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
}

.client__resource-desc {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.3;
}

.client__resource-arrow {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  opacity: 0.55;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.client__resource:hover .client__resource-arrow {
  opacity: 1;
  transform: translateX(5px);
}

.client__visual-note {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.client__visual-note-title {
  position: relative;
  margin: 0;
  padding-bottom: 0.45rem;
  font-family: 'Oswald', 'PT Sans Narrow', Tahoma, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 173, 51, 0.18);
}

.client__visual-note-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg,
    var(--accent-gold) 0%,
    rgba(255, 173, 51, 0) 100%);
}

.client__visual-note-text {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}

.client__content {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  /* Backdrop removed — content sits cleanly like .telegram-bot__content */
}

.client__tagline {
  font-family: 'Oswald', 'PT Sans Narrow', Tahoma, sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin: 0;
}

.client__heading {
  font-family: 'Oswald', 'PT Sans Narrow', Tahoma, sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
  color: #fff;
  margin: 0;
}

.client__lead {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 520px;
}

.client__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.client__feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(24, 28, 38, 0.5);
  border-left: 2px solid var(--accent-orange);
  transition: background 0.25s, transform 0.25s;
}

.client__feature:hover {
  background: rgba(255, 173, 51, 0.08);
  transform: translateX(4px);
}

.client__feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  background: rgba(255, 173, 51, 0.1);
  border: 1px solid rgba(255, 196, 107, 0.3);
  filter: drop-shadow(0 2px 8px rgba(255, 173, 51, 0.2));
}

.client__feature-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-grow: 1;
  min-width: 0;
}

.client__feature-title {
  font-family: 'Oswald', 'PT Sans Narrow', Tahoma, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}

.client__feature-desc {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

@media (max-width: 1024px) {
  .client__container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
  }
  .client__visual {
    grid-column: 1;
    grid-row: 1;
  }
  .client__content {
    grid-column: 1;
    grid-row: 2;
  }
}

@media (max-width: 640px) {
  .client {
    padding: 3rem 0;
  }
  .client__container {
    padding: 0 1rem;
  }
  .client__content {
    padding: 1.5rem 1.25rem;
  }
  .client__feature {
    padding: 0.875rem 1rem;
  }
  .client__resource {
    padding: 0.75rem 0.875rem;
    gap: 0.75rem;
  }
  .client__resource-icon {
    width: 42px;
    height: 42px;
  }
}


/* ============================
   ROADMAP (Swiper carousel)
   ============================ */
.roadmap {
  position: relative;
  width: 100%;
  background: var(--bg-primary);
  -webkit-mask: linear-gradient(180deg, transparent 0, #000 2.5rem, #000 calc(100% - 2.5rem), transparent);
}

.roadmap__swiper {
  width: 100%;
}

.stage {
  position: relative;
  width: 100%;
  height: min(780px, 85vh);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  padding-bottom: 8rem;
  overflow: hidden;
}

.stage__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(14, 16, 27, 1) 0%,
      rgba(14, 16, 27, 0.6) 12%,
      rgba(14, 16, 27, 0.4) 30%,
      rgba(14, 16, 27, 0.55) 60%,
      rgba(14, 16, 27, 1) 100%);
  box-shadow: inset 0 0 200px 80px rgba(14, 16, 27, 0.8);
  pointer-events: none;
  z-index: 1;
}

.stage__container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1344px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.stage__content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 900px;
}

.stage__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stage__header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stage__subtitle {
  font-family: 'Oswald', 'PT Sans Narrow', Tahoma, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin: 0;
}

.stage__title {
  font-family: 'Oswald', 'PT Sans Narrow', Tahoma, sans-serif;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.05;
  color: #fff;
  margin: 0;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.75);
}

.stage__duration {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  margin-top: 0.25rem;
  font-family: 'Oswald', 'PT Sans Narrow', Tahoma, sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold, #ffc46b);
  background: rgba(255, 196, 107, 0.08);
  border: 1px solid rgba(255, 196, 107, 0.35);
  border-radius: 999px;
  text-shadow: none;
}
/* Tiny clock dot — no external font needed */
.stage__duration::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.stage__description {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  max-width: 720px;
}

.stage__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem 2rem;
  list-style: disc;
  padding: 0 0 0 1.25rem;
  margin: 0;
}

.stage__feature {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  list-style-position: outside;
  padding-left: 0.25rem;
}

.stage__feature::marker {
  color: var(--accent-orange);
}

.stage__footer {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stage__btn {
  min-width: 260px;
}

.stage__nav {
  display: flex;
  gap: 1rem;
}

.stage__nav-btn {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  background: rgba(14, 16, 27, 0.6);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.stage__nav-btn:hover {
  background: rgba(255, 196, 107, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: scale(1.05);
}

.stage__nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

/* Progress panel */
.roadmap__progress {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 0.75rem;
  max-width: 1600px;
  margin: 0 auto;
  padding: 2.5rem 3rem 4rem;
}

.roadmap__progress-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.25s;
  min-width: 0;
}

.roadmap__progress-item:hover {
  opacity: 0.85;
}

.roadmap__progress-item.active {
  opacity: 1;
}

.roadmap__progress-num {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', 'PT Sans Narrow', Tahoma, sans-serif;
  font-size: 0.8125rem;
  color: #fff;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'><polygon points='4,4 24,4 28,14 24,24 4,24 0,14' fill='none' stroke='%23c74d07' stroke-width='1.5'/></svg>") no-repeat center/contain;
  flex-shrink: 0;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.32);
}

.roadmap__progress-item.active .roadmap__progress-num {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'><polygon points='4,4 24,4 28,14 24,24 4,24 0,14' fill='%23ffad33' stroke='%23ffc46b' stroke-width='1.5'/></svg>") no-repeat center/contain;
}

.roadmap__progress-content {
  display: flex;
  flex-direction: column-reverse; /* name on top, duration at bottom */
  gap: 0.375rem;
  flex-grow: 1;
  min-width: 0;
}

.roadmap__progress-duration {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.roadmap__progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.roadmap__progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-gold));
  transition: width 0.4s ease;
}

.roadmap__progress-item.active .roadmap__progress-fill {
  width: 100%;
}

.roadmap__progress-name {
  font-family: 'Oswald', 'PT Sans Narrow', Tahoma, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1400px) {
  .roadmap__progress { grid-template-columns: repeat(6, 1fr); gap: 1rem 0.75rem; }
}
@media (max-width: 1100px) {
  .stage__features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .roadmap__progress { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 700px) {
  .stage__features {
    grid-template-columns: 1fr;
  }
  .stage__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
}
@media (max-width: 600px) {
  .roadmap__progress { grid-template-columns: repeat(3, 1fr); padding: 1.5rem 1rem 3rem; }
}
@media (max-width: 420px) {
  .roadmap__progress { grid-template-columns: repeat(2, 1fr); }
}


/* ============================
   REGISTRATION SECTION
   ============================ */
.registration {
  position: relative;
  width: 100%;
  padding: 6rem 0;
  background-color: var(--bg-primary);
  background-image: url('../assets/images/reg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  -webkit-mask: linear-gradient(180deg, transparent 0, #000 2.5rem, #000 calc(100% - 2.5rem), transparent);
}

.registration::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(14, 16, 27, 0.85) 0%,
      rgba(14, 16, 27, 0.45) 18%,
      rgba(14, 16, 27, 0.35) 50%,
      rgba(14, 16, 27, 0.55) 82%,
      rgba(14, 16, 27, 0.95) 100%);
  box-shadow: inset 0 0 200px 60px rgba(14, 16, 27, 0.7);
  z-index: 0;
  pointer-events: none;
}

.registration__container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.35fr; /* form wider than the visual */
  max-width: 1344px;
  margin: 0 auto;
  padding: 0 2.5rem;
  gap: 4rem;
  align-items: stretch;
}

.registration__visual {
  position: relative;
  min-height: 620px;
  height: 100%;
  overflow: visible;
  display: flex;
  align-items: flex-end;
  padding: 2.5rem 2.5rem 2.5rem 0;
  isolation: isolate;
}

.registration__visual::before,
.registration__visual::after {
  display: none;
}

.registration__image {
  position: absolute;
  left: 0;
  bottom: 0;
  width: auto;
  height: 100%;
  max-width: 100%;
  z-index: -2;
  filter:
    drop-shadow(0 0 0 rgba(255, 195, 80, 0))
    drop-shadow(0 0 0 rgba(255, 130, 35, 0))
    drop-shadow(0 0 0 rgba(255, 80, 20, 0));
  animation: reg-float 7.5s ease-in-out infinite;
  transition: scale 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.6s ease-out;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.registration__image:hover {
  scale: 1.035;
  filter:
    drop-shadow(0 0 8px rgba(255, 215, 110, 1))
    drop-shadow(0 0 22px rgba(255, 150, 40, 0.7))
    drop-shadow(0 0 50px rgba(255, 90, 20, 0.4));
}

@keyframes reg-float {
  0%   { translate: 0 0;    rotate: 0deg; }
  20%  { translate: 0 -4px; rotate: 0.25deg; }
  40%  { translate: 0 -8px; rotate: 0.5deg; }
  55%  { translate: 0 -7px; rotate: 0.1deg; }
  70%  { translate: 0 -5px; rotate: -0.25deg; }
  85%  { translate: 0 -2px; rotate: -0.1deg; }
  100% { translate: 0 0;    rotate: 0deg; }
}

@keyframes reg-aura {
  0%, 100% { opacity: 0.55; scale: 0.96; }
  50%      { opacity: 0.95; scale: 1.06; }
}

@media (prefers-reduced-motion: reduce) {
  .registration__image,
  .registration__visual::before {
    animation: none;
  }
  .registration__visual::after {
    transition: none;
  }
}

.registration__visual-overlay {
  display: none;
}

.registration__speech {
  position: absolute;
  top: 6%;
  left: 12%;
  z-index: 3;
  padding: 0.65rem 1.1rem;
  background: rgba(13, 18, 28, 0.96);
  border: 2px solid var(--accent-gold);
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(255, 196, 107, 0.25) inset,
    0 10px 28px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(255, 150, 40, 0.45);
  font-family: 'Oswald', 'PT Sans Narrow', Tahoma, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transform-origin: bottom left;
  transition:
    opacity 0.22s ease-out,
    transform 0.32s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  pointer-events: none;
}

.registration__speech::before,
.registration__speech::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 28px;
  width: 14px;
  height: 14px;
  background: rgba(13, 18, 28, 0.96);
  border-right: 2px solid var(--accent-gold);
  border-bottom: 2px solid var(--accent-gold);
  border-bottom-right-radius: 3px;
  transform: rotate(45deg);
}

.registration__speech::before {
  bottom: -10px;
  box-shadow: 2px 2px 14px rgba(255, 150, 40, 0.45);
  z-index: -1;
}

.registration__visual:hover .registration__speech,
.registration__visual:focus-within .registration__speech {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .registration__speech {
    transition: opacity 0.15s linear;
    transform: none;
  }
}

.registration__visual-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 440px;
}

.registration__tagline {
  font-family: 'Oswald', 'PT Sans Narrow', Tahoma, sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.registration__heading {
  font-family: 'Oswald', 'PT Sans Narrow', Tahoma, sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.75);
}

.registration__text {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.registration__visual-frame {
  display: none;
}

.registration__form-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.registration__form-wrapper .reg-form {
  width: 100%;
}

@media (max-width: 1024px) {
  .registration__container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .registration__visual {
    min-height: 340px;
  }
}

@media (max-width: 640px) {
  .registration {
    padding: 3rem 0;
  }
  .registration__container {
    padding: 0 1rem;
  }
  .registration__visual {
    min-height: 280px;
    padding: 1.5rem;
  }
}

/* Registration form */
.reg-form {
  background: rgba(24, 28, 38, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-soft);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 560px;
  width: 100%;
  position: relative;
}

.reg-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--fire-gradient-deep);
}

.reg-form__title {
  font-family: 'Oswald', 'PT Sans Narrow', Tahoma, sans-serif;
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.5rem;
}

.reg-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.reg-form__row {
  display: grid;
  gap: 1rem;
}

.reg-form__row_1-2 {
  grid-template-columns: 30% 1fr;
}

.reg-form__label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.reg-form__input,
.reg-form__select {
  width: 100%;
  height: 56px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-soft);
  border-radius: 0;
  padding: 0 1.5rem;
  font-family: 'Oswald', 'PT Sans Narrow', Tahoma, sans-serif;
  font-size: 1rem;
  color: #fff;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}

.reg-form__input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.reg-form__input:focus,
.reg-form__select:focus {
  border-color: var(--accent-gold);
  background: rgba(255, 196, 107, 0.05);
}

.reg-form__select-wrapper {
  position: relative;
}

.reg-form__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 2.5rem;
}

.reg-form__select-wrapper::after {
  content: '';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--accent-gold);
  pointer-events: none;
}

/* Options dropdown — force dark theme (OS-native white default → invisible white-on-white) */
.reg-form__select option {
  background: #1a1f2e;
  color: #fff;
}
.reg-form__select option:checked,
.reg-form__select option:hover {
  background: var(--accent-gold, #ffc46b);
  color: #1a1f2e;
}

.reg-form__checkbox {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  user-select: none;
}

.reg-form__checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.reg-form__checkbox-box {
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-soft);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.reg-form__checkbox input:checked + .reg-form__checkbox-box {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
}

.reg-form__checkbox-box::after {
  content: '\2713';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.875rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.reg-form__checkbox input:checked + .reg-form__checkbox-box::after {
  opacity: 1;
}

/* Password show/hide toggle */
.reg-form__password-wrap {
  position: relative;
}
.reg-form__input--password {
  padding-right: 3.25rem;
}
.reg-form__pwtoggle {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.reg-form__pwtoggle:hover,
.reg-form__pwtoggle:focus-visible {
  color: var(--accent-gold, #ffc46b);
  background: rgba(255, 196, 107, 0.08);
  outline: none;
}
.reg-form__pwtoggle-icon--hide { display: none; }
.reg-form__pwtoggle.is-visible .reg-form__pwtoggle-icon--show { display: none; }
.reg-form__pwtoggle.is-visible .reg-form__pwtoggle-icon--hide { display: inline-block; }

.reg-form__submit {
  align-self: flex-start;
  min-width: 220px;
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

/* Loading indicator — mmoweb.js sets [disabled] on submit during AJAX */
.reg-form__submit .btn__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: reg-spin 0.7s linear infinite;
}
.reg-form__submit:disabled,
.reg-form__submit[disabled] {
  cursor: progress;
  opacity: 0.75;
  pointer-events: none;
}
.reg-form__submit:disabled .btn__spinner,
.reg-form__submit[disabled] .btn__spinner {
  display: inline-block;
}
.reg-form__submit:disabled .btn__text,
.reg-form__submit[disabled] .btn__text {
  opacity: 0.6;
}
@keyframes reg-spin {
  to { transform: rotate(360deg); }
}


/* ============================
   9. FOOTER
   ============================ */
.footer {
  padding: 60px 0 32px;
  background: var(--bg-primary);
  -webkit-mask: none;
  mask: none;
}

.footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__logo {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
}

.footer__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 320px;
}

.footer__column-title {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-gold-muted);
  margin-bottom: 20px;
}

.footer__link {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color 0.3s;
}

.footer__link:hover {
  color: var(--text-primary);
}

.footer__social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 4px 0;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer__social-link svg {
  flex-shrink: 0;
  transition: color 0.3s, transform 0.3s;
}

.footer__social-link:hover {
  color: var(--text-primary);
}

.footer__social-link:hover svg {
  transform: scale(1.12);
}

.footer__social-link--telegram:hover svg { color: #229ED9; }
.footer__social-link--discord:hover svg  { color: #5865F2; }
.footer__social-link--facebook:hover svg { color: #1877F2; }
.footer__social-link--instagram:hover svg { color: #dc2743; }

.footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
  margin-top: 16px;
}

.footer__copyright {
  font-size: 12px;
  color: var(--text-muted);
}

.footer__socials {
  display: flex;
  gap: 8px;
}

.footer__socials .socials-sidebar__link {
  width: 36px;
  height: 36px;
  position: relative;
  backdrop-filter: none;
}


/* ============================
   TELEGRAM BOT SECTION
   ============================ */
.telegram-bot {
  position: relative;
  width: 100%;
  padding: 6rem 0;
  background-color: var(--bg-primary);
  background-image: url('../assets/images/tg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  isolation: isolate;
}

.telegram-bot::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(14, 16, 27, 0.85) 0%,
      rgba(14, 16, 27, 0.45) 18%,
      rgba(14, 16, 27, 0.35) 50%,
      rgba(14, 16, 27, 0.55) 82%,
      rgba(14, 16, 27, 0.95) 100%);
  box-shadow: inset 0 0 200px 60px rgba(14, 16, 27, 0.7);
  z-index: 0;
  pointer-events: none;
}

.telegram-bot__container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1344px;
  margin: 0 auto;
  padding: 0 2.5rem;
  gap: 4rem;
  align-items: stretch;
}

.telegram-bot__visual {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  min-height: 620px;
  height: 100%;
  overflow: visible;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 2.5rem 0 2.5rem 2.5rem;
  isolation: isolate;
}

.telegram-bot__avatar {
  position: absolute;
  right: 0;
  bottom: 0;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  z-index: -2;
  filter:
    drop-shadow(0 0 0 rgba(120, 200, 240, 0))
    drop-shadow(0 0 0 rgba(34, 158, 217, 0))
    drop-shadow(0 0 0 rgba(20, 110, 180, 0));
  animation: tg-float 7.5s ease-in-out infinite;
  transition: scale 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.6s ease-out;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.telegram-bot__avatar:hover {
  scale: 1.035;
  filter:
    drop-shadow(0 0 8px rgba(120, 200, 240, 1))
    drop-shadow(0 0 22px rgba(34, 158, 217, 0.7))
    drop-shadow(0 0 50px rgba(20, 110, 180, 0.45));
}

@keyframes tg-float {
  0%   { translate: 0 0;    rotate: 0deg; }
  20%  { translate: 0 -4px; rotate: 0.25deg; }
  40%  { translate: 0 -8px; rotate: 0.5deg; }
  55%  { translate: 0 -7px; rotate: 0.1deg; }
  70%  { translate: 0 -5px; rotate: -0.25deg; }
  85%  { translate: 0 -2px; rotate: -0.1deg; }
  100% { translate: 0 0;    rotate: 0deg; }
}

@media (prefers-reduced-motion: reduce) {
  .telegram-bot__avatar {
    animation: none;
  }
}

.telegram-bot__speech {
  position: absolute;
  top: 6%;
  right: 12%;
  z-index: 3;
  padding: 0.65rem 1.1rem;
  background: rgba(13, 18, 28, 0.96);
  border: 2px solid #229ED9;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(34, 158, 217, 0.25) inset,
    0 10px 28px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(34, 158, 217, 0.45);
  font-family: 'Oswald', 'PT Sans Narrow', Tahoma, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transform-origin: bottom right;
  transition:
    opacity 0.22s ease-out,
    transform 0.32s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  pointer-events: none;
}

.telegram-bot__speech::before,
.telegram-bot__speech::after {
  content: '';
  position: absolute;
  bottom: -9px;
  right: 28px;
  width: 14px;
  height: 14px;
  background: rgba(13, 18, 28, 0.96);
  border-right: 2px solid #229ED9;
  border-bottom: 2px solid #229ED9;
  border-bottom-right-radius: 3px;
  transform: rotate(45deg);
}

.telegram-bot__speech::before {
  bottom: -10px;
  box-shadow: 2px 2px 14px rgba(34, 158, 217, 0.45);
  z-index: -1;
}

.telegram-bot__visual:hover .telegram-bot__speech,
.telegram-bot__visual:focus-within .telegram-bot__speech {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .telegram-bot__speech {
    transition: opacity 0.15s linear;
    transform: none;
  }
}

.telegram-bot__content {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.telegram-bot__label {
  font-family: 'Oswald', 'PT Sans Narrow', Tahoma, sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #229ED9;
  margin: 0;
}

.telegram-bot__heading {
  font-family: 'Oswald', 'PT Sans Narrow', Tahoma, sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
  color: #fff;
  margin: 0;
}

.telegram-bot__lead {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 520px;
}

.telegram-bot__features {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.telegram-bot__feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(24, 28, 38, 0.5);
  border-left: 2px solid #229ED9;
  transition: background 0.25s, transform 0.25s;
}

.telegram-bot__feature:hover {
  background: rgba(34, 158, 217, 0.08);
  transform: translateX(4px);
}

.telegram-bot__feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #229ED9;
  background: rgba(34, 158, 217, 0.1);
  border: 1px solid rgba(34, 158, 217, 0.3);
  filter: drop-shadow(0 2px 8px rgba(34, 158, 217, 0.25));
}

.telegram-bot__feature-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-grow: 1;
  min-width: 0;
}

.telegram-bot__feature-title {
  font-family: 'Oswald', 'PT Sans Narrow', Tahoma, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}

.telegram-bot__feature-desc {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.telegram-bot__cta {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.75rem;
}

.telegram-bot__btn {
  min-height: 64px;
  padding: 1rem 2.5rem;
  font-size: 1.0625rem;
  min-width: 280px;
}

.telegram-bot__btn::before {
  background: linear-gradient(135deg, #229ED9 0%, #1a7aa8 100%);
}

@media (max-width: 1024px) {
  .telegram-bot__container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .telegram-bot__visual {
    grid-column: 1;
    grid-row: 1;
    min-height: 340px;
  }
  .telegram-bot__content {
    grid-column: 1;
    grid-row: 2;
  }
}

@media (max-width: 640px) {
  .telegram-bot {
    padding: 3rem 0;
  }
  .telegram-bot__container {
    padding: 0 1rem;
  }
  .telegram-bot__visual {
    min-height: 280px;
  }
  .telegram-bot__feature {
    padding: 0.875rem 1rem;
  }
  .telegram-bot__cta {
    justify-content: stretch;
  }
  .telegram-bot__btn {
    min-width: unset;
    width: 100%;
  }
}


/* ============================
   SECTION TRANSITIONS
   ============================ */
section + section::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--accent-gold);
  box-shadow:
    0 0 12px rgba(255, 196, 107, 0.6),
    -80px 0 0 -4px rgba(255, 196, 107, 0.4),
    80px 0 0 -4px rgba(255, 196, 107, 0.4),
    -160px 0 0 -4.5px rgba(255, 196, 107, 0.25),
    160px 0 0 -4.5px rgba(255, 196, 107, 0.25);
  pointer-events: none;
  z-index: 2;
}

.roadmap,
.client,
.registration,
.telegram-bot {
  -webkit-mask: linear-gradient(180deg, transparent 0, #000 3rem, #000 calc(100% - 3rem), transparent);
  mask: linear-gradient(180deg, transparent 0, #000 3rem, #000 calc(100% - 3rem), transparent);
}


/* ============================================================
   ===== RESPONSIVE — comprehensive mobile + tablet overrides =====
   Desktop-first; everything below assumes existing desktop CSS is
   intact and we only override downward. Breakpoints:
     <= 1024px : tablet landscape + below
     <=  768px : tablet portrait + mobile
     <=  480px : phones
     <=  360px : tiny phones (iPhone SE 1st gen, very old Androids)
   ============================================================ */

/* --- Burger button (added in nostalgia.tpl) — hidden on desktop --- */
.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  z-index: 110;
}
.nav__burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--accent-gold);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.2s;
  transform-origin: center;
}
.nav.is-open .nav__burger span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.nav.is-open .nav__burger span:nth-child(2) {
  opacity: 0;
}
.nav.is-open .nav__burger span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

body.no-scroll {
  overflow: hidden;
}

/* ============================================================
   <= 1024px  — tablet landscape and below
   ============================================================ */
@media (max-width: 1024px) {

  :root {
    --nav-height: 64px;
    --container-padding: 0 1.5rem;
  }

  html { font-size: 15px; }

  section { padding: 64px 0; }

  /* ---- NAV ---- */
  .nav {
    padding: 0 1rem;
  }

  /* burger appears */
  .nav__burger {
    display: flex;
    order: -1;
    margin-right: 0.25rem;
  }

  .nav__left {
    gap: 0.75rem;
    flex: 1 1 auto;
    min-width: 0;
  }

  .logo__img {
    height: 36px;
  }

  /* menu becomes a slide-down panel */
  .nav__menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: auto;
    background: rgba(10, 12, 20, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-soft);
    padding: 1rem 1.25rem 2.5rem;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 105;
    visibility: hidden;
  }
  .nav.is-open .nav__menu {
    transform: translateX(0);
    visibility: visible;
  }

  .nav__menu-item {
    height: auto;
    padding: 1rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 1.125rem;
    width: 100%;
  }
  .nav__menu-item::after { display: none; }

  /* dropdown becomes inline accordion-ish — open on hover/tap */
  .nav__dropdown {
    height: auto;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .nav__dropdown-trigger {
    justify-content: space-between;
    width: 100%;
  }
  .nav__dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    min-width: 0;
    width: 100%;
    margin-top: 0.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 196, 107, 0.12);
    box-shadow: none;
    display: none;
  }
  .nav__dropdown:hover .nav__dropdown-menu,
  .nav__dropdown:focus-within .nav__dropdown-menu,
  .nav__dropdown.is-open .nav__dropdown-menu {
    display: flex;
  }

  /* right side: keep login + register visible, compact */
  .nav__right {
    gap: 0.5rem;
  }
  .navbar__login {
    display: none; /* free up space; user can still reach login through the menu */
  }
  .nav__right .btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }

  /* ---- HERO ---- */
  .hero__content {
    gap: 1rem;
    padding: calc(var(--nav-height) + 1rem) 1rem 2rem;
  }
  .hero__title {
    white-space: normal;
    word-break: break-word;
  }
  .hero__subtitle {
    font-size: 1.125rem;
    letter-spacing: 0.18em;
  }

  /* ---- ROADMAP / STAGE ---- */
  .stage {
    height: auto;
    min-height: 600px;
    padding-bottom: 4rem;
    padding-top: 5rem;
  }
  .stage__container { padding: 0 1.5rem; }
  .stage__features {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1.5rem;
  }
  .stage__content { gap: 1.75rem; }

  /* ---- CLIENT ---- handled by existing 1024 rule, just tighten ---- */
  .client__container { padding: 0 1.5rem; }

  /* ---- REGISTRATION ---- handled but reinforce ---- */
  .registration__container { padding: 0 1.5rem; }

  /* ---- TELEGRAM BOT ---- handled by existing 1024 rule ---- */
  .telegram-bot__container { padding: 0 1.5rem; }

  /* ---- FOOTER ---- */
  .footer .container {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   <= 768px  — tablet portrait and mobile
   ============================================================ */
@media (max-width: 768px) {

  html { font-size: 14.5px; }
  section { padding: 48px 0; }

  /* ---- HERO ---- */
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
  }
  .hero__content {
    max-width: 100%;
    padding: calc(var(--nav-height) + 0.75rem) 1rem 1.5rem;
    gap: 0.875rem;
  }
  .hero__title {
    font-size: clamp(1.6rem, 9vw, 2.75rem);
    letter-spacing: 0.04em;
  }
  .hero__subtitle {
    font-size: 0.875rem;
    letter-spacing: 0.16em;
  }
  .hero__cta {
    width: 100%;
    flex-direction: column;
    gap: 0.625rem;
  }
  .hero__cta .btn {
    width: 100%;
    padding: 14px 20px;
    min-height: 48px;
  }

  /* countdown — tighter, drop horizontal gap */
  .countdown-wrapper {
    margin: 1rem 0;
    gap: 0.625rem;
    width: 100%;
  }
  .countdown__timer {
    gap: 0.5rem;
    width: 100%;
    justify-content: space-between;
  }
  .countdown__unit {
    min-width: 0;
    flex: 1 1 0;
    gap: 0.25rem;
  }
  .countdown__value {
    font-size: clamp(1.75rem, 9vw, 2.5rem);
  }
  .countdown__name {
    font-size: 0.625rem;
    letter-spacing: 0.12em;
  }
  .countdown__header {
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-align: center;
  }

  /* ---- ROADMAP ---- */
  .stage {
    min-height: 0;
    height: auto;
    padding: 5rem 0 3rem;
    align-items: flex-start;
    background-attachment: scroll;
  }
  .stage__overlay {
    background:
      linear-gradient(180deg,
        rgba(14, 16, 27, 0.85) 0%,
        rgba(14, 16, 27, 0.55) 25%,
        rgba(14, 16, 27, 0.7) 70%,
        rgba(14, 16, 27, 1) 100%);
  }
  .stage__container { padding: 0 1rem; }
  .stage__content {
    gap: 1.5rem;
    max-width: 100%;
  }
  .stage__subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
  }
  .stage__title {
    font-size: clamp(1.5rem, 7vw, 2.25rem);
    letter-spacing: 0.03em;
  }
  .stage__description {
    font-size: 0.9375rem;
    line-height: 1.55;
  }
  .stage__features {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding-left: 1rem;
  }
  .stage__feature { font-size: 0.9375rem; }
  .stage__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .stage__btn {
    width: 100%;
    min-width: 0;
    min-height: 48px;
  }
  .stage__nav {
    justify-content: center;
    gap: 0.75rem;
  }
  .stage__nav-btn {
    width: 48px;
    height: 48px;
  }

  /* ---- CLIENT ---- */
  .client { padding: 3rem 0; }
  .client__container { padding: 0 1rem; gap: 1.5rem; }
  .client__visual-content {
    padding-left: 1rem;
    max-width: 100%;
  }
  .client__visual-caption {
    font-size: clamp(1.25rem, 5.5vw, 1.875rem);
  }
  .client__resource {
    padding: 0.75rem 0.875rem;
    gap: 0.75rem;
  }
  .client__resource-icon {
    width: 40px;
    height: 40px;
  }
  .client__resource-label { font-size: 0.9375rem; }
  .client__resource-desc { font-size: 0.75rem; }
  .client__content {
    padding: 1.25rem 1rem;
    gap: 1.25rem;
  }
  .client__heading {
    font-size: clamp(1.5rem, 6.5vw, 2.25rem);
  }
  .client__lead { font-size: 1rem; }
  .client__features { gap: 0.75rem; }
  .client__feature {
    padding: 0.875rem 1rem;
    gap: 0.75rem;
  }
  .client__feature-icon {
    width: 38px;
    height: 38px;
  }
  .client__feature-title { font-size: 0.9375rem; }
  .client__feature-desc { font-size: 0.875rem; }

  /* ---- REGISTRATION ---- */
  .registration { padding: 3rem 0; }
  .registration__container {
    padding: 0 1rem;
    gap: 1.5rem;
  }
  .registration__visual {
    min-height: 320px;
    padding: 1.5rem 0;
    justify-content: center;
    align-items: flex-end;
  }
  .registration__image {
    position: relative;
    height: 320px;
    max-height: 60vh;
    margin: 0 auto;
  }
  .registration__visual-content {
    max-width: 100%;
    padding: 0 0.25rem;
  }
  .registration__heading {
    font-size: clamp(1.5rem, 6.5vw, 2.25rem);
  }
  .registration__text { font-size: 0.9375rem; }
  .registration__speech { display: none; } /* hover-only on desktop, not useful on touch */

  .reg-form {
    padding: 1.5rem 1.25rem;
    gap: 1rem;
    max-width: 100%;
  }
  .reg-form__title {
    font-size: 1.375rem;
    letter-spacing: 0.08em;
  }
  .reg-form__row_1-2 {
    grid-template-columns: 35% 1fr;
    gap: 0.625rem;
  }
  .reg-form__input,
  .reg-form__select {
    height: 52px;
    font-size: 16px; /* prevent iOS zoom on focus */
    padding: 0 1rem;
  }
  .reg-form__label { font-size: 0.6875rem; }
  .reg-form__submit {
    width: 100%;
    align-self: stretch;
    min-width: 0;
    min-height: 52px;
  }

  /* ---- TELEGRAM BOT ---- */
  .telegram-bot { padding: 3rem 0; }
  .telegram-bot__container {
    padding: 0 1rem;
    gap: 1.5rem;
  }
  .telegram-bot__visual {
    min-height: 280px;
    padding: 1rem 0;
    justify-content: center;
  }
  .telegram-bot__avatar {
    position: relative;
    height: 280px;
    max-height: 55vh;
    right: auto;
  }
  .telegram-bot__speech { display: none; }
  .telegram-bot__heading {
    font-size: clamp(1.5rem, 6.5vw, 2.25rem);
  }
  .telegram-bot__lead { font-size: 1rem; }
  .telegram-bot__feature {
    padding: 0.875rem 1rem;
    gap: 0.75rem;
  }
  .telegram-bot__feature-icon {
    width: 38px;
    height: 38px;
  }
  .telegram-bot__feature-title { font-size: 0.9375rem; }
  .telegram-bot__feature-desc { font-size: 0.875rem; }
  .telegram-bot__cta { justify-content: stretch; }
  .telegram-bot__btn {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
  }

  /* ---- FOOTER ---- */
  .footer {
    padding: 40px 0 20px;
  }
  .footer .container {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer__brand { grid-column: 1; }
  .footer__column-title { margin-bottom: 12px; }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
  }
  .footer__socials {
    flex-wrap: wrap;
  }

  /* ---- SIDEBAR SOCIALS ---- hide floating dock on mobile (already in footer) */
  .socials-sidebar {
    display: none;
  }

  /* ---- ROADMAP PROGRESS ---- */
  .roadmap__progress {
    padding: 1.5rem 1rem 2.5rem;
  }

  /* ---- DOT TRANSITION between sections (the gold diamond) — pull it in ---- */
  section + section::before {
    box-shadow:
      0 0 12px rgba(255, 196, 107, 0.6),
      -50px 0 0 -4px rgba(255, 196, 107, 0.4),
      50px 0 0 -4px rgba(255, 196, 107, 0.4),
      -100px 0 0 -4.5px rgba(255, 196, 107, 0.25),
      100px 0 0 -4.5px rgba(255, 196, 107, 0.25);
  }
}

/* ============================================================
   <= 480px  — phones
   ============================================================ */
@media (max-width: 480px) {

  :root {
    --container-padding: 0 1rem;
  }

  section { padding: 40px 0; }

  /* ---- NAV ---- */
  .nav { padding: 0 0.75rem; }
  .logo__img { height: 32px; }
  .nav__right .btn--sm {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
  }

  /* lang-selector slimmer */
  .lang-selector__current {
    padding: 6px 8px;
    font-size: 0.875rem;
  }

  /* ---- HERO ---- */
  .hero__title {
    font-size: clamp(1.4rem, 10vw, 2.25rem);
  }
  .hero__subtitle {
    font-size: 0.8125rem;
    letter-spacing: 0.14em;
  }
  .countdown__value {
    font-size: clamp(1.5rem, 10vw, 2rem);
  }
  .countdown__name {
    font-size: 0.5625rem;
  }
  .countdown__timer { gap: 0.375rem; }

  /* ---- STAGE ---- */
  .stage__title {
    font-size: clamp(1.25rem, 7.5vw, 1.875rem);
  }
  .stage__description {
    font-size: 0.875rem;
  }
  .stage__feature { font-size: 0.875rem; }
  .stage__nav-btn {
    width: 44px;
    height: 44px;
  }

  /* ---- CLIENT ---- */
  .client__visual-content {
    padding-left: 0.75rem;
  }
  .client__resource-arrow { display: none; } /* free up space on small screens */
  .client__feature {
    padding: 0.75rem 0.875rem;
  }
  .client__feature-icon {
    width: 36px;
    height: 36px;
  }
  .client__feature-text { gap: 0.15rem; }

  /* ---- REGISTRATION ---- */
  .registration__visual { min-height: 260px; }
  .registration__image {
    height: 260px;
  }
  .reg-form {
    padding: 1.25rem 1rem;
  }
  .reg-form__title { font-size: 1.25rem; }
  .reg-form__row_1-2 {
    grid-template-columns: 1fr; /* prefix above login on tiny screens */
  }
  .reg-form__input,
  .reg-form__select {
    height: 48px;
  }

  /* ---- TELEGRAM BOT ---- */
  .telegram-bot__visual { min-height: 240px; }
  .telegram-bot__avatar {
    height: 240px;
  }

  /* ---- FOOTER ---- */
  .footer__logo { font-size: 20px; }
  .footer__desc { font-size: 12px; }
  .footer__link,
  .footer__social-link { font-size: 12px; }
  .footer__column-title { font-size: 13px; }

  /* ---- DOT TRANSITION ---- */
  section + section::before {
    box-shadow:
      0 0 10px rgba(255, 196, 107, 0.55),
      -32px 0 0 -4px rgba(255, 196, 107, 0.35),
      32px 0 0 -4px rgba(255, 196, 107, 0.35),
      -64px 0 0 -5px rgba(255, 196, 107, 0.2),
      64px 0 0 -5px rgba(255, 196, 107, 0.2);
  }
}

/* ============================================================
   <= 360px  — tiny phones (iPhone SE 1st gen, very old Androids)
   ============================================================ */
@media (max-width: 360px) {

  html { font-size: 13.5px; }

  /* squeeze nav right side */
  .nav { padding: 0 0.5rem; }
  .logo__img { height: 28px; }
  .lang-selector__current { padding: 4px 6px; font-size: 0.75rem; }
  .nav__right { gap: 0.375rem; }
  .nav__right .btn--sm {
    padding: 0.4rem 0.625rem;
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
  }

  /* hero — even smaller title */
  .hero__title {
    font-size: clamp(1.25rem, 11vw, 1.875rem);
  }

  /* countdown — sometimes 4 values won't fit; allow 2x2 wrap as a last resort */
  .countdown__timer {
    flex-wrap: wrap;
    gap: 0.5rem 0.25rem;
  }
  .countdown__unit {
    flex: 1 1 40%;
  }

  /* stages */
  .stage { padding: 4rem 0 2.5rem; }
  .stage__title {
    font-size: clamp(1.125rem, 8vw, 1.5rem);
  }

  /* registration speech / form */
  .reg-form { padding: 1rem 0.875rem; }
  .reg-form__title { font-size: 1.125rem; letter-spacing: 0.06em; }
}

/* ============================================================
   Touch / keyboard a11y polish (all sizes)
   ============================================================ */
@media (hover: none) and (pointer: coarse) {
  /* on touch devices, the floating sidebar's hover-only color shifts
     don't apply — leave defaults clean */
  .nav__menu-item::after { display: none; }
}

/* keyboard focus ring */
.btn:focus-visible,
.nav__menu-item:focus-visible,
.nav__dropdown-trigger:focus-visible,
.lang-selector__current:focus-visible,
.reg-form__input:focus-visible,
.reg-form__select:focus-visible,
.reg-form__submit:focus-visible,
.client__resource:focus-visible,
.socials-sidebar__link:focus-visible,
.footer__link:focus-visible,
.footer__social-link:focus-visible,
.nav__burger:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}




/* =====================================================================
   MOBILE / TABLET TWEAKS — phones + small iPads (<=1024px)
   Desktop/laptop unchanged. Per user request:
   1) Hero video → static l-1.jpg background
   2) Fix burger menu (was confined to .nav by backdrop-filter containing block)
   3) Hide roadmap progress strip — only swiper arrows remain
   4) Hide character images on Registration / TG sections
   ===================================================================== */
@media (max-width: 1024px) {
  /* 1) HERO — static background instead of video */
  .hero {
    background-image: url('/nostalgia/assets/images/stages/l-9.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .hero__video {
    display: none !important;
  }

  /* 1b) CLIENT section — static background instead of video */
  .client {
    background-image: url('/nostalgia/assets/images/client.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .client__bg-video {
    display: none !important;
  }

  /* 2) BURGER MENU FIX — backdrop-filter on .nav creates a containing block
        for position:fixed children, so .nav__menu was confined to .nav's box.
        Removing it lets the mobile slide-in menu fill the viewport. */
  .nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* 3) ROADMAP — hide progress strip (the "map" of 11 numbered dots).
        Only Swiper arrows remain for navigation. */
  .roadmap__progress {
    display: none !important;
  }

  /* 4) Hide character images on Registration / TG sections —
        they overlap content on small screens. */
  .registration__visual,
  .telegram-bot__visual {
    display: none !important;
  }
}

/* =====================================================================
   AUTH MODALS — Login + Restore Password (dark-fantasy theme)
   Triggered by [data-modal-open], closed by [data-modal-close] / Esc.
   ===================================================================== */
.reg-form__altactions {
  margin: 0.5rem 0 0;
  text-align: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.875rem;
  color: rgba(230, 232, 238, 0.65);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.6rem;
}
.reg-form__altsep {
  opacity: 0.4;
}
.reg-form__altlink {
  background: transparent;
  border: 0;
  padding: 2px 0;
  cursor: pointer;
  color: var(--accent-gold, #ffc46b);
  font-size: inherit;
  font-family: inherit;
  border-bottom: 1px dashed rgba(255, 196, 107, 0.4);
  transition: color 0.2s, border-color 0.2s;
}
.reg-form__altlink:hover,
.reg-form__altlink:focus-visible {
  color: #ffd989;
  border-color: #ffd989;
  outline: none;
}

.auth-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  font-family: 'Oswald', 'PT Sans Narrow', Tahoma, sans-serif;
}
.auth-modal.is-open {
  display: flex;
  animation: auth-modal-in 0.18s ease-out;
}
@keyframes auth-modal-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 14, 0.78);
  backdrop-filter: blur(6px);
  cursor: pointer;
}
.auth-modal__card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: rgba(20, 23, 36, 0.97);
  border: 1px solid rgba(255, 196, 107, 0.22);
  border-radius: 6px;
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.7),
              0 0 0 1px rgba(255, 196, 107, 0.05) inset;
  padding: 36px 32px 32px;
  color: #e6e8ee;
  animation: auth-modal-card-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes auth-modal-card-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.auth-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.auth-modal__close:hover,
.auth-modal__close:focus-visible {
  color: var(--accent-gold, #ffc46b);
  background: rgba(255, 196, 107, 0.08);
  outline: none;
}
.auth-modal__title {
  margin: 0 0 8px;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
}
.auth-modal__lead {
  margin: 0 0 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(230, 232, 238, 0.65);
  text-align: center;
}
.auth-modal__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-modal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-modal__label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(230, 232, 238, 0.55);
  font-family: 'Montserrat', Arial, sans-serif;
}
.auth-modal__input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-size: 16px;
  font-family: 'Oswald', 'PT Sans Narrow', Tahoma, sans-serif;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.auth-modal__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.auth-modal__input:focus {
  border-color: var(--accent-gold, #ffc46b);
  background: rgba(255, 196, 107, 0.05);
}
.auth-modal__submit {
  margin-top: 8px;
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.auth-modal__altactions {
  margin: 6px 0 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.85rem;
  color: rgba(230, 232, 238, 0.6);
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.6rem;
}

@media (max-width: 480px) {
  .auth-modal__card {
    padding: 28px 20px 22px;
    border-radius: 4px;
  }
  .auth-modal__title { font-size: 1.2rem; }
}

/* =====================================================================
   SCROLL-DOWN INDICATOR on hero (3 animated chevrons + label)
   ===================================================================== */
.hero__scroll-down {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Oswald', 'PT Sans Narrow', Tahoma, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  animation: hero-scroll-down-fade 0.6s ease 0.5s backwards;
}
.hero__scroll-down:hover { color: var(--accent-gold, #ffc46b); }
.hero__scroll-down-chevrons {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}
.hero__scroll-down-chevron {
  display: block;
  width: 28px;
  height: 14px;
  animation: hero-scroll-down-bounce 1.6s ease-in-out infinite;
}
.hero__scroll-down-chevron:nth-child(2) { animation-delay: 0.15s; opacity: 0.6; }
.hero__scroll-down-chevron:nth-child(3) { animation-delay: 0.3s; opacity: 0.3; }

@keyframes hero-scroll-down-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}
@keyframes hero-scroll-down-fade {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-down,
  .hero__scroll-down-chevron { animation: none; }
}

@media (max-width: 768px) {
  .hero__scroll-down { display: none; }
}

/* =====================================================================
   LARGE-DISPLAY READABILITY — only for 4K-class monitors (Samsung
   Smart M70D 3840×2160 and similar). Standard 1920/2560 monitors
   are unaffected.
   ===================================================================== */
@media (min-width: 2400px) {
  html { font-size: 20px; }
  .stage__title       { font-size: clamp(2.5rem, 3.6vw, 3.75rem); }
  .stage__subtitle    { font-size: 1.125rem; }
  .stage__description { font-size: 1.125rem; line-height: 1.6; }
  .stage__feature     { font-size: 1.05rem; }
  .client__heading,
  .premium__heading,
  .registration__heading,
  .telegram-bot__heading { font-size: clamp(2.25rem, 3.4vw, 3rem); }
}
