#about-company-block {
    padding: 80px 145px 0 145px;
    box-sizing: border-box;
}

#about-company-block .about-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 30px;
    max-height: 500px;
    height: 100%;
}

#about-company-block .about-left-wrapper {
    width: 50%;
    display: flex;
}

#about-company-block .about-photo-wrapper {
    width: 100%; 
    height: 100%; 
    overflow: hidden; 
    border-radius: 10px; 
}

#about-company-block .about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

#about-company-block .about-right-wrapper {
    border-radius: 10px;
    padding: 40px;
    background: var(--bg-primary-main);
    max-height: 500px;
    height: 100%;
    overflow-x: hidden;
    width: 50%; 
    box-sizing: border-box; 
}

#about-company-block .about-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#about-company-block .about-description {
        white-space: break-spaces;
    } 

    #about-company-block .about-description p {
        font-family: var(--third-family);
font-weight: 400;
font-size: 16px;
line-height: 130%;
color: var(--text-primary-main);
    }

#about-company-block .about-card {
    border-radius: 10px;
    padding: 20px;
    background: var(--bg-primary-main);
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: space-between;
    height: auto;
}

#about-company-block .about-bottom-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
    width: 100%;
}

#about-company-block .about-title-desc-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Медиа-запрос для 1400px и выше - 3 карточки в ряд */
@media screen and (min-width: 1400px) {
    #about-company-block .about-bottom-wrapper {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Для экранов 1024px - 1399px - 2 карточки в ряд */
@media screen and (max-width: 1399px) and (min-width: 1024px) {
    #about-company-block .about-bottom-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 1200px) {
    #about-company-block {
        padding: 60px 100px;
    }
}

@media screen and (max-width: 1024px) {
    #about-company-block {
        padding: 50px 80px;
    }

    
    #about-company-block .about-wrapper {
        flex-direction: column;
        max-height: none;
    }
    
    #about-company-block .about-left-wrapper,
    #about-company-block .about-right-wrapper {
        width: 100% !important;
    }
    
    #about-company-block .about-bottom-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    #about-company-block {
        padding: 40px 20px;
    }
    
    #about-company-block .about-right-wrapper {
        padding: 20px;
    }
    
    #about-company-block .about-bottom-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media screen and (max-width: 480px) {
    #about-company-block {
        padding: 30px 15px;
    }
    
    #about-company-block .about-right-wrapper {
        padding: 15px;
    }
    
    #about-company-block .about-card {
        padding: 15px;
    }
    
    #about-company-block .about-bottom-wrapper {
        gap: 15px;
    }
}

@media screen and (max-width: 320px) {
    #about-company-block {
        padding: 20px 10px;
    }
    
    #about-company-block .about-right-wrapper {
        padding: 10px;
    }
}

#about-company-block .about-right-wrapper {
    border-radius: 10px;
    padding: 40px;
    background: var(--bg-primary-main);
    max-height: 500px;
    height: 100%;
    overflow-x: hidden;
    width: 50%; 
    box-sizing: border-box; 
    /* Стили скроллбара */
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--colors-main) var(--bg-primary-second);
}

#about-company-block .about-right-wrapper::-webkit-scrollbar {
    width: 12px;
}

#about-company-block .about-right-wrapper::-webkit-scrollbar-track {
    background: var(--bg-primary-second);
    border-radius: 6px;
    margin: 5px 0;
}

#about-company-block .about-right-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--colors-main);
    border-radius: 6px;
    border: 2px solid var(--bg-primary-second);
}

#about-company-block .about-right-wrapper::-webkit-scrollbar-thumb:hover {
    background-color: var(--colors-main);
    opacity: 0.9;
}

#about-company-block .about-right-wrapper::-webkit-scrollbar-thumb:active {
    background-color: var(--colors-main);
    opacity: 1;
}

#about-company-block .about-right-wrapper::-webkit-scrollbar-button {
    display: none;
}

@supports (scrollbar-width: thin) {
    #about-company-block .about-right-wrapper {
        scrollbar-width: thin;
        scrollbar-color: var(--colors-main) var(--bg-primary-second);
    }
}

#about-company-block .about-right-wrapper {
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

@supports (-webkit-touch-callout: none) {
    #about-company-block .about-right-wrapper::-webkit-scrollbar-thumb {
        -webkit-background-clip: padding-box;
        background-clip: padding-box;
    }
}

@media (max-width: 480px) {
    #about-company-block .about-right-wrapper::-webkit-scrollbar {
        width: 8px;
    }
    
    #about-company-block .about-right-wrapper::-webkit-scrollbar-track {
        border-radius: 4px;
    }
    
    #about-company-block .about-right-wrapper::-webkit-scrollbar-thumb {
        border-radius: 4px;
        border: 1px solid var(--bg-primary-second);
    }
}

#about-company-block .about-right-wrapper {
    scroll-behavior: smooth;
}

#about-company-block .about-right-wrapper::-webkit-scrollbar-thumb {
    transition: opacity 0.3s ease;
}

#about-company-block .about-right-wrapper:hover::-webkit-scrollbar-thumb {
    opacity: 1;
}