/* EUROSPACE HEADER V5 — direct template layout */

@media (min-width: 992px) {
    .eurospace-demo-header {
        min-height: 68px !important;
        background: #fffdfb !important;
    }

    .eurospace-demo-header .main-head {
        display: none !important;
    }

    .eurospace-demo-header .es-header-v5 {
        position: fixed !important;
        z-index: 1600;
        top: 0;
        left: 0;
        right: 0;

        display: block !important;

        height: 68px !important;
        min-height: 68px !important;

        margin: 0 !important;
        padding: 0 !important;

        border-top: 2px solid #33343d !important;
        border-bottom: 1px solid #e9e0db !important;

        background: rgba(255, 253, 251, .98) !important;

        box-shadow:
            0 3px 14px
            rgba(65, 42, 32, .045);

        -webkit-backdrop-filter: blur(9px);
        backdrop-filter: blur(9px);
    }

    .eurospace-demo-header .es-header-v5__container {
        width: 96% !important;
        max-width: none !important;

        height: 66px;

        margin: 0 auto !important;
        padding: 0 !important;
    }

    .eurospace-demo-header .es-header-v5__inner {
        display: grid;

        grid-template-columns:
            170px
            minmax(430px, 1fr)
            auto
            auto;

        align-items: center;

        gap: clamp(13px, 1.25vw, 24px);

        width: 100%;
        height: 66px;
    }

    .eurospace-demo-header .es-header-v5__brand {
        display: flex;
        align-items: center;

        width: 170px;
        height: 58px;

        overflow: hidden;

        text-decoration: none;
    }

    .eurospace-demo-header .es-header-v5__brand img {
        display: block;

        width: 165px !important;
        max-width: 165px !important;
        max-height: 54px !important;
        height: auto !important;

        object-fit: contain;
    }

    .eurospace-demo-header .es-header-v5__nav {
        min-width: 0;
        height: 66px;
    }

    .eurospace-demo-header .es-header-v5__menu {
        display: flex !important;
        align-items: stretch;

        gap: clamp(15px, 1.35vw, 26px) !important;

        height: 66px;

        margin: 0 !important;
        padding: 0 !important;

        list-style: none !important;
    }

    .eurospace-demo-header .es-header-v5__item {
        position: relative;

        display: flex;
        align-items: center;

        height: 66px;

        margin: 0 !important;
        padding: 0 !important;

        list-style: none !important;
    }

    .eurospace-demo-header .es-header-v5__link {
        display: inline-flex !important;
        align-items: center;

        gap: 5px;

        min-height: 40px !important;

        padding: 0 !important;

        border: 0 !important;
        background: transparent !important;

        color: #573328 !important;

        font-size: clamp(12px, .82vw, 15px) !important;
        font-weight: 700 !important;
        line-height: 1 !important;

        text-decoration: none !important;
        white-space: nowrap;
    }

    .eurospace-demo-header .es-header-v5__link:hover {
        color: #80503e !important;
    }

    .eurospace-demo-header .es-header-v5__chevron {
        position: relative;
        top: -1px;

        font-size: 10px;

        opacity: .78;
    }

    .eurospace-demo-header .es-header-v5__dropdown {
        position: absolute;
        z-index: 1800;

        top: calc(100% - 3px);
        left: -12px;

        display: grid;

        min-width: 265px;

        margin: 0 !important;
        padding: 8px !important;

        border: 1px solid #e2d6d0;
        border-radius: 7px;

        background: #fffdfb;

        box-shadow:
            0 16px 42px
            rgba(65, 42, 32, .14);

        list-style: none !important;

        opacity: 0;
        visibility: hidden;

        transform: translateY(5px);

        transition:
            opacity .15s ease,
            transform .15s ease,
            visibility .15s ease;
    }

    .eurospace-demo-header
    .es-header-v5__item:hover
    > .es-header-v5__dropdown,

    .eurospace-demo-header
    .es-header-v5__item:focus-within
    > .es-header-v5__dropdown {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);
    }

    .eurospace-demo-header
    .es-header-v5__dropdown li {
        margin: 0 !important;
        padding: 0 !important;
    }

    .eurospace-demo-header
    .es-header-v5__dropdown a {
        display: block !important;

        padding: 9px 11px !important;

        border-radius: 4px;

        color: #573328 !important;
        background: transparent !important;

        font-size: 13px !important;
        font-weight: 600 !important;
        line-height: 1.25 !important;

        text-decoration: none !important;
        white-space: nowrap;
    }

    .eurospace-demo-header
    .es-header-v5__dropdown a:hover {
        background: #f3eeeb !important;
    }

    .eurospace-demo-header .es-header-v5__ratings {
        display: flex;
        align-items: center;

        gap: 5px;
    }

    .eurospace-demo-header .es-header-v5__rating {
        display: inline-flex;
        align-items: center;

        gap: 4px;

        min-height: 32px;

        box-sizing: border-box;

        padding: 0 7px;

        border: 1px solid #e1d7d1;
        border-radius: 6px;

        background: #fff;

        color: #503128;

        text-decoration: none;
        white-space: nowrap;
    }

    .eurospace-demo-header .es-header-v5__rating:hover {
        background: #f4efec;
    }

    .eurospace-demo-header
    .es-header-v5__rating-platform {
        font-size: 10px;
        font-weight: 700;
    }

    .eurospace-demo-header
    .eurospace-rating-widget--2gis
    .es-header-v5__rating-platform,
    .eurospace-demo-header
    .rating-2gis
    .es-header-v5__rating-platform {
        color: #16954b;
    }

    .eurospace-demo-header
    .eurospace-rating-widget--yandex
    .es-header-v5__rating-platform,
    .eurospace-demo-header
    .rating-yandex
    .es-header-v5__rating-platform {
        color: #dc342d;
    }

    .eurospace-demo-header
    .es-header-v5__rating-score {
        color: #513127;

        font-size: 11px;
        font-weight: 700;
    }

    .eurospace-demo-header .es-header-v5__star {
        color: #d99a00;
    }

    .eurospace-demo-header .es-header-v5__contacts {
        display: flex;
        align-items: center;
        justify-content: flex-end;

        gap: 10px;

        min-width: 0;
    }

    .eurospace-demo-header .es-header-v5__phones {
        display: flex;
        align-items: center;

        gap: 10px;
    }

    .eurospace-demo-header .es-header-v5__phone {
        color: #573328 !important;

        font-size: clamp(11px, .75vw, 14px) !important;
        font-weight: 700 !important;
        line-height: 1 !important;

        text-decoration: none !important;
        white-space: nowrap;
    }

    .eurospace-demo-header .es-header-v5__messengers {
        display: flex;
        align-items: center;

        gap: 5px;
    }

    .eurospace-demo-header .es-header-v5__icon {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;

        box-sizing: border-box !important;

        padding: 0 !important;

        border: 1px solid #e1d7d1 !important;
        border-radius: 50% !important;

        background: #fff !important;

        text-decoration: none !important;
    }

    .eurospace-demo-header .es-header-v5__icon:hover {
        background: #f3eeeb !important;
    }

    .eurospace-demo-header .es-header-v5__icon img {
        display: block;

        width: 16px !important;
        height: 16px !important;

        object-fit: contain;
    }
}

