/**
 * ==========================================================
 * HEADER EKIN-PRO
 * ==========================================================
 */

.ekin-header {
    --header-accent: #ff9900;
    --header-dark: #172029;
    --header-text: #3f474f;
    --header-muted: #7b838a;
    --header-border: #e8eaec;
    --header-container: 1540px;

    position: relative;
    z-index: 100;

    width: 100%;

    background: #fff;
    color: var(--header-dark);

    font-family: "Montserrat", sans-serif;
}

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

.ekin-header a {
    color: inherit;
}

.ekin-header-container {
    width: min(
        calc(100% - 48px),
        var(--header-container)
    );

    margin-inline: auto;
}


/**
 * ==========================================================
 * ВЕРХНЯЯ СТРОКА
 * ==========================================================
 */

.ekin-header-top {
    height: 42px;

    border-bottom: 1px solid var(--header-border);

    background: #fff;
}

.ekin-header-top__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    height: 100%;
}

.ekin-header-top__left,
.ekin-header-top__right {
    display: flex;
    align-items: center;
}

.ekin-header-top__left {
    gap: 30px;
}

.ekin-header-top__right {
    justify-content: flex-end;
    gap: 22px;
    margin-left: auto;
}

.ekin-header-meta {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    color: #252c32;

    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.ekin-header-meta + .ekin-header-meta {
    padding-left: 28px;
    border-left: 1px solid #e2e4e6;
}

.ekin-header-meta i {
    color: var(--header-accent);
    font-size: 18px;
}

.ekin-header-meta__dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--header-accent);
}

.ekin-header-email {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    color: #242b31;

    font-size: 13px;
    font-weight: 500;
    line-height: 1;

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

    transition: color 0.2s ease;
}

.ekin-header-email i {
    font-size: 18px;
}

.ekin-header-email:hover {
    color: var(--header-accent);
}

.ekin-header-socials {
    display: flex;
    align-items: center;

    gap: 11px;

    padding-left: 21px;
    border-left: 1px solid #e2e4e6;
}

.ekin-header-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 29px;
    height: 29px;

    border-radius: 50%;

    color: #fff;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.ekin-header-social i {
    color: #fff;
    font-size: 17px;
    line-height: 1;
}

.ekin-header-social--telegram {
    background: #149bd7;
}

.ekin-header-social--whatsapp {
    background: #19b85a;
}

.ekin-header-social:hover {
    transform: translateY(-1px);
    opacity: 0.86;
}


/**
 * ==========================================================
 * ОСНОВНАЯ СТРОКА
 * ==========================================================
 */

.ekin-header-main {
    border-bottom: 1px solid var(--header-border);

    background: #fff;

    box-shadow: 0 7px 22px rgba(23, 32, 41, 0.035);
}

.ekin-header-main__inner {
    display: grid;
    grid-template-columns:
        minmax(190px, 240px)
        minmax(420px, 1fr)
        auto;

    align-items: center;

    column-gap: 34px;

    min-height: 82px;
}


/**
 * Логотип.
 */

.ekin-header-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;
}

.ekin-header-logo {
    display: flex;
    align-items: center;
}

.ekin-header-logo .custom-logo-link {
    display: inline-flex;
    align-items: center;

    text-decoration: none;
}

.ekin-header-logo .custom-logo {
    display: block;

    width: auto;
    max-width: 220px;
    height: auto;
    max-height: 42px;
}

.ekin-header-logo-text {
    display: inline-block;

    color: var(--header-dark);

    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.045em;

    text-decoration: none;
}

.ekin-header-logo-text span {
    color: var(--header-accent);
}

.ekin-header-tagline {
    margin-top: 4px;

    color: var(--header-muted);

    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
}

/**
 * ==========================================================
 * ГЛАВНОЕ МЕНЮ
 * ==========================================================
 */

.ekin-header-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 100%;
}

.ekin-header-menu {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: clamp(20px, 2vw, 34px);

    margin: 0;
    padding: 0;

    list-style: none;
}

.ekin-header-menu > li {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 82px;
}

/* Оранжевая линия теперь находится на LI,
   а не на ссылке. Это не мешает стрелке Bootstrap */
