.return-problem {
height: 350px !important;
}

table.price-table{width:100%;text-align:left;}
table.price-table td{line-height:1;padding:16px;}
table.price-table .price-table-right{width:25%;}
tr.price-table-first td{line-height:1;padding-left:1rem;font-size:1.4em;color:#D22063;background-color:transparent!important;}
table.price-table td, table.price-table tr{border-bottom:#D22063 solid;border-bottom-width:1px;border-spacing:0;}
table.price-table td{line-height:1.1;font-size:14px;}
table.price-table td .cb-hover{font-size: 14px;}

.tooltip {
    z-index: 10000000;
}

@media only screen and (max-width: 520px) {
    .repair .apple-service .item .image img {
        height: 100px;
    }
    .repair .return-problem {
        height: 400px !important;
    }
    .review-carousel .slick-dots {
        bottom: -50px;
    }
}

/*----Модификатор---*/
.btn.btn-red.btn.btn-sm {
    font-size: 14px; !important;
    padding: 4px 18px; !important;
}
#header {
    height: auto !important;
}
#header .header-bottom {
    padding: 0px !important;
    align-items: center;
}
#header .menu-btn {
    display: flex;
    gap: 8px;
    margin-right: auto;
}
#header .nav-bottom {
    height: 45px;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
}
#header .menu-btn-buter {
    width: 25px;
    color: #d9d9d9;
    font-size: 20px;
}
.slider a:focus {
    border: none;
    outline: none;
}
.wrapper {
    min-width: 375px !important;
}
#header .logo-h {
    margin-left: 0px !important;
}
/*---navigation---*/
.navigation {

}
.navigation .slide_menu {
    position: relative;
    display: none;
    font-size: 25px;
    color: #bdbdbd;
}
.navigation .body-nav {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    position: relative;
    font-size: 16px;
    font-weight: 500;
}

.navigation .item.parent a {
    color: #bdbdbd;
    text-decoration: none;
}

.navigation .item.parent a:hover,
.navigation .item.parent.active a {
    color: #fff;
}
.navigation .item.parent {
    padding-top: 5px;
    padding-bottom: 5px;
}

.navigation .nav-children {
    left: 0;
    position: absolute;
    top: 100%;
    display: none;
    z-index: 10;
    width: max-content;
    min-width: 100%;
}
.navigation .list-mode.parent .nav-children {
    right: auto;
}
/*.navigation .nav-children .nav-row {*/
/*    background-color: #fff;*/
/*    border: 1px solid #ccc;*/
/*    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);*/
/*    display: grid;*/
/*    grid-template-columns: repeat(4, 1fr);*/
/*    gap: 8px 50px;*/
/*    padding: 8px;*/
/*    margin-top: 3px;*/
/*}*/
/*Верх вниз заполняется меню*/
.navigation .nav-children .nav-row {
    display: grid;
    grid-template-rows: repeat(10, auto);
    grid-auto-flow: column;
    gap: 8px 50px;
    padding: 8px;
    margin-top: 3px;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Стили для списка, если меньше или равно 10 элементов */
.navigation .list-mode.parent .nav-children .nav-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 5px;
}
.navigation .list-mode.parent {
    position: relative;
}
.navigation .nav-children .nav-row .item {
    padding: 6px;
}

.navigation .nav-children .nav-row .item a {
    color: #545454;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    letter-spacing: 0.2px;
}
.navigation .item.parent a.active {
    color: #fff !important;
}
.navigation .nav-children .nav-row .item:hover {
    background-color: #eaeaea;
}


