body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

@font-face {
    font-family: 'InvolveRegular'; 
    src: url(../fonts/Involve-Regular.ttf); 
}

.div1 {
	position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*background-color: red;*/
    padding: 0 20px;
    height: 100px;
    position: relative;
}

.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;
    align-items: flex;
    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;
    }
}






















.head_text {
    color: #972727;
    font-size: 50px;
    font-weight: bold;
    text-align: left;
    font-family: InvolveRegular, sans-serif;
    position: relative;
    max-width: 1200px;
    margin-left: 100px;
}

/* Адаптация для планшетов (1024px и меньше) */
@media (max-width: 1024px) {
    .head_text {
        font-size: 28px;
        margin: 35px 0 22px 0;
        margin-left: auto;
    margin-right: auto;
        padding: 0 15px;
    }

}

/* Адаптация для средних устройств (768px и меньше) */
@media (max-width: 768px) {
    .head_text {
        font-size: 26px;
        margin: 30px 0 20px 0;
        padding: 0 15px;
        margin-left: auto;
    margin-right: auto;

    }
}

/* Адаптация для мобильных устройств (480px и меньше) */
@media (max-width: 480px) {
    .head_text {
        font-size: 24px;
        margin: 25px 0 18px 0;
        padding: 0 12px;
        margin-left: auto;
    margin-right: auto;
    }
    
}

/* Адаптация для очень маленьких экранов (360px и меньше) */
@media (max-width: 360px) {
    .head_text {
        font-size: 22px;
        margin: 20px 0 15px 0;
        padding: 0 10px;
    }
    margin-left: auto;
    margin-right: auto;
}


















.div2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1400px; /* Увеличили максимальную ширину */
    margin: 50px auto;
    padding: 0 40px; /* Увеличили боковые отступы */
}

.div2_text {
    flex: 1;
    font-size: 30px;
    line-height: 1.6;
    color: #2c3e50;
    font-family: InvolveRegular, sans-serif;
    text-align: left;
    margin: 0;
    margin-left: 100px;
    max-width: 900px; /* Добавили максимальную ширину для текста */
    min-width: 400px; /* Минимальная ширина текстового блока */
}

.div2_img {
    width: 500px;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    flex-shrink: 0;
    margin-right: 50px; /* Добавили отступ справа для картинки */
}

/* Адаптация для планшетов (1024px и меньше) */
@media (max-width: 1024px) {
    .div2 {
        max-width: 100%; /* Изменим на 100% */
        gap: 40px;
        padding: 0 30px;
        margin: 40px auto;
        justify-content: flex-start; /* Изменим выравнивание */
    }
    
    .div2_text {
        font-size: 23px;
        margin-left: 30px; /* Уменьшим отступ слева */
        max-width: 45%; /* Процентная ширина вместо фиксированной */
        min-width: 300px;
        flex-shrink: 1;
    }
    
    .div2_img {
        width: 45%; /* Процентная ширина */
        max-width: 400px;
        height: 300px;
        flex-shrink: 0;
        margin-right: 30px; /* Добавим отступ справа */
    }
}

/* Адаптация для средних устройств (768px и меньше) */
@media (max-width: 768px) {
    .div2 {
        flex-direction: column;
        gap: 30px;
        padding: 0 20px;
        max-width: 100%;
    }
    
    .div2_text {
        font-size: 24px;
        margin-left: 0;
        max-width: 100%;
        min-width: auto;
        text-align: center;
        order: 2;
    }
    
    .div2_img {
        width: 100%;
        max-width: 500px;
        height: 250px;
        margin-right: 0;
        order: 1;
    }
}

/* Адаптация для мобильных устройств (480px и меньше) */
@media (max-width: 480px) {
    .div2 {
        padding: 0 15px;
        gap: 25px;
    }
    
    .div2_text {
        font-size: 20px;
        line-height: 1.5;
    }
    
    .div2_img {
        height: 200px;
        border-radius: 10px;
    }
}
















.operator_text {
    text-align: center;
    margin: 40px auto;
    padding: 30px 40px;
    font-size: 25px;
    line-height: 1.6;
    color: #2c3e50;
    font-family: InvolveRegular, sans-serif;
    max-width: 1000px;
    font-weight: 400;
}

/* Адаптация для планшетов (1024px и меньше) */
@media (max-width: 1024px) {
    .operator_text {
        font-size: 20px;
        padding: 25px 30px;
        margin: 35px auto;
        max-width: 900px;
        line-height: 1.5;
    }
}

/* Адаптация для средних устройств (768px и меньше) */
@media (max-width: 768px) {
    .operator_text {
        font-size: 17px;
        padding: 20px 25px;
        margin: 30px 20px;
        max-width: 100%;
        line-height: 1.5;
    }
}

/* Адаптация для мобильных устройств (480px и меньше) */
@media (max-width: 480px) {
    .operator_text {
        font-size: 16px;
        padding: 18px 20px;
        margin: 25px 15px;
        line-height: 1.4;
    }
}

/* Адаптация для очень маленьких экранов (360px и меньше) */
@media (max-width: 360px) {
    .operator_text {
        font-size: 15px;
        padding: 15px;
        margin: 20px 10px;
        line-height: 1.4;
    }
}





















.programs-container {
    margin: 50px auto;
    max-width: 900px;
    padding: 0 20px;
    text-align: center;
    margin-bottom: 100px;
}

.programs-title {
    font-size: 42px;
    font-weight: bold;
    color: #972727;
    margin-bottom: 30px;
    padding-bottom: 15px;
    font-family: InvolveRegular, sans-serif;
    display: inline-block;
}

.programs-list {
    list-style: none;
    counter-reset: program-counter;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
    text-align: left;
}

