.vk-groups {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.vk-groups__header {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.vk-groups__header-title {
    margin: 0;
    font-family: "BalsamqSansBold", sans-serif;
    font-size: 28px;
    font-weight: bold;
    line-height: 1.2;
    color: #172554;

    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.vk-groups__icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;

    transform: rotateZ(-10deg);

    cursor: pointer;
}

.vk-groups__icon:hover {
    transform: scale(1.08) rotate(-2deg);
    filter: drop-shadow(0 8px 14px rgba(0, 128, 0, 0.22));
}

.vk-groups__cards {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.vk-groups__card {
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;

    border-radius: 16px;

    background:
        radial-gradient(circle at 85% 15%, rgba(187, 247, 208, 0.35), transparent 34%),
        linear-gradient(135deg, #16A34A 0%, #10B981 45%, #047857 100%);
}

.vk-groups__card-badge {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-weight: 500;

    border-radius: 20px;

    background: #FFFFFF;

    padding: 6px 10px;
}

.vk-groups__card-subscribes {
    font-family: "Onest", sans-serif;
    font-size: 14px;
    color: #008000;
    font-weight: 400;
}

.vk-groups__card-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.vk-groups__card-title {
    font-family: "BalsamqSansRegular", sans-serif;
    font-size: 21px;
    font-weight: 400;

    color: #FFFFFF;
}

.vk-groups__card-text {
    font-family: "Onest", sans-serif;
    font-size: 14px;
    color: #FFFFFF;

    display: inline-block;
    max-width: 80%;
}

.vk-groups__card-button {
    display: flex;
    width: 100%;
    height: 44px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #FFFFFF;

    font-family: "Onest", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #008000;

    cursor: pointer;

    border-radius: 10px;

    border: none;
}

@font-face {
    font-family: "BalsamqSansRegular";
    src: url("/fonts/BalsamiqSans-Regular.ttf") format("truetype");

    font-weight: normal;
    font-style: normal;
}

@media (min-width:499px) and (max-width:959px) {

    .vk-groups__card {
        padding: 30px 35px;
        gap: 25px;
    }

    .vk-groups__card-subscribes {
        font-size: 16px;
    }

    .vk-groups__header-title {
        font-size: 30px;
        max-width: 75%;
    }

    .vk-groups__card-title{
        font-size: 23px;
    }

    .vk-groups__card-text {
        font-size: 16px;
        max-width: 70%;
    }

    .vk-groups__card-button {
        margin-top: auto;
        font-size: 16px;
        width: auto;
        padding: 24px 27px;
        height: auto;
        gap: 5px;
    }
}

@media (min-width:959px) and (max-width:1200px) {

    .vk-groups__icon {
        width: 44px;
        height: 44px;
    }

    .vk-groups__card-badge-svg {
        width: 14px;
        height: 14px;
    }

    .vk-groups__card-subscribes {
        font-size: 16px;
    }

    .vk-groups__header-title {
        font-size: 30px;
    }

    .vk-groups__cards {
        flex-direction: row;
        align-items: stretch;
    }

    .vk-groups__card {
        padding: 25px;
        gap: 25px;
    }

    .vk-groups__card-title {
        font-size: 26px;
    }

    .vk-groups__card-text {
        font-size: 16px;
    }

    .vk-groups__card-content {
        gap: 10px;
    }

    .vk-groups__card-button {
        margin-top: auto;
        font-size: 16px;
        width: auto;
        padding: 24px 27px;
        height: auto;
        gap: 5px;
    }
}

@media (min-width:1200px) {

    .vk-groups {
        gap: 55px;
        margin-bottom: 77px;
    }

    .vk-groups__icon {
        width: 48px;
        height: 48px;
    }

    .vk-groups__card-badge-svg {
        width: 16px;
        height: 16px;
    }

    .vk-groups__card-subscribes {
        font-size: 18px;
    }

    .vk-groups__header-title {
        font-size: 39px;
    }

    .vk-groups__cards {
        flex-direction: row;
        align-items: stretch;
    }

    .vk-groups__card {
        padding: 30px 40px;
        gap: 32px;
    }

    .vk-groups__card-title {
        font-size: 28px;
    }

    .vk-groups__card-text {
        font-size: 18px;
    }

    .vk-groups__card-content {
        gap: 10px;
    }

    .vk-groups__card-button {
        margin-top: auto;
        font-size: 18px;
        width: auto;
        padding: 24px 27px;
        height: auto;
        gap: 5px;
    }
}