.stm-premium-header,
.stm-premium-header * {
    box-sizing: border-box;
}

.stm-premium-header {
    --stm-ph-blue: #061983;
    --stm-ph-blue-hover: #0a2499;
    --stm-ph-text: #242424;
    position: relative;
    z-index: 999990;
    width: 100%;
    margin: 15px 0 0;
    padding: 0;
    background: #fff;
    color: var(--stm-ph-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.4;
}

.stm-premium-header a {
    text-decoration: none !important;
}

.stm-premium-header button,
.stm-premium-header input {
    font: inherit;
}

.stm-premium-header button {
    cursor: pointer;
}

/* ==========================================================
   МОБИЛЬНЫЕ ИКОНКИ — СКРЫТЫ ПО УМОЛЧАНИЮ
   Вне мобильного меню этот блок не отображается.
   ========================================================== */

#stmPremiumHeader .stm-ph-mobile-tools {
    display: none !important;
}

/* ==========================================================
   ВЕРХНЯЯ ПАНЕЛЬ
   ========================================================== */

.stm-ph-top {
    position: relative;
    z-index: 999992;
    width: 100%;
    background: #fff;
}

.stm-ph-top__inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1425px;
    margin: 0 auto;
    padding: 0 20px;
}

.stm-ph-meta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 48px;
    border-bottom: 1px solid #f0f1f5;
}

.stm-ph-city,
.stm-ph-phones {
    position: relative;
    flex: 0 0 auto;
    z-index: 999993;
}

.stm-ph-city__button {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 0 !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    text-transform: none !important;
    color: #3f4653 !important;
    font-size: 16px !important;
    font-weight: normal !important;
    line-height: 1.4 !important;
    font-family: inherit !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transform: none !important;
    transition: color .2s ease !important;
}

.stm-ph-city__button::before,
.stm-ph-city__button::after {
    display: none !important;
    content: none !important;
}

.stm-ph-city__button:hover,
.stm-ph-city__button:focus,
.stm-ph-city__button:active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #061983 !important;
}

.stm-ph-city__button svg {
    display: block !important;
    width: 10px !important;
    height: 10px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.5 !important;
    pointer-events: none;
}

.stm-ph-city__dropdown {
    position: absolute;
    top: 100% !important;
    left: 0;
    z-index: 999999 !important;
    display: none;
    min-width: 150px;
    padding: 6px 0;
    border: 1px solid #ececf3;
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 30, 70, .12);
}

.stm-ph-city.is-open .stm-ph-city__dropdown {
    display: block;
}

.stm-ph-city__dropdown a {
    display: block;
    padding: 9px 14px;
    color: #353b49 !important;
    font-size: 14px !important;
    white-space: nowrap;
}

.stm-ph-city__dropdown a:hover {
    background: #f4f4ff;
    color: var(--stm-ph-blue) !important;
}

.stm-ph-address {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: #555d6d !important;
    font-size: 16px !important;
    white-space: nowrap;
}

.stm-ph-address svg {
    display: block;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--stm-ph-blue);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stm-ph-address:hover {
    color: var(--stm-ph-blue) !important;
}

.stm-ph-socials {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.stm-ph-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    overflow: hidden;
    border-radius: 5px;
    transition: opacity .2s ease;
}

.stm-ph-social:hover {
    opacity: .75;
}

.stm-ph-social img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.stm-ph-phones {
    display: flex;
    align-items: center;
    margin-left: 30px;
}

.stm-ph-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    color: #151922 !important;
    font-size: 18px !important;
    font-weight: 700;
    white-space: nowrap;
}

.stm-ph-phone__numbers--header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
    text-align: left;
}

.stm-ph-phone__numbers--header .stm-ph-phone__main {
    display: block;
    margin: 0;
    padding: 0;
    line-height: 1.3;
    white-space: nowrap;
}

.stm-ph-phone:hover,
.stm-ph-phones:focus-within > .stm-ph-phone {
    color: var(--stm-ph-blue) !important;
}

