/* Шрифты и дополнения*/
@font-face {
	font-family: 'RubikDirt';
	src: url('/fonts/RubikDirt-Regular.ttf');
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Основные блоки */
body{
    background-color: #B9DCF9;
    margin: 0;
    width: 100%;
}
main{
    min-height:900px;
    padding-top: 120px;
}
html {
  scroll-behavior: smooth;
}
hr{
    border: 1px solid white;
    margin:0;
}

/* Шапка сайта */
.menu_container{
    height: 80px;
    width: 100%;
    background-image: radial-gradient(#B9DCF9, #91CDFF);
    padding-top: 20px;
    padding-bottom: 20px;
    position: fixed;
    z-index: 11;
}
.menu{
    margin-left: 20px;
    margin-right: 20px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
}
.logo{
    width: 100%;
    height: 100%;
    transition: opacity 0.2s ease;
}
.logo_button{
    width: 230px;
    height: 100px;
    position: relative;
    display: inline-block;
}
.logo_button:hover img {
  opacity: 0;
}
.logo_button:hover{
    background: url(/images/logo_w.png) no-repeat 50% 50%;
    background-size: contain;
}
.nav_button{
    font-family: "RubikDirt";
    font-size: 24px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: black;
}
.nav_button:visited{
    color: black;
}
.nav_button:hover{
    color: white;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    font-size: 26px;
}
.nav_buttons_container_l{
    display: flex;
    justify-content: flex-end;
    gap: 60px;
    width: 500px;
}
.nav_buttons_container_r{
    display: flex;
    justify-content: flex-end;
    gap: 60px;
    width: 500px;
}

/* Тело сайта */
/* О нас */
.about_container {
    display: flex;
    justify-content: space-between;
    scroll-margin-top: 120px;
    gap: 40px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    align-items: center;
}
.about_container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    z-index: 0;
}
.about_text {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    width: 50%;
    font-size: 24px;
    line-height: 1.7;
    margin: 0;
    flex: 1;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    text-align: center;
    font-style: italic;
}
.about_container {
    animation: fadeInUp 0.8s ease-out;
}
.presentation-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}
.presentation-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Соотношение 16:9 */
    margin: 20px 0;
}
.presentation-wrapper iframe {
    top: 0;
    left: 0;
    width: 800px;
    height: 487px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Команда */
.team_container{
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-margin-top: 120px;
    padding-top: 20px;
}
.team_first_block{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.team_second_block{
    display: flex;
    align-items: center;
    gap: 100px;
    margin-top: 50px;
}
.team_third_block{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.team_title{
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
}
.team_container img:hover {
    transform: translateY(-5px) scale(1.02);
}
.team_main_img{
    width: 400px;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team_img{
    width: 300px;
    height: 350px;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team_text{
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    margin-top: 10px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 1);
}
.team_text_2{
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 0 10px #54b2ff;
    text-align: center;
    margin: 0;
    width: 500px;
}

/* Партнеры */
.marquee_title{
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
    margin-top: 100px;
    scroll-margin-top: 140px;
}
.marquee_container {
    background-color: #91CDFF;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 100px;
}

.marquee_track {
    display: flex;
    gap: 30px;
    position: relative;
    height: 200px;
    width: 100%;
    max-width: 1200px;
    justify-content: center;
}

.marquee_item {
    width: 220px;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: absolute;
    animation: carousel 18s infinite;
    background: white;
    opacity: 0;
}

/* Первая тройка картинок */
.marquee_item:nth-child(1) { 
    animation-delay: 0s; 
    left: calc(50% - 250px);
    transform: translateX(-50%);
}
.marquee_item:nth-child(2) { 
    animation-delay: 0s; 
    left: 50%;
    transform: translateX(-50%);
}
.marquee_item:nth-child(3) { 
    animation-delay: 0s; 
    left: calc(50% + 250px);
    transform: translateX(-50%);
}

/* Вторая тройка картинок */
.marquee_item:nth-child(4) { 
    animation-delay: 6s; 
    left: calc(50% - 250px);
    transform: translateX(-50%);
}
.marquee_item:nth-child(5) { 
    animation-delay: 6s; 
    left: 50%;
    transform: translateX(-50%);
}
.marquee_item:nth-child(6) { 
    animation-delay: 6s; 
    left: calc(50% + 250px);
    transform: translateX(-50%);
}

/* Третья тройка картинок */
.marquee_item:nth-child(7) { 
    animation-delay: 12s; 
    left: calc(50% - 250px);
    transform: translateX(-50%);
}
.marquee_item:nth-child(8) { 
    animation-delay: 12s; 
    left: 50%;
    transform: translateX(-50%);
}
.marquee_item:nth-child(9) { 
    animation-delay: 12s; 
    left: calc(50% + 250px);
    transform: translateX(-50%);
}

.marquee_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.marquee_item:hover img {
    transform: scale(1.15);
}

@keyframes carousel {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.8) rotateY(30deg);
        z-index: 1;
    }
    8% {
        opacity: 1;
        transform: translateX(-50%) scale(1) rotateY(0deg);
        z-index: 5;
    }
    25% {
        opacity: 1;
        transform: translateX(-50%) scale(1) rotateY(0deg);
        z-index: 5;
    }
    33% {
        opacity: 0;
        transform: translateX(-50%) scale(0.8) rotateY(-30deg);
        z-index: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) scale(0.8) rotateY(-30deg);
        z-index: 1;
    }
}

/* Документы */
.documents_container{
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-margin-top: 120px;
    margin-top: 20px;
}
.details_container{
    width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}
.details_title{
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 28px;
    font-weight: bold;
    font-style: italic;
    margin-bottom: 50px;
}
.details_table{
    border-top: 1px #54b2ff solid;
}
td{
    width: 400px;
    padding: 30px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 18px;
    border-bottom: 1px #54b2ff solid;
    text-align: center;
}
.details_td{
    font-weight: bold;
    border-right: 1px #54b2ff solid;
    text-align: left;
}

/* Контакты */
.info_container{
    display: flex;
    background-image: radial-gradient(#54b2ff, #82c7ff);
    padding-top: 100px;
    padding-bottom: 100px;
    scroll-margin-top: 120px;
}
.address_container{
    width: 50%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
}
.address_title{
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 28px;
    color: white;
    font-weight: bold;
}

.address_text{
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 24px;
    color: white;
    margin-bottom: 30px;
    margin-top: 0;
}

.contacts_container{
    width: 50%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.contacts_title{
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 28px;
    color: white;
    font-weight: bold;
    padding-bottom: 30px;
}

.contacts_text{
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 24px;
    color: white;
    margin-bottom: 40px;
    margin-top: 0;
    align-self: flex-start;
    text-decoration: none;
}
.social_text{
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 24px;
    color: white;
    margin-top: 0;
    text-decoration: none;
}
.social{
    margin-bottom: 30px;
    height: 40px;
    display: flex;
    text-align: center;
}
.social_logo{
    width: 30px;
    height: 30px;
}
.social_icon:hover{
    background-color: white;
    border-radius: 5px;
    transition: all 0.2s ease;
    padding: 5px;
}

/* Подвал сайта */
.footer_container{
    height: 120px;
    width: 100%;
    background-image: radial-gradient(#1d1d1d, #000000);
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer_text{
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 16px;
    color: white;
    margin-bottom: 20px;
}
.map{
    margin-bottom: 30px;
    background-color: white;
    padding: 10px;
}



/*СЛАЙДЕР КОД*/
.slider-container {
    position: relative;
    width: 100%;
    max-width: 610px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 100px;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider {
    display: flex;
    width: 700%;
    transition: transform 0.5s ease-in-out;
    height: 790px;
}

/* Скрываем радиокнопки */
.slide-radio {
    display: none;
}

/* Стили для слайдов */
.slide {
    position: relative;
    width: 14.2857%; /* 100% / 7 */
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Логика переключения слайдов */
#slide1:checked ~ .slider-wrapper .slider {
    transform: translateX(0%);
}
#slide2:checked ~ .slider-wrapper .slider {
    transform: translateX(-14.2857%);
}
#slide3:checked ~ .slider-wrapper .slider {
    transform: translateX(-28.5714%);
}
#slide4:checked ~ .slider-wrapper .slider {
    transform: translateX(-42.8571%);
}
#slide5:checked ~ .slider-wrapper .slider {
    transform: translateX(-57.1428%);
}
#slide6:checked ~ .slider-wrapper .slider {
    transform: translateX(-71.4285%);
}
#slide7:checked ~ .slider-wrapper .slider {
    transform: translateX(-85.7142%);
}

