* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 100vh;
}

/* ---------------- Header ---------------- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2c3e50;
    color: white;
    width: 100%;
    padding: 20px 40px;
    flex-wrap: wrap;
}

header .logo img {
    width: 100px;
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #f39c12;
}

/* ---------------- Language Dropdown ---------------- */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #2c3e50;
    color: white;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 8px;
    cursor: pointer;
}

.dropdown-display img {
    width: 30px;
    height: 20px;
}

.dropdown-menu {
    position: absolute;
    top: 120%;
    left: 0;
    background: white;
    list-style: none;
    color: black;
    padding: 10px 0;
    margin: 0;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    display: none; 
    min-width: 100px;
    z-index: 10;
}

.dropdown-menu li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    cursor: pointer;
}

.dropdown-menu li img {
    width: 25px;
    height: 15px;
}

.dropdown-menu li:hover {
    background: #f1f1f1;
}

/* Меню открыто, пока курсор на кнопке или на самом меню */
.language-dropdown:hover .dropdown-menu {
    display: block;
}

/* ---------------- Main ---------------- */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 95%;
    max-width: 1400px;
    padding: 50px 20px;
}

/* Sections */
section {
    margin-bottom: 80px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

section h1, section h2 {
    font-size: 3em;
    margin-bottom: 25px;
    color: #2c3e50;
}

section p {
    font-size: 1.6em;
    line-height: 2;
    text-align: center;
    max-width: 1000px;
}

/* Videos */
.video-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.video-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-item p {
    text-align: center;
    margin-top: 15px;
    font-size: 1.4em;
    font-weight: bold;
}

/* Slider */
#slider {
  perspective: 1200px;
  width: 400px;
  height: 250px;
  margin: 50px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slider-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.slider-container {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateSlider 10s linear infinite;
}

@keyframes rotateSlider {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

.slide {
  position: absolute;
  width: 100px;
  height: 100px;
  top: 50%;
  left: 50%;
  margin: -50px 0 0 -50px;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Расставляем слайды по кругу */
.slide:nth-child(1) { transform: rotateY(calc(0 * 360deg / 5)) translateZ(180px); }
.slide:nth-child(2) { transform: rotateY(calc(1 * 360deg / 5)) translateZ(180px); }
.slide:nth-child(3) { transform: rotateY(calc(2 * 360deg / 5)) translateZ(180px); }
.slide:nth-child(4) { transform: rotateY(calc(3 * 360deg / 5)) translateZ(180px); }
.slide:nth-child(5) { transform: rotateY(calc(4 * 360deg / 5)) translateZ(180px); }

.slide img {
  width: 100px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 5px;
}

.slide p {
  font-size: 0.9em;
  text-align: center;
  color: #333;
}
/* Photos */
.photos-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.photos-container img {
    width: 800px;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.photos-container img:hover {
    transform: scale(1.05);
}

#menu-checkbox {
    display: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    margin-left: 20px; /* рядом с дропдауном языков */
}

.menu-toggle span {
    display: block;
    height: 4px;
    background-color: white; /* белый цвет линий */
    border-radius: 2px;
    transition: all 0.3s ease;
}


@media screen and (max-width:900px) {
    .photos-container img{
        width: 400px;
    }
}
@media screen and (max-width:800px) {
    /* Скрываем стандартную навигацию */
    .main-nav {
        position: fixed;
        top: 0;
        left: -250px; /* скрыто за экраном слева */
        width: 250px;
        height: 100%;
        background-color: #2c3e50;
        flex-direction: column;
        padding: 60px 20px;
        gap: 20px;
        transition: left 0.3s ease;
        z-index: 100;
    }

    .main-nav a {
        font-size: 1.5em;
        font-weight: bold;
        color: white;
        text-decoration: none;
    }

    /* Показываем меню при чекнутом гамбургере */
    #menu-checkbox:checked + .menu-toggle + .main-nav {
        left: 0;
    }

    /* Гамбургер справа рядом с дропдауном */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        cursor: pointer;
        margin-left: 10px; /* рядом с дропдауном */
        order: 2; /* чтобы был после дропдауна */
    }

    .menu-toggle span {
        display: block;
        height: 4px;
        background-color: white;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* Дропдаун языков остаётся справа */
    .language-dropdown {
        display: flex;
        align-items: center;
        gap: 10px;
        order: 1; /* перед гамбургером */
        margin-left: auto;
    }

    /* Стили для header */
    header {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 10px 20px;
    }
}

@media screen and (max-width:650px) {
    section h1, section h2 {
    font-size: 35px;
    color: #2c3e50;
}
section p {
    font-size: 20px;
}
  .video-container {
        flex-direction: column;  /* ставим видео одно под другим */
        gap: 20px;               /* расстояние между видео */
        align-items: center;     /* центрируем */
    }

    .video-item iframe {
        width: 90%;             /* почти вся ширина экрана */
        max-width: 300px;       /* ограничиваем максимальный размер */
        height: auto;           /* высота автоматически по пропорциям */
        aspect-ratio: 16/9;     /* сохраняем пропорции 16:9 */
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        transition: transform 0.3s ease, width 0.3s ease;
    }

    .video-item p {
        font-size: 1em;
        margin-top: 8px;
        text-align: center;
        width: 90%;
        max-width: 300px;
    }

        .slider-wrapper {
        width: 100%;
        padding: 10px 0;
    }

    .slider-container {
        display: flex;
        
    }

    .slide {
        min-width: 10px;       /* уменьшаем ширину слайдов */
        max-width: 100px;       /* чтобы не растягивались */
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        border-radius: 15px;
        transition: transform 0.3s ease;
    }

    .slide img {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }

    .slide p {
        font-size: 1em;
        text-align: center;
    }

}