.MainContainer {
    max-width: 1200px;
    width: 100%;
    margin: 32px auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 24px;
}

.titleBlock {
    display: flex;
    justify-content: center;
    width:100%;
    align-items: center;
    padding: 20px 0;
    background: linear-gradient(to left, rgba(61, 72, 108, 1), rgba(27, 34, 56, 1));
    color: white;
    font-size: 44px;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.categoryBlock {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid rgba(198, 165, 99, 1);
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 100%; /* Гарантирует, что блок не выйдет за границы */
    overflow: hidden; /* Скрывает выходящий контент */
    word-wrap: break-word; /* Разрывает длинные слова */
    white-space: normal; /* Переносит текст на новую строку */
}

.categoryDesc,
.categoryProgramm,
.categoryProgrammStyle {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}


.categoryTitle {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    padding: 24px;
    background: linear-gradient(50deg,
    rgba(108, 74, 41, 1) 0%,
    rgba(195, 159, 107, 1) 25%,
    rgba(170, 123, 55, 1) 50%,
    rgba(207, 168, 114, 1) 75%,
    rgba(126, 92, 46, 1) 100%);
}

.categoryTitle span {
    font-size: 26px;
    font-weight: 700;
    color: white;
    line-height: 32px;
}

.categoryTitle img {
    max-width: 150px;
    max-height: 32px;
    height: auto;
}

.categoryDesc {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
    gap: 24px;
}

.categoryProgramm {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 5px;
    flex-direction: column;
    font-size: 18px;
    font-family: 'Open Sans';
    color: rgba(27, 34, 56, 1);
}

.categoryProgramm>div>span:first-child {
    font-weight: 700;
}

.descButton {
    background: linear-gradient(to left, rgba(61, 72, 108, 1), rgba(27, 34, 56, 1));
    border-radius: 4px;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 700;
    line-height: 28px;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.descButton:hover {
    background: linear-gradient(to left, rgba(239, 68, 68, 1), rgba(165, 28, 48, 1));
    border-radius: 4px;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 700;
    line-height: 28px;
    color: white;
    border: none;
    cursor: pointer;
}

.downloadButton {
    background: white;
    border-radius: 4px;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 700;
    line-height: 28px;
    color: rgba(27, 34, 56, 1);
    border: 2px solid rgba(229, 229, 229, 1);
    cursor: pointer;
    display: flex;
    gap: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.downloadButton img {
    width: 24px;
    height: 24px;
}

.buttonsBlock {
    display: flex;
    gap:24px;
    align-items: center;
}

@media screen and (max-width: 768px){
    .MainContainer{
        padding: 20px;
    }
    .titleBlock {
        font-size: 24px;
        font-weight: 700;
    }
    .categoryTitle span {
        font-size: 16px;
        font-weight: 700;
        color: white;
        line-height: 32px;
    }
    .categoryDesc{
        align-items: center;
    }
    .categoryProgramm {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        gap: 5px;
        flex-direction: column;
        font-size: 14px;
        font-family: 'Open Sans';
        color: rgba(27, 34, 56, 1);
    }
    .buttonsBlock {
        flex-direction: column;
        width: 100%;
    }
}

.categoryProgrammStyle {
    font-size: 18px;
    font-family: 'Open Sans';
    color: rgba(27, 34, 56, 1);
    width: 100%;
}

.categoryProgramm>div>span:first-child {
    font-weight: 700;
}