.stm-ph-phone__dropdown {
    position: absolute;
    top: 100% !important;
    right: 0 !important;
    z-index: 999999 !important;
    display: block;
    width: 250px;
    max-width: calc(100vw - 24px);
    padding: 17px;
    border: 1px solid #e6e8f2;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(25, 30, 75, .15);
    color: #292d38;
    font-size: 12px;
    font-weight: 400;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(5px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.stm-ph-phones:hover .stm-ph-phone__dropdown,
.stm-ph-phones:focus-within .stm-ph-phone__dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.stm-ph-phone__numbers {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-bottom: 13px;
    border-bottom: 1px solid #eceef5;
}

.stm-ph-phone__numbers a {
    color: #171b25 !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.stm-ph-phone__numbers a:hover {
    color: var(--stm-ph-blue) !important;
}

.stm-ph-phone__office {
    padding-top: 12px;
}

.stm-ph-phone__office strong {
    display: block;
    margin-bottom: 5px;
    color: var(--stm-ph-blue);
    font-size: 14px;
}

.stm-ph-phone__office p {
    margin: 0;
    color: #515766;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: break-word;
}

.stm-ph-phone__schedule {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid #eceef5;
    color: #515766;
    font-size: 12px;
}

.stm-ph-phone__email {
    display: block;
    max-width: 100%;
    margin-top: 12px;
    color: var(--stm-ph-blue) !important;
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.stm-ph-phone__email:hover {
    text-decoration: underline !important;
}

.stm-ph-callback {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    height: 100%;
    margin-right: auto;
    white-space: nowrap;
}

.stm-ph-login-wrap {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    height: 100%;
}

.stm-ph-login {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 4px 0 7px;
    color: #333b4a !important;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.stm-ph-login svg {
    display: block;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stm-ph-login:hover {
    color: var(--stm-ph-blue) !important;
}

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

.stm-ph-main-row {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    min-height: 76px;
}

.stm-ph-logo {
    display: inline-flex;
    flex: 0 0 190px;
    align-items: center;
    max-width: 190px;
}

.stm-ph-logo__image {
    display: block;
    width: 100%;
    max-width: 190px;
    height: auto;
    max-height: 52px;
    object-fit: contain;
    object-position: left center;
}

.stm-ph-description {
    display: flex;
    flex: 0 0 220px;
    align-items: center;
    max-width: 220px;
    min-width: 0;
    color: #555d6d;
    font-size: 15px;
    line-height: 1.45;
}

.stm-ph-search-panel {
    display: block;
    flex: 1 1 200px;
    min-width: 160px;
    max-width: none;
    margin: 0 15px;
}

.stm-ph-search-panel form {
    display: flex;
    align-items: center;
    width: 100%;
    height: 39px;
    overflow: hidden;
    border: 1px solid #dedee8;
    border-radius: 4px;
    background: #fff;
}

.stm-ph-search-panel input {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 12px;
    border: 0;
    outline: none;
    background: transparent;
    color: #252a35;
    font-size: 12px;
}

.stm-ph-search-panel input::placeholder {
    color: #858b98;
    opacity: 1;
}

.stm-ph-search-panel form:focus-within {
    border-color: var(--stm-ph-blue);
    box-shadow: 0 0 0 1px rgba(6, 25, 131, .06);
}

.stm-ph-search-panel button {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 100%;
    padding: 0;
    border: 0;
    background: var(--stm-ph-blue);
    color: #fff;
}

.stm-ph-search-panel button:hover {
    background: var(--stm-ph-blue-hover);
}

.stm-ph-search-panel button svg {
    display: block;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stm-ph-icon-button {
    display: inline-flex;
    flex: 0 0 25px;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 34px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: #4b5260 !important;
}

.stm-ph-icon-button svg {
    display: block;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stm-ph-icon-button:hover {
    color: var(--stm-ph-blue) !important;
}

/* Мобильные элементы скрыты по умолчанию */
.stm-ph-mobile-call,
.stm-ph-mobile-toggle,
.stm-ph-mobile-header,
.stm-ph-mobile-contacts,
.stm-ph-mobile-search-btn,
.stm-ph-mobile-search-panel {
    display: none;
}

/* ==========================================================
   ОСНОВНАЯ НАВИГАЦИЯ — СИНЯЯ ПОЛОСА
   ========================================================== */

.stm-ph-nav {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1425px;
    min-height: 50px;
    margin-right: auto;
    margin-left: auto;
    background: var(--stm-ph-blue);
}

.stm-ph-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1425px;
    min-height: 50px;
    margin: 0 auto;
    padding: 0;
}

.stm-ph-nav__inner > .stm-ph-nav__dropdown-wrap {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: stretch;
    justify-content: center;
    min-width: 0;
}

.stm-ph-nav__item,
.stm-ph-nav__dropdown-wrap > .stm-ph-nav__item {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 13px;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color .2s ease;
}

.stm-ph-nav__item--catalog {
    justify-content: flex-start;
    padding-left: 20px;
}

.stm-ph-nav__item svg {
    display: block;
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.4;
}

.stm-ph-nav__item:hover,
.stm-ph-nav__item:focus-visible {
    background: var(--stm-ph-blue-hover);
    color: #fff !important;
}

.stm-ph-nav__dropdown-wrap > .stm-ph-nav__item::after {
    content: "";
    display: inline-block;
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    margin: -3px 0 0 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
}

.stm-ph-nav__dropdown-wrap:hover > .stm-ph-nav__item::after {
    transform: rotate(225deg);
}

.stm-ph-nav__dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 100050;
    display: flex;
    flex-direction: column;
    width: max-content;
    min-width: 100%;
    max-width: min(460px, calc(100vw - 24px));
    padding: 7px 0;
    margin: 0;
    border: 1px solid #ededf2;
    border-radius: 0 0 4px 4px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(20, 30, 70, .16);
    white-space: normal;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
}

.stm-ph-nav__dropdown::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 0;
    left: 0;
    height: 8px;
}

.stm-ph-nav__dropdown-wrap:hover > .stm-ph-nav__dropdown,
.stm-ph-nav__dropdown-wrap:focus-within > .stm-ph-nav__dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.stm-ph-nav__dropdown > a {
    display: block;
    width: 100%;
    padding: 10px 17px;
    background: #fff;
    color: #242424 !important;
    font-size: 13px !important;
    font-weight: 500;
    line-height: 1.45;
    text-align: left;
    text-transform: none;
    white-space: normal;
    overflow-wrap: break-word;
    transition: color .15s ease, background-color .15s ease;
}

.stm-ph-nav__dropdown > a:hover,
.stm-ph-nav__dropdown > a:focus-visible {
    background: #f5f5ff;
    color: #4945ed !important;
}

.stm-ph-nav__dropdown-wrap--catalog > .stm-ph-nav__dropdown {
    left: 50px;
    transform: none;
}

.stm-ph-nav__dropdown-wrap--about > .stm-ph-nav__dropdown,
.stm-ph-nav__dropdown-wrap--help > .stm-ph-nav__dropdown {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
}

.stm-ph-nav__dropdown-wrap--contacts > .stm-ph-nav__dropdown {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
}

/* ==========================================================
   ЛИПКАЯ ПАНЕЛЬ — ТОЛЬКО ДЕСКТОП
   ========================================================== */

.stm-ph-stickybar {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 999900;
    width: 100%;
    max-width: 1425px;
    background: #fff;
    border-bottom: 1px solid #e8eaf0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    transform: translate(-50%, -110%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease, visibility .25s ease;
}

.stm-ph-stickybar.is-visible {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.stm-ph-stickybar .stm-ph-nav__inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between;
    gap: 0;
    width: 100%;
    max-width: 1425px;
    min-height: 50px !important;
    margin: 0 auto;
    padding: 0 20px;
    background: #fff;
}

.stm-ph-stickybar .stm-ph-nav__inner > .stm-ph-nav__item,
.stm-ph-stickybar .stm-ph-nav__inner > .stm-ph-nav__dropdown-wrap {
    position: relative;
    display: flex !important;
    flex: 1 1 0;
    align-items: center !important;
    justify-content: center;
    min-width: 0;
    height: 100%;
    background: #fff;
}

.stm-ph-stickybar .stm-ph-nav__item,
.stm-ph-stickybar .stm-ph-nav__dropdown-wrap > .stm-ph-nav__item {
    display: flex !important;
    align-items: center !important;
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: 100%;
    min-height: 50px !important;
    padding: 0 4px;
    background: #fff;
    color: #000 !important;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    text-decoration: none !important;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}

.stm-ph-stickybar .stm-ph-nav__item svg,
.stm-ph-stickybar .stm-ph-nav__item img {
    display: none !important;
}

.stm-ph-stickybar .stm-ph-nav__item:hover,
.stm-ph-stickybar .stm-ph-nav__item:focus-visible {
    color: #061983 !important;
    border-bottom-color: #061983;
}

.stm-ph-stickybar .stm-ph-nav__dropdown-wrap > .stm-ph-nav__item::after {
    content: "";
    display: inline-block;
    flex: 0 0 auto;
    width: 5px;
    height: 5px;
    margin: -2px 0 0 2px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
}

.stm-ph-stickybar .stm-ph-nav__dropdown-wrap:hover > .stm-ph-nav__item::after {
    transform: rotate(225deg);
}

.stm-ph-stickybar .stm-ph-nav__dropdown {
    top: 100%;
    left: 0;
    z-index: 100001;
    min-width: 200px;
    margin-top: 0 !important;
    background: #fff;
    border: 1px solid #e8eaf0;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
    transform: none;
}

.stm-ph-stickybar .stm-ph-nav__dropdown > a {
    color: #242424 !important;
    background: #fff;
    text-transform: none;
    font-size: 13px !important;
    text-decoration: none !important;
    transition: background .15s ease, color .15s ease;
}

.stm-ph-stickybar .stm-ph-nav__dropdown > a:hover {
    color: #061983 !important;
    background: #f2f5ff;
}

/* ==========================================================
   АДАПТИВНОСТЬ — ПЛАНШЕТЫ
   ========================================================== */

@media (max-width: 1250px) and (min-width: 1051px) {
    .stm-ph-top__inner {
        padding-right: 16px;
        padding-left: 16px;
    }

    .stm-ph-meta-row {
        gap: 10px;
    }

    .stm-ph-main-row {
        gap: 10px;
    }

    .stm-ph-logo {
        flex-basis: 165px;
        max-width: 165px;
    }

    .stm-ph-logo__image {
        max-width: 165px;
    }

    .stm-ph-description {
        flex-basis: 180px;
        max-width: 180px;
        font-size: 11px;
    }

    .stm-ph-nav__item,
    .stm-ph-nav__dropdown-wrap > .stm-ph-nav__item {
        padding-right: 9px;
        padding-left: 9px;
        font-size: 13px;
    }

    .stm-ph-address {
        font-size: 15px !important;
    }

    .stm-ph-city__button {
        font-size: 15px !important;
    }
}

@media (min-width: 768px) and (max-width: 1050px) {
    .stm-ph-top__inner {
        padding-right: 16px;
        padding-left: 16px;
    }

    .stm-ph-meta-row {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px 10px;
        padding: 8px 0;
    }

    .stm-ph-socials {
        margin-left: 0;
    }

    .stm-ph-callback {
        margin-right: 0;
    }

    .stm-ph-main-row {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 0;
    }

    .stm-ph-description {
        flex: 1 1 180px;
        max-width: 220px;
    }

    .stm-ph-search-panel {
        flex: 1 1 230px;
        max-width: none;
        margin: 0;
    }

    .stm-ph-nav__item,
    .stm-ph-nav__dropdown-wrap > .stm-ph-nav__item {
        padding-right: 7px;
        padding-left: 7px;
        font-size: 12px;
    }
}

/* ==========================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================================================== */

@media (max-width: 767px) {

    /* Фиксированная мобильная шапка */
    #stmPremiumHeader {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 999999 !important;
        width: 100% !important;
        margin-top: 0 !important;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
    }

    /* Отступ страницы под фиксированную шапку */
    body {
        padding-top: 76px !important;
    }

    .stm-ph-top {
        position: relative;
        z-index: auto;
    }

    .stm-ph-top__inner {
        gap: 0;
        padding: 0 12px;
    }

    .stm-ph-meta-row {
        display: none !important;
    }

    .stm-ph-main-row {
        position: relative;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        min-height: 60px;
        padding: 8px 0;
    }

    /* Скрываем элементы десктопной шапки.
       Мобильные иконки ниже имеют более специфичный селектор. */
    .stm-ph-description,
    .stm-ph-search-panel,
    .stm-ph-phones,
    .stm-ph-cart,
    .stm-ph-favorites,
    .stm-ph-compare,
    .stm-ph-login {
        display: none !important;
    }

    .stm-ph-logo {
        flex: 1 1 auto;
        justify-content: center;
        max-width: 50%;
        margin: 0 auto;
    }

    .stm-ph-logo__image {
        max-height: 40px;
        margin: 0 auto;
        object-position: center;
    }

    /* Кнопка мобильного меню */
    .stm-ph-mobile-toggle {
        position: relative;
        z-index: 100005;
        display: flex !important;
        flex: 0 0 35px !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 35px !important;
        height: 35px !important;
        padding: 6px !important;
        margin: 0 !important;
        border: none !important;
        outline: none !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        transform: none !important;
        cursor: pointer !important;
        pointer-events: auto;
    }

    .stm-ph-mobile-toggle span {
        display: block !important;
        width: 22px !important;
        height: 2px !important;
        border-radius: 2px;
        background: #303746 !important;
        pointer-events: none;
    }

    /* Кнопки поиска и звонка */
    .stm-ph-mobile-search-btn,
    .stm-ph-mobile-call {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 34px !important;
        height: 34px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        cursor: pointer;
    }

    .stm-ph-mobile-search-btn img {
        display: block !important;
        width: 22px !important;
        height: 22px !important;
        margin: 0 !important;
        padding: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .stm-ph-mobile-call svg {
        display: block !important;
        width: 22px !important;
        height: 22px !important;
        fill: none !important;
        stroke: currentColor !important;
        stroke-width: 1.8 !important;
        stroke-linecap: round !important;
        stroke-linejoin: round !important;
    }

    .stm-ph-mobile-search-btn {
        order: 3;
        margin-left: 0 !important;
    }

    .stm-ph-mobile-call {
        order: 2;
        margin-right: 0 !important;
    }

    /* Выдвижная панель поиска */
    .stm-ph-mobile-search-panel {
        position: fixed !important;
        top: -100px !important;
        left: 0;
        z-index: 1000002 !important;
        display: block !important;
        width: 100%;
        padding: 10px 15px;
        background: #fff;
        box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
        transition: top .3s ease;
    }

    .stm-ph-mobile-search-panel.is-open {
        top: 60px !important;
    }

    .stm-ph-mobile-search-panel form {
        display: flex !important;
        align-items: center !important;
        width: 100%;
        height: 40px;
        margin: 0;
        overflow: hidden;
        border: 1px solid #dedee8;
        border-radius: 4px;
    }

    .stm-ph-mobile-search-panel input {
        flex: 1;
        height: 100%;
        padding: 0 12px;
        border: 0;
        outline: none;
        background: #fff;
        font-size: 14px;
    }

    .stm-ph-mobile-search-panel button[type="submit"] {
        display: flex !important;
        flex: 0 0 40px;
        align-items: center !important;
        justify-content: center !important;
        width: 40px;
        height: 100%;
        padding: 0;
        border: 0;
        background: #061983;
        color: #fff;
        cursor: pointer;
    }

    .stm-ph-mobile-search-panel button[type="submit"] svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }

    /* Крестик закрытия поиска */
    .stm-ph-mobile-search-close {
        position: relative !important;
        z-index: 100 !important;
        display: flex !important;
        flex: 0 0 40px !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 100% !important;
        min-height: 40px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-left: 1px solid #ddd !important;
        border-radius: 0 !important;
        background: #f5f5f5 !important;
        color: #333 !important;
        box-shadow: none !important;
        transform: none !important;
        cursor: pointer !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .stm-ph-mobile-search-close::before,
    .stm-ph-mobile-search-close::after {
        display: none !important;
        content: none !important;
    }

    .stm-ph-mobile-search-close img {
        display: block !important;
        width: 20px !important;
        height: 20px !important;
        max-width: 20px !important;
        max-height: 20px !important;
        margin: 0 !important;
        padding: 0 !important;
        object-fit: contain !important;
        pointer-events: none !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* ======================================================
       МОБИЛЬНОЕ ВЫЕЗЖАЮЩЕЕ МЕНЮ
       ====================================================== */

    #stmPremiumHeader .stm-ph-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 1000000 !important;
        display: flex !important;
        flex-direction: column !important;
        width: 85% !important;
        max-width: 350px !important;
        height: 100vh !important;
        height: 100dvh !important;
        padding: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        background: #fff !important;
        box-shadow: 2px 0 20px rgba(0, 0, 0, .2) !important;
        transform: translateX(-105%) !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: transform .3s ease, visibility .3s ease !important;
    }

    #stmPremiumHeader.stm-ph-menu-open .stm-ph-nav {
        transform: translateX(0) !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .stm-ph-mobile-header {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        background: #f8f9fa;
    }

    .stm-ph-mobile-close {
        display: flex !important;
        flex: 0 0 auto !important;
        align-items: center;
        justify-content: center;
        margin: 0 15px 0 0 !important;
        padding: 5px !important;
        border: none !important;
        background: transparent !important;
        color: #333 !important;
        cursor: pointer !important;
    }

    .stm-ph-mobile-close svg {
        display: block !important;
        width: 26px !important;
        height: 26px !important;
        fill: none !important;
        stroke: currentColor !important;
        pointer-events: none;
    }

    .stm-ph-mobile-logo {
        display: block;
        max-width: 140px;
    }

    .stm-ph-mobile-logo img {
        display: block;
        width: 100%;
        height: auto;
    }

    .stm-ph-nav__inner {
        display: flex;
        flex: 0 0 auto;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 0;
        background: #fff;
    }

    .stm-ph-nav__inner > .stm-ph-nav__dropdown-wrap {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .stm-ph-nav__dropdown-wrap > .stm-ph-nav__item,
    .stm-ph-nav__inner > .stm-ph-nav__item,
    .stm-ph-nav__item--catalog {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        min-height: 50px;
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
        background: #fff;
        color: #333 !important;
        font-size: 14px !important;
        font-weight: 700;
        text-align: left;
        text-transform: uppercase;
        white-space: normal;
    }

    .stm-ph-nav__item svg {
        flex-shrink: 0;
        width: 20px;
        height: 20px;
        margin-right: 15px;
    }

    .stm-ph-nav__item span {
        flex: 1;
        text-align: left;
    }

    .stm-ph-nav__dropdown-wrap > .stm-ph-nav__item::after {
        display: inline-block;
        flex-shrink: 0;
        width: 8px;
        height: 8px;
        margin: 0 0 0 auto;
        border-color: #999;
        transform: rotate(-45deg);
    }

    .stm-ph-nav__dropdown-wrap.is-submenu-open > .stm-ph-nav__item::after {
        transform: rotate(45deg);
    }

    .stm-ph-nav__dropdown {
        position: static;
        display: none;
        flex: 0 0 auto;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 0;
        border: 0;
        background: #f8f9fa;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .stm-ph-nav__dropdown-wrap.is-submenu-open > .stm-ph-nav__dropdown {
        display: flex;
    }

    .stm-ph-nav__dropdown > a {
        padding: 12px 20px 12px 35px;
        border-bottom: 1px solid #eee;
        background: transparent;
        color: #555 !important;
        font-size: 14px !important;
        font-weight: 500;
        text-align: left;
    }

    /* ======================================================
       МОБИЛЬНЫЕ ИКОНКИ: КОРЗИНА, ИЗБРАННОЕ, СРАВНЕНИЕ
       Показываются только в мобильном меню.
       ====================================================== */

    #stmPremiumHeader .stm-ph-mobile-tools {
        display: flex !important;
        flex: 0 0 auto;
        align-items: center;
        justify-content: space-around;
        gap: 8px;
        width: 100%;
        padding: 14px 12px;
        margin: 0;
        background: #fff;
        border-bottom: 1px solid #e8eaf0;
    }

    #stmPremiumHeader .stm-ph-mobile-tools .stm-ph-icon-button {
        position: relative;
        display: flex !important;
        flex: 1 1 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: auto;
        min-width: 0;
        height: 58px;
        padding: 7px 3px;
        margin: 0;
        border: 1px solid #e6eaf5;
        border-radius: 8px;
        background: #f7f8ff;
        color: #061983 !important;
        text-decoration: none !important;
    }

    #stmPremiumHeader .stm-ph-mobile-tools .stm-ph-icon-button svg {
        display: block;
        flex: 0 0 auto;
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    #stmPremiumHeader .stm-ph-mobile-tools .stm-ph-mobile-tools__label {
        display: block;
        color: #333b4a;
        font-size: 11px;
        font-weight: 600;
        line-height: 1.2;
        text-align: center;
        white-space: nowrap;
    }

    #stmPremiumHeader .stm-ph-mobile-tools .stm-ph-icon-button:active {
        background: #edf0ff;
    }

    /* Увеличенные круглые счётчики только в мобильном меню */
    #stmPremiumHeader .stm-ph-mobile-tools .stm-ph-icon-button .stm-ph-counter {
        position: absolute;
        top: -7px;
        right: -5px;
        z-index: 2;
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-width: 25px !important;
        width: 25px !important;
        height: 25px !important;
        padding: 0 4px !important;
        border-radius: 50% !important;
        box-sizing: border-box !important;
        font-size: 13px !important;
        line-height: 25px !important;
    }

    /* Контактная информация внизу мобильного меню */
    .stm-ph-mobile-contacts {
        display: flex;
        flex: 0 0 auto;
        flex-direction: column;
        margin-top: auto;
        padding: 20px;
        border-top: 1px solid #eee;
        background: #fff;
    }

    .stm-ph-mobile-phones {
        display: flex;
        flex-direction: column;
        gap: 5px;
        margin-bottom: 15px;
    }

    .stm-ph-mobile-phones a {
        color: #061983 !important;
        font-size: 18px;
        font-weight: 700;
    }

    .stm-ph-mobile-email {
        margin-bottom: 10px;
        color: #3b5998 !important;
        font-size: 15px;
        font-weight: 500;
    }

    .stm-ph-mobile-schedule {
        margin-bottom: 20px;
        color: #666;
        font-size: 13px;
        line-height: 1.5;
    }

    .stm-ph-mobile-btn {
        display: block;
        margin-bottom: 20px;
        padding: 14px;
        border-radius: 6px;
        background: #25d366;
        color: #fff !important;
        font-size: 15px;
        font-weight: 700;
        text-align: center;
    }

    .stm-ph-mobile-socials {
        display: flex;
        gap: 12px;
    }

    .stm-ph-social-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        overflow: hidden;
        border-radius: 8px;
    }

    .stm-ph-social-mobile img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Затемнение фона при открытом меню */
    .stm-ph-menu-overlay {
        position: fixed !important;
        inset: 0 !important;
        z-index: 999998 !important;
        background: rgba(0, 0, 0, .48);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .25s ease, visibility .25s ease;
    }

    .stm-ph-menu-overlay.is-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body.stm-ph-mobile-menu-active {
        overflow: hidden !important;
    }

    /* Скрываем десктопную липкую панель на мобильных */
    .stm-ph-stickybar {
        display: none !important;
    }
}

