/* =========================================================
   Sticky Top Panel
   Только десктоп: от 1025px
   ========================================================= */

.stp-panel {
    display: none;
}


/* Работаем только на десктопе */
@media (min-width: 1025px) {

    .stp-panel {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;

        width: 100%;
        height: 67px;

        background: #ffffff;

        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);

        z-index: 99999;

        transform: translateY(-100%);
        transition: transform 0.25s ease;

        display: block;
    }

.stp-panel__logo {
    position: absolute;
    top: 0;
    left: 0;

    width: max(0px, calc((100vw - 1400px) / 2));
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 2;
}

.stp-panel__logo img {
    display: block;
     max-width: calc(100% - 20px);
    max-height: 50px;
    width: auto;
    height: auto;
}

    .stp-panel.stp-panel--visible {
        transform: translateY(0);
    }


.stp-panel__inner {
    width: 100%;
    max-width: 1400px;
    height: 100%;

    margin: 0 auto;

    display: flex;
    align-items: center;

    box-sizing: border-box;

    /* padding-left: 0; */
	padding: 0 10px;
}

.stp-panel__test {
    display: flex;
    align-items: center;
    gap: 30px;
    text-align: left;
	flex: 1;
}

.stp-panel__search {
    width: 500px;
    height: 100%;
    display: flex;
    align-items: center;
    flex: 0 0 500px;
}

.stp-panel__search .wfs-search-box {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.stp-panel__search .wfs-live-results {
    width: 950px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.stp-panel__phones {
    display: flex;
    flex-direction: column;
	margin-left: auto;
	 margin-right: 45px;
}

.stp-panel__consultation {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 42px;
    padding: 0 20px;

    margin-left: 20px;

    border: 2px solid #ef4b43;
    border-radius: 24px;

    color: #ef4b43;
    background: #ffffff;

    text-decoration: none;

    font-size: 16px;
    font-weight: 600;
    line-height: 1;

    white-space: nowrap;
    box-sizing: border-box;
	
	transition: background 0.2s ease, color 0.2s ease;
}

.stp-panel__consultation:hover {
    background: #ef4b43;
    color: #ffffff;
}

.stp-panel__phones a {
    color: #5eb52a;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.35;
}



    .stp-panel__test {
        padding: 0;

        font-size: 16px;
        font-weight: 600;
    }
}

.stp-panel__catalog-button {
    display: inline-flex;
    align-items: center;

    height: 54px;
    padding: 0 22px;

    background: #ef4b43;
    border-radius: 30px;

    box-sizing: border-box;
}

.stp-panel__catalog-button a {
    display: flex;
    align-items: center;

    color: #ffffff;
    text-decoration: none;

    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}



@media (min-width: 1025px) {

    /* Убираем штатную иконку сайта */

    /* Наш постоянный значок */
@media (min-width: 1025px) {

    .stp-panel__catalog-button::before {
        content: '' !important;

        display: block !important;

        width: 20px !important;
        height: 14px !important;

        flex: 0 0 20px !important;

        margin-right: 10px !important;

        background:
            linear-gradient(#ffffff, #ffffff) 0 0 / 20px 2px no-repeat,
            linear-gradient(#ffffff, #ffffff) 0 6px / 14px 2px no-repeat,
            linear-gradient(#ffffff, #ffffff) 0 12px / 20px 2px no-repeat !important;

        opacity: 1 !important;
        visibility: visible !important;
    }

}

    /* Белый текст во всех состояниях */
    .stp-panel__catalog-button,
    .stp-panel__catalog-button a,
    .stp-panel__catalog-button a:visited,
    .stp-panel__catalog-button a:hover,
    .stp-panel__catalog-button a:focus,
    .stp-panel__catalog-button a:active {
        color: #ffffff !important;
    }

}

@media (min-width: 1025px) {


.stp-panel__catalog-button a {
    display: flex;
    align-items: center;

    color: #ffffff !important;
    text-decoration: none;

    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

}

@media (min-width: 1025px) {

    body:has(.stp-panel__catalog-button.js-close-cats) .mage-menu-wrapper {
        position: fixed;
        top: 67px;
        left: 0;
        right: 0;

        width: 100%;
        max-width: none;

        margin: 0;
    }

}

@media (min-width: 1025px) {

    .stp-panel__catalog-button {
        cursor: pointer;
    }

    .stp-panel__catalog-button a {
        cursor: pointer;
    }

}

.stp-panel__links {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stp-panel__links a {
    color: #4B2919;
    font-weight: 700;
    text-decoration: none;
}

.stp-panel__links a:last-child {
    align-self: flex-end;
}