:root {
  --bg: #0b0f14;
  --bg-soft: #101620;
  --card: #111821;
  --card-2: #0d131b;
  --text: #f5f7fb;
  --text-soft: #8d99ab;
  --text-muted: #667387;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.15);
  --blue: #4f6bff;
  --purple: #a855f7;
  --white: #ffffff;
  --shadow: 0 30px 80px rgba(0,0,0,.25);
  --radius: 24px;
}

html[data-theme="light"] {
  --bg: #f7f9fd;
  --bg-soft: #eef2f9;
  --card: #ffffff;
  --card-2: #f8faff;
  --text: #17253a;
  --text-soft: #718096;
  --text-muted: #93a0b4;
  --line: rgba(25,45,75,.09);
  --line-strong: rgba(25,45,75,.15);
  --shadow: 0 30px 80px rgba(44,66,105,.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 12%, rgba(79,107,255,.10), transparent 28%),
    radial-gradient(circle at 20% 45%, rgba(168,85,247,.06), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: "Montserrat", Arial, sans-serif;
  transition: background .45s ease, color .45s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 130px 0;
  overflow: hidden;
}

.section-border { border-top: 1px solid var(--line); }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 999;
  background: linear-gradient(90deg, var(--blue), var(--purple));
}

/* ==================== ШАПКА ==================== */

.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(20px);
  transition: background .45s ease;
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  letter-spacing: .22em;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  position: relative;
  border: 3px solid transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(90deg, #3B5BFF 0%, #6E5CFF 50%, #A855F7 100%) border-box;
  box-shadow:
    0 0 8px rgba(79,107,255,0.9),
    0 0 20px rgba(79,107,255,0.6),
    0 0 34px rgba(168,85,247,0.45);
}

.logo-mark::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, #3B5BFF 0%, #C9B8FF 50%, #A855F7 100%);
  box-shadow:
    0 0 10px #4F6BFF,
    0 0 20px rgba(79,107,255,0.8),
    0 0 30px rgba(168,85,247,0.7);
  border-radius: 2px;
}

.logo-mark span { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle,
.login-button,
.burger-btn {
  border: 1px solid var(--line);
  color: var(--text-soft);
  background: var(--card);
  cursor: pointer;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.theme-icon {
  position: absolute;
  transition: transform .3s ease, opacity .3s ease;
}

html[data-theme="dark"] .sun { transform: translateY(18px); opacity: 0; }
html[data-theme="dark"] .moon { transform: translateY(0); opacity: 1; }
html[data-theme="light"] .sun { transform: translateY(0); opacity: 1; }
html[data-theme="light"] .moon { transform: translateY(-18px); opacity: 0; }

.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  box-sizing: border-box;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 600;
  transition: transform .25s ease, box-shadow .25s ease;
}

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

.button-gradient {
  color: #fff;
  background: linear-gradient(100deg, var(--blue), var(--purple));
  box-shadow: 0 12px 35px rgba(79,107,255,.28);
}

/* ============================================================
   Бургер-меню
   ============================================================ */

.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  padding: 0;
  transition: all .2s;
  flex-shrink: 0;
}

.burger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-soft);
  border-radius: 2px;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.burger-btn:hover {
  border-color: rgba(79,107,255,0.4);
}

.burger-btn:hover span {
  background: var(--text);
}

.burger-btn.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); background: var(--text); }
.burger-btn.active span:nth-child(2) { opacity: 0; }
.burger-btn.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); background: var(--text); }

