body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

@font-face {
    font-family: 'InvolveRegular'; 
    src: url(fonts/Involve-Regular.ttf); 
}

.header-container {
    width: 100%;
    max-width: 100%;
}

@media (min-width: 1824px) {
    .header-container {
        max-width: 1500px; /* или другой подходящий размер */
        margin: 0 auto; /* центрирование */
        transform: scale(0.95); /* небольшое уменьшение */
        transform-origin: center top; /* точка трансформации сверху */
        border-radius: 50px;
    }
    
    /* Дополнительно можно добавить плавность */
    .header-container {
        transition: all 0.3s ease;
    }
}

.div1 {
	position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*background-color: red;*/
    padding: 0 20px;
    height: 100px;
    position: relative;
    transform-origin: top center;
    transition: transform 0.3s ease;
}

.logo_and_links {
    display: flex;
    align-items: center;
    gap: 80px;
}

.logo {
    width: 143px;
    height: 51px;
}

.nav-links {
    display: flex;
    gap: 80px;
    background-color: white;
}

.div1_text1 {
    font-family: InvolveRegular, Arial, sans-serif;
    color: black;
    margin: 0;
    font-size: 18px;
    transition: color 0.3s;
}

.div1_text1:hover {
    color: #702113;
}

a {
    text-decoration: none;
}






.right-images {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: absolute;
    right: 50px;
    top: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.contact-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.contact-link:hover {
    opacity: 0.8;
}

.right-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    object-fit: contain;
}

.icon-placeholder {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.contact-text {
    margin: 0;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    font-family: InvolveRegular;
}

.contact-email {
    font-family: InvolveRegular;
}




@media (max-width: 1100px) {
    .right-images {
        flex-direction: row;
        justify-content: flex-end; /* точное выравнивание по правому краю */
        gap: 10px; /* больше расстояние между иконками */
        right: 10px;
        top: 25px;
    }
    .contact-email{
        visibility: hidden;
    }
    
    .contact-item {
        margin-bottom: 0;
    }
    
    .contact-text {
        display: none;
    }
    
    .right-icon {
        top: 25px;
       width: 50px;
        height: 50px;
    }
    
    .right-icon:hover,
    .icon-placeholder:hover {
        transform: scale(1.1); /* легкое увеличение при наведении */
    }
    
    /* Скрываем плейсхолдер для email и оставляем только текст */
    .contact-item:last-child .icon-placeholder {
        display: none;
    }
    
    
}

/* Адаптация для планшетов (900px и меньше) */
@media (max-width: 900px) {
    .right-images {
        right: 25px;
        top: 25px;
        gap: 18px;
    }
    .contact-email{
        visibility: hidden;
    }
    
    .right-icon,
    .icon-placeholder {
        width: 26px;
        height: 26px;
    }
    
    .contact-item:last-child .contact-text {
        font-size: 12px;
        padding: 5px 10px;
    }
}






/* Бургер-меню */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
}

