
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #080909;
  --surface: #101211;
  --surface-2: #151817;
  --line: #292d2a;
  --text: #f4f5f1;
  --muted: #a4aaa3;
  --accent: #d8ff73;
  --accent-ink: #171b0d;
  --gold: #d5c08b;
  --danger: #ffaaa5;
  --radius: 22px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(
      ellipse at 80% -15%,
      rgba(216, 255, 115, .08),
      transparent 36%
    ),
    var(--bg);
  color: var(--text);
  font: 15px/1.65 Manrope, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
textarea,
select {
  font-family: Manrope, Arial, sans-serif;
}

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

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

button {
  cursor: pointer;
}

button:disabled {
  opacity: .55;
  cursor: wait;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: 'Space Grotesk', Manrope, sans-serif;
  letter-spacing: -.045em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(42px, 6.2vw, 78px);
  margin: 18px 0 22px;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 14px;
}

h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

p {
  color: var(--muted);
}

.muted,
.small,
.page-note {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.page-note {
  font-size: 13px;
  margin-top: 18px;
}

.layout {
  min-height: 100vh;
}

.sidebar {
  display: none !important;
}

.main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 82px;
  padding: 16px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(8, 9, 9, .86);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(216, 255, 115, .65);
  border-radius: 14px;
  color: var(--accent);
  font: 700 14px 'Space Grotesk', sans-serif;
  letter-spacing: -1px;
  box-shadow: inset 0 0 22px rgba(216, 255, 115, .06);
}

.brand-text {
  display: grid;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 14px;
  letter-spacing: -.02em;
}

.brand-text small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}

.crumb {
  font-size: 12px;
  color: #737a72;
  letter-spacing: .07em;
  text-transform: uppercase;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  margin-right: 14px;
}

.nav a {
  padding: 10px 13px;
  border-radius: 12px;
  color: #aeb4ad;
  font-size: 13px;
  transition: .2s;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: #1a1e1b;
}

.nav a.active:after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 0 2px 7px;
  border-radius: 50%;
  background: var(--accent);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-left: 13px;
  border-left: 1px solid var(--line);
}

.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
}

.user-text {
  display: grid;
  line-height: 1.2;
}

.user-text strong {
  font-size: 12px;
}

.user-text small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.content {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 100px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.eyebrow:before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.hero-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 450px;
  padding: clamp(30px, 6vw, 76px);
  border: 1px solid #30372b;
  border-radius: 30px;
  background:
    linear-gradient(115deg, rgba(216, 255, 115, .055), transparent 42%),
    linear-gradient(135deg, #141815, #0d0f0e 65%);
  display: flex;
  align-items: center;
}

.hero-panel:before {
  content: '∑';
  position: absolute;
  z-index: -1;
  right: 5%;
  top: -16%;
  font: 700 clamp(220px, 38vw, 470px)/1 'Space Grotesk', sans-serif;
  color: rgba(216, 255, 115, .045);
  transform: rotate(-13deg);
}

.hero-copy {
  max-width: 800px;
}

.hero-copy h1 span {
  color: var(--accent);
}

.hero-copy p {
  max-width: 660px;
  font-size: 16px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 45px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 800;
  transition:
    transform .18s,
    background .18s,
    border-color .18s;
  color: var(--text);
  white-space: normal;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: #e4ff9d;
  color: #111;
}

.btn-secondary {
  background: #171a18;
  border-color: #303530;
  color: #f0f2ed;
}

.btn-secondary:hover {
  background: #202520;
  border-color: #4b5548;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.step,
.card,
.panel,
.stat-card,
.list-item,
.question {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #121513, #0e100f);
}

.step {
  padding: 27px;
  min-height: 190px;
}

.step b {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: .14em;
}

.step h3 {
  margin-top: 27px;
}

.step p {
  font-size: 13px;
  line-height: 1.75;
  margin-bottom: 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 24px;
}

.section-head p {
  max-width: 540px;
  margin-bottom: 0;
}

.section-title {
  margin: 50px 0 20px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 25px;
  transition: transform .2s, border-color .2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #4b5940;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}

.icon-box {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 14px;
  background: rgba(216, 255, 115, .09);
  color: var(--accent);
  font: 600 24px 'Space Grotesk', sans-serif;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #333a31;
  border-radius: 999px;
  background: #181d17;
  color: #d5dfcb;
  font-size: 10px;
  font-weight: 800;
}

.card h3 {
  font-size: 24px;
}

.card p {
  font-size: 13px;
  line-height: 1.75;
}

.card-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-top: auto;
  padding-top: 18px;
}

.panel {
  padding: clamp(24px, 4vw, 42px);
}

.panel > p {
  max-width: 800px;
}

.list {
  display: grid;
  gap: 10px;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
}

.list-item h3 {
  font-size: 17px;
  letter-spacing: -.025em;
  margin: 0 0 7px;
}

.list-item p {
  font-size: 12px;
  margin: 0;
}

.list-item .btn {
  flex-shrink: 0;
}

.empty {
  padding: 26px;
  border: 1px dashed #3a4038;
  border-radius: 16px;
  color: var(--muted);
  font-size: 13px;
  background: rgba(255, 255, 255, .015);
}

.notice {
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid #343c2c;
  border-radius: 15px;
  background: rgba(216, 255, 115, .055);
  color: #e5ebdb;
  font-size: 13px;
  line-height: 1.75;
}

.notice.error {
  border-color: #633b39;
  background: #2a1514;
  color: #ffcfcb;
}

.notice.success {
  border-color: #3b5635;
}

.notice[hidden],
.overlay[hidden] {
  display: none !important;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.field label,
label {
  font-size: 12px;
  color: #d3d8d0;
}

.field input,
.field textarea,
input:not([type=radio]):not([type=checkbox]),
select,
textarea {
  width: 100%;
  min-height: 45px;
  padding: 12px 14px;
  border: 1px solid #343a34;
  border-radius: 12px;
  background: #0a0c0b;
  color: var(--text);
  outline: none;
}

.field input:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: #9cba59;
  box-shadow: 0 0 0 3px rgba(216, 255, 115, .08);
}

.status {
  font-size: 12px;
  min-height: 18px;
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  place-items: center;
  overflow: auto;
  padding: 22px;
  background: rgba(0, 0, 0, .76);
  backdrop-filter: blur(12px);
}

.overlay.open {
  display: grid;
}

.modal {
  width: min(100%, 520px);
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 28px;
  border: 1px solid #3a4037;
  border-radius: 24px;
  background: #111412;
  box-shadow: 0 30px 100px #000;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.modal-head h2 {
  font-size: 28px;
  margin: 10px 0;
}

.modal-head p {
  font-size: 12px;
  margin: 0;
}

.close {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid #363b35;
  border-radius: 50%;
  background: #1b1f1b;
  color: white;
  font-size: 23px;
}

.question {
  display: grid;
  gap: 13px;
  margin-bottom: 12px;
  padding: 19px;
}

.question > b {
  font-size: 15px;
}

.question label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid #303630;
  border-radius: 10px;
  background: #0d100e;
}

.question input[type=radio],
.question input[type=checkbox] {
  accent-color: var(--accent);
}

.cabinet-intro {
  margin-bottom: 32px;
}

.cabinet-intro h1 span {
  color: var(--accent);
}

.cabinet-intro p {
  max-width: 640px;
  font-size: 15px;
  line-height: 1.8;
}

.cabinet-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 25px;
}