@media only screen and (max-width: 992px) {
    #header .nav-bottom {
        display: none;
    }
    #header .logo-h img {
        width: 100px !important;
    }
    #header .menu-btn .dropdown .caret,
    #header .menu-btn .dropdown .dropdown-menu {
        display: none !important;
    }
    .navigation .slide_menu {
        display: block;
    }
    .navigation .body-nav {
        display: none;
        position: absolute;
        background-color: #222;
        top: 100%;
        left: 0;
        padding: 10px 10px 10px 10px;
        width: 100%;
        white-space: nowrap;
    }
    .navigation .body-nav.active {
        display: block;
    }
    .navigation .body-nav .fa {
        display: none;
    }
    .navigation .body-nav .nav-children {
        display: none !important;
    }
}
@media only screen and (max-width: 670px) {
    #window-modal .modal-dialog.modal-lg, #window-modal .modal-dialog.modal-xs {
        width: auto !important;
    }
    .devices .devices__com {
        display: none;
    }
    #footer .custom_footerInfo .footerContact .phone {
        white-space: nowrap;
    }
}
@media only screen and (max-width: 540px) {
    #header .logo-h {
        margin-top: 0px !important;
    }
    #header .logo-h img {
        width: 90px !important;
        margin: 0px !important;
    }

    #header .menu-btn .btn.btn-red.btn.btn-sm {
        font-size: 10px;
        padding: 4px 10px;
        border-radius: 15px;
    }
    #header .menu-btn {
        gap: 5px;
    }
}

#cookie-consent {
    margin: 20px 15px 5px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    color: #fff;
    background: #00000082;
    border: none;
}
#cookie-consent .close {
    color: #fff;
    opacity: 0.8;
}
#cookie-consent .btn {
    margin-top: 10px;
}
.btn:focus {
    border-color: transparent;
    outline: none;
}
.devices__menu .items .item {

}
a:focus {
    outline: none;
    border: none
}

.devicesProblemsMenu .item .icon-menu.icon-imac,
.menu__devices .item .icon-menu.icon-imac {
    background-image: url("/images/icons-imac-v2.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 80px;
    height: 82px;
}

.devicesProblemsMenu .item.active .icon-menu.icon-imac,
.menu__devices .item.active .icon-menu.icon-imac,
.devicesProblemsMenu .item:hover .icon-menu.icon-imac,
.menu__devices .item:hover .icon-menu.icon-imac {
    background-image: url("/images/icons-imac-active-v2.png");
}

.menu__devices .item .icon-menu.icon-imac:before,
.devicesProblemsMenu .item .icon-menu.icon-imac:before {
    display: none !important;
}

.devicesProblemsMenu .item .icon-menu.icon-airpods,
.menu__devices .item .icon-menu.icon-airpods {
    background-image: url("/images/icon-airpods.svg");
    background-repeat: no-repeat;
    background-size: contain;
    height: 82px;
    width: 80px;
    background-position: center;
}

.devicesProblemsMenu .item.active .icon-menu.icon-airpods,
.menu__devices .item.active .icon-menu.icon-airpods,
.devicesProblemsMenu .item:hover .icon-menu.icon-airpods,
.menu__devices .item:hover .icon-menu.icon-airpods {
    background-image: url("/images/icon-airpods-active.svg") !important;
}
@media only screen and (max-width: 670px) {
    .devicesProblemsMenu .item .icon-menu.icon-imac,
    .menu__devices .item .icon-menu.icon-imac,
    .menu__devices .item .icon-menu.icon-airpods,
    .devicesProblemsMenu .item .icon-menu.icon-airpods {
        height: 60px;
    }
}

.devices-problems-list .nav-tabs li {
    width: 50%;
}

.devices-problems-list .nav-tabs li.active > a {
    background-color: #e91797 !important;
    color: #fff !important;
}
.devices-problems-list .nav-tabs li > a:hover,
.devices-problems-list .nav-tabs li > a:focus {
    background-color: #fff;
    border-color: #e91797;
}

.devices-problems-list .nav-tabs li > a {
    border: 1px solid #ddd;
    transition: transform 0.5s ease-in-out;
}

.devices-problems-list .list-items {
    border: 1px solid #ddd;
    margin-top: 5px;
}
.devices-problems-list .list-items .tab {
    display: none;
    width: 100%;
}

.devices-problems-list .list-items .tab.active {
    display: block;
}
@media only screen and (max-width: 400px) {
    .repair .main-b .slick-list {
         height: 640px !important;
    }
    .repair .slider .items .caption .description ul {
        padding: 5px 0 0 35px;
    }
}
.nav-tabs > li > a {
    border-radius: 0px;
    margin-right: 0px;
}
.nav-tabs {
    border-bottom: none;
}
.menu__devices.page-menu .items .item .icon-menu {
    margin: 0 auto;
}
@media only screen and (max-width: 410px) {
    #header .menu-btn .no-mobile {
      display: none;
    }
    #header .menu-btn-buter {
        width: 35px;
    }
    #menu-mobile .dropdown-menu{
        display: none !important;
    }
    #menu-mobile .caret{
        display: none !important;
    }

}

