/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: relative;
    z-index: 100;

    width: 100%;
    height: 166px;

    margin: 0;
    padding: 0;

    background: #ffffff;

    border: 0;
    outline: 0;

    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.10);
}


/* =========================================================
   ВНУТРЕННИЙ КОНТЕЙНЕР
   ========================================================= */

.header-inner {
    position: relative;

    width: 100%;
    max-width: 1400px;
    height: 120px;

    margin: 0 auto;
    padding: 0 40px;

    box-sizing: border-box;

    display: flex;
    align-items: center;
}


/* =========================================================
   ЛОГОТИП
   ========================================================= */

.header-logo {
    position: absolute;

    top: 10px;
    left: 50%;

    width: 100px;
    height: 100px;

    transform: translateX(-50%);

    display: block;

    margin: 0;
    padding: 0;

    background: #5e1b50;

    border: 0;
    outline: 0;

    text-decoration: none;

    box-shadow: none;
}


.header-logo::before,
.header-logo::after {
    display: none !important;
    content: none !important;
}


.header-logo img {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    object-fit: contain;

    border: 0;
    outline: 0;

    box-shadow: none;
}


/* =========================================================
   КОНТАКТЫ
   ========================================================= */

.header-contacts {
    position: absolute;

    top: 50%;
    right: 40px;

    transform: translateY(-50%);

    display: flex;
    align-items: center;

    gap: 35px;

    margin: 0;
    padding: 0;
}


/* =========================================================
   ОДИН КОНТАКТ
   ========================================================= */

.header-contact {
    display: flex;
    align-items: flex-start;

    margin: 0;
    padding: 0;
}


/* =========================================================
   ИКОНКА КОНТАКТА
   ========================================================= */

.header-contact-icon {
    flex: 0 0 30px;

    width: 30px;
    height: 30px;

    margin: 2px 10px 0 0;
    padding: 0;
}


.header-contact-icon svg {
    display: block;

    width: 30px;
    height: 30px;

    margin: 0;
    padding: 0;

    fill: none;

    stroke: #5e1b50;

    stroke-width: 1.5;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   ТЕКСТ КОНТАКТОВ
   ========================================================= */

.header-contact-content {
    display: flex;
    flex-direction: column;

    margin: 0;
    padding: 0;
}


.header-contact-title {
    margin: 0 0 3px 0;
    padding: 0;

    font-family: Arial, sans-serif;

    font-size: 11px;
    line-height: 1.2;

    font-weight: 700;

    color: #5e1b50;

    text-transform: uppercase;

    letter-spacing: 0.7px;
}


.header-contact-link {
    display: block;

    margin: 0;
    padding: 0;

    font-family: Arial, sans-serif;

    font-size: 13px;
    line-height: 1.4;

    font-weight: 400;

    color: #333333;

    text-decoration: none;

    transition: color 0.2s ease;
}


.header-contact-link:hover {
    color: #5e1b50;
}


/* =========================================================
   ТЕЛЕФОН
   ========================================================= */

.header-phone {
    font-size: 15px;

    font-weight: 600;

    white-space: nowrap;
}


/* =========================================================
   РАЗДЕЛИТЕЛЬ МЕЖДУ КОНТАКТАМИ
   ========================================================= */

.header-contact + .header-contact {
    position: relative;

    padding-left: 35px;
}


.header-contact + .header-contact::before {
    content: "";

    position: absolute;

    left: 0;
    top: 5px;

    width: 1px;
    height: 42px;

    background: rgba(94, 27, 80, 0.18);
}


/* =========================================================
   ОСНОВНАЯ НАВИГАЦИЯ
   ========================================================= */

.site-navigation {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 1000;

    width: 100%;
    height: 46px;

    background: rgba(255, 255, 255, 0.98);

    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.045);

    pointer-events: auto;
}


/* =========================================================
   ВНУТРЕННИЙ КОНТЕЙНЕР МЕНЮ
   ========================================================= */

.site-navigation-inner {
    position: relative;
    z-index: 1001;

    width: 100%;
    max-width: 1400px;
    height: 100%;

    margin: 0 auto;
    padding: 0 40px;

    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: auto;
}


