.slider__wrap{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 50%;
}
.swiper {
    width: 80%;
    height: 370px;
    border: 2px solid #810002;
    border-radius: 20px;
    margin-bottom: 69px;
}
.swiper-pagination-bullet-active{
    background-color: #810002 !important;
}
.swiper-button-prev{
    position: static !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 19px;
    background-color: #810002;
    color: #F7F8FA !important;
    z-index: 5 !important;
}
.swiper-button-next{
    position: static !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 19px;
    background-color: #810002;
    color: #F7F8FA !important;
    z-index: 5 !important;
}

.red__line{
    width: 50%;
    height: 1px;
    background-color: #810002;
}

.about__company{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 210px;
}
.company__text{
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 40%;
}
.company__title{
    color: #810002;
    font-size: 70px;
    font-weight: 700;
    width: 100%;
    text-align: center;
}
.company__description{
    width: 80%;
    text-align: center;
    color: #555555;
    font-size: 30px;
}
.about__company img{
    position: absolute;
    right: 0px;
}

.partner{
    margin-top: 226px;
}
.partner__title{
    color: #810002;
    font-size: 70px;
    font-weight: 700;
}
.partner__list{
    margin-top: 110px;
    list-style: none;
    display: flex;
    column-gap: 100px;
    row-gap: 50px;
    flex-wrap: wrap;
    width: 100%;
}

.our__place{
    display: flex;
    justify-content: space-between;
    margin: 100px auto;
}
.place__info{
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 48px;
}
.place__info{
    text-align: center;
    color: #810002;
    font-size: 50px;
    font-weight: 700;   
    width: 40%;
    border-radius: 20px;
}
.map{
    width: 50%;
    border-radius: 20px;
}
.map__content{
    width: 100%;
}