.tab .value s {

}
.tab .discount {
    border: 1px solid #e91797;
}
.discount_s, s {
    color: #b4b3b3;
}
.discount_s.right {
    margin-right: 20px;
}
.discount_s.left {
    margin-left: 20px;
}
.text-discount {
    color: #e91797;
    font-size: 16px;
}
.discount_flex {
    display: flex;
    flex-direction: column;
}
.discount_flex.reverse {
    flex-direction: column-reverse;
}
.discount_flex .old-price {
    font-size: 16px;
    text-align: end;
}
/*-------------------Pages-------------------------*/
.tags__com .items {
    gap: 8px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}
.tags__com .tile {
    background-color: #f03e81;
    border: 1px solid #f03e81;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: #fff;
    text-decoration: unset;
}
.tags__com .tile:hover {
    background-color: #f36296;
}
.tags__com .show-more {
    background-color: #e71761;
}
@media only screen and (max-width: 900px) {
    .tags__com .items {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media only screen and (max-width: 500px) {
    .tags__com .items {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media only screen and (max-width: 400px) {
    .tags__com .items {
        grid-template-columns: repeat(2, 1fr);
    }
}
.list__com .items {
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}
.list__com .list {
    padding: 8px 15px;
    border-bottom: 1px solid #f6f6f6;
}
.list__com .list:last-child {
    border-bottom: none;
}
.list__com .list .value {
    text-align: right;
}

.list__table {
    border: 1px solid #ddd;
    width: 100%;
}
.list__table td {
    vertical-align: middle !important;
}
.list__table td .name {
    cursor: pointer;
}
.list__table td .name:hover {
    color: #e71761;
}
.list__table .value {
    text-align: right;
}
.btn.btn-xs.btn-red {
    font-size: 12px;
    padding: 4px 14px;
}
.btn.circle {
    border-radius: 60px;
}
.telegram__com {
    border: 1px solid #ddd;
    padding: 20px 30px;
    border-radius: 50px;
    margin-top: 40px;
    margin-bottom: 40px;
    height: 100%;
}
.telegram__com .row {
    height: 100%;
    display: flex;
}
.telegram__com .col {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.telegram__com .flex_block p{
    font-size: 16px;
    margin: 0px;
    font-weight: 500;
}
.custom_page {
    padding-bottom: 60px;
}
.custom_page .tags__com {
    padding-top: 15px;
}
.btn-telegram {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
/*-------------------./Pages-------------------------*/
.prices__com {
    margin-bottom: 15px;
}
.prices__com .list-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.prices__com .list-items .content {
    display: flex;
    align-items: center;
    gap: 8px;
}
.prices__com .list-items .content .name {
    font-weight: 600;
}
.prices__com .list-items .content .img {

}
.prices__com .list-items .content .img img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}
.prices__com .cursor {
    cursor: pointer;
}
.prices__com .cursor:hover .name {
    color: #e71761;
}
@media only screen and (max-width: 600px) {
    .prices__com .list-items {
        margin-top: 20px;
    }
    .prices__com .list-items {
        grid-template-columns: repeat(2, 1fr);
    }
    .telegram__com .row {
        flex-direction: column;
        gap: 20px;
    }
    .telegram__com .row h3 {
        margin-top: 0px;
    }
}

.section-1 {
    margin-top: 50px;
}

#agree_checkbox {
    margin-left: 0px;

}
.link {
    color: #e71761;
    text-decoration: underline;
}
#footer .contacts .address-carousel .items .item .content {
    height: 215px;
}
#footer .contacts .address-carousel .item .content .value.time {
    display: flex;
    gap: 5px;
    margin-bottom: -10px;
}

.link-white {
   color: #fff;
   cursor: pointer;
   border-bottom: 1px dotted;
}
.link-white:hover {

    border-bottom: 1px dotted transparent;
}
#header .header-bottom .top_phone .time {
    color: #d3d3d3;
    margin-bottom: 3px;
}
#header .header-bottom .top_phone .desktop {
    display: flex;
    flex-direction: column;
}
#header .header-bottom .top_phone .desktop .link-white {
    font-size: 14px;
    line-height: 16px;
    margin-top: 3px;
}
#header .header-bottom .top_phone .desktop a {
    line-height: 24px;
}
.copyright .copy {
    margin-top: 8px;
    margin-bottom: 8px;
}

