/* Дополнительные стили поверх main.min.css */

/* v2 accent */
::-moz-selection {
    background-color: #f31529;
    color: #fff;
}

::selection {
    background-color: #f31529;
    color: #fff;
}

/* Баннеры главной (block5, t604 visual) */
.banners {
    background: #f5f5f5;
    padding: 30px 0;
    overflow: visible;
}

.banners .container {
    overflow: visible;
}

.banner-slider {
    position: relative;
    overflow: visible;
}

.banner-slider .swiper {
    overflow: visible;
}

.banner-slider .swiper-wrapper {
    align-items: stretch;
}

.banner-slider .swiper-slide {
    width: calc((100% - 16px) / 1.15);
    opacity: 0.5;
    transition: opacity 0.3s ease;
    height: auto;
    flex-shrink: 0;
}

.banner-slider .swiper-slide-active,
.banner-slider .swiper-slide-duplicate-active {
    opacity: 1;
}

.banner-slider .swiper-slide-prev,
.banner-slider .swiper-slide-next,
.banner-slider .swiper-slide-duplicate-prev,
.banner-slider .swiper-slide-duplicate-next {
    opacity: 0.5;
}

.banner-slider__item {
    aspect-ratio: 1160 / 315;
    border-radius: 20px;
    overflow: hidden;
}

.banner-slider__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-slider .slider-nav {
    padding: 0 8px;
}

.banner-slider .slider-prev,
.banner-slider .slider-next {
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    opacity: 1;
    background-size: 9px auto;
}

.banner-slider .slider-prev:hover,
.banner-slider .slider-next:hover {
    opacity: 1;
}

/* Логотип VZ в шапке */
.header .logo {
    background: none;
    padding: 0;
    letter-spacing: normal;
    text-transform: none;
    font-size: 0;
    line-height: 0;
}

.header .logo:hover {
    background: none;
}

.header .logo img {
    display: block;
    width: auto;
    max-width: 250px;
    height: auto;
}

/* === V2 Header Redesign === */
.header {
    background-color: #f5f5f5;
    padding: 15px 0;
}

.header__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 3px 6px rgba(161, 161, 161, 0.3);
    padding: 0 20px;
    min-height: 69px;
}

.header__block {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    flex: 1 1 auto;
    max-width: none;
    gap: 0;
    box-shadow: none;
}

.header .header__block > .logo {
    flex-shrink: 0;
    margin-right: 102px;
}

.header__left {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 10px;
}

.header__right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 11px;
    box-sizing: border-box;
    text-align: center;
}

/* Поиск + панель инструментов 110×50 (t396 1743517053262) */
.header .header__search-group {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 0 1 auto;
    min-width: 0;
}

/* Поиск V2: 400×50, border 3px #f3f3f3 */
.header .header__search {
    flex: 0 1 400px;
    max-width: 400px;
    min-width: 200px;
    height: 50px;
}

