:root {
  --bg: #07111f;
  --bg-soft: #0b1730;
  --bg-card: rgba(10, 22, 44, 0.74);
  --bg-card-strong: rgba(11, 24, 49, 0.95);

  --text: #f4f8ff;
  --text-soft: #bfd0ef;
  --text-muted: #89a0c7;

  --line: rgba(137, 160, 199, 0.18);
  --line-strong: rgba(137, 160, 199, 0.3);

  --accent: #4f8cff;
  --accent-2: #79b8ff;
  --accent-3: #7c5cff;

  --success: #8fe7b1;
  --danger: #ff8e9f;

  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --shadow-main: 0 20px 60px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.2);

  --container: 1240px;
  --sidebar-width: 360px;
  --header-height: 78px;

  --transition: 0.35s ease;

  --scrollbar-size: 10px;
  --scrollbar-radius: 999px;
  --scrollbar-track-border: rgba(137, 160, 199, 0.08);

  --scrollbar-thumb-color-start: rgba(79, 140, 255, 0.92);
  --scrollbar-thumb-color-mid: rgba(105, 122, 255, 0.92);
  --scrollbar-thumb-color-end: rgba(124, 92, 255, 0.92);

  --scrollbar-thumb-hover-start: rgba(144, 198, 255, 1);
  --scrollbar-thumb-hover-mid: rgba(124, 146, 255, 1);
  --scrollbar-thumb-hover-end: rgba(154, 120, 255, 1);

  --scrollbar-border: rgba(7, 17, 31, 0.9);
  --scrollbar-glow: rgba(79, 140, 255, 0.28);
  --scrollbar-glow-hover: rgba(121, 184, 255, 0.42);
}

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

html {
  scroll-behavior: smooth;
}

html,
body,
.sidebar__panel,
.module-nav,
.topic-nav-wrap,
.modal__dialog,
.code-example {
  scrollbar-width: thin;
  scrollbar-color: rgba(92, 150, 255, 0.9) rgba(255, 255, 255, 0.03);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.sidebar__panel::-webkit-scrollbar,
.module-nav::-webkit-scrollbar,
.topic-nav-wrap::-webkit-scrollbar,
.modal__dialog::-webkit-scrollbar,
.code-example::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.sidebar__panel::-webkit-scrollbar-track,
.module-nav::-webkit-scrollbar-track,
.topic-nav-wrap::-webkit-scrollbar-track,
.modal__dialog::-webkit-scrollbar-track,
.code-example::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border-radius: var(--scrollbar-radius);
  box-shadow:
    inset 0 0 0 1px var(--scrollbar-track-border),
    inset 0 8px 16px rgba(255, 255, 255, 0.015);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.sidebar__panel::-webkit-scrollbar-thumb,
.module-nav::-webkit-scrollbar-thumb,
.topic-nav-wrap::-webkit-scrollbar-thumb,
.modal__dialog::-webkit-scrollbar-thumb,
.code-example::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--scrollbar-thumb-color-start) 0%,
    var(--scrollbar-thumb-color-mid) 52%,
    var(--scrollbar-thumb-color-end) 100%
  );
  border-radius: var(--scrollbar-radius);
  border: 2px solid var(--scrollbar-border);
  background-clip: padding-box;
  min-height: 60px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 14px var(--scrollbar-glow);
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
.sidebar__panel::-webkit-scrollbar-thumb:hover,
.module-nav::-webkit-scrollbar-thumb:hover,
.topic-nav-wrap::-webkit-scrollbar-thumb:hover,
.modal__dialog::-webkit-scrollbar-thumb:hover,
.code-example::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    var(--scrollbar-thumb-hover-start) 0%,
    var(--scrollbar-thumb-hover-mid) 52%,
    var(--scrollbar-thumb-hover-end) 100%
  );
  border: 2px solid rgba(7, 17, 31, 0.98);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 18px var(--scrollbar-glow-hover);
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(79, 140, 255, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(124, 92, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #040b16 0%, #07111f 45%, #09152a 100%);
}

body.is-modal-open,
body.is-sidebar-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

.site-shell {
  position: relative;
  overflow: hidden;
}

.bg-blur {
  position: absolute;
  z-index: 0;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.bg-blur--top {
  top: -120px;
  left: -80px;
  background: rgba(79, 140, 255, 0.22);
}

.bg-blur--bottom {
  right: -120px;
  bottom: 10%;
  background: rgba(124, 92, 255, 0.18);
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1101;
  backdrop-filter: blur(16px);
  background: rgba(4, 11, 22, 0.65);
  border-bottom: 1px solid rgba(137, 160, 199, 0.12);
}

.header__container {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo__mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 0 20px rgba(79, 140, 255, 0.8);
  flex-shrink: 0;
}

.logo__text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.header__link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  transition: var(--transition);
}

.header__link:hover {
  background: rgba(79, 140, 255, 0.1);
  color: var(--text);
}

.header__menu-btn {
  display: none;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid rgba(137, 160, 199, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  transition: var(--transition);
}

.header__menu-btn:hover {
  border-color: rgba(79, 140, 255, 0.3);
  background: rgba(79, 140, 255, 0.08);
  color: #fff;
}

.layout {
  position: relative;
  z-index: 1;
}

.sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--header-height));
  z-index: 60;
}

