:root {
  --brand: #6C5CE7;
  --brand-600: #5B49DD;
  --brand-700: #4A38C4;
  --brand-soft: #EFECFF;
  --brand-soft-2: #F6F4FF;
  --brand-line: rgba(108, 92, 231, 0.24);

  --ink: #0B0E1A;
  --ink-soft: #5B5F72;
  --ink-faint: #9296A6;
  --paper: #FBFBFE;
  --line: rgba(11, 14, 26, 0.09);

  --term-bg: #161033;
  --term-bg-2: #1E1648;
  --term-text: #E8E4FF;
  --term-key: #BBA8FF;
  --term-str: #7FE9C8;
  --term-comment: #8E86BE;

  --radius-lg: 26px;
  --radius-md: 18px;
  --shadow-soft: 0 30px 70px -28px rgba(15, 16, 40, 0.30);
  --shadow-brand: 0 18px 40px -14px rgba(108, 92, 231, 0.48);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(640px 420px at 8% -6%, rgba(108, 92, 231, 0.16), transparent 60%),
    radial-gradient(560px 460px at 98% 4%, rgba(108, 92, 231, 0.10), transparent 60%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

.container-max { max-width: 1180px; }
.font-display { font-family: "Space Grotesk", Inter, sans-serif; }
.font-mono { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }

.hero-grid {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
}
.hero-grid > * { min-width: 0; }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
}

.glass {
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.dot-grid {
  background-image: radial-gradient(rgba(108, 92, 231, 0.30) 1px, transparent 1.3px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,.85) 16%, rgba(0,0,0,.85) 84%, transparent);
  mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,.85) 16%, rgba(0,0,0,.85) 84%, transparent);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid var(--brand-line);
  background: var(--brand-soft);
  color: var(--brand-700);
  padding: 8px 14px 8px 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  font-weight: 600;
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(108, 92, 231, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(108, 92, 231, 0.16); }
  50% { box-shadow: 0 0 0 9px rgba(108, 92, 231, 0.08); }
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.cursor {
  display: inline-block;
  width: 7px;
  height: 1em;
  background: var(--term-text);
  margin-left: 3px;
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 16px;
  background: var(--brand);
  color: #fff;
  padding: 15px 22px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-brand);
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
  border: none;
  cursor: pointer;
}
.primary-button:hover {
  transform: translateY(-2px);
  opacity: 0.96;
  box-shadow: 0 22px 50px -14px rgba(108, 92, 231, 0.55);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 16px;
  border: 1px solid rgba(11, 14, 26, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  padding: 15px 22px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.secondary-button:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: var(--brand-line);
  color: var(--brand-700);
}

/* Программа курса ещё не опубликована: кнопка есть, но неактивна (без ссылки и без аналитики) */
.secondary-button--soon,
.secondary-button--soon:hover {
  transform: none;
  background: rgba(11, 14, 26, 0.04);
  border: 1px dashed rgba(11, 14, 26, 0.2);
  color: var(--ink-soft);
  font-family: inherit;
  cursor: not-allowed;
}

.stack-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  border: 1px solid rgba(11, 14, 26, 0.10);
  background: rgba(255, 255, 255, 0.7);
  padding: 7px 13px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}
.stack-pill span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand);
}

.terminal {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(165deg, var(--term-bg) 0%, var(--term-bg-2) 100%);
  box-shadow: var(--shadow-soft);
  transform: rotate(-1.4deg);
  transition: transform 0.4s ease;
}
.terminal:hover { transform: rotate(0deg); }
@media (max-width: 1023px) { .terminal { transform: none; } }

.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.term-dot { width: 11px; height: 11px; border-radius: 999px; }
.term-label {
  margin-left: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: rgba(232, 228, 255, 0.55);
}
.term-body {
  padding: 22px 22px 26px;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(12px, 1.6vw, 13.5px);
  line-height: 1.85;
  color: var(--term-text);
  overflow-x: auto;
  white-space: pre;
}
.term-body .key { color: var(--term-key); font-weight: 600; }
.term-body .str { color: var(--term-str); }
.term-body .comment { color: var(--term-comment); }

.glow-blob {
  position: absolute;
  inset: -10%;
  z-index: -1;
  border-radius: 40px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.55), transparent 68%);
  filter: blur(50px);
  animation: float 7s ease-in-out infinite;
}