.wrap_icon_dm {
    display: flex;
    margin-top: 70px;
    margin-bottom: 30px;
    gap: 60px;
    justify-content: space-evenly;
}

.text_dm {
    font-size: 19px;
    font-weight: 400;
    line-height: 19px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;

}

.item_icon_dm {
    display: flex;
    align-items: center;
    gap: 13px;
}
@media only screen and (max-width: 600px) {
    .wrap_icon_dm {
        flex-direction: column;
        gap: 25px;
        margin-top: 35px;
        margin-bottom: 0px;
        display: none;
    }
    #footer .contacts .address-carousel .item .content .title {
        padding: 0px;
    }
    #footer .contacts .address-carousel .items .item .content {
        height: 185px;
    }
}
.call-section {
    background: #3a3a3a;
    border-radius: 20px;
}
.call-section .call-widget-container-custom {
    box-shadow: unset;
}
.form__mod .form-group .checkbox {
    display: flex;
    align-items: baseline;
}
.form__mod .form-group .checkbox input[type="checkbox"] {
    position: relative;
    top: 2px;
}
.call-widget-container-custom .checkbox-terms-custom .checkbox {
    display: flex !important;
    align-items: baseline !important;
    gap: 6px !important;
    margin: 0 !important;
}
.call-widget-container-custom .checkbox-terms-custom label {
    margin: 0 !important;
    padding-left: 0 !important;
    cursor: pointer !important;
}
.call-widget-container-custom .checkbox-terms-custom input[type="checkbox"] {
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    top: 1px !important;
    transform: scale(1.1) !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
}


.reviews-tab {
    display: flex;
    flex-wrap: wrap; /* Позволяет карточкам переноситься на новую строку на маленьких экранах */
    gap: 24px;
    padding: 24px;
}

.reviews-tab .review-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: unset;
}
.reviews-tab .review-card.active {
    border-color: #e71761;
}

.reviews-tab .review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.reviews-tab .icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; /* Предотвращает сжатие иконки */
}

.reviews-tab .icon-wrapper.yandex {

}

.reviews-tab .icon-wrapper.gis {
    border-radius: 12px;
}

.reviews-tab .icon-wrapper.google {
    background-color: #FFFFFF;
    border: 1px solid #EAEAEA;
}

.reviews-tab .rating-value {
    margin: 0;
    font-size: 32px;
    font-weight: bold;
    color: #1a1a1a;
    line-height: 1;
}

.reviews-tab .rating-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reviews-tab .stars {
    font-size: 18px;
    color: #FFC940;
    letter-spacing: 1px;
}

.reviews-tab .review-count {
    margin: 0;
    font-size: 14px;
    color: #8A8A8A;
    white-space: nowrap; /* Запрещает перенос текста на новую строку */
}
.js-custom-tab .custom-tab.active {
    display: block;
}
.js-custom-tab .custom-tab {
   display: none;
}
@media only screen and (max-width: 890px) {
    .reviews-tab {
        flex-direction: column;
    }
}
.radio label, .checkbox label {
    padding-left: 8px !important;
}

/* Стилизация многострочных кнопок годов выпуска моделей (год сверху, модель снизу) */
.devices__com.list.tags .item a.tag-year-btn {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.25 !important;
    padding: 6px 14px !important;
    height: auto !important;
    min-width: 90px;
}
.devices__com.list.tags .item a.tag-year-btn .tag-year-val {
    font-size: 13px !important;
    font-weight: 700 !important;
}
.devices__com.list.tags .item a.tag-year-btn .tag-model-val {
    font-size: 11px !important;
    font-weight: 500 !important;
    opacity: 0.9 !important;
    margin-top: 2px !important;
}

/* Стили мобильных выпадающих списков моделей и подписей в прайс-листе */
.devices-problems-list .select__mod.mobile,
.devices-problems-list .label-text.mobile {
    display: none;
    font-family: "SF UI Display Light", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    color: #4f4f4f;
    margin-bottom: 8px;
    line-height: 1.4;
}