.ekin-header-menu > li::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: 17px;
    left: 0;

    height: 2px;

    background: var(--header-accent);

    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.2s ease;
}

.ekin-header-menu > li:hover::after,
.ekin-header-menu > li:focus-within::after,
.ekin-header-menu > .current-menu-item::after,
.ekin-header-menu > .current-menu-parent::after,
.ekin-header-menu > .current-menu-ancestor::after {
    transform: scaleX(1);
}

.ekin-header-menu > li > a,
.ekin-header-menu > li > .nav-link {
    display: inline-flex;
    align-items: center;

    min-height: 82px;

    padding: 0 !important;

    color: #252c32;

    font-size: 13px;
    font-weight: 500;
    line-height: 1;

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

    transition: color 0.2s ease;
}

.ekin-header-menu > li > a:hover,
.ekin-header-menu > li > a:focus,
.ekin-header-menu > li > .nav-link:hover,
.ekin-header-menu > li > .nav-link:focus,
.ekin-header-menu > .current-menu-item > a,
.ekin-header-menu > .current-menu-parent > a,
.ekin-header-menu > .current-menu-ancestor > a {
    color: var(--header-dark);
}


/**
 * Стрелка выпадающего меню Bootstrap.
 */

.ekin-header-menu .dropdown-toggle::after {
    display: inline-block;

    width: 6px;
    height: 6px;

    margin-top: -3px;
    margin-left: 8px;

    border: 0;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;

    vertical-align: middle;

    transform: rotate(45deg);

    transition: transform 0.2s ease;
}

.ekin-header-menu .dropdown:hover > .dropdown-toggle::after,
.ekin-header-menu .dropdown.show > .dropdown-toggle::after {
    transform: rotate(225deg);
}


/**
 * Выпадающее меню.
 */

.ekin-header-menu .dropdown-menu {
    position: absolute;
    z-index: 1050;

    top: calc(100% - 9px);
    left: -16px;

    display: none;

    min-width: 230px;

    margin: 0;
    padding: 9px;

    border: 1px solid #e8eaec;
    border-radius: 12px;

    background: #fff;

    box-shadow: 0 16px 40px rgba(23, 32, 41, 0.12);
}

/* Открытие по наведению на ПК */
@media (min-width: 992px) {

    .ekin-header-menu .dropdown:hover > .dropdown-menu,
    .ekin-header-menu .dropdown:focus-within > .dropdown-menu,
    .ekin-header-menu .dropdown.show > .dropdown-menu {
        display: block;
    }

    /* Невидимая зона между пунктом и меню,
       чтобы dropdown не закрывался при движении мыши */
    .ekin-header-menu .dropdown-menu::before {
        content: "";

        position: absolute;
        right: 0;
        bottom: 100%;
        left: 0;

        height: 14px;
    }
}

.ekin-header-menu .dropdown-item {
    display: block;

    width: 100%;

    padding: 10px 12px;

    border: 0;
    border-radius: 8px;

    background: transparent;
    color: #30383e;

    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;

    text-align: left;
    text-decoration: none;
    white-space: normal;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.ekin-header-menu .dropdown-item:hover,
.ekin-header-menu .dropdown-item:focus,
.ekin-header-menu .dropdown-item.active,
.ekin-header-menu .dropdown-item:active {
    background: #fff4e5;
    color: #171d22;
}


/**
 * Подменю, если walker выводит класс sub-menu
 * вместо dropdown-menu.
 */

.ekin-header-menu .sub-menu {
    position: absolute;
    z-index: 1050;

    top: calc(100% - 9px);
    left: -16px;

    display: none;

    min-width: 230px;

    margin: 0;
    padding: 9px;

    border: 1px solid #e8eaec;
    border-radius: 12px;

    background: #fff;

    box-shadow: 0 16px 40px rgba(23, 32, 41, 0.12);

    list-style: none;
}

.ekin-header-menu li:hover > .sub-menu,
.ekin-header-menu li:focus-within > .sub-menu {
    display: block;
}

.ekin-header-menu .sub-menu a {
    display: block;

    padding: 10px 12px;

    border-radius: 8px;

    color: #30383e;

    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;

    text-decoration: none;
}

.ekin-header-menu .sub-menu a:hover,
.ekin-header-menu .sub-menu a:focus {
    background: #fff4e5;
    color: #171d22;
}

/**
 * Правая часть.
 */

.ekin-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 21px;

    min-width: 0;
}

