/* ============================================================
 * ai-razrab-v2 — extra styles for new sections
 * (Partners, Project Ideas, Student Projects + video modal)
 * ============================================================ */

/* ============================================================
 * Hero — restore original animated atmosphere
 * (blurred ambient blobs + floating brain + progress bar)
 * ============================================================ */

/* Decorative blurred blobs behind hero. The .keep-blur class
   tells perf-patch.css to leave the filter alone. These are
   painted ONCE on load and never repaint (no hover, no scroll
   trigger), so the blur cost is paid once and amortized. */
.hero-blob {
  filter: blur(110px);
  -webkit-filter: blur(110px);
  will-change: opacity;
  animation: hero-blob-pulse 8s ease-in-out infinite;
}

.hero-blob--purple {
  background: rgba(147, 51, 234, 0.22);
}

.hero-blob--blue {
  background: rgba(37, 99, 235, 0.16);
  animation-delay: -4s;
}

@keyframes hero-blob-pulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

/* Floating brain — gentle vertical drift, GPU-only. */
.hero-brain {
  animation: hero-brain-float 6s ease-in-out infinite;
  will-change: transform;
}

@keyframes hero-brain-float {
  0%, 100% { transform: translate3d(0, -4px, 0) scale(1); }
  50%      { transform: translate3d(0, -16px, 0) scale(1.015); }
}

/* Terminal progress bar — fills 0→100%, then snaps back and repeats.
   `DONE ✓` fades in at the end of each cycle. */
.hero-progress {
  position: relative;
  width: 100%;
  height: 0.9em;
  background: rgba(96, 165, 250, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.hero-progress__bar {
  position: absolute;
  inset: 0 100% 0 0;
  background: linear-gradient(90deg, #60a5fa 0%, #3b82f6 100%);
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.6);
  /* fill 0 -> 100% once, then stay full */
  animation: hero-progress-fill 3.5s ease-out forwards;
}

@keyframes hero-progress-fill {
  0%   { right: 100%; }
  100% { right: 0; }
}

.hero-progress__done {
  opacity: 0;
  /* fade in once at the moment the bar fills, then stay visible */
  animation: hero-done-flash 0.5s ease-out 3.4s forwards;
}

@keyframes hero-done-flash {
  0%   { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-blob,
  .hero-brain,
  .hero-progress__bar,
  .hero-progress__done { animation: none; }
  .hero-progress__bar  { right: 0; }
  .hero-progress__done { opacity: 1; }
}

/* ============================================================
 * Программа курса (по неделям, из xlsx) — line-up of lessons
 * ============================================================ */
#program {
  position: relative;
}

#program .program-bg {
  position: absolute;
  /* Растягиваем ambient за пределы секции, чтобы зелёный/фиолетовый
     плавно вливались в соседние блоки, а не обрывались резкой линией. */
  inset: -240px -120px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(50% 38% at 50% 12%, rgba(16, 185, 129, 0.16) 0%, rgba(16, 185, 129, 0.06) 45%, transparent 78%),
    radial-gradient(38% 42% at 92% 88%, rgba(168, 85, 247, 0.18) 0%, rgba(168, 85, 247, 0.07) 50%, transparent 82%),
    radial-gradient(60% 30% at 50% 50%, rgba(16, 185, 129, 0.04) 0%, transparent 65%);
  filter: blur(40px);
  -webkit-filter: blur(40px);
}

.program-header {
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.program-header__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgb(167, 243, 208);
}

.program-header__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(110, 231, 183);
  box-shadow: 0 0 10px rgba(110, 231, 183, 0.7);
  animation: program-dot 2.4s ease-in-out infinite;
}

@keyframes program-dot {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.3); }
}

.program-header__title {
  max-width: 56rem;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: white;
  margin: 0;
}

.program-header__lede {
  max-width: 44rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

@media (min-width: 768px) {
  .program-header__lede { font-size: 1.0625rem; }
}

/* ----- 4-week grid ----- */
.program-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .program-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1280px) {
  .program-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ----- single week card ----- */
.program-week {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  padding: 1.5rem 1.5rem 1.75rem;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.program-week:hover {
  border-color: rgba(110, 231, 183, 0.35);
  transform: translate3d(0, -3px, 0);
}

.program-week::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(110, 231, 183, 0) 0%, rgba(110, 231, 183, 0.7) 50%, rgba(110, 231, 183, 0) 100%);
}

