@import "../variables";

.kit-tabs {
    width: 100%;
    font-family: "PT Sans", sans-serif;

    &__header {
        display: flex;
        justify-content: space-between;

        @media (max-width: $tablet-medium) {
            flex-direction: column;
        }
    }

    &__list {
        display: flex;
        flex: 1 0 auto;
        justify-content: flex-end;
        align-items: baseline;
        margin: 0;
        padding-left: 0;
        list-style: none;
        text-align: right;

        @media (max-width: $tablet-medium) {
            flex-wrap: wrap;
            justify-content: flex-start;
            margin-top: 8px;
        }
    }

    &__title {
        margin: 0;
        font-size: 22px;
    }

    &__item:not(:last-child) {
        margin-right: 20px;
    }

    &__module {
        flex: 1 0 32%;
        max-width: 32%;
        margin-bottom: 20px;

        @media (max-width: $tablet-large) {
            flex-basis: 48%;
            max-width: 48%;
        }

        @media (max-width: $tablet) {
            flex-basis: 100%;
            max-width: 100%;
        }
    }

    &__module:not(:nth-child(3n)),
    &____module:not(:last-child) {
        margin-right: 2%;

        @media (max-width: $tablet-large) {
            margin-right: 0;
        }
    }

    &__tabs-content {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        margin-top: 10px;
        padding-bottom: 20px;

        @media (max-width: $tablet-large) {
            justify-content: space-between;
        }
    }
}