/* Bootcamp — яркий, живой дизайн */
:root {
  --boot-bg: #0a0d12;
  --boot-bg-light: #151b24;
  --boot-bg-lighter: #1e2836;
  --boot-accent: #fbbf24;
  --boot-accent-bright: #fcd34d;
  --boot-accent-soft: rgba(251, 191, 36, 0.2);
  --boot-secondary: #22d3ee;
  --boot-text: #f8fafc;
  --boot-text-muted: #94a3b8;
  --boot-border: #334155;
  --boot-font: 'Outfit', system-ui, sans-serif;
  --boot-font-mono: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.bootcamp-page {
  font-family: var(--boot-font);
  background: var(--boot-bg);
  color: var(--boot-text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

.bootcamp-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 1;
}

/* Скидка — крупнее и ярче, кликабельная */
.bootcamp-discount {
  position: fixed;
  cursor: pointer;
  border: none;
  font-family: inherit;
  touch-action: manipulation;
  top: 24px;
  right: 24px;
  z-index: 1000;
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: white;
  font-weight: 800;
  font-size: 1.25rem;
  padding: 0.85rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(244, 63, 94, 0.5);
  animation: discount-pulse 2s ease-in-out infinite;
}

.bootcamp-discount span {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 1;
  margin-top: 4px;
}

@keyframes discount-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 32px rgba(244, 63, 94, 0.5); }
  50% { transform: scale(1.05); box-shadow: 0 12px 40px rgba(244, 63, 94, 0.6); }
}

/* Hero */
.bootcamp-hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.bootcamp-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--boot-accent-soft) 0%, transparent 65%);
  pointer-events: none;
}

.bootcamp-hero-image {
  width: 100%;
  max-width: 560px;
  border-radius: 20px;
  margin-bottom: 2.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--boot-border);
}

.bootcamp-tag {
  font-family: var(--boot-font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--boot-accent);
  margin-bottom: 1rem;
}

.bootcamp-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  max-width: 700px;
}

.bootcamp-hero .lead {
  font-size: 1.2rem;
  color: var(--boot-text-muted);
  max-width: 580px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Секции — симметричные, одинаковый padding */
.bootcamp-section {
  padding: 4rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}


.bootcamp-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--boot-text);
}

.bootcamp-section p {
  color: var(--boot-text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.bootcamp-blockquote {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--boot-accent) !important;
  font-style: italic;
  padding-left: 1.25rem;
  border-left: 4px solid var(--boot-accent);
}

/* Светлые блоки — полная ширина, контент симметрично по центру */
.bootcamp-section.dark {
  background: var(--boot-bg-light);
  max-width: none;
  width: 100%;
}

.bootcamp-section.dark .bootcamp-section-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Карточки */
.bootcamp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.bootcamp-card {
  background: linear-gradient(160deg, rgba(251, 191, 36, 0.12) 0%, var(--boot-bg) 50%);
  border: 1px solid var(--boot-border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.bootcamp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 191, 36, 0.5);
}

.bootcamp-card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.bootcamp-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--boot-text);
}

.bootcamp-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* Изображения в контенте */
.bootcamp-img-wrap {
  margin: 2rem 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--boot-border);
}

.bootcamp-img-wrap img {
  width: 100%;
  display: block;
}

.bootcamp-img-wrap figcaption {
  padding: 1rem 1.25rem;
  background: var(--boot-bg-light);
  font-size: 0.9rem;
  color: var(--boot-text-muted);
}

/* Список результатов */
.bootcamp-results {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.bootcamp-results li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--boot-text-muted);
  font-size: 1.05rem;
}

.bootcamp-results li::before {
  content: '✓';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--boot-accent-soft);
  color: var(--boot-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Компактный CTA после информационных блоков */
.bootcamp-cta-inline {
  text-align: center;
  padding: 2rem 1.5rem 0;
  margin-top: 1rem;
}

.bootcamp-hero .bootcamp-cta-inline {
  padding-top: 2.5rem;
}

.bootcamp-section.dark .bootcamp-cta-inline {
  padding-bottom: 1rem;
}

/* Цена и CTA — крупнее и ярче */
.bootcamp-cta {
  text-align: center;
  padding: 4rem 1.5rem;
}

.bootcamp-price {
  font-family: var(--boot-font-mono);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--boot-accent);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 40px rgba(251, 191, 36, 0.3);
}