.log-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  padding: 18px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.log-row:hover {
  transform: translateY(-2px);
  border-color: var(--brand-line);
  box-shadow: 0 16px 36px -18px rgba(15, 16, 40, 0.18);
}
.log-tag {
  flex: none;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 8px;
  padding: 5px 8px;
  background: var(--brand-soft);
  color: var(--brand-700);
}

.contact-card, .team-card, .course-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(11, 14, 26, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 36px -16px rgba(15, 16, 40, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.contact-card:hover, .team-card:hover, .course-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-line);
  box-shadow: 0 20px 48px -16px rgba(108, 92, 231, 0.24);
}
[data-course-card],
[data-course-card]:hover {
  box-shadow: none;
}
.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand-700);
  flex: none;
}

.course-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-700);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 11px;
}

input[type="text"], input[type="email"], input[type="tel"], select {
  border-radius: 14px;
  border: 1px solid rgba(11, 14, 26, 0.14);
  padding: 13px 16px;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 12px;
}

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

  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 640px) {
  .primary-button, .secondary-button { width: 100%; }
}

/* Якоря не прячутся под sticky header. */
html {
  scroll-padding-top: 88px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 11px 14px;
  border-radius: 11px;
  background: #0B0E1A;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .15s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--brand-700);
  outline-offset: 3px;
}

.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  overflow-wrap: anywhere;
}

/* Мобильная навигация */
.header-logo {
  min-width: 0;
}

.header-logo-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(11, 14, 26, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.92);
  color: #0B0E1A;
  cursor: pointer;
}

.mobile-menu-icon,
.mobile-menu-icon span {
  display: block;
}

.mobile-menu-icon {
  position: relative;
  width: 20px;
  height: 16px;
}

.mobile-menu-icon span {
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease, top .18s ease;
}

.mobile-menu-icon span:nth-child(1) { top: 1px; }
.mobile-menu-icon span:nth-child(2) { top: 7px; }
.mobile-menu-icon span:nth-child(3) { top: 13px; }

.mobile-menu-button[aria-expanded="true"] .mobile-menu-icon span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

.mobile-menu-button[aria-expanded="true"] .mobile-menu-icon span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-button[aria-expanded="true"] .mobile-menu-icon span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

.mobile-navigation {
  border-top: 1px solid rgba(11, 14, 26, 0.09);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 34px -24px rgba(15, 16, 40, 0.45);
}

.mobile-navigation[hidden] {
  display: none !important;
}

.mobile-navigation a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 12px;
  color: #0B0E1A;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.mobile-navigation a:hover {
  background: #F6F4FF;
  color: #4A38C4;
}

.mobile-navigation .mobile-navigation-cta {
  justify-content: center;
  margin-top: 6px;
  background: #5B49DD;
  color: #fff;
}

.mobile-navigation .mobile-navigation-cta:hover {
  background: #5B49DD;
  color: #fff;
}

@media (min-width: 768px) {
  .mobile-menu-button {
    display: none;
  }
}

/* Первый экран и подбор направления */
.hero-intake-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(0, 111, 74, 0.18);
  border-radius: 999px;
  background: #E8F8F5;
  color: #1F4D33;
  font-size: 13px;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: #00875A;
}

.hero-help-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #4A38C4;
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 4px;
}

.path-card {
  min-height: 150px;
}

.path-card-copy {
  display: grid;
  gap: 7px;
  color: #5B5F72;
  font-size: 14px;
  line-height: 1.55;
}

.path-card-copy strong {
  color: #0B0E1A;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 16px;
  line-height: 1.3;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.status-badge span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status-badge--open {
  border: 1px solid rgba(0, 111, 74, 0.18);
  background: #E8F8F5;
  color: #1F4D33;
}

.status-badge--open span {
  background: #00875A;
}

@media (max-width: 640px) {
  .hero-intake-note {
    align-items: flex-start;
    border-radius: 14px;
  }
}

[data-course-card][hidden] {
  display: none !important;
}

.course-card--match {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-soft);
}

.course-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  padding: 8px 10px 8px 16px;
  border: 1px solid rgba(108, 92, 231, 0.18);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.78);
  color: #5B5F72;
  font-size: 13px;
  font-weight: 600;
}

.course-filter-bar button {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid rgba(108, 92, 231, 0.25);
  border-radius: 11px;
  background: #EFECFF;
  color: #4A38C4;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.course-filter-bar button[hidden] {
  display: none !important;
}