.cabinet-profile-heading {
  flex: 1;
  min-width: 0;
}

.cabinet-profile-heading h2 {
  font-size: 26px;
  margin: 9px 0;
  overflow-wrap: anywhere;
}

.cabinet-avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 23px;
  background: var(--accent);
  color: #151a0b;
  font-size: 26px;
  font-weight: 800;
}

.cabinet-section {
  margin-top: 48px;
}

.cabinet-section .section-title {
  margin: 10px 0 0;
  font-size: clamp(26px, 4vw, 36px);
}

.cabinet-section .section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.text-link {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.text-link:hover {
  color: #efffc7;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.stat-card {
  padding: 20px;
}

.stat-card strong {
  display: block;
  font: 600 26px 'Space Grotesk', sans-serif;
}

.stat-card span {
  color: var(--muted);
  font-size: 11px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  margin-top: 45px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #71786f;
}

.footer a {
  color: #c8cec4;
}

.mobile-menu {
  display: none;
}

.hr {
  height: 1px;
  background: var(--line);
  margin: 28px 0;
}

@media (max-width: 1050px) {
  .topbar {
    flex-wrap: wrap;
    padding: 14px 24px;
  }

  .crumb {
    display: none;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    margin: 0;
    overflow: auto;
  }

  .topbar-right {
    margin-left: auto;
  }

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

  .hero-panel {
    min-height: 390px;
  }
}

@media (max-width: 680px) {
  .topbar {
    gap: 12px;
    padding: 12px 16px;
  }

  .brand-text strong {
    font-size: 12px;
  }

  .brand-text small {
    font-size: 10px;
  }

  .logo {
    width: 38px;
    height: 38px;
  }

  .topbar-right {
    gap: 6px;
  }

  .user-chip {
    display: none;
  }

  .topbar-right > .btn {
    min-height: 38px;
    padding: 9px 11px;
    font-size: 11px;
  }

  .nav {
    gap: 2px;
  }

  .nav a {
    font-size: 12px;
    padding: 9px 11px;
    white-space: nowrap;
  }

  .content {
    width: calc(100% - 30px);
    padding: 28px 0 64px;
  }

  .hero-panel {
    padding: 28px 23px;
    min-height: 420px;
    border-radius: 23px;
  }

  .hero-copy p {
    font-size: 14px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .steps,
  .course-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .step {
    min-height: 0;
    padding: 23px;
  }

  .step h3 {
    margin-top: 17px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-title {
    margin-top: 36px;
  }

  .card {
    min-height: 0;
  }

  .list-item {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .list-item .btn {
    width: 100%;
  }

  .panel {
    padding: 22px 17px;
    border-radius: 20px;
  }

  .modal {
    padding: 22px 17px;
  }

  .footer {
    flex-direction: column;
  }

  .cabinet-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .cabinet-head > .btn {
    width: 100%;
  }

  .cabinet-section .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats {
    gap: 8px;
  }

  .stat-card {
    padding: 16px;
  }
}
