@charset "UTF-8";

/* ==========================================================================
   PRIVACY POLICY BANNER (152-FZ)
   Баннер принятия политики конфиденциальности
========================================================================== */

.privacy-policy-banner {
    position: relative;
    width: 100%;
    min-height: 35px;
    overflow: hidden;
    background: -webkit-linear-gradient(left, rgba(139, 0, 0, 0.95) 0%, rgba(178, 34, 34, 0.9) 100%);
    background: -moz-linear-gradient(left, rgba(139, 0, 0, 0.95) 0%, rgba(178, 34, 34, 0.9) 100%);
    background: -ms-linear-gradient(left, rgba(139, 0, 0, 0.95) 0%, rgba(178, 34, 34, 0.9) 100%);
    background: -o-linear-gradient(left, rgba(139, 0, 0, 0.95) 0%, rgba(178, 34, 34, 0.9) 100%);
    background: linear-gradient(90deg, rgba(139, 0, 0, 0.95) 0%, rgba(178, 34, 34, 0.9) 100%);
    border-bottom: 1px solid rgba(255, 200, 50, 0.4);
    -webkit-transition: max-height 0.5s ease-out, opacity 0.3s ease-out;
    -moz-transition: max-height 0.5s ease-out, opacity 0.3s ease-out;
    -ms-transition: max-height 0.5s ease-out, opacity 0.3s ease-out;
    -o-transition: max-height 0.5s ease-out, opacity 0.3s ease-out;
    transition: max-height 0.5s ease-out, opacity 0.3s ease-out;
    z-index: 9;
    -webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.privacy-policy-banner.hidden {
    max-height: 0 !important;
    min-height: 0;
    opacity: 0;
    margin-top: -1px;
    border-bottom-width: 0;
    overflow: hidden;
}

.privacy-policy-banner-container {
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    min-height: 35px;
    padding: 5px 20px;
}

.privacy-policy-banner-content {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    /* gap: 10px; - не поддерживается в IE 11, используем margin */
}

/* Замена gap для IE 11 совместимости */
.privacy-policy-banner-content > * + * {
    margin-left: 10px;
}

/* Иконка замка */
.privacy-policy-banner-icon {
    font-size: 16px;
    line-height: 1;
    color: #ffc107;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

/* Текст */
.privacy-policy-banner-text {
    color: #ffffff;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
}

.privacy-policy-banner-text strong {
    color: #ffc107;
    font-weight: 600;
}

/* Ссылка на политику */
.privacy-policy-banner-link {
    color: #ffc107;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    -webkit-transition: border-color 0.2s;
    -moz-transition: border-color 0.2s;
    -ms-transition: border-color 0.2s;
    -o-transition: border-color 0.2s;
    transition: border-color 0.2s;
}

.privacy-policy-banner-link:hover {
    color: #ffd555;
    border-bottom-color: #ffd555;
}

/* Форма принятия */
.privacy-policy-banner-form {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    /* gap: 10px; - не поддерживается в IE 11, используем margin */
    margin-left: 10px;
}

/* Замена gap для формы (IE 11 совместимость) */
.privacy-policy-banner-form > * + * {
    margin-left: 10px;
}

/* Чекбокс */
.privacy-policy-banner-checkbox {
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: -moz-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    cursor: pointer;
    color: #ffffff;
    font-size: 12px;
    white-space: nowrap;
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
}

.privacy-policy-banner-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0 8px 0 0;
    cursor: pointer;
    /* accent-color не поддерживается в IE/старых браузерах - progressive enhancement */
    /* В старых браузерах будет стандартный цвет чекбокса */
    accent-color: #ffc107;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.privacy-policy-banner-checkbox span {
    position: static !important;
    display: inline !important;
    width: auto !important;
    height: auto !important;
    top: auto !important;
    left: auto !important;
    overflow: visible !important;
    color: #ffffff;
    line-height: 1;
}

/* Кнопка принятия */
.privacy-policy-banner-button {
    padding: 4px 12px;
    border: 1px solid #ffc107;
    border-radius: 3px;
    background: transparent;
    color: #ffc107;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
    -ms-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;
    white-space: nowrap;
}

.privacy-policy-banner-button:hover:not(:disabled) {
    background: #ffc107;
    color: #8b0000;
}

.privacy-policy-banner-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.privacy-policy-banner-button:active:not(:disabled) {
    -webkit-transform: scale(0.98);
    -moz-transform: scale(0.98);
    -ms-transform: scale(0.98);
    transform: scale(0.98);
}

/* Состояние загрузки */
.privacy-policy-banner-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.privacy-policy-banner-button.loading:after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    -webkit-animation: privacy-banner-spin 0.8s linear infinite;
    -moz-animation: privacy-banner-spin 0.8s linear infinite;
    animation: privacy-banner-spin 0.8s linear infinite;
    vertical-align: middle;
}

