/* Общая шапка сайта: навигация, контакты и корзина. */
.site-header,
.site-header * {
    box-sizing: border-box;
}

.site-header {
    margin: 0 0 14px;
    color: #16324b;
    font-family: Arial, sans-serif;
}

.site-header a {
    float: none;
}

.site-header__top {
    position: relative;
    display: grid;
    grid-template-columns: 555px minmax(0, 1fr) auto;
    gap: 0;
    align-items: center;
    min-height: 100px;
    padding: 0;
    overflow: hidden;
    background-color: #cceeff;
    background-image:
        url('/img/coolerar.gif'),
        url('/img/coolerarr.gif');
    background-position: 555px top, left top;
    background-repeat: no-repeat, repeat-x;
    background-size: 370px 100px, 1px 100px;
    border: 0;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 8px 24px rgba(19, 91, 134, .10);
}

.site-header__brand {
    display: flex;
    width: 555px;
    height: 100px;
    min-width: 0;
    min-height: 100px;
    align-items: center;
    overflow: hidden;
    color: #123c5a;
    background: none;
}

.site-header__brand:visited {
    color: #123c5a;
}

.site-header__brand>span {
    display: block;
    width: 100%;
    height: 100%;
}

.site-header__logo {
    display: block;
    width: 555px;
    height: 100px;
}

.site-header__contacts {
    display: grid;
    grid-template-columns: max-content 30px;
    align-self: stretch;
    align-content: center;
    align-items: center;
    justify-content: start;
    gap: 4px 12px;
    min-width: 0;
    padding: 6px 12px;
}

.site-header__contact--phone {
    grid-column: 1 / -1;
}

.site-header__contact {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #214c68;
    font-size: 14px;
    white-space: nowrap;
}

.site-header__contact:visited {
    color: #214c68;
}

.site-header__contact-icon {
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}

.site-header__contact-icon--primary-mail {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
    padding: 5px;
    color: #fff;
    background: #087ac1;
    border-radius: 8px;
}

.site-header__socials {
    display: flex;
    grid-column: 1 / -1;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.site-header__icon-link,
.site-header__icon-link:visited {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: #214c68;
    background: rgba(255, 255, 255, .82);
    border: 1px solid #cde5f1;
    border-radius: 50%;
}

.site-header__icon-link:hover {
    background: #fff;
    border-color: #7bb9d8;
}

.site-header__icon-link:focus-visible {
    outline: 3px solid rgba(55, 151, 214, .45);
    outline-offset: 3px;
}

.site-header__socials img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.site-header__socials .theme-toggle {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    font-size: 18px;
}

.site-header__cart {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 190px;
    margin: 0 16px 0 5px;
    padding: 11px 14px;
    color: #173e57;
    background: rgba(255, 255, 255, .86);
    border: 1px solid #cce7f4;
    border-radius: 13px;
    backdrop-filter: blur(3px);
}

.site-header__cart:visited {
    color: #173e57;
}

.site-header__cart img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.site-header__cart strong,
.site-header__cart small {
    display: block;
}

.site-header__cart small {
    margin-top: 3px;
    color: #607889;
    font-size: 12px;
}

.site-header__nav {
    position: relative;
    margin-top: 10px;
    padding: 7px;
    background: #176ea8;
    border-radius: 14px;
    box-shadow: 0 7px 18px rgba(11, 83, 128, .18);
}

.site-header__menu-button {
    display: none;
    width: 100%;
    padding: 11px 14px;
    color: #fff;
    background: transparent;
    border: 0;
    font: 700 16px Arial, sans-serif;
    text-align: left;
    cursor: pointer;
}

.site-header .site-header__menu {
    display: flex;
    align-items: center;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-header .site-header__menu>li {
    display: block;
    width: auto;
    height: auto;
    flex: 0 0 auto;
    background: none;
}

.site-header .site-header__menu>li>a {
    display: flex;
    width: auto;
    height: 40px;
    padding: 0 13px;
    align-items: center;
    color: #fff;
    background: transparent;
    border: 0;
    border-radius: 9px;
    font: 600 14px Arial, sans-serif;
    white-space: nowrap;
}

.site-header .site-header__menu>li>a:visited {
    color: #fff;
}

.site-header .site-header__menu>li>a:hover,
.site-header .site-header__menu>li>a.current {
    color: #14557d;
    background: #fff;
}

.site-header__search-item {
    flex: 1 1 210px !important;
    margin-left: auto;
}

.site-header__search {
    width: 100%;
    height: auto;
    background: none;
}

.site-header__search form {
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #fff;
    border-radius: 9px;
}

.site-header__search #ps {
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 0 12px;
    color: #1c3b50;
    background: #fff;
    border: 0;
    border-radius: 0;
    text-align: left;
    outline: none;
}

.site-header__search #ps:focus {
    background: #fff;
    box-shadow: inset 0 0 0 2px #78c8ee;
}