.burger-line {
    width: 100%;
    height: 3px;
    background-color: black;
    transition: all 0.3s;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .logo_and_links {
        gap: 40px;
    }
    
    .nav-links {
        gap: 40px;
    }
    
    .right-images {
        gap: 15px;
    }
    
    .right-icon {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100px;
        left: 0;
        width: 100%;
        /*background-color: red;*/
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 20px 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 15px 0;
    }
    
    .right-images {
        display: none;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .burger-menu.active .burger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .burger-menu.active .burger-line:nth-child(2) {
        opacity: 0;
    }
    
    .burger-menu.active .burger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

@media (max-width: 480px) {
    .div1 {
        padding: 0 15px;
    }
    
    .logo {
        width: 120px;
        height: 43px;
    }
    
    .logo_and_links {
        gap: 20px;
    }
}





















.div2 {
    width: 100%;
    height: calc(100vh - 100px);
    min-height: 600px;
    max-height: 1200px;
    margin-top: 10px;
    background-image: url('images/main.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
    transform-origin: center center;
    transition: transform 0.3s ease;
}

.content-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    width: 100%;
}

.fan-container {
    position: relative;
    display: inline-block;
    margin-top: 70px;
}

.fan {
    width: 1000px;
    height: 600px;
    display: block;
    max-width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

.fan-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(151, 39, 39, 0.8);
    color: white;
    padding: 10px;
    text-align: center;
    font-family: InvolveRegular, Arial, sans-serif;
    font-size: 14px;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.fan-container:hover .fan-caption {
    opacity: 1;
    transform: translateY(0);
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    flex-direction: column;
    align-items: center;
}

.AmorAcademia {
    font-weight: bold;
    font-family: InvolveRegular, Arial, sans-serif;
    color: rgba(151, 39, 39, 1);
    font-size: 60px;
    margin: 0 0 20px 0;
}

.AmorAcademiaText {
    font-family: InvolveRegular, Arial, sans-serif;
    color: black;
    font-size: 37px;
    margin: 0;
    line-height: 1.4;
}

.button1 {
    background-color: white;
    color: #972727;
    border: 2px solid #972727;
    padding: 22px 34px;
    font-family: InvolveRegular, Arial, sans-serif;
    font-size: 22px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    bottom: 50px;
    right: 50px;
    z-index: 10;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .fan-caption {
        font-size: 12px;
        padding: 8px;
    }
    
    .fan-container {
        margin-top: 40px;
    }
}










/* Адаптация для больших экранов */
@media (min-width: 1920px) {
    .div2 {
        height: calc(90vh - 100px);
        max-height: 1000px;
    }
    
    .fan {
        width: 900px;
        margin-top: 60px;
    }
    
    .AmorAcademia {
        font-size: 55px;
    }
    
    .AmorAcademiaText {
        font-size: 34px;
    }
    .button1{
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        width: auto;
        min-width: 200px;
        margin: 0 auto;
    }
    .content-wrapper {
    position: relative;
    display: flex; /* Изменено на flex */
    justify-content: center; /* Центрирование по горизонтали */
    align-items: center; /* Центрирование по вертикали */
    max-width: 50%;
    width: 50%;
}
}

@media (min-width: 2560px) {
    .div2 {
        height: calc(80vh - 100px);
        max-height: 900px;
    }
    
    .fan {
        width: 800px;
        margin-top: 50px;
    }
    
    .AmorAcademia {
        font-size: 50px;
    }
    
    .AmorAcademiaText {
        font-size: 30px;
    }
    
    .button1{
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        width: auto;
        min-width: 200px;
        margin: 0 auto;
    }
}

@media (min-width: 3840px) {
    .div2 {
        height: calc(70vh - 100px);
        max-height: 800px;
    }
    
    .fan {
        width: 700px;
        margin-top: 40px;
    }
    
    .AmorAcademia {
        font-size: 45px;
    }
    
    .AmorAcademiaText {
        font-size: 26px;
    }
    
    .button1{
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        width: auto;
        min-width: 200px;
        margin: 0 auto;
    }
}

/* Адаптация для средних экранов */
@media (max-width: 1440px) {
    .div2 {
        height: calc(95vh - 100px);
    }
    
    .fan {
        width: 900px;
        margin-top: 60px;
    }
    .button1{
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        width: auto;
        min-width: 200px;
        margin: 0 auto;
    }
}

@media (max-width: 1280px) {
    .div2 {
        height: calc(90vh - 100px);
    }
    
    .fan {
        width: 850px;
        margin-top: 50px;
    }
    .button1{
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        width: auto;
        min-width: 200px;
        margin: 0 auto;
    }
}

/* Остальные медиа-запросы для мобильных устройств */
@media (max-width: 1024px) {
    .div2 {
        height: calc(85vh - 100px);
        min-height: 500px;
    }
    
    .fan {
        width: 700px;
        margin-top: -80px;
    }
    
    .AmorAcademia {
        font-size: 50px;
    }
    
    .AmorAcademiaText {
        font-size: 30px;
    }
    .button1{
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        width: auto;
        min-width: 200px;
        margin: 0 auto;
    }
}

@media (max-width: 900px) {
    .div2 {
        height: calc(80vh - 100px);
        min-height: 450px;
    }
    
    .button1 {
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        width: auto;
        min-width: 200px;
        margin: 0 auto;
    }
    
    .content-wrapper {
        width: 150%;
        text-align: center;
        overflow: hidden;
        position: relative;
    }
    
    .fan {
        width: 700px;
        margin-top: -80px;
        /* Убрано left: 50% и transform: translateX(-50%) */
    }
    
    .text-overlay {
        width: 90%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .AmorAcademia {
        font-size: 45px;
        margin-bottom: 5px;
    }
    
    .AmorAcademiaText {
        font-size: 24px;
        line-height: 1.3;
    }
}

@media (max-width: 768px) {
    .div2 {
        height: calc(75vh - 100px);
        min-height: 400px;
    }
    
    .fan {
        width: 650px;
        margin-top: -70px;
    }
    
    .AmorAcademia {
        font-size: 40px;
    }
    
    .AmorAcademiaText {
        font-size: 22px;
    }
    .button1 {
        
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        right: auto; /* сбрасываем right */
        width: auto;
        min-width: 200px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .div2 {
        height: calc(70vh - 100px);
        min-height: 350px;
    }
    
    .fan {
        width: 600px;
        margin-top: -45px;
    }
    
    .AmorAcademia {
        font-size: 35px;
    }
    
    .AmorAcademiaText {
        font-size: 20px;
    }
    
    .AmorAcademiaText br {
        display: none;
    }
}

@media (max-width: 500px) {
    .div2 {
        height: calc(65vh - 100px);
        min-height: 300px;
    }
    
    .fan {
        width: 500px;
        margin-top: 10px;
    }
    
    .AmorAcademia {
        font-size: 38px;
    }
    
    .AmorAcademiaText {
        font-size: 15px;
    }
    .button1 {
        
        bottom: 30px;
        left: 50%;
        width: 10px;
        height: 10px;
        margin: 0 auto;
        font-size: 15px;
    }
}

@media (max-width: 450px) {
    .div2 {
        height: calc(65vh - 100px);
        min-height: 300px;
    }
    
    .fan {
        width: 650px;
        margin-top: 10px;
    }
    
    .AmorAcademia {
        font-size: 32px;
    }
    
    .AmorAcademiaText {
        font-size: 15px;
        width: 300px;
        margin-left: 8%;
    }
    .button1 {
        text-align: center;
        bottom: 30px;
        left: 50%;
        width: 10px;
        height: 10px;
        margin: 0 auto;
        font-size: 15px;
    }
}


@media (max-width: 321px) {
    .div2 {
        height: calc(65vh - 100px);
        min-height: 300px;
    }
    
    .fan {
        width: 650px;
        margin-top: 10px;
    }
    
    .AmorAcademia {
        font-size: 20px;
        margin-top: 50px;
    }
    
    .AmorAcademiaText {
        font-size: 15px;
        width: 300px;
        margin-left: 0%;
    }
    .button1 {
        text-align: center;
        bottom: 30px;
        left: 50%;
        width: 10px;
        height: 10px;
        margin: 0 auto;
        font-size: 15px;
    }
}





/* Модальное окно */
.modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto; /* Разрешаем прокрутку */
    padding: 20px 0; /* Отступы для мобильных устройств */
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content0 {
    background-color: white;
    padding: 30px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh; /* Ограничиваем высоту */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    margin: auto;
    overflow-y: auto; /* Включаем прокрутку внутри контента */
    overflow-x: hidden; /* Скрываем горизонтальную прокрутку */
    -webkit-overflow-scrolling: touch; /* Плавная прокрутка на iOS */
}

/* Стили для скроллбара */
.modal-content0::-webkit-scrollbar {
    width: 6px;
}

.modal-content0::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-content0::-webkit-scrollbar-thumb {
    background: #972727;
    border-radius: 3px;
}

.modal-content0::-webkit-scrollbar-thumb:hover {
    background: #7a1f1f;
}

.modal.show .modal-content0 {
    transform: translateY(0);
}

.modal-content0 h2 {
    margin-bottom: 25px;
    color: #333;
    text-align: center;
    font-size: 24px;
    position: sticky;
    top: 0;
    background: white;
    padding-bottom: 15px;
    z-index: 10;
    border-bottom: 2px solid #f0f0f0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #972727;
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
    position: sticky;
    bottom: 0;
    background: white;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
}

.modal-buttons button {
    padding: 14px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    flex: 1;
}

.submit-btn {
    background-color: #972727;
    color: white;
}

.submit-btn:hover {
    background-color: #7a1f1f;
    transform: translateY(-2px);
}

.cancel-btn {
    background-color: #f1f1f1;
    color: #333;
}

.cancel-btn:hover {
    background-color: #ddd;
    transform: translateY(-2px);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 20; /* Повышаем z-index чтобы была поверх всего */
}

.modal-close:hover {
    color: #333;
}

.send-method-buttons {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    flex-wrap: wrap; /* Для мобильных устройств */
}

.send-method-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 80px; /* Минимальная ширина кнопок */
}

.send-method-btn:hover {
    transform: translateY(-2px);
}

.send-method-btn.whatsapp.active {
    border-color: #25D366;
    background-color: #25D366;
    color: white;
}

.send-method-btn.telegram.active {
    border-color: #0088cc;
    background-color: #0088cc;
    color: white;
}

.send-method-btn.email.active {
    border-color: #EA4335;
    background-color: #EA4335;
    color: white;
}

.send-method-btn.active {
    font-weight: bold;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    .modal-content0 {
        padding: 20px;
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-content0 h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 14px;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .send-method-buttons {
        flex-direction: column;
    }
    
    .send-method-btn {
        width: 100%;
    }
    
    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }
}

/* Анимация появления и скрытия */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes modalSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
}

.modal.show .modal-content0 {
    animation: modalSlideIn 0.3s ease forwards;
}

.modal:not(.show) .modal-content0 {
    animation: modalSlideOut 0.3s ease forwards;
}

/* Предотвращение прокрутки body когда модальное окно открыто */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}



































 .div3 {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 80px 5%;
            background-color: #fff;
            gap: 60px;
            max-width: 1200px;
            margin: 0 auto;
            border-radius: 12px;
            box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
            margin-top: 30px;
        }

        .div3_1 {
            flex: 1;
            max-width: 50%;
        }

        .div3_head {
            font-size: 42px;
            font-weight: bold;
            color: #972727;
            line-height: 1.2;
            margin-bottom: 30px;
        }

        .div3_text {
            font-size: 20px;
            color: #333;
            line-height: 1.6;
            margin-bottom: 35px;
        }

        .button2 {
            background-color: #972727;
            color: white;
            border: none;
            padding: 16px 35px;
            font-size: 18px;
            font-weight: bold;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(151, 39, 39, 0.3);
        }

        .button2:hover {
            background-color: #7a1f1f;
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(151, 39, 39, 0.4);
        }

        .div3_2 {
            flex: 1;
            max-width: 50%;
            display: flex;
            justify-content: center;
            position: relative;
        }

        .div3_image {
            max-width: 100%;
            height: auto;
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            cursor: pointer;
            transition: transform 0.3s ease;
        }
        
        .div3_image:hover {
            transform: scale(1.03);
        }
        
        .play-icon {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 70px;
            height: 70px;
            background-color: rgba(151, 39, 39, 0.85);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .play-icon:before {
            content: "";
            border-style: solid;
            border-width: 12px 0 12px 20px;
            border-color: transparent transparent transparent #fff;
            margin-left: 4px;
        }
        
        .play-icon:hover {
            background-color: rgba(151, 39, 39, 1);
            transform: translate(-50%, -50%) scale(1.1);
        }

        /* Модальное окно */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.85);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .modal-content {
            position: relative;
            width: 80%;
            max-width: 900px;
            background: #000;
            border-radius: 12px;
            overflow: hidden;
            transform: scale(0.9);
            transition: transform 0.3s ease;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        }
        
        /* Крестик для закрытия модального окна */
        .modal-close {
            position: absolute;
            top: -45px;
            right: -5px;
            width: 40px;
            height: 40px;
            cursor: pointer;
            z-index: 1001;
            transition: transform 0.3s ease;
        }
        
        .modal-close:before, .modal-close:after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 25px;
            height: 3px;
            background-color: #fff;
            border-radius: 2px;
        }
        
        .modal-close:before {
            transform: translate(-50%, -50%) rotate(45deg);
        }
        
        .modal-close:after {
            transform: translate(-50%, -50%) rotate(-45deg);
        }
        
        .modal-close:hover {
            transform: rotate(90deg);
        }
        
        .modal-close:hover:before, .modal-close:hover:after {
            background-color: #ff6b6b;
        }
        
        .video-container {
            position: relative;
            padding-bottom: 56.25%; /* 16:9 соотношение сторон */
            height: 0;
            overflow: hidden;
        }
        
        .video-container video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #fff;
            border-radius: 8px;
        }
        
        /* Новая кнопка закрытия поверх видео */
        .close-video-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            z-index: 1001;
            width: 40px;
            height: 40px;
            background-color: rgba(151, 39, 39, 0.9);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid #fff;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        }
        
        .close-video-btn:before, .close-video-btn:after {
            content: '';
            position: absolute;
            width: 20px;
            height: 2px;
            background-color: #fff;
        }
        
        .close-video-btn:before {
            transform: rotate(45deg);
        }
        
        .close-video-btn:after {
            transform: rotate(-45deg);
        }
        
        .close-video-btn:hover {
            background-color: #7a1f1f;
            transform: scale(1.1);
        }
        
    
        
        /* Адаптивность */
        @media (max-width: 900px) {
            .div3 {
                flex-direction: column;
                padding: 60px 5%;
                gap: 40px;
            }
            
            .div3_1,
            .div3_2 {
                max-width: 100%;
                text-align: center;
            }
            
            .div3_head {
                font-size: 32px;
            }
            
            .div3_text {
                font-size: 18px;
            }
            
            .button2 {
                padding: 14px 30px;
                font-size: 16px;
            }
            
            .modal-content {
                width: 95%;
            }
            
            .modal-close {
                top: -40px;
                right: 0;
                width: 35px;
                height: 35px;
            }
            
            .modal-close:before, .modal-close:after {
                width: 20px;
                height: 2px;
            }
            
            .play-icon {
                width: 60px;
                height: 60px;
            }
            
            .close-video-btn {
                width: 35px;
                height: 35px;
                top: 10px;
                right: 10px;
            }
            
            .close-video-btn:before, .close-video-btn:after {
                width: 16px;
            }
        }

        @media (max-width: 480px) {
            .div3 {
                padding: 40px 20px;
                gap: 30px;
            }
            
            .div3_head {
                font-size: 28px;
                margin-bottom: 20px;
            }
            
            .div3_text {
                font-size: 16px;
                margin-bottom: 25px;
            }
            
            .button2 {
                padding: 12px 25px;
                font-size: 15px;
                width: 100%;
                max-width: 250px;
            }
            
            .modal-close {
                top: -35px;
                right: 5px;
                width: 30px;
                height: 30px;
            }
            
            .modal-close:before, .modal-close:after {
                width: 18px;
                height: 2px;
            }
            
            .play-icon {
                width: 50px;
                height: 50px;
            }
            
            .play-icon:before {
                border-width: 10px 0 10px 16px;
            }
            
            .close-video-btn {
                width: 30px;
                height: 30px;
                top: 8px;
                right: 8px;
            }
            
            .close-video-btn:before, .close-video-btn:after {
                width: 14px;
            }
        }
































  .div4 {
            background-color: #972727;
            border-radius: 20px;
            padding: 60px 40px;
            margin: 80px auto;
            max-width: 1200px;
            display: flex;
            flex-direction: column;
            gap: 40px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }

        .div4_head {
            font-size: 36px;
            font-weight: bold;
            color: white;
            text-align: center;
            margin: 0;
            text-transform: uppercase;
            font-family: InvolveRegular;
        }

        .div4_text {
            font-size: 18px;
            color: white;
            text-align: center;
            line-height: 1.6;
            margin: 0;
            opacity: 0.9;
            font-family: InvolveRegular;
        }

        /* Исправленный контейнер для мини-блоков */
        .mini_divs_container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            width: 100%;
        }

        .mini_div {
            background-color: rgba(217, 192, 124, 1);
            border-radius: 15px;
            padding: 25px;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
        }

        .mini_div:hover {
            transform: translateY(-5px);
        }

        .mini_div_img {
            width: 120px;
            height: 120px;
            object-fit: cover;
            border-radius: 50%;
            margin-bottom: 20px;
            border: 4px solid #fff;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        }

        .mini_div_head {
            font-size: 18px;
            font-weight: bold;
            color: #972727;
            margin: 0 0 15px 0;
            text-transform: uppercase;
            line-height: 1.3;
            font-family: InvolveRegular;
        }

        .mini_div_button {
            background-color: #972727;
            color: white;
            border: none;
            padding: 12px 25px;
            font-size: 14px;
            font-weight: bold;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: auto;
        }

        .mini_div_button:hover {
            background-color: #7a1f1f;
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(151, 39, 39, 0.3);
        }

        /* Модальное окно */
        .modal-overlay2 {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .modal-content2 {
            background: white;
            padding: 40px;
            border-radius: 12px;
            text-align: center;
            max-width: 400px;
            width: 90%;
            position: relative;
            transform: scale(0.9);
            transition: transform 0.3s ease;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }
        
        .modal-icon {
            font-size: 50px;
            color: #972727;
            margin-bottom: 20px;
        }
        
        .modal-text {
            font-size: 20px;
            color: #333;
            margin-bottom: 25px;
            font-weight: bold;
        }
        
        .modal-close {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 30px;
            height: 30px;
            cursor: pointer;
            transition: transform 0.3s ease;
        }
        
        .modal-close:before, .modal-close:after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 20px;
            height: 2px;
            background-color: #972727;
            border-radius: 1px;
        }
        
        .modal-close:before {
            transform: translate(-50%, -50%) rotate(45deg);
        }
        
        .modal-close:after {
            transform: translate(-50%, -50%) rotate(-45deg);
        }
        
        .modal-close:hover {
            transform: rotate(90deg);
        }
        
        .modal-close:hover:before, .modal-close:hover:after {
            background-color: #7a1f1f;
        }

        /* Адаптивность */
        @media (max-width: 1024px) {
            .div4 {
                padding: 50px 30px;
                margin: 60px auto;
            }
            
            .div4_head {
                font-size: 30px;
            }
            
            .div4_text {
                font-size: 16px;
            }
        }

        @media (max-width: 768px) {
            .div4 {
                padding: 40px 20px;
                margin: 40px auto;
                border-radius: 15px;
                gap: 30px;
            }
            
            .div4_head {
                font-size: 26px;
            }
            
            .div4_text {
                font-size: 15px;
            }
            
            .mini_divs_container {
                grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
                gap: 15px;
            }
            
            .mini_div {
                padding: 20px 15px;
            }
            
            .mini_div_head {
                font-size: 16px;
            }
            
            .mini_div_button {
                padding: 10px 20px;
                font-size: 13px;
            }
        }

        @media (max-width: 480px) {
            .div4 {
                padding: 30px 15px;
                margin: 30px auto;
                gap: 25px;
            }
            
            .div4_head {
                font-size: 22px;
            }
            
            .div4_text {
                font-size: 14px;
            }
            
            .mini_divs_container {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            .mini_div_img {
                width: 100px;
                height: 100px;
            }
            
            .modal-content {
                padding: 30px 20px;
            }
            
            .modal-text {
                font-size: 18px;
            }
        }





























.div5 {
    text-align: center;
    margin-bottom: 60px;
}

.div5_head {
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 50px;
    color: #972727;
    font-family: InvolveRegular;
}

.div5_mini {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; /* Возвращаем перенос блоков */
    max-width: 1400px;
    margin: 0 auto;
}

.div5_mini_div {
    position: relative;
    width: 350px;
    height: 200px;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.div5_mini_div:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

/* Первый и третий блоки - красные с желтыми кнопками */
.div5_mini_div:nth-child(1),
.div5_mini_div:nth-child(3) {
    background: #972727;
}

.div5_mini_div:nth-child(1) .div5_mini_div_text,
.div5_mini_div:nth-child(3) .div5_mini_div_text {
    color: #ffffff;
    font-family: InvolveRegular;
}

.div5_mini_div:nth-child(1) .div5_mini_div_button,
.div5_mini_div:nth-child(3) .div5_mini_div_button {
    background-color: #D9C07C;
    color: black;
    border: none;
    font-family: InvolveRegular;
}

.div5_mini_div:nth-child(1) .div5_mini_div_button:hover,
.div5_mini_div:nth-child(3) .div5_mini_div_button:hover {
    background-color: #c5a95f;
    transform: translateY(-2px);
}

/* Второй блок - золотой с красной кнопкой */
.div5_mini_div:nth-child(2) {
    background: #D9C07C;
}

.div5_mini_div:nth-child(2) .div5_mini_div_text {
    color: #333;
    font-family: InvolveRegular;
}

.div5_mini_div:nth-child(2) .div5_mini_div_button {
    background-color: #972727;
    color: white;
    border: none;
    font-family: InvolveRegular;
}

.div5_mini_div:nth-child(2) .div5_mini_div_button:hover {
    background-color: #7a1f1f;
    transform: translateY(-2px);
}

/* Текст и кнопки */
.div5_mini_div_text {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: left;
    margin: 0;
    line-height: 1.3;
}

.div5_mini_div_button {
    align-self: flex-end;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

/* Адаптация для больших планшетов */
@media (max-width: 1200px) {
    .div5_mini {
        gap: 25px;
    }
    
    .div5_mini_div {
        width: 320px;
        height: 230px;
    }
}

/* Адаптация для планшетов */
@media (max-width: 992px) {
    .div5_mini_div {
        width: 300px;
        height: 220px;
        padding: 20px;
    }
    
    .div5_mini_div_text {
        font-size: 1.4rem;
    }
}

/* Адаптация для маленьких планшетов */
@media (max-width: 768px) {
    .div5 {
        padding: 40px 15px;
    }
    
    .div5_head {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .div5_mini {
        gap: 20px;
    }
    
    .div5_mini_div {
        width: 100%;
        max-width: 400px;
        height: 200px;
    }
    
    .div5_mini_div_text {
        font-size: 1.3rem;
    }
    
    .div5_mini_div_button {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

/* Адаптация для мобильных устройств */
@media (max-width: 576px) {
    .div5_head {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .div5_mini_div {
        height: 180px;
        padding: 15px;
    }
    
    .div5_mini_div_text {
        font-size: 1.2rem;
    }
    
    .div5_mini_div_button {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
}

/* Адаптация для очень маленьких устройств */
@media (max-width: 400px) {
    .div5_mini_div {
        height: 160px;
        padding: 12px;
    }
    
    .div5_mini_div_text {
        font-size: 1.1rem;
    }
    
    .div5_mini_div_button {
        padding: 7px 16px;
        font-size: 0.85rem;
    }
}








































.div6 {
    padding: 80px 20px;

}

.div6_head {
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 100px;
}

.div6_head_text {
    text-align: center;
    font-size: 4.2rem;
    color: #972727;
    font-weight: bold;
    font-family: InvolveRegular;
    margin-bottom: 60px;
}

.div6_mini {
    display: flex;
    align-items: center;
    gap: 60px;
}

.div6_mini_reverse {
    flex-direction: row-reverse;
}

.div6_mini_img {
    flex: 1;
}

.div6_mini_img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(151, 39, 39, 0.3);
}

.div6_mini_text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.div6_mini_text_head {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    font-family: InvolveRegular;
    line-height: 1.3;
    margin: 0;
}
.div6_mini_text_head2 {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    font-family: InvolveRegular;
    line-height: 1.3;
    margin: 0;
    text-align: right;
}

.div6_mini_text_mini {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.div6_mini_text_mini2 {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    justify-content: flex-end;
}

.stick {
    width: 4px;
    height: 120px;
    background: #972727;
    border-radius: 2px;
    flex-shrink: 0;
}
.stick2 {
    width: 4px;
    height: 120px;
    background: #972727;
    border-radius: 2px;
    flex-shrink: 0;
    order: 2; 
}

.div6_mini_text_mini_text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
    font-family: InvolveRegular;
}
.div6_mini_text_mini_text2 {
     font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
    font-family: InvolveRegular;
    text-align: right; /* Выравнивание по правому краю */
    order: 1;
}

.div6_mini_text_button {
    align-items: center;   
    padding: 15px 35px;
    background-color: #972727;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: InvolveRegular;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(151, 39, 39, 0.3);
}
.div6_mini_text_button2 {
    align-self: flex-end; /* Кнопка выравнивается по правому краю */
    padding: 15px 35px;
    background-color: #972727;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: InvolveRegular;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(151, 39, 39, 0.3);
}

.div6_mini_text_button:hover {
    background-color: #7a1f1f;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(151, 39, 39, 0.4);
}
.div6_mini_text_button2:hover {
    background-color: #7a1f1f;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(151, 39, 39, 0.4);
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .div6_head_text {
    font-size: 3.5rem;
    
}
    .div6_mini,
    .div6_mini_reverse {
        flex-direction: column;
        gap: 30px;
    }
    
    .div6_mini_img img {
        height: 250px;
    }
    
    .div6_mini_text_head {
        font-size: 1.7rem;
        text-align: center;
    }
    .div6_mini_text_head2 {
        font-size: 1.7rem;
        text-align: center;
    }
    
    .div6_mini_text_mini {
        gap: 15px;
    }
    .div6_mini_text_mini2 {
        gap: 15px;
    }
    
    .stick {
        visibility: hidden;
    }
    .stick2 {
        visibility: hidden;
    }
    
    .div6_mini_text_button {
        align-self: center;
        padding: 12px 30px;
    }
    .div6_mini_text_button2 {
        align-self: center;
        padding: 12px 30px;
    }
}


/* Адаптация для маленьких мобильных устройств */
@media (max-width: 480px) {
    .div6 {
        padding: 40px 10px;
    }
    
    .div6_mini_img img {
        height: 280px;
    }
    
    .div6_mini_text_head {
        font-size: 1.5rem;
    }
    
    .div6_mini_text_mini {
        flex-direction: column;
        gap: 12px;
    }
    
    .stick {
        visibility: hidden;
    }
    .stick2 {
        visibility: hidden;
    }
    
    .div6_mini_text_mini_text {
        font-size: 0.95rem;
        justify-content: center;
    }
    
    .div6_mini_text_button {
        padding: 10px 25px;
        font-size: 1rem;
    }
   
}































.div7 {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.div7_img1 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.div7_container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.div7_1 {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
}

.div7_img2 {
    width: 500px;
    height: 500px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.div7_2 {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.div7_head {
    font-size: 4.5rem;
    margin-top: -0%;
    font-weight: bold;
    color: #972727;
    font-family: InvolveRegular;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.div7_text {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    font-family: InvolveRegular;
    font-style: italic;
    margin-top: -15%;
    border-radius: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    border-left: 4px solid #D9C07C;
    width: 100%;
    max-width: 500px;
}

.button7 {
    background-color: #972727;
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(151, 39, 39, 0.3);
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.button7:hover {
    background-color: #7a1f1f;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(151, 39, 39, 0.4);
}


/* Адаптация для планшетов */
@media (max-width: 1040px) {
    .div7 {
        height: auto;
        height: 800px;
        padding: 60px 0;
    }
    
    .div7_container {
        flex-direction: column;
        text-align: center;
    }
    .div7_1{
        margin-top: -30%;
    }
    .div7_img2 {
        width: 350px;
        height: 350px;
    }
    
    .div7_2 {
        align-items: center;
        text-align: center;
        flex: 0 0 auto;
        height: 200px;
        margin-top: 0%;
    }
    
    .div7_head {
        color: #972727;
        text-shadow: none;

    }
    
    .div7_text {
        color: #666;
        text-shadow: none;
        max-width: 60%;
        height: 200px;
        margin-top: -10%;
    }
}


/* Адаптация для мобильных устройств */
@media (max-width: 820px) {
    .div7 {
        height: auto;
        height: 900px;
        padding: 60px 0;
    }
    .div7_2 {
        height: 400px;
    }
    .button7{
        margin-top: -20%;
    }
    .div7_container {
        gap: 25px;
        margin-top: 5%;
    }
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .div7 {
        height: auto;
        height: 1100px;
        padding: 60px 0;
    }
    .div7_2 {
        height: 500px;
    }
    .div7_container {
        gap: 25px;
        margin-top: -10%;
    }
    .button7{
        margin-top: 95%;
    }
    
    .div7_img2 {
        width: 350px;
        height: 350px;
        border-width: 4px;
    }
    
    .div7_head {
        font-size: 3rem;
    }
    
    .div7_text {
        font-size: 1.3rem;
        padding: 20px;
    }
}


@media (max-width: 656px) {
    .div7 {
        height: auto;
        height: 1100px;
        padding: 60px 0;
    }
    .button7{
        margin-top: 75%;
    }
     .div7_2 {
        height: 600px;
    }
    .div7_container {
        gap: 25px;
        margin-top: 5%;
    }
}

@media (max-width: 625px) {
    .div7 {
        height: auto;
        height: 1350px;
        padding: 60px 0;
    }
    
    .div7_container {
        gap: 25px;
        margin-top: -15%;
    }
    
    .div7_img2 {
        width: 350px;
        height: 350px;
        border-width: 4px;
    }
    
    .div7_head {
        font-size: 2.5rem;
    }
    
    .div7_text {
        font-size: 1.4rem;
        padding: 20px;
    }
    .button7{
        margin-top: 175%;
    }
}



@media (max-width: 525px) {
    .div7 {
        height: auto;
        height: 1500px;
        padding: 60px 0;
    }
    .div7_container {
        gap: 25px;
        margin-top: -50%;
    }
    .button7{
        margin-top: 225%;
    }
    .div7_img2 {
        width: 350px;
        height: 350px;
        border-width: 4px;
    }
    
    .div7_head {
        font-size: 3rem;
    }
    
    .div7_text {
        font-size: 1.4rem;
        padding: 10px;
    }

}

/* Адаптация для маленьких мобильных устройств */
@media (max-width: 480px) {
    .div7 {
        height: auto;
        height: 1600px;
        padding: 60px 0;
    }
    .div7_container {
        gap: 25px;
        margin-top: -110%;
    }
    
    .div7_img2 {
        width: 350px;
        height: 350px;
        border-width: 4px;
    }
    
    .div7_head {
        font-size: 3rem;
    }
    
    .div7_text {
        font-size: 1.5rem;
        padding: 30px;
    }
    .button7{
        margin-top: 305%;
    }
}


@media (max-width: 425px) {
    .div7 {
        height: auto;
        height: 1400px;
        padding: 60px 0;
    }
    .div7_container {
        gap: 25px;
        margin-top: -80%;
    }
    
    .div7_img2 {
        width: 350px;
        height: 350px;
        border-width: 4px;
    }
    
    .div7_head {
        font-size: 3rem;
        margin-bottom: 1px;
    }
    
    .div7_text {
        font-size: 1.2rem;
        padding: 30px;
    }
    .button7{
        margin-top: 200%;
    }
}
























/* Стили для контейнера слайдера */
.div8 {
    /*background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);*/
    padding: 80px 20px;
    margin: 80px 0;
}

.div8 .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.div8 h1 {
    color: #972727;
    margin-bottom: 50px;
    font-size: 2.8rem;
    font-family: InvolveRegular;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Исправленные стили для слайдера */
.div8 .slider-container {
    position: relative;
    overflow: hidden;
    background: #D9C07C;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    padding: 60px 40px;
    margin: 0 auto;
    max-width: 900px;
}

.div8 .slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.div8 .slide {
    min-width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.div8 .comment {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #e9ecef;
    position: relative;
}

.div8 .comment:before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 60px;
    color: #6a11cb;
    opacity: 0.2;
    font-family: Georgia, serif;
}

.div8 .rating {
    color: #ffc107;
    margin: 0 0 25px 0;
    font-size: 28px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.div8 .text {
    font-size: 20px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 30px;
    font-style: italic;
    font-family: InvolveRegular;
    position: relative;
    z-index: 2;
}

.div8 .author {
    font-weight: bold;
    color: #972727;
    font-size: 20px;
    font-family: InvolveRegular;
    margin-top: 25px;
    position: relative;
    padding-top: 15px;
}

.div8 .author:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #972727;
}

.div8 .dots {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 15px;
}

.div8 .dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 2x solid red;
    cursor: pointer;
    transition: all 0.3s ease;
}
.dot{
    border: 1px solid #972727;
}

.div8 .dot.active {
    background: #972727;
    transform: scale(1.3);
}

.div8 .dot:hover {
    background: #972727;
}

.div8 .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #972727;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.div8 .nav-btn:hover {
    background: #972727;
    transform: translateY(-50%) scale(1.1);
}

.div8 .prev {
    left: 20px;
}

.div8 .next {
    right: 20px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .div8 {
        padding: 60px 15px;
        margin: 60px 0;
    }
    
    .div8 h1 {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    
    .div8 .slider-container {
        padding: 40px 20px;
    }
    
    .div8 .comment {
        padding: 30px 20px;
    }
    
    .div8 .comment:before {
        font-size: 40px;
        top: 15px;
        left: 20px;
    }
    
    .div8 .rating {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .div8 .text {
        font-size: 18px;
        margin-bottom: 25px;
        line-height: 1.6; /* Уменьшаем межстрочный интервал для большего количества строк */
        text-align: justify; /* Выравнивание по ширине для лучшего восприятия */
        hyphens: auto; /* Перенос слов при необходимости */
    }
    
    .div8 .author {
        font-size: 18px;
    }
    
    .div8 .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .div8 .prev {
        left: 10px;
    }
    
    .div8 .next {
        right: 10px;
    }
}

@media (max-width: 600px) {
    .div8 .text {
        font-size: 17px;
        line-height: 1.5;
        text-align: justify;
    }
}

@media (max-width: 480px) {
    .div8 .slider-container {
        padding: 30px 15px;
    }
    
    .div8 .comment {
        padding: 25px 15px;
    }
    
    .div8 .comment:before {
        font-size: 32px;
        top: 10px;
        left: 15px;
    }
    
    .div8 .rating {
        font-size: 22px;
    }
    
    .div8 .text {
        font-size: 10px; /* Еще меньше размер шрифта */
        line-height: 1.4; /* Еще меньше межстрочный интервал */
        text-align: justify; /* Выравнивание по ширине */
        margin-bottom: 20px;
        word-spacing: -0.5px; /* Немного уменьшаем расстояние между словами */
        letter-spacing: -0.2px; /* Немного уменьшаем расстояние между буквами */
    }
    
    .div8 .author {
        font-size: 16px;
    }
}

/* Дополнительные очень маленькие экраны */
@media (max-width: 360px) {
    .div8 .text {
        font-size: 15px;
        line-height: 1.3;
        word-spacing: -1px;
        letter-spacing: -0.3px;
    }
    
    .div8 .comment {
        padding: 20px 12px;
    }
    
    .div8 .slider-container {
        padding: 25px 10px;
    }
}

































.application-section {
    display: flex;
    flex-direction: row;
    gap: 40px;
    justify-content: center;
    padding: 20px;
}

.application-info {
    background-color: #f0f0f0;
    width: 45%;
    height: 300px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.application-buttons {
    background-color: #f0f0f0;
    width: 45%;
    height: 300px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px;
    box-sizing: border-box;
}

.application-title {
    font-size: 35px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    font-family: InvolveRegular;
}

.application-subtitle {
    font-size: 16px;
    color: #666;
    text-align: center;
    line-height: 1.4;
    font-family: InvolveRegular;
}

.btn-primary {
    background-color: #972727;
    color: white;
    border: none;
    padding: 20px 30px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: InvolveRegular;
    min-width: 160px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background-color: white;
    border: 1px solid #972727;
    color: #972727;
}

.btn-outline {
    background-color: white;
    border: 2px solid #972727;
    padding: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-outline:hover {
    background-color: #fff0f0;
}

.btn-icon {
    width: 35px;
    height: 35px;
    display: block;
}

/* Адаптация для планшетов */
@media (max-width: 1024px) {
    .application-section {
        gap: 30px;
        padding: 15px;
    }
    
    .application-info,
    .application-buttons {
        width: 48%;
        height: 280px;
    }
    
    .application-title {
        font-size: 28px;
    }
    
    .btn-primary {
        padding: 18px 25px;
        font-size: 16px;
        height: 65px;
        min-width: 140px;
    }
    
    .btn-outline {
        width: 65px;
        height: 65px;
    }
    
    .btn-icon {
        width: 30px;
        height: 30px;
    }
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .application-section {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }
    
    .application-info,
    .application-buttons {
        width: 100%;
        height: auto;
        min-height: 200px;
    }
    
    .application-info {
        padding: 30px 20px;
    }
    
    .application-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 30px 20px;
    }
    
    .application-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .application-subtitle {
        font-size: 14px;
    }
    
    .btn-primary {
        width: 100%;
        max-width: 280px;
        height: 60px;
        font-size: 16px;
        min-width: auto;
    }
    
    .btn-outline {
        width: 60px;
        height: 60px;
    }
    
    .btn-icon {
        width: 28px;
        height: 28px;
    }
}

/* Адаптация для очень маленьких экранов */
@media (max-width: 480px) {
    .application-section {
        padding: 10px;
        gap: 15px;
    }
    
    .application-info,
    .application-buttons {
        min-height: 180px;
        border-radius: 12px;
    }
    
    .application-title {
        font-size: 20px;
    }
    
    .application-subtitle {
        font-size: 13px;
    }
    
    .btn-primary {
        height: 55px;
        font-size: 15px;
        border-radius: 8px;
    }
    
    .btn-outline {
        width: 55px;
        height: 55px;
        border-radius: 8px;
    }
    
    .btn-icon {
        width: 25px;
        height: 25px;
    }
}



































.div10 {
    background-color: #972727;
    color: white;
    padding: 40px 20px 30px 20px; 
    font-family: InvolveRegular;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

.up {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px; /* Увеличил отступ снизу */
    flex-wrap: wrap;
    gap: 25px;
}

.up img {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.div10_text {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.div10 a{
    text-decoration: none;
    color: white;
}
.div10_text p {
    margin: 0;
    font-size: 20px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.div10_text p:hover {
    opacity: 0.8;
}

/* Новый контейнер для центрирования контактов */
.contact-center {
    display: flex;
    justify-content: center;
    margin: -40px 0 30px 0; /* Поднял контакты выше */
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.social-icons {
    display: flex;
    gap: 25px; /* Увеличил расстояние между иконками */
    align-items: center;
    margin: 10px 0;
}

.social-icons img {
    width: 45px; /* Увеличил размер иконок */
    height: 45px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.1);
}

.phone-number {
    margin: 0;
    font-size: 24px !important; /* Крупный размер телефона */
    font-weight: 600 !important;
}

.contact-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.contact-links p {
    margin: 0;
    font-size: 18px; /* Увеличил размер текста контактов */
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.down {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 20px;
    margin-top: auto;
}

.down p {
    margin: 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .div10 {
        padding: 30px 15px 25px 15px;
        min-height: 250px;
    }
    
    .up {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        align-items: center;
        margin-bottom: 25px;
    }
    
    .div10_text {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .div10_text p {
        font-size: 18px;
    }
    
    .contact-center {
        margin: 15px 0 30px 0;
    }
    
    .phone-number {
        font-size: 22px !important;
    }
    
    .contact-links p {
        font-size: 16px;
    }
    
    .up img {
        width: 70px;
        height: 70px;
    }
    
    .social-icons {
        gap: 20px;
    }
    
    .social-icons img {
        width: 40px;
        height: 40px;
    }
    
    .down {
        text-align: center;
        padding-top: 20px;
    }
    
    .down p {
        font-size: 14px;
    }
}

/* Адаптация для очень маленьких экранов */
@media (max-width: 480px) {
    .div10 {
        padding: 25px 10px 20px 10px;
        min-height: 220px;
    }
    
    .div10_text p {
        font-size: 16px;
    }
    
    .phone-number {
        font-size: 20px !important;
    }
    
    .contact-links p {
        font-size: 14px;
    }
    
    .down p {
        font-size: 13px;
    }
    
    .up img {
        width: 60px;
        height: 60px;
    }
    
    .social-icons {
        gap: 15px;
    }
    
    .social-icons img {
        width: 35px;
        height: 35px;
    }
}




























.primary-btn-001 {
            background: white;
            color: #6a11cb;
            border: none;
            padding: 15px 30px;
            border-radius: 50px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
        }
        
        .primary-btn-001:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
        }
        
        .modal-container-001 {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        
        .modal-container-001.active {
            opacity: 1;
            visibility: visible;
        }
        
        .modal-window-001 {
            background: white;
            border-radius: 20px;
            padding: 40px;
            max-width: 450px;
            width: 100%;
            text-align: center;
            position: relative;
            transform: translateY(50px);
            opacity: 0;
            transition: all 0.5s ease;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
        }
        
        .modal-container-001.active .modal-window-001 {
            transform: translateY(0);
            opacity: 1;
        }
        
        .close-btn-001 {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 30px;
            height: 30px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .close-btn-001:before, .close-btn-001:after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 20px;
            height: 2px;
            background: #999;
            transform: translate(-50%, -50%) rotate(45deg);
        }
        
        .close-btn-001:after {
            transform: translate(-50%, -50%) rotate(-45deg);
        }
        
        .close-btn-001:hover:before, .close-btn-001:hover:after {
            background: #ff4757;
        }
        
        .modal-icon-001 {
            font-size: 60px;
            margin-bottom: 20px;
            animation: pulse-anim-001 1.5s infinite;
        }
        
        @keyframes pulse-anim-001 {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }
        
        .modal-text-001 {
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 30px;
            color: #333;
        }
        
        .modal-actions-001 {
    display: flex;
    justify-content: center;
    gap: 20px;
}
        
        .action-btn-001 {
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 180px;
}

        
       .action-primary-001, .action-secondary-001 {
    background: #972727;
    color: white;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
}
        .action-primary-001:hover, .action-secondary-001:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 71, 87, 0.6);
    background: #972727;
}


















.primary-btn-002 {
            background: white;
            color: #6a11cb;
            border: none;
            padding: 15px 30px;
            border-radius: 50px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
        }
        
        .primary-btn-002:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
        }
        
        .modal-container-002 {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        
        .modal-container-002.active {
            opacity: 1;
            visibility: visible;
        }
        
        .modal-window-002 {
            background: white;
            border-radius: 20px;
            padding: 40px;
            max-width: 450px;
            width: 100%;
            text-align: center;
            position: relative;
            transform: translateY(50px);
            opacity: 0;
            transition: all 0.5s ease;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
        }
        
        .modal-container-002.active .modal-window-002 {
            transform: translateY(0);
            opacity: 1;
        }
        
        .close-btn-002 {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 30px;
            height: 30px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .close-btn-002:before, .close-btn-002:after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 20px;
            height: 2px;
            background: #999;
            transform: translate(-50%, -50%) rotate(45deg);
        }
        
        .close-btn-002:after {
            transform: translate(-50%, -50%) rotate(-45deg);
        }
        
        .close-btn-002:hover:before, .close-btn-002:hover:after {
            background: #ff4757;
        }
        
        .modal-icon-002 {
            font-size: 60px;
            margin-bottom: 20px;
            animation: pulse-anim-001 1.5s infinite;
        }
        
        @keyframes pulse-anim-001 {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }
        
        .modal-text-002 {
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 30px;
            color: #333;
        }
        
        .modal-actions-002 {
    display: flex;
    justify-content: center;
    gap: 20px;
}
        
        .action-btn-002 {
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 180px;
}

        
       .action-primary-002, .action-secondary-002 {
    background: #972727;
    color: white;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
}
        .action-primary-002:hover, .action-secondary-002:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 71, 87, 0.6);
    background: #972727;
}














