/* style.css */
:root{
--bg-1: #071029;
--bg-2: #0f1b2b;
--glass: rgba(255,255,255,0.04);
--accent: #FF5C00;
--muted: #9fb0d6;
--card: rgba(255,255,255,0.02);
--radius: 14px;
--container: 1200px;
--space: 24px;
--header-height: 76px;
}


*{box-sizing:border-box}
body{
margin:0;
font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial;
background:linear-gradient(180deg,var(--bg-1),var(--bg-2));
color: #e7f0ff;
-webkit-font-smoothing:antialiased;
-moz-osx-font-smoothing:grayscale;
}
.container{max-width:var(--container);margin:0 auto;padding:0 20px}
.skip-link{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-link:focus{left:20px;top:20px;width:auto;height:auto;background:#fff;padding:8px;border-radius:6px;color:#000}


/* Header */
.site-header{position:fixed;inset:0 auto auto 0;width:100%;z-index:100;background:linear-gradient(180deg,rgba(3,10,18,0.6),transparent);backdrop-filter:blur(6px);height: var(--header-height);}
.header-inner{display:flex;align-items:center;justify-content:center;padding:14px 20px;height: 100%; gap: 15%;}
.logo img{height:48px}
.nav ul{display:flex;gap:18px;list-style:none; margin: 0; padding: 0;}
.nav a{color:var(--muted);text-decoration:none;font-weight:600;padding:8px;border-radius:8px;transition: color 0.2s ease;}
.nav a:hover{color:var(--accent)}
.hamburger{display:none;background:none;border:0;padding:8px;cursor:pointer; z-index: 101;}
.hamburger span{display:block;width:22px;height:2px;background:var(--muted);margin:4px 0;border-radius:2px; transition: transform 0.3s, opacity 0.3s;}




/* HERO */
.hero {
  min-height: 100vh; /* на всю высоту экрана */
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
  background: url("img/hero-bg.jpg") center/cover no-repeat;
  
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7,16,41,0.65) 0%,
    rgba(15,27,43,0.65) 100%
  );
  z-index: 2; /* затемнение поверх фото */
}


.hero-bg{position:absolute;inset:0;background:radial-gradient(600px 300px at 10% 20%,rgba(251,226,64,0.06),transparent 10%), radial-gradient(500px 300px at 90% 80%,rgba(0,150,255,0.03),transparent 15%);pointer-events:none}
.hero-inner{display: flex
;
    grid-template-columns: 160px 1fr 160px;
    gap: 24px;
    align-items: center;
    position: relative;
    z-index: 3;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: row;}
