@font-face {
    font-family: 'Rubik';
    src: url('../fonts/Rubik-Variable/Rubik-Variable.woff2') format('woff2');
    font-weight: 100 1000;
    font-optical-sizing: auto;
    font-stretch: 0% 200%;
    font-style: normal;
    font-display: swap;
}

.business-deposits-cards__wrapper * {
    box-sizing: border-box;
}

.business-deposits-cards__wrapper {
    /* --business-deposits-cards__container--max-width: 1165px; */
    --business-deposits-cards__container--max-width: 1200px;

    /* семейства шрифтов начало */
    --font-family-rubik: "Rubik";
    /* семейства шрифтов конец */

    /* цвета начало */

    /* цвета шрифтов начало */
    --business-deposits-cards__font-color-black-1: #000000;
    --business-deposits-cards__font-color-black-2: #565656;
    --business-deposits-cards__font-color-blue-1: #0cb4ff;
    --business-deposits-cards__font-color-blue-2: #00b0ff;
    --business-deposits-cards__font-color-blue-3: #43aaff;
    --business-deposits-cards__font-color-white-1: #fdfefe;
    /* цвета шрифтов конец */

    /* цвета фонов начало */
    --business-deposits-cards__background-color-white-1: #ffffff;
    --business-deposits-cards__background-color-blue-1: #3aa6ff;
    --business-deposits-cards__background-color-blue-2: #6bd0fd;
    --business-deposits-cards__background-color-blue-3: #bbeaff;
    --business-deposits-cards__background-color-blue-4: #e6f5fbff;
    --business-deposits-cards__background-color-blue-5: #bbeaff4d;
    /* цвета фонов конец */

    --business-deposits-cards__button-shadow: 0px 4px 4px 0px var(--business-deposits-cards__font-color-blue-2);

    /* цвета конец */

    font-family: var(--font-family-rubik);
    font-weight: 300;
    line-height: normal;
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    margin-top: 50px;
    margin-bottom: 30px;
}

.business-deposits-cards__container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 auto;
    box-sizing: border-box;
    justify-content: center;
    max-width: var(--business-deposits-cards__container--max-width);
    width: 100%;
    padding-inline: 20px;
}

.business-deposits-cards__blue-text {
    color: var(--business-deposits-cards__font-color-blue-1);
}

.business-deposits-cards__title {
    font-family: var(--font-family-rubik);
    font-size: 40px;
    line-height: normal;
    font-weight: 400;
    color: var(--business-deposits-cards__font-color-black-1);
    margin: 0;
}

.business-deposits-cards__subtitle {
    font-family: var(--font-family-rubik);
    font-size: 30px;
    line-height: normal;
    font-weight: 400;
    color: var(--business-deposits-cards__font-color-black-2);
    margin: 0;
    margin-bottom: 40px;
}

.business-deposits-cards__checkers {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-areas: "classic classic-plus comfort comfort-plus";
    gap: 20px;
    margin: 0 auto;
    box-sizing: border-box;
    justify-content: center;
    max-width: var(--business-deposits-cards__container--max-width);
    width: 100%;
    margin-bottom: 50px;
}

.business-deposits-cards__checker-button {
    position: relative;
}

.checker-button__classic {
    grid-area: classic;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* max-width: 277px; */
    width: 100%;
    height: auto;
}

.checker-button__classic-plus {
    grid-area: classic-plus;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* max-width: 277px; */
    width: 100%;
    height: auto;
}

.checker-button__comfort {
    grid-area: comfort;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* max-width: 277px; */
    width: 100%;
}

.checker-button__comfort-plus {
    grid-area: comfort-plus;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* max-width: 277px; */
    width: 100%;
}

/* кнопки-переключатели начало */

.business-deposits-cards__checker-button button {
    --business-deposits-cards__checker-button--max-width: auto;

    border: none;
    text-decoration: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    /* убирает оранжевое/серое свечение при тапе на iOS/Safari */
    -webkit-appearance: none;
    /* сбрасывает стили ОС для Safari */
    appearance: none;
    /* современная версия */

    font-family: var(--font-family-rubik);
    font-size: 25px;
    line-height: normal;
    color: var(--documents-credits__font-color-black-1);

    background-color: var(--business-deposits-cards__background-color-white-1);
    font-weight: 400;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    max-width: var(--business-deposits-cards__checker-button--max-width);
    width: 100%;
    cursor: pointer;

    box-sizing: border-box;
    border: 1px solid var(--business-deposits-cards__background-color-blue-2);
    border-radius: 25px;

    min-height: 60px;
    /* padding-inline: 10px; */

    /* box-shadow: var(--business-deposits-cards__button-shadow); */
}

.business-deposits-cards__checker-button button:focus,
.business-deposits-cards__checker-button button:active,
.business-deposits-cards__checker-button button:focus-visible {
    outline: none;
    background: var(--business-deposits-cards__background-color-blue-1);
    color: var(--business-deposits-cards__font-color-white-1);
    font-weight: 400;
    /* box-shadow: var(--business-deposits-cards__button-shadow); */
}