/* =========================================================
   СПИСОК МЕНЮ
   ========================================================= */

.primary-menu {
    position: relative;
    z-index: 1001;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    width: auto;

    margin: 0;
    padding: 0;

    list-style: none;

    pointer-events: auto;
}


/* =========================================================
   ПУНКТ МЕНЮ
   ========================================================= */

.primary-menu > li {
    position: relative;
    z-index: 1001;

    margin: 0;
    padding: 0;

    pointer-events: auto;
}


/* =========================================================
   ССЫЛКА МЕНЮ
   ========================================================= */

.primary-menu > li > a {
    position: relative;
    z-index: 1002;

    display: flex;
    align-items: center;

    height: 46px;

    padding: 0 18px;

    color: #777777;

    font-family: Arial, sans-serif;

    font-size: 12px;
    line-height: 1;

    font-weight: 600;

    letter-spacing: 0.04em;

    text-decoration: none;

    white-space: nowrap;

    cursor: pointer;
    pointer-events: auto;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}


/* =========================================================
   УБИРАЕМ ПОДЧЁРКИВАНИЕ
   ========================================================= */

.primary-menu > li > a::after {
    display: none;

    content: none;
}


/* =========================================================
   НАВЕДЕНИЕ
   ========================================================= */

.primary-menu > li > a:hover {
    color: #5e1b50;
}


/* =========================================================
   АКТИВНЫЙ ПУНКТ
   ========================================================= */

.primary-menu > li.current-menu-item > a,
.primary-menu > li.current-menu-ancestor > a {
    color: #5e1b50;
}


/* =========================================================
   ПЛАНШЕТ
   ========================================================= */

@media (max-width: 900px) {

    .site-header {
        height: 151px;
    }


    .header-inner {
        height: 105px;

        padding: 0 20px;
    }


    .header-logo {
        top: 7px;

        width: 90px;
        height: 90px;
    }


    .header-contacts {
        right: 20px;

        gap: 20px;
    }


    .header-contact + .header-contact {
        padding-left: 20px;
    }


    .header-contact-link {
        font-size: 12px;
    }


    .header-phone {
        font-size: 14px;
    }


    .header-contact-icon {
        flex-basis: 26px;

        width: 26px;
        height: 26px;

        margin-right: 8px;
    }


    .header-contact-icon svg {
        width: 26px;
        height: 26px;
    }


    /* -----------------------------------------------------
       МЕНЮ
       ----------------------------------------------------- */

    .site-navigation-inner {
        padding: 0 20px;
    }


    .primary-menu {
        gap: 2px;
    }


    .primary-menu > li > a {
        padding: 0 12px;

        font-size: 11px;
    }

}


/* =========================================================
   МОБИЛЬНЫЙ
   ========================================================= */

@media (max-width: 700px) {

    .site-header {
        height: 80px;
    }


    .header-inner {
        height: 80px;

        padding: 0 12px;
    }


    .header-logo {
        top: 5px;

        left: 50%;

        width: 70px;
        height: 70px;
    }


    .header-contacts {
        right: 12px;

        gap: 12px;
    }


    .header-contact:first-child {
        display: none;
    }


    .header-contact + .header-contact {
        padding-left: 0;
    }


    .header-contact + .header-contact::before {
        display: none;
    }


    .header-contact-icon {
        flex-basis: 20px;

        width: 20px;
        height: 20px;

        margin-right: 6px;
    }


    .header-contact-icon svg {
        width: 20px;
        height: 20px;
    }


    .header-contact-title {
        font-size: 9px;
    }


    .header-phone {
        font-size: 12px;
    }


    /* -----------------------------------------------------
       НА МОБИЛЬНОМ ДЕСКТОПНОЕ МЕНЮ СКРЫТО
       ----------------------------------------------------- */

    .site-navigation {
        display: none;
    }

}


/* =========================================================
   СБРОС
   ========================================================= */

html,
body {
    margin: 0;
    padding: 0;

    border: 0;
}


/* =========================================================
   МОБИЛЬНОЕ МЕНЮ
   ========================================================= */

.mobile-menu-toggle {
    display: none;
}