.ekin-header-phones {
    display: flex;
    align-items: center;

    gap: 12px;

    min-width: 187px;
}

.ekin-header-phones__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 25px;

    width: 25px;
    height: 36px;

    color: var(--header-accent);
}

.ekin-header-phones__icon i {
    font-size: 24px;
    line-height: 1;
}

.ekin-header-phones__list {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.ekin-header-phones__list a {
    color: #171d22;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;

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

    transition: color 0.2s ease;
}

.ekin-header-phones__list a:hover {
    color: var(--header-accent);
}


/**
 * CTA.
 */

.ekin-header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 166px;
    min-height: 44px;

    padding: 12px 22px;

    border-radius: 10px;

    background: linear-gradient(
        180deg,
        #ffa914 0%,
        #ff8f00 100%
    );

    box-shadow: 0 7px 18px rgba(255, 145, 0, 0.17);

    color: #fff !important;

    font-size: 14px;
    font-weight: 600;
    line-height: 1;

    text-align: center;
    text-decoration: none;
    white-space: nowrap;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.ekin-header-cta:hover {
    transform: translateY(-1px);

    box-shadow: 0 10px 23px rgba(255, 145, 0, 0.24);

    opacity: 0.96;
}


/**
 * Корзина без обводки.
 */

.ekin-header-cart {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 41px;

    width: 41px;
    height: 44px;

    border: 0;
    border-radius: 0;

    background: transparent;

    color: #1f272e;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.ekin-header-cart > i {
    font-size: 25px;
    line-height: 1;
}

.ekin-header-cart:hover {
    transform: translateY(-1px);

    color: var(--header-accent);
}

.ekin-header-cart__count {
    position: absolute;
    top: 1px;
    right: -2px;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 19px;
    height: 19px;

    padding: 0 5px;

    border: 2px solid #fff;
    border-radius: 20px;

    background: var(--header-accent);
    color: #fff;

    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}


/**
 * ==========================================================
 * ПЛАНШЕТНЫЕ ДЕСКТОПНЫЕ ЭКРАНЫ
 * ==========================================================
 */

@media (max-width: 1399.98px) {

    .ekin-header-container {
        width: min(
            calc(100% - 38px),
            1320px
        );
    }

    .ekin-header-main__inner {
        grid-template-columns:
            minmax(175px, 205px)
            minmax(380px, 1fr)
            auto;

        column-gap: 22px;
    }

    .ekin-header-menu {
        gap: 20px;
    }

    .ekin-header-menu > li > a,
    .ekin-header-menu > li > .nav-link {
        font-size: 12px;
    }

    .ekin-header-actions {
        gap: 14px;
    }

    .ekin-header-phones {
        min-width: 174px;
    }

    .ekin-header-phones__list a {
        font-size: 12px;
    }

    .ekin-header-cta {
        min-width: 148px;
        padding-inline: 17px;
    }
}


@media (max-width: 1199.98px) {

    .ekin-header-main__inner {
        grid-template-columns:
            165px
            minmax(320px, 1fr)
            auto;

        column-gap: 16px;
    }

    .ekin-header-logo .custom-logo {
        max-width: 165px;
    }

    .ekin-header-logo-text {
        font-size: 27px;
    }

    .ekin-header-menu {
        gap: 14px;
    }

    .ekin-header-actions {
        gap: 11px;
    }

    .ekin-header-phones__icon {
        display: none;
    }

    .ekin-header-phones {
        min-width: 155px;
    }

    .ekin-header-cta {
        min-width: 135px;

        padding-inline: 13px;

        font-size: 12px;
    }
}


/**
 * ==========================================================
 * МОБИЛЬНАЯ ШАПКА
 * ==========================================================
 */

.ekin-mobile-header {
    position: relative;
    z-index: 101;

    border-bottom: 1px solid var(--header-border);

    background: #fff;
}

.ekin-mobile-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 66px;

    padding: 8px 16px;
}