/* ==========================================================
   ОЧЕНЬ УЗКИЕ ЭКРАНЫ
   ========================================================== */

@media (max-width: 360px) {
    body {
        padding-top: 70px !important;
    }

    .stm-ph-top__inner {
        padding-right: 8px;
        padding-left: 8px;
    }

    .stm-ph-main-row {
        gap: 6px;
    }

    .stm-ph-logo {
        max-width: 42%;
    }
}

/* ==========================================================
   КНОПКА «ЗАКАЗАТЬ ЗВОНОК»
   ========================================================== */

.stm-premium-header .stm-ph-callback .btn-new {
    font-size: 15px !important;
}

/* =====================================================
   СТРЕЛКА РЯДОМ С ТЕЛЕФОНАМИ — В СТИЛЕ СТРЕЛКИ ГОРОДА
   ===================================================== */

#stmPremiumHeader .stm-ph-phone > svg {
    display: block !important;
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    min-height: 12px !important;
    flex: 0 0 12px !important;

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

    fill: none !important;
    stroke: #151922 !important;
    stroke-width: 1.5 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;

    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
}

/* Сам контур стрелки */
#stmPremiumHeader .stm-ph-phone > svg path {
    fill: none !important;
    stroke: #151922 !important;
    stroke-width: 1.5 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