@media (min-width: 992px) and (max-width: 1450px) {
    .eurospace-demo-header .es-header-v5__inner {
        grid-template-columns:
            150px
            minmax(410px, 1fr)
            auto
            auto;

        gap: 12px;
    }

    .eurospace-demo-header .es-header-v5__brand {
        width: 150px;
    }

    .eurospace-demo-header .es-header-v5__brand img {
        width: 145px !important;
        max-width: 145px !important;
    }

    .eurospace-demo-header .es-header-v5__menu {
        gap: 14px !important;
    }
}

@media (min-width: 992px) and (max-width: 1260px) {
    .eurospace-demo-header
    .es-header-v5__phone:nth-child(2) {
        display: none !important;
    }

    .eurospace-demo-header .es-header-v5__rating {
        padding: 0 5px;
    }
}

@media (min-width: 992px) and (max-width: 1120px) {
    .eurospace-demo-header .es-header-v5__inner {
        grid-template-columns:
            135px
            minmax(400px, 1fr)
            auto;

        gap: 10px;
    }

    .eurospace-demo-header .es-header-v5__ratings {
        display: none;
    }

    .eurospace-demo-header .es-header-v5__brand {
        width: 135px;
    }

    .eurospace-demo-header .es-header-v5__brand img {
        width: 130px !important;
        max-width: 130px !important;
    }

    .eurospace-demo-header .es-header-v5__phone {
        display: none !important;
    }
}

/*
 * Mobile keeps the current main-head.
 */
@media (max-width: 991px) {
    .eurospace-demo-header .es-header-v5 {
        display: none !important;
    }
}

/* EUROSPACE HEADER V6 — ALIGN TO SITE / FOOTER WIDTH */

@media (min-width: 1181px) {
    .eurospace-demo-header
    .es-header-v5__container {
        width: 80% !important;
    }
}

@media (min-width: 992px) and (max-width: 1180px) {
    .eurospace-demo-header
    .es-header-v5__container {
        width: 88% !important;
    }
}

@media (min-width: 992px) and (max-width: 1320px) {
    .eurospace-demo-header
    .es-header-v5__inner {
        grid-template-columns:
            135px
            minmax(390px, 1fr)
            auto
            auto !important;

        gap: 9px !important;
    }

    .eurospace-demo-header
    .es-header-v5__brand {
        width: 135px !important;
    }

    .eurospace-demo-header
    .es-header-v5__brand img {
        width: 130px !important;
        max-width: 130px !important;
    }

    .eurospace-demo-header
    .es-header-v5__menu {
        gap: 11px !important;
    }

    .eurospace-demo-header
    .es-header-v5__phone:nth-child(2) {
        display: none !important;
    }
}

@media (min-width: 992px) and (max-width: 1220px) {
    .eurospace-demo-header
    .es-header-v5__ratings {
        display: none !important;
    }

    .eurospace-demo-header
    .es-header-v5__inner {
        grid-template-columns:
            130px
            minmax(390px, 1fr)
            auto !important;
    }
}
