/* ============================================
   responsive.css — Адаптивные стили (mobile-first)
   База: < 768px (мобильные)
   Средние: >= 768px (планшеты)
   Большие: >= 1024px (десктоп)
   ============================================ */

/* ==============================
   Мобильные: упрощение анимации hero-сцены
   ============================== */

/* На мобильных скрываем часть светлячков и третье облако */
.hero-scene__firefly--5,
.hero-scene__firefly--6,
.hero-scene__firefly--7 {
  display: none;
}

.hero-scene__cloud--3 {
  display: none;
}

/* ==============================
   Планшеты (>= 768px)
   ============================== */
@media (min-width: 768px) {

  /* Показываем все элементы анимации на планшетах */
  .hero-scene__firefly--5,
  .hero-scene__firefly--6,
  .hero-scene__firefly--7 {
    display: block;
  }

  .hero-scene__cloud--3 {
    display: block;
  }

  /* Увеличенные размеры шрифтов */
  :root {
    --fs-h1: 2.5rem;
    --fs-h2: 2rem;
    --fs-h3: 1.625rem;
    --fs-h4: 1.25rem;
    --container-padding: 1.5rem;
  }

  /* Hero */
  .hero {
    min-height: 90vh;
  }

  .hero__title {
    font-size: 3rem;
  }

  .hero__subtitle {
    font-size: 1.25rem;
  }

  /* Teaser — 2 колонки */
  .teaser__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Галерея — 2 колонки */
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Карточки — 2 колонки */
  .works__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Ссылки — 2 колонки */
  .links-page__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Наследие — книги 2 колонки */
  .legacy__books-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Контакты — 2 колонки */
  .contacts__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Видео — 2 колонки */
  .media-page__video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer — 3 колонки */
  .footer__inner {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Таймлайн — линия по центру */
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-item {
    width: 50%;
    padding-left: 0;
  }

  /* Чётные элементы — слева */
  .timeline-item:nth-child(odd) {
    padding-right: 40px;
    text-align: right;
  }

  .timeline-item:nth-child(odd) .timeline-item__marker {
    left: auto;
    right: -11px;
  }

  .timeline-item:nth-child(odd) .timeline-item__description {
    text-align: left;
  }

  /* Нечётные элементы — справа */
  .timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-left: 40px;
  }

  .timeline-item:nth-child(even) .timeline-item__marker {
    left: -11px;
  }

  /* Слайдер — увеличенная высота */
  .slider__slide-placeholder,
  .slider__slide-image {
    height: 450px;
  }

  /* Аватар биографии */
  .biography__avatar {
    width: 220px;
    height: 220px;
  }
}

/* ==============================
   Десктоп (>= 1024px)
   ============================== */
@media (min-width: 1024px) {

  /* Ещё больше шрифты */
  :root {
    --fs-h1: 3rem;
    --fs-h2: 2.25rem;
    --fs-h3: 1.75rem;
    --container-padding: 2rem;
    --header-height: 70px;
  }

  /* Бургер скрыт */
  .burger {
    display: none;
  }

  /* Навигация — горизонтальное меню */
  .nav {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    overflow: visible;
  }

  .nav__list {
    flex-direction: row;
    gap: var(--spacing-xs);
  }

  .nav__link {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--fs-small);
    white-space: nowrap;
  }

  /* Оверлей не нужен */
  .nav-overlay {
    display: none !important;
  }

  /* Hero */
  .hero__title {
    font-size: 3.5rem;
  }

  .hero__subtitle {
    font-size: 1.375rem;
  }

  /* Teaser — 3 колонки */
  .teaser__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Галерея — 3 колонки */
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Карточки — 3 колонки */
  .works__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Ссылки — 3 колонки */
  .links-page__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Наследие — книги 3 колонки */
  .legacy__books-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Видео — 3 колонки */
  .media-page__video-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Слайдер — увеличенная высота */
  .slider__slide-placeholder,
  .slider__slide-image {
    height: 500px;
  }
}

/* ==============================
   Большие экраны (>= 1280px)
   ============================== */
@media (min-width: 1280px) {
  :root {
    --fs-h1: 3.5rem;
    --fs-h2: 2.5rem;
  }

  .hero__title {
    font-size: 4rem;
  }
}
