/* === БАЗОВАЯ КОНФИГУРАЦИЯ === */

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

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* === ЛЕНДИНГ: ОСНОВНОЙ КОНТЕЙНЕР === */

.landing-content {
  display: none;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 40px 120px;
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.landing-content::-webkit-scrollbar {
  display: none;
}

.landing-content.active {
  display: block;
}

.wrapper {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* === СЕКЦИЯ "БОЛЬШЕ О НАС" === */

.about-section {
  margin-bottom: 0px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.about-section h2 {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 60px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
}

/* Карточки "О нас" */

.about-card {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  width: 100%;
}

.about-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

/* Видео превью */

.about-video-preview {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.about-video-preview video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Оверлей с иконкой play */

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 1;
}

.about-card:hover .video-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.play-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.about-card:hover .play-icon {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.play-icon::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 16px solid rgba(255, 255, 255, 0.9);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}

/* Информация карточки */

.about-card-info {
  padding: 24px;
}

.about-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.about-card-description {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: -0.01em;
}

/* === ИНФОРМАЦИОННЫЕ КАРТОЧКИ (CAROUSEL С БОКОВЫМИ ПРЕВЬЮ) === */

.info-cards-section {
  margin: 60px 0 80px;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  padding: 0 20px;
}

.info-cards-carousel {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    height: 560px; /* максимальная высота самой длинной инфокарты */
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: pan-y;
    overflow: hidden; /* ← обязательно */
}

.info-cards-carousel.dragging {
  cursor: grabbing;
}

.info-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  max-width: 550px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 48px;
  z-index: 1;
  filter: brightness(0.5);
  box-sizing: border-box;
  /* Убран max-height и overflow - высота будет автоматической */
}

/* Активная карточка по центру */
.info-card.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
  z-index: 3;
  filter: brightness(1);
}

/* Предыдущая карточка (слева, ближе к центру) */
.info-card.prev {
  opacity: 0.5;
  transform: translate(-115%, -50%) scale(0.85);
  pointer-events: none;
  z-index: 2;
  filter: brightness(0.08);
}

/* Следующая карточка (справа, ближе к центру) */
.info-card.next {
  opacity: 0.5;
  transform: translate(15%, -50%) scale(0.85);
  pointer-events: none;
  z-index: 2;
  filter: brightness(0.08);
}

.info-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 24px;
  letter-spacing: -0.02em;
  text-align: center;
}

.info-card-content {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  white-space: pre-line;
  word-wrap: break-word;
  text-align: center;
  /* Убран overflow и max-height - контент подстраивается */
}

/* Индикаторы информационных карточек */

.info-cards-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.info-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.info-indicator:hover {
  background: rgba(255, 255, 255, 0.4);
}

.info-indicator.active {
  background: rgba(255, 255, 255, 0.8);
  width: 24px;
  border-radius: 4px;
}

/* === ВИДЕОПЛЕЕР (ПОЛНОЭКРАННЫЙ РЕЖИМ) === */

.video-player-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10001;
  animation: fadeIn 0.3s ease;
}

.video-player-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-player-container {
  position: relative;
  width: 90%;
  max-width: 1200px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-player-wrapper {
  position: relative;
  padding-top: 56.25%;
}

.video-player-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Кнопка закрытия плеера */

.video-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.video-close-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

/* Контролы видеоплеера */

.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  padding: 40px 20px 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-player-container:hover .video-controls,
.video-controls.active {
  opacity: 1;
}

/* Прогресс-бар */

.video-progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  margin-bottom: 16px;
  cursor: pointer;
  position: relative;
}

.video-progress-filled {
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s linear;
}

/* Кнопки управления */

.video-controls-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.video-control-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  opacity: 0.9;
}

.video-control-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.video-control-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Время */

.video-time {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin-left: auto;
  margin-right: 16px;
}

/* Громкость */