.business-deposits-cards__checker-button button:hover {
    font-family: var(--font-family-rubik);
    font-weight: 400;
    line-height: normal;
    color: var(--business-deposits-cards__font-color-white-1);
    background: var(--business-deposits-cards__background-color-blue-1);
}

.business-deposits-cards__checker-button button.active {
    color: var(--business-deposits-cards__font-color-white-1);
    background: var(--business-deposits-cards__background-color-blue-1);
    /* box-shadow: var(--business-deposits-cards__button-shadow); */
    font-weight: 400;
}

/* кнопки-переключатели конец */

/* Скрываем все блоки с data-role по умолчанию */
.business-deposits__card {
    display: none;
}

/* карточки депозитов начало */

/* Показываем только тот, у которого есть класс active */
.business-deposits__card.active {
    display: grid;
    grid-template-columns: minmax(525px, 1fr) minmax(525px, 1fr);
    grid-template-areas: "business-deposits__card-col-1 business-deposits__card-col-2";
    gap: 20px;
    margin: 0 auto;
    box-sizing: border-box;
    justify-content: space-between;
    max-width: var(--business-deposits-cards__container--max-width);
    width: 100%;
    margin-bottom: 25px;
}

.business-deposits__card-col-1 {
    grid-area: business-deposits__card-col-1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 25px;
    padding: 25px;
}

.business-deposits__card-col-2 {
    grid-area: business-deposits__card-col-2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 25px;
    padding: 25px;
}

.business-deposits__card-bg-blue {
    background-color: var(--business-deposits-cards__background-color-blue-5);
}

.business-deposits__card-title {
    font-family: var(--font-family-rubik);
    font-size: 36px;
    font-weight: 400;
    line-height: normal;
    color: var(--business-deposits-cards__font-color-black-1);
    text-align: center;
}

/* таблица начало */

.business-deposits__card table {
    border-collapse: separate;
    /* Важно для border-spacing */
    border-spacing: 25px 36px;
    /* Горизонтальный и вертикальный отступы */
    width: 100%;
    margin-bottom: 30px;
    font-family: var(--font-family-rubik);
    font-size: 18px;
    line-height: normal;
    color: var(--documents-credits__font-color-black-1);
    font-weight: 400;
}

.business-deposits__card table tbody td {
    font-size: 20px;
}

.business-deposits__card table tbody td span {
    font-size: 36px;
}

.business-deposits__card table td:nth-child(2) {
    color: var(--business-deposits-cards__font-color-blue-1);
}

/* таблица конец */

/* кнопки-ссылки начало */
.business-deposits__card-buttons {
    display: grid;
    grid-template-columns: 192px 192px;
    gap: 45px;
    margin: 0 auto;
    box-sizing: border-box;
    justify-content: center;
    max-width: var(--business-deposits-cards__container--max-width);
    width: 100%;
    margin-bottom: 25px;
}

.business-deposits__card-buttons a {
    border: none;
    text-decoration: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    /* убирает оранжевое/серое свечение при тапе на iOS/Safari */
    -webkit-appearance: none;
    /* сбрасывает стили ОС для Safari */
    appearance: none;
    /* современная версия */

    font-family: var(--font-family-rubik);
    font-size: 20px;
    line-height: normal;
    color: var(--documents-credits__font-color-black-1);

    background-color: var(--business-deposits-cards__background-color-white-1);
    font-weight: 400;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    max-width: var(--business-deposits-cards__checker-button--max-width);
    width: 100%;
    cursor: pointer;

    box-sizing: border-box;
    /* border: 1px solid var(--business-deposits-cards__background-color-blue-2); */
    border-radius: 25px;

    min-height: 55px;
    /* padding-inline: 10px; */

    box-shadow: var(--business-deposits-cards__button-shadow);
}




.business-deposits__card-buttons a:focus,
.business-deposits__card-buttons a:active,
.business-deposits__card-buttons a:focus-visible {
    outline: none;
    /* background: var(--business-deposits-cards__background-color-blue-1); */
    /* color: var(--business-deposits-cards__font-color-white-1); */
    /* background-color: var(--business-deposits-cards__background-color-white-1); */
    font-weight: 400;
    /* box-shadow: var(--business-deposits-cards__button-shadow); */
}

.business-deposits__card-buttons a:hover {
    font-family: var(--font-family-rubik);
    font-weight: 400;
    line-height: normal;
    color: var(--business-deposits-cards__font-color-white-1);
    background: var(--business-deposits-cards__background-color-blue-1);
}

.business-deposits__card-buttons a.active {
    color: var(--business-deposits-cards__font-color-white-1);
    background: var(--business-deposits-cards__background-color-blue-1);
    box-shadow: var(--business-deposits-cards__button-shadow);
    font-weight: 400;
}

/* кнопки-ссылки конец */

/* карточки депозитов конец */

/* медиа-запросы начало */

