/* Пункт «О клинике» в одну строку */
@media (min-width: 992px) {
    #sp-menu .sp-megamenu-parent > li > a[href*="nasha-klinika"] {
        white-space: nowrap !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}
/* Стили Контакты */
.ld-branches {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
    font-family: inherit;
    box-sizing: border-box;
}

.ld-branches *,
.ld-branches *::before,
.ld-branches *::after {
    box-sizing: border-box;
}

.ld-branches__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.ld-branch {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #edf0f1;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(24, 45, 55, 0.08);
}

.ld-branch__content {
    flex-grow: 1;
    padding: 30px 28px;
}

.ld-branch__title {
    min-height: 70px;
    margin: 0 0 24px;
    color: #222222;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.35;
}

.ld-branch__contacts {
    display: grid;
    gap: 15px;
    margin-bottom: 26px;
}

.ld-branch__row {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
    color: #4e4e4e;
    font-size: 16px;
    line-height: 1.5;
}

.ld-branch__icon {
    color: #F4729E;
    font-family: Arial, sans-serif;
    font-size: 23px;
    line-height: 1.2;
    text-align: center;
}

.ld-branch__row a {
    color: #4e4e4e;
    text-decoration: none;
}

.ld-branch__row a:hover {
    color: #18b9c8;
    text-decoration: underline;
}

.ld-branch__legal {
    padding-top: 23px;
    border-top: 1px solid #e8ecee;
}

.ld-branch__legal-item {
    margin-bottom: 16px;
    color: #292929;
    font-size: 15px;
    line-height: 1.5;
}

.ld-branch__legal-item:last-child {
    margin-bottom: 0;
}

.ld-branch__label {
    display: block;
    margin-bottom: 3px;
    color: #686868;
}

.ld-branch__value {
    font-weight: 500;
}

.ld-branch__replace {
    color: #c13d3d;
    font-weight: 600;
}

.ld-branch__map {
    width: 100%;
    height: 370px;
    margin-top: auto;
    overflow: hidden;
    background: #eef2f3;
}

.ld-branch__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 850px) {
    .ld-branches__grid {
        grid-template-columns: 1fr;
    }

    .ld-branch__title {
        min-height: auto;
    }
}

@media (max-width: 500px) {
    .ld-branches {
        margin: 25px auto;
        padding: 0 10px;
    }

    .ld-branches__grid {
        gap: 20px;
    }

    .ld-branch__content {
        padding: 23px 19px;
    }

    .ld-branch__title {
        margin-bottom: 20px;
        font-size: 22px;
    }

    .ld-branch__row {
        grid-template-columns: 22px minmax(0, 1fr);
        gap: 9px;
        font-size: 15px;
    }

    .ld-branch__icon {
        font-size: 20px;
    }

    .ld-branch__map {
        height: 320px;
    }
}
/* Названия филиалов в контактных плашках */
.ld-branch .ld-branch__title {
    font-weight: 500 !important;
    text-transform: none !important;
    font-size: 26px;
    line-height: 1.35;
}

/* Доктора стили */
.ld-doctor-branches {
    max-width: 1180px;
    margin: 30px auto 45px;
    padding: 0 15px;
    box-sizing: border-box;
}

.ld-doctor-branches *,
.ld-doctor-branches *::before,
.ld-doctor-branches *::after {
    box-sizing: border-box;
}

.ld-doctor-branches__title {
    margin: 0 0 22px;
    color: #252525;
    font-size: 27px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
}