.program-week__head {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.program-week__num {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgb(167, 243, 208);
  font-weight: 600;
}

.program-week__title {
  font-size: 1.125rem;
  line-height: 1.3;
  font-weight: 600;
  color: white;
  margin: 0;
  letter-spacing: -0.01em;
}

.program-week__dates {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.program-week__summary {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  margin: 0.4rem 0 0;
}

/* ----- lessons list inside a week ----- */
.program-week__lessons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.lesson {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.75rem;
  align-items: flex-start;
}

.lesson__when {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.4rem 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.lesson__day {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(167, 243, 208, 0.85);
  font-weight: 600;
}

.lesson__date {
  font-size: 0.85rem;
  color: white;
  margin-top: 2px;
  font-weight: 500;
}

.lesson__body { min-width: 0; }

.lesson__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  margin: 0 0 0.2rem;
  line-height: 1.3;
}

.lesson__speaker {
  display: inline-block;
  font-size: 0.7rem;
  color: rgba(167, 243, 208, 0.85);
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.lesson__desc {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

/* VIP лесон — приглушён + меточка */
.lesson--vip .lesson__when {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.25);
}

.lesson--vip .lesson__day,
.lesson--vip .lesson__date {
  color: rgb(216, 180, 254);
}

.lesson--vip .lesson__title::after {
  content: "VIP";
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.05rem 0.4rem;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: rgb(216, 180, 254);
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 4px;
  vertical-align: 1px;
}

/* ----- bonus block ----- */
.program-bonus {
  margin-top: 3.5rem;
  padding: 1.75rem;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.015);
}

.program-bonus__head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.program-bonus__label {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgb(167, 243, 208);
  font-weight: 600;
}

.program-bonus__hint {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.program-bonus__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .program-bonus__list { grid-template-columns: repeat(3, 1fr); }
}

.bonus-item {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
}

.bonus-item__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  margin: 0 0 0.25rem;
}

.bonus-item__desc {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  margin: 0.4rem 0 0;
}

/* ============================================================
 * Кто ведёт курс — speakers section
 * ============================================================ */
.speakers-section {
  position: relative;
  padding: 5rem 1rem;
  max-width: 80rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .speakers-section { padding: 6rem 2rem; }
}

.speakers-header {
  text-align: center;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
}

.speakers-header__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgb(167, 243, 208);
  font-weight: 600;
}

.speakers-header__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(110, 231, 183);
  box-shadow: 0 0 10px rgba(110, 231, 183, 0.7);
  animation: program-dot 2.4s ease-in-out infinite;
}

.speakers-header__title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: white;
  margin: 0;
}

.speakers-header__lede {
  max-width: 44rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

/* ----- grid ----- */
.speakers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .speakers-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ----- single card ----- */
.speaker-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1.5rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.speaker-card:hover {
  border-color: rgba(110, 231, 183, 0.35);
  transform: translate3d(0, -4px, 0);
}

/* Speaker avatar — round photo with subtle ring + colour glow per slot */
.speaker-card__avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.02),
    0 12px 32px -10px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, #1f2937 0%, #0f172a 100%);
}

.speaker-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.speaker-card__avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 -25px 30px -20px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

/* Coloured glow ring per slot */
.speaker-card:nth-child(1) .speaker-card__avatar {
  box-shadow:
    0 0 0 4px rgba(110, 231, 183, 0.08),
    0 12px 32px -10px rgba(110, 231, 183, 0.35);
}
.speaker-card:nth-child(2) .speaker-card__avatar {
  box-shadow:
    0 0 0 4px rgba(125, 211, 252, 0.08),
    0 12px 32px -10px rgba(125, 211, 252, 0.35);
}
.speaker-card:nth-child(3) .speaker-card__avatar {
  box-shadow:
    0 0 0 4px rgba(216, 180, 254, 0.08),
    0 12px 32px -10px rgba(216, 180, 254, 0.35);
}

.speaker-card__bio a {
  color: rgb(110, 231, 183);
  text-decoration: none;
  border-bottom: 1px dashed rgba(110, 231, 183, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.speaker-card__bio a:hover {
  color: rgb(167, 243, 208);
  border-color: rgba(167, 243, 208, 0.7);
}

.speaker-card__body { width: 100%; }

.speaker-card__name {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}

.speaker-card__role {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(167, 243, 208);
  margin: 0 0 0.85rem;
  font-weight: 600;
}

.speaker-card__bio {
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

/* ============================================================
 * Тарифы (4 карточки): Базовый / Всё в 1 / Всё навсегда / Ультра
 * ============================================================ */
.tariffs-section {
  position: relative;
  padding: 6rem 1rem 5rem;
  max-width: 80rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .tariffs-section { padding: 6rem 2rem 5rem; }
}

.tariffs-header {
  text-align: center;
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.tariffs-header__kicker {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgb(167, 243, 208);
  font-weight: 600;
  margin: 0;
}

.tariffs-header__title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: white;
  margin: 0;
}

/* ----- grid ----- */
.tariffs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .tariffs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1280px) {
  .tariffs-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}

/* ----- single card ----- */
.tariff-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 1.75rem;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.005) 100%);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  isolation: isolate;
}

.tariff-card:hover {
  transform: translate3d(0, -4px, 0);
}

.tariff-card__head {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.tariff-card__name {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 0.85rem;
}

.tariff-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  color: white;
  font-variant-numeric: tabular-nums;
}