@media only screen and (max-width: 992px) {
    .devices-problems-list .label-text.mobile {
        display: block !important;
        font-family: "SF UI Display Light", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
        font-size: 14px !important;
        color: #4f4f4f !important;
        margin-top: 15px !important;
        margin-bottom: 8px !important;
        line-height: 1.4 !important;
    }
    .devices-problems-list .label-text.mobile:first-of-type {
        margin-top: 0 !important;
    }
    .devices-problems-list .select__mod.mobile {
        display: block !important;
        margin-bottom: 15px !important;
        height: 50px !important;
    }
    .devices-problems-list .devices__menu.desktop,
    .devices-problems-list .devices__com.list.tags.desktop {
        display: none !important;
    }
}

/* Стили адаптивности и пропорций калькулятора "Предварительная диагностика" */
.diagnostics .form__mod .select__mod select {
    padding-right: 45px !important;
    text-overflow: ellipsis;
}
@media only screen and (min-width: 768px) {
    .diagnostics .form__mod .row {
        display: flex;
        flex-wrap: nowrap;
        margin-left: -10px;
        margin-right: -10px;
    }
    .diagnostics .form__mod .form-group {
        padding-left: 10px;
        padding-right: 10px;
        margin-bottom: 0;
    }
    /* 3 поля: Устройство 30%, Модификация/год 32%, Проблема 38% */
    .diagnostics .form__mod .form-group.col-device-mod {
        width: 30% !important;
        flex: 0 0 30%;
    }
    .diagnostics .form__mod .form-group.col-year-mod {
        width: 32% !important;
        flex: 0 0 32%;
    }
    .diagnostics .form__mod .form-group.col-problem-mod {
        width: 38% !important;
        flex: 0 0 38%;
    }

    /* 2 поля (без годов): 40% и 60% */
    .diagnostics .form__mod .form-group.col-device-mod.no-years {
        width: 40% !important;
        flex: 0 0 40%;
    }
    .diagnostics .form__mod .form-group.col-problem-mod.no-years {
        width: 60% !important;
        flex: 0 0 60%;
    }
}
@media only screen and (max-width: 767px) {
    .diagnostics .form__mod .form-group {
        width: 100% !important;
        margin-bottom: 15px;
    }
}

/* Выравнивание стрелок слайдера устройств по вертикальному центру элементов */
.devices__menu .items .fa,
.devices_carusel .items .fa,
.devices__menu .items .fa.fa-angle-left,
.devices__menu .items .fa.fa-angle-right {
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-top: 0 !important;
    cursor: pointer;
}

/* Раздельные векторные иконки для MacBook и iMac */
.icon-mac:before {
    content: "" !important;
    display: inline-block !important;
    width: 1em !important;
    height: 1em !important;
    vertical-align: middle !important;
    background-color: currentColor !important;
    -webkit-mask: url('/images/icon-macbook.svg') no-repeat center / contain !important;
    mask: url('/images/icon-macbook.svg') no-repeat center / contain !important;
}
/* Увеличение MacBook в 1.4 раза на панели с иконками */
.menu__devices .icon-mac:before,
.devicesProblemsMenu .icon-mac:before,
.apple-services-list .icon-mac:before {
    transform: scale(1.4) !important;
    transform-origin: center center !important;
}

.icon-imac:before {
    content: "" !important;
    display: inline-block !important;
    width: 1em !important;
    height: 1em !important;
    vertical-align: middle !important;
    background-color: currentColor !important;
    -webkit-mask: url('/images/icon-imac.svg') no-repeat center / contain !important;
    mask: url('/images/icon-imac.svg') no-repeat center / contain !important;
}

/* Выравнивание, одинаковые размеры контейнеров и ровная базовая линия надписей (Главная и внутренние страницы) */
.menu__devices .items,
.devicesProblemsMenu .items {
    display: flex !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    gap: 12px !important;
}

.menu__devices .items .item,
.devicesProblemsMenu .items .item {
    flex: 1 1 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 30px 10px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    border-radius: 10px !important;
    background: #fff !important;
    border: 1px solid #e2e2e2 !important;
    box-shadow: none !important;
    transition: all 0.2s ease-in-out !important;
}

