
/* Variables */

:root {
    --basic-red: #d40a0a;
    --basic-green: #08AA08; 
    --basic-black: #1a191f; 
    --basic-blue: #025353; 
    --basic-white: #ffffff;
    
  }

  html {
    scroll-behavior: smooth;
  }

body {
    color: var(--basic-black);
    font-family: "PT Sans", sans-serif;
    font-size: 16px;
    line-height: 28px;
}


header {
    display: none;
    position: fixed;
    width: 100%;
    height: 100px;
    z-index: 10;
    background-color: var(--basic-white);
    border-bottom: 2px solid var(--basic-red);
}

a {
    text-decoration: none;
}

ul {
    padding-left: 0;
}

li {
    list-style: none;
}

a:hover {
    opacity: 0.5;
    transition: 1ms;
    cursor: pointer;
}

h2 {
    margin: 0;
    padding-top: 20px;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    text-transform: uppercase;
    color: #d40a0a;
    font-size: 52px;
    line-height: 75px;
    font-weight: 700;
    text-align: center;
}

h3 {
    color: var(--basic-black);
    font-size: 18px;
    margin-bottom: 10px;
    text-transform: none;
}

nav {
    padding-top: 10px;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    text-transform: uppercase;
}

nav ul li {
    margin-right: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--basic-red);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.container {
    width: 1170px;
    margin: 0 auto; 
}



.header-content {
    display: flex;
    padding-top: 20px;
    justify-content: space-between;
}

.brand {
    width: 300px;
    height: 100px;
    background-image: url('../img/logo.png');
    background-repeat: no-repeat;
    background-size: contain;
}

.header-nav {
    display: flex;
}

/* Бургер меню */

/* Стили бургер-меню */
.burger-menu {
    display: block;
    position: relative;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    margin-right: 20px;
  }
  
  .burger-menu span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background-color: #d40a0a;
    border-radius: 3px;
    transition: all 0.3s ease;
  }
  
  .burger-menu span:nth-child(1) { top: 2px; }
  .burger-menu span:nth-child(2) { top: 10px; }
  .burger-menu span:nth-child(3) { top: 18px; }
  
  
  /* Стили навигационного меню */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    padding: 80px 20px 20px;
    transition: right 0.4s ease;
    z-index: 1000;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
  }
  
  .nav-menu ul {
    list-style: none;
  }
  
  .nav-menu li {
    margin-bottom: 20px;
  }
  
  .nav-menu a {
    text-decoration: none;
    color: #d40a0a;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
  }
  
  .nav-menu a:hover {
    color: #b00808;
  }
  
  /* Кнопка закрытия */
  .close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 36px;
    color: #d40a0a;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease;
  }
  
  .close-menu:hover {
    transform: scale(1.2);
  }
  
  /* Меню открыто */
  .nav-menu.active {
    right: 0;
  }

  @media (min-width: 1024px) {
    .burger-menu {
      display: none;
    }
    
    .nav-menu {
        display: none;
      position: static;
      width: auto;
      height: auto;
      background: none;
      padding: 0;
      right: auto;
      box-shadow: none;
      transition: none;
    }
    
    .nav-menu ul {
      display: flex;
      gap: 30px;
    }
    
    .close-menu {
      display: none;
    }
  }

#promo {
 padding: 0;
 height: auto; 
 margin-bottom: 30px;
}

.video {
    position: relative;
    height: 750px;
    overflow: hidden;
    box-sizing: border-box;
}

video {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -10;
    width: 100%;
    height: auto;
}

.video-text {
   width: 100%;
   height: 750px;
   background-color: rgba(0, 0, 0, 0.6);
   text-align-last: justify;
   box-sizing: border-box;
}

.video-text-head {
    padding-top: 120px;
    font-family: "Roboto", sans-serif;
    font-size: 80px;
    line-height: 100px;
    font-weight: 700;
    color: var(--basic-white);
    letter-spacing: 5px;
    margin: 0 auto 10px;
}