.tariff-card__amount {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.tariff-card__currency {
  font-size: 1.15rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

/* ----- features ----- */
.tariff-card__feats {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.tariff-card__feat {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.65);
}

.tariff-card__feat svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: rgb(110, 231, 183);
}

/* ----- CTA button ----- */
.tariff-card__cta {
  display: block;
  text-align: center;
  padding: 0.85rem 1rem;
  border-radius: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: black;
  background: white;
  text-decoration: none;
  transition: transform 0.18s ease, filter 0.18s ease;
  margin-top: auto;
}

.tariff-card__cta:hover { transform: translateY(-1px); filter: brightness(1.05); }
.tariff-card__cta:active { transform: scale(0.97); }

/* ============================================================
 * Per-tariff color palette
 *   1. Базовый      — нейтральный серый, без glow
 *   2. Всё в 1      — оранжевый
 *   3. Всё навсегда — фиолетовый
 *   4. Ультра       — pink/малиновый + бейдж
 * ============================================================ */

/* 1. Basic — clean & quiet */
.tariff-card--basic { /* defaults */ }
.tariff-card--basic:hover {
  border-color: rgba(255, 255, 255, 0.2);
}
.tariff-card--basic .tariff-card__cta {
  background: rgba(255, 255, 255, 0.92);
}

/* 2. Все в 1 — orange */
.tariff-card--all-in-one {
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow:
    0 0 0 1px rgba(249, 115, 22, 0.15) inset,
    0 12px 40px -16px rgba(249, 115, 22, 0.45);
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.06) 0%, rgba(249, 115, 22, 0.01) 100%);
}
.tariff-card--all-in-one:hover {
  border-color: rgba(249, 115, 22, 0.85);
  box-shadow:
    0 0 0 1px rgba(249, 115, 22, 0.2) inset,
    0 18px 60px -16px rgba(249, 115, 22, 0.6);
}
.tariff-card--all-in-one .tariff-card__name { color: rgb(253, 186, 116); }
.tariff-card--all-in-one .tariff-card__feat svg { color: rgb(253, 186, 116); }
.tariff-card--all-in-one .tariff-card__cta {
  background: linear-gradient(90deg, #fb923c 0%, #f97316 100%);
  color: white;
}

/* 3. Всё навсегда — purple */
.tariff-card--forever {
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.15) inset,
    0 12px 40px -16px rgba(168, 85, 247, 0.45);
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.06) 0%, rgba(168, 85, 247, 0.01) 100%);
}
.tariff-card--forever:hover {
  border-color: rgba(168, 85, 247, 0.85);
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.2) inset,
    0 18px 60px -16px rgba(168, 85, 247, 0.6);
}
.tariff-card--forever .tariff-card__name { color: rgb(216, 180, 254); }
.tariff-card--forever .tariff-card__feat svg { color: rgb(216, 180, 254); }
.tariff-card--forever .tariff-card__cta {
  background: linear-gradient(90deg, #c084fc 0%, #a855f7 100%);
  color: white;
}

/* 4. Ультра — pink + scarcity badge */
.tariff-card--ultra {
  border-color: rgba(236, 72, 153, 0.6);
  box-shadow:
    0 0 0 1px rgba(236, 72, 153, 0.2) inset,
    0 14px 50px -16px rgba(236, 72, 153, 0.55);
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(236, 72, 153, 0.1) 0%, transparent 70%),
    linear-gradient(180deg, rgba(236, 72, 153, 0.05) 0%, rgba(0, 0, 0, 0.3) 100%);
}
.tariff-card--ultra:hover {
  border-color: rgba(236, 72, 153, 0.9);
  box-shadow:
    0 0 0 1px rgba(236, 72, 153, 0.25) inset,
    0 20px 70px -16px rgba(236, 72, 153, 0.7);
}
.tariff-card--ultra .tariff-card__name { color: rgb(249, 168, 212); }
.tariff-card--ultra .tariff-card__feat svg { color: rgb(249, 168, 212); }
.tariff-card--ultra .tariff-card__cta {
  background: linear-gradient(90deg, #f472b6 0%, #ec4899 50%, #db2777 100%);
  color: white;
}

.tariff-card__badge {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.85rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: white;
  background: linear-gradient(90deg, #ec4899 0%, #db2777 100%);
  border-radius: 999px;
  box-shadow: 0 4px 14px -4px rgba(236, 72, 153, 0.7);
  white-space: nowrap;
  z-index: 1;
}

/* ============================================================
 * «Что вы получите после обучения» — outcomes block
 * ============================================================ */
.outcomes-header {
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: center;
  align-items: center;
}

.outcomes-header__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgb(167, 243, 208);
  font-weight: 600;
}

.outcomes-header__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(110, 231, 183);
  box-shadow: 0 0 10px rgba(110, 231, 183, 0.7);
  animation: program-dot 2.4s ease-in-out infinite;
}

.outcomes-header__title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: white;
  margin: 0;
}

.outcomes-header__lede {
  max-width: 44rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .outcomes-grid { grid-template-columns: repeat(2, 1fr); }
}