/* Выпадающее меню */
.dropdown-menu {
  position: fixed;
  top: 80px;
  right: 24px;
  width: 240px;
  background: rgba(19, 24, 32, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 12px;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  display: none; 
  z-index: 9999;
  animation: dropIn 0.2s ease;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

[data-theme="light"] .dropdown-menu {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 40px rgba(44,66,105,0.15);
}

.dropdown-menu.active {
  display: flex; 
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.dropdown-menu a:hover {
  background: rgba(79,107,255,0.08);
  color: var(--text);
  transform: translateX(4px);
}

.dropdown-divider {
  height: 1px;
  background: var(--line);
  margin: 8px 0;
}

/* ==================== HERO ==================== */

.hero {
  min-height: 920px;
  padding-top: 190px;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 50px;
}

.eyebrow {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .25em;
  margin-bottom: 22px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(48px, 6vw, 82px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 600;
}

.hero h1 span,
.section-heading h2 span,
.about-copy h2 span {
  background: linear-gradient(90deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 520px;
  margin: 28px 0;
  color: var(--text-soft);
  line-height: 1.8;
  font-size: 14px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 62px;
}

.text-link {
  color: var(--text-soft);
  font-size: 12px;
  transition: color .25s ease;
}

.text-link:hover { color: var(--text); }
.text-link span { margin-left: 7px; }

.hero-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.feature-icon {
  color: var(--blue);
  font-size: 19px;
  line-height: 1;
}

.feature-item strong,
.feature-item small { display: block; }

.feature-item strong { font-size: 10px; font-weight: 600; }
.feature-item small { margin-top: 5px; color: var(--text-muted); font-size: 9px; }

.hero-visual {
  min-height: 560px;
  position: relative;
  display: grid;
  place-items: center;
}

.sphere-wrap {
  width: min(540px, 90%);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
}

.sphere {
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(140deg, var(--blue), var(--purple)) border-box;
  box-shadow:
    0 0 30px rgba(79,107,255,.5),
    0 0 90px rgba(168,85,247,.2);
  position: relative;
  z-index: 3;
  animation: spherePulse 4s ease-in-out infinite;
}

.sphere::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid rgba(79,107,255,.25);
  box-shadow: 0 0 35px rgba(79,107,255,.3);
}

.sphere-line {
  width: 66%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7c8cff 20%, #fff 50%, #a855f7 80%, transparent);
  box-shadow: 0 0 18px var(--blue);
  position: absolute;
  z-index: 4;
}

.sphere-glow {
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,107,255,.18), transparent 65%);
  filter: blur(20px);
}

.sphere-wave {
  position: absolute;
  border: 1px solid rgba(79,107,255,.16);
  border-radius: 50%;
  animation: wavePulse 5s ease-out infinite;
}

.wave-1 { width: 68%; aspect-ratio: 1; }
.wave-2 { width: 95%; aspect-ratio: 1; animation-delay: 1.5s; }

.hero-note {
  position: absolute;
  right: 0;
  top: 55%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.35;
}

.hero-note i {
  color: var(--blue);
  font-size: 25px;
  margin-top: 8px;
}

.hero-orbit {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
}

.hero-orbit-1 { width: 900px; height: 900px; right: -450px; top: 30px; }
.hero-orbit-2 { width: 600px; height: 600px; left: -300px; bottom: -200px; }

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  right: 4%;
  top: 25%;
  background: radial-gradient(circle, rgba(79,107,255,.11), transparent 68%);
  filter: blur(20px);
}

/* ==================== ОБЩИЕ СЕКЦИИ ==================== */

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(38px, 4.5vw, 62px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 600;
}

.section-heading > p {
  max-width: 330px;
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.8;
}

/* ==================== STEPS ==================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.step-card {
  position: relative;
  min-height: 300px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, transform .3s ease;
}

.step-card:hover {
  background: rgba(79,107,255,.035);
  transform: translateY(-5px);
}

.step-number { color: var(--text-muted); font-size: 10px; letter-spacing: .15em; }

.step-icon {
  margin-top: 70px;
  margin-bottom: 22px;
  color: var(--blue);
  font-size: 26px;
}

.step-card h3 { margin: 0 0 12px; font-size: 17px; }
.step-card p { margin: 0; color: var(--text-soft); font-size: 12px; line-height: 1.7; }

/* ==================== ABOUT ==================== */

.about-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
  align-items: center;
}

.about-copy h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -.055em;
}

.about-copy p {
  max-width: 510px;
  margin: 28px 0;
  color: var(--text-soft);
  line-height: 1.9;
  font-size: 13px;
}

.about-panel {
  min-height: 520px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 65% 45%, rgba(79,107,255,.12), transparent 34%),
    var(--card);
  box-shadow: var(--shadow);
}

.panel-orbit {
  position: absolute;
  width: 650px;
  height: 650px;
  border: 1px solid var(--line);
  border-radius: 50%;
  top: -80px;
  left: 25%;
}