.sidebar__overlay {
  display: none;
}

.sidebar__panel {
  height: 100%;
  border-right: 1px solid rgba(137, 160, 199, 0.1);
  background: rgba(5, 12, 24, 0.84);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(137, 160, 199, 0.1);
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar__brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 0 14px rgba(79, 140, 255, 0.65);
  flex-shrink: 0;
}

.sidebar__brand-text {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.sidebar__brand-subtext {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.2;
}

.sidebar__close {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(137, 160, 199, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.sidebar__close:hover {
  border-color: rgba(79, 140, 255, 0.26);
  background: rgba(79, 140, 255, 0.08);
}

.sidebar__inner {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) minmax(220px, 0.9fr);
  gap: 18px;
  padding: 20px 16px 20px 20px;
  overflow: hidden;
}

.sidebar-block {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-block--modules,
.sidebar-block--topics {
  min-height: 0;
}

.sidebar-block__label {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-block__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sidebar-block__head .sidebar-block__label {
  margin: 0;
}

.sidebar-block__toggle {
  flex-shrink: 0;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(137, 160, 199, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-block__toggle:hover {
  border-color: rgba(79, 140, 255, 0.24);
  background: rgba(79, 140, 255, 0.08);
  color: var(--text);
}

.sidebar-block--topics {
  border-top: 1px solid rgba(137, 160, 199, 0.12);
  padding-top: 12px;
}

.track-nav,
.module-nav,
.topic-nav {
  display: grid;
  gap: 10px;
}

.track-nav {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.module-nav,
.topic-nav {
  grid-template-columns: 1fr;
}

.module-nav,
.topic-nav-wrap {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
}

.module-nav {
  flex: 1;
  min-height: 0;
  align-content: start;
}

.topic-nav-wrap {
  flex: 1;
  min-height: 0;
}

.topic-nav-wrap.is-collapsed {
  display: none;
}

.sidebar-empty {
  display: none;
  margin-top: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed rgba(137, 160, 199, 0.16);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.sidebar-empty.is-visible {
  display: block;
}

.track-link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  min-height: 108px;
  text-align: left;
  padding: 14px 14px 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
  color: var(--text-soft);
  transition: var(--transition);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.track-link:hover {
  border-color: rgba(79, 140, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(79, 140, 255, 0.08), rgba(124, 92, 255, 0.06)),
    rgba(79, 140, 255, 0.05);
  color: var(--text);
  transform: translateY(-2px);
}

.track-link.is-active {
  background:
    linear-gradient(135deg, rgba(79, 140, 255, 0.2), rgba(124, 92, 255, 0.14)),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(79, 140, 255, 0.34);
  color: #fff;
  box-shadow: 0 14px 30px rgba(10, 20, 44, 0.26);
}

.track-link__title {
  display: block;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 8px;
}

.track-link__text {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.module-link,
.topic-link {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-soft);
  border-radius: 18px;
  transition: var(--transition);
}

.module-link {
  position: relative;
  padding: 16px 48px 16px 16px;
  cursor: pointer;
  overflow: hidden;
  min-height: 108px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.018);
}

.module-link:hover,
.topic-link:hover {
  border-color: rgba(79, 140, 255, 0.28);
  background: rgba(79, 140, 255, 0.08);
  color: var(--text);
  transform: translateX(2px);
}

.module-link.is-active,
.topic-link.is-active {
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.18), rgba(124, 92, 255, 0.12));
  border-color: rgba(79, 140, 255, 0.34);
  color: #fff;
  box-shadow: 0 10px 25px rgba(10, 20, 44, 0.25);
}

.module-link.is-locked {
  border-color: rgba(137, 160, 199, 0.12);
}

.module-link.is-locked .module-link__content {
  filter: blur(2px);
  opacity: 0.5;
}

.module-link__small {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.module-link__title {
  display: block;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 700;
}

.module-link__content {
  transition: var(--transition);
}

.module-link__lock {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.topic-link {
  padding: 13px 14px;
  font-size: 14px;
  line-height: 1.6;
  border-radius: 16px;
}

.topic-link.is-locked .topic-link__content {
  filter: blur(3px);
  opacity: 0.6;
}

.topic-link__content {
  display: block;
  transition: var(--transition);
}

.topic-link__lock {
  display: inline-flex;
  margin-top: 8px;
  min-height: 24px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}

.content-area {
  margin-left: var(--sidebar-width);
  min-width: 0;
}

#overview,
#topics,
#practice {
  scroll-margin-top: 96px;
}

.section {
  padding: 72px 0;
}

.section--compact {
  padding: 48px 0;
}

.hero {
  padding-top: 56px;
}

.hero__container {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 40px;
  align-items: center;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__title {
  margin: 18px 0 16px;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero__goal {
  margin: 0 0 16px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
  color: var(--text-soft);
  font-weight: 600;
}

.hero__description {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 700px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  min-height: 54px;
  padding: 14px 22px;
  border-radius: 16px;
  font-weight: 700;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

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

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #345cff);
  color: #fff;
  box-shadow: 0 16px 30px rgba(52, 92, 255, 0.28);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-color: var(--line-strong);
}

.hero__stats,
.landing__stats {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 14px;
}

.hero__stats li,
.landing__stats li {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: var(--shadow-soft);
}

.hero__stats strong,
.landing__stats strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
}

.hero__stats span,
.landing__stats span {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  width: min(100%, 540px);
  border-radius: var(--radius-xl);
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(7, 17, 31, 0.9);
  border: 1px solid rgba(121, 184, 255, 0.18);
  box-shadow: var(--shadow-main);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -10%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(79, 140, 255, 0.16);
  filter: blur(80px);
}

.hero-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.hero-card__badge {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(79, 140, 255, 0.12);
  border: 1px solid rgba(79, 140, 255, 0.18);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-card__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 14px rgba(143, 231, 177, 0.8);
}

.hero-card__image-wrap,
.landing__visual-card {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(137, 160, 199, 0.16);
  background: linear-gradient(180deg, rgba(13, 28, 55, 0.96), rgba(8, 19, 37, 0.96));
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card__image,
.landing__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel,
.glass-card,
.final-box,
.topic-card,
.benefit-card,
.level-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.panel {
  border-radius: var(--radius-lg);
  padding: 30px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: center;
}

.panel__text {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
  font-size: 16px;
}

.section-head {
  max-width: 820px;
  margin-bottom: 50px;
  padding-left: 20px;
  margin-top: -80px;
}

.section-title {
  margin: 14px 0 12px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-title--sm {
  font-size: clamp(24px, 2.4vw, 34px);
}

.section-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
}

.landing {
  padding-top: 36px;
}

.landing__hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border-radius: 34px;
}

.landing__title {
  margin: 18px 0 16px;
  font-size: clamp(40px, 5vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.landing__title span {
  display: block;
  color: var(--accent-2);
}

.landing__text {
  margin: 0;
  max-width: 700px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.85;
}

.landing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.benefits__grid,
.levels__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 22px;
}

.benefit-card,
.level-card {
  padding: 26px;
  border-radius: 28px;
}

.benefit-card__title,
.level-card__title {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
}

.benefit-card__text,
.level-card__text {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.level-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(79, 140, 255, 0.08);
  border: 1px solid rgba(79, 140, 255, 0.16);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.premium-cta__box {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: center;
}

.premium-cta__text {
  margin: 0 0 18px;
  color: var(--text-soft);
  line-height: 1.85;
}

.premium-cta__list,
.token-list,
.check-list,
.steps,
.modal__benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}

.premium-cta__list li,
.token-list li,
.check-list li,
.steps li,
.modal__benefits li {
  position: relative;
  padding-left: 18px;
  color: var(--text-soft);
  line-height: 1.75;
}

.premium-cta__list li + li,
.token-list li + li,
.check-list li + li,
.steps li + li,
.modal__benefits li + li {
  margin-top: 10px;
}

.premium-cta__list li::before,
.token-list li::before,
.check-list li::before,
.steps li::before,
.modal__benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 0 12px rgba(79, 140, 255, 0.6);
}

.premium-cta__side {
  display: grid;
  gap: 16px;
  align-content: center;
}

.premium-cta__price {
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.premium-cta__note {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.map-page__content {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-page__loading {
  width: 100%;
  text-align: center;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.8;
}

.topics {
  display: grid;
  gap: 22px;
}

.topic-card {
  position: relative;
  border-radius: 30px;
  padding: 28px;
  scroll-margin-top: 100px;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
  overflow: hidden;
}

.topic-card:hover {
  transform: translateY(-4px);
  border-color: rgba(121, 184, 255, 0.28);
}

.topic-card.is-locked .topic-card__content {
  filter: blur(8px);
  user-select: none;
  pointer-events: none;
  opacity: 0.7;
}

.topic-card__content {
  transition: var(--transition);
}

.topic-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, rgba(4, 10, 19, 0.25), rgba(4, 10, 19, 0.45));
}

.topic-card.is-locked .topic-card__overlay {
  display: flex;
}

.topic-card__overlay-btn,
.lockable-card__overlay-btn {
  min-height: 54px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(121, 184, 255, 0.22);
  background: rgba(7, 17, 31, 0.82);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.3);
}

.topic-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.topic-card__label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(79, 140, 255, 0.08);
  border: 1px solid rgba(79, 140, 255, 0.16);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topic-card__title {
  margin: 14px 0 0;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.2;
}

.topic-card__intro {
  margin: 0 0 22px;
  color: var(--text-soft);
  line-height: 1.8;
  font-size: 16px;
}

.topic-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.info-box {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(137, 160, 199, 0.12);
}

.info-box__title {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--text);
  font-weight: 700;
}

.code-example {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(3, 9, 19, 0.9);
  border: 1px solid rgba(137, 160, 199, 0.14);
  overflow-x: auto;
}

.code-example code {
  font-family: Consolas, Monaco, monospace;
  font-size: 15px;
  line-height: 1.8;
  color: #dbe8ff;
  white-space: pre-wrap;
  word-break: break-word;
}

.note-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(121, 184, 255, 0.06);
  border: 1px solid rgba(121, 184, 255, 0.14);
  color: var(--text-soft);
  line-height: 1.75;
}

.practice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.glass-card {
  border-radius: 28px;
  padding: 28px;
}

.final-thought {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.9;
  font-size: 16px;
}

.final-box {
  border-radius: 34px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(79, 140, 255, 0.12), rgba(124, 92, 255, 0.08)),
    var(--bg-card-strong);
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px 22px;
}

.lockable-card {
  position: relative;
  overflow: hidden;
}

.lockable-card.is-locked .lockable-card__content {
  filter: blur(8px);
  user-select: none;
  pointer-events: none;
  opacity: 0.7;
}

.lockable-card__content {
  transition: var(--transition);
}

.lockable-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, rgba(4, 10, 19, 0.3), rgba(4, 10, 19, 0.52));
}

.lockable-card.is-locked .lockable-card__overlay {
  display: flex;
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: 0.7s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}

.modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(1, 6, 15, 0.72);
  backdrop-filter: blur(8px);
}

.modal__dialog {
  position: relative;
  z-index: 2;
  width: min(100%, 660px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 34px;
  border-radius: 30px;
  border: 1px solid rgba(137, 160, 199, 0.16);
  background: linear-gradient(180deg, rgba(14, 28, 54, 0.95), rgba(8, 18, 36, 0.97));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(137, 160, 199, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
}

/* Desktop: keep header visible and lower modal close button slightly */
@media (min-width: 981px) {
  .modal__overlay {
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    inset: auto 0 0 0;
  }

  .modal.is-open {
    align-items: flex-start;
    padding-top: 20px; /* small offset so dialog doesn't sit flush under header */
  }

  .modal__dialog {
    max-height: calc(100vh - (var(--header-height) + 40px));
  }

  .modal__close {
    top: 22px;
  }
}

/* Make close button fixed on desktop so it's always easy to reach */
@media (min-width: 981px) {
  .modal__close {
    position: fixed;
    /* place below header and slightly inset from right */
    top: calc(var(--header-height) + 12px);
    right: 18px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    z-index: 1115; /* above header (1101) so it's clickable */
    box-shadow: 0 8px 24px rgba(2,8,20,0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* ensure the dialog itself remains below header (no overlap) */
  .modal__dialog {
    position: relative;
    z-index: 1100; /* below the header (1101) but below the fixed close (1115) */
  }
}

.modal__brand {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.modal__brand-logo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(121, 184, 255, 0.2);
  background: radial-gradient(circle at top, rgba(79, 140, 255, 0.18), rgba(10, 20, 44, 0.96));
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3), 0 0 0 8px rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__brand-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.modal__eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.modal__title {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.1;
  text-align: center;
}

.modal__text {
  margin: 0 0 22px;
  color: var(--text-soft);
  line-height: 1.8;
  text-align: center;
}

.modal__promo {
  margin: 0 0 24px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(137, 160, 199, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.modal__promo-text {
  margin: 0 0 16px;
  color: var(--text-soft);
  line-height: 1.8;
}

.modal__price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.12), rgba(124, 92, 255, 0.1));
  border: 1px solid rgba(79, 140, 255, 0.16);
}

.modal__price-label {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
}

.modal__price-value {
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

.modal__contact {
  margin: 16px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.modal__contact a {
  color: var(--accent-2);
  font-weight: 700;
}

.modal__contact a:hover {
  text-decoration: underline;
}

.modal__form {
  display: grid;
  gap: 14px;
}

.modal__label {
  color: var(--text-soft);
  font-weight: 600;
}

.modal__input {
  min-height: 56px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(137, 160, 199, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  outline: none;
}

.modal__input:focus {
  border-color: rgba(79, 140, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.12);
}

.modal__message {
  min-height: 22px;
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.modal__message.is-error {
  color: var(--danger);
}

.modal__message.is-success {
  color: var(--success);
}

.modal__submit {
  width: 100%;
}

@media (max-width: 1200px) {
  .hero__container,
  .panel,
  .practice-grid,
  .topic-layout,
  .landing__hero,
  .premium-cta__box,
  .benefits__grid,
  .levels__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
  }

  .hero-card {
    width: 100%;
    max-width: 720px;
  }
}

@media (max-width: 980px) {
  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
  }

  .layout {
    padding-top: var(--header-height);
  }

  .header__nav {
    display: none;
  }

  .header__menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar {
    width: 100%;
    height: 100dvh;
    top: 0;
    pointer-events: none;
    opacity: 1;
    visibility: visible;
  }

  .sidebar__overlay {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(1, 6, 15, 0.72);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: var(--transition);
  }

  .sidebar__panel {
    width: min(100%, 430px);
    height: 100%;
    border-right: none;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    pointer-events: auto;
    background:
      linear-gradient(180deg, rgba(7, 17, 31, 0.98), rgba(6, 14, 28, 0.98));
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.38);
  }

  .sidebar__top {
    padding: 18px 18px 16px;
    border-bottom: 1px solid rgba(137, 160, 199, 0.1);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
  }

  body.is-sidebar-open .sidebar {
    pointer-events: auto;
  }

  body.is-sidebar-open .sidebar__overlay {
    opacity: 1;
  }

  body.is-sidebar-open .sidebar__panel {
    transform: translateX(0);
  }

  .sidebar__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar__inner {
    grid-template-rows: auto minmax(220px, 1fr) minmax(200px, 0.95fr);
  }

  .track-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-nav,
  .topic-nav {
    grid-template-columns: 1fr;
  }

  .content-area {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

  .header__container {
    min-height: 72px;
  }

  #overview,
  #topics,
  #practice {
    scroll-margin-top: 90px;
  }

  .hero__stats,
  .landing__stats,
  .check-list {
    grid-template-columns: 1fr;
  }

  .topic-card,
  .glass-card,
  .final-box,
  .panel,
  .modal__dialog,
  .landing__hero,
  .benefit-card,
  .level-card {
    padding: 22px;
  }

  .hero-card__image-wrap,
  .landing__visual-card {
    min-height: 260px;
  }

  .btn {
    width: 100%;
  }

  .hero__actions,
  .landing__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .modal__title {
    font-size: 28px;
  }

  .modal__brand-logo {
    width: 92px;
    height: 92px;
  }

  .logo__text {
    font-size: 20px;
    letter-spacing: 0.12em;
  }

  .modal__price-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .sidebar__panel {
    width: 100%;
  }

  .landing__text,
  .benefit-card__text,
  .level-card__text,
  .premium-cta__text,
  .premium-cta__note,
  .hero__description,
  .topic-card__intro,
  .panel__text,
  .final-thought {
    font-size: 17px;
    line-height: 1.9;
  }
}

@media (max-width: 560px) {
  .track-nav {
    grid-template-columns: 1fr;
  }
  .modal__dialog {
    margin-top: 200px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }
}
/* ================= FOOTER ================= */

.footer {
  position: relative;
  margin-top: 120px;
  padding: 36px 0;
  border-top: 1px solid rgba(137, 160, 199, 0.14);
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.65), rgba(4, 10, 20, 0.95));
  backdrop-filter: blur(18px);
  overflow: hidden;
}

/* glow эффект */

.footer__glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 220px;
  background:
    radial-gradient(circle,
      rgba(79,140,255,0.25) 0%,
      rgba(124,92,255,0.18) 35%,
      transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.9;
}

/* контейнер */

.footer__container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

/* бренд */

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 0;
}

.footer__logo-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 0 20px rgba(79, 140, 255, 0.9);
}

.footer__logo-text {
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 16px;
}

/* текст */

.footer__info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-muted);
}