@media (max-width: 520px) {
  .course-filter-bar {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Статусы и действия курсов */
.status-badge--closed {
  border: 1px solid rgba(91, 84, 117, 0.16);
  background: #F3F0FF;
  color: #5B5475;
}

.status-badge--closed span {
  background: #6C5CE7;
}

.course-card--closed {
  border-top: 4px solid #C9C2F5;
}

.course-card--open {
  border: 2px solid rgba(0, 135, 90, 0.32);
  background: rgba(255, 255, 255, 0.96);
}

.course-audience {
  margin-top: 12px;
  color: #5B5F72;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.course-skills {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: #0B0E1A;
  font-size: 13px;
  line-height: 1.5;
  list-style: none;
}

.course-skills li {
  position: relative;
  padding-left: 22px;
}

.course-skills li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: #4A38C4;
  content: "✓";
  font-weight: 900;
}

.course-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.course-meta > div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(11, 14, 26, 0.08);
  border-radius: 12px;
  background: rgba(255,255,255,.74);
}

.course-meta dt {
  margin-bottom: 3px;
  color: #5B5F72;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.course-meta dd {
  margin: 0;
  color: #0B0E1A;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

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

.course-actions .primary-button,
.course-actions .secondary-button {
  min-height: 50px;
  padding: 12px 14px;
  text-align: center;
  font-size: 13px;
  line-height: 1.25;
}

/* Финальный CTA и контакты */
.final-cta-card {
  display: grid;
  gap: 28px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 24px;
  background: linear-gradient(135deg, #5B49DD 0%, #4A38C4 100%);
  color: #fff;
  box-shadow: 0 18px 40px -14px rgba(108, 92, 231, 0.48);
}

.final-cta-card p {
  max-width: 680px;
  color: rgba(255,255,255,.84);
  line-height: 1.65;
}

.final-cta-actions {
  display: grid;
  gap: 14px;
}

.final-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 50px;
  padding: 13px 19px;
  border-radius: 14px;
  background: #fff;
  color: #4A38C4;
  font-weight: 850;
  text-decoration: none;
}

.final-cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
}

.final-cta-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 4px;
}

.contact-card--primary {
  border-color: rgba(108, 92, 231, 0.3);
  background: #F6F4FF;
}

@media (min-width: 850px) {
  .final-cta-card {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
    align-items: center;
  }
}

@media (max-width: 640px) {
  .course-meta,
  .course-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .final-cta-primary {
    width: 100%;
    text-align: center;
  }

  .final-cta-links {
    display: grid;
  }
}

/* Принципы школы, преподаватели и формат */
.principle-card,
.learning-panel {
  border: 1px solid rgba(11, 14, 26, 0.08);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 14px 36px -24px rgba(15, 16, 40, 0.28);
}

.principle-card {
  padding: 22px;
}

.principle-card h3 {
  margin: 18px 0 7px;
  color: #0B0E1A;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.principle-card p {
  color: #5B5F72;
  font-size: 13px;
  line-height: 1.6;
}