.panel-sphere {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.panel-sphere .sphere { width: 210px; }

.panel-caption {
  position: absolute;
  left: 34px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  letter-spacing: .16em;
}

.panel-caption span { color: var(--text-muted); }

/* ==================== ADVANTAGES ==================== */

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.advantage {
  min-height: 270px;
  padding: 28px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, transform .3s ease;
}

.advantage:hover {
  background: rgba(79,107,255,.035);
  transform: translateY(-5px);
}

.advantage:last-child { border-right: 0; }

.advantage-number { color: var(--blue); font-size: 11px; letter-spacing: .18em; }
.advantage h3 { margin: 90px 0 12px; font-size: 20px; }
.advantage p { margin: 0; color: var(--text-soft); font-size: 12px; line-height: 1.7; }

/* ==================== COURSES ==================== */

.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.course-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-8px);
  border-color: rgba(79,107,255,.35);
  box-shadow: var(--shadow);
}

.course-large { grid-row: span 2; }
.course-wide { grid-column: span 2; }

.course-art {
  width: 100%;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: #080c12;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.course-large .course-art,
.course-wide .course-art {
  aspect-ratio: 16 / 9;
}

/* ============ ОХРАНА ТРУДА — КАСКА ============ */

.art-security {
  background:
    radial-gradient(circle at 50% 55%, rgba(79,107,255,.22), transparent 45%),
    #080c12;
}

.helmet {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 170px;
  height: 130px;
  z-index: 2;
}

.helmet-dome {
  position: absolute;
  left: 50%;
  top: 4px;
  transform: translateX(-50%);
  width: 130px;
  height: 90px;
  border: 2px solid rgba(79,107,255,.85);
  border-bottom: 0;
  border-radius: 65px 65px 0 0;
  background: linear-gradient(180deg, rgba(79,107,255,.14), rgba(168,85,247,.04));
  box-shadow:
    0 0 32px rgba(79,107,255,.45),
    inset 0 0 22px rgba(79,107,255,.12);
}

.helmet-ridge {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  width: 2px;
  height: 80px;
  background: linear-gradient(180deg, transparent, #4f6bff 25%, #a855f7 85%, transparent);
  box-shadow: 0 0 10px #4f6bff;
  z-index: 3;
}

.helmet-brim {
  position: absolute;
  left: 50%;
  top: 90px;
  transform: translateX(-50%);
  width: 170px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, #4f6bff 15%, #a855f7 50%, #4f6bff 85%, transparent);
  box-shadow:
    0 0 15px #4f6bff,
    0 0 35px rgba(79,107,255,.5);
}

.helmet-strap {
  position: absolute;
  left: 50%;
  top: 98px;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,107,255,.55), transparent);
  box-shadow: 0 0 8px rgba(79,107,255,.6);
}

/* ============ ДЕЛОПРОИЗВОДСТВО — документ ============ */