.footer__copy {
  color: var(--text-soft);
}

.footer__price strong {
  color: var(--accent-2);
}

.footer__divider {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(137, 160, 199, 0.35);
}

/* telegram */

.footer__telegram {
  color: var(--accent-2);
  font-weight: 600;
  transition: var(--transition);
}

.footer__telegram:hover {
  color: #fff;
  text-decoration: underline;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

  .footer {
    margin-top: 80px;
    padding: 30px 0;
  }

  .footer__container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
  }

  .footer__info {
    justify-content: center;
    font-size: 15px;
    line-height: 1.7;
  }

  .footer__divider {
    display: none;
  }

  .footer__glow {
    width: 600px;
    height: 180px;
  }
  .footer__brand {
    padding-left: 0px;
  }

}

@media (max-width: 480px) {

  .footer__logo-text {
    font-size: 15px;
  }

  .footer__info {
    flex-direction: column;
    gap: 8px;
  }

}
/* ================= COURSE PROGRESS ================= */

.progress{
  padding:40px 0;
}

.progress-card{

  padding:26px;

  border-radius:26px;

  border:1px solid var(--line);

  background:
  linear-gradient(180deg,rgba(255,255,255,0.05),rgba(255,255,255,0.02)),
  rgba(10,22,44,0.65);

  backdrop-filter:blur(18px);

  display:grid;
  gap:22px;
}