.video-text-lead {
    font-size: 48px;
    font-weight: 700;
    color: var(--basic-red);
    line-height: 52px;
    margin-bottom: 20px;
    letter-spacing: 5px;
}

.video-text-description {
    font-size: 20px;
    color: var(--basic-white);
    line-height: 36px;
    text-transform: uppercase;  
    text-align: justify;
}


.video-button {
    display: block;
    margin: 160px auto 0;
    width: 320px;
    padding: 30px 0;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--basic-white);
    background-color: #d40a0a;
    text-align-last: center;
    border-radius: 20px;
    color: var(--basic-white);
}

.video-button a {
    color: var(--basic-white);
}



.infinite-marquee {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-content {
  display: inline-block;
  position: relative;
  padding-top: 30px;
  text-transform: uppercase;
  animation: infinite-marquee 20s linear infinite;
  font-size: 30px;
}

.marquee-img {
    width: 33px;
    height: 40px;
}

/* Дублируем контент для бесшовного эффекта  */
.marquee-content::after {
  content: "Уникальная платформа для детей, родителей и профессионалов индустрии";
}


@keyframes infinite-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%); /* Сдвигаем на половину ширины дублированного контента */
  }
}



#about {
    scroll-margin-top: 100px;
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 20px; 
    line-height: 28px;
    font-weight: 400;
    box-sizing: border-box;
    border-bottom: 1px solid gray;
    box-sizing: border-box;
}

#mission {
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 32px; 
    line-height: 54px;
    font-weight: 400;
    box-sizing: border-box;
    border-bottom: 1px solid gray;
    text-align: center;
}


p.slogan {
    font-family: "Roboto", sans-serif;
    margin-bottom: 0;
    text-transform: uppercase;
    color: var(--basic-red);
    font-weight: 700;
    font-size: 24px;
}

.about-text {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-bottom: 20px;
}


.about-text div {
    width: 540px;
}

#program {
    scroll-margin-top: 100px;
    padding-top: 20px;
    border-top: 1px solid gray;
}

.program-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.program-list li {
    position: relative;
    width: 378px;
    height: 378px;
    margin-bottom: 14px;
    box-sizing: border-box;
    overflow: hidden;
}

.program-list li img {
    width: 100%;
    transition: transform 0.3s ease; /* Плавная анимация трансформации */
    transform: scale(1); /* Исходный размер */
}

.program-list li:hover img {
    transform: scale(1.1); /* Увеличение на 10 % */
  }

.program-list-text {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    padding: 0 20px 0 20px;
    color: var(--basic-white);
    background-color: rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

.program-list-text h3 {
    font-family: "Roboto", sans-serif;
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    color: var(--basic-white);
}

.program-list-text p {
    font-size: 18px;
}

.program-video {
    display: none;
}

.program-list li button {
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    width: 200px;
    height: 50px;
    color: var(--basic-white);
    text-transform: uppercase;
    font-weight: 700;
    background-color: var(--basic-red);
    border: 0;
    cursor: pointer;
}

.program-list li button:hover {
    opacity: 0.7;
}

#parents {
    padding-top: 10px;
    font-size: 20px;
    border-bottom: 1px solid gray;
}

#professionals {
    padding-top: 20px;
    font-size: 20px;
    border-bottom: 1px solid gray;
}


#partner {
    scroll-margin-top: 100px;
    padding: 20px 0 40px;
    margin: 0 auto;
}

.partner-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.partner-content li {
    width: 320px;
    height: 320px;
    text-align: center;
    height: 400px;
    box-sizing: border-box;
    border: 1px solid gray;
    border-radius: 20px;
}

.partner-content li:nth-child(2) div {
    padding-top: 40px;
    box-sizing: border-box;
}

.partner-content li:nth-child(3) div {
    padding: 40px 30px;
    box-sizing: border-box;
}