/* Эффекты для боковых слайдов */
#slide1:checked ~ .slider-wrapper .slide:nth-child(7) img,
#slide1:checked ~ .slider-wrapper .slide:nth-child(2) img,
#slide2:checked ~ .slider-wrapper .slide:nth-child(1) img,
#slide2:checked ~ .slider-wrapper .slide:nth-child(3) img,
#slide3:checked ~ .slider-wrapper .slide:nth-child(2) img,
#slide3:checked ~ .slider-wrapper .slide:nth-child(4) img,
#slide4:checked ~ .slider-wrapper .slide:nth-child(3) img,
#slide4:checked ~ .slider-wrapper .slide:nth-child(5) img,
#slide5:checked ~ .slider-wrapper .slide:nth-child(4) img,
#slide5:checked ~ .slider-wrapper .slide:nth-child(6) img,
#slide6:checked ~ .slider-wrapper .slide:nth-child(5) img,
#slide6:checked ~ .slider-wrapper .slide:nth-child(7) img,
#slide7:checked ~ .slider-wrapper .slide:nth-child(6) img,
#slide7:checked ~ .slider-wrapper .slide:nth-child(1) img {
    opacity: 0.4;
    filter: blur(2px);
    transform: scale(0.95);
}

/* Кнопки навигации */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: 60px;
    height: 60px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
}