.bootcamp-price-old {
  font-size: 1.75rem;
  color: var(--boot-text-muted);
  text-decoration: line-through;
  margin-right: 0.75rem;
  font-weight: 500;
}

.bootcamp-price-note {
  font-size: 1.1rem;
  color: var(--boot-secondary);
  margin-bottom: 2rem;
  font-weight: 600;
}

.bootcamp-btn {
  display: inline-block;
  font-family: var(--boot-font);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 1.1rem 2.5rem;
  background: linear-gradient(135deg, var(--boot-accent) 0%, #f59e0b 100%);
  color: #0a0d12;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 32px rgba(251, 191, 36, 0.35);
}

.bootcamp-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(251, 191, 36, 0.5);
}

.bootcamp-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.bootcamp-btn small {
  display: block;
  font-size: 0.85em;
  font-weight: 500;
  margin-top: 0.15em;
}

/* Форма */
.bootcamp-form {
  max-width: 420px;
  margin: 2rem auto 0;
  text-align: left;
}

.bootcamp-form .form-group {
  margin-bottom: 1.25rem;
}

.bootcamp-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--boot-text-muted);
  margin-bottom: 0.5rem;
}

.bootcamp-form input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--boot-bg);
  border: 1px solid var(--boot-border);
  border-radius: 12px;
  color: var(--boot-text);
  font-family: var(--boot-font);
  font-size: 1rem;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bootcamp-form input:focus {
  outline: none;
  border-color: var(--boot-accent);
  box-shadow: 0 0 0 3px var(--boot-accent-soft);
}

.bootcamp-form input::placeholder {
  color: var(--boot-text-muted);
  font-weight: 400;
}

.bootcamp-form .form-error {
  font-size: 0.85rem;
  color: #f43f5e;
  margin-top: 0.35rem;
}

.bootcamp-form .form-success {
  font-size: 1rem;
  color: var(--boot-secondary);
  margin-top: 1rem;
  font-weight: 500;
}

/* Модальное окно с trial-form */
.bootcamp-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.bootcamp-modal.active {
  opacity: 1;
  visibility: visible;
}

.bootcamp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.bootcamp-modal-content {
  position: relative;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--boot-bg-light);
  border: 1px solid var(--boot-border);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.bootcamp-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--boot-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.bootcamp-modal-close:hover {
  color: var(--boot-text);
  background: var(--boot-bg-lighter);
}

/* Бегущая строка с логотипами */
.bootcamp-marquee {
  padding: 2rem 0;
  background: var(--boot-bg-light);
  overflow: hidden;
}

/* Фиксированная бегущая строка вверху при прокрутке */
.bootcamp-marquee-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--boot-border);
}

.bootcamp-marquee-fixed .bootcamp-marquee-label {
  margin-bottom: 0.6rem;
  font-size: 0.7rem;
}

.bootcamp-marquee-fixed .bootcamp-marquee-content img {
  height: 26px;
}

/* Отступ для контента под фиксированной строкой */
body.bootcamp-page {
  padding-top: 5.5rem;
}

.bootcamp-marquee-label {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--boot-text-muted);
  margin-bottom: 1.25rem;
}

.bootcamp-marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.bootcamp-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.bootcamp-marquee-content {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 0 2rem;
  flex-shrink: 0;
}

.bootcamp-marquee-content img {
  height: 32px;
  width: auto;
  opacity: 0.75;
  filter: brightness(0) invert(1);
  transition: opacity 0.2s;
}

.bootcamp-marquee-content img:hover {
  opacity: 1;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .bootcamp-marquee-track {
    animation: none;
  }
  .bootcamp-marquee-wrap {
    mask-image: none;
  }
  .bootcamp-marquee-content:last-of-type {
    display: none;
  }
}

/* Footer */
.bootcamp-footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--boot-border);
}

.bootcamp-footer p {
  font-size: 0.9rem;
  color: var(--boot-text-muted);
  margin: 0;
}

@media (max-width: 768px) {
  body.bootcamp-page {
    padding-top: 5rem;
  }

  .bootcamp-discount {
    top: 16px;
    right: 16px;
    font-size: 1.1rem;
    padding: 0.7rem 1.2rem;
  }

  .bootcamp-discount span {
    font-size: 0.85rem;
  }

  .bootcamp-price {
    font-size: 2.75rem;
  }

  .bootcamp-price-old {
    font-size: 1.35rem;
  }
}