.outcome-card {
  position: relative;
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.outcome-card:hover {
  transform: translate3d(0, -3px, 0);
  border-color: rgba(110, 231, 183, 0.35);
}

.outcome-card--cert {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.outcome-card--cert:hover { border-color: rgba(216, 180, 254, 0.4); }

.outcome-card__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 0.85rem;
  background: rgba(110, 231, 183, 0.08);
  color: rgb(110, 231, 183);
  border: 1px solid rgba(110, 231, 183, 0.2);
}

.outcome-card--cert .outcome-card__icon {
  background: rgba(168, 85, 247, 0.08);
  color: rgb(216, 180, 254);
  border-color: rgba(168, 85, 247, 0.25);
}

.outcome-card__icon svg {
  width: 28px;
  height: 28px;
}

.outcome-card__body { flex: 1; min-width: 0; }

.outcome-card__kicker {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgb(167, 243, 208);
  font-weight: 600;
  margin: 0 0 0.4rem;
}

.outcome-card--cert .outcome-card__kicker { color: rgb(216, 180, 254); }

.outcome-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin: 0 0 0.65rem;
  letter-spacing: -0.01em;
}

.outcome-card__desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 1rem;
}

.outcome-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.outcome-card__list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
}

.outcome-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(110, 231, 183);
  box-shadow: 0 0 6px rgba(110, 231, 183, 0.6);
}

.outcome-card--cert .outcome-card__list li::before {
  background: rgb(216, 180, 254);
  box-shadow: 0 0 6px rgba(216, 180, 254, 0.6);
}

/* ============================================================
 * Витрина потока на Great Ideas — single horizontal card
 * ============================================================ */
.showcase-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 2rem 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  background:
    radial-gradient(70% 80% at 100% 0%, rgba(252, 211, 77, 0.07) 0%, transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.005) 100%);
  position: relative;
  overflow: hidden;
}

.showcase-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(252, 211, 77, 0) 0%, rgba(252, 211, 77, 0.5) 50%, rgba(252, 211, 77, 0) 100%);
}

@media (min-width: 768px) {
  .showcase-card {
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    padding: 2.5rem 2.5rem;
    align-items: start;
  }
}

.showcase-card__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 0.85rem;
  background: rgba(252, 211, 77, 0.08);
  border: 1px solid rgba(252, 211, 77, 0.25);
  color: rgb(252, 211, 77);
}

.showcase-card__icon svg { width: 32px; height: 32px; }

.showcase-card__kicker {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgb(252, 211, 77);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.showcase-card__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: white;
  margin: 0 0 0.85rem;
}

.showcase-card__lede {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 1.25rem;
  max-width: 48rem;
}

.showcase-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.showcase-card__list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.showcase-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(252, 211, 77);
  box-shadow: 0 0 6px rgba(252, 211, 77, 0.6);
}

/* ============================================================
 * Платформа обучения — LMS card
 * ============================================================ */
.platform-card {
  position: relative;
  padding: 2.5rem 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(110, 231, 183, 0.06) 0%, transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  overflow: hidden;
}

@media (min-width: 768px) {
  .platform-card { padding: 3rem 2.5rem; }
}

.platform-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(110, 231, 183, 0) 0%, rgba(110, 231, 183, 0.6) 50%, rgba(110, 231, 183, 0) 100%);
}

.platform-card__head {
  text-align: center;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.platform-header__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgb(167, 243, 208);
  font-weight: 600;
}

.platform-header__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(110, 231, 183);
  box-shadow: 0 0 10px rgba(110, 231, 183, 0.7);
  animation: program-dot 2.4s ease-in-out infinite;
}

.platform-card__title {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 300;
  line-height: 1.2;
  color: white;
  margin: 0;
  letter-spacing: -0.01em;
}

.platform-card__lede {
  max-width: 44rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.platform-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .platform-features { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .platform-features { grid-template-columns: repeat(4, 1fr); }
}

.platform-feature {
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.platform-feature:hover {
  border-color: rgba(110, 231, 183, 0.25);
  background: rgba(110, 231, 183, 0.03);
}

.platform-feature__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 0.6rem;
  background: rgba(110, 231, 183, 0.08);
  color: rgb(110, 231, 183);
  border: 1px solid rgba(110, 231, 183, 0.18);
  margin-bottom: 0.85rem;
}

.platform-feature__icon svg { width: 20px; height: 20px; }

.platform-feature__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  margin: 0 0 0.4rem;
  letter-spacing: -0.005em;
}

.platform-feature__tag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(216, 180, 254);
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 4px;
  vertical-align: 1px;
  white-space: nowrap;
}

.platform-feature__desc {
  font-size: 0.825rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

/* ============================================================
 * Slideshow card — used when no video screencast is available.
 * Shows N <img> in .proj-media with auto-crossfade.
 * Currently used for «Эвольвента».
 * ============================================================ */
.proj-card--slides .proj-media {
  position: relative;
  background: var(--accent-from, #0a0a15);
}

.proj-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.proj-slide.is-active {
  opacity: 1;
}

/* ============================================================
 * Cases CTA — full-width clickable banner that scrolls to #tariffs.
 * Replaces the old in-mosaic placeholder card. Sits BELOW the
 * text-grid so the natural reading order is: cases → text-cases →
 * "your project here" → tariffs.
 * ============================================================ */
.cases-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
  padding: 2.25rem 1.75rem;
  text-align: center;
  border: 1.5px dashed rgba(110, 231, 183, 0.35);
  border-radius: 1.25rem;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(16, 185, 129, 0.1) 0%, transparent 70%),
    linear-gradient(180deg, rgba(16, 185, 129, 0.04) 0%, rgba(255, 255, 255, 0.005) 100%);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .cases-cta {
    grid-template-columns: 140px 1fr;
    text-align: left;
    padding: 2.5rem 3rem;
    gap: 2.5rem;
  }
}