/* Цвет при наведении — как у элементов шапки */
#stmPremiumHeader .stm-ph-phone:hover > svg,
#stmPremiumHeader .stm-ph-phone:hover > svg path {
    stroke: #061983 !important;
}


/* STANKI-M: мобильное меню — компактная панель и отдельные стрелки */
.stm-ph-nav__submenu-toggle {
    display: none;
}

@media (max-width: 767px) {
    #stmPremiumHeader .stm-ph-nav {
        width: 75vw !important;
        max-width: 290px !important;
        box-sizing: border-box !important;
    }

    #stmPremiumHeader .stm-ph-nav__inner > .stm-ph-nav__dropdown-wrap {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #stmPremiumHeader .stm-ph-nav__dropdown-wrap > .stm-ph-nav__item {
        width: 100% !important;
        box-sizing: border-box !important;
        padding-right: 60px !important;
    }

    #stmPremiumHeader .stm-ph-nav__dropdown-wrap > .stm-ph-nav__item::after {
        display: none !important;
    }

    #stmPremiumHeader .stm-ph-nav__submenu-toggle {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        z-index: 5 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 48px !important;
        min-width: 48px !important;
        height: 50px !important;
        min-height: 50px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-bottom: 1px solid #f0f0f0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: #999 !important;
        box-shadow: none !important;
        cursor: pointer;
        appearance: none !important;
        -webkit-appearance: none !important;
        transform: none !important;
    }

    #stmPremiumHeader .stm-ph-nav__submenu-toggle::after {
        content: "";
        display: block;
        width: 8px;
        height: 8px;
        margin-top: -4px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(-45deg);
        transition: transform .2s ease;
    }

    #stmPremiumHeader .stm-ph-nav__dropdown-wrap.is-submenu-open > .stm-ph-nav__submenu-toggle::after {
        transform: rotate(45deg);
    }

    #stmPremiumHeader .stm-ph-nav__dropdown-wrap > .stm-ph-nav__dropdown {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}