.nav-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    left: 590px;
}

/* Упрощенная логика отображения кнопок */
.prev-btn,
.next-btn {
    display: block !important;
}

/* Правильные переходы для кнопок */
#slide1:checked ~ .prev-btn { opacity: 1; pointer-events: auto; }
#slide2:checked ~ .prev-btn { opacity: 1; pointer-events: auto; }
#slide3:checked ~ .prev-btn { opacity: 1; pointer-events: auto; }
#slide4:checked ~ .prev-btn { opacity: 1; pointer-events: auto; }
#slide5:checked ~ .prev-btn { opacity: 1; pointer-events: auto; }
#slide6:checked ~ .prev-btn { opacity: 1; pointer-events: auto; }
#slide7:checked ~ .prev-btn { opacity: 1; pointer-events: auto; }

#slide1:checked ~ .next-btn { opacity: 1; pointer-events: auto; }
#slide2:checked ~ .next-btn { opacity: 1; pointer-events: auto; }
#slide3:checked ~ .next-btn { opacity: 1; pointer-events: auto; }
#slide4:checked ~ .next-btn { opacity: 1; pointer-events: auto; }
#slide5:checked ~ .next-btn { opacity: 1; pointer-events: auto; }
#slide6:checked ~ .next-btn { opacity: 1; pointer-events: auto; }
#slide7:checked ~ .next-btn { opacity: 1; pointer-events: auto; }

/* Точки-индикаторы */
.dots-container {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.dot-label {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* Активная точка */
#slide1:checked ~ .dots-container .dot-label[for="slide1"],
#slide2:checked ~ .dots-container .dot-label[for="slide2"],
#slide3:checked ~ .dots-container .dot-label[for="slide3"],
#slide4:checked ~ .dots-container .dot-label[for="slide4"],
#slide5:checked ~ .dots-container .dot-label[for="slide5"],
#slide6:checked ~ .dots-container .dot-label[for="slide6"],
#slide7:checked ~ .dots-container .dot-label[for="slide7"] {
    background: #fff;
    transform: scale(1.2);
    border-color: #333;
}

.dot-label:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Счетчик - динамически меняется */
.counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10;
}

/* Скрываем все счетчики по умолчанию */
.counter-1,
.counter-2,
.counter-3,
.counter-4,
.counter-5,
.counter-6,
.counter-7 {
    display: none;
}