.ld-doctor-branches__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.ld-doctor-branch {
    display: flex;
    align-items: center;
    min-height: 125px;
    padding: 25px 28px;
    overflow: hidden;

    color: #252525;
    text-decoration: none !important;

    background: #ffffff;
    border: 2px solid #8ea9c4;
    border-radius: 12px;

    box-shadow: 0 6px 22px rgba(20, 120, 135, 0.09);

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

.ld-doctor-branch:hover,
.ld-doctor-branch:focus {
    color: #ffffff;
    text-decoration: none !important;
    background: #8ea9c4;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(20, 120, 135, 0.22);
}

.ld-doctor-branch__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    min-width: 52px;
    height: 52px;
    margin-right: 18px;

    color: #8ea9c4;
    background: #e9f9fb;
    border-radius: 50%;

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

.ld-doctor-branch:hover .ld-doctor-branch__icon,
.ld-doctor-branch:focus .ld-doctor-branch__icon {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

.ld-doctor-branch__icon svg {
    width: 28px;
    height: 28px;
}

.ld-doctor-branch__content {
    flex-grow: 1;
    min-width: 0;
}

.ld-doctor-branch__name {
    display: block;
    margin-bottom: 6px;
    color: inherit;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
}

.ld-doctor-branch__address {
    display: block;
    color: inherit;
    font-size: 15px;
    line-height: 1.45;
    opacity: 0.8;
}

.ld-doctor-branch__arrow {
    margin-left: 18px;
    color: #8ea9c4;
    font-size: 30px;
    line-height: 1;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.ld-doctor-branch:hover .ld-doctor-branch__arrow,
.ld-doctor-branch:focus .ld-doctor-branch__arrow {
    color: #ffffff;
    transform: translateX(5px);
}

@media (max-width: 700px) {
    .ld-doctor-branches {
        margin: 25px auto 35px;
        padding: 0 10px;
    }

    .ld-doctor-branches__title {
        font-size: 23px;
    }

    .ld-doctor-branches__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ld-doctor-branch {
        min-height: 100px;
        padding: 19px 18px;
    }

    .ld-doctor-branch__icon {
        width: 45px;
        min-width: 45px;
        height: 45px;
        margin-right: 14px;
    }

    .ld-doctor-branch__icon svg {
        width: 24px;
        height: 24px;
    }

    .ld-doctor-branch__name {
        font-size: 19px;
    }

    .ld-doctor-branch__address {
        font-size: 14px;
    }

    .ld-doctor-branch__arrow {
        margin-left: 10px;
        font-size: 25px;
    }
}
/* ======================================================
   ЕДИНАЯ ШАПКА: ДВА ФИЛИАЛА, ЛОГОТИП И МЕССЕНДЖЕРЫ
====================================================== */

/*
Если новый модуль установлен в позицию top1,
делаем эту позицию на всю ширину верхней строки.
*/
#sp-top1 {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
}

/* Светлый фон в полоску вместо голубой полосы */
#sp-top-bar {
    padding: 0 !important;
    background-color: #ffffff !important;
    background-image:
        repeating-linear-gradient(
            135deg,
            rgba(130, 112, 142, 0.035) 0,
            rgba(130, 112, 142, 0.035) 3px,
            transparent 3px,
            transparent 7px
        ) !important;
    border-top: 1px solid #f1d9df;
    border-bottom: 1px solid #eee8f0;
}

/* Расширяем контейнер шапки */
#sp-top-bar > .container {
    width: 100% !important;
    max-width: 1740px;
    padding-right: 35px;
    padding-left: 35px;
}

/* Сбрасываем старые отступы модулей */
#sp-top-bar .sp-module {
    margin: 0 !important;
}

#sp-top-bar .row {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

#sp-top-bar .row::before,
#sp-top-bar .row::after {
    display: none !important;
}


/* Основная сетка */

.ld-unified-header {
    display: grid;
    grid-template-columns:
        minmax(310px, 1fr)
        minmax(360px, 460px)
        minmax(310px, 1fr);
    grid-template-areas: "devyatkino center yanino";
    gap: 40px;
    align-items: center;

    width: 100%;
    min-height: 285px;
    padding: 28px 0;

    color: #806d8a;
    font-family: inherit;
}


/* Карточки филиалов */

.ld-unified-header__branch {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 11px;

    min-height: 218px;
    padding: 25px 28px;

    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(128, 109, 138, 0.13);
    border-radius: 18px;

    box-shadow:
        0 8px 28px rgba(82, 67, 91, 0.055);
}

.ld-unified-header__branch--devyatkino {
    grid-area: devyatkino;
}

.ld-unified-header__branch--yanino {
    grid-area: yanino;
}

.ld-unified-header__branch-name {
    margin-bottom: 3px;

    color: #715d7c;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.25;
}


/* Адрес */

.ld-unified-header__address,
.ld-unified-header__info {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    color: #806d8a !important;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.42;
    text-decoration: none !important;
}

.ld-unified-header__address strong {
    color: #715d7c;
    font-weight: 600;
}

.ld-unified-header__address:hover {
    color: #f4729e !important;
    text-decoration: none !important;
}