.hero-logo img{max-width:250px; }
.animated-gradient{
font-size:clamp(2.2rem,7vw,4.2rem);
line-height:1.02;
margin:0;
font-weight:800;
background:linear-gradient(90deg,var(--accent),#fff 70%,#9fd3ff);
-webkit-background-clip:text;background-clip:text;color:transparent;
background-size:200% 100%;
animation: gradient-slide 6s linear infinite;
}

.tutu{
   background:linear-gradient(90deg,rgba(251,226,64,0.08),transparent);border-radius:8px
}

@keyframes gradient-slide{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}
.accent{display:inline-block;color:var(--accent);border-radius:8px}
.lead{color:var(--muted);margin-top:10px;font-size:1.5rem; max-width: 500px;}
.hero-actions{margin-top:20px;display:flex;gap:12px; flex-wrap: wrap;}
.btn{display:inline-flex;align-items:center;gap:10px;padding:12px 18px;border-radius:12px;text-decoration:none;font-weight:700; transition: transform 0.2s ease; color: #fff;}
.btn-primary {
  background: linear-gradient(90deg, var(--accent), #ffd86b);
  color: #071029;
  box-shadow: 0 6px 30px rgba(251, 226, 64, 0.15);

  /* 1. Увеличиваем размер фона, чтобы было куда двигаться */
  background-size: 200% auto;
  
  /* 2. Добавляем плавный переход, включая background-position */
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-position 0.4s ease;
}

/* --- Эффект при наведении --- */
.btn-primary:hover {
  /* 3. Сдвигаем фон, чтобы проявить другую часть градиента */
  background-position: right center;

  
  box-shadow: 0 10px 40px rgba(251, 226, 64, 0.25);
}
.btn-ghost{background:transparent;border:1px solid rgba(255,255,255,0.06);color:var(--muted)}

.btn-ghost:hover{background:var(--glass);color:#fff;box-shadow:0 6px 30px rgba(251,226,64,0.12)}

.orb{width:96px;height:96px;border-radius:50%;background:conic-gradient(from 120deg,#0ff2, rgba(251,226,64,0.12));filter:blur(18px);transform:translateZ(0) ; z-index: 15;}


.scroll-down{
  position:absolute;
  left:50%;
  transform:translateX(-50%); /* Это свойство будет управляться анимацией */
  bottom:22px;
  text-decoration:none; 
  z-index: 5;
  /* Добавляем анимацию */
  animation: pulse 2s infinite ease-in-out;
}
.chev{display:block;width:28px;height:28px;border-left:10px solid var(--accent);border-bottom:10px solid var(--accent);transform:rotate(-45deg);animation:chev 1.6s infinite} .chev:hover{border-color:#fff}
@keyframes chev{0%{transform:translateY(0) rotate(-45deg)}50%{transform:translateY(-10px) rotate(-45deg)}100%{transform:translateY(0) rotate(-45deg)}}


/* ticker */
.ticker-wrap {
  overflow: hidden; /* Обязательно скрываем все, что выходит за рамки */
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.ticker {
  display: flex; /* Выстраиваем оригинал и клон в линию */
  width: fit-content; /* Ширина равна содержимому */
  /* transform будет управляться через JS */
}

.ticker-track {
  display: flex;
  align-items: center;
  flex-shrink: 0; /* Запрещаем сжиматься */
  white-space: nowrap; /* Запрещаем перенос строк */
}

.ticker-track span {
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.95rem;
  padding: 0 18px;
}

/* sections */
section {
    padding: 60px 0;
}
.section-title {
  font-size: clamp(1.6rem,3vw,3.4rem);
  text-align:center;
  margin:0 0 6px
}
.section-sub {
  text-align:center;
  color:var(--muted);
  max-width:820px;
  margin:0 auto 40px
}

/* partners */
.partners-section {
    padding-top: 40px;
    align-items:center;
  justify-content:center;
  flex-wrap:wrap
}
.logos {
  display:flex;
 
  align-items:center;
  justify-content:center;
  flex-wrap:wrap
}
.logo-item img {
  height:150px;
  filter:grayscale(10%) contrast(0.9);
  opacity:0.9;
  transition:filter .25s,transform .25s
}
.logo-item img:hover {
  filter:none;
  transform:scale(1.5)
}

.logo-itemn img {
  height:80px;
  filter:grayscale(10%) contrast(0.9);
  
  transition:filter .25s,transform .25s
}
.logo-itemn img:hover {
  filter:none;
  transform:translateY(-6px)
}

/* about */
.about-inner {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
  align-items:center
}
.video-thumb {
  position:relative;
  border-radius:16px;
  overflow:hidden
}
.video-thumb img {
  width:100%;
  height:auto;
  display:block;
  object-fit:cover
}
.play-cta {
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  background:var(--accent);
  border-radius:999px;
  padding:18px;
  border:none;
  box-shadow:0 12px 40px rgba(251,226,64,0.12);
  cursor:pointer
}
.about-list {
  margin-top:18px;
  color:var(--muted);
  list-style:none;
  padding-left:0
}
.about-list li { margin:8px 0 }

/* info grid */
.grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:18px
}
.info-card {
  background:linear-gradient(180deg,rgba(255,255,255,0.02),transparent);
  padding:22px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.03);
  text-align:center;
  backdrop-filter:blur(4px)
}
.info-card:hover {
  box-shadow:0 12px 40px #FF5C00;
  transform:translateY(-4px);
  transition:transform 0.3s ease,box-shadow 0.3s ease;
  
}


.info-card i {
  font-size:28px;
  color:var(--accent);
  display:block;
  margin-bottom:12px
}
.info-card h4 { margin:0 0 8px }
.info-card p  { color:var(--muted) }

/* footer */
.site-footer {
  padding:28px 0;
  margin-top:40px;
  border-top:1px solid rgba(255,255,255,0.03)
}
.footer-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px
}

.social-links a {
  color:var(--muted);
  margin-left:12px;
  transition: color 0.2s ease;
    font-size: 2.2rem;
}
.social-links a:hover {
  color: var(--accent);
}

/* reveal helper */
.reveal {
  opacity:0;
  transform:translateY(24px);
  will-change:transform,opacity;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}


/* ====== RESPONSIVE ====== */
@media (max-width:900px) {
  section {
    padding: 40px 0;
  }
  
  /* --- MOBILE HERO SECTION --- */
  .nav-links li a{
    font-size: 0.9rem;
  }
.logo-item img{
    height:65px;
    filter:grayscale(10%) contrast(0.9);
}
  .hero-center{
     padding-left: 5%;
  }

  .about-inner { 
    grid-template-columns:1fr 
  }

  /* --- MOBILE NAVIGATION --- */
  
  


  .footer-inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion:reduce) {
  .animated-gradient, .orb, .ticker, .chev, .btn-primary, .reveal, .nav { 
    animation:none;
    transition: none;
  }
}


@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* --- СТИЛИ ДЛЯ СЕКЦИИ О КОРПУСЕ С ВИДЕО --- */
.about-section {
    padding: 120px 0;
    /* Убрал фоновую картинку с секции, так как она теперь в превью */
}
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две колонки: текст и видео */
    gap: 60px;
    align-items: center;
}
.text-block {
    margin-bottom: 3rem;
}
.text-block:last-child {
    margin-bottom: 0;
}
.text-block h3 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.3;
}
.text-block p {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.7;
}

/* Стили для превью видео */
.video-thumb {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.video-thumb::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(0deg, rgba(10, 25, 47, 0.6) 0%, rgba(10, 25, 47, 0.2) 100%);
    transition: background-color 0.3s ease;
}
.video-thumb:hover::before {
    background-color: rgba(10, 25, 47, 0.2);
}
.video-thumb img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}
.video-thumb:hover img {
    transform: scale(1.05);
}
.play-cta {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 80px;
    height: 80px;
    background-color: #12538C; /* Полупрозрачный желтый */
    color: var(--dark-blue);
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.6s ease, background-color 0.6s ease;
}
.video-thumb:hover .play-cta {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: #FF5C00;
}

/* --- СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА --- */

.video-wrapper {
    position: relative;
    /* Этот трюк задает соотношение сторон 16:9 */
    padding-bottom: 56.25%; 
    height: 0;
    background-color: #000; /* Черный фон на случай, если видео долго грузится */
}

/* САМОЕ ГЛАВНОЕ: Стили для тега <video> внутри обертки */
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Остальные стили для модального окна (вероятно, у вас уже есть похожие) */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 960px;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.video-modal.is-open .modal-content {
    transform: scale(1);
}

.close-modal-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
}

/* Адаптивность для блока с видео */
@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr; /* Одна колонка на планшетах и мобильных */
    }
}










