/* PICASSO SALES ACADEMY · STYLES */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: #050507;
  color: #ECEAE3;
  font-family: 'Geist', system-ui, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
::selection { background: #C4A6FF; color: #050507; }

.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 36px;
  font-family: 'Geist Mono', monospace; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(236, 234, 227, 0.5);
  z-index: 50;
}
.nav-fixed {
  position: fixed; top: 0; left: 0; right: 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 5, 7, 0.7);
  border-bottom: 0.5px solid rgba(236, 234, 227, 0.06);
}
.nav-brand { color: #ECEAE3; font-weight: 600; letter-spacing: 0.18em; }
.nav-right, .nav-actions { display: flex; gap: 18px; align-items: center; }
.crumbs { display: flex; align-items: center; gap: 14px; }
.crumbs a { color: rgba(236, 234, 227, 0.65); }
.crumbs a:hover { color: #ECEAE3; }
.crumbs .sep { color: rgba(236, 234, 227, 0.25); }
.crumbs .current { color: #ECEAE3; }
.nav-counter { color: rgba(236, 234, 227, 0.7); font-variant-numeric: tabular-nums; }
.nav-user { color: rgba(236, 234, 227, 0.85); }
.nav-link { color: rgba(236, 234, 227, 0.7); cursor: pointer; transition: color 0.2s; }
.nav-link:hover { color: #ECEAE3; }
.notes-btn {
  background: rgba(208, 74, 42, 0.08);
  border: 0.5px solid rgba(208, 74, 42, 0.4);
  color: #FFB870;
  padding: 6px 14px; border-radius: 999px;
  font-family: inherit; font-size: 11px; letter-spacing: 0.1em;
  cursor: pointer; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.notes-btn:hover { border-color: #FFB870; background: rgba(208, 74, 42, 0.15); }
.notes-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: #FFB870; color: #050507;
  font-size: 9px; font-weight: 700;
}
.notes-count:empty { display: none; }

/* === ЛЕНДИНГ === */
body:has(.deck) { overflow: hidden; height: 100%; }
.deck {
  position: fixed; inset: 0;
  display: flex;
  transition: transform 0.9s cubic-bezier(0.65, 0.05, 0.05, 1);
  will-change: transform;
}
.slide {
  flex: 0 0 100vw; height: 100vh;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 80px 80px 120px;
  overflow: hidden;
}
.slide-content { max-width: 1100px; width: 100%; position: relative; z-index: 2; }

.arrow {
  position: fixed; top: 50%; transform: translateY(-50%);
  z-index: 40;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 0.5px solid rgba(236, 234, 227, 0.18);
  background: rgba(5, 5, 7, 0.5);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  color: rgba(236, 234, 227, 0.7); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; transition: all 0.3s;
}
.arrow:hover {
  border-color: rgba(196, 166, 255, 0.5);
  color: #ECEAE3;
  background: rgba(196, 166, 255, 0.1);
  transform: translateY(-50%) scale(1.05);
}
.arrow.prev { left: 24px; }
.arrow.next { right: 24px; }
.arrow:disabled { opacity: 0.3; cursor: default; }

.dots {
  position: fixed; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 40;
  display: flex; gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(5, 5, 7, 0.5);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 0.5px solid rgba(236, 234, 227, 0.1);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(236, 234, 227, 0.25);
  cursor: pointer; transition: all 0.4s;
  position: relative;
}
.dot.active { background: #ECEAE3; width: 28px; border-radius: 999px; }
.dot.active::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%; background: linear-gradient(90deg, #C4A6FF, #FFB870);
  border-radius: 999px;
  animation: progress-fill 7s linear forwards;
}
.dots.paused .dot.active::after { animation-play-state: paused; }
@keyframes progress-fill { to { width: 100%; } }

.autoplay-toggle {
  position: fixed; bottom: 36px; right: 36px;
  z-index: 40;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0.5px solid rgba(236, 234, 227, 0.18);
  background: rgba(5, 5, 7, 0.5);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  color: rgba(236, 234, 227, 0.7);
  cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

.s1 {
  background:
    radial-gradient(ellipse 90% 60% at 50% 80%, rgba(196, 166, 255, 0.22), transparent 60%),
    radial-gradient(ellipse 70% 50% at 30% 30%, rgba(120, 180, 255, 0.10), transparent 60%),
    #050507;
}
.s1 .slide-content { text-align: center; }
.eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 12px; letter-spacing: 0.32em;
  color: rgba(236, 234, 227, 0.45);
  text-transform: uppercase; margin-bottom: 32px;
}
.s1 h1 {
  font-family: 'Geist'; font-weight: 800;
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.94; letter-spacing: -0.045em;
  margin-bottom: 28px;
}
.s1 h1 .accent, .accent {
  background: linear-gradient(180deg, #FFE8B8 0%, #FFB870 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lede {
  font-size: 19px; font-weight: 300;
  color: rgba(236, 234, 227, 0.72);
  max-width: 540px; margin: 0 auto 56px;
  line-height: 1.5;
}
.cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 36px; border-radius: 999px;
  background: #ECEAE3; color: #050507;
  font-size: 15px; font-weight: 500;
  cursor: pointer; border: none;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(196, 166, 255, 0.25); }
.cta-arrow {
  display: inline-flex; width: 20px; height: 20px;
  border-radius: 50%; background: #050507; color: #ECEAE3;
  align-items: center; justify-content: center;
  font-size: 11px; transition: transform 0.3s;
}
.cta:hover .cta-arrow { transform: translateX(4px); }
.cta-block { width: 100%; justify-content: center; }

.s2 { background: #030305; }
.s2 .slide-content { text-align: center; max-width: 900px; }
.s2 h2 {
  font-family: 'Geist'; font-weight: 700;
  font-size: clamp(36px, 6vw, 76px);
  line-height: 1.05; letter-spacing: -0.035em;
  color: rgba(236, 234, 227, 0.92);
}
.s2 h2 .accent {
  background: linear-gradient(120deg, #C4A6FF 0%, #FFB870 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.s3 {
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(120, 180, 255, 0.08), transparent 70%),
    #050507;
}
.s3 .slide-content {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.s3 .left .label, .label {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(236, 234, 227, 0.45); margin-bottom: 24px;
}
.s3 .left h2 {
  font-family: 'Geist'; font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1; letter-spacing: -0.035em;
  color: #ECEAE3; margin-bottom: 20px;
}
.s3 .left p {
  font-size: 17px; line-height: 1.55; font-weight: 300;
  color: rgba(236, 234, 227, 0.65); max-width: 440px;
}
.s3 .right {
  font-family: 'Geist'; font-weight: 800;
  font-size: clamp(140px, 22vw, 280px);
  line-height: 0.85; letter-spacing: -0.07em;
  background: linear-gradient(160deg, #FFFFFF 0%, #8B6FE0 70%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: right;
}
.s3 .right .unit {
  display: block; font-family: 'Geist';
  font-size: 16px; font-weight: 400; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(236, 234, 227, 0.45);
  -webkit-text-fill-color: rgba(236, 234, 227, 0.45);
  margin-top: -20px;
}

.s4 {
  background:
    radial-gradient(ellipse 70% 50% at 70% 30%, rgba(196, 166, 255, 0.10), transparent 70%),
    #050507;
}
.s4 .head { text-align: center; margin-bottom: 48px; }
.s4 .head h2 {
  font-family: 'Geist'; font-weight: 700;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1; letter-spacing: -0.035em;
  color: #ECEAE3;
}
.s4 .head h2 .accent {
  background: linear-gradient(120deg, #C4A6FF 0%, #FFB870 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.level-card {
  position: relative;
  padding: 32px 28px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 0.5px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  min-height: 280px;
  display: flex; flex-direction: column;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.level-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.18);
}
.level-num {
  font-family: 'Geist'; font-weight: 700;
  font-size: 64px; line-height: 0.9; letter-spacing: -0.04em;
  color: rgba(236, 234, 227, 0.18);
  margin-bottom: 8px;
}
.level-title {
  font-family: 'Geist'; font-weight: 600;
  font-size: 24px; line-height: 1.05; letter-spacing: -0.02em;
  color: #ECEAE3; margin-bottom: 8px;
}
.level-subtitle {
  font-size: 13px; line-height: 1.5; font-weight: 300;
  color: rgba(236, 234, 227, 0.55);
  margin-bottom: 16px;
}
.level-meta {
  display: flex; gap: 16px;
  font-family: 'Geist Mono', monospace; font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(236, 234, 227, 0.4);
  margin-bottom: 16px;
}
.level-progress-bar {
  height: 4px; background: rgba(236,234,227,0.06);
  border-radius: 2px; overflow: hidden; margin-bottom: 8px;
}
.level-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #C4A6FF, #FFB870);
  transition: width 0.5s;
}
.level-status {
  font-family: 'Geist Mono', monospace; font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(236, 234, 227, 0.5);
}
.level-completed { border-color: rgba(120, 220, 160, 0.4); }
.level-completed .level-status { color: rgba(120, 220, 160, 0.85); }
.level-in_progress { border-color: rgba(196, 166, 255, 0.35); }
.level-in_progress .level-status { color: #C4A6FF; }
.level-locked, .level-needs_rop_approval { opacity: 0.5; cursor: default; }
.level-locked:hover, .level-needs_rop_approval:hover { transform: none; }

.s5 {
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(255, 184, 112, 0.08), transparent 70%),
    #030305;
}
.s5 .slide-content {
  display: grid; grid-template-columns: auto 1fr;
  gap: 80px; align-items: center;
}
.ring-wrap { position: relative; width: 320px; height: 320px; }
.ring-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-wrap .center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
}
.ring-wrap .pct {
  font-family: 'Geist'; font-weight: 700;
  font-size: 96px; line-height: 1; letter-spacing: -0.05em;
  background: linear-gradient(180deg, #FFE8B8 0%, #FFB870 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ring-wrap .pct-label {
  font-family: 'Geist Mono', monospace; font-size: 10px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(236, 234, 227, 0.5); margin-top: 4px;
}
.s5 .right h2 {
  font-family: 'Geist'; font-weight: 700;
  font-size: clamp(36px, 4.5vw, 56px); line-height: 1.05;
  letter-spacing: -0.035em; color: #ECEAE3; margin-bottom: 20px;
}
.s5 .right p {
  font-size: 16px; line-height: 1.6; font-weight: 300;
  color: rgba(236, 234, 227, 0.6); margin-bottom: 28px;
  max-width: 440px;
}
.stat-grid { display: grid; grid-template-columns: repeat(3, auto); gap: 36px; }
.stat .num {
  font-family: 'Geist'; font-weight: 700;
  font-size: 36px; line-height: 1; letter-spacing: -0.03em;
  color: #ECEAE3; margin-bottom: 4px;
}
.stat .lbl {
  font-family: 'Geist Mono', monospace; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(236, 234, 227, 0.45);
}

.s6 { background: #050507; }
.s6 .slide-content { text-align: center; max-width: 880px; }
.s6 .quote-mark {
  font-family: 'Geist'; font-weight: 800;
  font-size: 140px; line-height: 0.5;
  color: rgba(196, 166, 255, 0.25); margin-bottom: 32px;
}
.s6 blockquote {
  font-family: 'Geist'; font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25; letter-spacing: -0.02em;
  color: #ECEAE3; margin: 0 0 36px;
}
.who { display: inline-flex; align-items: center; gap: 14px; }
.who-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #C4A6FF, #FFB870);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; color: #050507; font-size: 14px;
}
.who-text { text-align: left; }
.who-name { font-size: 14px; font-weight: 500; color: #ECEAE3; }
.who-role {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(236, 234, 227, 0.45); margin-top: 2px;
}

.s7 {
  background:
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(196, 166, 255, 0.30), transparent 65%),
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(255, 184, 112, 0.10), transparent 70%),
    #050507;
}
.s7 .slide-content { text-align: center; }
.s7 h2 {
  font-family: 'Geist'; font-weight: 800;
  font-size: clamp(56px, 9vw, 140px); line-height: 0.94;
  letter-spacing: -0.045em; margin-bottom: 32px;
  background: linear-gradient(180deg, #FFFFFF 0%, #C4A6FF 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.s7 .small {
  font-size: 14px; color: rgba(236, 234, 227, 0.5);
  margin-top: 18px;
  font-family: 'Geist Mono', monospace; letter-spacing: 0.1em;
}

.slide.active .reveal-target { opacity: 1; transform: translateY(0); }
.reveal-target {
  opacity: 0; transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s,
              transform 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s;
}
.reveal-target.d2 { transition-delay: 0.5s; }
.reveal-target.d3 { transition-delay: 0.7s; }
.reveal-target.d4 { transition-delay: 0.9s; }

/* === ВНУТРЕННИЕ СТРАНИЦЫ === */
body:not(:has(.deck)) { overflow-x: hidden; }

.level-hero, .lesson-hero, .test-hero, .result-hero, .attestation-hero, .locked-hero, .certificate-hero, .about-hero {
  min-height: 60vh;
  padding: 140px 32px 80px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 50% at 80% 30%, rgba(196, 166, 255, 0.18), transparent 65%),
    radial-gradient(ellipse 60% 40% at 20% 70%, rgba(255, 184, 112, 0.10), transparent 70%),
    #050507;
}
.level-hero-content, .lesson-hero-content { max-width: 900px; width: 100%; }
.level-hero h1, .lesson-hero h1, .test-hero h1, .result-hero h1, .attestation-hero h1,
.locked-hero h1, .certificate-hero h1, .about-hero h1 {
  font-family: 'Geist'; font-weight: 800;
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.94; letter-spacing: -0.045em;
  margin-bottom: 32px;
  background: linear-gradient(180deg, #FFFFFF 0%, #C4A6FF 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lesson-tagline, .level-tagline {
  font-size: 22px; font-weight: 300; line-height: 1.4;
  color: rgba(236, 234, 227, 0.72);
  max-width: 600px; margin: 0 auto;
}
.lesson-meta, .level-meta-row {
  font-family: 'Geist Mono', monospace; font-size: 11px;
  letter-spacing: 0.32em; color: rgba(236, 234, 227, 0.45);
  text-transform: uppercase; margin-bottom: 32px;
  display: flex; justify-content: center; gap: 24px;
  flex-wrap: wrap;
}
.lesson-meta span:not(:last-child)::after,
.level-meta-row span:not(:last-child)::after {
  content: "·"; margin-left: 24px; color: rgba(236, 234, 227, 0.25);
}

.lesson-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 101;
  height: 2px; background: rgba(236, 234, 227, 0.06);
}
.lesson-progress-fill {
  height: 100%; background: linear-gradient(90deg, #C4A6FF, #FFB870);
  width: 0%; transition: width 0.1s;
}
.lesson-body {
  max-width: 720px; margin: 0 auto;
  padding: 80px 32px 120px;
  font-size: 18px; line-height: 1.7; font-weight: 300;
  color: rgba(236, 234, 227, 0.82);
}
.lesson-body p { margin-bottom: 1.4em; }
.lesson-body strong { color: #ECEAE3; font-weight: 500; }
.lesson-body h1 {
  font-family: 'Geist'; font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05; letter-spacing: -0.035em;
  color: #ECEAE3; margin: 80px 0 28px;
}
.lesson-body h2 {
  font-family: 'Geist'; font-weight: 700;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1; letter-spacing: -0.03em;
  color: #ECEAE3; margin: 56px 0 24px;
}
.lesson-body h3 {
  font-family: 'Geist'; font-weight: 600;
  font-size: 22px; line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ECEAE3; margin: 40px 0 12px;
}
.lesson-body h1 + p, .lesson-body h2 + p {
  font-size: 20px; line-height: 1.5; font-weight: 300;
  color: rgba(236, 234, 227, 0.92); margin-bottom: 32px;
}
.lesson-body ul, .lesson-body ol { margin: 0 0 1.4em 24px; }
.lesson-body li { margin-bottom: 0.4em; }
.lesson-body img {
  max-width: 100%; height: auto;
  border-radius: 12px;
  margin: 24px 0;
  background: #0E0E14;
  border: 0.5px solid rgba(236, 234, 227, 0.06);
}
.lesson-body blockquote {
  margin: 32px 0; padding: 20px 28px;
  border-left: 3px solid #C4A6FF;
  background: rgba(196, 166, 255, 0.04);
  border-radius: 0 10px 10px 0;
  color: #ECEAE3;
}
.lesson-body code {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px; border-radius: 4px;
  font-family: 'Geist Mono', monospace;
  font-size: 0.9em;
}
.lesson-body table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
}
.lesson-body th, .lesson-body td {
  padding: 10px 14px;
  border-bottom: 0.5px solid rgba(236, 234, 227, 0.1);
  text-align: left;
}
.lesson-body th { color: #ECEAE3; font-weight: 600; }

.lesson-end {
  max-width: 720px; margin: 0 auto;
  padding: 80px 32px 60px;
  text-align: center;
  border-top: 0.5px solid rgba(236, 234, 227, 0.08);
}
.lesson-end h2 {
  font-family: 'Geist'; font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05; letter-spacing: -0.035em;
  color: #ECEAE3; margin-bottom: 16px;
}
.lesson-end h2 .accent {
  background: linear-gradient(120deg, #C4A6FF, #FFB870);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lesson-end p {
  font-size: 17px; color: rgba(236, 234, 227, 0.65);
  margin-bottom: 32px;
  max-width: 480px; margin-left: auto; margin-right: auto;
}
.lesson-end .actions, .actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-top: 24px;
}
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  border: none; cursor: pointer;
  font-family: inherit; text-decoration: none;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-primary { background: #ECEAE3; color: #050507; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(196, 166, 255, 0.25); }
.btn-secondary {
  background: transparent; color: rgba(236, 234, 227, 0.85);
  border: 0.5px solid rgba(236, 234, 227, 0.3);
}
.btn-secondary:hover { border-color: rgba(236, 234, 227, 0.6); color: #ECEAE3; }

.lesson-nav-floor {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 50;
  display: flex; gap: 8px; padding: 8px;
  background: rgba(5, 5, 7, 0.7);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 0.5px solid rgba(236, 234, 227, 0.1);
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
}
.lesson-nav-floor a, .lesson-nav-floor button {
  background: transparent; border: none;
  color: rgba(236, 234, 227, 0.7);
  font-family: 'Geist Mono', monospace; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px;
  cursor: pointer; transition: all 0.2s;
  text-decoration: none;
}
.lesson-nav-floor a:hover, .lesson-nav-floor button:hover {
  background: rgba(236, 234, 227, 0.08); color: #ECEAE3;
}
.lesson-nav-floor .next { background: #C4A6FF; color: #050507; font-weight: 600; }
.lesson-nav-floor .next:hover { background: #D8C0FF; }
.lesson-nav-floor button:disabled { opacity: 0.3; cursor: default; }

.notes-fab {
  position: fixed; right: 0; top: 50%;
  transform: translateY(-50%); z-index: 50;
  background: rgba(208, 74, 42, 0.92);
  color: #f6f1e6;
  font-family: "Kalam", cursive; font-weight: 700;
  font-size: 14px; letter-spacing: 0.05em;
  padding: 14px 18px;
  border: none; border-radius: 12px 0 0 12px;
  cursor: pointer;
  box-shadow: -4px 8px 24px rgba(208,74,42,0.4);
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  transition: all 0.3s;
  writing-mode: vertical-rl; text-orientation: mixed;
}
.notes-fab:hover {
  background: #d04a2a;
  padding-right: 24px;
  box-shadow: -6px 12px 30px rgba(208,74,42,0.6);
}
.notes-fab .fab-pages {
  display: inline-block; width: 16px; height: 14px;
  background: #f6f1e6; border-radius: 1px;
  position: relative; writing-mode: horizontal-tb;
}
.notes-fab .fab-pages::before {
  content: ""; position: absolute;
  left: 2px; top: 3px; right: 2px; height: 1px;
  background: #d04a2a;
  box-shadow: 0 3px 0 #d04a2a, 0 6px 0 #d04a2a;
}

/* === ПАНЕЛЬ ЗАМЕТОК (БУМАЖНАЯ) === */
.notes-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5, 5, 7, 0.6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.notes-overlay.open { opacity: 1; pointer-events: all; }

.notes-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 201;
  width: 480px; max-width: 92vw;
  background: #f6f1e6; color: #1a1814;
  font-family: "Kalam", "Helvetica Neue", sans-serif;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.65, 0.05, 0.05, 1);
  display: flex; flex-direction: column;
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(208,74,42,0.18) 1px, transparent 1px);
  background-size: 100% 32px, 80px 100%;
  background-position: 0 24px, 80px 0;
}
.notes-panel.open { transform: translateX(0); }
.notes-panel::before {
  content: ""; position: absolute;
  left: 80px; top: 0; bottom: 0;
  width: 1px; background: rgba(208, 74, 42, 0.35);
  pointer-events: none;
}
.notes-header {
  padding: 28px 32px 16px 100px;
  border-bottom: 1.5px dashed rgba(26, 24, 20, 0.3);
  position: relative; background: transparent;
}
.notes-header .eyebrow {
  font-family: "Geist Mono", monospace;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(26, 24, 20, 0.5); margin-bottom: 4px;
}
.notes-header h2 {
  font-family: "Caveat", cursive; font-weight: 700;
  font-size: 48px; line-height: 1; letter-spacing: -0.01em;
  color: #1a1814; margin: 0;
}
.notes-header .meta {
  font-family: "Geist Mono", monospace;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(26, 24, 20, 0.5); margin-top: 8px;
}
.notes-close {
  position: absolute; top: 24px; right: 24px;
  width: 36px; height: 36px;
  border-radius: 50%; border: 1.5px solid rgba(26,24,20,0.3);
  background: transparent; color: #1a1814; cursor: pointer;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit; transition: all 0.2s;
}
.notes-close:hover { background: #d04a2a; border-color: #d04a2a; color: #f6f1e6; }
.notes-body {
  flex: 1; overflow-y: auto;
  padding: 24px 32px 24px 100px;
  position: relative;
}
#notes-textarea {
  width: 100%; min-height: 100%;
  background: transparent; border: none; outline: none; resize: none;
  font-family: "Kalam", cursive;
  font-size: 18px; line-height: 32px;
  color: #1a1814; padding: 0; caret-color: #d04a2a;
}
#notes-textarea::placeholder {
  color: rgba(26, 24, 20, 0.3); font-style: italic;
}
.notes-footer {
  padding: 16px 32px 20px 100px;
  border-top: 1.5px solid #1a1814;
  background: #efe8d5;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.notes-status {
  font-family: "Geist Mono", monospace;
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(26, 24, 20, 0.55);
  display: inline-flex; align-items: center; gap: 6px;
}
.notes-status::before {
  content: ""; width: 6px; height: 6px;
  border-radius: 50%; background: #2a6f4a;
}
.notes-actions { display: flex; gap: 8px; }
.notes-action {
  font-family: "Kalam", cursive; font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border: 1.5px solid #1a1814; border-radius: 3px;
  background: #f6f1e6; color: #1a1814;
  cursor: pointer; text-decoration: none;
  box-shadow: 2px 2px 0 #1a1814;
  transition: all 0.1s;
  display: inline-block;
}
.notes-action:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 #1a1814; }
.notes-action.accent { background: #d04a2a; color: #f6f1e6; border-color: #d04a2a; }

/* === Список этапов === */
.stages-list { padding: 60px 32px 120px; }
.stages-list-inner { max-width: 720px; margin: 0 auto; }
.stage-card {
  display: block;
  padding: 28px 32px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 0.5px solid rgba(255,255,255,0.08);
  margin-bottom: 12px;
  text-decoration: none; color: inherit;
  transition: all 0.3s;
}
.stage-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.18); }
.stage-num {
  font-family: 'Geist Mono', monospace; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(236, 234, 227, 0.45); margin-bottom: 8px;
}
.stage-title {
  font-family: 'Geist'; font-weight: 600;
  font-size: 24px; letter-spacing: -0.02em;
  color: #ECEAE3; margin-bottom: 6px;
}
.stage-subtitle { font-size: 14px; color: rgba(236, 234, 227, 0.65); margin-bottom: 16px; }
.stage-foot {
  display: flex; justify-content: space-between;
  font-family: 'Geist Mono', monospace; font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(236, 234, 227, 0.45);
}
.stage-completed { border-color: rgba(120, 220, 160, 0.3); }
.stage-completed .stage-status { color: rgba(120, 220, 160, 0.85); }
.stage-in_progress { border-color: rgba(196, 166, 255, 0.35); }
.stage-in_progress .stage-status { color: #C4A6FF; }
.stage-locked { opacity: 0.45; cursor: default; }
.stage-locked:hover { transform: none; }
.stage-attestation { border-color: rgba(255, 184, 112, 0.3); }
.stage-attestation .stage-status { color: #FFB870; }

/* === ТЕСТ === */
.test-form { max-width: 720px; margin: 0 auto; padding: 60px 32px 120px; }
.test-question {
  margin-bottom: 32px; padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 0.5px solid rgba(255,255,255,0.08);
  border-radius: 18px;
}
.q-num {
  font-family: 'Geist Mono', monospace; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(236, 234, 227, 0.45); margin-bottom: 12px;
}
.q-text {
  font-family: 'Geist'; font-weight: 600;
  font-size: 22px; line-height: 1.3;
  color: #ECEAE3; margin-bottom: 24px;
  letter-spacing: -0.015em;
}
.q-answers { display: flex; flex-direction: column; gap: 8px; }
.q-answer {
  padding: 14px 20px;
  background: rgba(236, 234, 227, 0.04);
  border: 0.5px solid rgba(236, 234, 227, 0.12);
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px; color: #ECEAE3; transition: all 0.2s;
  display: flex; align-items: center; gap: 12px;
}
.q-answer:hover { border-color: rgba(196, 166, 255, 0.4); background: rgba(196, 166, 255, 0.05); }
.q-answer input { accent-color: #C4A6FF; }
.q-answer:has(input:checked) { border-color: #C4A6FF; background: rgba(196, 166, 255, 0.1); }
.test-submit { margin-top: 48px; text-align: center; }

.result-hero h1.passed {
  background: linear-gradient(180deg, #FFFFFF 0%, #5DCAA5 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.result-hero h1.failed {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFB870 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.result-review { max-width: 720px; margin: 0 auto; padding: 40px 32px 120px; }
.result-review h2 {
  font-family: 'Geist'; font-weight: 700;
  font-size: 32px; letter-spacing: -0.025em;
  color: #ECEAE3; margin-bottom: 24px;
}
.review-q {
  margin-bottom: 24px; padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 0.5px solid rgba(255,255,255,0.08);
  border-radius: 14px;
}
.review-q.correct { border-left: 3px solid #5DCAA5; }
.review-q.wrong { border-left: 3px solid #FFB870; }
.rev-num {
  font-family: 'Geist Mono', monospace; font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 8px;
  color: rgba(236, 234, 227, 0.5);
}
.review-q.correct .rev-num { color: #5DCAA5; }
.review-q.wrong .rev-num { color: #FFB870; }
.rev-text { font-weight: 600; font-size: 17px; color: #ECEAE3; margin-bottom: 16px; }
.rev-options { list-style: none; }
.rev-options li {
  padding: 8px 12px; margin-bottom: 4px;
  border-radius: 6px;
  font-size: 14px; color: rgba(236, 234, 227, 0.7);
}
.rev-options li.correct { background: rgba(120, 220, 160, 0.08); color: #ECEAE3; }
.rev-options li.chosen-right { background: rgba(120, 220, 160, 0.15); color: #ECEAE3; font-weight: 500; }
.rev-options li.chosen-wrong { background: rgba(255, 120, 120, 0.1); color: #ECEAE3; }
.rev-feedback {
  margin-top: 12px; padding: 12px 14px;
  background: rgba(196, 166, 255, 0.08);
  border-radius: 8px;
  font-size: 13px;
  color: rgba(236, 234, 227, 0.85);
}

/* === ЛОГИН === */
.page-login { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-wrap { width: 100%; max-width: 440px; padding: 32px; }
.login-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 0.5px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 40px;
}
.login-card h1 {
  font-family: 'Geist'; font-weight: 800;
  font-size: 48px; letter-spacing: -0.04em;
  color: #ECEAE3; margin-bottom: 24px;
}
.login-card label { display: block; margin-bottom: 16px; }
.login-card label span {
  display: block;
  font-family: 'Geist Mono', monospace; font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(236, 234, 227, 0.5); margin-bottom: 6px;
}
.login-card input {
  width: 100%; padding: 12px 16px;
  background: rgba(236, 234, 227, 0.04);
  border: 0.5px solid rgba(236, 234, 227, 0.18);
  border-radius: 10px;
  color: #ECEAE3;
  font-family: inherit; font-size: 15px;
  transition: all 0.2s;
}
.login-card input:focus {
  outline: none;
  border-color: rgba(196, 166, 255, 0.5);
  background: rgba(236, 234, 227, 0.06);
}
.login-card .cta { margin-top: 8px; }
.login-help {
  margin-top: 24px; padding-top: 24px;
  border-top: 0.5px solid rgba(255,255,255,0.06);
  font-size: 12px;
  color: rgba(236, 234, 227, 0.45);
  line-height: 1.5;
}
.flash {
  padding: 10px 14px; margin-bottom: 12px;
  border-radius: 8px; font-size: 13px;
}
.flash-error {
  background: rgba(255, 120, 120, 0.08);
  border: 0.5px solid rgba(255, 120, 120, 0.3);
  color: #FFB8B8;
}

/* === СЕРТИФИКАТ === */
.cert-card {
  max-width: 600px; margin: 32px auto;
  padding: 56px 48px;
  background: linear-gradient(180deg, rgba(196,166,255,0.06), rgba(255,184,112,0.04));
  border: 1px solid rgba(196, 166, 255, 0.3);
  border-radius: 20px;
  text-align: center;
}
.cert-num {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; letter-spacing: 0.3em;
  color: rgba(236, 234, 227, 0.5);
  margin-bottom: 24px;
}
.cert-name {
  font-family: 'Geist'; font-weight: 700;
  font-size: 36px; letter-spacing: -0.025em;
  color: #ECEAE3; margin-bottom: 12px;
}
.cert-line { font-size: 14px; color: rgba(236, 234, 227, 0.6); margin-bottom: 8px; }
.cert-program {
  font-family: 'Geist'; font-weight: 600;
  font-size: 24px; letter-spacing: -0.02em;
  margin-bottom: 24px;
  background: linear-gradient(120deg, #C4A6FF, #FFB870);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cert-meta {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; letter-spacing: 0.18em;
  color: rgba(236, 234, 227, 0.5);
  display: flex; justify-content: center; gap: 12px;
  margin-bottom: 24px;
}
.cert-brand {
  margin-top: 32px;
  font-family: 'Geist Mono', monospace;
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(236, 234, 227, 0.35);
}

/* === МОБИЛЬНАЯ === */
@media (max-width: 760px) {
  .nav { padding: 14px 18px; }
  .slide { padding: 60px 24px 100px; }
  .arrow { display: none; }
  .s3 .slide-content, .s5 .slide-content { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .s3 .right { text-align: center; }
  .levels-grid { grid-template-columns: 1fr; }
  .level-hero, .lesson-hero, .test-hero, .result-hero,
  .attestation-hero, .locked-hero, .certificate-hero, .about-hero {
    padding: 100px 20px 60px; min-height: 50vh;
  }
  .lesson-body { padding: 40px 20px 100px; font-size: 17px; }
  .lesson-end { padding: 60px 20px; }
  .lesson-nav-floor a, .lesson-nav-floor button { font-size: 10px; padding: 8px 12px; }
  .notes-panel { width: 100vw; max-width: 100vw; }
  .notes-header, .notes-body, .notes-footer { padding-left: 60px; }
  .notes-panel::before { left: 48px; }
  .stat-grid { gap: 20px; justify-content: center; }
  .ring-wrap { width: 200px; height: 200px; margin: 0 auto; }
  .test-form { padding: 40px 20px; }
}