.ld-unified-header__address i,
.ld-unified-header__info i {
    width: 20px;
    min-width: 20px;
    margin-top: 3px;

    color: #967fa0;
    font-size: 21px;
    text-align: center;
}


/* Телефоны */

.ld-unified-header__phones {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 2px;
}

.ld-unified-header__phones a {
    display: flex;
    align-items: center;
    gap: 11px;

    color: #715d7c !important;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none !important;
    white-space: nowrap;
}

.ld-unified-header__phones a:hover {
    color: #f4729e !important;
}

.ld-unified-header__phones i {
    width: 20px;
    min-width: 20px;

    color: #967fa0;
    font-size: 19px;
    text-align: center;
}


/* Режим работы */

.ld-unified-header__schedule {
    display: flex;
    align-items: center;
    gap: 8px;

    width: fit-content;
    max-width: 100%;
    margin-top: 2px;
    padding: 6px 7px 6px 0;

    color: #715d7c;
    font-size: 14px;
    line-height: 1.2;
}

.ld-unified-header__schedule i {
    width: 20px;
    color: #967fa0;
    font-size: 19px;
    text-align: center;
}

.ld-unified-header__schedule b {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 31px;
    padding: 6px 13px;

    color: #ffffff;
    background: #f4729e;
    border-radius: 18px;

    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}


/* Центральная часть */

.ld-unified-header__center {
    grid-area: center;

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

    min-width: 0;
    text-align: center;
}

.ld-unified-header__logo {
    display: block;
    width: 100%;
    max-width: 345px;
    text-decoration: none !important;
}

.ld-unified-header__logo img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.ld-unified-header__tagline {
    margin-top: 7px;

    color: #725f7d;
    font-size: 27px;
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
}

.ld-unified-header__social-title {
    margin-top: 17px;
    margin-bottom: 8px;

    color: #806d8a;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}


/* Мессенджеры */

.ld-unified-header__socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.ld-unified-header__social {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    width: 47px;
    height: 47px;
    margin: 0 !important;
    padding: 0 !important;

    color: #ffffff !important;
    background: #8b7595;
    border: 0;
    border-radius: 50%;

    font-size: 23px;
    line-height: 1;
    text-decoration: none !important;

    box-shadow:
        0 5px 15px rgba(90, 70, 100, 0.13);

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

.ld-unified-header__social:hover,
.ld-unified-header__social:focus {
    color: #ffffff !important;
    background: #f4729e;
    text-decoration: none !important;
    transform: translateY(-3px);

    box-shadow:
        0 8px 18px rgba(244, 114, 158, 0.25);
}

.ld-unified-header__social--max span {
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: -0.3px;
}


/* ======================================================
   НОУТБУКИ
====================================================== */

@media (min-width: 992px) and (max-width: 1350px) {

    #sp-top-bar > .container {
        padding-right: 18px;
        padding-left: 18px;
    }

    .ld-unified-header {
        grid-template-columns:
            minmax(270px, 1fr)
            minmax(300px, 360px)
            minmax(270px, 1fr);
        gap: 20px;
    }

    .ld-unified-header__branch {
        padding: 21px 20px;
    }

    .ld-unified-header__branch-name {
        font-size: 18px;
    }

    .ld-unified-header__address,
    .ld-unified-header__info {
        font-size: 14px;
    }

    .ld-unified-header__phones a {
        font-size: 16px;
    }

    .ld-unified-header__logo {
        max-width: 285px;
    }

    .ld-unified-header__tagline {
        font-size: 22px;
    }
}


/* ======================================================
   ПЛАНШЕТЫ И МОБИЛЬНЫЕ
====================================================== */

@media (max-width: 991px) {

    #sp-top-bar > .container {
        padding-right: 14px;
        padding-left: 14px;
    }

    #sp-top1 {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .ld-unified-header {
        grid-template-columns: 1fr;
        grid-template-areas:
            "center"
            "devyatkino"
            "yanino";
        gap: 15px;

        min-height: auto;
        padding: 22px 0 25px;
    }

    .ld-unified-header__center {
        padding: 4px 10px 15px;
    }

    .ld-unified-header__logo {
        max-width: 285px;
    }

    .ld-unified-header__tagline {
        margin-top: 5px;
        font-size: 21px;
    }

    .ld-unified-header__social-title {
        margin-top: 15px;
    }

    .ld-unified-header__social {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }

    .ld-unified-header__branch {
        min-height: 0;
        padding: 21px 20px;
        border-radius: 14px;
    }

    .ld-unified-header__branch-name {
        font-size: 19px;
    }

    .ld-unified-header__address,
    .ld-unified-header__info {
        font-size: 15px;
    }

    .ld-unified-header__phones a {
        min-height: 43px;
        padding: 8px 12px;

        background: rgba(139, 117, 149, 0.075);
        border-radius: 9px;

        font-size: 17px;
    }

    .ld-unified-header__schedule {
        margin-top: 0;
    }
}