.video-volume-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-volume-slider {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.video-volume-filled {
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  width: 100%;
  transition: width 0.1s linear;
}

/* Качество видео */

.video-quality-menu {
  position: relative;
}

.video-quality-btn {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.video-quality-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.video-quality-options {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 8px;
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  backdrop-filter: blur(12px);
}

.video-quality-options.active {
  display: flex;
}

.quality-option {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.quality-option:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.quality-option.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

/* === СЕКЦИЯ С ОТЗЫВАМИ === */

.reviews-section {
    margin-top: 96px;
    margin-bottom: 0px;
    overflow-x: hidden;
    overflow-y: hidden;
    width: 100%;
    max-width: 100%;
}

.reviews-section h2 {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 60px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* Карусель отзывов */

.reviews-carousel {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    touch-action: pan-y;
    overflow: hidden;  /* важно: скрывает соседей */
}

.reviews-carousel.dragging {
    cursor: grabbing;
}

/* Карточка отзыва */

.review-card {
    background: rgba(255, 255, 255, 0.03);  /* было: transparent */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;                     /* было: 12px */
    padding: 48px 56px;

    /* Абсолютное позиционирование как у .info-card */
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: 860px;

    opacity: 0;
    /* Стартовое состояние — снизу, как было, но теперь со scale */
    transform: translate(-50%, -50%) scale(0.88) translateX(0px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    box-sizing: border-box;
    filter: brightness(0.4);
}

/* Активная карточка */
.review-card.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
    z-index: 3;
    filter: brightness(1);
}

/* Предыдущая карточка — слева, невидима */
.review-card.prev {
    opacity: 0;
    transform: translate(-150%, -50%) scale(0.88);
    pointer-events: none;
    z-index: 2;
    filter: brightness(0.08);
}

/* Следующая карточка — справа, невидима */
.review-card.next {
    opacity: 0;
    transform: translate(50%, -50%) scale(0.88);
    pointer-events: none;
    z-index: 2;
    filter: brightness(0.08);
}

.review-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  opacity: 0.9;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
}

.review-info {
  flex: 1;
}

.review-nickname {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.review-date {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: -0.01em;
}

.review-text {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  letter-spacing: -0.01em;
  font-weight: 400;
  word-wrap: break-word;
  /* Текст автоматически расширяет карточку */
}

/* Индикаторы карусели */

.reviews-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;   /* было: 48px */
}

.indicator {
    position: relative;
    width: 8px;          /* было: 32px */
    height: 8px;         /* было: 2px */
    border-radius: 50%;  /* было: 1px — теперь круг */
    background: rgba(255, 255, 255, 0.2);  /* было: 0.15 */
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Убираем псевдоэлемент с увеличенной зоной клика (необязательно, но приводим к единообразию) */
.indicator::before {
    display: none;
}

.indicator.active {
    background: rgba(255, 255, 255, 0.8);  /* было: 0.6 */
    width: 24px;                            /* было: 32px — расширяется как у info */
    border-radius: 4px;                     /* было: 1px */
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.4);  /* было: 0.35 */
}


/* Навигация карусели */

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  opacity: 0;
}

.reviews-section:hover .carousel-nav {
  opacity: 1;
}

.carousel-nav:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.carousel-nav.prev {
  left: -80px;
}

.carousel-nav.next {
  right: -80px;
}

.carousel-nav svg {
  width: 20px;
  height: 20px;
  fill: rgba(255, 255, 255, 0.7);
}

/* === СЕКЦИЯ С КНОПКОЙ ЗАПИСИ === */

.cta-section {
  text-align: center;
  padding: 20px 20px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.cta-title {
  font-family: 'Inter', sans-serif;
  font-size: 72px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  min-height: 1.1em; 
}

.cta-description {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.cta-button {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 16px 40px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.01em;
}

.cta-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.cta-button:active {
  transform: translateY(0);
}

/* === POPUP ЗАПИСИ НА ИГРУ === */

.signup-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  overflow-x: hidden;
}

.signup-popup.active {
  display: flex;
}

.signup-popup-content {
  background: rgba(20, 20, 20, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 48px;
  max-width: 540px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: auto;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Кастомный скроллбар для popup */
.signup-popup-content::-webkit-scrollbar {
  width: 6px;
}

.signup-popup-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.signup-popup-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.signup-popup-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.signup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1;
}

.signup-close:hover {
  color: rgba(255, 255, 255, 1);
  transform: rotate(90deg);
}

.signup-popup-content h3 {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  padding-right: 30px;
}

.signup-description {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 32px;
}

/* Форма записи */

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.form-field label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.01em;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  outline: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
  max-height: 200px;
  line-height: 1.6;
}

.submit-button {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
  width: 100%;
  box-sizing: border-box;
}

.submit-button:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Сообщение об успехе */

.success-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 0;
  gap: 16px;
}

.success-message svg {
  color: #4ade80;
}

.success-message h4 {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
}

.success-message p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Скрытие устаревших элементов Telegram */

.telegram-link,
.telegram-icon,
.telegram-username {
  display: none !important;
}

/* === ФУТЕР === */

.site-footer {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 60px 40px 40px;
  margin-top: 120px;
  overflow-x: hidden;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 100%;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 400px;
}

.footer-logo {
  width: 120px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-description {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: -0.01em;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-social-title {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: opacity 0.2s ease;
}

.social-link:hover svg {
  opacity: 1;
}

.social-link-img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.social-link:hover .social-link-img {
  opacity: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-copyright {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: -0.01em;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* === АНИМАЦИИ === */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease;
}

/* === АДАПТИВНОСТЬ === */

/* Планшеты */
@media (max-width: 1024px) {
  .landing-content {
    padding: 80px 32px 100px;
  }

  .cta-title {
    font-size: 56px;
  }

  .info-cards-carousel {
    min-height: 350px;
  }

  .info-card {
    max-width: 550px;
    padding: 40px;
  }

  /* Боковые карточки чуть ближе на планшете */
  .info-card.prev {
    transform: translate(-120%, -50%) scale(0.85);
  }

  .info-card.next {
    transform: translate(20%, -50%) scale(0.85);
  }
}

/* Мобильные устройства */
@media (max-width: 768px) {
  .landing-content {
    padding: 60px 16px 80px;
  }

  .about-section {
    margin-bottom: 80px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-card-info {
    padding: 20px;
  }

  .about-card-title {
    font-size: 16px;
  }

  .about-card-description {
    font-size: 13px;
  }

  .play-icon {
    width: 56px;
    height: 56px;
  }

  .play-icon::after {
    border-left: 14px solid rgba(255, 255, 255, 0.9);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
  }

  /* Мобильная версия info-cards без боковых превью */
  .info-cards-section {
    margin: 40px 0 60px;
    padding: 0 16px;
  }

  .info-cards-carousel {
    min-height: auto;
  }

  .info-card {
    position: relative;
    transform: none;
    max-width: 100%;
    padding: 32px 24px;
    top: auto;
    left: auto;
  }

  .info-card.active {
    transform: none;
    position: relative;
  }

  .info-card.prev,
  .info-card.next {
    display: none;
  }

  .info-card-title {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .info-card-content {
    font-size: 15px;
    line-height: 1.6;
  }

  .video-player-container {
    width: 95%;
  }

  .video-controls {
    padding: 30px 16px 16px;
  }

  .video-controls-buttons {
    gap: 12px;
  }

  .video-control-btn svg {
    width: 20px;
    height: 20px;
  }

  .video-time {
    font-size: 12px;
    margin-right: 8px;
  }

  .video-volume-slider {
    width: 60px;
  }

  .video-quality-btn {
    font-size: 12px;
    padding: 4px 8px;
  }

  .reviews-section {
    margin-bottom: 100px;
  }

  .reviews-section h2 {
    font-size: 12px;
    margin-bottom: 48px;
  }

  .review-card {
    padding: 36px 24px;
  }

  .review-text {
    font-size: 16px;
    line-height: 1.65;
  }

  .cta-title {
    font-size: 42px;
  }

  .cta-description {
    font-size: 16px;
  }

  .cta-button {
    padding: 14px 32px;
    font-size: 14px;
  }

  .signup-popup {
    padding: 16px;
    align-items: center;
  }

  .signup-popup-content {
    padding: 32px 20px;
    max-width: calc(100% - 32px);
    max-height: calc(100vh - 32px);
  }

  .signup-popup-content h3 {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .signup-description {
    font-size: 13px;
    margin-bottom: 24px;
  }

  .signup-form {
    gap: 20px;
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 16px;
    padding: 14px 16px;
  }

  .submit-button {
    padding: 16px 32px;
    font-size: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}

/* Маленькие мобильные устройства */
@media (max-width: 480px) {
  .landing-content {
    padding: 40px 12px 60px;
  }

  .reviews-section {
    margin-bottom: 80px;
  }

  .review-card {
    padding: 28px 20px;
  }

  .review-nickname {
    font-size: 14px;
  }

  .review-date {
    font-size: 12px;
  }

  .review-text {
    font-size: 15px;
  }

  .reviews-indicators {
    width: 8px; 
  }

  .indicator {
    width: 24px;
  }

  .cta-title {
    font-size: 32px;
  }

  .cta-description {
    font-size: 15px;
  }

  .info-cards-section {
    padding: 0 12px;
  }

  .info-card {
    padding: 24px 16px;
  }

  .info-card-title {
    font-size: 20px;
  }

  .info-card-content {
    font-size: 14px;
  }

  .signup-popup {
    padding: 12px;
  }

  .signup-popup-content {
    max-width: calc(100% - 24px);
    padding: 24px 16px;
  }

  .signup-popup-content h3 {
    font-size: 22px;
    padding-right: 32px;
  }

  .signup-popup-content p {
    font-size: 14px;
  }
}

/* === HERO TAGLINE & TAGS === */

.logo-large-wrapper {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    user-select: none;
    width: min(80vw, 900px);
}

.hero-tagline {
    font-family: 'Inter', sans-serif;
    font-size: clamp(11px, 1vw, 16px);
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    white-space: nowrap;
    display: block;
    margin-bottom: -16px;
}

.hero-tags {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: -16px;
}

.hero-tag {
    font-family: 'Inter', sans-serif;
    font-size: clamp(9px, 0.85vw, 13px);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(4px);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.hero-tag:hover {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.25);
}

.hero-tagline,
.hero-tags {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Анимируем появление только на лендинге */
#landingContent.active ~ * .hero-tagline,
#landingContent.active ~ * .hero-tags {
    opacity: 1;
    transform: translateY(0);
}

/* === SELECT СТИЛЬ В ПОПАПЕ ЗАПИСИ === */

.signup-form select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.signup-form select:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.08);
}

.signup-form select option {
    background: #1a1a1a;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    padding: 10px;
}

.signup-form select option:hover,
.signup-form select option:focus,
.signup-form select option:checked {
    background: #2c2c2c;
    color: #fff;
}


/* ============================================= */
/* СЕКЦИЯ ВВЕДЕНИЯ: ЧТО ТАКОЕ МГЛА               */
/* ============================================= */

.mgla-intro-section {
    width: 100%;
    max-width: 100%;
    padding: 0px 40px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.mgla-intro-inner {
    max-width: 760px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
}

/* Логотип */
.mgla-intro-logo-wrap {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.mgla-intro-logo-wrap.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.mgla-intro-logo {
    width: clamp(80px, 14vw, 160px);
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.92;
    /* Тонкое мерцание свечения */
    animation: mglaLogoPulse 5s ease-in-out infinite;
}

@keyframes mglaLogoPulse {
    0%, 100% { filter: brightness(0) invert(1) drop-shadow(0 0 0px rgba(255,255,255,0)); }
    50%       { filter: brightness(0) invert(1) drop-shadow(0 0 14px rgba(255,255,255,0.18)); }
}

/* Акцентный заголовок */
.mgla-intro-headline {
    font-family: "Roboto", sans-serif;
    font-size: clamp(20px, 2.8vw, 32px);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.1s;
}

.mgla-intro-headline.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Вторичный текст */
.mgla-intro-body {
    font-family: "Roboto", sans-serif;
    font-size: clamp(14px, 1.4vw, 16px);
    line-height: 1.75;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.2s;
}

.mgla-intro-body.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Разделитель */
.mgla-intro-divider {
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin-top: 56px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.3s;
}

.mgla-intro-divider.is-visible {
    transform: scaleX(1);
}

/* Кнопка «Хочу участвовать» в intro-секции */
.mgla-intro-cta-btn {
    margin-top: 8px;
    padding: 14px 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    color: #fff;
    font-family: Inter, sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.2s,
                transform 0.2s;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.2s ease,
                border-color 0.2s ease;
    transition-delay: 0.3s;
}

.mgla-intro-cta-btn.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.mgla-intro-cta-btn:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.32);
    transform: translateY(-1px);
}

.mgla-intro-cta-btn:active {
    transform: translateY(0);
}


/* === Адаптив === */
@media (max-width: 768px) {
    .mgla-intro-section {
        padding: 60px 20px 40px;
    }
    .mgla-intro-inner {
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .mgla-intro-section {
        padding: 40px 12px 32px;
    }
    .mgla-intro-logo {
        width: 80px;
    }
}

.cta-title--typing::after {
    content: '|';
    display: inline-block;
    margin-left: 4px;
    animation: ctaCursorBlink 0.7s step-end infinite;
    color: rgba(255, 255, 255, 0.8);
}

@keyframes ctaCursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

@media (max-width: 768px) {
  .carousel-nav {
    display: none;
  }
}