@-webkit-keyframes privacy-banner-spin {
    to { -webkit-transform: rotate(360deg); }
}

@-moz-keyframes privacy-banner-spin {
    to { -moz-transform: rotate(360deg); }
}

@keyframes privacy-banner-spin {
    to { transform: rotate(360deg); }
}

/* Сообщение об ошибке */
.privacy-policy-banner-error {
    color: #ffcccc;
    font-size: 12px;
    margin-top: 5px;
    text-align: center;
    width: 100%;
}

/* ==========================================================================
   АДАПТИВНОСТЬ
========================================================================== */

/* Планшеты */
@media screen and (max-width: 1024px) {
    .privacy-policy-banner-container {
        padding: 10px 15px;
    }

    .privacy-policy-banner-text {
        font-size: 13px;
        max-width: 400px;
    }

    .privacy-policy-banner-form {
        margin-left: 10px;
    }
}

/* Мобильные устройства */
@media screen and (max-width: 768px) {
    .privacy-policy-banner {
        min-height: auto;
        overflow: visible; /* Убрать обрезку на мобильных */
    }

    .privacy-policy-banner-container {
        min-height: auto;
        padding: 12px 15px;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }

    .privacy-policy-banner-content {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -moz-box-orient: vertical;
        -moz-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: stretch;
        -webkit-align-items: stretch;
        -moz-box-align: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
        width: 100%; /* Полная ширина на мобильных */
        /* gap: 12px; - заменено на margin для IE 11 */
    }

    /* Замена gap для вертикального layout (IE 11 совместимость) */
    .privacy-policy-banner-content > * + * {
        margin-top: 12px;
        margin-left: 0; /* Сброс горизонтального margin из desktop версии */
    }

    .privacy-policy-banner-icon {
        display: none;
    }

    .privacy-policy-banner-text {
        text-align: center;
        max-width: none;
        white-space: normal; /* Разрешить перенос текста на мобильных */
    }

    .privacy-policy-banner-form {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -moz-box-orient: vertical;
        -moz-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        margin-left: 0;
        /* gap: 10px; - заменено на margin для IE 11 */
    }

    /* Замена gap для формы в вертикальном layout (IE 11) */
    .privacy-policy-banner-form > * + * {
        margin-top: 10px;
        margin-left: 0; /* Сброс горизонтального margin */
    }

    .privacy-policy-banner-checkbox {
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        -moz-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }

    .privacy-policy-banner-button {
        width: 100%;
        padding: 12px 20px;
    }
}

/* Очень маленькие экраны */
@media screen and (max-width: 480px) {
    .privacy-policy-banner-container {
        padding: 10px 12px;
    }

    .privacy-policy-banner-text {
        font-size: 12px;
        line-height: 1.5;
    }

    .privacy-policy-banner-checkbox {
        font-size: 12px;
    }

    .privacy-policy-banner-button {
        font-size: 13px;
        padding: 10px 16px;
    }
}

/* Корректировка позиционирования элементов при активном баннере */
/* Высота баннера: 35px min-height + 10px padding (5px*2) + 1px border = 46px */
body.has-privacy-policy-banner .l-menu,
html.has-privacy-policy-banner-preload body .l-menu {
    top: 118px !important; /* 72px (шапка) + 46px (баннер) */
    -webkit-transition: top 0.3s;
    -moz-transition: top 0.3s;
    -ms-transition: top 0.3s;
    -o-transition: top 0.3s;
    transition: top 0.3s;
}

body.has-privacy-policy-banner .l-submenu,
html.has-privacy-policy-banner-preload body .l-submenu {
    top: 214px !important; /* 168px + 46px */
    -webkit-transition: top 0.3s;
    -moz-transition: top 0.3s;
    -ms-transition: top 0.3s;
    -o-transition: top 0.3s;
    transition: top 0.3s;
}

body.has-privacy-policy-banner.mode-no-team-header .l-submenu,
html.has-privacy-policy-banner-preload body.mode-no-team-header .l-submenu {
    top: 118px !important; /* 72px + 46px (без team-header) */
}
