@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;
}

.currency-rates__container-wrapper * {
    box-sizing: border-box;
}

.currency-rates__container-wrapper {
    --font-family-rubik: 'Rubik', sans-serif;
    --currency-rates__container-max-width: 1350px;
    --currency-table-max-width: 1112px;
    --currency-rates__main-color: #000000;
    --currency-rates__legend-title-color: #000000;
    --currency-rates__legend-date-now-color: #008cff;
    --currency-rates__main-table-top-title-color: #008cff;
    --currency-rates__main-table-left-span-color: #9c9c9c;
    --currency-rates__main-table-under-top-title-bg-color: #00b0ff0a;
    --currency-rates__main-table-line-color: #727272;
    --currency-rates__main-table-tr-cbr: #807f7f;
    --currency-rates__link-color: #009be0;
    --currency-rates__main-table-border-bottom-color: #cccbcb;

    font-family: var(--font-family-rubik);

    margin: 0 auto;
    max-width: 100%;
    width: 100%;
    margin-bottom: 67.5px;
}

.currency-rates__container {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: var(--currency-rates__container-max-width);
    width: 100%;
    color: var(--currency-rates__main-color);
}

/* Курсы валют заголовок начало */

.currency-rates__legend {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    column-gap: 21px;
    padding: 0 56px 0 56px;
    margin-bottom: 9px;
}

.currency-rates__title {
    color: var(--currency-rates__legend-title-color);

    font-family: var(--font-family-rubik);
    font-weight: 400;
    font-size: 40px;
    line-height: 47px;
}

.currency-rates__date-now {
    color: var(--currency-rates__legend-date-now-color);

    font-family: var(--font-family-rubik);
    font-weight: 300;
    font-size: 25px;
    line-height: 30px;
}

/* Курсы валют заголовок конец */

/* Доп. ссылки начало */
.currency-rates__links {
    box-sizing: border-box;
    max-width: var(--currency-rates__container-max-width);
    font-family: var(--font-family-rubik);
    margin-top: 30px;
    padding: 0 1rem 0 170px;
}

.currency-rates__link {
    color: var(--currency-rates__link-color);
    text-decoration: none;
    font-weight: 300;
    font-size: 20px;
    line-height: 24px;
    transition: 0.3s ease-out all;
}

.currency-rates__link:hover {
    font-weight: 500;
    color: var(--currency-rates__link-color);
}

.currency-rates__link:visited {
    text-decoration: none;
}

/* Доп. ссылки конец */

/* Основная таблица с курсами валют начало */

.currency-rates__all {
    display: block;
}

.currency-rates__dollar {
    display: none;
}

.currency-rates__euro {
    display: none;
}

.currency-rates__kzt {
    display: none;
}

.currency-rates__main-table table {
    margin: 0 auto;
    box-sizing: border-box;
    border-collapse: collapse;
    max-width: var(--currency-table-max-width);
    width: 100%;
    font-family: var(--font-family-rubik);
    color: var(--currency-rates__main-color);
}


.currency-rates__main-table table * {
    font-family: var(--font-family-rubik);
    word-wrap: break-word;
    word-break: break-all;
}

.currency-rates__main-table thead {
    border: none;
}

.currency-rates__main-table thead th {
    border: none;
    padding: 1rem;
    text-align: center;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    color: var(--currency-rates__main-table-top-title-color);
    padding: 1rem 1rem 18px 1rem;
}

.currency-rates__main-table tbody {
    border: none;
}

.currency-rates__main-table tbody tr {
    border-bottom: 0.3px solid var(--currency-rates__main-table-border-bottom-color);
}

.currency-rates__main-table tbody td {
    padding: 5.5px 1rem 5.5px 1rem;
    color: var(--currency-rates__main-color);
}

.currency-rates__main-table tbody tr td {
    text-align: center;
    padding: 5px 1rem 6px 1rem;
    font-weight: 300;
    font-size: 22px;
    line-height: 26px;
}

.currency-rates__main-table tbody tr:first-child td {
    font-weight: 300;
    font-size: 20px;
    line-height: 24px;
}

.currency-rates__main-table tbody tr td:first-child {
    text-align: right;
    font-weight: 400;
    font-size: 18px;
    line-height: normal;
}

.currency-rates__main-table tbody tr td:first-child span {
    text-align: right;
    font-weight: 400;
    font-size: 18px;
    color: var(--currency-rates__main-table-left-span-color);
    line-height: normal;
}