.site-header__search #bs {
    position: static;
    width: 38px;
    height: 38px;
    padding: 11px;
    flex: 0 0 38px;
}

@media (max-width: 1140px) {
    .site-header__cart {
        min-width: 48px;
        padding: 9px;
        justify-content: center;
    }

    .site-header__cart span {
        display: none;
    }
}

@media (max-width: 1020px) {
    .site-header .site-header__menu {
        flex-wrap: wrap;
    }

    .site-header__search-item {
        min-width: 220px;
    }

    .site-header__cart {
        min-width: 48px;
        padding: 9px;
        justify-content: center;
    }

    .site-header__cart span {
        display: none;
    }
}

@media (max-width: 980px) {
    .site-header__top {
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 0;
        background-color: #d9f3ff;
        background-image: url('/img/coolerarr.gif');
        background-position: left top;
        background-repeat: repeat-x;
        background-size: 1px 100px;
    }

    .site-header__brand {
        grid-column: 1 / -1;
        grid-row: 1;
        width: min(100%, 555px);
        height: auto;
        min-height: 0;
    }

    .site-header__brand>span {
        height: auto;
    }

    .site-header__logo {
        width: min(100%, 555px);
        height: auto;
    }

    .site-header__contacts {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        min-height: 100px;
        padding: 8px 16px;
        background:
            linear-gradient(rgba(255, 255, 255, .34), rgba(255, 255, 255, .34)),
            url('/img/coolerar.gif') center / cover no-repeat;
    }

    .site-header__cart {
        position: absolute;
        top: 10px;
        right: 10px;
        margin: 0;
    }
}

@media (max-width: 680px) {
    .site-header {
        margin-bottom: 9px;
    }

    .site-header__top {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0;
        padding: 0;
        border-radius: 0 0 12px 12px;
    }

    .site-header__brand {
        grid-column: 1 / -1;
        grid-row: 1;
        width: 100%;
        height: 100px;
        min-height: 100px;
        background: none;
    }

    .site-header__brand>span {
        height: 100px;
    }

    .site-header__logo {
        position: relative;
        left: 50%;
        width: 555px;
        max-width: none;
        height: 100px;
        transform: translateX(-50%);
    }

    .site-header__contacts {
        grid-column: 1 / -1;
        grid-row: 2;
        padding: 8px 72px 8px 12px;
        border-radius: 0 0 10px 10px;
        background:
            linear-gradient(rgba(255, 255, 255, .42), rgba(255, 255, 255, .42)),
            url('/img/coolerar.gif') center / cover no-repeat;
    }

    .site-header__contact {
        min-width: 0;
        gap: 6px;
        font-size: 12px;
    }

    .site-header__cart {
        position: relative;
        z-index: 1;
        grid-column: 2;
        grid-row: 2;
        align-self: start;
        justify-self: end;
        top: auto;
        right: auto;
        min-width: 48px;
        margin: 10px 12px 0 0;
        padding: 9px;
        justify-content: center;
    }

    .site-header__cart span {
        display: none;
    }

    .site-header__nav {
        margin-top: 7px;
        padding: 4px;
        border-radius: 11px;
    }

    .site-header__menu-button {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .site-header__menu-button::after {
        content: '\2630';
        font-size: 23px;
        line-height: 1;
    }

    .site-header .site-header__menu {
        display: none !important;
        padding: 3px;
    }

    .site-header__nav.is-open .site-header__menu {
        display: grid !important;
        width: 100%;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }

    .site-header .site-header__menu>li {
        margin: 0;
    }

    .site-header .site-header__menu>li>a {
        width: 100%;
        min-width: 0;
        height: 42px;
        padding: 0 10px;
        justify-content: center;
        text-align: center;
    }

    .site-header__search-item {
        grid-column: 1 / -1;
        margin: 3px 0 0;
    }
}

@media (max-width: 555px) {
    .site-header__brand {
        height: auto;
        min-height: 0;
    }

    .site-header__brand>span {
        height: auto;
    }

    .site-header__logo {
        position: static;
        left: auto;
        width: 100%;
        max-width: 100%;
        height: auto;
        transform: none;
    }
}

@media (max-width: 390px) {
    .site-header__nav.is-open .site-header__menu {
        grid-template-columns: 1fr;
    }
}