.hidden__section{
    display: none;
}
.modal__catalog{
    background-color: #ffffff;
    height: 1000px;
    width: 31%;
    position: absolute;
    top: 0;
    z-index: 10;
    border-right: 4px solid #810002;
}
.modal__title{
    width: 308px;
    height: 48px;
    background-color: #810002;
    border-radius: 0 0 10px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    font-size: 25px;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    transition: 0.5s;
}
.modal__title:hover{
    background-color: #F7F8FA;
    color: #8F090B;
    border: 3px solid #8F090B;
}
.title__wrapper{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.catalog__place{
    display: flex;
}
.place__list{
    width: 324px;
    margin: 0 0 0 34px;
    list-style: none;
}
.place__list__item{
    margin-top: 11px;
}
.place__list__item a{
    text-decoration: none;
    color: #333333;
    font-size: 17px;
    font-weight: 600;
    transition: 0.65s;
}
.place__list__item a:hover{
    color: #810002;
}
.line{
    height: 1100px;
    width: 3px;
    background-color: #810002;
    margin-left: 25px;
}
.modal__cross{
    width: 30px;
    cursor: pointer;
    position: relative;
    left: 30px;
}
.fone{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 7;
}

.feedback-sect{
    display: flex;
    justify-content: space-between;
}
.feedback__title{
    font-size: 55px;
    font-weight: 700;
    color: #810002;
    width: 90%;
    margin-bottom: 30px;
}
.feedback__info{
    font-size: 25px;
    font-weight: 500;
    color: #333333;
}
.feedback__palce{
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}
.number-input{
    width: 300px;
    height: 50px;
    border-radius: 10px;
    border: 2px solid #810002;
    outline: none;
    padding: 15px;
    box-sizing: border-box;
    font-size: 20px;
    font-weight: 500;
    color: #810002;
    margin-bottom: 10px;
}
.tool__disc{
    width: 625px;
    height: 150px;
    border-radius: 10px;
    border: 2px solid #810002;
    color: #810002;
    outline: none;
    padding: 15px;
    box-sizing: border-box;
    resize: none;
    font-size: 20px;
    font-weight: 500;
}
.submit__wrapper{
    display: flex;
    justify-content: space-between;
}

@media(max-width:1060px){
    .about__company{
        margin-top: 100px;
    }
    .our__place{
        flex-direction: column;
        align-items: center;
    }
    .place__info img{
        display: none;
    }
    .place__info{
        width: 540px;
        margin-bottom: 40px;
    }
}
@media(max-width:708px){
    .map{
        width: 100%;
    }
}
@media(max-width:430px){
    .company__title{
        font-size: 50px;
    }
    .place__title{
        font-size: 50px;
        width: 450px;
    }
}



.hidden__section {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hidden__section.active {
    opacity: 1;
    visibility: visible;
}

.modal__catalog {
    background-color: #ffffff;
    height: 100vh;
    width: 40%;
    position: relative;
    z-index: 10000;
    border-right: 4px solid #810002;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.hidden__section.active .modal__catalog {
    transform: translateX(0);
}

.modal__title {
    width: 308px;
    height: 48px;
    background-color: #810002;
    border-radius: 0 0 10px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    font-size: 25px;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    transition: 0.5s;
    text-decoration: none;
}

.modal__title:hover {
    background-color: #F7F8FA;
    color: #8F090B;
    border: 3px solid #8F090B;
}

.title__wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 2;
    border-bottom: 2px solid #f0f0f0;
}

.modal__cross {
    width: 30px;
    cursor: pointer;
    position: relative;
    left: 30px;
    transition: transform 0.2s ease;
}

.modal__cross:hover {
    transform: rotate(90deg);
}

.catalog__place {
    padding: 20px 0;
}

.place__list {
    width: 324px;
    margin: 0 0 0 34px;
    list-style: none;
    padding: 0;
}

.place__list__item {
    margin-top: 11px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.place__list__item:last-child {
    border-bottom: none;
}

.place__list__item a {
    text-decoration: none;
    color: #333333;
    font-size: 17px;
    font-weight: 600;
    transition: 0.3s;
    display: block;
    padding: 5px 10px;
    border-radius: 5px;
}

.place__list__item a:hover {
    color: #810002;
    background-color: rgba(129, 0, 2, 0.05);
    padding-left: 20px;
}

.fone {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hidden__section.active .fone {
    opacity: 1;
}

/* Добавим скроллбар для каталога */
.modal__catalog::-webkit-scrollbar {
    width: 6px;
}

.modal__catalog::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal__catalog::-webkit-scrollbar-thumb {
    background: #810002;
    border-radius: 3px;
}

/* Адаптивность для мобильных */
@media(max-width: 1060px) {
    .modal__catalog {
        width: 40%;
    }
}

@media(max-width: 768px) {
    .modal__catalog {
        width: 60%;
    }

    .subcategories {
        position: static;
        width: 100%;
        border: none;
        box-shadow: none;
        border-top: 1px solid #f0f0f0;
        border-bottom: 1px solid #f0f0f0;
        margin-top: 10px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        max-height: none;
        padding: 0;
    }
    
    .catalog-item.active .subcategories {
        display: block;
    }
    
    .category-link::after {
        opacity: 1;
        transform: rotate(0);
    }
    
    .catalog-item.active .category-link::after {
        transform: rotate(90deg);
    }
    
    /* Для мобильных делаем клик вместо наведения */
    .catalog-item {
        border-bottom: 1px solid #f0f0f0;
    }
    
    .catalog-item:last-child {
        border-bottom: none;
    }
    
    .category-link {
        cursor: pointer;
        padding-right: 40px;
    }
}

@media(max-width: 480px) {
    .modal__catalog {
        width: 85%;
    }
    
    .place__list {
        width: 90%;
        margin: 0 auto;
    }
    
    .title__wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .modal__cross {
        position: absolute;
        top: 20px;
        right: 20px;
        left: auto;
    }
}

.catalog-item {
    position: relative;
}

.category-link {
    display: block;
    text-decoration: none;
    color: #333333;
    font-size: 17px;
    font-weight: 600;
    transition: 0.3s;
    padding: 10px 15px;
    border-radius: 5px;
    position: relative;
    z-index: 1;
}

.category-link:hover {
    color: #810002;
    background-color: rgba(129, 0, 2, 0.05);
    padding-left: 25px;
}

/* Выпадающее меню подкатегорий */
.subcategories {
    position: absolute;
    left: 100%;
    top: 0;
    width: 350px;
    background-color: white;
    border: 2px solid #810002;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    max-height: 500px;
    overflow-y: auto;
    padding: 15px 0;
}

.subcategory-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.subcategory-list li {
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}

.subcategory-list li:last-child {
    border-bottom: none;
}

.subcategory-list a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #333333;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.subcategory-list a:hover {
    background-color: rgba(129, 0, 2, 0.05);
    color: #810002;
    border-left: 3px solid #810002;
    padding-left: 25px;
}

/* Стрелка для подкатегорий */
.category-link::after {
    content: "›";
    position: absolute;
    right: 15px;
    font-size: 20px;
    color: #810002;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.catalog-item:hover .category-link::after {
    opacity: 1;
    transform: rotate(90deg);
}

/* Показываем подкатегории при наведении */
.catalog-item:hover .subcategories {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Адаптивность для выпадающего меню */
@media(max-width: 1200px) {
    .subcategories {
        width: 300px;
    }
}

