.pharma-site-header {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 4px;
    box-sizing: border-box;
    background: #00204c;
    color: #fff;
    font-family: Roboto, Arial, Helvetica, sans-serif;
}

.pharma-site-header *,
.pharma-site-header *::before,
.pharma-site-header *::after {
    box-sizing: border-box;
}

.pharma-site-header__content {
    width: 100%;
    max-width: 1240px;
}

.pharma-site-header__top {
    position: relative;
    overflow: hidden;
}

.pharma-site-header__top::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 56px;
    background: linear-gradient(90deg, rgb(0 32 76 / 0), #00204c);
    content: "";
    pointer-events: none;
}

.pharma-site-header__top_scroll-end::after {
    opacity: 0;
}

.pharma-site-header__nav {
    display: flex;
    overflow: auto hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.pharma-site-header__nav::-webkit-scrollbar {
    display: none;
}

.pharma-site-header__link {
    flex: 0 0 auto;
    padding: 12px 8px;
    color: #fff;
    font-size: 12px;
    letter-spacing: 1px;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.pharma-site-header__link:link,
.pharma-site-header__link:visited,
.pharma-site-header__link:hover,
.pharma-site-header__link:focus {
    color: #fff;
    text-decoration: none;
}

.pharma-site-header__link:hover,
.pharma-site-header__link:focus-visible {
    opacity: .8;
}

.pharma-site-header__bottom {
    display: grid;
    min-height: 56px;
    grid-template-columns: minmax(132px, 1fr) auto minmax(132px, 1fr);
    gap: 24px;
    align-items: center;
    padding: 0 8px;
}

.pharma-site-header__logo {
    display: block;
    width: 129px;
    height: 39px;
    background: url("../images/pharma/logos/desktop.svg") center / contain no-repeat;
}

.pharma-site-header__widgets {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
}

.pharma-site-header__widget {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.pharma-site-header__widget:link,
.pharma-site-header__widget:visited,
.pharma-site-header__widget:hover,
.pharma-site-header__widget:focus {
    color: #fff;
    text-decoration: none;
}

.pharma-site-header__widget-title {
    white-space: nowrap;
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
}

.pharma-site-header__rates {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 12px;
    letter-spacing: 1px;
}

.pharma-site-header__rate {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.pharma-site-header__rate-code {
    color: rgb(255 255 255 / 60%);
}

.pharma-site-header__rate-value {
    color: rgb(255 255 255 / 60%);
    font-variant-numeric: tabular-nums;
}

.pharma-site-header__rate-arrow {
    width: 7px;
    height: 7px;
    margin-bottom: 3px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.pharma-site-header__rate-arrow_up {
    color: #36b274;
    transform: rotate(-45deg);
}

.pharma-site-header__rate-arrow_down {
    color: #e54545;
    transform: rotate(135deg);
}

.pharma-site-header__traffic-level {
    display: inline-flex;
    min-width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border: 2px solid rgb(255 255 255 / 35%);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.6);
}

.pharma-site-header__traffic-level_red {
    border-color: #e54545;
}

.pharma-site-header__traffic-level_yellow {
    border-color: #f8ca10;
}

.pharma-site-header__traffic-level_green {
    border-color: #36b274;
}

.pharma-site-header__widget_traffic {
    color: rgb(255 255 255 / 70%);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.pharma-site-header__adv {
    justify-self: end;
    min-width: 132px;
    min-height: 1px;
}

@media (max-width: 959px) {
    .pharma-site-header__bottom {
        grid-template-columns: auto 1fr;
        gap: 16px;
        padding-bottom: 8px;
    }

    .pharma-site-header__widgets {
        display: none;
    }

    .pharma-site-header__adv {
        display: none;
    }
}

@media (max-width: 479px) {
    .pharma-site-header__logo {
        width: 100px;
        height: 29px;
        background-image: url("../images/pharma/logos/mobile.svg");
    }

    .pharma-site-header__bottom {
        grid-template-columns: auto 1fr;
        gap: 8px;
        justify-items: stretch;
    }
}