.cases-cta:hover {
  transform: translate3d(0, -3px, 0);
  border-color: rgba(110, 231, 183, 0.7);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(16, 185, 129, 0.15) 0%, transparent 70%),
    linear-gradient(180deg, rgba(16, 185, 129, 0.07) 0%, rgba(255, 255, 255, 0.005) 100%);
}

.cases-cta:active {
  transform: scale(0.99);
}

.cases-cta__icon {
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  margin: 0 auto;
  color: rgb(110, 231, 183);
  transition: transform 0.25s ease;
}

@media (min-width: 768px) {
  .cases-cta__icon {
    width: 140px;
    height: 140px;
    margin: 0;
  }
}

.cases-cta:hover .cases-cta__icon {
  transform: scale(1.05) rotate(-3deg);
}

.cases-cta__icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 18px rgba(110, 231, 183, 0.35));
}

.cases-cta__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cases-cta__title {
  font-size: clamp(1.35rem, 3vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgb(167, 243, 208);
  line-height: 1.2;
}

.cases-cta__desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
  max-width: 42rem;
}

.cases-cta__hint {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgb(110, 231, 183);
}

/* ============================================================
 * Sub-grid below the main video mosaic — for text-only cases
 * (cards без видео и скриншотов). 1 col on mobile, 2 col on md+.
 * ============================================================ */
.proj-text-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

@media (min-width: 768px) {
  .proj-text-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
 * Text-only card — used for cases without video/screenshots.
 * No .proj-media, just a centered title + description on a
 * subtle gradient panel. NOT clickable (no media to open).
 * ============================================================ */
.proj-card--text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.75rem 1.75rem 2rem;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(110, 231, 183, 0.05) 0%, transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.005) 100%);
  cursor: default !important;
  min-height: 180px;
}

.proj-card--text:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: rgba(255, 255, 255, 0.12);
}

.proj-card--text .proj-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.proj-card--text .proj-name {
  font-size: 1.1rem;
  margin-bottom: 0;
  letter-spacing: -0.005em;
}

.proj-card--text .proj-desc {
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
}

/* Variant: span 3 columns on desktop — used as visual accent for AI-PMO
   (the most complex case in the text-only group). */
@media (min-width: 768px) {
  .proj-mosaic > .proj-card--wide-3 {
    grid-column: 1 / -1;
  }
  .proj-mosaic > .proj-card--wide-3 .proj-name {
    font-size: 1.5rem;
  }
  .proj-mosaic > .proj-card--wide-3 .proj-desc {
    max-width: 60rem;
    font-size: 0.95rem;
  }
}

/* ============================================================
 * CTA card v2 — replaces dashed «proj-card--cta» placeholder.
 * Variant A: arrow icon + quote + button → #tariffs.
 * ============================================================ */
.proj-card--cta-v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 2rem 2.25rem;
  gap: 1rem;
  border: 1px solid rgba(110, 231, 183, 0.3);
  background:
    radial-gradient(70% 80% at 50% 0%, rgba(16, 185, 129, 0.12) 0%, transparent 70%),
    linear-gradient(180deg, rgba(16, 185, 129, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
  border-radius: 1.25rem;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.proj-card--cta-v2::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(110, 231, 183, 0) 0%, rgba(110, 231, 183, 0.7) 50%, rgba(110, 231, 183, 0) 100%);
}

.proj-card--cta-v2:hover {
  transform: translate3d(0, -4px, 0);
  border-color: rgba(110, 231, 183, 0.55);
}

.proj-cta__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(110, 231, 183, 0.1);
  border: 1px solid rgba(110, 231, 183, 0.3);
  color: rgb(110, 231, 183);
  margin-bottom: 0.25rem;
  animation: cta-arrow-pulse 3s ease-in-out infinite;
}

.proj-cta__icon svg {
  width: 32px;
  height: 32px;
}

@keyframes cta-arrow-pulse {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(2px, -2px); }
}

.proj-cta__quote {
  font-size: 1.0625rem;
  line-height: 1.5;
  color: white;
  margin: 0;
  max-width: 26rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.proj-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(90deg, #34d399 0%, #10b981 100%);
  color: black;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 0.6rem;
  text-decoration: none;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 8px 24px -8px rgba(16, 185, 129, 0.6);
  margin-top: 0.5rem;
}

.proj-cta__btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 12px 32px -8px rgba(16, 185, 129, 0.75);
}

.proj-cta__btn:active { transform: scale(0.97); }

.proj-cta__hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
}

/* CTA-v2 stretches across the row, just like the old CTA placeholder. */
@media (min-width: 768px) {
  .proj-mosaic > .proj-card--cta-v2:last-child {
    grid-column: 1 / -1;
  }
}

/* Wide card (span 2 on md+) — used by Эвольвента to keep the
   4-card mosaic + CTA visually balanced. */
