body {
    font-family: 'Open Sans', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ede6d6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}

h2 {
    font-size: 2em;
    color: #3d405b;
    margin-bottom: 20px;
    text-align: center;
}

/* Header styles */
header {
    background: linear-gradient(to right, #a28fce, #79b8be);
    color: #fff;
    padding: 0;
    position: relative;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
}

/* Burger menu styles */
.burger-menu {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.burger-line {
    width: 25px;
    height: 3px;
    background-color: #3d405b;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.burger-line.active {
    background-color: white;
}

/* Navigation styles */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

nav li {
    margin-left: 20px;
}

nav a {
    text-decoration: none;
    color: #3d405b;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #3d405b;
}

.reg {
    margin-left: 200px;
    margin-right: auto;
}

/* Navigation buttons */
.nav-button {
    color: #3d405b;
    text-decoration: none;
    font-size: 20px;
    border: none;
    background: none;
    font-family: 'Poppins', sans-serif;
    position: relative;
    padding: 0;
    font-weight: normal;
}

.nav-button::before,
.nav-button::after {
    content: '';
    width: 0;
    height: 2px;
    background: #7e6aac;
    display: block;
    transition: 0.5s;
    position: absolute;
}

.nav-button::before {
    top: -5px;
    right: 0;
}

.nav-button::after {
    bottom: -5px;
    left: 0;
}

.nav-button:hover::before {
    width: 100%;
}

.nav-button:hover::after {
    width: 100%;
}

/* Registration button */
.registration-button {
    background-color: #ffffff;
    color: black;
    border-radius: 10em;
    font-size: 17px;
    padding: 0.7em 1.5em;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    border: 2px solid black;
    box-shadow: 0 0 0 0 black;
    text-decoration: none;
    display: inline-block;
    line-height: 1;
    font-weight: normal;
}

/* Main content */
main {
    padding: 0;
    background-color: transparent;
    margin-top: -5px;
}

.catalog-content {
    width: 80%;
    max-width: 800px;
    margin: auto;
    padding: 30px;
    border-radius: 8px;
    background-color: transparent;
    color: #000;
}

.catalog-content h1 {
    text-align: center;
    color: #3d405b;
}

.catalog-content h2 {
    color: #3d405b;
    margin-top: 30px;
}

.catalog-content ul {
    padding-left: 20px;
}

.catalog-content li {
    margin-bottom: 8px;
}

.catalog-content p {
    margin-bottom: 15px;
}

.catalog-content .important {
    font-weight: bold;
    color: #3d405b;
}

/* Filter container */
.filter-container {
    width: 80%;
    max-width: 650px;
    margin: 10px auto;
    background-color: #8fc8ce;
    padding: 20px;
    border-radius: 35px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #7cb8be;
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Search box */
.search-box {
    display: flex;
    margin-bottom: 20px;
    gap: 10px;
    width: 100%;
    max-width: 600px;
}

.search-box input[type="text"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #7cb8be;
    border-radius: 5px;
    font-size: 1em;
    color: #000;
}

.search-box button {
    padding: 10px 20px;
    background-color: #a28fce;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: #806dad;
}

/* Filters title */
.filters-title {
    margin-bottom: 15px;
    font-size: 1.2em;
    color: #3d405b;
    text-align: center;
    width: 100%;
}

/* Filters row */
.filters-row {
    display: flex;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #7cb8be;
}

/* Dropdown filters */
.dropdown-filter {
    position: relative;
    display: inline-block;
    margin: 0 10px;
}

.dropdown-btn {
    background-color: #a28fce;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
    min-width: 150px;
    text-align: center;
}

.dropdown-btn:hover {
    background-color: #806dad;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    padding: 10px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-filter:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content label {
    display: block;
    padding: 8px 12px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 3px;
}

.dropdown-content label:hover {
    background-color: #e6e6e6;
}

.dropdown-content input[type="radio"] {
    margin-right: 8px;
}

/* Active filters */
.active-filters {
    margin-bottom: 0;
    padding-top: 10px;
    width: 100%;
    text-align: center;
}

.active-filters p {
    margin-bottom: 10px;
    font-weight: bold;
    color: #3d405b;
}

#active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.active-filter {
    background-color: #a28fce;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.active-filter:hover {
    background-color: #806dad;
    transform: scale(1.05);
}

/* Video cards */
.video-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px 0;
}

.card {
    width: 300px;
    margin: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #000;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card video, .card img {
    display: block;
    width: 100%;
    height: auto;
}

.card-content {
    padding: 15px;
}

.card-content h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #000;
    font-size: 1.1em;
}