.art-docs {
  background:
    radial-gradient(circle at 50% 50%, rgba(79,107,255,.14), transparent 55%),
    linear-gradient(135deg, #131b27, #0b1017);
}

.doc {
  position: absolute;
  width: 118px;
  height: 140px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(79,107,255,.55);
  border-radius: 4px;
  background: linear-gradient(160deg, rgba(79,107,255,.08), rgba(168,85,247,.03));
  box-shadow:
    0 0 40px rgba(79,107,255,.25),
    inset 0 0 22px rgba(79,107,255,.06);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.doc::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 16px;
  height: 16px;
  background: linear-gradient(225deg, rgba(79,107,255,.35), transparent 55%);
  border-bottom-left-radius: 4px;
}

.doc-head {
  height: 3px;
  width: 45%;
  background: linear-gradient(90deg, #4f6bff, #a855f7);
  border-radius: 2px;
  box-shadow: 0 0 12px #4f6bff;
  margin-bottom: 4px;
}

.doc-line {
  height: 1px;
  border-radius: 1px;
  background: linear-gradient(90deg, rgba(79,107,255,.65), rgba(168,85,247,.15));
  box-shadow: 0 0 6px rgba(79,107,255,.4);
}

.doc-line-1 { width: 100%; }
.doc-line-2 { width: 82%; }
.doc-line-3 { width: 90%; }
.doc-line-4 { width: 62%; }
.doc-line-5 { width: 86%; }

.doc-sign {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(168,85,247,.7);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(168,85,247,.5);
}

.doc-sign::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 1px;
  background: rgba(168,85,247,.85);
  box-shadow: 0 0 6px rgba(168,85,247,.9);
}

/* ============ АРХИВ — книжный шкаф ============ */

.art-archive {
  background:
    radial-gradient(circle at 50% 50%, rgba(79,107,255,.14), transparent 55%),
    linear-gradient(135deg, #111a22, #0b0f14);
}

.shelf {
  position: absolute;
  width: 150px;
  height: 130px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(79,107,255,.55);
  border-radius: 4px;
  background: linear-gradient(160deg, rgba(79,107,255,.06), rgba(168,85,247,.03));
  box-shadow:
    0 0 40px rgba(79,107,255,.25),
    inset 0 0 22px rgba(79,107,255,.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.shelf-row {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 0 12px 5px;
  border-bottom: 1px solid rgba(79,107,255,.35);
  box-shadow: 0 1px 6px rgba(79,107,255,.25);
  position: relative;
}

.shelf-row:last-child {
  border-bottom: 0;
  box-shadow: none;
}

.shelf-row span {
  width: 5px;
  border-radius: 1px 1px 0 0;
  background: linear-gradient(180deg, #4f6bff, #a855f7);
  box-shadow: 0 0 8px rgba(79,107,255,.6);
}

.shelf-row span:nth-child(1) { height: 60%; }
.shelf-row span:nth-child(2) { height: 82%; }
.shelf-row span:nth-child(3) { height: 70%; }
.shelf-row span:nth-child(4) { height: 88%; }

/* ============ FRONTEND ============ */

.art-code-large {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(79,107,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,107,255,.04) 1px, transparent 1px),
    #080c12;
  background-size: 35px 35px;
}

.art-code-large > span {
  font-size: 80px;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  text-shadow: 0 0 40px rgba(79,107,255,.7);
}

.art-code-large i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 15px var(--blue);
}

.art-code-large i:nth-child(2) { left: 18%; top: 25%; }
.art-code-large i:nth-child(3) { right: 17%; top: 30%; background: var(--purple); }
.art-code-large i:nth-child(4) { right: 25%; bottom: 20%; }

/* ============ ПОДПИСЬ ============ */

.art-code {
  position: absolute;
  right: 20px;
  bottom: 14px;
  color: rgba(255,255,255,.45);
  font-size: 10px;
  letter-spacing: .2em;
  z-index: 4;
}

/* ============ ТЕЛО КАРТОЧКИ ============ */

.course-body {
  position: relative;
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
}

.course-body h3 {
  margin: 16px 0 8px;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -.03em;
}

.course-body p {
  margin: 0;
  max-width: 470px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.65;
}

/* ============ НИЗ КАРТОЧКИ ============ */

.course-bottom {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.course-bottom strong {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.course-bottom a { color: var(--blue); font-size: 11px; }

/* ================================
   ПАФОСНЫЙ ТИПОГРАФИЧЕСКИЙ БЛОК
   ================================ */

.course-statement {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  margin: 22px 0 20px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.06;
  letter-spacing: -.04em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
}

.course-large .course-statement {
  flex: 1;
  gap: 22px;
  margin: 26px 0 22px;
  padding: 0 0 26px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.02;
  letter-spacing: -.05em;
}

.statement-line {
  display: block;
  color: var(--text);
}

.course-statement::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(79,107,255,.10), transparent 60%);
  pointer-events: none;
  border-radius: 4px;
}

/* ==================== REVIEWS ==================== */

.reviews-window { overflow: hidden; }

.reviews-track {
  display: flex;
  gap: 16px;
  transition: transform .5s ease;
}

.review-card {
  min-width: calc(33.333% - 11px);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 25px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.review-card p {
  min-height: 105px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.8;
}

.review-card strong,
.review-card span { display: block; }

.review-card strong { font-size: 12px; }
.review-card span { margin-top: 5px; color: var(--text-muted); font-size: 10px; }

.slider-controls { display: flex; gap: 8px; }

.slider-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: var(--card);
  cursor: pointer;
  transition: opacity .25s ease;
}

/* ==================== STATS ==================== */

.stats-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 30px;
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: 0; }

.stat strong {
  display: block;
  font-size: clamp(38px, 5vw, 68px);
  letter-spacing: -.06em;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

/* ==================== FAQ ==================== */

.faq-grid {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: 100px;
}

.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }

.faq-question {
  width: 100%;
  padding: 23px 0;
  display: flex;
  justify-content: space-between;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-size: 14px;
}

.faq-question span {
  color: var(--blue);
  font-size: 22px;
  transition: transform .3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.8;
  transition: max-height .4s ease, padding .4s ease;
}

.faq-item.open .faq-answer {
  max-height: 180px;
  padding: 0 40px 22px 0;
}

.faq-item.open .faq-question span { transform: rotate(45deg); }

/* ==================== CTA ==================== */

.final-cta {
  min-height: 560px;
  display: grid;
  place-items: center;
  text-align: center;
  border-top: 1px solid var(--line);
}

.final-cta-inner { position: relative; z-index: 2; }

.final-cta h2 {
  margin: 0;
  font-size: clamp(60px, 9vw, 120px);
  line-height: .9;
  letter-spacing: -.07em;
}

.final-cta p { margin: 25px 0 35px; color: var(--text-soft); }

.cta-orbit {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: 0 0 100px rgba(79,107,255,.06);
}

/* ==================== FOOTER ==================== */

.footer {
  padding: 70px 0 25px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
}

.footer p { color: var(--text-muted); font-size: 11px; line-height: 1.8; }

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact > span {
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .15em;
}

.footer-contact a { font-size: 12px; color: var(--text-soft); }

.socials { display: flex; gap: 7px; margin-top: 7px; }

.socials a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 9px;
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 9px;
}

/* ==================== АНИМАЦИИ ==================== */

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }

@keyframes spherePulse {
  0%,100% { transform: scale(.97); }
  50% { transform: scale(1.04); }
}

@keyframes wavePulse {
  0% { transform: scale(.75); opacity: .5; }
  70%,100% { transform: scale(1.08); opacity: 0; }
}

/* ==================== СВЕТЛАЯ ВЕРСИЯ ==================== */

html[data-theme="light"] body::before {
  background-image: linear-gradient(rgba(25,45,75,.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(25,45,75,.025) 1px, transparent 1px);
}

html[data-theme="light"] .course-art {
  background-color: #e9edf5;
}

/* ---------- ОХРАНА ТРУДА — КАСКА ---------- */

html[data-theme="light"] .art-security {
  background:
    radial-gradient(circle at 50% 55%, rgba(79,107,255,.16), transparent 45%),
    #e9edf5;
}

html[data-theme="light"] .helmet-dome {
  border-color: rgba(79,107,255,.6);
  background: linear-gradient(180deg, rgba(79,107,255,.08), rgba(168,85,247,.02));
  box-shadow:
    0 0 26px rgba(79,107,255,.2),
    inset 0 0 18px rgba(79,107,255,.06);
}

html[data-theme="light"] .helmet-ridge {
  box-shadow: 0 0 8px rgba(79,107,255,.55);
}

html[data-theme="light"] .helmet-brim {
  box-shadow:
    0 0 12px rgba(79,107,255,.55),
    0 0 28px rgba(79,107,255,.3);
}

html[data-theme="light"] .helmet-strap {
  background: linear-gradient(90deg, transparent, rgba(79,107,255,.45), transparent);
  box-shadow: 0 0 6px rgba(79,107,255,.5);
}

html[data-theme="light"] .art-security .art-code {
  color: rgba(23,37,58,.45);
}

/* ---------- ДЕЛОПРОИЗВОДСТВО ---------- */

html[data-theme="light"] .art-docs {
  background:
    radial-gradient(circle at 50% 50%, rgba(79,107,255,.12), transparent 55%),
    linear-gradient(135deg, #eef3fb, #dde6f3);
}

html[data-theme="light"] .doc {
  border-color: rgba(79,107,255,.45);
  background: linear-gradient(160deg, rgba(79,107,255,.06), rgba(255,255,255,.55));
  box-shadow:
    0 0 30px rgba(79,107,255,.15),
    inset 0 0 18px rgba(79,107,255,.05);
}

html[data-theme="light"] .doc::before {
  background: linear-gradient(225deg, rgba(79,107,255,.28), transparent 55%);
}

html[data-theme="light"] .doc-head {
  box-shadow: 0 0 8px rgba(79,107,255,.6);
}

html[data-theme="light"] .doc-line {
  background: linear-gradient(90deg, rgba(79,107,255,.55), rgba(168,85,247,.15));
  box-shadow: 0 0 4px rgba(79,107,255,.35);
}

html[data-theme="light"] .doc-sign {
  border-color: rgba(168,85,247,.6);
  box-shadow: 0 0 10px rgba(168,85,247,.35);
}

html[data-theme="light"] .doc-sign::before {
  background: rgba(168,85,247,.75);
  box-shadow: 0 0 4px rgba(168,85,247,.7);
}

/* ---------- АРХИВ ---------- */

html[data-theme="light"] .art-archive {
  background:
    radial-gradient(circle at 50% 50%, rgba(79,107,255,.12), transparent 55%),
    linear-gradient(135deg, #eaf0f7, #dee6f0);
}

html[data-theme="light"] .shelf {
  border-color: rgba(79,107,255,.45);
  background: linear-gradient(160deg, rgba(79,107,255,.06), rgba(255,255,255,.55));
  box-shadow:
    0 0 30px rgba(79,107,255,.15),
    inset 0 0 18px rgba(79,107,255,.05);
}

html[data-theme="light"] .shelf-row {
  border-bottom-color: rgba(79,107,255,.28);
  box-shadow: 0 1px 4px rgba(79,107,255,.15);
}

html[data-theme="light"] .shelf-row span {
  box-shadow: 0 0 6px rgba(79,107,255,.5);
}

/* ---------- FRONTEND ---------- */

html[data-theme="light"] .art-code-large {
  background:
    linear-gradient(rgba(79,107,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,107,255,.08) 1px, transparent 1px),
    #e9edf5;
}

html[data-theme="light"] .art-code-large > span {
  color: #24334a;
  text-shadow: 0 0 30px rgba(79,107,255,.5);
}

html[data-theme="light"] .art-code-large i {
  box-shadow: 0 0 10px rgba(79,107,255,.7);
}

/* ---------- ОБЩИЕ ПОДПИСИ ---------- */

html[data-theme="light"] .art-code {
  color: rgba(23,37,58,.45);
}

/* ==================== АДАПТИВ ==================== */

@media (max-width: 900px) {
  .dropdown-menu {
    right: 20px;
    width: calc(100% - 40px);
    top: 72px;
  }

  .hero { min-height: auto; padding-top: 150px; }

  .hero-grid,
  .about-grid,
  .faq-grid { grid-template-columns: 1fr; }

  .hero-visual { min-height: 430px; }
  .hero-note { right: 5%; }
  .steps-grid,
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .review-card { min-width: calc(50% - 8px); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .container { width: min(100% - 30px, 1180px); }
  .section { padding: 85px 0; }

  .header-inner { height: 64px; }
  .header-actions .login-button { display: none; }
  .theme-toggle { display: none; }

  .hero { padding-top: 120px; }

  .hero h1 { font-size: 48px; }
  .hero-features { grid-template-columns: repeat(2, 1fr); }
  .hero-buttons { align-items: flex-start; flex-direction: column; margin-bottom: 40px; }
  .hero-visual { min-height: 330px; }
  .sphere-wrap { width: 90%; }

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

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

  .course-wide { grid-column: auto; }
  .course-large { grid-row: auto; }
  .advantage { border-right: 0; }
  .review-card { min-width: 100%; }

  .faq-grid { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; }

  .hero-orbit-1 { right: -650px; }

  .course-statement {
    font-size: 20px;
    line-height: 1.08;
    gap: 14px;
    margin: 20px 0 18px;
    padding: 0 0 18px;
  }

  .course-large .course-statement {
    font-size: 26px;
    line-height: 1.05;
    gap: 18px;
    margin: 22px 0 20px;
    padding: 0 0 22px;
  }
}

/* ============================================================
   ОБЛОЖКА КУРСА В КАТАЛОГЕ
   ============================================================ */
.course-art--image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.course-art--placeholder {
  display: grid;
  place-items: center;
  font-size: 42px;
  color: rgba(79,107,255,.55);
  background:
    radial-gradient(circle at 50% 50%, rgba(79,107,255,.14), transparent 55%),
    #080c12;
}
[data-theme="light"] .course-art--placeholder {
  background:
    radial-gradient(circle at 50% 50%, rgba(79,107,255,.10), transparent 55%),
    #e9edf5;
  color: rgba(79,107,255,.65);
}

/* ============ Карточка курса как ссылка ============ */
a.course-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.course-link {
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  transition: transform .25s ease;
  display: inline-block;
}
a.course-card:hover .course-link { transform: translateX(4px); }

/* ============================================================
   БЛОК ПРОВЕРКИ СЕРТИФИКАТА НА ГЛАВНОЙ
   ============================================================ */

.verify-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.verify-orbit {
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  border: 1px solid var(--line);
  left: -320px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: .7;
}

.verify-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 56px 60px;
  border-radius: var(--radius);
  overflow: hidden;

  background:
    radial-gradient(ellipse 70% 130% at 0% 50%, rgba(79,107,255,.14), transparent 60%),
    radial-gradient(ellipse 70% 130% at 100% 50%, rgba(168,85,247,.10), transparent 60%),
    var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

html[data-theme="light"] .verify-panel {
  background:
    radial-gradient(ellipse 70% 130% at 0% 50%, rgba(79,107,255,.07), transparent 60%),
    radial-gradient(ellipse 70% 130% at 100% 50%, rgba(168,85,247,.05), transparent 60%),
    #ffffff;
}

.verify-panel-inner {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.verify-form {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.verify-input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 16px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  outline: none;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
html[data-theme="light"] .verify-input {
  background: rgba(25,45,75,.04);
  border-color: rgba(25,45,75,.10);
}
.verify-input::placeholder {
  color: var(--text-muted);
  opacity: .7;
  font-weight: 400;
}
.verify-input:focus {
  border-color: rgba(79,107,255,.75);
  box-shadow: 0 0 0 4px rgba(79,107,255,.14);
}

.verify-form .button {
  min-height: 52px;
  padding: 0 30px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- РЕЗУЛЬТАТ ---------- */
.verify-result {
  margin-bottom: 18px;
  padding: 20px 22px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
  animation: verifyIn .3s ease;
}

@keyframes verifyIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.verify-result.ok {
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.35);
  color: #22C55E;
}
.verify-result.bad {
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.35);
  color: #EF4444;
}

.verify-result-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
  color: inherit;
}

.verify-result-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.verify-result.ok .verify-result-icon {
  background: linear-gradient(135deg, #22C55E, #4F6BFF);
}
.verify-result.bad .verify-result-icon {
  background: linear-gradient(135deg, #EF4444, #A855F7);
}

.verify-result-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(79,107,255,.10);
  color: var(--text-soft);
}
.verify-result-row:last-child { border-bottom: 0; }
.verify-result-row .lbl { opacity: .75; }
.verify-result-row .val {
  font-weight: 600;
  color: var(--text);
  text-align: right;
  word-break: break-word;
}

.verify-hint {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-muted);
}
.verify-hint span {
  color: var(--blue);
  font-size: 9px;
  margin-top: 4px;
  flex-shrink: 0;
}

/* ---------- ПРАВАЯ ГРАФИКА ---------- */
.verify-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 20px 0;
}

.verify-badge {
  position: relative;
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
}

.verify-badge-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(135deg, var(--blue), var(--purple)) border-box;
  box-shadow:
    0 0 40px rgba(79,107,255,.35),
    0 0 80px rgba(168,85,247,.18);
  animation: verifyPulse 4s ease-in-out infinite;
}

html[data-theme="light"] .verify-badge-ring {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, var(--blue), var(--purple)) border-box;
  box-shadow:
    0 0 30px rgba(79,107,255,.25),
    0 0 60px rgba(168,85,247,.12);
}

@keyframes verifyPulse {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.05); }
}

.verify-badge-icon {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(79,107,255,.55));
}

.verify-badge-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.verify-badge-caption strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
}
.verify-badge-caption span {
  font-size: 11px;
  color: var(--text-muted);
}

/* ---------- АДАПТИВ ---------- */
@media (max-width: 900px) {
  .verify-panel {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 32px;
  }
  .verify-visual {
    order: -1;
    padding: 0;
  }
  .verify-badge {
    width: 130px;
    height: 130px;
  }
  .verify-badge-icon { font-size: 44px; }
  .verify-orbit { display: none; }
}

@media (max-width: 620px) {
  .verify-panel { padding: 30px 22px; }
  .verify-form .button { width: 100%; justify-content: center; }
  .verify-form .button span { display: none; }
}