.partner-content li div {
    height: 256px;
}

#contact {
    padding-top: 20px;
    padding-bottom: 40px;
    border-top: 1px solid gray;
}

.contact-mail {
    color: var(--basic-red);
    font-weight: 700;
}

footer {
    height: auto;
    border-top: 1px solid gray;
    padding-top: 40px;
    text-align: center;
    font-weight: 700;
    color: var(--basic-white);
    background-color: var(--basic-red);
    padding: 30px 0;
    box-sizing: border-box;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    box-sizing: border-box;
}

.footer-content div {
    width: 520px;
    text-align: left;
}

footer a {
    color: var(--basic-white);
}

footer a:hover {
    text-decoration: none;
}


    /* The Modal (background) */
    .modal {
        display: none;
        /* Hidden by default */
        position: fixed;
        /* Stay in place */
        z-index: 30;
        /* Sit on top */
        padding-top: 100px;
        /* Location of the box */
        left: 0;
        top: 0;
        width: 100%;
        /* Full width */
        height: 100%;
        /* Full height */
        overflow: auto;
        /* Enable scroll if needed */
        background-color: rgb(0, 0, 0);
        /* Fallback color */
        background-color: rgba(0, 0, 0, 0.9);
        /* Black w/ opacity */
    }

    /* Modal Content (Image) */
    .modal-content {
        margin: auto;
        display: block;
        width: 80%;
        max-width: 700px;
    }

    /* Caption of Modal Image (Image Text) - Same Width as the Image */
    .modal-caption {
        margin: auto;
        display: block;
        width: 80%;
        max-width: 700px;
        text-align: center;
        color: #ccc;
        padding: 10px 0;
        height: 150px;
    }

    /* Add Animation - Zoom in the Modal */
    .modal-content,
    .modal-caption {
        animation-name: zoom;
        animation-duration: 0.6s;
    }

    @keyframes zoom {
        from {
            transform: scale(0)
        }

        to {
            transform: scale(1)
        }
    }

    /* The Close Button */
    .close {
        position: absolute;
        top: 15px;
        right: 35px;
        color: #f1f1f1;
        font-size: 40px;
        font-weight: bold;
        transition: 0.3s;
    }

    .close:hover,
    .close:focus {
        color: #bbb;
        text-decoration: none;
        cursor: pointer;
    }

    /* 100% Image Width on Smaller Screens */
    @media only screen and (max-width: 700px) {
        .modal-content {
            width: 100%;
        }
    }

.video-modal {
    width: 760px;
    height: 427px;
    margin: 0 auto;
}

.shown {
    display: block;
} 



@media (min-width: 1024px) and (max-width: 1200px) {

    .container {
        width: 1024px;
    }

    img {
        width: 100%;
    }

    h2 {
        font-size: 48px;
    }


    .video-text {
        text-align: left;
        padding-left: 40px;
    }

    .video-text-head {
        width: 600px;
        margin: 0;
        font-size: 48px;
        line-height: 64px;
        text-align: left;
        letter-spacing: normal;
    }

    .video-text-lead {
        width: 700px;
        margin: 10px 0;
        font-size: 36px;
        line-height: 52px;
        text-align: left;
        text-align-last: left;
        letter-spacing: normal;
    }

    .video-text-description {
        width: 500px;
        margin: 0;
        font-size: 24px;
        line-height: 48px;
        text-align: left;
        text-align-last: left;
        letter-spacing: normal;
    }

    .video-button {
        margin-left: 0;
    }

    video {
          width: auto;
          height: 900px;
    }

    .about-text div {
        width: 100%;
        padding: 0 40px;
        font-size: 24px;
        line-height: 36px;
    }

    #mission {
        padding: 20px 40px;
    }

    #mission p {   
        font-size: 24px;
        line-height: 36px;
        text-align: center;
    }

    #program {
        padding: 20px 40px;
        box-sizing: border-box;
    }

    .program-list li {
        width: 450px;
        height: 450px;
        margin-bottom: 30px;
    }

    .partner-content {
        padding: 0 40px;
    }

    .partner-content li {
        width: 300px;
        height: 410px;
        padding: 10px;
    }

    .partner-content li img {
        width: 90%;
    }

    .footer-content {
        padding: 0 40px;

    }

    .footer-content div {
        width: 460px;
    }

} 