.progress-item{
  display:grid;
  gap:10px;
}

.progress-head{

  display:flex;
  justify-content:space-between;

  font-size:14px;

  font-weight:600;

  color:var(--text-soft);
}

.progress-bar{

  height:10px;

  border-radius:999px;

  background:rgba(255,255,255,0.05);

  overflow:hidden;
}

.progress-bar__fill{

  width:0%;

  height:100%;

  border-radius:999px;

  background:
  linear-gradient(
  90deg,
  var(--accent),
  var(--accent-3)
  );

  box-shadow:
  0 0 16px rgba(79,140,255,0.6);

  transition:width 1s ease;
}

@media (max-width:768px){

  .progress-card{
    padding:22px;
  }

  .progress-head{
    font-size:15px;
  }

}
/* completion */

.completion{

position:fixed;
inset:0;

display:none;

align-items:center;
justify-content:center;

background:rgba(5,10,20,0.85);

z-index:200;

}

.completion-card{

padding:40px;

border-radius:26px;

background:var(--bg-card-strong);

border:1px solid var(--line);

text-align:center;

max-width:420px;

}

.completion-card h2{

margin-bottom:14px;

}


/* ===== Payment CTA refinements ===== */
.premium-cta__subnote {
  margin: -6px 0 0;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 14px;
}