.ekin-mobile-header__brand {
    display: flex;
    align-items: center;

    min-width: 0;
}

.ekin-mobile-header__brand .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.ekin-mobile-header__brand .custom-logo {
    display: block;

    width: auto;
    max-width: 150px;
    height: auto;
    max-height: 42px;
}

.ekin-mobile-header__logo-text {
    color: var(--header-dark);

    font-size: 25px;
    font-weight: 800;
    line-height: 1;

    text-decoration: none;
}

.ekin-mobile-header__logo-text span {
    color: var(--header-accent);
}

.ekin-mobile-header__actions {
    display: flex;
    align-items: center;

    gap: 13px;
}

.ekin-mobile-header__action,
.ekin-mobile-header__burger {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 35px;
    height: 40px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #1e262d;

    text-decoration: none;
}

.ekin-mobile-header__action i {
    font-size: 21px;
}

.ekin-mobile-header__burger i {
    font-size: 29px;
    line-height: 1;
}

.ekin-mobile-header__count {
    position: absolute;
    top: 1px;
    right: -2px;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 17px;
    height: 17px;

    padding: 0 4px;

    border: 2px solid #fff;
    border-radius: 20px;

    background: var(--header-accent);
    color: #fff;

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


/**
 * ==========================================================
 * OFFCANVAS
 * ==========================================================
 */

.ekin-mobile-menu {
    width: min(390px, 92vw) !important;

    border-left: 0 !important;

    font-family: "Montserrat", sans-serif;
}

.ekin-mobile-menu__header {
    padding: 21px 20px;

    border-bottom: 1px solid var(--header-border);
}

.ekin-mobile-menu__title {
    color: var(--header-dark);

    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.ekin-mobile-menu__tagline {
    margin-top: 5px;

    color: var(--header-muted);

    font-size: 12px;
}

.ekin-mobile-menu__body {
    display: flex;
    flex-direction: column;

    padding: 15px 20px 25px;
}

.ekin-mobile-menu .mobile-nav {
    margin: 0;
}

.ekin-mobile-menu .mobile-nav > li {
    border-bottom: 1px solid #edf0f2;
}

.ekin-mobile-menu .mobile-nav > li:first-child {
    border-top: 0;
}

.ekin-mobile-menu .mobile-nav .nav-link {
    color: #252d34;

    font-size: 15px;
    font-weight: 500;

    text-decoration: none;
}

.ekin-mobile-menu .mobile-nav > li > .nav-link {
    padding-top: 13px !important;
    padding-bottom: 13px !important;
}

.ekin-mobile-menu .mobile-nav .collapse {
    margin-top: 0;
    margin-bottom: 9px;
}

.ekin-mobile-menu .mobile-nav .collapse .nav-link {
    padding-top: 7px !important;
    padding-bottom: 7px !important;

    color: #646c73;

    font-size: 13px;
}

.ekin-mobile-menu__cta {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 48px;

    margin-top: 23px;
    padding: 13px 20px;

    border-radius: 11px;

    background: linear-gradient(
        180deg,
        #ffa914 0%,
        #ff8f00 100%
    );

    color: #fff !important;

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;
}

.ekin-mobile-menu__contacts {
    display: flex;
    flex-direction: column;

    gap: 12px;

    margin-top: 25px;
    padding-top: 22px;

    border-top: 1px solid var(--header-border);
}

.ekin-mobile-menu__contacts a {
    display: flex;
    align-items: center;

    gap: 11px;

    color: #30383e;

    font-size: 13px;
    font-weight: 500;

    text-decoration: none;
}

.ekin-mobile-menu__contacts i {
    width: 19px;

    color: var(--header-accent);

    font-size: 17px;
    text-align: center;
}

.ekin-mobile-menu__socials {
    display: flex;
    align-items: center;

    gap: 11px;

    margin-top: 20px;
}


/**
 * Маленькие телефоны.
 */

@media (max-width: 420px) {

    .ekin-mobile-header__inner {
        padding-inline: 12px;
    }

    .ekin-mobile-header__brand .custom-logo {
        max-width: 127px;
    }

    .ekin-mobile-header__logo-text {
        font-size: 22px;
    }

    .ekin-mobile-header__actions {
        gap: 8px;
    }
}