.card-content p {
    margin-bottom: 0;
    color: #000;
    font-size: 0.9em;
}

/* Modal window */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-content video {
    width: 100%;
    height: auto;
    max-height: 80vh;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
}

/* Footer styles */
.website-footer {
    background: linear-gradient(to right, #a28fce, #79b8be);
    color: white;
    padding: 40px 0;
    font-family: Arial, sans-serif;
}

.website-footer .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.website-footer .footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.website-footer .footer-content > div {
    width: 30%;
}

.website-footer h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.website-footer ul {
    list-style: none;
    padding: 0;
}

.website-footer li {
    margin-bottom: 8px;
}

.website-footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.website-footer a:hover {
    color: #ddd;
}

.website-footer .social-icon {
    display: inline-block;
    margin-right: 10px;
}

.website-footer .footer-bottom {
    text-align: center;
    font-size: 0.9em;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Mobile styles */
@media (max-width: 768px) {
    .burger-menu {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 250px;
        background: linear-gradient(to bottom, #a28fce, #79b8be);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 80px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
    }
    
    nav ul.nav-active {
        transform: translateX(0);
    }
    
    nav li {
        margin: 15px 0;
    }
    
    .reg {
        margin: 15px 0;
    }
    
    .container {
        width: 95%;
    }
    
    .filter-container {
        width: 95%;
        padding: 15px;
    }
    
    .filters-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .dropdown-filter {
        width: 100%;
    }
    
    .dropdown-btn {
        width: 100%;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        opacity: 1;
        transform: none;
    }
    
    .dropdown-filter:hover .dropdown-content,
    .dropdown-filter:focus-within .dropdown-content {
        display: block;
    }
    
    .video-cards-container {
        flex-direction: column;
        align-items: center;
    }
    
    .card {
        width: 90%;
        margin: 10px 0;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-content > div {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .search-box {
        flex-direction: column;
    }
    
    .search-box input[type="text"] {
        width: 100%;
    }
    
    .search-box button {
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
        padding: 10px;
    }
    
    .catalog-content {
        width: 95%;
        padding: 15px;
    }
}

/* Изменения в header и burger-menu */
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    position: relative; /* Добавляем позиционирование */
}

.burger-menu {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: absolute; /* Абсолютное позиционирование */
    right: 20px; /* Сдвигаем вправо */
    top: 50%; /* Центрируем по вертикали */
    transform: translateY(-50%); /* Точное центрирование */
}

/* Для мобильной версии */
@media (max-width: 768px) {
    .burger-menu {
        display: block; /* Показываем бургер */
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 250px;
        background: linear-gradient(to bottom, #a28fce, #79b8be);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 80px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
    }
    
    /* Остальные стили остаются без изменений */
}




/* Мобильная версия (только исправление выезжания за границы) */
@media (max-width: 768px) {
    .filter-container {
        width: calc(100% - 40px); /* Добавляем отступы по бокам */
        margin: 10px auto;
        padding: 15px;
        box-sizing: border-box; /* Важно: учитываем padding в ширине */
        overflow: hidden; /* Скрываем всё, что выходит за границы */
    }

    .filters-row {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .dropdown-filter {
        width: 100%;
        margin: 0;
    }

    .dropdown-btn {
        width: 100%;
        box-sizing: border-box;
    }

    .dropdown-content {
        width: 100%;
        box-sizing: border-box;
        position: static;
    }

    .search-box {
        width: 100%;
        box-sizing: border-box;
    }

    .search-box input {
        width: 100%;
        box-sizing: border-box;
    }
}