/* Совсем узкие телефоны */

@media (max-width: 420px) {

    #sp-top-bar > .container {
        padding-right: 9px;
        padding-left: 9px;
    }

    .ld-unified-header__logo {
        max-width: 245px;
    }

    .ld-unified-header__tagline {
        font-size: 18px;
    }

    .ld-unified-header__branch {
        padding: 18px 15px;
    }

    .ld-unified-header__phones a {
        font-size: 15px;
    }

    .ld-unified-header__socials {
        gap: 7px;
    }

    .ld-unified-header__social {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }
}
/* Убираем старый системный логотип Helix 3 */
#sp-header #sp-logo,
#sp-header .logo {
    display: none !important;
}
/* Убираем пространство, оставшееся от колонки логотипа */
#sp-header #sp-logo {
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* ==================================================
   НОВАЯ ШАПКА: TOP1 НА ВСЮ ШИРИНУ
================================================== */

#sp-top-bar > .container {
    width: 100% !important;
    max-width: none !important;
    padding-right: 24px !important;
    padding-left: 24px !important;
    box-sizing: border-box;
}

#sp-top-bar .row {
    display: block !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

#sp-top-bar .row::before,
#sp-top-bar .row::after {
    display: none !important;
}

/* Растягиваем top1 вместо старой Bootstrap-колонки */
#sp-top-bar #sp-top1 {
    display: block !important;
    float: none !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 100% !important;

    margin: 0 !important;
    padding: 0 !important;
}

/*
Скрываем старые пустые колонки верхней полосы.
Использовать после снятия старых модулей с публикации.
*/
#sp-top-bar #sp-top2,
#sp-top-bar #sp-top3 {
    display: none !important;
}

/* Сам блок располагаем строго по центру */
#sp-top-bar .ld-unified-header {
    width: 100% !important;
    max-width: 1600px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

/* На мобильных уменьшаем боковые поля */
@media (max-width: 767px) {
    #sp-top-bar > .container {
        padding-right: 10px !important;
        padding-left: 10px !important;
    }
}
/* ==================================================
   КОМПАКТНАЯ ВЕРСИЯ НОВОЙ ШАПКИ — ПК
   Добавить после основных стилей шапки
================================================== */