@media (min-width: 768px) and (max-width: 1023px) {

    .container {
        width: 768px;
    }

    h2 {
        font-size: 36px;
        line-height: 54px;
    }

    .header-nav {
        display: none;
    }

    .video-text {
        text-align: left;
        padding-left: 40px;
    }

    .video-text-head {
        width: 600px;
        margin: 0;
        font-size: 48px;
        line-height: 64px;
        text-align: left;
        letter-spacing: normal;
    }

    .video-text-lead {
        width: 700px;
        margin: 10px 0;
        font-size: 36px;
        line-height: 52px;
        text-align: left;
        text-align-last: left;
        letter-spacing: normal;
    }

    .video-text-description {
        width: 500px;
        margin: 0;
        font-size: 24px;
        line-height: 48px;
        text-align: left;
        text-align-last: left;
        letter-spacing: normal;
    }

    .video-button {
        margin-left: 0;
    }


    video {
        width: auto;
        height: 900px;
  }


  .about-text div {
    width: 100%;
    padding: 0 40px;
    font-size: 24px;
    line-height: 36px;
}

#program {
    padding: 20px 40px;
    box-sizing: border-box;
}

.program-list li {
    width: 330px;
    height: 330px;
    margin-bottom: 30px;
}

.partner-content {
    padding: 0 40px;
}

.partner-content li {
    width: 330px;
    height: 400px;
    padding: 10px;
    margin-bottom: 30px;
}

.partner-content li img {
    width: 90%;
}

.footer-content {
    padding: 0 40px;
}

.footer-content div {
    width: 100%;
    margin-bottom: 20px;
    font-size: 18px;
}

}


@media (min-width: 320px) and (max-width: 767px) {
    
    .header-nav {
        display: none;
    }

    .container {
        width: 320px;
    }   

    .brand {
        width: 250px;
        height: 83px;
    }

    .burger-menu {
        margin-top: 18px;
    }

    h2 {
        font-size: 24px;
        line-height: 36px;
        text-align: left;
        text-align-last: left;
    }
    
    .video-text {
        text-align: left;
        padding-left: 40px;
    }

    .video-text-head {
        width: 300px;
        margin: 0;
        padding-top: 100px;
        font-size: 36px;
        line-height: 54px;
        text-align: left;
        text-align-last: left;
        letter-spacing: normal;
    }

    .video-text-lead {
        width: 300px;
        margin: 20px 0;
        font-size: 24px;
        line-height: 36px;
        text-align: left;
        text-align-last: left;
        letter-spacing: normal;
    }

    .video-text-description {
        width: 300px;
        margin: 0;
        font-size: 18px;
        line-height: 26px;
        text-align: left;
        text-align-last: left;
        letter-spacing: normal;
    }

    .video-button {
        margin-left: 0;
    }


    video {
        width: auto;
        height: 900px;
  }

  #mission {
    font-size: 20px;
    line-height: 28px;
    text-align: left;
  }

  #program {
    padding: 20px 0;
    box-sizing: border-box;
}

.program-list li {
    width: 320px;
    height: 400px;
    margin-bottom: 30px;
    box-sizing: border-box;
    overflow: hidden;
}

.program-list li img {
   width: 400px;
   height: 400px;
}

.partner-content li {
    width: 320px;
    height: 400px;
    padding: 10px;
    margin-bottom: 20px;
}

#parents {
    padding-top: 0;
}

.video-modal {
    width: 320px;
    height: 180px;
}

}

