@font-face {
    font-family: "nbrb";
    src: url("/local/templates/main/assets/fonts/nbrb.woff2") format("woff2"),
    url("/local/templates/main/assets/fonts/nbrb.ttf") format("truetype"),
    url("/local/templates/main/assets/fonts/nbrb.woff") format("woff");
    unicode-range: U+E901, U+42, U+59, U+4E;
}

.nbrb-icon {
    font-family: "nbrb" !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: normal;
    -webkit-font-feature-settings: "liga";
    -moz-font-feature-settings: "liga=1";
    -moz-font-feature-settings: "liga";
    -ms-font-feature-settings: "liga" 1;
    font-feature-settings: "liga";
    -webkit-font-variant-ligatures: discretionary-ligatures;
    font-variant-ligatures: discretionary-ligatures;
}

.nbrb-icon-byn:before {
    content: "\e901";
}

.callback_popup .callback-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.callback_popup .callback-form .button {
    margin-top: 8px;
}

.callback_popup .form-success,
.callback_popup .form-error {
    font-size: 14px;
    line-height: 1.4;
}

.callback_popup .form-error {
    color: #c0392b;
}

.callback_popup .form-success {
    color: #2d6a4f;
}

/* Header search — как в макете home.html */
.header__main-inner > .header__search-title {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 20px;
}

.header__main-inner > .header__search-title .header__search {
    width: 100%;
    margin-right: 0;
}

.header__search .form-input {
    display: block;
    width: 100%;
    margin: 0;
}

.header__search .button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    min-height: 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    cursor: pointer;
    z-index: 5;
}

.header__search .button:hover {
    background: transparent;
}

.header__search .input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding-right: 40px;
}

/* 404 */
.error-page {
    padding-bottom: 60px;
}

.error-page__content {
    max-width: 720px;
    margin: 0 auto 48px;
    font-size: 16px;
    line-height: 1.5;
    color: #111;
}

.error-page__content p {
    margin: 0 0 16px;
}

.error-page__list {
    margin: 0 0 20px;
    padding-left: 20px;
}

.error-page__list li {
    margin-bottom: 8px;
}

.error-page__list li:last-child {
    margin-bottom: 0;
}

.error-page__actions {
    margin-bottom: 0;
}

.error-page__catalog {
    margin-top: 0;
}

.error-page__catalog .page-title {
    margin-bottom: 24px;
}

@media screen and (max-width: 576px) {
    .error-page__content {
        font-size: 14px;
        margin-bottom: 32px;
    }
}

/* Success popup — как обычная модалка: затемнение + белая карточка */
.popup.success_popup {
    background: rgba(0, 0, 0, 0.53);
}

.popup.success_popup .popup__wrapper {
    display: block;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    padding: 25px;
}

.popup.success_popup .popup__content {
    position: static;
    width: auto;
    height: auto;
    min-height: 0;
    background: none;
    border-radius: 0;
    display: block;
    padding: 0;
}

.popup.success_popup .popup__content-heading {
    gap: 16px;
    margin: 0;
}

.popup.success_popup .popup__title {
    font-weight: 700;
    font-size: 24px;
    text-align: center;
    color: #3a3737;
}

.popup.success_popup .popup__subtitle,
.popup.success_popup .success-popup-message {
    max-width: none;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: normal;
    text-align: center;
    color: #666;
}

.popup.success_popup .popup__close {
    top: 16px;
    right: 16px;
}