/* Показываем нужный счетчик в зависимости от активного слайда */
#slide1:checked ~ .counter-1,
#slide2:checked ~ .counter-2,
#slide3:checked ~ .counter-3,
#slide4:checked ~ .counter-4,
#slide5:checked ~ .counter-5,
#slide6:checked ~ .counter-6,
#slide7:checked ~ .counter-7 {
    display: block;
}


.events_container{
    display:flex;
    flex-direction: column;
    align-items: center;
    gap: 100px;
    margin-bottom: 100px;
}
.events_container_title{
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 40px;
    color: black;
    font-style: italic;
    font-weight: bold;
    text-align: center;
    margin-bottom: 50px;
}
.events_container_row{
    display: flex;
    gap: 150px;
}
.event_block{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.event_block_image{
    width: 600px;
    height: 400px;
    border: 5px solid #91CDFF;
    transition: all 0.2s ease;
}
.event_block_image:hover{
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}
.event_block_title{
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 30px;
    color: white;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    max-width: 600px;
    height: 70px;
    text-align: center;
}

.action_container{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.action_title{
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 40px;
    color: white;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    text-align: center;
}
.action_text{
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 25px;
    width: 80%;
    text-align: center;
    margin: auto;
}
.action_image{
    width: 800px;
    height: 600px;
    border: 5px solid #91CDFF;
    transition: all 0.2s ease;
    margin-bottom: 50px;
}

.action1_marquee_container {
    --marquee-item-width: 700px;
    --marquee-item-height: 500px;
    --marquee-gap: 40px;
    --marquee-animation-duration: 10s;

    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    justify-content: center;
    padding-bottom: 50px;
}
.action2_marquee_container {
    --marquee-item-width: 700px;
    --marquee-item-height: 500px;
    --marquee-gap: 40px;
    --marquee-animation-duration: 15s;

    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    justify-content: center;
    padding-bottom: 50px;
}
.action3_marquee_container {
    --marquee-item-width: 700px;
    --marquee-item-height: 500px;
    --marquee-gap: 40px;
    --marquee-animation-duration: 15s;

    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    justify-content: center;
    padding-bottom: 50px;
}
.action4_marquee_container {
    --marquee-item-width: 700px;
    --marquee-item-height: 500px;
    --marquee-gap: 40px;
    --marquee-animation-duration: 15s;

    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    justify-content: center;
    padding-bottom: 50px;
}

.action_marquee_track {
    display: flex;
    gap: var(--marquee-gap);
    position: relative;
    height: var(--marquee-item-height);
    width: 100%;
    max-width: 1200px;
    justify-content: center;
}

.action_marquee_item {
    width: var(--marquee-item-width);
    height: var(--marquee-item-height);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    animation: carousel var(--marquee-animation-duration) infinite;
    opacity: 0;
}

/* Правильное распределение задержек - каждый следующий элемент начинается после предыдущего */
.action_marquee_item {
    animation-delay: calc((var(--marquee-animation-duration) / var(--marquee-items-count)) * (var(--item-index) - 1));
}

.action_marquee_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.action_marquee_item:hover img {
    transform: scale(1.15);
}

/* Исправленная анимация - каждый элемент занимает свою временную полосу */
@keyframes carousel {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.8) rotateY(30deg);
        z-index: 1;
    }
    /* Появление */
    5% {
        opacity: 1;
        transform: translateX(-50%) scale(1) rotateY(0deg);
        z-index: calc(var(--marquee-items-count) + 1);
    }
    /* Длительность показа - зависит от количества элементов */
    30% {
        opacity: 1;
        transform: translateX(-50%) scale(1) rotateY(0deg);
        z-index: calc(var(--marquee-items-count) + 1);
    }
    /* Исчезновение */
    35% {
        opacity: 0;
        transform: translateX(-50%) scale(0.8) rotateY(-30deg);
        z-index: 1;
    }
    /* Ожидание следующего цикла */
    100% {
        opacity: 0;
        transform: translateX(-50%) scale(0.8) rotateY(-30deg);
        z-index: 1;
    }
}

.action_video_container_row{
    display: flex;
    gap: 100px;
    margin-bottom: 50px;
    margin-top: 20px;
}
.action_video_container_row_2{
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    margin-top: 20px;
}
.action_video{
    width: 600px;
    border-radius: 25px;
}
