/* Иконка MAX в подвале на ширине до 1400px: тот же малый отступ, что и в шапке (раньше было инлайн-стилем в чанке соцсетей) */
@media (max-width: 1400px) {
    .social---footer .social__icon--max {
        padding: 3px;
    }
}

/* Галочка согласия на обработку персональных данных в формах.
   В default.css у всех input сброшен вид (appearance:none, border:none), поэтому чекбокс рисуем сами. */
.form-consent {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    cursor: pointer;
    text-align: left;
}

.form-consent input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    flex: 0 0 auto;
    display: block;
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    border: 1px solid #1F1F1F;
    border-radius: 0;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 14px 14px;
    cursor: pointer;
    transition: background-color 0.25s, border-color 0.25s;
}

.form-consent input[type="checkbox"]:checked {
    background-color: #1F1F1F;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M2.5 7.5L5.5 10.5L11.5 3.5' stroke='%23fff' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E");
}

.form-consent input[type="checkbox"]:focus-visible {
    outline: 2px solid #3297FD;
    outline-offset: 2px;
}

.form-consent span {
    font-size: inherit;
    line-height: inherit;
}

.form-consent a {
    color: inherit;
    text-decoration: underline;
}

/* Блок «Напишите нам» на тёмном фоне */
.callback-politic {
    color: #fff;
}

.callback-politic .form-consent input[type="checkbox"] {
    border-color: #fff;
}

.callback-politic .form-consent input[type="checkbox"]:checked {
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M2.5 7.5L5.5 10.5L11.5 3.5' stroke='%231F1F1F' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E");
}

/* Уведомление об использовании файлов cookie (чанк chunks/cookie-banner.tpl) */
.cookie-banner[hidden] {
    display: none;
}

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 9990;
    display: flex;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}

.cookie-banner--active {
    opacity: 1;
    transform: translateY(0);
}

.cookie-banner__container {
    position: relative;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 680px;
    padding: 14px 40px 14px 18px;
    background-color: #fff;
    border: 1px solid #1F1F1F;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    color: #1F1F1F;
    pointer-events: auto;
}

.cookie-banner__text {
    flex: 1 1 auto;
    font-size: 12px;
    line-height: 17px;
    text-align: left;
}

.cookie-banner__text a {
    color: inherit;
    text-decoration: underline;
}

.cookie-banner__text a:hover {
    text-decoration: none;
}

.cookie-banner__actions {
    flex: 0 0 auto;
}

.cookie-banner__button {
    box-sizing: border-box;
    min-width: 110px;
    padding: 0 20px;
    border: 1px solid #1F1F1F;
    border-radius: 0;
    background-color: #1F1F1F;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 34px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

.cookie-banner__button:hover {
    background-color: transparent;
    color: #1F1F1F;
}

.cookie-banner__button:focus-visible,
.cookie-banner__close:focus-visible {
    outline: 2px solid #3297FD;
    outline-offset: 2px;
}

.cookie-banner__close {
    position: absolute;
    top: 4px;
    right: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.25s;
}

.cookie-banner__close svg {
    width: 16px;
    height: 16px;
}

.cookie-banner__close:hover {
    opacity: 1;
}

@media (max-width: 767px) {
    .cookie-banner {
        left: 0;
        right: 0;
        bottom: 0;
    }
    .cookie-banner__container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        max-width: none;
        padding: 12px 36px 12px 14px;
        border-width: 1px 0 0;
    }
    .cookie-banner__text {
        font-size: 12px;
        line-height: 16px;
    }
    .cookie-banner__button {
        width: 100%;
        font-size: 12px;
        line-height: 32px;
    }
}

@media print {
    .cookie-banner {
        display: none;
    }
}