/* На главной странице оставляем без видимой рамки (прозрачная для избежания скачков геометрии) */
.menu__devices:not(.page-menu) .items .item {
    border: 1px solid transparent !important;
}

.menu__devices .items .item a,
.devicesProblemsMenu .items .item a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
    text-decoration: none !important;
}

.menu__devices .items .item .icon-menu,
.devicesProblemsMenu .items .item .icon-menu {
    height: 84px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 10px !important;
    font-size: 5.2em !important;
}

.menu__devices .items .item .icon-menu.icon-airpods,
.menu__devices .items .item .icon-menu.icon-imac,
.devicesProblemsMenu .items .item .icon-menu.icon-airpods,
.devicesProblemsMenu .items .item .icon-menu.icon-imac {
    width: 80px !important;
    height: 84px !important;
    background-size: contain !important;
}

.menu__devices .items .item .menu,
.devicesProblemsMenu .items .item .menu {
    margin-top: 0 !important;
    text-align: center !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
}

/* Подсветка активной карточки и при наведении */
.menu__devices .items .item.active,
.menu__devices .items .item:hover,
.devicesProblemsMenu .items .item.active,
.devicesProblemsMenu .items .item:hover {
    box-shadow: 0 0 25px -8px #444 !important;
    border: 1px solid #e91797 !important;
}

.menu__devices .items .item.active .icon-menu,
.menu__devices .items .item.active .menu,
.menu__devices .items .item:hover .icon-menu,
.menu__devices .items .item:hover .menu,
.devicesProblemsMenu .items .item.active .icon-menu,
.devicesProblemsMenu .items .item.active .menu,
.devicesProblemsMenu .items .item:hover .icon-menu,
.devicesProblemsMenu .items .item:hover .menu {
    color: #e91797 !important;
}

@media only screen and (max-width: 992px) {
    .menu__devices .items,
    .devicesProblemsMenu .items {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    .menu__devices .items .item,
    .devicesProblemsMenu .items .item {
        flex: 0 0 calc(33.333% - 12px) !important;
        margin-bottom: 12px !important;
    }
}

@media only screen and (max-width: 600px) {
    .menu__devices .items .item,
    .devicesProblemsMenu .items .item {
        flex: 0 0 calc(50% - 10px) !important;
    }
}

/* Стилизация балуна Яндекс Карт */
.balloon__mod {
    padding: 6px 4px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    max-width: 280px;
    box-sizing: border-box;
}
.balloon__mod h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #222;
    line-height: 1.3;
}
.balloon__mod a.callibri_phone {
    display: inline-block;
    color: #e91797;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 8px;
    text-decoration: none;
}
.balloon__mod a.callibri_phone:hover {
    text-decoration: underline;
}
.balloon__mod p {
    font-size: 13px;
    line-height: 1.4;
    margin: 0 0 6px 0;
    color: #555;
}
.balloon__mod p.subway {
    font-weight: 500;
    color: #222;
}
.balloon__mod p.worktime {
    font-size: 12px;
    color: #777;
    margin-bottom: 0;
}
.balloon__mod p.worktime .text-grey {
    color: #999;
}
#map_table tr:not(.hidden) {
    transition: background-color 0.15s ease-in-out;
}
#map_table tr:not(.hidden):hover {
    background-color: #f7f3f9;
}

/* ==========================================================================
   Унификация типографики всех текстовых разделов и статей (.description-seo, .text)
   ========================================================================== */