@media (min-width: 992px) {

    /* Общая высота и ширина шапки */
    #sp-top-bar .ld-unified-header {
        grid-template-columns:
            minmax(270px, 1fr)
            minmax(280px, 350px)
            minmax(270px, 1fr);

        gap: 26px;

        width: 100% !important;
        max-width: 1450px !important;
        min-height: 165px !important;

        margin-right: auto !important;
        margin-left: auto !important;
        padding: 13px 0 !important;
    }

    /* Плашки филиалов */
    #sp-top-bar .ld-unified-header__branch {
        min-height: 135px !important;
        padding: 14px 18px !important;
        gap: 5px !important;

        border-radius: 13px !important;

        box-shadow:
            0 5px 18px rgba(82, 67, 91, 0.05) !important;
    }

    /* Названия филиалов */
    #sp-top-bar .ld-unified-header__branch-name {
        margin-bottom: 1px !important;

        font-size: 17px !important;
        line-height: 1.2 !important;
    }

    /* Адрес и метро */
    #sp-top-bar .ld-unified-header__address,
    #sp-top-bar .ld-unified-header__info {
        gap: 8px !important;

        font-size: 13px !important;
        line-height: 1.3 !important;
    }

    #sp-top-bar .ld-unified-header__address i,
    #sp-top-bar .ld-unified-header__info i {
        width: 16px !important;
        min-width: 16px !important;
        margin-top: 1px !important;

        font-size: 16px !important;
    }

    /* Телефоны */
    #sp-top-bar .ld-unified-header__phones {
        gap: 3px !important;
        margin-top: 0 !important;
    }

    #sp-top-bar .ld-unified-header__phones a {
        gap: 7px !important;

        font-size: 15px !important;
        line-height: 1.2 !important;
    }

    #sp-top-bar .ld-unified-header__phones i {
        width: 16px !important;
        min-width: 16px !important;

        font-size: 15px !important;
    }

    /* Режим работы */
    #sp-top-bar .ld-unified-header__schedule {
        gap: 6px !important;
        margin-top: 0 !important;
        padding: 2px 0 0 !important;

        font-size: 12px !important;
    }

    #sp-top-bar .ld-unified-header__schedule i {
        width: 16px !important;

        font-size: 15px !important;
    }

    #sp-top-bar .ld-unified-header__schedule b {
        min-height: 25px !important;
        padding: 4px 10px !important;

        border-radius: 14px !important;

        font-size: 12px !important;
    }

    /* Центральная часть */
    #sp-top-bar .ld-unified-header__center {
        padding: 0 !important;
    }

    /* Логотип */
    #sp-top-bar .ld-unified-header__logo {
        max-width: 220px !important;
    }

    /* Надпись «Комплексная стоматология» */
    #sp-top-bar .ld-unified-header__tagline {
        margin-top: 3px !important;

        font-size: 19px !important;
        line-height: 1.15 !important;
    }

    /* Подпись над мессенджерами */
    #sp-top-bar .ld-unified-header__social-title {
        margin-top: 9px !important;
        margin-bottom: 5px !important;

        font-size: 12px !important;
    }

    /* Иконки мессенджеров */
    #sp-top-bar .ld-unified-header__socials {
        gap: 6px !important;
    }

    #sp-top-bar .ld-unified-header__social {
        width: 37px !important;
        height: 37px !important;

        font-size: 18px !important;

        box-shadow:
            0 3px 10px rgba(90, 70, 100, 0.11) !important;
    }

    #sp-top-bar .ld-unified-header__social--max span {
        font-size: 9px !important;
    }
}
/* ==================================================
   ИСПРАВЛЕНИЕ ШИРИНЫ И ЦЕНТРИРОВАНИЯ НОВОЙ ШАПКИ
   Добавить самым последним блоком в custom.css
================================================== */

@media (min-width: 992px) {

    /* Убираем старую сетку верхней полосы */
    body #sp-top-bar .container,
    body #sp-top-bar > .container {
        width: 100% !important;
        max-width: none !important;
        margin: 0 auto !important;
        padding-right: 24px !important;
        padding-left: 24px !important;
        box-sizing: border-box !important;
    }

    body #sp-top-bar .row {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }

    body #sp-top-bar .row::before,
    body #sp-top-bar .row::after {
        display: none !important;
    }

    /* Позиция top1 занимает всю строку */
    body #sp-top-bar #sp-top1 {
        display: block !important;
        float: none !important;

        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        flex: none !important;
    }

    /* Растягиваем оболочки модуля */
    body #sp-top-bar #sp-top1 .sp-column,
    body #sp-top-bar #sp-top1 .sp-module,
    body #sp-top-bar #sp-top1 .sp-module-content,
    body #sp-top-bar #sp-top1 .custom {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Старые соседние позиции не должны занимать место */
    body #sp-top-bar #sp-top2,
    body #sp-top-bar #sp-top3 {
        display: none !important;
        width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Центрируем непосредственно новую шапку */
    body #sp-top-bar .ld-unified-header {
        width: 100% !important;
        max-width: 1450px !important;

        margin-right: auto !important;
        margin-left: auto !important;

        box-sizing: border-box !important;
    }
}
/* ==================================================
   ШАПКА ПО ШИРИНЕ ГЛАВНОГО МЕНЮ
================================================== */

@media (min-width: 992px) {

    body #sp-top-bar #sp-top1 .ld-unified-header {
        width: calc(100% - 48px) !important;
        max-width: 1100px !important;

        margin-right: auto !important;
        margin-left: auto !important;

        padding-right: 0 !important;
        padding-left: 0 !important;

        grid-template-columns:
            minmax(0, 1fr)
            350px
            minmax(0, 1fr) !important;

        gap: 24px !important;

        box-sizing: border-box !important;
    }
}
/* ==================================================
   УБИРАЕМ ПУСТОЕ МЕСТО ОТ СТАРОЙ ШАПКИ,
   НО СОХРАНЯЕМ ГЛАВНОЕ МЕНЮ
================================================== */