@media screen and (max-width: 1200px) {
    .business-deposits-cards__title {
        font-size: 40px;
    }

    .business-deposits-cards__subtitle {
        font-size: 24px;
        margin-bottom: 40px;
    }

    .business-deposits-cards__checker-button button {
        font-size: 20px;
    }

    .business-deposits__card.active {
        grid-template-columns: 1fr 1fr;
    }

    .business-deposits__card-title {
        font-size: 30px;
    }

    .business-deposits__card table tbody td {
        font-size: 16px;
    }

    .business-deposits__card table tbody td span {
        font-size: 30px;
    }
}

@media screen and (max-width: 1024px) {
    .business-deposits-cards__title {
        font-size: 36px;
    }

    .business-deposits-cards__subtitle {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .business-deposits-cards__checker-button button {
        font-size: 17px;
    }

    .business-deposits__card-title {
        font-size: 26px;
    }

    .business-deposits__card table tbody td {
        font-size: 14px;
    }

    .business-deposits__card table tbody td span {
        font-size: 26px;
    }

    .business-deposits__card-buttons {
        grid-template-columns: 1fr 1fr;
    }

    .business-deposits__card-buttons a {
        font-size: 16px;
    }
}

@media screen and (max-width: 880px) {
    .business-deposits-cards__checker-button button {
        font-size: 15px;
    }

    .business-deposits-cards__title {
        font-size: 36px;
    }

    .business-deposits-cards__subtitle {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .business-deposits-cards__checker-button button {
        font-size: 25px;
    }

    .business-deposits-cards__checkers {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "classic classic-plus"
            "comfort comfort-plus";
        gap: 20px;
    }

    .business-deposits__card.active {
        grid-template-columns: 1fr;
        grid-template-areas:
            "business-deposits__card-col-1"
            "business-deposits__card-col-2";
    }

    .business-deposits__card-title {
        font-size: 36px;
    }

    .business-deposits__card table tbody td {
        font-size: 20px;
    }

    .business-deposits__card table tbody td span {
        font-size: 36px;
    }

    .business-deposits__card-buttons {
        grid-template-columns: 1fr 1fr;
    }

    .business-deposits__card-buttons a {
        font-size: 20px;
    }

    .business-deposits__card.active {
        margin-bottom: 0;
    }

}

@media screen and (max-width: 660px) {
    .business-deposits-cards__title {
        font-size: 30px;
    }

    .business-deposits-cards__subtitle {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .business-deposits-cards__checker-button button {
        font-size: 20px;
    }

    .business-deposits-cards__checkers {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "classic classic-plus"
            "comfort comfort-plus";
        gap: 20px;
    }

    .business-deposits__card-title {
        font-size: 30px;
    }

    .business-deposits__card table tbody td {
        font-size: 16px;
    }

    .business-deposits__card table tbody td span {
        font-size: 30px;
    }

    .business-deposits__card-buttons a {
        font-size: 18px;
    }
}

@media screen and (max-width: 530px) {
    .business-deposits-cards__title {
        font-size: 30px;
    }

    .business-deposits-cards__subtitle {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .business-deposits-cards__checker-button button {
        font-size: 20px;
    }

    .business-deposits-cards__checkers {
        grid-template-columns: 1fr;
        grid-template-areas:
            "classic"
            "classic-plus"
            "comfort"
            "comfort-plus";
        gap: 20px;
    }

    .business-deposits__card-title {
        font-size: 26px;
    }

    .business-deposits__card table tbody td {
        font-size: 14px;
    }

    .business-deposits__card table tbody td span {
        font-size: 26px;
    }

    .business-deposits__card-buttons {
        grid-template-columns: 1fr 1fr;
    }

    .business-deposits__card-buttons a {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .business-deposits__card-buttons {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .business-deposits__card-title {
        font-size: 20px;
    }

    .business-deposits__card table {
        border-spacing: 5px 26px;
        margin-bottom: 20px;
    }

    .business-deposits__card table tbody td {
        font-size: 14px;
    }

    .business-deposits__card table tbody td span {
        font-size: 16px;
    }

    .business-deposits__card-buttons a {
        font-size: 16px;
    }
}

@media screen and (max-width: 420px) {
    .business-deposits-cards__title {
        font-size: 26px;
    }

    .business-deposits-cards__subtitle {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .business-deposits-cards__checker-button button {
        font-size: 20px;
        min-height: auto;
    }

    .business-deposits-cards__checkers {
        grid-template-columns: 1fr;
        grid-template-areas:
            "classic"
            "classic-plus"
            "comfort"
            "comfort-plus";
        gap: 20px;
    }
}

@media screen and (max-width: 400px) {
    .business-deposits__card-title {
        font-size: 20px;
    }

    .business-deposits__card table tbody td {
        font-size: 12px;
    }

    .business-deposits__card table tbody td span {
        font-size: 14px;
    }

    .business-deposits__card-buttons a {
        font-size: 14px;
    }
}

@media screen and (max-width: 360px) {
    .business-deposits__card-title {
        font-size: 16px;
    }

    .business-deposits__card table tbody td {
        font-size: 10px;
    }

    .business-deposits__card table tbody td span {
        font-size: 12px;
    }

    .business-deposits__card-buttons a {
        font-size: 14px;
    }
}

/* медиа-запросы конец */