/* Roadmappers BootCamp — адаптированный CSS (desktop → mobile-friendly) */
html { scroll-behavior: smooth; }

/* ==== БАЗА ==== */
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #000;
  color: white;
  overflow-x: hidden;
}

/* ==== ШАПКА ==== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.logo { font-size: 1.3rem; font-weight: 600; color: white; }
nav { display: flex; align-items: center; flex-wrap: wrap; }
nav a {
  margin-left: 24px;
  text-decoration: none;
  color: white;
  font-weight: 300;
  transition: color 0.3s ease;
}
nav a:hover { color: #9e9eff; }

/* ==== HERO ==== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 100px 40px;
  position: relative;
  text-align: left;
  max-width: 1300px;
  margin: 0 auto;
}
.hero-image {
  position: absolute;
  right: -50px;
  top: -5%;
  width: 1400px;
  height: auto;
  z-index: 1;
  opacity: 0.9;
  pointer-events: none;
}
.hero h1 { font-size: 5rem; font-weight: 800; margin-bottom: 0; }
.hero p { font-size: 1.5rem; color: #ccc; max-width: 600px; }

.hero-buttons { display: flex; gap: 20px; margin-top: 40px; align-items: center; flex-wrap: wrap; }

.background-shape {
  position: absolute;
  top: 50%; left: 75%;
  width: 1000px; height: 1000px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center, rgba(158, 158, 255, 0.3) 0%, transparent 70%);
  filter: blur(80px);
  z-index: 0;
}
.badges { display: flex; justify-content: center; gap: 24px; margin-top: 20px; flex-wrap: wrap; }
.badge { background: #111; border: 1px solid #333; padding: 10px 20px; border-radius: 20px; color: #aaa; font-size: 0.95rem; }

.cta-button {
  background: #0d8ee4;
  border: none;
  padding: 16px 50px;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  border-radius: 32px;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.2s, transform 0.15s ease;
  margin-top: 40px;
}
.cta-button:hover { background:#ff2f8d; box-shadow: 0 0 15px #ff2f8d; transform: translateY(-1px); }

.cta-button.secondary { background: none; border: none; color: #ffffff; font-size: 1rem; font-weight: 500; padding: 0; cursor: pointer; text-decoration: underline; transition: color 0.2s ease; }
.cta-button.secondary:hover { color: #ffffff; box-shadow: none; }

/* ==== ОБЩИЕ СЕКЦИИ ==== */
section { padding: 100px 40px; max-width: 1300px; margin: 0 auto; }
section h2 { font-size: 2.5rem; margin-bottom: 20px; }
section p { font-size: 1.2rem; color: #ffffff; max-width: 800px; }

/* ==== ПРОДУКТЫ ==== */
.products-section {
  padding: 80px 40px;
  text-align: center;
  width: 100%;
  max-width: none;
  position: relative;       /* ✅ нужно для background-shape */
  overflow: hidden;         /* ✅ чтобы форма не вылезала */
  background: #000;         /* общий фон */
}

.products-section .background-shape { position: absolute; top: 50%; left: 50%; width: 90vw; height: 90vh; transform: translate(-50%, -50%); background: radial-gradient(circle at center, rgba(158,158,255,0.35) 0%, transparent 75%); filter: blur(100px); z-index: 0; pointer-events: none; }


.products-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }

.product-card {
  background: #131313;
  border-radius: 16px;
  padding: 20px;
  width: 300px;
  height: 100%;
  min-height: 400px;
  border: 2px solid rgba(0, 153, 255, 0.8);
  box-shadow: 0 0 20px rgba(0, 153, 255, 0.8);
  transition: all 0.1s ease-in;   /* быстрое затухание */
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: 0 0 30px rgba(0, 153, 255, 0.8); transform: translateY(-5px); }
.product-card h3 { font-size: 1.2rem; color: #00b3ff; }

.product-column { display: flex; flex-direction: column; align-items: center; }
.product-label { font-weight: 700; font-size: 1.3rem; margin-bottom: 10px; color: #ffffff; text-transform: uppercase; letter-spacing: 1px; }

.product-icon { width: 80px; height: 80px; margin: 15px auto; display: block; opacity: 0.9; }

.card-content { flex: 1; display: flex; flex-direction: column; }
.card-content h4 { margin: 0; }
.card-content ul { list-style-type: disc; padding-left: 20px; margin: 0 0 20px; text-align: left; flex-grow: 1; }
.card-content ul li { margin-bottom: 8px; color: #ddd; }
.card-content button {
  background: #0d8ee4;
  border: none;
  padding: 14px 26px;
  font-size: 1.1rem;
  font-weight: 600; color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.2s;
  margin-top: auto; align-self: center;
}
.card-content button:hover { background: #ff2f8d; box-shadow: 0 0 15px #ff2f8d; }

/* ==== BOOTCAMP WHY ==== */
.bootcamp-why { position: relative; background: #000; overflow: hidden; width: 100%; max-width: none; padding: 100px 0; }
.bootcamp-why__inner { max-width: 1300px; margin: 0 auto; padding: 0 40px; }
.bootcamp-why h2 { font-size: 2.6rem; margin: 0 0 30px; }
.bootcamp-why .background-shape { position: absolute; top: 50%; left: 50%; width: 120vw; height: 120vh; transform: translate(-50%, -50%); background: radial-gradient(circle at center, rgba(158,158,255,0.35) 0%, transparent 75%); filter: blur(100px); z-index: 0; pointer-events: none; }

.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; margin-bottom: 48px; }
.feature.reverse { grid-template-columns: 1fr 1.1fr; }
.feature.reverse .screenshot { order: 2; }
.feature.reverse .bubble { order: 1; }

.screenshot { width: 100%; border-radius: 16px; display: block; border: 2px solid #0d8ee4; box-shadow: 0 12px 30px rgba(13,142,228,0.25); background: #0b0b0b; overflow: hidden; }

.bubble { background: rgba(255,255,255,0.03); border: 1.5px solid rgba(255,255,255,0.12); border-radius: 18px; padding: 22px 24px; position: relative; box-shadow: 0 10px 26px rgba(0,0,0,0.35); }
.bubble::before { content: ""; position: absolute; left: -3px; top: 18px; bottom: 18px; width: 4px; border-radius: 4px; background: #0d8ee4; box-shadow: 0 0 14px rgba(13,142,228,0.55); }
.bubble h3 { margin: 0 0 10px; font-size: 1.35rem; line-height: 1.3; color: #00b3ff; }
.bubble p { margin: 0; color: #ddd; }

.bullets { list-style: disc; padding-left: 20px; margin: 8px 0 0; }
.bullets li { margin: 6px 0; color: #ddd; }

/* ==== ЧТО НУЖНО ЗНАТЬ ==== */
.bootcamp-reqs { position: relative; background: #000; overflow: hidden; width: 100%; max-width: none; padding: 100px 0; }
.bootcamp-reqs .background-shape { position: absolute; top: 50%; left: 50%; width: 120vw; height: 120vh; transform: translate(-50%, -50%); background: radial-gradient(circle at center, rgba(158, 158, 255, 0.35) 0%, transparent 75%); filter: blur(100px); z-index: 0; }
.bootcamp-reqs__inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.bootcamp-reqs h2 { font-size: 2.2rem; text-align: center; margin-bottom: 40px; }
.reqs-grid.clean { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-title { font-size: 1.25rem; font-weight: 700; color: #ff2f8d; margin-bottom: 4px; }
.code-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.10); border-radius: 12px; padding: 10px; box-shadow: 0 6px 16px rgba(0,0,0,0.2); }
.code-card h4 { font-size: 0.9rem; font-weight: 600; margin: 0 0 6px; color: #cfd3ff; }
.code-card img { width: 90%; margin: 0 auto; display: block; border-radius: 8px; }

.contact-item { display: flex; align-items: center; margin-bottom: 10px; }
.contact-item img { width: 24px; height: 24px; margin-right: 10px; }
.contact-item a { color: #0d8ee4; text-decoration: none; font-size: 1.1rem; transition: color 0.3s ease; }
.contact-item a:hover { color: #ff2f8d; }

/* ==== ПОДВАЛ ==== */
footer { background: #111; padding: 20px; text-align: center; color: #777; font-size: 0.9rem; }

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

/* ——— 1200px: чуть ужимаем hero-изображение и паддинги ——— */
@media (max-width: 1200px) {
  .hero { padding: 90px 32px; }
  .hero-image { right: -20px; width: 1100px; }
  section { padding: 90px 32px; }
  .bootcamp-why__inner { padding: 0 32px; }
}

/* ——— 1024px: перестраиваем фичи в одну колонку ——— */
@media (max-width: 1024px) {
  header { padding: 16px 24px; }
  nav a { margin-left: 16px; }

  .feature, .feature.reverse { grid-template-columns: 1fr; }
  .feature.reverse .screenshot, .feature.reverse .bubble { order: initial; }

  .hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
  .hero p { font-size: 1.2rem; max-width: 48ch; }

  .reqs-grid.clean { grid-template-columns: 1fr; }
}

/* ——— 880px: делаем hero‑картинку относительной и ниже текста ——— */
@media (max-width: 880px) {
  .hero { padding: 72px 24px; }
  .hero-image {
    position: static; /* убираем absolute */
    width: 100%;
    margin-top: 24px;
    opacity: 0.95;
  }
  .background-shape { left: 60%; width: 800px; height: 800px; filter: blur(70px); }

  section { padding: 72px 24px; }
  .products-section { padding: 64px 24px; }
}

/* ——— 720px: карточки на всю ширину, шапка складывается ——— */
@media (max-width: 720px) {
  header { flex-direction: column; align-items: stretch; gap: 8px; }
  nav { overflow-x: auto; white-space: nowrap; padding-bottom: 6px; }
  nav a { display: inline-block; margin-left: 0; margin-right: 12px; }

  .hero h1 { font-size: clamp(2rem, 7vw, 3rem); }
  .hero-buttons { gap: 12px; }
  .cta-button { padding: 14px 22px; margin-top: 20px; border-radius: 14px; }
  .cta-button.secondary { font-size: 0.95rem; }

  .products-grid { gap: 18px; }
  .product-card { width: 100%; max-width: 520px; min-height: unset; }
  .product-card h3 { font-size: 1.1rem; }

  .product-label { font-size: 1rem; }
}

/* ——— 560px: типографика и отступы компактнее ——— */
@media (max-width: 560px) {
  section h2 { font-size: 1.9rem; }
  section p { font-size: 1rem; }
  .badges { gap: 10px; }
  .badge { padding: 8px 12px; font-size: 0.85rem; }
  .bootcamp-reqs h2 { font-size: 1.8rem; }
  .code-card img { width: 100%; }
}

/* ——— 400px: самые узкие экраны ——— */
@media (max-width: 400px) {
  header { padding: 12px 14px; }
  .hero { padding: 56px 16px; }
  section { padding: 56px 16px; }
  .products-section { padding: 48px 16px; }

  .cta-button { width: 100%; padding: 14px 16px; }
}

/* ——— предпочитаем меньше анимаций при reduce-motion ——— */
@media (prefers-reduced-motion: reduce) {
  .cta-button { transition: none; }
  .cta-button:hover { transform: none; box-shadow: none; }
}


/* ==== BOOTCAMP PROGRAM ==== */
.bootcamp-program {
  position: relative;
  background: #000;
  padding: 100px 0;
  overflow: hidden;
  max-width: none;
}

.bootcamp-program__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.bootcamp-program .background-shape {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150vw;
  height: 150vh;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle at center,
    rgba(255, 47, 141, 0.45) 0%,
    transparent 65%
  );
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
}

.bootcamp-program h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
}

.program-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.program-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.program-block h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.4rem;
  color: #00b3ff;
}

.program-block ul {
  list-style-type: disc;
  padding-left: 20px;
  margin: 0;
}

.program-block li {
  margin-bottom: 10px;
  color: #ddd;
  font-size: 1.05rem;
}

/* ===== PROGRAM DETAILS (cards + timeline) ===== */
.program-details {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 36px;
}

/* mini-cards */
.meta-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.meta-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 16px 16px 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.meta-card h4 {
  margin: 6px 0 6px;
  font-size: 1.05rem;
  color: #cfd3ff;
}
.meta-card p {
  margin: 0;
  color: #ddd;
  font-size: 0.98rem;
}
.meta-emoji { font-size: 1.4rem; line-height: 1; }

/* week timeline */
.weekline {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 28px 22px 18px;
  overflow: hidden;

  /* ✅ добавляем */
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.weekline-track {
  position: absolute;
  top: 62px;
  left: 6%;
  right: 6%;
  height: 3px;
  background: linear-gradient(90deg, rgba(13,142,228,0.6), rgba(255,47,141,0.6));
  filter: blur(0.3px);
  z-index: 0;
}
.weekline-item {
  flex: 1;              /* чтобы все три заняли равное место */
  text-align: center;
  padding: 0 10px;      /* чуть воздуха по бокам */
}
.weekline-item .day {
  font-weight: 700;
  letter-spacing: .02em;
  color: #ffffff;
  margin-bottom: -6px;
}
.weekline-item .title {
  font-size: 1.02rem;
  color: #00b3ff;
  margin-bottom: 4px;
}
.weekline-item p {
  font-size: 0.95rem;
  color: #ddd;
  margin: 0;
}

/* позиционирование трёх точек */
.weekline-item.tue { margin-left: 2%; }
.weekline-item.thu { margin-left: 2%; }
.weekline-item.sat { margin-left: 2%; }

/* glowing dots */
.weekline-item .dot {
  display: none;
}

/* month focus cards */
.month-focus {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.focus-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.focus-card h4 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  color: #ff2f8d;
}
.focus-card ul {
  margin: 0;
  padding-left: 18px;
}
.focus-card li {
  color: #ddd;
  margin: 6px 0;
  font-size: 0.98rem;
}

/* callout */
.program-callout {
  background: linear-gradient(90deg, rgba(255,47,141,0.12), rgba(13,142,228,0.12));
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  padding: 16px 18px;
  text-align: center;
  color: #fff;
  font-size: 1.02rem;
  box-shadow: 0 8px 22px rgba(0,0,0,0.28);
}

/* ===== responsive ===== */
@media (max-width: 1024px) {
  .meta-cards { grid-template-columns: 1fr 1fr; }
  .weekline-item { width: 31.5%; }
}
@media (max-width: 780px) {
  .meta-cards { grid-template-columns: 1fr; }
  .month-focus { grid-template-columns: 1fr; }
  /* вертикальная таймлайн */
  .weekline { padding: 16px 16px 8px; }
  .weekline-track {
    top: 24px; left: 28px; right: auto; bottom: 18px;
    width: 3px; height: auto;
    background: linear-gradient(180deg, rgba(13,142,228,0.6), rgba(255,47,141,0.6));
  }
  .weekline-item {
    display: grid;
    grid-template-columns: 24px 1fr;
    grid-column-gap: 10px;
    align-items: start;
    width: 100%;
    text-align: left;
    margin: 10px 0 16px 0;
  }
  .weekline-item .dot { grid-column: 1; grid-row: 1 / span 2; margin: 4px 0 0; }
  /* поднимаем день недели */
  .weekline-item .day {
    font-weight: 700;
    letter-spacing: .02em;
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 12px; /* норм отступ */
    position: relative;
    top: -20px; /* смещение вверх */
  }
  .weekline-item .title { grid-column: 2; }
  .weekline-item p { grid-column: 2; margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .weekline-track { top: 70px;   /* было 62px — сделаем ниже */ }
}

/* адаптив */
@media (max-width: 1024px) {
  .program-grid {
    grid-template-columns: 1fr;
  }
}


/* ==== TESTIMONIALS ==== */
.testimonials {
  position: relative;
  background: #000;
  overflow: hidden;
  width: 100%;
  max-width: none;
  padding: 100px 0;
}
.testimonials .background-shape{
  position: absolute; top: 50%; left: 50%;
  width: 120vw; height: 120vh;
  transform: translate(-50%,-50%);
  background: radial-gradient(circle at center, rgba(158,158,255,0.35) 0%, transparent 75%);
  filter: blur(100px);
  z-index: 0; pointer-events: none;
}
.testimonials__inner{
  position: relative; z-index: 1;
  max-width: 1300px; margin: 0 auto; padding: 0 40px;
}
.testimonials h2{ font-size: 2.4rem; margin: 0 0 10px; }
.testimonials-sub{ color:#ddd; margin: 0 0 28px; }

.testimonials-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}

.testimonial-card{
  background: rgba(255,255,255,0.03);
  border: 1.5px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.testimonial-card:hover{
  transform: translateY(-4px);
  border-color: rgba(13,142,228,0.8);
  box-shadow: 0 0 24px rgba(13,142,228,0.45);
}

.testimonial-shot{
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  background: #0b0b0b;
  border: 2px solid #0d8ee4;
  box-shadow: 0 12px 30px rgba(13,142,228,0.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.testimonial-card:hover .testimonial-shot{
  transform: scale(1.01);
  box-shadow: 0 18px 40px rgba(255,47,141,0.25);
}

.testimonial-meta{
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; font-size: .95rem; color:#bbb;
}
.testimonial-meta .source{
  padding: 4px 10px; border-radius: 999px;
  background: rgba(13,142,228,0.12);
  border: 1px solid rgba(13,142,228,0.35);
  color: #cfeaff;
}
.testimonial-meta .date{ color:#aaa; }


.bootcamp-video {
  position: relative;
  background: #000;
  overflow: hidden;
  width: 100%;
  max-width: none;
  padding: 100px 0;
  text-align: center;
}

.bootcamp-video .background-shape {
  position: absolute;
  top: 50%; left: 50%;
  width: 120vw; height: 120vh;
  transform: translate(-50%,-50%);
  background: radial-gradient(circle at center, rgba(255,47,141,0.3) 0%, transparent 75%);
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
}

.bootcamp-video__inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
}

.bootcamp-video h2 {
  font-size: 2.4rem;
  margin-bottom: 40px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 соотношение */
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(13,142,228,0.3);
}

.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
}

/* адаптив */
@media (max-width: 1024px){
  .testimonials__inner{ padding: 0 32px; }
  .testimonials-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 680px){
  .testimonials{ padding: 72px 0; }
  .testimonials__inner{ padding: 0 24px; }
  .testimonials-grid{ grid-template-columns: 1fr; }
}