@media (min-width: 992px) {

    /* Убираем фиксированную высоту старой шапки */
    body #sp-header {
        position: relative !important;

        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        background: transparent !important;
    }

    /* Убираем высоту внутренних оболочек */
    body #sp-header > .container {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;

        margin: 0 auto !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    body #sp-header > .container > .row {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    /* Старый системный логотип */
    body #sp-header #sp-logo,
    body #sp-header .logo {
        display: none !important;

        width: 0 !important;
        height: 0 !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    /* Колонка с главным меню */
    body #sp-header #sp-menu {
        display: block !important;
        float: none !important;

        width: 100% !important;
        max-width: 1430px !important;
        flex: 0 0 100% !important;

        margin: 0 auto !important;
        padding: 0 !important;
    }

    /* Внутренние оболочки меню */
    body #sp-header #sp-menu .sp-column,
    body #sp-header #sp-menu .sp-megamenu-wrapper {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    body #sp-header .sp-megamenu-parent {
        margin: 0 auto !important;
    }
}
/* ==================================================
   МОБИЛЬНАЯ ВЕРСИЯ НОВОЙ ШАПКИ
================================================== */

@media (max-width: 991px) {

    /*
    В шаблоне у верхней полосы установлен класс d-none,
    поэтому принудительно показываем её на мобильных.
    */
    body #sp-top-bar.d-none,
    body #sp-top-bar.d-none.d-md-block {
        display: block !important;
    }

    body #sp-top-bar {
        width: 100% !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    body #sp-top-bar > .container {
        width: 100% !important;
        max-width: none !important;

        margin: 0 auto !important;
        padding-right: 12px !important;
        padding-left: 12px !important;
    }

    body #sp-top-bar .row {
        display: block !important;

        width: 100% !important;
        margin: 0 !important;
    }

    body #sp-top-bar #sp-top1 {
        position: static !important;
        left: auto !important;

        display: block !important;
        float: none !important;

        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        transform: none !important;
    }

    body #sp-top-bar #sp-top1 .sp-column,
    body #sp-top-bar #sp-top1 .sp-module,
    body #sp-top-bar #sp-top1 .sp-module-content,
    body #sp-top-bar #sp-top1 .custom {
        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    /* Общая сетка */

    body #sp-top-bar .ld-unified-header {
        display: grid !important;

        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);

        grid-template-areas:
            "center center"
            "devyatkino yanino";

        gap: 10px !important;

        width: 100% !important;
        max-width: 760px !important;
        min-height: 0 !important;

        margin: 0 auto !important;
        padding: 12px 0 14px !important;
    }


    /* Центральная часть */

    body #sp-top-bar .ld-unified-header__center {
        grid-area: center;

        padding: 0 5px 7px !important;
    }

    body #sp-top-bar .ld-unified-header__logo {
        width: 100% !important;
        max-width: 190px !important;
    }

    body #sp-top-bar .ld-unified-header__logo img {
        width: 100% !important;
        height: auto !important;
    }

    body #sp-top-bar .ld-unified-header__tagline {
        margin-top: 2px !important;

        font-size: 16px !important;
        line-height: 1.15 !important;
    }

    body #sp-top-bar .ld-unified-header__social-title {
        margin-top: 9px !important;
        margin-bottom: 5px !important;

        font-size: 12px !important;
    }

    body #sp-top-bar .ld-unified-header__socials {
        gap: 6px !important;
    }

    body #sp-top-bar .ld-unified-header__social {
        width: 36px !important;
        height: 36px !important;

        font-size: 17px !important;

        box-shadow:
            0 3px 10px rgba(90, 70, 100, 0.11) !important;
    }

    body #sp-top-bar .ld-unified-header__social--max span {
        font-size: 8px !important;
    }


    /* Карточки филиалов */

    body #sp-top-bar .ld-unified-header__branch {
        min-width: 0 !important;
        min-height: 0 !important;

        padding: 12px 11px !important;
        gap: 5px !important;

        border-radius: 12px !important;

        box-shadow:
            0 4px 14px rgba(82, 67, 91, 0.045) !important;
    }

    body #sp-top-bar .ld-unified-header__branch--devyatkino {
        grid-area: devyatkino;
    }

    body #sp-top-bar .ld-unified-header__branch--yanino {
        grid-area: yanino;
    }

    body #sp-top-bar .ld-unified-header__branch-name {
        margin-bottom: 1px !important;

        font-size: 15px !important;
        line-height: 1.2 !important;
    }


    /* Адрес и метро */

    body #sp-top-bar .ld-unified-header__address,
    body #sp-top-bar .ld-unified-header__info {
        gap: 7px !important;

        font-size: 12px !important;
        line-height: 1.3 !important;
    }

    body #sp-top-bar .ld-unified-header__address i,
    body #sp-top-bar .ld-unified-header__info i {
        width: 15px !important;
        min-width: 15px !important;
        margin-top: 1px !important;

        font-size: 15px !important;
    }


    /* Телефоны */

    body #sp-top-bar .ld-unified-header__phones {
        gap: 3px !important;
        margin-top: 1px !important;
    }

    body #sp-top-bar .ld-unified-header__phones a {
        min-height: 0 !important;

        padding: 4px 0 !important;

        background: transparent !important;
        border-radius: 0 !important;

        gap: 6px !important;

        font-size: 14px !important;
        line-height: 1.2 !important;
        white-space: nowrap;
    }

    body #sp-top-bar .ld-unified-header__phones i {
        width: 15px !important;
        min-width: 15px !important;

        font-size: 14px !important;
    }


    /* График работы */

    body #sp-top-bar .ld-unified-header__schedule {
        flex-wrap: wrap;
        gap: 5px !important;

        margin-top: 1px !important;
        padding: 0 !important;

        font-size: 11px !important;
    }

    body #sp-top-bar .ld-unified-header__schedule i {
        width: 15px !important;

        font-size: 14px !important;
    }

    body #sp-top-bar .ld-unified-header__schedule b {
        min-height: 23px !important;
        padding: 4px 8px !important;

        border-radius: 13px !important;

        font-size: 11px !important;
    }
}


