
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #000;
  overflow: hidden;

  /* Слой 1: лёгкий луч света вверху-слева */
  background:
    radial-gradient(
      circle at 10% 5%,
      rgba(255, 255, 255, 0.4) 0%,
      transparent 60%
    ),
    /* Слой 2: основной линейный градиент от небесно-голубого к почти белому */
    linear-gradient(
      to bottom,
      #71c0ed 0%,
      #5290b926 45%,
      #eaf9ff 100%
    );
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

/* --- Бургер --- */
.burger {
  display: none;             /* по умолчанию скрыт */
  width: 28px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all .3s ease;
}

/* --- Мобильное меню (скрыто) --- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 0;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width .4s ease;
  z-index: 50;
}
.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}
.mobile-menu li {
  margin: 20px 0;
  font-size: 24px;
  color: white;
  cursor: pointer;
  opacity: 0;
  animation: fadeInItem .3s forwards;
}
@keyframes fadeInItem {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}


header.top-menu {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  color: white;
  font-size: 14px;
  z-index: 5;
  max-width: 850px;
  height: 28px;
  width: 100%;
  margin: 0 auto;
  cursor: pointer;
  flex-wrap: wrap;
  margin: 0 auto;
}

.hero-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.background {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.ladder-image {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 71%;
  z-index: 10;
}

.center-wrapper {
  position: absolute;
  top: 256px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 871px;
  height: 304px;
  gap: 20px;
}

.logo-block {
  z-index: 2;
  position: relative;
}

.logo {
  width: 871px;
  height: 180px;
  object-fit: contain;
}

.content-block {
  z-index: 3;
  gap: 270px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.slogan {
  font-size: 16px;
  color: white;
  width: 304px;
  height: 98px;
  line-height: 1.4;
  margin-bottom: 16px;
  margin-left: 7px;
}

.form-block {
  width: 285px;
  height: 56px;
  display: flex;
gap: 20px;
  border-radius: 15px;
  overflow: hidden;
  align-items: center;
}

.form-block input {
  border: none;
  padding: 0 15px;
  font-size: 14px;
  outline: none;
  font-family: 'Roboto', sans-serif;
  width: 221px;
  height: 56px;
  border-radius: 15px;
}

.form-block button {
  border: none;
  background: none;
  cursor: pointer;
  width: 65px;
  height: 56px;
  padding-left: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
      background: #ffffff;
    border-radius: 15px;
}

.form-block img {
  width: 20px;
  height: 20px;
}

/* Модальное окно */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  background-color: rgba(0,0,0,0.4);
  z-index: 20;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  padding: 40px;
  border-radius: 20px;
  width: 590px;
  max-width: 90%;
  font-size: 16px;
  position: relative;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  text-align: center;
}

.modal-content h2 {
  margin-top: 0;
  font-size: 24px;
  font-weight: 700;
  color: #333;
}

.modal-content p {
  margin: 16px 0;
  font-size: 16px;
  color: #555;
}

.modal-content a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
}

.modal-content a:hover {
  text-decoration: underline;
}

.modal-content .social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #0066cc;
  font-weight: 500;
  font-size: 16px;
  margin: 8px 0;
}

.modal-content .social-icon {
  width: 24px;
  height: 24px;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  color: #333;
  cursor: pointer;
}

.text-placeholder {
  margin-top: 20px;
  color: #333;
}

/* Адаптив */
@media screen and (max-width: 768px) {
  .top-menu {
    padding: 0 20px;
    width: 50%;
    justify-content: space-between;
    font-size: 12px;
  }

  header.top-menu {
    padding: 0 16px;
    width: 100%;     /* растягиваем в полную ширину экрана */
    max-width: none; /* снимаем максимальную ширину */
  }
  /* скрываем десктопные ссылки и показываем бургер */
  .menu-left,
  .menu-right {
    display: none;
  }
  .burger {
    display: flex;
  }

  .center-wrapper {
    top: 200px;
    width: 90%;
    align-items: center;
  }

  .logo {
    width: 100%;
    height: auto;
  }

  .slogan {
    width: 100%;
    height: auto;
    text-align: center;
  }

  .form-block {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
  }

  .form-block input {
    width: 70%;
  }

}

/* Капсула */
.capsule-page {
  color: white;
  text-align: center;
  padding: 60px 20px;
}

.capsule-page h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.capsule-page h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

