/* стили для выпадающего меню */
/* Сброс стандартных отступов */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f4c9d6;
}

/* Контейнер для центрирования контента */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Стили для header */
.header {
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Стили для навигации */
.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}
.nav-link:hover {
    background-color: #fff;
    color: #ee6983;
}

/* Активная ссылка */
.nav-link.active {
    background-color: #5e3023;
    color: white;
}

/* Подчеркивание при наведении */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-link:hover::after {
    width: 80%;
}

/* Дополнительные стили для улучшения внешнего вида */
.header {
    background: linear-gradient(135deg, #ee6983 0%, #f2aebc 100%);
}
.nav-link {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}
.dropdown {
    position: relative;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu a {
    display: block;
    padding: 0.8rem 1rem;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}
.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: #000;
}

/* Стиль основного контента */
h3{
    margin-top: 30px;
}
/* Стили для медиаплеера */
        .media-player {
            max-width: 600px;
            margin: 30px auto;
            background-color: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .video-container {
            width: 100%;
            position: relative;
        }

        .video-container video {
            width: 100%;
            display: block;
        }

        .controls {
            display: flex;
            align-items: center;
            padding: 10px 15px;
            background-color: #f8f8f8;
            border-top: 1px solid #eee;
        }

        .play-pause-btn {
            background: none;
            border: none;
            cursor: pointer;
            margin-right: 15px;
            width: 32px;
            height: 32px;
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            transition: transform 0.2s;
        }

        .play-pause-btn:hover {
            transform: scale(1.1);
        }

        #playBtn {
            background-image: url('img/play.png');
        }

        #pauseBtn {
            background-image: url('img/pause.png');
            display: none; /* Сначала скрыта */
        }

        .time-display {
            font-size: 14px;
            color: #666;
            font-family: 'Lato', sans-serif;
        }

        .progress-container {
            flex-grow: 1;
            height: 6px;
            background-color: #e0e0e0;
            border-radius: 3px;
            margin: 0 15px;
            cursor: pointer;
            position: relative;
        }

        .progress-bar {
            height: 100%;
            background-color: #ee6983;
            border-radius: 3px;
            width: 0%;
        }
        
        /* Стили для карусели */
        .carousel-controls {
            position: absolute;
            top: 50%;
            width: 100%;
            display: flex;
            justify-content: space-between;
            transform: translateY(-50%);
            padding: 0 20px;
            z-index: 10;
        }

        .carousel-btn {
            background: rgba(255, 255, 255, 0.7);
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 18px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            color: #ee6983;
        }

        .carousel-btn:hover {
            background: rgba(255, 255, 255, 0.9);
            transform: scale(1.1);
        }

        .video-title {
            position: absolute;
            top: 15px;
            left: 15px;
            background: rgba(0, 0, 0, 0.6);
            color: white;
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 14px;
            z-index: 5;
        }

        .video-counter {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(0, 0, 0, 0.6);
            color: white;
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 14px;
            z-index: 5;
        }