/* ==========================================================
   STANKI-M — ЕДИНЫЙ ОПТИМИЗИРОВАННЫЙ CSS
========================================================== */
.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: 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; }

/* --- ВЕРХНЯЯ ПАНЕЛЬ --- */
.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: 1450px;
    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 {
    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;
    position: relative !important;
    transform: none !important;
    transition: color 0.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;
    margin-right: auto;
    white-space: nowrap;
}

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

.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 {
    display: none;
}

/* ==========================================================
   ОСНОВНАЯ НАВИГАЦИЯ (СИНЯЯ)
========================================================== */
.stm-ph-nav {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1420px;
    margin-left: auto;
    margin-right: auto;
    background: var(--stm-ph-blue);
    min-height: 50px;
}

.stm-ph-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1450px;
    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;
    left: 0;
    right: 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: 1450px;
    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: 1450px;
    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 0px;
    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: #000000 !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;
    background: #fff;
    border: 1px solid #e8eaf0;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    transform: none;
    margin-top: 0 !important;
    min-width: 200px;
}

.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 16px; 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: relative !important; z-index: 100002 !important; isolation: auto; }
    .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: 10px; min-height: 60px; padding: 8px 0; }
    .stm-ph-logo { flex: 0 1 auto; max-width: 46%; margin-right: auto; }
    .stm-ph-logo__image { max-height: 40px; }
    .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-mobile-call { position: absolute !important; top: 50%; right: 52px; z-index: 100004; display: inline-flex !important; align-items: center; justify-content: center; width: 34px; height: 34px; margin: 0; padding: 0; border: 0; background: transparent !important; color: #000 !important; box-shadow: none !important; transform: translateY(-50%); cursor: pointer; }
    .stm-ph-mobile-call svg { display: block; width: 25px; height: 25px; }

    .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;
        text-decoration: none !important;
        transform: none !important;
        cursor: pointer !important;
        pointer-events: auto;
    }

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

    .stm-ph-mobile-toggle:hover,
    .stm-ph-mobile-toggle:focus,
    .stm-ph-mobile-toggle:active {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

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

    /* МОБИЛЬНОЕ МЕНЮ: СКРЫТО ПО УМОЛЧАНИЮ, ВЫЕЗЖАЕТ СПРАВА */
    #stmPremiumHeader .stm-ph-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 100006 !important;
        display: flex !important;
        flex-direction: column !important;
        width: 85% !important;
        max-width: 350px !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100vh !important;
        max-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 0.3s ease, visibility 0.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-scrollbar,
    #stmMobileScrollbar {
        display: none !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;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto !important;
        margin: 0 15px 0 0 !important;
        padding: 5px !important;
        border: none !important;
        outline: none !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        text-decoration: none !important;
        transform: none !important;
        color: #333 !important;
        cursor: pointer !important;
    }

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

    .stm-ph-mobile-close:hover,
    .stm-ph-mobile-close:focus,
    .stm-ph-mobile-close:active {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        color: #333 !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; justify-content: space-between; 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:hover { background: #f5f5f5; }
    .stm-ph-nav__item svg { flex-shrink: 0; width: 20px; height: 20px; margin-right: 10px; }
    .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; 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; border-radius: 0; background: #f8f9fa; box-shadow: none; transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
    .stm-ph-nav__dropdown-wrap:hover > .stm-ph-nav__dropdown, .stm-ph-nav__dropdown-wrap:focus-within > .stm-ph-nav__dropdown { display: none; }
    .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; text-transform: none; }
    .stm-ph-nav__dropdown > a:hover, .stm-ph-nav__dropdown > a:focus-visible { background: #eee; color: #061983 !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; transition: background .2s ease; }
    .stm-ph-mobile-btn:hover { background: #1eb356; }
    .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: 100001 !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 .stm-ph-nav__inner { justify-content: flex-start; gap: 0; min-height: 46px; padding: 0; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .stm-ph-stickybar .stm-ph-nav__inner::-webkit-scrollbar { display: none; }
    .stm-ph-stickybar .stm-ph-nav__inner > .stm-ph-nav__item, .stm-ph-stickybar .stm-ph-nav__inner > .stm-ph-nav__dropdown-wrap { flex: 0 0 auto; width: auto; }
    .stm-ph-stickybar .stm-ph-nav__item, .stm-ph-stickybar .stm-ph-nav__dropdown-wrap > .stm-ph-nav__item { min-height: 46px; width: auto; padding: 0 13px; font-size: 13px; }
    .stm-ph-stickybar .stm-ph-nav__dropdown { position: absolute; top: 100%; left: 0; width: max-content !important; min-width: 190px !important; max-width: 85vw !important; transform: none; }
}

@media (max-width: 360px) {
    .stm-ph-top__inner { padding-right: 8px; padding-left: 8px; }
    .stm-ph-main-row { gap: 6px; }
    .stm-ph-logo { max-width: 42%; }
}

/* Небольшой отступ сверху от шапки */
#stmPremiumHeader {
    margin-top: 15px !important;
}

/* Кнопка «Заказать звонок» в шапке */
.stm-premium-header .stm-ph-callback .btn-new {
    font-size: 15px !important; 
}