.header .header__search form {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0 14px 0 18px;
    border: 3px solid #f3f3f3;
    border-radius: 10px;
    background-color: #f5f5f5;
    box-sizing: border-box;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.header .header__search form:hover,
.header .header__search form:focus-within {
    background-color: #fff;
    border-color: #eaeaea;
}

.header .header__search input {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 20px;
    line-height: 1.2;
    color: #000;
}

.header .header__search input::placeholder {
    color: #666;
}

.header .header__search .search-button.desktop {
    flex-shrink: 0;
    width: 23px;
    height: 23px;
    margin: 0;
    padding: 0;
    opacity: 0.5;
    background-size: contain;
}

.header .header__search .search-button.desktop:hover {
    opacity: 1;
}

/* Панель 110×50 справа от поиска */
.header .header__search-tools {
    flex-shrink: 0;
    width: 110px;
    height: 50px;
    border: 1px solid #f3f3f3;
    border-radius: 10px;
    background-color: #f5f5f5;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header .header__search-tools .header-manag {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 9px;
    border: none;
    border-radius: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
}

.header .header__search-tools .header-manag li {
    flex: 0 0 23px;
    width: 23px;
    max-width: 23px;
    height: 23px;
    margin: 0;
}

.header .header__search-tools .header-manag__button {
    width: 23px;
    height: 23px;
    opacity: 0.3;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border-radius: 0;
    transition: opacity 0.2s ease;
}

.header .header__search-tools .header-manag__button:hover {
    opacity: 1;
    background-color: transparent;
}

.header .header__search-tools .header-manag__button.onoff {
    background-image: url(/i/icon/header-power.png);
}

.header .header__search-tools .header-manag__button.reset {
    background-image: url(/i/icon/header-refresh.png);
}

.header .header__search-tools .header-manag__button.gear {
    background-image: url(/i/icon/header-option.png);
}

.header .header__search-tools .header-manag__button_disabled,
.header .header__search-tools .header-manag__button.header-manag__button_disabled {
    display: block;
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.header .header__search-tools .header-manag__button_disabled:hover,
.header .header__search-tools .header-manag__button.header-manag__button_disabled:hover {
    opacity: 0.3;
    background-color: transparent;
}

/* Управление вне search-tools — fallback */
.header .header-manag {
    flex-shrink: 0;
    margin: 0 0 0 10px;
    padding: 0 10px;
    border: 2px solid #f3f3f3;
    border-radius: 10px;
    background: #fff;
}

.header .header-manag__button {
    border-radius: 100%;
    transition: background-color 0.2s ease;
}

.header .header-manag__button:hover {
    background-color: #e0dddd;
}

/* Верхний блок навигации: 263×50 + border 2px #f3f3f3 */
.header__right .header__buttons_top {
    width: 263px;
    min-height: 50px;
    height: 50px;
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1px;
    padding: 0 0 0 2px;
    margin: 0;
    background: #fff;
    border: 2px solid #f3f3f3;
    border-radius: 10px;
    box-sizing: border-box;
    text-align: center;
    position: relative;
}

.header__right .header__buttons_top li {
    position: static;
    top: auto;
    width: 51px;
    flex: 0 0 51px;
    height: auto;
    margin: 0;
}

/* Кабинет отдельно справа: 51×50 + border (как на макете) */
.header__right .header__buttons_extra {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 0;
    background: none;
    border-radius: 0;
}

.header__right .header__buttons_extra li {
    width: 51px;
    flex: 0 0 51px;
    min-height: 50px;
    height: 50px;
    margin: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #fff;
    border: 2px solid #f3f3f3;
    border-radius: 10px;
    box-sizing: border-box;
}

.header__buttons {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0;
    border-radius: 0;
    margin: 0;
    background: none;
}

.header__buttons li {
    width: auto !important;
    height: auto !important;
    margin: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* Кнопка-зона клика 51×46 + border 2px #fff, hover #e0dddd */
.header__buttons .icon-button {
    width: 51px !important;
    min-width: 51px;
    height: 46px !important;
    background-color: #fff !important;
    background-image: none !important;
    background-size: auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    position: relative;
    padding: 0;
    font-size: 0;
    border: 2px solid #fff;
    border-radius: 10px;
    box-sizing: border-box;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.header__buttons .icon-button:hover {
    background-color: #e0dddd !important;
    border-color: #fff;
}

.header__buttons .icon-button::before {
    content: '';
    display: block;
    flex-shrink: 0;
    margin-top: 8px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.header__buttons .icon-button b {
    position: static !important;
    transform: none !important;
    left: auto !important;
    bottom: auto !important;
    font-size: 10px !important;
    line-height: 10px !important;
    color: #4a4a4a !important;
    font-weight: 400 !important;
    margin-top: auto;
    margin-bottom: 0;
    white-space: nowrap;
}

.header__buttons .icon-button span {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background-color: #53bcad;
    color: #fff;
    width: 15px !important;
    height: 15px !important;
    min-width: 15px;
    font-size: 8px !important;
    line-height: 1 !important;
    font-weight: 600;
    border-radius: 50%;
    top: 4px !important;
    right: 8px !important;
    padding: 0;
}

.header__buttons .icon-button.header__buttons_disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.header__buttons .icon-button.header__buttons_disabled:hover {
    background-color: #fff !important;
}

/* Иконки V2: размеры и opacity из макета */
.icon-button__cart::before {
    width: 22px;
    height: 22px;
    margin-top: 7px;
    opacity: 0.5;
    background-image: url(/i/icon/header-cart.png);
}

.icon-button__order::before {
    width: 22px;
    height: 22px;
    opacity: 0.5;
    background-image: url(/i/icon/order.svg);
}

.icon-button__delivery::before {
    width: 22px;
    height: 22px;
    opacity: 0.6;
    background-image: url(/i/icon/delivery.svg);
}

.icon-button__balance::before {
    width: 22px;
    height: 22px;
    opacity: 0.5;
    background-image: url(/i/icon/balance.svg);
}

.icon-button__chat::before {
    width: 25px;
    height: 25px;
    margin-top: 6px;
    opacity: 0.5;
    background-image: url(/i/icon/p-chat.png);
}

.icon-button__login::before {
    width: 25px;
    height: 25px;
    margin-top: 6px;
    opacity: 0.5;
    background-image: url(/i/icon/login.svg);
}

.header__buttons .icon-button:hover::before {
    opacity: 1;
}

.home {
    padding: 0 0 0;
    height: 0;
}

/* Отступ под fixed header (main.min.css: .header { position: fixed }) */
:root {
    --header-height: 99px;
    --suppliers-strip-height: 70px;
    --sticky-stack-offset: var(--header-height);
    --sticky-stack-gap: 17px;
}

body.has-fixed-header {
    padding-top: var(--header-height);
}

body.has-fixed-header.has-suppliers-strip {
    padding-top: calc(var(--header-height) + var(--suppliers-strip-height));
    --sticky-stack-offset: calc(var(--header-height) + var(--suppliers-strip-height));
}

.page-article-search {
    --catalog-col-gap: 10px;
}

/* Единый контейнер для header / suppliers / контента. */
:root {
    --layout-max-width: 1403px;
    --layout-gutter-desktop: 16px;
}

.container {
    width: 100%;
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding-right: var(--layout-gutter-desktop);
    padding-left: var(--layout-gutter-desktop);
    box-sizing: border-box;
}

/* Полоса логотипов поставщиков под шапкой */
.header-suppliers {
    width: 100%;
    height: var(--suppliers-strip-height);
    background-color: #f5f5f5;
    border: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: block;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    overflow: visible;
    z-index: 9;
}

.header-suppliers .container {
    width: 100%;
    height: 100%;
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding-right: var(--layout-gutter-desktop);
    padding-left: var(--layout-gutter-desktop);
    box-sizing: border-box;
    overflow: visible;
}

.page-article-search .header-suppliers__layout {
    margin-right: 0;
    margin-left: 0;
    height: 100%;
}

.page-article-search .header-suppliers__layout > * {
    padding-right: 0;
    padding-left: 0;
}

.page-article-search .header-suppliers__layout > .col85 {
    padding-right: var(--catalog-col-gap);
    min-width: 0;
    overflow: hidden;
}

.page-article-search .header-suppliers__aside {
    min-height: 1px;
}

@media only screen and (max-width: 991px) {
    .page-article-search .header-suppliers__layout {
        flex-wrap: wrap;
    }

    .page-article-search .header-suppliers__layout > .col85 {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
    }

    .page-article-search .header-suppliers__aside {
        display: none;
    }
}

.header-suppliers__row {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    height: 100%;
    gap: 8px;
    overflow: hidden;
}

.header-suppliers__info {
    flex: 0 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    position: relative;
    z-index: 30;
}

.header-suppliers__pin {
    position: relative;
    width: 15px;
    height: 15px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: #3e56a0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 31;
}

.header-suppliers__pin-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    line-height: 0;
}

.header-suppliers__pin-icon svg {
    display: block;
    width: 15px;
    height: 15px;
}

.header-suppliers__tip {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateY(-50%);
    width: 280px;
    padding: 14px 16px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    color: #000;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 10000000;
}

.header-suppliers__tip.header-suppliers__tip_visible {
    opacity: 1;
    visibility: visible;
}

.header-suppliers__tip strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
}

.header-suppliers__list {
    --suppliers-design-item: 189;
    --suppliers-design-gap: 23;
    --suppliers-design-total: 1249;
    display: grid;
    grid-template-columns: repeat(6, calc(100% * var(--suppliers-design-item) / var(--suppliers-design-total)));
    column-gap: calc(100% * var(--suppliers-design-gap) / var(--suppliers-design-total));
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.header-suppliers__list::-webkit-scrollbar {
    display: none;
}

.header-suppliers__item {
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0;
}

.header-suppliers__brand {
    width: 100%;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    background-color: #fff;
    border: 1px solid #fff;
    border-radius: 5px;
    box-sizing: border-box;
    overflow: hidden;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.header-suppliers__brand:hover {
    background-color: #fff;
    border-color: #fff;
    box-shadow: 0 15px 30px -10px rgba(0, 11, 48, 0.2);
}

.header-suppliers__brand img {
    display: block;
    max-width: 100%;
    max-height: 18px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 1;
}

.header-suppliers__layout > .col85 {
    min-width: 0;
    overflow: hidden;
}

@media screen and (max-width: 1259px) {
    :root {
        --layout-gutter-desktop: 20px;
    }
}

/* Главная: карточки новостей v2 */
.new {
    background: #f5f5f5;
    padding-bottom: 40px;
}

.section-top .arrow-button {
    color: #f31529;
}

.section-top .arrow-button:hover {
    color: #d40a26;
}

.new-item {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
}

.new-item__img {
    border-radius: 20px 20px 0 0;
}

.new-item__link,
.new-item__date {
    color: #f31529;
}

/* Футер v2 */
.site-footer.footer {
    background: #f5f5f5;
    margin-top: 0;
    padding: 0;
}

.footer-divider {
    background: #f5f5f5;
}

.footer-divider__wrapper {
    display: flex;
    width: 100%;
}

.footer-divider__line {
    flex: 1;
    height: 1px;
    opacity: 0.1;
}

.footer-divider__line_left {
    background-image: linear-gradient(to right, transparent 0%, #000 55%);
}

.footer-divider__line_right {
    background-image: linear-gradient(to left, transparent 0%, #000 55%);
}

.footer-section {
    padding-bottom: 0;
}

.footer-canvas {
    width: 100%;
}

.footer-board {
    position: relative;
    height: 90px;
    background: #f5f5f5;
}

.footer-board__backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.footer-board__inner {
    position: relative;
    z-index: 1;
    height: 90px;
}

.footer__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    min-height: 90px;
}

.footer__aside {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

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

.footer-social__link {
    display: block;
    line-height: 0;
}

.footer-social__link img {
    display: block;
    width: 28px;
    height: 28px;
}

.footer-privacy {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.footer-privacy a {
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: #3b3b3b;
    text-decoration: none;
    line-height: 1;
}

.footer-privacy a:hover {
    color: #f31529;
}

.footer .btn.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 16px;
    background: #ececec;
    border: 1px solid #d6d6d6;
    border-radius: 6px;
    color: #000;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.footer .btn.button:hover {
    background: #e0dddd;
    color: #000;
}

#feedback .btn.button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 41px;
    padding: 0;
    background-color: #53bcad;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 21.7px;
    text-align: center;
    text-transform: none;
    overflow: hidden;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    -webkit-font-smoothing: antialiased;
}

#feedback .btn.button:hover {
    background-color: #45a89a;
    color: #fff;
}

/* Поиск: фильтры и таблица */
.catalog {
    background: #f5f5f5;
    padding: 0;
}

.js_asearch_result .catalog {
    padding: 0;
}

.js_asearch_result .catalog .row.row_10 {
    margin-right: 0;
    margin-left: 0;
}

.js_asearch_result .catalog .row.row_10 > * {
    padding-right: 0;
    padding-left: 0;
}

.js_asearch_result .catalog .row.row_10 > .col85 {
    padding-right: 10px;
}

@media only screen and (max-width: 991px) {
    .js_asearch_result .catalog .row.row_10 {
        flex-wrap: wrap;
    }

    .js_asearch_result .catalog .row.row_10 > .col85 {
        padding-right: 0;
    }
}

.filter {
    border-radius: 20px;
}

.filter-item {
    border-radius: 16px;
}

/* Таблица результатов поиска v2 */

/* Строка заголовков — фоновая полоса 34px (missing element из v2-дизайна) */
.table__head .table__right {
    background: #fff;
    border-radius: 10px;
    min-height: 34px;
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    padding: 0 8px;
}

.table__head .table__right .table__right__tr {
    align-items: center;
    width: 100%;
}

.table__th {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: lowercase;
}

/* Ширины колонок таблицы поиска задаются в modules/Article-search/style/search_v2.css */

/* Клик по блоку товара открывает модалку с фото/инфо */
.table-product {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-product__info {
    flex: 1;
    min-width: 0;
}

.table-product__cam {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: no-repeat center / contain;
    border-radius: 8px;
    background-color: #f5f5f5;
}

/* Большая область изображения в модалке товара (как в v2) */
.modal__img_large {
    max-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border-radius: 8px;
    margin: 12px 0;
}
.modal__img_large img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.modal__text {
    text-align: left;
}

.modal {
    border-radius: 20px;
}

.modal .button,
.login-form .button {
    background-color: #f31529;
}

.modal .button:hover,
.login-form .button:hover {
    background-color: #d40a26;
}

/* Инпут комментария в корзине (step1): без рамки */
.notepad-item__name .js_chg_values_order_data {
    border: none;
}

/* Блокнот: выравнивание колонок в строке товара */
.notepad-item__right {
    display: grid;
    grid-template-columns:
        minmax(90px, 1.15fr)
        100px
        minmax(72px, 0.95fr)
        minmax(108px, 1.2fr)
        minmax(58px, 0.75fr)
        minmax(42px, 0.55fr)
        minmax(88px, 1.1fr)
        25px
        25px;
    align-items: center;
    gap: 8px;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: initial;
}

.notepad-item__right > .notepad-item__city,
.notepad-item__right > .count,
.notepad-item__right > .notepad-item__price,
.notepad-item__right > .notepad-item__terms,
.notepad-item__right > .notepad-item__term,
.notepad-item__right > .notepad-item__available,
.notepad-item__right > .notepad-item__name,
.notepad-item__right > .icon-button,
.notepad-item__right > .remove-button {
    flex: initial;
    max-width: none;
    min-width: 0;
}

.notepad-item__right > .notepad-item__city {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notepad-item__right > .notepad-item__city.table__city_yellow:before,
.notepad-item__city.table__city_yellow:before {
    background-color: #fbcd40;
}

.notepad-item__right > .notepad-item__city.table__city_red:before,
.notepad-item__city.table__city_red:before {
    background-color: #e66b86;
}

.notepad-item__right > .notepad-item__price {
    white-space: nowrap;
}

.notepad-item__right > .notepad-item__terms {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    min-width: 0;
    padding-left: 25px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notepad-item__right > .notepad-item__terms .terms__list {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin: 0;
}

.notepad-item__right > .notepad-item__terms .terms__list li {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.notepad-item__right > .notepad-item__term {
    text-align: center;
    white-space: nowrap;
}

.notepad-item__right > .notepad-item__available {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.notepad-item__right > .notepad-item__name {
    width: 100%;
}

.notepad-item__right > .notepad-item__name .js_chg_values_order_data {
    width: 100%;
    box-sizing: border-box;
}

.notepad-item__right > .remove-button {
    width: 25px;
    height: 25px;
    min-width: 25px;
    padding: 0;
    border: none;
    border-radius: 5px;
    background: #ddd url(/i/icon/remove.svg) center / 60% no-repeat;
    cursor: pointer;
}

.notepad-item__right > .remove-button:hover {
    background-color: #cfcfcf;
}

.notepad-item__right .hint {
    position: relative;
    z-index: 1;
}

.notepad-item__right .hint:hover {
    z-index: 200;
}

.notepad-item__right .hint-text {
    z-index: 201;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    box-sizing: border-box;
    line-height: 1.35;
    width: 280px;
    max-width: min(280px, calc(100vw - 24px));
}

@media only screen and (max-width: 1199px) {
    .notepad-item__right {
        grid-template-columns: 1fr 1fr;
        gap: 10px 12px;
    }

    .notepad-item__right > .notepad-item__city {
        grid-column: 1 / -1;
    }

    .notepad-item__right > .icon-button,
    .notepad-item__right > .remove-button {
        justify-self: end;
    }
}

/* Регистрация в модалке (#popup__reg): убираем любые фоновые картинки/псевдо-иконки у инпутов */
#popup__reg .account__item-coment,
#popup__reg .reg_form_block,
#popup__reg .reg_form_block_row,
#popup__reg .reg_form_label {
    background: none !important;
    background-image: none !important;
}

#popup__reg .account__item-coment::before,
#popup__reg .account__item-coment::after,
#popup__reg .reg_form_label::before,
#popup__reg .reg_form_label::after {
    content: none !important;
    background: none !important;
    background-image: none !important;
}

#popup__reg .account__item-coment {
    display: block;
    padding: 0;
}

#popup__reg input.slyle_input {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    background-color: #f3f3f3 !important;
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-position: 0 0 !important;
    background-size: auto !important;
}

#popup__reg input.slyle_input:hover,
#popup__reg input.slyle_input:focus {
    background-color: #fff !important;
}

/* Меню личного кабинета: исправление перекрытия футером */
.lk_menu.main_lk_menu {
    margin-top: 100px !important;
    margin-bottom: 60px !important;
    padding-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* Стили для элементов меню личного кабинета */
.lk_menu.main_lk_menu .list-group-item {
    padding: 0.5rem 0;
}

.lk_menu.main_lk_menu .list-group-item a {
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.lk_menu.main_lk_menu .list-group-item a:hover {
    opacity: 0.7;
}

.lk_menu.main_lk_menu .list-group-item a.selected {
    color: inherit;
    font-weight: bold;
}

/* Контейнер сообщений: фиксированная высота и скролл */
/* #messages_modal .chat-modal-corres {
    display: flex;
    flex-direction: column;
    height: calc(90vh - 200px);
    max-height: calc(90vh - 200px);
} */

#messages_modal .js_msg_main_div.messages_lk {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column; /* Используем column вместо column-reverse для упрощения логики */
}

/* Magnific Popup: центрирование модалок во viewport */
.mfp-wrap.my-mfp-zoom-in .mfp-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 8px;
    box-sizing: border-box;
    overflow-y: auto;
}

.mfp-wrap.my-mfp-zoom-in .mfp-container::before {
    display: none;
}

.mfp-wrap.my-mfp-zoom-in .mfp-ajax-holder .mfp-content {
    width: auto;
    max-width: min(1150px, calc(100vw - 16px));
    margin: 0;
    flex: 0 1 auto;
    overflow: visible;
}

.mfp-wrap.my-mfp-zoom-in .mfp-inline-holder .mfp-content {
    width: auto;
    max-width: 100%;
    margin: 0;
    overflow: visible;
}

.mfp-wrap.my-mfp-zoom-in .mfp-content > #messages_modal {
    overflow: visible;
    margin: 0 auto;
}

/* Стилизация скроллбара для WebKit браузеров */
.js_msg_main_div.messages_lk::-webkit-scrollbar {
    width: 8px;
}

.js_msg_main_div.messages_lk::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.js_msg_main_div.messages_lk::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.js_msg_main_div.messages_lk::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Убираем подчеркивание и выделение синим для ссылок в списке контактов чата */
.chat-modal-contacts__name a {
    text-decoration: none !important;
    color: inherit !important;
}

.chat-modal-contacts__name a:hover {
    text-decoration: none !important;
    color: inherit !important;
}

/* Прокрутка для списка диалогов */
.js_dialogs_list {
    overflow-y: auto;
    max-height: calc(100vh - 300px);
}

/* Модалка наценки: убираем иконку лупы у инпута и добавляем отступ кнопке */
#nacenka_modal .fiter-search input {
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-position: 0 0 !important;
}

#nacenka_modal .fiter-search::before,
#nacenka_modal .fiter-search::after {
    content: none !important;
    background: none !important;
    background-image: none !important;
}

#nacenka_modal .js_save_nacenka {
    margin-top: 15px;
    padding: 8px 20px;
    font-size: 14px;
    line-height: 1.4;
}

/* Кнопка переключения колонки поставщика: активна — полная непрозрачность */
.header .header__search-tools .header-manag__button.js_toggle_seller_column.active,
.header .header__search-tools .header-manag__button.js_toggle_seller_column.active:hover {
    opacity: 1;
    background-color: transparent !important;
}

.header-manag__button.js_toggle_seller_column.active,
.header-manag__button.js_toggle_seller_column.active:hover {
    background-color: #53bcad !important;
}

/* Табы регистрации: оранжевое подчеркивание активного таба */
.reg_form_block_row_tabs .tab.active:after {
    background: #f31529 !important;
}

/* Иконки условий: серый фильтр когда условие не выполнено */
.terms__list .hint.greyscale {
    filter: grayscale(100%);
    opacity: 0.5;
}

/* Секция поставщика: убираем верхний паддинг (переопределение main.min.css) */
.supplier {
    padding: 0;
}

@media only screen and (max-width: 749px) {
    :root {
        --layout-gutter-desktop: 12px;
    }

    .header .header__block > .logo {
        margin-right: 16px;
    }

    .header__right .header__buttons_top {
        width: auto;
        max-width: 100%;
        flex-wrap: wrap;
        height: auto;
        min-height: 50px;
    }

    .header__row {
        display: flex;
        flex-wrap: wrap;
        padding: 10px 15px;
    }

    .header__buttons {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .footer__row {
        align-items: flex-start;
        min-height: auto;
        padding: 20px 0 30px;
    }

    .footer-board,
    .footer-board__inner {
        height: auto;
    }

    .footer__aside {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
        margin-left: 0;
    }

    .footer-privacy {
        align-items: flex-start;
        width: 100%;
    }

    .home {
        padding: 80px 0 0;
    }
}

/* =============================================================================
 * Summernote — правки поверх глобальных стилей (main.min / normalize / админка).
 * extra.css подключается после summernote.css (см. main.tpl и admin/templates/main.tpl).
 * ============================================================================= */

/* Глобальные reset’ы часто задают всем button width:100% — ломает тулбар */
.note-editor .note-toolbar button.note-btn,
.note-popover.popover button.note-btn,
.note-modal button.note-btn {
    width: auto !important;
    max-width: none !important;
}

.note-editor .note-toolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

/* Списки: normalize/main часто сбрасывают list-style и padding у ul/ol */
.note-editor .note-editing-area .note-editable ul {
    list-style-type: disc !important;
    list-style-position: outside !important;
    padding-left: 2em !important;
    margin: 0.5em 0 !important;
}

.note-editor .note-editing-area .note-editable ol {
    list-style-type: decimal !important;
    list-style-position: outside !important;
    padding-left: 2em !important;
    margin: 0.5em 0 !important;
}

.note-editor .note-editing-area .note-editable li {
    display: list-item !important;
}

.note-editor .note-editing-area .note-editable ul ul {
    list-style-type: circle !important;
    margin-top: 0.25em !important;
    margin-bottom: 0.25em !important;
}

.note-editor .note-editing-area .note-editable ul ul ul {
    list-style-type: square !important;
}

/* Вложенные нумерованные списки */
.note-editor .note-editing-area .note-editable ol ol {
    list-style-type: lower-alpha !important;
}

.note-editor .note-editing-area .note-editable ol ol ol {
    list-style-type: lower-roman !important;
}

/* News pages v2 */
.breadcrumbs_block {
    background: #f5f5f5;
    padding: 24px 0 16px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.breadcrumbs__item {
    color: #666;
}

.breadcrumbs__item:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: #bbb;
}

.breadcrumbs__link {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs__link:hover {
    color: #f31529;
}

.page_h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: #000;
}

.all_news {
    background: #f5f5f5;
    padding: 8px 0 40px;
}

.all_news__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.all_news_item {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.all_news_item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.all_news_item__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.all_news_item__row {
    display: flex;
    align-items: stretch;
}

.all_news_item__img {
    flex: 0 0 320px;
    min-height: 180px;
    max-width: 320px;
}

.all_news_item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.all_news_item__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 32px;
    min-width: 0;
}

.all_news_item__date {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #f31529;
}

.all_news_item__title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    color: #000;
}

.all_news_item__subtitle {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.5;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.all_news_item__more {
    margin-top: auto;
    font-size: 14px;
    font-weight: 500;
    color: #f31529;
}

.all_news__empty {
    margin: 0;
    padding: 40px 0;
    text-align: center;
    color: #666;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.pagination__link:hover,
.pagination__link.active {
    background: #f31529;
    color: #fff;
}

.pagination__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    transition: background 0.2s ease;
}

.pagination__arrow:hover {
    background: #eee;
}

.pagination__arrow img {
    display: block;
    width: 20px;
    height: 20px;
}

.news {
    background: #f5f5f5;
    padding: 8px 0 40px;
}

.news_item {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
}

.news_item__date {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #f31529;
}

.news_item__subtitle {
    margin: 0 0 20px;
    font-size: 18px;
    line-height: 1.5;
    color: #666;
}

.news_item__img-wrap {
    margin-bottom: 24px;
    border-radius: 16px;
    overflow: hidden;
}

.news_item_img {
    display: block;
    width: 100%;
    height: auto;
}

.news_item_text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.news_item_text img {
    max-width: 100%;
    height: auto;
}

.contacts__cons-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 12px;
    background: #f31529;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.contacts__cons-btn:hover {
    background: #d40a26;
    color: #fff;
}

@media (max-width: 768px) {
    .page_h1 {
        font-size: 28px;
    }

    .all_news_item__row {
        flex-direction: column;
    }

    .all_news_item__img {
        flex: none;
        max-width: none;
        width: 100%;
        min-height: 200px;
    }

    .all_news_item__body {
        padding: 20px;
    }

    .all_news_item__title {
        font-size: 18px;
    }

    .news_item {
        padding: 20px;
    }
}

