
.region header,
.dzen header {
    position: relative;
    /*margin-bottom: 30px;*/
}

.dzen .content {

}

.wrap-main-menu.active.def.full.ready {
    background-color: #0C4852 !important;
}

.region header.tone-dark div.basket-quantity-info-icon,
.dzen header.tone-dark div.basket-quantity-info-icon {
    filter: contrast(0.5);
}

/* Каталог и fix-board: тёмные иконки корзины на светлом фоне */
.dir_catalog.dzen header.tone-dark div.static-board div.basket-quantity-info-icon.cart,
.dir_catalog.dzen header.tone-dark div.fix-board div.basket-quantity-info-icon.cart,
header.fixed.top.tone-dark div.fix-board div.basket-quantity-info-icon.cart {
    background-image: url('../images/svg/cart_bl.svg');
}

.dir_catalog.dzen header.tone-dark div.static-board div.basket-quantity-info-icon.delay,
.dir_catalog.dzen header.tone-dark div.fix-board div.basket-quantity-info-icon.delay,
header.fixed.top.tone-dark div.fix-board div.basket-quantity-info-icon.delay {
    background-image: url('../images/svg/heart_bl.svg');
}

.dir_catalog.dzen header.tone-dark div.static-board div.basket-quantity-info-icon.compare,
.dir_catalog.dzen header.tone-dark div.fix-board div.basket-quantity-info-icon.compare,
header.fixed.top.tone-dark div.fix-board div.basket-quantity-info-icon.compare {
    background-image: url('../images/svg/compare_bl.svg');
}

/* Отступы между иконками корзины в шапке */
.dzen header div.static-board div.counts-board,
.dzen header div.fix-board div.cart-delay-compare {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 20px;
}

.dzen header div.static-board div.counts-board > .col-4,
.dzen header div.fix-board div.cart-delay-compare > .col-4 {
    flex: 0 0 auto;
    width: auto !important;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.dzen header div.static-board div.counts-board > .row,
.dzen header div.fix-board div.cart-delay-compare > .row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 20px;
    width: auto !important;
    margin: 0;
}