.programs-list li {
    counter-increment: program-counter;
    margin-bottom: 20px;
    padding: 20px 25px 20px 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border-left: 5px solid #D9C07C;
    font-family: InvolveRegular, sans-serif;
    font-size: 22px;
    line-height: 1.7;
    color: #2c3e50;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.programs-list li:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.programs-list li::before {
    content: counter(program-counter);
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #D9C07C;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Адаптация для планшетов (1024px и меньше) */
@media (max-width: 1024px) {
    .programs-container {
        max-width: 800px;
        margin: 40px auto;
    }
    
    .programs-title {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    .programs-list li {
        font-size: 20px;
        padding: 18px 22px 18px 70px;
        margin-bottom: 18px;
    }
    
    .programs-list li::before {
        width: 35px;
        height: 35px;
        font-size: 18px;
        left: 22px;
    }
}

/* Адаптация для мобильных устройств (768px и меньше) */
@media (max-width: 768px) {
    .programs-container {
        max-width: 100%;
        padding: 0 15px;
        margin: 35px auto;
    }
    
    .programs-title {
        font-size: 26px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    .programs-list {
        max-width: 100%;
    }
    
    .programs-list li {
        font-size: 18px;
        padding: 16px 20px 16px 60px;
        margin-bottom: 16px;
        line-height: 1.6;
    }
    
    .programs-list li::before {
        width: 32px;
        height: 32px;
        font-size: 16px;
        left: 18px;
    }
}

/* Адаптация для маленьких мобильных (480px и меньше) */
@media (max-width: 480px) {
    .programs-container {
        padding: 0 10px;
        margin: 30px auto;
    }
    
    .programs-title {
        font-size: 24px;
        margin-bottom: 18px;
        padding-bottom: 10px;
    }
    
    .programs-list li {
        font-size: 16px;
        padding: 14px 16px 14px 50px;
        margin-bottom: 14px;
        line-height: 1.5;
    }
    
    .programs-list li::before {
        width: 28px;
        height: 28px;
        font-size: 14px;
        left: 14px;
    }
}

/* Адаптация для очень маленьких экранов (360px и меньше) */
@media (max-width: 360px) {
    .programs-list li {
        font-size: 15px;
        padding: 12px 14px 12px 45px;
        margin-bottom: 12px;
    }
    
    .programs-list li::before {
        width: 25px;
        height: 25px;
        font-size: 13px;
        left: 12px;
    }
}
































.div3 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: calc(100% - 400px);
    margin: 40px 200px;
    overflow: hidden;
}

.div3 img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Скругление для картинок в углах */
.div3 img:nth-child(1) {
    border-top-left-radius: 15px;
}

.div3 img:nth-child(4) {
    border-top-right-radius: 15px;
}

.div3 img:nth-child(5) {
    border-bottom-left-radius: 15px;
}

.div3 img:nth-child(8) {
    border-bottom-right-radius: 15px;
}


/* Адаптация для планшетов (1024px и меньше) */
@media (max-width: 1024px) {
    .div3 {
        grid-template-columns: repeat(3, 1fr);
        width: calc(100% - 200px);
        margin: 35px 100px;
    }
    
    .div3 img {
        height: 180px;
    }
    
    /* Обновляем скругление для 3 колонок */
    .div3 img:nth-child(1) {
        border-top-left-radius: 15px;
    }
    
    .div3 img:nth-child(3) {
        border-top-right-radius: 15px;
    }
    
    .div3 img:nth-child(7) {
        border-bottom-left-radius: 15px;
    }
    
    .div3 img:nth-child(9) {
        border-bottom-right-radius: 15px;
    }
    
    .div3 img:nth-child(4),
    .div3 img:nth-child(8) {
        border-radius: 0;
    }
}

/* Адаптация для мобильных устройств (768px и меньше) */
@media (max-width: 768px) {
    .div3 {
        grid-template-columns: repeat(2, 1fr);
        width: calc(100% - 100px);
        margin: 30px 50px;
    }
    
    .div3 img {
        height: 160px;
    }
    
    /* Обновляем скругление для 2 колонок */
    .div3 img:nth-child(1) {
        border-top-left-radius: 15px;
    }
    
    .div3 img:nth-child(2) {
        border-top-right-radius: 15px;
    }
    
    .div3 img:nth-child(7) {
        border-bottom-left-radius: 15px;
    }
    
    .div3 img:nth-child(8) {
        border-bottom-right-radius: 15px;
    }
    
    .div3 img:nth-child(3),
    .div3 img:nth-child(4),
    .div3 img:nth-child(5),
    .div3 img:nth-child(6) {
        border-radius: 0;
    }
}

/* Адаптация для маленьких мобильных (480px и меньше) */
@media (max-width: 480px) {
    .div3 {
        grid-template-columns: 1fr;
        width: calc(100% - 60px);
        margin: 25px 30px;
    }
    
    .div3 img {
        height: 150px;
    }
    
    /* Обновляем скругление для 1 колонки */
    .div3 img:nth-child(1) {
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
    }
    
    .div3 img:nth-child(8) {
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
    }
    
    .div3 img:nth-child(2),
    .div3 img:nth-child(3),
    .div3 img:nth-child(4),
    .div3 img:nth-child(5),
    .div3 img:nth-child(6),
    .div3 img:nth-child(7) {
        border-radius: 0;
    }
}

/* Адаптация для очень маленьких экранов (360px и меньше) */
@media (max-width: 360px) {
    .div3 {
        width: calc(100% - 40px);
        margin: 20px 20px;
    }
    
    .div3 img {
        height: 130px;
    }
}
























.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;
    }
}
















/* Модальное окно */
/* Модальное окно */
.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%;
}