.description-seo,
.description-seo .text,
.container.min-size > .text,
.custom_page .text,
.contacts .text,
.new .text {
    max-width: 100% !important;
    width: 100%;
    font-family: 'SF UI Display Light', -apple-system, sans-serif !important;
    font-weight: normal;
    font-size: 15px;
    line-height: 1.68;
    letter-spacing: 0.012em;
    color: #2c2d30;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.description-seo p,
.container.min-size > .text p,
.custom_page .text p,
.contacts .text p,
.new .text p {
    margin-bottom: 1.25em;
    line-height: 1.68;
    font-size: 15px;
    color: #2c2d30;
    font-family: inherit !important;
}

.description-seo p span,
.container.min-size > .text p span,
.custom_page .text p span,
.contacts .text p span,
.new .text p span {
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
}

/* Особенное выделение названия устройства в тексте: приглушённо-серый тон */
.description-seo .device-name,
.description-seo p .device-name,
.description-seo p span.device-name,
.text .device-name,
.text p .device-name,
.text p span.device-name {
    color: #636670 !important;
    font-weight: 500;
    letter-spacing: 0.012em;
    font-family: 'SF UI Display Medium', 'SF UI Display Light', sans-serif !important;
}

/* Если устройство находится внутри заголовка или жирного текста — наследовать жирность и цвет заголовка */
strong .device-name,
b .device-name,
h1 .device-name,
h2 .device-name,
h3 .device-name,
h4 .device-name {
    color: inherit !important;
    font-weight: inherit !important;
    font-family: inherit !important;
    letter-spacing: inherit !important;
}

.description-seo strong,
.description-seo b,
.container.min-size > .text strong,
.container.min-size > .text b,
.custom_page .text strong,
.custom_page .text b,
.contacts .text strong,
.contacts .text b,
.new .text strong,
.new .text b {
    font-family: 'SF UI Display Medium', sans-serif !important;
    font-weight: bold;
    color: #111;
}

.description-seo h2, 
.description-seo h3, 
.description-seo h4,
.container.min-size > .text h2,
.container.min-size > .text h3,
.container.min-size > .text h4,
.custom_page .text h2,
.custom_page .text h3,
.custom_page .text h4 {
    display: block;
    font-family: 'SF UI Display Medium', sans-serif !important;
    font-size: 19px;
    font-weight: bold;
    color: #111;
    margin-top: 26px;
    margin-bottom: 10px;
    line-height: 1.35;
}

.description-seo ul,
.description-seo ol,
.container.min-size > .text ul,
.container.min-size > .text ol,
.custom_page .text ul,
.custom_page .text ol {
    margin: 0.8em 0 1.4em 0;
    padding-left: 22px;
}

.description-seo ul li,
.description-seo ol li,
.container.min-size > .text ul li,
.container.min-size > .text ol li,
.custom_page .text ul li,
.custom_page .text ol li {
    margin-bottom: 8px;
    line-height: 1.62;
    color: #333;
    font-size: 15px;
    font-family: inherit !important;
}

.description-seo ul li:last-child,
.description-seo ol li:last-child,
.container.min-size > .text ul li:last-child,
.container.min-size > .text ol li:last-child {
    margin-bottom: 0;
}

.description-seo ul li p,
.description-seo ol li p,
.container.min-size > .text ul li p,
.container.min-size > .text ol li p {
    margin-bottom: 0.3em;
    line-height: 1.62;
}

/* ==========================================================================
   Исключение для промо-блока «Выезд Мастера» (.bg-master) на темном фоне:
   текст всегда должен быть чисто белым
   ========================================================================== */
.bg-master,
.bg-master .title,
.bg-master .text,
.bg-master .text p,
.bg-master .text p span,
.bg-master .content-text,
.bg-master .content-text .text,
.bg-master .content-text .text p,
.bg-master .content-text .text p span {
    color: #ffffff !important;
    font-family: 'SF UI Display Light', -apple-system, sans-serif !important;
}

.bg-master .content-text .text p {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 12px;
}

@media only screen and (max-width: 768px) {
    .description-seo,
    .description-seo .text,
    .container.min-size > .text,
    .custom_page .text,
    .contacts .text,
    .new .text {
        font-size: 14px;
        line-height: 1.6;
        padding-left: 10px;
        padding-right: 10px;
    }
    .description-seo p,
    .container.min-size > .text p,
    .custom_page .text p,
    .contacts .text p,
    .new .text p {
        font-size: 14px;
        line-height: 1.6;
    }
    .description-seo ul li,
    .description-seo ol li,
    .container.min-size > .text ul li,
    .container.min-size > .text ol li {
        font-size: 14px;
    }
    .description-seo h2, 
    .description-seo h3, 
    .description-seo h4,
    .container.min-size > .text h2,
    .container.min-size > .text h3,
    .container.min-size > .text h4 {
        font-size: 17px;
    }
}