@media (min-width: 768px) {
  .proj-mosaic > .proj-card--wide {
    grid-column: span 2;
  }
  .proj-mosaic > .proj-card--wide .proj-media {
    aspect-ratio: 16 / 8;
  }
  .proj-mosaic > .proj-card--wide .proj-name {
    font-size: 1.375rem;
  }
}

/* «Ваш проект — здесь» / «Следующий — твой» CTA card stretches across
   the whole mosaic row instead of sitting alone in one cell. */
@media (min-width: 768px) {
  .proj-mosaic > .proj-card--cta:last-child {
    grid-column: 1 / -1;
  }
  .proj-mosaic > .proj-card--cta:last-child .proj-media {
    aspect-ratio: 16 / 5;
  }
  .proj-mosaic > .proj-card--cta:last-child .proj-body {
    text-align: center;
    padding: 1.5rem 2rem 2rem;
  }
  .proj-mosaic > .proj-card--cta:last-child .proj-name {
    font-size: 1.5rem;
  }
  .proj-mosaic > .proj-card--cta:last-child .proj-desc {
    max-width: 38rem;
    margin-inline: auto;
  }
}


/* ----- shared card base ----- */
.proj-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  cursor: pointer;
  isolation: isolate;
  will-change: transform;
  transform: translateZ(0);
}

.proj-card:hover {
  transform: translate3d(0, -4px, 0);
  border-color: rgba(110, 231, 183, 0.45); /* emerald-300 */
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.12);
}

.proj-card[data-video=""]:hover,
.proj-card:not([data-video]):hover {
  /* No video → no fancy box-shadow, just border highlight */
  box-shadow: none;
}

/* ----- video preview area (top of card) ----- */
.proj-card .proj-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-from, #064e3b) 0%, var(--accent-to, #0a0a15) 100%);
}

.proj-card .proj-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.proj-card .proj-media video[src] {
  opacity: 1;
}

/* Decorative pattern when no video set yet */
.proj-card .proj-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 70%),
    radial-gradient(80% 60% at 100% 100%, var(--accent-glow, rgba(16, 185, 129, 0.15)) 0%, transparent 60%);
  pointer-events: none;
}

/* Play button overlay (only shows when video loaded) */
.proj-card .proj-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.0);
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
  pointer-events: none;
}

.proj-card[data-has-video] .proj-play {
  pointer-events: auto;
}

.proj-card[data-has-video]:hover .proj-play {
  opacity: 1;
  background: rgba(0, 0, 0, 0.35);
}

.proj-card .proj-play svg {
  width: 56px;
  height: 56px;
  fill: white;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5));
}

/* ----- text content (bottom) ----- */
.proj-card .proj-body {
  flex: 1;
  padding: 1.25rem 1.5rem 1.5rem;
}

.proj-card .proj-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.proj-card .proj-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.proj-card .proj-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: rgb(110, 231, 183);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
  z-index: 5;
}

.proj-card .proj-link:hover {
  color: rgb(167, 243, 208);
  transform: translateX(2px);
}

/* ----- mosaic grid (large first card on md+) ----- */
.proj-mosaic {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .proj-mosaic {
    grid-template-columns: repeat(3, 1fr);
  }
  .proj-mosaic > .proj-card:first-child {
    grid-column: span 2;
  }
  .proj-mosaic > .proj-card:first-child .proj-media {
    aspect-ratio: 16 / 8;
  }
  .proj-mosaic > .proj-card:first-child .proj-name {
    font-size: 1.375rem;
  }
}

/* "Your project here" — emerald-accented placeholder card */
.proj-card.proj-card--cta {
  background:
    linear-gradient(180deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.02) 100%);
  border-color: rgba(110, 231, 183, 0.3);
  border-style: dashed;
}

.proj-card.proj-card--cta .proj-name {
  color: rgb(167, 243, 208);
}

/* Illustration inside the CTA placeholder media area: dashed-square with plus.
   Uses currentColor so the SVG inherits the emerald accent. */
.proj-media--placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(60% 80% at 50% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 70%),
    linear-gradient(135deg, rgba(16, 185, 129, 0.04) 0%, rgba(0, 0, 0, 0.4) 100%);
  color: rgba(167, 243, 208, 0.55);
}

.proj-media--placeholder svg {
  width: 80px;
  height: 80px;
  opacity: 0.85;
  animation: cta-arrow-pulse 3s ease-in-out infinite;
}

.proj-card.proj-card--cta { cursor: default; }
.proj-card.proj-card--cta:hover {
  transform: translate3d(0, -3px, 0);
  border-color: rgba(110, 231, 183, 0.55);
}

/* ============================================================
 * Partners strip
 * ============================================================ */
.partners-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2rem 0;
}

.partners-strip .partner {
  font-size: 2.25rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
  letter-spacing: -0.01em;
  transition: color 0.25s ease, transform 0.25s ease;
  text-decoration: none;
}

.partners-strip .partner:hover {
  color: rgb(167, 243, 208);
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .partners-strip {
    gap: 6rem;
  }
  .partners-strip .partner {
    font-size: 2.75rem;
  }
}