/* ==================================================
   ОБЫЧНЫЕ ТЕЛЕФОНЫ: КАРТОЧКИ ДРУГ ПОД ДРУГОМ
================================================== */

@media (max-width: 599px) {

    body #sp-top-bar > .container {
        padding-right: 9px !important;
        padding-left: 9px !important;
    }

    body #sp-top-bar .ld-unified-header {
        grid-template-columns: minmax(0, 1fr);

        grid-template-areas:
            "center"
            "devyatkino"
            "yanino";

        gap: 9px !important;

        max-width: 460px !important;
        padding-top: 10px !important;
    }

    body #sp-top-bar .ld-unified-header__branch {
        padding: 12px 14px !important;
    }

    body #sp-top-bar .ld-unified-header__branch-name {
        font-size: 16px !important;
    }

    body #sp-top-bar .ld-unified-header__address,
    body #sp-top-bar .ld-unified-header__info {
        font-size: 13px !important;
    }

    body #sp-top-bar .ld-unified-header__phones a {
        font-size: 15px !important;
    }
}


/* ==================================================
   УЗКИЕ ТЕЛЕФОНЫ
================================================== */

@media (max-width: 380px) {

    body #sp-top-bar .ld-unified-header__logo {
        max-width: 165px !important;
    }

    body #sp-top-bar .ld-unified-header__tagline {
        font-size: 14px !important;
    }

    body #sp-top-bar .ld-unified-header__branch {
        padding: 11px 10px !important;
    }

    body #sp-top-bar .ld-unified-header__phones a {
        font-size: 13px !important;
    }

    body #sp-top-bar .ld-unified-header__social {
        width: 34px !important;
        height: 34px !important;
    }
}
/* Убираем старый логотип шаблона на мобильных */
@media (max-width: 991px) {

    body #sp-header #sp-logo,
    body #sp-header .logo {
        display: none !important;

        width: 0 !important;
        height: 0 !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    body #sp-header {
        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    body #sp-header > .container,
    body #sp-header > .container > .row {
        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}
/* ==================================================
   МОБИЛЬНАЯ ШАПКА: ДВА ФИЛИАЛА РЯДОМ
================================================== */