.team-person {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.team-person img {
  width: 112px;
  height: 112px;
  border-radius: 14px;
  object-fit: cover;
}

.team-person > div {
  min-width: 0;
}

.teacher-quote {
  margin: 0;
  padding-left: 13px;
  border-left: 3px solid #C9C2F5;
  color: #5B5F72;
  font-size: 12px;
  font-style: italic;
  line-height: 1.6;
}

a.course-tag {
  min-height: 32px;
  text-decoration: none;
}

a.course-tag:hover {
  background: #E6E1FB;
  color: #33255C;
}

.learning-panel {
  padding: clamp(22px, 3vw, 30px);
}

.learning-steps,
.learning-facts {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.learning-steps li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.learning-steps li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #EFECFF;
  color: #4A38C4;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 800;
}

.learning-steps strong,
.learning-facts strong {
  color: #0B0E1A;
  font-size: 14px;
}

.learning-steps p,
.learning-facts span {
  display: block;
  margin-top: 3px;
  color: #5B5F72;
  font-size: 13px;
  line-height: 1.55;
}

.learning-facts li {
  padding: 13px 14px;
  border: 1px solid rgba(11, 14, 26, 0.08);
  border-radius: 13px;
  background: #FBFBFE;
}

/* FAQ */
.faq-item {
  overflow: hidden;
}

.faq-item:hover {
  transform: none;
}

.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 15px 52px 15px 18px;
  color: #0B0E1A;
  cursor: pointer;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: #EFECFF;
  color: #4A38C4;
  content: "+";
  font-family: Inter, sans-serif;
  font-size: 20px;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item > p {
  padding: 0 18px 18px;
  color: #5B5F72;
  font-size: 13px;
  line-height: 1.65;
}

.faq-item > p a {
  color: #4A38C4;
  font-weight: 700;
  text-underline-offset: 3px;
}

@media (min-width: 640px) {
  .team-person {
    grid-template-columns: 128px minmax(0, 1fr);
  }

  .team-person img {
    width: 128px;
    height: 128px;
  }
}

@media (max-width: 360px) {
  .team-person {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .team-person img {
    width: 92px;
    height: 92px;
  }
}

/* ---------- Визуальный стиль как у cli.grade-analytica.tech ----------
   Тёплый фон, тёмный hero-блок, цветные полосы секций, лаймовый акцент.
   Палитра и приёмы взяты из ave-analytica-landing-cli. */
:root {
  --paper: #F4F3EF;
  --surface: #FCFCFA;
  --ink: #101018;
  --ink-soft: #5D5D6B;
  --ink-faint: #6E6C78;
  --brand: #7057F5;
  --brand-600: #6047E8;
  --brand-700: #4F36D0;
  --brand-soft: #E9E3FF;
  --brand-soft-2: #F0ECFF;
  --brand-line: rgba(112, 87, 245, 0.28);
  --lime: #C8FF68;
  --mint: #8CF0C8;
  --peach: #FFD3B6;
  --dark: #15151D;
  --line: rgba(16, 16, 24, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --shadow-soft: 0 30px 80px -46px rgba(20, 15, 55, 0.38);
  --shadow-brand: 0 18px 44px -18px rgba(112, 87, 245, 0.7);
}

body {
  background:
    radial-gradient(circle at 8% 8%, rgba(112, 87, 245, 0.08), transparent 25rem),
    var(--paper);
  overflow-x: hidden;
}

.container-max { max-width: 1260px; }

/* Шапка */
.site-header { background: rgba(244, 243, 239, 0.84); border-color: rgba(16, 16, 24, 0.08) !important; }
.site-header > div { min-height: 68px; }
.site-header img { box-shadow: 0 8px 22px -10px rgba(79, 54, 208, 0.7); }
.site-header nav a { transition: color .18s ease, transform .18s ease; }
.site-header nav a:hover { transform: translateY(-1px); }
.site-header > div > a[data-analytics-event="header_course_click"] {
  border-radius: 999px;
  padding: 11px 18px;
  box-shadow: none;
}
.mobile-navigation { background: rgba(244, 243, 239, 0.98); }

/* Кнопки и подписи */
.primary-button,
.secondary-button {
  border-radius: 999px;
  min-height: 54px;
  padding-left: 25px;
  padding-right: 25px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 11px;
  border: 0;
  background: transparent;
  padding: 0;
}
.eyebrow .dot { box-shadow: 0 0 0 5px rgba(112, 87, 245, .1); animation: none; }
.section-kicker {
  color: var(--brand-700);
  font-weight: 600;
  letter-spacing: .09em;
}

/* Hero */
.hero-section {
  padding-top: 22px !important;
  padding-bottom: 56px !important;
}
.hero-section > .dot-grid { opacity: .52; }
.hero-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 38px;
  padding: 56px 56px 60px;
  background:
    radial-gradient(circle at 78% 10%, rgba(135, 105, 255, .34), transparent 27rem),
    linear-gradient(145deg, #11101D 0%, #1A1336 52%, #271459 100%);
  box-shadow: 0 42px 110px -55px rgba(33, 19, 88, .85);
}
.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .22;
  background-image: radial-gradient(rgba(255,255,255,.7) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
}
.hero-grid { position: relative; z-index: 1; }
.hero-copy .eyebrow { color: var(--mint); }
.hero-copy .eyebrow .dot { background: var(--mint); box-shadow: 0 0 0 5px rgba(140,240,200,.12); }
.hero-title {
  max-width: 760px;
  color: #fff;
  font-size: clamp(2.6rem, 4.4vw, 4.4rem) !important;
  line-height: .98 !important;
  letter-spacing: -.052em !important;
  text-wrap: balance;
}
.hero-title span { color: #C8BAFF !important; }
.hero-lead {
  max-width: 660px !important;
  color: rgba(255,255,255,.83) !important;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem) !important;
  line-height: 1.55 !important;
}
.hero-intake-note {
  border-color: rgba(140, 240, 200, .28);
  background: rgba(140, 240, 200, .1);
  color: var(--mint);
}
.hero-intake-note .status-dot { background: var(--mint); }
.hero-copy .primary-button {
  background: var(--lime);
  color: #15131D;
  box-shadow: 0 18px 45px -18px rgba(200,255,104,.78);
}
.hero-copy .secondary-button {
  color: #fff;
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.05);
}
.hero-copy .secondary-button:hover { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.45); }
.hero-help-link { color: var(--mint); }
.hero-pills .stack-pill {
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.72);
}
.hero-pills .stack-pill span { background: var(--mint); }
.hero-terminal { transform: translateY(14px) rotate(1.2deg); }
.hero-terminal .glow-blob { display: none; }
.hero-terminal::before {
  content: "5 направлений";
  position: absolute;
  z-index: 3;
  right: -18px;
  top: -28px;
  padding: 10px 15px;
  border-radius: 999px;
  background: var(--peach);
  color: #28170D;
  font: 700 11px/1 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .07em;
  transform: rotate(4deg);
  box-shadow: 0 16px 30px -18px rgba(0,0,0,.7);
}
.hero-terminal .terminal {
  transform: none;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 42px 90px -36px rgba(0,0,0,.9);
}