.dzen header div.static-board div.counts-board > .row > .col-4,
.dzen header div.fix-board div.cart-delay-compare > .row > .col-4 {
    flex: 0 0 auto;
    width: auto !important;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.dzen header div.static-board div.counts-board div.basket-quantity-info-icon:not(.chat-icon),
.dzen header div.fix-board div.cart-delay-compare div.basket-quantity-info-icon:not(.chat-icon) {
    margin-left: 0;
}

/* static-board: flex вместо float, чтобы кнопка не налезала на иконки */
.dzen header div.static-board div.wrapper-cabinet {
    float: none !important;
}

.dzen header div.static-board .row.no-gutters.align-items-center.wrapper-item {
    gap: 16px;
}

.dzen header div.static-board div.wrapper-cabinet {
    margin-left: 0 !important;
}

@media (min-width: 480px) and (max-width: 1024px) {
    .dzen header div.static-board div.wrapper-cabinet {
        float: none !important;
        margin-left: 0 !important;
    }

    .dzen header div.static-board .row.no-gutters.align-items-center.wrapper-item {
        gap: 16px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .dzen header div.static-board .row.no-gutters.align-items-center.wrapper-item {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 16px !important;
    }

    .dzen header div.static-board div.wrapper-cabinet {
        flex: 0 0 auto !important;
        order: 2 !important;
        float: none !important;
        margin-left: 0 !important;
        width: auto !important;
    }

    .dzen header div.static-board div.counts-board {
        flex: 0 1 auto !important;
        order: 1 !important;
        width: auto !important;
        max-width: none !important;
        gap: 12px !important;
    }

    .dzen header div.static-board div.counts-board > .row {
        gap: 12px !important;
    }

    .dzen header div.static-board a.header-link {
        font-size: 13px;
        padding: 6px 10px;
        white-space: nowrap;
    }
}

div.basket-quantity-info-icon span.count {
}

.ck-body-wrapper .ck-powered-by-balloon {
    opacity: 0;
}

.ck-body-wrapper {
    opacity: 1 !important;
}

.ck-balloon-panel {
    z-index: 1100000 !important;
}

h1.h_center {
    font-size: 34px;
    font-weight: 900;
    line-height: 48px;
    text-align: center;
    margin: 40px 0;
}

._comment {
    background: #eee;
    padding: 20px;
}

._comment p {
    margin: 0;
}

.error-text {
    color: #ff3437;
    font-weight: bold;
}

/* Fix for auth link start*/
@media (max-width: 575.98px) {

    .menu-mobile-inner div.wr-cabinet table.cabinet td.name.hidden-xs {
        display: block !important;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .menu-mobile-inner div.wr-cabinet table.cabinet td.name.hidden-xs {
        display: block !important;
    }
}

/* Fix for auth link end*/

/* ===== ОСНОВНОЕ ПРОМО-ОКНО ===== */
.pwa-promo-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: #ffffff;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    border: 1px solid #e0e0e0;
    animation: pwa-slideUp 0.3s ease-out;
    box-sizing: border-box;
}

.pwa-promo__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.pwa-promo__text {
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    flex-grow: 1;
    margin: 0;
    line-height: 1.4;
}

.pwa-promo__actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.pwa-promo__btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1;
}

.pwa-promo__btn--add {
    background: #FF373A;
    color: #ffffff;
}

.pwa-promo__btn--add:hover,
.pwa-promo__btn--add:focus {
    background: #e63234;
    transform: translateY(-1px);
}

.pwa-promo__btn--close {
    background: #f8f9fa;
    color: #6c757d;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.pwa-promo__btn--close:hover,
.pwa-promo__btn--close:focus {
    background: #e9ecef;
    color: #495057;
}

/* ===== МОДАЛЬНЫЕ ОКНА ИНСТРУКЦИЙ ===== */
.pwa-instructions-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.pwa-instructions__content {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    max-width: 450px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: pwa-fadeIn 0.3s ease-out;
    box-sizing: border-box;
}

.pwa-instructions__title {
    margin: 0 0 20px 0;
    text-align: center;
    color: #333333;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.pwa-instructions__steps {
    margin: 25px 0;
}

/* ===== ОТДЕЛЬНЫЕ ШАГИ ===== */
.pwa-instructions__step {
    display: flex;
    align-items: flex-start;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    gap: 15px;
    transition: background-color 0.2s ease;
}

.pwa-instructions__step:hover {
    background: #e9ecef;
}

.pwa-instructions__step--compact {
    margin: 12px 0;
    padding: 12px;
    align-items: center;
}

.pwa-instructions__step--compact p {
    margin: 0;
    font-size: 14px;
    color: #333333;
    line-height: 1.4;
}

.pwa-instructions__step-number {
    background: #FF373A;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
    font-size: 14px;
}

.pwa-instructions__step-text {
    flex-grow: 1;
    min-width: 0;
}

.pwa-instructions__step-title {
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #333333;
    font-size: 15px;
    line-height: 1.3;
}

.pwa-instructions__step-description {
    margin: 0;
    color: #666666;
    font-size: 13px;
    line-height: 1.3;
}

.pwa-instructions__step-icon {
    font-size: 28px;
    flex-shrink: 0;
    margin-left: 10px;
}

/* ===== ПЛАТФОРМЫ ===== */
.pwa-instructions__platform {
    margin-bottom: 25px;
}

.pwa-instructions__platform:last-child {
    margin-bottom: 0;
}

.pwa-instructions__platform-title {
    margin: 0 0 15px 0;
    color: #333333;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}

/* ===== КНОПКА ЗАКРЫТИЯ ===== */
.pwa-instructions__close-btn {
    background: #FF373A;
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-top: 10px;
    font-family: inherit;
    line-height: 1;
}

.pwa-instructions__close-btn:hover,
.pwa-instructions__close-btn:focus {
    background: #e63234;
    transform: translateY(-1px);
}

/* ===== АНИМАЦИИ ===== */
@keyframes pwa-slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes pwa-fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 480px) {
    .pwa-promo-bar {
        width: 95%;
        bottom: 10px;
        padding: 10px 12px;
    }

    .pwa-promo__content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .pwa-promo__actions {
        width: 100%;
        justify-content: center;
    }

    .pwa-instructions__content {
        padding: 20px;
        margin: 10px;
    }

    .pwa-instructions__step {
        padding: 12px;
        gap: 12px;
    }

    .pwa-instructions__step--compact {
        padding: 10px;
    }

    .pwa-instructions__step-number {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .pwa-instructions__step-icon {
        font-size: 24px;
    }
}

/* ===== ПОДДЕРЖКА ВЫСОКОГО CONTRAST ===== */
@media (prefers-contrast: high) {
    .pwa-promo-bar {
        border: 2px solid #000000;
    }

    .pwa-instructions__step {
        border: 1px solid #cccccc;
    }
}

/* ===== ПОДДЕРЖКА REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .pwa-promo-bar,
    .pwa-instructions__content {
        animation: none;
    }

    .pwa-promo__btn,
    .pwa-instructions__close-btn {
        transition: none;
    }
}