/* --- СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА ПРОГРАММЫ --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}
.modal.is-open {
    opacity: 1;
    visibility: visible;
}
.modal-dialog {
    background-color: #fff;
    color: #333;
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.modal.is-open .modal-dialog {
    transform: scale(1);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    border-bottom: 1px solid #eee;
}
.modal-header h3 {
    font-size: 1.5rem;
    color: #0A192F; /* --dark-blue */
}
.close-modal-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #888;
}
.modal-body {
    padding: 25px;
    overflow-y: auto; /* Добавляем скролл, если контент не помещается */
}
.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #eee;
    text-align: right;
}

/* Стили для вкладок (табов) */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}
.tab-link {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    background-color: #f9f9f9;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
}
.tab-link:hover {
    background-color: #eee;
}
.tab-link.active {
    background-color: #0A192F; /* --dark-blue */
    color: #fff;
    border-color: #0A192F;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.tab-content h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* Стили для таблицы с расписанием */
.program-table {
    width: 100%;
    border-collapse: collapse;
}
.program-table th, .program-table td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
    vertical-align: top;
}
.program-table th {
    background-color: #f2f2f2;
    font-weight: 900;
}
.program-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.program-table small {
    display: block;
    margin-top: 5px;
    color: #777;
    font-style: italic;
}

@media (max-width: 768px) {

    /* 1. Скрываем стандартные заголовки таблицы */
    .program-table thead {
        display: none;
    }

    /* 2. Превращаем каждую строку таблицы в отдельную карточку */
    .program-table tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    /* 3. Каждую ячейку превращаем в блок, который занимает всю ширину */
    .program-table td {
        display: block;
        text-align: right; /* Выравниваем контент ячейки по правому краю */
        border: none;
        border-bottom: 1px solid #eee;
        padding-left: 50%; /* Оставляем место слева для "заголовка" */
        position: relative;
    }
    
    .program-table td:last-child {
        border-bottom: none; /* Убираем границу у последней ячейки в карточке */
    }

    /* 4. САМОЕ ГЛАВНОЕ: создаем псевдо-заголовки для каждой ячейки */
    .program-table td::before {
        content: attr(data-label); /* Берем текст из data-атрибута (добавим его в JS) */
        position: absolute;
        left: 15px;
        font-weight: 700;
        color: #333;
        text-align: left;
    }

    /* 5. Улучшаем внешний вид вкладок на мобильных */
    .tabs {
        justify-content: center; /* Центрируем вкладки */
    }
    .tab-link {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}


.intro-actions{

  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 20px;
  display: flex;
}
.btn-secondary {
  background: linear-gradient(90deg, var(--accent), #ffd86b);
  color: #071029;
  box-shadow: 0 6px 30px rgba(251, 226, 64, 0.15);
  font-size: 1.2rem;
   cursor: pointer;
  /* 1. Увеличиваем размер фона, чтобы было куда двигаться */
  background-size: 200% auto;
  border: none;
  /* 2. Добавляем плавный переход, включая background-position */
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-position 0.4s ease;
}

/* --- Эффект при наведении --- */
.btn-secondary:hover {
  /* 3. Сдвигаем фон, чтобы проявить другую часть градиента */
  background-position: right center;

  
  box-shadow: 0 10px 40px rgba(251, 226, 64, 0.25);
}


.btn-secondaryq {
  background: linear-gradient(90deg, var(--accent), #ff1900);
  color: #071029;
  box-shadow: 0 6px 30px rgba(251, 226, 64, 0.15);
  font-size: 1.2rem;
   cursor: pointer;
  /* 1. Увеличиваем размер фона, чтобы было куда двигаться */
  background-size: 200% auto;
  border: none;
  /* 2. Добавляем плавный переход, включая background-position */
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-position 0.4s ease;
}

/* --- Эффект при наведении --- */
.btn-secondaryq:hover {
  /* 3. Сдвигаем фон, чтобы проявить другую часть градиента */
  background-position: right center;

  
  box-shadow: 0 10px 40px rgba(251, 226, 64, 0.25);
}