/* STANKI-M: нижняя мобильная панель навигации */
.stm-mobile-bottom-nav { display: none; }

@media (max-width: 767px) {
    #stmMobileBottomNav {
        position: fixed !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        z-index: 999997 !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: calc(62px + env(safe-area-inset-bottom)) !important;
        margin: 0 !important;
        padding: 4px 0 env(safe-area-inset-bottom) !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        border: 0 !important;
        border-top: 1px solid #e2e6ef !important;
        background: #fff !important;
        box-shadow: 0 -3px 12px rgba(20,35,70,.08) !important;
        transform: translateY(0);
        transition: transform .22s ease, visibility .22s ease;
        visibility: visible;
        pointer-events: auto;
    }
    #stmMobileBottomNav.is-hidden {
        transform: translateY(110%);
        visibility: hidden;
        pointer-events: none;
    }
    #stmMobileBottomNav .stm-mobile-bottom-nav__inner {
        display: flex !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: none;
        background: #fff !important;
    }
    #stmMobileBottomNav .stm-mobile-bottom-nav__inner::-webkit-scrollbar { display: none !important; }
    #stmMobileBottomNav .stm-mobile-bottom-nav__item {
        display: flex !important;
        flex: 1 0 65px !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 65px !important;
        max-width: 110px !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 3px 2px 2px !important;
        gap: 2px !important;
        box-sizing: border-box !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #fff !important;
        color: #24314b !important;
        text-align: center !important;
        text-decoration: none !important;
        line-height: 1.1 !important;
        box-shadow: none !important;
        white-space: nowrap !important;
        -webkit-tap-highlight-color: transparent;
    }
    #stmMobileBottomNav .stm-mobile-bottom-nav__icon {
        display: block !important;
        flex: 0 0 22px !important;
        width: 22px !important;
        height: 22px !important;
        max-width: 22px !important;
        max-height: 22px !important;
        margin: 0 !important;
        padding: 0 !important;
        object-fit: contain !important;
        border: 0 !important;
        background: transparent !important;
    }
    #stmMobileBottomNav .stm-mobile-bottom-nav__fallback {
        fill: none !important;
        stroke: #243bff !important;
        stroke-width: 1.5 !important;
        stroke-linecap: round !important;
        stroke-linejoin: round !important;
    }
    #stmMobileBottomNav .stm-mobile-bottom-nav__label {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        color: inherit !important;
        font-size: 10px !important;
        font-weight: 400 !important;
        line-height: 1.2 !important;
        text-align: center !important;
        text-overflow: ellipsis !important;
        text-transform: none !important;
        white-space: nowrap !important;
    }
    #stmMobileBottomNav .stm-mobile-bottom-nav__item:active { background: #f4f6ff !important; }
}



/* STANKI-M: единый цвет кнопок связи */
.stm-contact-banner__button,
.stm-contact-banner__button:hover,
.stm-contact-banner__button:focus,
.stm-contact-banner__button:active,
.stm-ph-mobile-btn,
.stm-ph-mobile-btn:hover,
.stm-ph-mobile-btn:focus,
.stm-ph-mobile-btn:active {
    background: #001b72 !important;
    background-color: #001b72 !important;
    border-color: #001b72 !important;
    color: #ffffff !important;
}