.mobile-menu {
    display: none;
}

.mobile-menu-overlay {
    display: none;
}


/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================================================= */

@media (max-width: 700px) {

    /*
     * Кнопка открытия
     */

    .mobile-menu-toggle {
        position: absolute;
        top: 50%;
        left: 18px;
        z-index: 10002;

        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;

        width: 42px;
        height: 42px;

        margin: 0;
        padding: 8px;

        border: 0;
        background: transparent;

        cursor: pointer;

        transform: translateY(-50%);
    }


    .mobile-menu-toggle span {
        display: block;

        width: 24px;
        height: 2px;

        margin: 3px 0;

        background: #5e1b50;

        transition:
            transform 0.25s ease,
            opacity 0.25s ease,
            width 0.25s ease;
    }


    .mobile-menu-toggle:hover span {
        background: #cca444;
    }


    /*
     * Десктопная навигация на мобильном скрыта
     */

    .site-navigation {
        display: none;
    }


    /*
     * Затемнение страницы
     */

    .mobile-menu-overlay {
        position: fixed;
        inset: 0;
        z-index: 10000;

        display: block;

        background: rgba(30, 20, 28, 0.28);

        opacity: 0;
        visibility: hidden;

        pointer-events: none;

        transition:
            opacity 0.25s ease,
            visibility 0.25s ease;
    }


    /*
     * Панель меню
     */

    .mobile-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;

        z-index: 10001;

        display: block;

        width: min(320px, 86vw);

        background: #ffffff;

        box-shadow:
            -8px 0 30px rgba(94, 29, 83, 0.14);

        transform: translateX(100%);

        transition:
            transform 0.3s ease;

        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }


    .mobile-menu-inner {
        position: relative;

        min-height: 100%;

        padding: 76px 28px 32px;
    }


    /*
     * Кнопка закрытия
     */

    .mobile-menu-close {
        position: absolute;
        top: 20px;
        right: 20px;

        display: flex;
        align-items: center;
        justify-content: center;

        width: 42px;
        height: 42px;

        margin: 0;
        padding: 0;

        border: 0;
        background: transparent;

        cursor: pointer;
    }


    .mobile-menu-close span {
        position: absolute;

        display: block;

        width: 25px;
        height: 2px;

        background: #5e1b50;

        transition:
            background-color 0.2s ease;
    }


    .mobile-menu-close span:first-child {
        transform: rotate(45deg);
    }


    .mobile-menu-close span:last-child {
        transform: rotate(-45deg);
    }


    .mobile-menu-close:hover span {
        background: #cca444;
    }


    /*
     * Список пунктов
     */

    .mobile-primary-menu {
        display: flex;
        flex-direction: column;

        margin: 0;
        padding: 0;

        list-style: none;
    }


    .mobile-primary-menu li {
        margin: 0;
        padding: 0;

        border-bottom: 1px solid rgba(94, 29, 83, 0.08);
    }


    .mobile-primary-menu li:first-child {
        border-top: 1px solid rgba(94, 29, 83, 0.08);
    }


    .mobile-primary-menu a {
        display: flex;
        align-items: center;

        min-height: 52px;

        padding: 12px 4px;

        color: #666666;

        font-size: 15px;
        line-height: 1.35;
        font-weight: 500;

        text-decoration: none;

        transition:
            color 0.2s ease,
            padding-left 0.2s ease;
    }


    .mobile-primary-menu a:hover,
    .mobile-primary-menu a:focus {
        color: #5e1b50;
        padding-left: 8px;
    }


    /*
     * Открытое состояние
     */

    body.mobile-menu-open {
        overflow: hidden;
    }


    body.mobile-menu-open .mobile-menu {
        transform: translateX(0);
    }


    body.mobile-menu-open .mobile-menu-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }


    body.mobile-menu-open .mobile-menu-toggle {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

}


/* =========================================================
   УЗКИЕ ЭКРАНЫ
   ========================================================= */

@media (max-width: 420px) {

    .mobile-menu {
        width: 88vw;
    }


    .mobile-menu-inner {
        padding-left: 22px;
        padding-right: 22px;
    }

}