/* ============================================================
 * Video modal (Vanilla <dialog>)
 * ============================================================ */
#video-modal {
  width: min(92vw, 1280px);
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: #0a0a15;
  color: #fff;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

#video-modal::backdrop {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#video-modal[open] {
  animation: vm-fade-in 0.2s ease-out;
}

@keyframes vm-fade-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#video-modal .vm-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}

#video-modal .vm-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Stage holds either a <video> (moved from card) or <img> gallery */
#video-modal .vm-stage {
  position: relative;
  background: black;
  display: grid;
  place-items: center;
  min-height: 200px;
}

#video-modal .vm-slot {
  width: 100%;
  display: block;
}

#video-modal .vm-slot .vm-video,
#video-modal .vm-slot .vm-image {
  display: block;
  width: 100%;
  max-height: 80vh;
  background: black;
  object-fit: contain;
}

/* Gallery overlay (prev/next + counter) */
#video-modal .vm-gallery[hidden] { display: none; }

#video-modal .vm-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.15s ease;
  user-select: none;
}

#video-modal .vm-nav:hover { background: rgba(0, 0, 0, 0.85); }
#video-modal .vm-nav:active { transform: translateY(-50%) scale(0.93); }

#video-modal .vm-nav--prev { left: 1rem; }
#video-modal .vm-nav--next { right: 1rem; }

#video-modal .vm-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 999px;
  letter-spacing: 0.04em;
}

#video-modal .vm-title {
  padding: 1rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================================
 * Selectel partner perk section — sits between «Что вы получите»
 * and «Тарифы». Brand-red accent (#ee2c45) on the dark layout
 * so the block reads as a co-branded partner offer, not as
 * another generic course feature.
 * ============================================================ */
#selectel-perk { position: relative; z-index: 5; }

.selectel-card {
  position: relative;
  padding: 2.5rem 1.75rem;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, #1a0a0e 0%, #0a0a15 75%);
  border: 1px solid rgba(238, 44, 69, 0.28);
  overflow: hidden;
  box-shadow:
    0 0 60px rgba(238, 44, 69, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

@media (min-width: 768px) {
  .selectel-card { padding: 3.5rem 3.5rem; }
}

.selectel-card__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 88% 8%, rgba(238, 44, 69, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 8% 92%, rgba(238, 44, 69, 0.14) 0%, transparent 50%);
  filter: blur(40px);
  -webkit-filter: blur(40px);
}

.selectel-card__head {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.selectel-card__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(238, 44, 69, 0.12);
  border: 1px solid rgba(238, 44, 69, 0.4);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fca5a5;
}

.selectel-card__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ee2c45;
  box-shadow: 0 0 10px rgba(238, 44, 69, 0.85);
  animation: selectel-pulse 2.4s ease-in-out infinite;
}

@keyframes selectel-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}

.selectel-card__partner {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.selectel-card__partner:hover { opacity: 0.85; }

/* Selectel official wordmark (white SVG dropped into static).
   Sized by height so the natural aspect ratio of the wordmark
   stays correct. Subtle red glow keeps it on-brand. */
.selectel-card__partner-logo {
  display: block;
  height: 28px;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(238, 44, 69, 0.45));
}

.selectel-card__title {
  position: relative;
  margin: 0 0 1.85rem;
  font-size: clamp(1.75rem, 3.6vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: #fff;
}

.selectel-card__num {
  display: inline-block;
  background: linear-gradient(180deg, #ee2c45 0%, #f43f5e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.2em;
  font-weight: 900;
}

.selectel-card__brand-inline { color: #fda4af; }

.selectel-card__lede {
  position: relative;
  margin: 0 0 2rem;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
  max-width: 42rem;
}

.selectel-card__bullets {
  position: relative;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .selectel-card__bullets {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
  }
}

.selectel-card__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  line-height: 1.5;
}

.selectel-card__bullets svg {
  flex-shrink: 0;
  width: 18px; height: 18px;
  color: #ee2c45;
  margin-top: 2px;
}

.selectel-card__footnote {
  position: relative;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  max-width: 44rem;
}

/* ===== Partner perk badges inside each tariff card ===== */
.tariff-card__perk {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.6rem 0 0;
  padding: 0.55rem 0.75rem;
  border-radius: 0.6rem;
  background: rgba(238, 44, 69, 0.08);
  border: 1px solid rgba(238, 44, 69, 0.24);
  font-size: 0.78rem;
  color: rgba(254, 202, 202, 0.92);
  line-height: 1.4;
}

.tariff-card__perk:first-of-type { margin-top: 1rem; }
.tariff-card__perk:last-of-type { margin-bottom: 0.85rem; }

.tariff-card__perk-dot {
  flex-shrink: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ee2c45;
  box-shadow: 0 0 8px rgba(238, 44, 69, 0.7);
}

/* AI Dev Team variant — indigo */
.tariff-card__perk--ai {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.28);
  color: rgba(199, 210, 254, 0.95);
}

.tariff-card__perk-dot--ai {
  background: #6366f1;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.75);
}

/* ============================================================
 * AI Dev Team partner card — career-outcome offer.
 * Indigo brand-color so the block is visually distinct from
 * both the red Selectel card and the page's purple/green palette.
 * Mirrors .selectel-card structure for layout consistency.
 * ============================================================ */
#aidevteam-perk { position: relative; z-index: 5; }

.aidevteam-card {
  position: relative;
  padding: 2.5rem 1.75rem;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, #0c0e22 0%, #0a0a15 75%);
  border: 1px solid rgba(99, 102, 241, 0.32);
  overflow: hidden;
  box-shadow:
    0 0 60px rgba(99, 102, 241, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

@media (min-width: 768px) {
  .aidevteam-card { padding: 3.5rem 3.5rem; }
}

.aidevteam-card__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 88% 8%, rgba(99, 102, 241, 0.24) 0%, transparent 45%),
    radial-gradient(circle at 8% 92%, rgba(67, 56, 202, 0.18) 0%, transparent 50%);
  filter: blur(40px);
  -webkit-filter: blur(40px);
}

.aidevteam-card__head {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.aidevteam-card__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.45);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c7d2fe;
}