.capsule-description {
  font-size: 16px;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.videos {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 600px;
  margin: 0 auto;
}

.video-block {
  background: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 20px;
  backdrop-filter: blur(5px);
}

.video-block h3 {
  margin-bottom: 10px;
}

.teaser-btn,
.full-btn {
  display: inline-block;
  background: white;
  color: black;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 15px;
  font-weight: bold;
  margin-bottom: 10px;
}

.timer {
  font-size: 14px;
  color: #ccc;
}

.back-button {
  position: absolute;
  top: 30px;
  left: 30px;
  background: white;
  color: black;
  padding: 10px 15px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

/* Общая капсула */
.capsule-page {
  color: white;
  text-align: center;
  padding: 60px 20px;
  min-height: 100vh;
  background: url('images/background.png') center/cover no-repeat;
  font-family: 'Roboto', sans-serif;
  position: relative;
  overflow-x: hidden;
}

/* Введение */
.capsule-page h1 {
  font-size: 42px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.capsule-page h2 {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 30px;
}

.capsule-description {
  font-size: 18px;
  max-width: 639px;
  margin: 0 auto 40px auto;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 2;
}

.capsule-description::before {
  content: "Введение";
  position: absolute;
  top: -30px;
  left: 20px;
  font-size: 72px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.05);
  z-index: 1;
}

/* Видео блоки */
.videos {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 700px;
  margin: 0 auto;
}

.video-block {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  backdrop-filter: blur(10px);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.video-block h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

/* Превью картинка */
.preview-img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}

/* Кнопки */
.teaser-btn,
.full-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: black;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 15px;
  font-weight: 400;
  font-size: 14px;
  width: fit-content;
}

.full-btn img,
.teaser-btn img {
  height: 16px;
}

/* Таймер */
.timer {
  font-size: 14px;
  color: #000000;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 100;
}

.lock-icon {
  height: 18px;
  vertical-align: middle;
}

/* Кнопка назад */
.back-button {
  position: absolute;
  top: 10px;
  left: 10px;
  background: white;
  color: black;
  padding: 10px 15px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  z-index: 10;
}

.capsule-page {
 /* background: linear-gradient(to bottom, #64b9f4 0%, #a3dcfb 50%, #eaf8ff 100%);   */
 padding: 60px 20px;
  min-height: auto;    
  position: relative;
  overflow: visible;    
  font-family: 'Roboto', sans-serif;
}

/* убираем overflow:hidden на body, если он есть */
body {
  overflow: auto !important;
  height: auto !important;
}

/* 2. Матовое стекло для блока Введения */
.capsule-description {
  position: relative;
  z-index: 2;

  /* Fill 44% */
  background: rgba(255,255,255,0.44);

  /* Строка Stroke: два радиальных градиента */
  border: 1px solid transparent;
  /* радиальный градиент в border-image */
  border-image: radial-gradient(
    circle at center,
    rgba(255,255,255,0.62) 0%,
    rgba(255,255,255,0) 100%
  ) 1;

  /* размытие фона и слоя */
  backdrop-filter: blur(10px);  /* Background blur */
  /* Для Layer blur можно добавить лёгкий box-shadow со слабым размытием */
  box-shadow: 0 0 8px rgba(255,255,255,0.2);

  padding: 30px;
  border-radius: 15px;
  margin: 0 auto 40px auto;
}

/* Если нужно, аналогично стилизуем video-block */
.video-block {
  /* Fill 44% */
  background: rgba(255,255,255,0.44);
  background-image: url(/images/preview_placeholder.jpg);
  background-size: 90%;
  background-repeat: no-repeat;
  background-position: center;
  height: 350px;
  align-items: center;
  justify-content: center;

  /* Stroke */
  border: 1px solid transparent;
  border-image: radial-gradient(
    circle at center,
    rgba(255,255,255,0.62) 0%,
    rgba(255,255,255,0) 100%
  ) 1;

  /* blur */
  backdrop-filter: blur(10px);
  box-shadow: 0 0 8px rgba(255,255,255,0.2);

  border-radius: 15px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ----------------------------
   Мобильная версия: до 480px
------------------------------- */
@media screen and (max-width: 480px) {
  /* Снимаем жёсткие отступы у шапки */
  header.top-menu {
    padding: 0 16px;
    width: 90%;
    font-size: 12px;
  }
  .content-block {
    gap: 0px;
  }

  header.top-menu .menu-left,
  header.top-menu .menu-right {
    display: none;
  }
  /* Показать бургер */
  .burger {
    display: flex;
  }

  /* Центрированный контент */
  .center-wrapper {
    top: 180px;
    width: 80%;
    transform: translateX(-50%);
    align-items: center;
    gap: 12px;
  }

  /* Логотип поджимается */
  .logo {
    width: 100%;
    height: auto;
  }

  /* Слоган центрируем и делаем чуть крупнее */
  .slogan {
    width: 100%;
    text-align: center;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.3;
  }

  /* Поле ввода */
  .form-block {
    width: 100%;
    height: 48px;
    border-radius: 12px;
  }
  .form-block input {
    width: calc(100% - 56px);
    height: 48px;
    padding: 0 12px;
    font-size: 14px;
  }
  .form-block button {
    width: 48px;
    height: 48px;
    padding-left: 4px;
  }
  .form-block img {
    width: 18px;
    height: 18px;
    margin-left: 4px;
  }

  /* Изображение женщины */
  .ladder-image {
    z-index: 0 ;
    left: 57%;
  }

  /* Модалка */
  .modal-content {
    width: 90%;
    padding: 20px;
    font-size: 14px;
  }
  .modal-content h2 {
    font-size: 20px;
  }
  .modal-content p {
    font-size: 14px;
  }

  /* Капсула: общий контейнер */
  .capsule-page {
    padding: 40px 12px;
  }
  .capsule-page h1 {
    font-size: 28px;
  }
  .capsule-page h2 {
    font-size: 18px;
  }
  .capsule-description {
    padding: 20px;
    font-size: 14px;
    max-width: 100%;
  }

  /* Видео-блоки */
  .videos {
    gap: 24px;
  }
  .video-block {
    padding: 16px;
    gap: 8px;
  }
  .video-block h3 {
    font-size: 16px;
  }
  .preview-img {
    max-height: 200px;
  }
  .teaser-btn,
  .full-btn {
    padding: 8px 12px;
    font-size: 14px;
  }
  .timer {
    font-size: 12px;
  }
  .social-icon {
    width: 20px;
    height: 20px;
  }
}