.currency-rates__main-table tbody tr:first-child {
    border: none;
    background-color: var(--currency-rates__main-table-under-top-title-bg-color);
}

.currency-rates__main-table tbody tr:nth-last-child(1) {
    border: none;
}

.currency-rates__main-table tbody tr:nth-last-child(1) td {
    color: var(--currency-rates__main-table-tr-cbr);
}

/* Основная таблица с курсами валют конец */

@media screen and (max-width: 1350px) {
    .currency-rates__links {
        padding: 0 1rem 0 150px;
    }
}

@media screen and (max-width: 1112px) {
    .currency-rates__links {
        padding: 0 1rem 0 56px;
    }
}

@media screen and (max-width: 1112px) {
    .currency-rates__main-table table th * {
        font-size: 0.95em !important;
    }

    .currency-rates__main-table table td * {
        font-size: 0.95em !important;
    }

    .currency-rates__main-table table th {
        font-size: 0.95em !important;
    }

    .currency-rates__main-table table td {
        font-size: 0.95em !important;
    }
}

@media screen and (max-width: 799px) {
    .currency-rates__title {
        font-size: 30px;
    }

    .currency-rates__date-now {
        font-size: 25px;
    }

    .currency-rates__links {
        padding: 0 1rem 0 30px;
    }

    .currency-rates__all {
        display: none;
    }

    .currency-rates__dollar {
        display: block;
    }

    .currency-rates__euro {
        display: block;
    }

    .currency-rates__kzt {
        display: block;
    }

    .currency-rates__main-table thead th {
        font-size: 20px !important;
    }

    .currency-rates__main-table tbody tr td {
        font-size: 22px !important;
    }

    .currency-rates__main-table tbody tr:first-child td {
        font-size: 20px !important;
    }

    .currency-rates__main-table tbody tr td:first-child {
        font-size: 18px !important;
    }

    .currency-rates__main-table tbody tr td:first-child span {
        font-size: 18px !important;
    }
}

@media screen and (max-width: 499px) {
    .currency-rates__title {
        font-size: 20px;
    }

    .currency-rates__date-now {
        font-size: 16px;
    }

    .currency-rates__link {
        font-size: 0.95em !important;
    }

    .currency-rates__main-table thead th {
        font-size: 0.95em !important;
    }

    .currency-rates__main-table tbody tr td {
        font-size: 0.95em !important;
    }

    .currency-rates__main-table tbody tr:first-child td {
        font-size: 0.95em !important;
    }

    .currency-rates__main-table tbody tr td:first-child {
        font-size: 0.95em !important;
    }

    .currency-rates__main-table tbody tr td:first-child span {
        font-size: 0.95em !important;
    }
}

@media screen and (max-width: 399px) {
    .currency-rates__link {
        font-size: 0.85em !important;
    }

    .currency-rates__main-table thead th {
        font-size: 0.85em !important;
    }

    .currency-rates__main-table tbody tr td {
        font-size: 0.85em !important;
    }

    .currency-rates__main-table tbody tr:first-child td {
        font-size: 0.85em !important;
    }

    .currency-rates__main-table tbody tr td:first-child {
        font-size: 0.85em !important;
    }

    .currency-rates__main-table tbody tr td:first-child span {
        font-size: 0.85em !important;
    }
}

@media screen and (max-width: 344px) {
    .currency-rates__link {
        font-size: 0.75em !important;
    }

    .currency-rates__main-table thead th {
        font-size: 0.75em !important;
    }

    .currency-rates__main-table tbody tr td {
        font-size: 0.75em !important;
    }

    .currency-rates__main-table tbody tr:first-child td {
        font-size: 0.75em !important;
    }

    .currency-rates__main-table tbody tr td:first-child {
        font-size: 0.75em !important;
    }

    .currency-rates__main-table tbody tr td:first-child span {
        font-size: 0.75em !important;
    }
}


@media screen and (max-width: 309px) {
    .currency-rates__link {
        font-size: 0.65em !important;
    }

    .currency-rates__main-table thead th {
        font-size: 0.65em !important;
    }

    .currency-rates__main-table tbody tr td {
        font-size: 0.65em !important;
    }

    .currency-rates__main-table tbody tr:first-child td {
        font-size: 0.65em !important;
    }

    .currency-rates__main-table tbody tr td:first-child {
        font-size: 0.65em !important;
    }

    .currency-rates__main-table tbody tr td:first-child span {
        font-size: 0.65em !important;
    }
}