.aidevteam-card__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #6366f1;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.85);
  animation: aidevteam-pulse 2.4s ease-in-out infinite;
}

@keyframes aidevteam-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}

.aidevteam-card__partner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.aidevteam-card__partner:hover { opacity: 0.85; }

/* Stylized AI Dev Team mark — indigo gradient box with </>
   glyph (dev-team symbol). Replace ::before with an SVG/PNG
   asset later if there is an official logo. */
.aidevteam-card__partner-mark {
  position: relative;
  width: 30px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
  border-radius: 5px;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.55);
  flex-shrink: 0;
}

.aidevteam-card__partner-mark::before {
  content: "</>";
  letter-spacing: -0.05em;
}

.aidevteam-card__title {
  position: relative;
  margin: 0 0 1.85rem;
  font-size: clamp(1.75rem, 3.6vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: #fff;
}

.aidevteam-card__brand-inline {
  background: linear-gradient(180deg, #818cf8 0%, #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

.aidevteam-card__lede {
  position: relative;
  margin: 0 0 2rem;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
  max-width: 42rem;
}

.aidevteam-card__bullets {
  position: relative;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .aidevteam-card__bullets {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
  }
}

.aidevteam-card__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  line-height: 1.5;
}

.aidevteam-card__bullets svg {
  flex-shrink: 0;
  width: 18px; height: 18px;
  color: #818cf8;
  margin-top: 2px;
}

.aidevteam-card__footnote {
  position: relative;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  max-width: 44rem;
}

.aidevteam-card__link {
  color: #c7d2fe;
  text-decoration: underline;
  text-decoration-color: rgba(199, 210, 254, 0.4);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s ease;
}

.aidevteam-card__link:hover {
  text-decoration-color: rgba(199, 210, 254, 0.9);
}

/* ============================================================
 * Mobile fix — Sprint/Library/Roast/Showcase slider cards.
 * Original Tailwind output uses h-full + mt-24 (image area on top),
 * which on mobile (flex slider, no row-height matching) makes cards
 * stretch to almost full screen height. Constrain to compact, near-
 * square cards on mobile so the slider reads as normal cards.
 * ============================================================ */
@media (max-width: 767px) {
  .snap-x.snap-mandatory > .group {
    width: 280px;
    flex: 0 0 280px;
  }
  .snap-x.snap-mandatory > .group > div {
    height: auto !important;
    min-height: 0 !important;
  }
  .snap-x.snap-mandatory > .group .mt-24 {
    margin-top: 4.5rem !important;
  }
  .snap-x.snap-mandatory > .group .p-6.pt-8 {
    padding-bottom: 1.25rem !important;
  }
  /* Reduce decorative image area so card stays compact */
  .snap-x.snap-mandatory > .group .w-32.h-32 {
    width: 6rem !important;
    height: 6rem !important;
  }

  /* The wrapping section had pt-12 + pb-12 (3rem each) plus the
     perf-patch's content-visibility:auto reserving 600px of
     phantom height — together they created a huge black void
     between the slider and the next section on mobile. Tighten. */
  .bg-black.relative.z-20.flex.flex-col {
    min-height: 0 !important;
  }
  .bg-black.relative.z-20.flex.flex-col > section {
    padding-top: 1rem !important;
    padding-bottom: 0.5rem !important;
    content-visibility: visible !important;  /* kill phantom 600px reserve */
    contain-intrinsic-size: auto !important;
  }
  .snap-x.snap-mandatory {
    padding-bottom: 0.75rem !important;
  }

  /* Add a subtle swipe-hint below the slider so users see it scrolls. */
  .bg-black.relative.z-20.flex.flex-col > section {
    position: relative;
  }
  .bg-black.relative.z-20.flex.flex-col > section::after {
    content: "← свайп →";
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, 0.32);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 0.4rem;
    pointer-events: none;
  }

  /* Speakers section had 5rem top padding on mobile — too much
     given the slider just above already has its own bottom space. */
  .speakers-section {
    padding-top: 2.5rem !important;
  }
}