.premium-cta__telegram-btn {
  width: 100%;
}

#buyAccessBtn {
  width: 100%;
}

.modal__payment-status {
  margin: 18px 0 0;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(121, 184, 255, 0.14);
  background: rgba(79, 140, 255, 0.06);
}

.modal__payment-title {
  margin: 0 0 8px;
  color: var(--text);
  font-weight: 700;
}

.modal__payment-text {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

/* ===== Sidebar stability fixes ===== */
.sidebar,
.sidebar__panel,
.sidebar__inner,
.sidebar-block,
.track-nav,
.module-nav,
.topic-nav-wrap {
  min-width: 0;
}

.sidebar__panel {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.sidebar__inner {
  overflow: visible;
}

.sidebar-block {
  overflow: visible;
}

.sidebar-block--tracks,
.sidebar-block--modules,
.sidebar-block--topics {
  min-height: 0;
}

.track-nav,
.module-nav,
.topic-nav-wrap {
  min-height: 0;
}

.track-nav {
  overflow-y: auto;
  overflow-x: hidden;
  align-content: start;
  padding-right: 6px;
}

.module-nav,
.topic-nav-wrap {
  scrollbar-gutter: stable;
}

@media (max-width: 980px) {
  .sidebar {
    overflow: hidden;
  }

  .sidebar__panel {
    max-width: min(100vw, 420px);
  }

  .sidebar__inner {
    height: calc(100dvh - 82px);
    grid-template-rows: minmax(150px, auto) minmax(180px, 1fr) minmax(180px, 1fr);
    overflow: visible;
  }

  .track-nav {
    max-height: 100%;
  }

  .module-nav,
  .topic-nav-wrap {
    max-height: 100%;
  }
}

@media (max-width: 768px) {
  .premium-cta__subnote {
    font-size: 15px;
  }
}