@media (max-width: 599px) {

    body #sp-top-bar > .container {
        padding-right: 7px !important;
        padding-left: 7px !important;
    }

    body #sp-top-bar .ld-unified-header {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

        grid-template-areas:
            "center center"
            "devyatkino yanino" !important;

        gap: 7px !important;

        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 9px 0 11px !important;
    }


    /* Центральный блок */

    body #sp-top-bar .ld-unified-header__center {
        grid-area: center !important;
        padding: 0 5px 7px !important;
    }

    body #sp-top-bar .ld-unified-header__logo {
        max-width: 175px !important;
    }

    body #sp-top-bar .ld-unified-header__tagline {
        margin-top: 1px !important;
        font-size: 14px !important;
        line-height: 1.15 !important;
    }

    body #sp-top-bar .ld-unified-header__social-title {
        margin-top: 7px !important;
        margin-bottom: 4px !important;
        font-size: 11px !important;
    }

    body #sp-top-bar .ld-unified-header__socials {
        gap: 5px !important;
    }

    body #sp-top-bar .ld-unified-header__social {
        width: 33px !important;
        height: 33px !important;
        font-size: 16px !important;
    }

    body #sp-top-bar .ld-unified-header__social--max span {
        font-size: 7px !important;
    }


    /* Две карточки рядом */

    body #sp-top-bar .ld-unified-header__branch {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        height: 100% !important;

        padding: 10px 8px !important;
        gap: 4px !important;

        border-radius: 10px !important;

        box-shadow:
            0 3px 12px rgba(82, 67, 91, 0.045) !important;
    }

    body #sp-top-bar .ld-unified-header__branch--devyatkino {
        grid-area: devyatkino !important;
    }

    body #sp-top-bar .ld-unified-header__branch--yanino {
        grid-area: yanino !important;
    }


    /* Название филиала */

    body #sp-top-bar .ld-unified-header__branch-name {
        margin-bottom: 2px !important;

        font-size: 13px !important;
        line-height: 1.2 !important;
    }


    /* Адрес и метро */

    body #sp-top-bar .ld-unified-header__address,
    body #sp-top-bar .ld-unified-header__info {
        gap: 5px !important;

        font-size: 10.5px !important;
        line-height: 1.25 !important;
    }

    body #sp-top-bar .ld-unified-header__address i,
    body #sp-top-bar .ld-unified-header__info i {
        width: 12px !important;
        min-width: 12px !important;
        margin-top: 1px !important;

        font-size: 12px !important;
    }


    /* Телефоны */

    body #sp-top-bar .ld-unified-header__phones {
        gap: 1px !important;
        margin-top: 1px !important;
    }

    body #sp-top-bar .ld-unified-header__phones a {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;

        min-height: 0 !important;
        padding: 3px 0 !important;

        background: transparent !important;

        font-size: 11.5px !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
    }

    body #sp-top-bar .ld-unified-header__phones i {
        width: 12px !important;
        min-width: 12px !important;

        font-size: 11px !important;
    }


    /* График работы */

    body #sp-top-bar .ld-unified-header__schedule {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;

        gap: 4px !important;
        margin-top: 1px !important;
        padding: 0 !important;

        font-size: 9.5px !important;
        line-height: 1.15 !important;
    }

    body #sp-top-bar .ld-unified-header__schedule i {
        width: 12px !important;
        font-size: 11px !important;
    }

    body #sp-top-bar .ld-unified-header__schedule b {
        min-height: 20px !important;
        padding: 3px 6px !important;

        border-radius: 11px !important;

        font-size: 9.5px !important;
    }
}
@media (max-width: 370px) {

    body #sp-top-bar > .container {
        padding-right: 4px !important;
        padding-left: 4px !important;
    }

    body #sp-top-bar .ld-unified-header {
        gap: 5px !important;
    }

    body #sp-top-bar .ld-unified-header__branch {
        padding: 9px 6px !important;
    }

    body #sp-top-bar .ld-unified-header__branch-name {
        font-size: 12px !important;
    }

    body #sp-top-bar .ld-unified-header__address,
    body #sp-top-bar .ld-unified-header__info {
        font-size: 9.5px !important;
    }

    body #sp-top-bar .ld-unified-header__phones a {
        font-size: 10.5px !important;
        letter-spacing: -0.2px;
    }
}