/* Заголовки секций */
main > section:not(.hero-section) h2 {
  font-size: clamp(2.2rem, 3.6vw, 3.25rem) !important;
  line-height: 1.03 !important;
  letter-spacing: -.045em !important;
  text-wrap: balance;
}
.paths-section,
.why-section,
.team-section,
.format-section,
.courses-section,
.faq-section { padding-top: 96px !important; padding-bottom: 96px !important; }
.paths-section { padding-top: 72px !important; padding-bottom: 72px !important; }

/* Подбор направления */
.path-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  padding: 24px;
}
.path-card:hover { border-color: var(--brand-line); box-shadow: 0 22px 55px -40px rgba(28,18,75,.75); }

/* Принципы: тёмная полоса */
.why-section { background: #12121A; color: #fff; }
.why-section .section-kicker { color: var(--mint); }
.why-section h2 { color: #fff; }
.why-section .max-w-3xl > p { color: rgba(255,255,255,.66) !important; }
.why-section .principle-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  background: #20202A;
  box-shadow: none;
}
.why-section .principle-card .log-tag { padding: 0; background: transparent; color: var(--mint); font-size: 12px; }
.why-section .principle-card h3 { margin: 25px 0 7px; color: #fff; font-size: 1.12rem; }
.why-section .principle-card p { color: rgba(255,255,255,.66); font-size: 14px; }
.why-section .principle-card:nth-child(3) { background: #6E54F3; border-color: transparent; }
.why-section .principle-card:nth-child(3) .log-tag,
.why-section .principle-card:nth-child(3) p { color: #fff; }
.why-section .principle-card:nth-child(4) { background: var(--lime); border-color: transparent; }
.why-section .principle-card:nth-child(4) .log-tag,
.why-section .principle-card:nth-child(4) h3,
.why-section .principle-card:nth-child(4) p { color: #18181F; }

/* Преподаватели */
.team-section { background: var(--surface); }
.team-section .team-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  background: #fff;
  box-shadow: none;
}
.team-section .team-card:hover { transform: none; border-color: var(--brand-line); box-shadow: 0 22px 55px -40px rgba(28,18,75,.75); }
.team-person img { border-radius: 22px; }

/* Формат обучения: лаймовая полоса */
.format-section { background: var(--lime); }
.format-section .section-kicker { color: #23300C; }
.format-section .max-w-3xl > p { color: rgba(21,21,28,.72) !important; }
.format-section .learning-panel {
  padding: clamp(24px, 3vw, 34px);
  border: 0;
  border-radius: 28px;
  background: rgba(255,255,255,.78);
  box-shadow: none;
}
.format-section .learning-steps li > span { background: #15151C; color: var(--lime); border-radius: 12px; }
.format-section .learning-facts li { background: #fff; border-color: rgba(21,21,28,.08); border-radius: 16px; }

/* Каталог курсов */
.courses-section { background: #EEEAFE; }
.courses-section .course-card {
  border-radius: 26px;
  border: 1px solid rgba(79,54,208,.13);
  background: #fff;
  box-shadow: 0 22px 55px -42px rgba(39,20,92,.7);
}
.courses-section .course-card:hover { transform: none; }
.courses-section .course-card--closed { border-top: 1px solid rgba(79,54,208,.13); }
.courses-section .course-card--open { border: 2px solid #15151C; }
.courses-section .course-card--match { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(112,87,245,.22); }
.courses-section .course-filter-bar { background: rgba(255,255,255,.7); border-radius: 999px; padding-left: 20px; }
.courses-section .course-filter-bar button { border-radius: 999px; }
.status-badge--open { background: var(--lime); border-color: transparent; color: #23300C; }
.status-badge--open span { background: #23300C; }
.status-badge--closed { background: var(--brand-soft); border-color: transparent; color: var(--brand-700); }
.course-meta > div { border-radius: 14px; background: var(--brand-soft-2); border-color: transparent; }

/* FAQ и финальный CTA: тёмная полоса */
.faq-section,
.cta-section { background: var(--dark); color: #fff; }
.faq-section .section-kicker { color: var(--mint); }
.faq-section h2,
.faq-section h3 { color: #fff; }
.faq-section .faq-item {
  border-color: rgba(255,255,255,.11);
  border-radius: 20px;
  background: #20202A;
  box-shadow: none;
}
.faq-section .faq-item:hover { box-shadow: none; }
.faq-section .faq-item summary { color: #fff; }
.faq-section .faq-item summary::after { background: rgba(255,255,255,.08); color: var(--mint); font-family: "IBM Plex Mono", monospace; }
.faq-section .faq-item[open] summary { color: var(--mint); }
.faq-section .faq-item > p { color: rgba(255,255,255,.62); }
.faq-section .faq-item > p a { color: var(--mint); }

.cta-section { padding-top: 0 !important; padding-bottom: 96px !important; }
.cta-section .final-cta-card {
  padding: clamp(28px, 5vw, 56px);
  border-radius: 32px;
  background: var(--brand-soft-2);
  color: var(--ink);
  box-shadow: 0 30px 75px -45px rgba(0,0,0,.75);
}
.cta-section .final-cta-card h2 { color: var(--ink); }
.cta-section .final-cta-card p { color: var(--ink-soft); }
.cta-section .final-cta-primary {
  min-height: 54px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--lime);
  color: #15131D;
  box-shadow: 0 18px 45px -22px rgba(120,160,40,.9);
}
.cta-section .final-cta-links a { color: var(--brand-700); }

/* Контакты */
#contacts { padding-top: 86px; background: var(--paper); }
#contacts .contact-card { border-radius: 22px; min-height: 170px; background: #fff; box-shadow: none; }
#contacts .contact-card--primary { background: var(--lime); border-color: transparent; }
#contacts .contact-card--primary .icon-badge { background: rgba(255,255,255,.6); color: #15131D; }
#contacts .contact-card--primary p { color: rgba(21,21,28,.72) !important; }
footer { background: var(--paper) !important; }

/* Десктоп: hero целиком в один экран 1440 × 900 */
@media (min-width: 1101px) {
  .hero-section { padding-top: 16px !important; padding-bottom: 40px !important; }
  .hero-shell { padding: 36px 48px 40px; }
  .hero-grid { gap: 40px !important; }
  .hero-title { font-size: clamp(2.9rem, 3.9vw, 3.75rem) !important; margin-bottom: 18px !important; }
  .hero-lead { font-size: 1.05rem !important; line-height: 1.5 !important; margin-bottom: 16px !important; }
  .hero-intake-note { margin-bottom: 20px !important; }
  .hero-copy .eyebrow { margin-bottom: 18px !important; }
  .hero-actions { margin-bottom: 6px !important; }
  .hero-pills { margin-top: 12px !important; }
}

/* Адаптив */
@media (max-width: 1100px) {
  .hero-shell { padding: 48px 40px 52px; }
}
@media (max-width: 900px) {
  .hero-shell { padding: 44px 32px 48px; border-radius: 30px; }
  .hero-terminal { transform: none; }
}
@media (max-width: 760px) {
  .hero-section { padding-left: 10px !important; padding-right: 10px !important; }
  .hero-shell { padding: 40px 22px 40px; }
  .hero-terminal::before { right: 8px; top: -20px; }
  .paths-section,
  .why-section,
  .team-section,
  .format-section,
  .courses-section,
  .faq-section { padding-top: 72px !important; padding-bottom: 72px !important; }
  .why-section .principle-card { min-height: 0; }
}
@media (max-width: 520px) {
  .site-header > div { min-height: 60px; }
  .hero-shell { border-radius: 25px; }
  .hero-title { font-size: 2.35rem !important; }
}
