.main-content {
    color: var(--color-text);
}

section {
    margin-top: 110px;
}

.block {
    padding-right: 96px !important;
    padding-left: 96px !important;
}

section.cover {
    margin-top: 60px;
}

.cover {
    height: 30vw;
    padding: 30px;
    background-size: cover;
}

.title {
    font-family: var(--title-family);
    text-transform: uppercase;
    font-size: clamp(20px, 4vw, 46px);
    line-height: clamp(22px, 5vw, 48px);
    font-weight: 400;
}

.cover__text {
    font-size: 20px;
    line-height: 22px;
    font-weight: 400;
}

.btn {
    padding: 20px 30px;
    font-size: 24px;
    line-height: 26px;
    font-weight: 500;
}

.btn:hover {
    transform: scale(1.05);
}

.case__sort {
    margin-top: 60px;
    margin-bottom: 40px;
}

.case__sort label,
.case__sort select {
    padding: 10px 20px;
    background-color: #252525;
    color: #ffffff;
    font-size: 24px;
    line-height: 28px;
}

/* Скрываем стандартный чекбокс */
.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Создаём круг */
.custom-checkbox .checkmark {
    position: relative;
    height: 25px;       /* размер круга */
    width: 25px;
    background-color: #3F3F3F; /* фон чекбокса */
    border: none;    /* граница */
    border-radius: 50%;        /* делает круглым */
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

/* Состояние "отмечено" */
.custom-checkbox input:checked + .checkmark {
    background-color: #3F3F3F;    /* фон при отметке */
    border-color: #3F3F3F;
}

/* Внутренний кружок для отметки */
.custom-checkbox .checkmark::after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked + .checkmark::after {
    display: block;
    left: 6px;   /* смещение внутри круга */
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0F9907; /* цвет внутреннего кружка */
}

.case__list {
    margin-top: 0;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 20px;
    justify-content: center;
}

.case__sort select {
    position: relative;
    z-index: 2;
}

/*карточка при наведении*/
.case-card:hover .case__card {
    background-color: #0F9907;
    background-image: none !important;
}

/*стрелка при наведении на карточку*/
.case-card:hover .case__card-btn {
    background-color: #ffffff;
}

.case__card {
    min-height: 400px;
    padding: 25px;
}

.case__card-title {
    font-size: 32px;
    line-height: 40px;
    font-weight: 500;
}

.case__card-subtitle {
    font-size: 24px;
    line-height: 28px;
    font-weight: 500;
}

.case__card-text {
    font-size: 16px;
    line-height: 20px;
}

.case__card-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: #5f5f5f;
    border-radius: 50%;
}

.case__card-btn:hover {
    transform: scale(1.05);
}

.bi-arrow-right {
    font-size: 20px;
    color: #0F9907;
    text-shadow: 
        0.5px 0 currentColor,
        -0.5px 0 currentColor;
}



@media (max-width: 1600px) {
    .cover {
        flex-direction: column;
        gap: 20px !important;
    }

    .cover .title,
    .cover .cover__text {
        width: 100% !important;
    }

    .form img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 1300px) {
    .main-content {
        padding: 0 20px;
    }
    .block {
        padding: 0 !important;
    }

    section {
        margin-top: 40px !important;
    }

    .cover__text {
        width: auto !important;
        flex-grow: 1;
        top: 20px !important;
    }
}

@media (max-width: 991px) {
    .cover {
        padding: 20px !important;
        flex-direction: column;
        background-size: cover;
        gap: 50px;
    }

    .cover .title {
        width: 100% !important;
    }

    .cover__text {
        top: 0 !important;
        font-size: 18px;
        line-height: 20px;
    }

    .case__card {
        min-height: 400px;
    }

    .case__card-title {
        font-size: 32px;
        line-height: 34px;  
    }

    .case__card-subtitle,
    .case__card-text {
        font-size: 18px;
        line-height: 20px;
    }

    .form img {
        width: 100%;
        height: 200px;
        margin-bottom: 20px;
    }
    
    .form {
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .btn {
        justify-content: space-between !important;
        padding: 10px 30px;
        font-size: 14px !important;
        line-height: 16px !important;
    }

    .case__list {
        grid-template-columns: 1fr;
    }

    .case__card {
        padding: 20px;
    }

    .form .btn {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .cover__text {
        font-size: 14px;
        line-height: 16px;
    }

    .case__sort,
    .case__sort form {
        flex-direction: column;
        justify-content: flex-start !important;
    }

    .case__card {
        min-height: 250px;
    }

    .case__card-text {
        font-size: 14px;
        line-height: 16px;
    }
}