/* Unbounded, self-hosted. Только cyrillic / cyrillic-ext / latin.
   Источник: Google Fonts, лицензия OFL.

/* ==========================================================================
   NEBODANCE · theme-2026-concept.css  (v3)
   Концепт «редакционный 2026» — ТОЛЬКО для /preview.php.
   1) Пара шрифтов: Unbounded (дисплейный) + Onest (текст)
   2) Hero: полноэкранное фото с наложением
   3) Нумерация секций
   4) Педагоги: bento-сетка на десктопе
   5) Новости: одна большая + сетка
   6) Мягкий параллакс фото в hero
   ========================================================================== */

:root{
  --c-display: 'Unbounded', 'Onest', sans-serif;
}

/* ---------- 1. Дисплейная типографика ---------- */
.hero-title,
.section-title,
.hero-stat-number,
.gallery-title{
  font-family: var(--c-display) !important;
}

.hero-title{ letter-spacing: -.03em !important; }

/* ---------- 2. Нумерация секций ---------- */
.landing-main{ counter-reset: sec; }
.landing-main > section{ counter-increment: sec; }
.landing-main > section.groups-section-hidden,
.landing-main > section.yandex-badge-section{ counter-increment: none; }

.section-header .section-tag::before{
  content: counter(sec, decimal-leading-zero) " / ";
  font-variant-numeric: tabular-nums;
  letter-spacing: .1em;
  opacity: .55;
}

/* ---------- 3. Hero на десктопе: фото во весь экран ---------- */
@media (min-width: 900px){
  .hero-section{
    position: relative;
    min-height: min(84vh, 860px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding-block: 0 !important;
  }
  .hero-container{
    position: static !important;
    z-index: auto;
    display: block !important;
    padding-block: clamp(36px, 5vw, 80px) clamp(36px, 4.5vw, 64px);
    max-width: 1280px;
  }
  .hero-visual{
    position: absolute !important;
    inset: 0 !important;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  .hero-card{
    height: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: hidden;
  }
  .hero-card-media{ height: 100% !important; overflow: hidden; }
  .hero-card-media img{
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    max-height: none !important;
    object-fit: cover;
    border-radius: 0 !important;
    will-change: transform;
    transform: scale(1.06);
  }
  .hero-visual::after{
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(to top, rgba(6,6,10,.88) 0%, rgba(6,6,10,.48) 34%, rgba(6,6,10,.04) 100%),
      linear-gradient(to right, rgba(6,6,10,.62) 0%, rgba(6,6,10,0) 55%);
  }
  .hero-card-stats{ display: none !important; }
  .hero-content{ position: relative; z-index: 3; max-width: min(880px, 68%); }
  .hero-title{
    color: #fff !important;
    font-size: clamp(2.5rem, 5.1vw, 5.4rem) !important;
    line-height: 1.02 !important;
    font-weight: 600 !important;
  }
  .hero-title--gradient{ color: #7ee7f7 !important; }
  .hero-title, .hero-subtitle, .hero-stat-number, .hero-stat-label{
    text-shadow: 0 2px 24px rgba(4,6,12,.55), 0 1px 3px rgba(4,6,12,.35);
  }
  .hero-subtitle{ color: rgba(255,255,255,.8) !important; }
  .hero-stats{ border-top-color: rgba(255,255,255,.24) !important; }
  .hero-stat-item{ border-right-color: rgba(255,255,255,.2) !important; }
  .hero-stat-number{ color: #fff !important; }
  .hero-stat-label{ color: rgba(255,255,255,.62) !important; }
  .hero-actions .btn--glass{
    color: #fff !important;
    border-color: rgba(255,255,255,.55) !important;
    background: rgba(255,255,255,.06) !important;
  }
}

/* ---------- 4. Hero на телефоне: фото от края до края ---------- */
@media (max-width: 899px){
  /* шапка на телефоне: фото во всю ширину окна.
     Убираем padding контейнера и возвращаем его только тексту,
     иначе абсолютное/auto-позиционирование не даёт full-bleed. */
  .hero-section{ padding-inline: 0 !important; }
  .hero-container{
    padding-inline: 0 !important;
    display: block !important;
  }
  .hero-visual{
    margin: 0 !important;
    width: 100% !important;
  }
  .hero-card{
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
  }
  .hero-card-media img{
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    max-height: 300px;
    object-fit: cover;
    border-radius: 0 !important;
  }
  .hero-card-stats{ display: none !important; }
  /* текст снова с отступами */
  .hero-content{ padding-inline: var(--t-gutter); }
  .hero-title{ font-size: clamp(1.9rem, 8.2vw, 3.4rem) !important; }
}

/* ---------- 5. Типографика секций ---------- */
@media (min-width: 900px){
  .section-title{
    font-size: clamp(1.9rem, 3.1vw, 3.1rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -.02em !important;
    font-weight: 600 !important;
  }
  .section-subtitle{ font-size: 1.06rem !important; max-width: 62ch; }
  .section-header{ margin-bottom: clamp(34px, 4.4vw, 62px); }
}

/* ---------- 6. Педагоги: bento 4 колонки с «широкими» карточками ---------- */
@media (min-width: 900px){
  .teachers-grid{
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .teacher-tab{ padding: 18px !important; gap: 14px !important; }
  .teacher-tab:nth-child(1),
  .teacher-tab:nth-child(4),
  .teacher-tab:nth-child(5),
  .teacher-tab:nth-child(8){
    grid-column: span 2;
    background: var(--t-surface-2) !important;
  }
  .teacher-tab-avatar img{
    width: 64px !important;
    height: 64px !important;
    border-radius: 18px !important;
  }
  .teacher-tab:nth-child(1) .teacher-tab-avatar img,
  .teacher-tab:nth-child(4) .teacher-tab-avatar img,
  .teacher-tab:nth-child(5) .teacher-tab-avatar img,
  .teacher-tab:nth-child(8) .teacher-tab-avatar img{
    width: 84px !important;
    height: 84px !important;
  }
  .teacher-tab:nth-child(1) .teacher-tab-name,
  .teacher-tab:nth-child(4) .teacher-tab-name,
  .teacher-tab:nth-child(5) .teacher-tab-name,
  .teacher-tab:nth-child(8) .teacher-tab-name{
    font-size: 1.12rem !important;
  }
}

/* ---------- 7. Новости: одна крупная + сетка ---------- */
@media (min-width: 900px){
  .vk-news-grid{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
    overflow: visible !important;
  }
  .vk-news-card{ flex: none !important; min-width: 0 !important; max-width: none !important; }
  .vk-news-card:first-child{
    grid-column: span 2;
    grid-row: span 2;
  }
  .vk-news-card:first-child .vk-news-media{ height: 100%; min-height: 300px; }
  .vk-news-card:first-child .vk-news-media img{ height: 100% !important; object-fit: cover; }
  .vk-news-card:first-child .vk-news-text{ font-size: 1.08rem !important; line-height: 1.5 !important; }
  /* на десктопе анимация появления не должна ломать сетку */
  .vk-news-card{ opacity: 1 !important; transform: none !important; }
}

/* ---------- 8. Расписание: время заметнее ---------- */
@media (min-width: 900px){
  .card-badge{
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: -.01em;
    padding: 6px 12px !important;
    border-radius: 10px !important;
  }
}
