@charset "utf-8";

/* bg #2D2C2C */
:root {
    --bg: #131313;
    --dark: #25292c;
    --line: #3b3b3b;
    --card: rgba(255,255,255,.1);
    --white: #e6e7e8;

    -orange: #ec7c30;
}

body {
    background: var(--bg);
}

/* Фон-стрелка осталась только на главной (.hero-viper::before).
   На категориях и карточке товара её убрали. */
.category-page,
.product-page {
    position: relative;
    overflow: visible;
}

.top-header__in {
    padding: 0;
    background: transparent;
}
header {
    background: var(--bg);
}
.header__nav {
    background: var(--bg);
}
.header__list > li > a {
    color: var(--white);
}
.header__btn {
    border: 1px solid rgb(255 255 255 / 15%);
}
.header__top-list li a {
    color: var(--white);
}
.header__btn svg path {
    fill: #fff;
}
header .svg {
    color: #fff;
}
.cart-btn__val,
.top-header__in {
    color: var(--white);
}
h1 {
    color: var(--white);
}
.breadcrumb li a {
    color: var(--white);
}
.breadcrumb li:after {
    color: var(--white);
}
.cat-panel__grid svg path {
    fill: #fff;
}
.front-hero {
    background: #383e42;
}


.front-hero__in:before {
    content: '';
    background: url(/img/d.png);
    background-size: cover;
    width: 800px;
    height: 100%;
    background-position: center;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    opacity: .3;
}


.front-hero__in:after {
    content: '';
    background: url(/img/romb/romb.png);
    background-size: 240px;
    width: 240px;
    height: 240px;
    position: absolute;
    bottom: -200px;
    right: -160px;
    top: 0;
    pointer-events: none;
}

.front-slide__title {
    color: var(--white);
}
.front-slide__text {
    max-width: 540px;
    color: var(--white);
}
.cat-thumb {
    background: var(--card);
    border-color: var(--line);
    color: #fff;
    padding: 24px;
}
.sidebar-cats .pcat-widget {
    border-radius: 4px;
    background: var(--card);
    border-color: var(--line);
}
.pcat-title {
    color: var(--white);
    border-color: var(--line);
}
.pcat-widget-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--white);
    text-align: left;
    cursor: pointer;
}
.pcat-widget-toggle__icon {
    display: flex;
    flex: 0 0 20px;
    flex-direction: column;
    gap: 4px;
    width: 20px;
}
.pcat-widget-toggle__icon span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
}
.pcat-widget.is-expanded .pcat-widget-toggle__icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.pcat-widget.is-expanded .pcat-widget-toggle__icon span:nth-child(2) {
    opacity: 0;
}
.pcat-widget.is-expanded .pcat-widget-toggle__icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}
.pcat-widget__content[hidden] {
    display: none;
}
.pcat-tree > .pcat-item > .pcat-link, 
.pcat-tree .pcat-item > .pcat-link {
    color: #fff;
}
.pcat-tree .pcat-item.is-current > .pcat-link {
    color: #c3272e !important;
    font-weight: 700;
}
.pcat-widget.is-expanded .pcat-title {
    color: #fff;
}

/* Filter Everything в сайдбаре категории */
.category-filters {
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid var(--line);
}
.category-filters__title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 12px;
    color: #fff;
}
.category-filters .wpc-filters-main-wrap,
.category-filters .widget_wpc_filters_widget {
    margin: 0;
}
.category-filters .wpc-filter-title,
.category-filters .wpc-filters-section .wpc-filter-header {
    color: #fff;
}
.category-filters .wpc-filters-section {
    margin-bottom: 14px;
}
.category-filters a {
    color: var(--white);
}
.category-filters .wpc-term-count {
    opacity: .6;
}
.breadcrumb li:after {
    position: relative;
    content: ' / ';
    display: inline-block;
    margin: 0 10px;
}
.custom-vpf {
    border-radius: 12px;
    background: var(--card);
    border: 1px solid var(--line);
}
.vpf-title {
    color: #fff;
}
.woocommerce .woocommerce-ordering select {
    background: var(--bg);
    border-color: var(--bg);
    color: #fff;
    border: 1px solid var(--line);
    border: none;
    padding: 6px 12px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
}
.row.front-cats .col-3 a .cat-thumb {
    font-size: 16px;
    font-weight: 500;
}
.front-cats.row {
    margin: 0 -10px;
}
.front-cats.row .col-4 {
    padding: 0 10px;
}
.header__ozon svg {
    width: 88px;
    height: 24px;
    object-fit: contain;
}
.btn-catalog {
    color: #ffff;
}
.top-header__callback a {
    color: var(--main);
}
header .top-header__callback .svg {
    color: var(--sand);
}

.front-features {
    position: relative;
}
.front-hero__in {
    position: relative;
    overflow: hidden;
    margin-top: 40px;
    background: var(--card);
    padding: 0 60px;
    border-radius: 32px;
    border: 1px solid var(--line);
}
.front-slide__title {
    text-transform: uppercase;
}
h2 {
    color: var(--white);
}
.h2__sub {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    margin: -20px 0 40px;
}
.product-item__actions .btn {
    color: #fff;
}
.front-cat {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 260px;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--main);
    margin-bottom: 20px;
    background: var(--card);
    overflow: hidden;
    transition: .3s;
}
.front-cat:hover {
    transition: .3s;
    transform: scale(1.02);
    background: var(--main);
}
.front-cat__title a {
    font-size: 20px;
    color: #fff;
    font-weight: bold;
}
.front-cat:hover .front-cat__title a {
    color: var(--bg);
}
.front-cat:hover .btn {
    background: #fff;
}
.front-cat__img {
    position: absolute;
    bottom: 0;
    right: -30px;
}
.front-cat__img img {
    width: 100%;
    height: 100%;
    max-width: 260px;
    max-height: 260px;
    object-fit: contain;
}
.top-header__phone a {
    color: var(--white);
}

.text-block {
    color: var(--white);
}
.catalog-dropdown {
    background: var(--dark);
    border-radius: 20px;
    overflow: hidden;
    top: 56px;
}
.catalog-dropdown .child-categories-title {
    border-bottom: none;
    margin-bottom: 0;
}
.catalog-dropdown .child-categories-title a {
    color: var(--white);
}
.catalog-dropdown .child-category a {
    color: var(--white);
}
.catalog-dropdown .parent-category a {
    border: none;
}
.catalog-dropdown .catalog-layout__parents {
    border-right: 0;
    padding: 16px;
}
.catalog-dropdown .parent-category a {
    color: var(--white);
}
.catalog-dropdown .parent-category:hover,
.catalog-dropdown .parent-category.active {
    background-color: var(--card);
    border-radius: 8px;
    color: var(--white);
}
.cons__in {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 32px;
}
.cons .form__submit .btn {
    background: var(--main);
    color: #fff;
}
footer {
    background: #232323;
    color: var(--white);
    padding-bottom: 0;
}
.footer__title {
    color: var(--white);
}
.footer__list a {
    color: var(--white);
}

.footer__list a:hover,
.footer__copy-links a:hover,
.panel-adaptive .panel-list a:hover {
    color: var(--main);
}

.footer__resources {
    width: 230px !important;
    margin-left: 32px;
    padding-left: 32px;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.footer__resource-group + .footer__resource-group {
    margin-top: 28px;
}

.footer__resource-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer__resource-links a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 7px;
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.footer__resource-links a:hover {
    color: var(--white);
    border-color: var(--main);
    background: var(--main);
}
.footer__resource-links--marketplaces a {
    justify-content: center;
    width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 6px;
}
.footer__resource-links--marketplaces a:hover {
    background: rgba(255, 255, 255, .08);
}
.footer__resource-links--marketplaces img {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.footer__resource-links--socials a {
    justify-content: center;
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    color: #fff;
}
.footer__resource-links--socials svg {
    display: block;
    width: 21px;
    height: 21px;
    color: #fff;
}
.footer__resource-links--socials svg path {
    fill: currentColor;
}
.footer__resource-links--socials .footer-social-icon--rutube {
    width: 26px;
    height: 23px;
}
.top-header__phone {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-right: 40px;
}
.header__social {
    display: flex;
    gap: 8px;
    align-items: center;
}
.header__social a {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}
.header__social svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}
.header__social .header__social-tg {
    background: #28a7e8;
}
.header__social .header__social-wa {
    background: #46c756;
}
.footer-item__val a {
    color: var(--white);
}

.modal .form textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    border-radius: 8px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid rgba(0, 119, 182, .4);
    outline: none;
    box-shadow: none;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    color: #222;
}

@media (max-width: 1200px) {
    .footer__col.footer__middle {
        padding-left: 24px;
        padding-right: 24px;
    }

    .footer__middle .footer__list:not(:last-child) {
        margin-right: 30px;
    }

    .footer__resources {
        width: 210px !important;
        margin-left: 20px;
        padding-left: 20px;
    }
}

@media (max-width: 991px) {
    .footer__col.footer__middle {
        justify-content: flex-start;
        padding-inline: 0;
    }

    .footer__resources {
        width: 100% !important;
        margin: 8px 0 32px;
        padding: 28px 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
        border-left: 0;
    }

    .footer__resource-links {
        gap: 10px;
    }
}
.footer-item__val span {
    color: #eb7c7c;
    display: inline-block;
    border-top: 1px dashed;
    border-bottom: 1px dashed;
    padding: 6px 0;
    display: inline-block;
    margin-top: 10px;
}
.child-categories-container > .child-categories-list > .child-category > a {
    font-weight: bold;
    font-size: 18px;
}
.catalog-dropdown .child-category a:hover {
    color: var(--main);
}
.cat-thumb__img {
}
.cat-thumb__img img {
    width: 140px;
    height: 140px;
    object-fit: cover;
}
.woocommerce nav.woocommerce-pagination ul .page-numbers.current {
    color: #222;
}
.woocommerce nav.woocommerce-pagination ul .page-numbers {
    color: var(--white);
}
.cat-thumb:hover {
    background: var(--dark);
}

/* Category cards */
.category-page .front-cats .cat-thumb {
    border: 1px solid var(--line);
    transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.category-page .front-cats .cat-thumb__title {
    transition: color .25s ease;
}
.category-page .front-cats a:hover .cat-thumb {
    background: linear-gradient(135deg, #302426 0%, #242020 100%);
    border-color: var(--main);
    box-shadow: 0 12px 30px rgba(195, 39, 46, .16);
    transform: translateY(-2px);
}
.category-page .front-cats a:hover .cat-thumb__title {
    color: var(--main);
}

/* Main shop: larger category images */
.category-page--shop .front-cats .cat-thumb__img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
    padding: 10px;
}
.woocommerce .category-page--shop .front-cats .cat-thumb__img img {
    width: 160px;
    height: 160px;
    max-width: 160px;
    object-fit: contain;
}

/* Product category: compact horizontal child-category cards */
.category-page--taxonomy .front-cats .cat-thumb {
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    min-height: 92px;
    padding: 14px 16px;
    text-align: left;
}
.category-page--taxonomy .front-cats .cat-thumb__img {
    display: flex;
    flex: 0 0 64px;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    padding: 8px;
}
.woocommerce .category-page--taxonomy .front-cats .cat-thumb__img img {
    width: 48px;
    height: 48px;
    max-width: 48px;
    object-fit: contain;
}
.category-page--taxonomy .front-cats .cat-thumb__title {
    flex: 1 1 auto;
}

/* Four products per row on desktop category pages */
@media (min-width: 992px) {
    .category-page--taxonomy .products:not(.line) > .col-4 {
        width: 25%;
    }
}
.category-row__line {
    margin-top: 40px;
}
.pcat-tree .pcat-item.is-open > .pcat-toggle::before,
.pcat-tree .pcat-item .pcat-toggle::before {
    color: var(--white);
}

select.vpf-select {
    border-radius: 8px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}
.tab-nav li a.active {
    color: var(--main);
}
.product__more a {
    font-size: 16px;
    font-weight: 600;
    color: var(--main);
}
.attribute-name, .attribute-value {
    background: var(--bg);
    color: #fff;
}
.product-attribute:before {
    border-bottom: 1px dashed rgba(255, 255, 255, .2);
}
.tab-nav li a:before {
    background: rgba(255, 255, 255, .2);
}
.woo-vpf-product-tab tfoot th {
    text-align: left;
}
.text-block a {
    color: var(--main);
}
.text-block .woocommerce-MyAccount-navigation ul li a {
    color: var(--white);
}
.text-block h3 {
    color: var(--white);
}
.text-block a.btn {
    color: #fff;
}
.cart-total__text,
.cart-total__val,
.js-clear-cart {
    color: #fff;
}
.cart-item__remove {
    color: #fff;
}
.cart-item__remove svg path {
    stroke: #fff;
}
.cart-item__price_text {
    color: #fff;
}
.cart-item__remove button.js-clear-cart {
    color: #fff;
}
.cart-empty__message {
    background: var(--card);
    border: 1px solid var(--line);
    color: #fff;
}
.btn_red:hover {
    background: #499e9e;
}

.news-item {
    position: relative;
    margin-bottom: 30px;
}
.news-slider {
    padding: 20px 10px;
    margin: 0 -10px;
}
.news-item__image img {
    width: 100%;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    height: 240px;
    object-fit: cover;
}
.news-item__image {
    margin-bottom: 12px;
}
.news-item__date {
    font-weight: 500;
    font-size: 16px;
    line-height: 140%;
    color: #fff;
    margin-bottom: 10px;
}
.news-item__title a {
    font-weight: 700;
    font-size: 22px;
    line-height: 120%;
    color: var(--main);
}
.news-item__title {
    margin-bottom: 19px;
}
.news-item__short {
    font-weight: 500;
    font-size: 16px;
    line-height: 140%;
    color: #fff;
    margin-bottom: 16px;
}
.news-page__img img {
    width: 100%;
    height: auto;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}
.news-item__more a {
    color: #fff;
}

/* product-thumb__addit */
.product-thumb__addit {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    text-align: center
}

.product-thumb__addit-wrap {
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex
}

.product-thumb__addit-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto
}

.product-thumb__addit-dot {
    display: inline-block;
    width: 8px;
    height: 3px;
    border-radius: 0;
    -webkit-transform: translate(0,-20px);
    -ms-transform: translate(0,-20px);
    transform: translate(0,-20px);
    background: #E8E8E8;
}

.product-thumb__addit-dot + .product-thumb__addit-dot {
    margin: 0 0 0 5px
}

.product-thumb__addit-dot.active {
    background: var(--main);
    width: 30px;
    border-radius: 0;
}
.catalog-item__image {
  position: relative;
}
/* .product-thumb__addit */
.product-card__image {
    position: relative;
}
.warehouse-stock-list {
    color: #fff;
    margin-bottom: 20px;
    font-weight: 500;
}
.warehouse-qty {
    color: var(--main);
    font-weight: bold;
}
.btn_one-click:hover,
.btn_one-click:focus,
.btn_one-click:active {
    background: var(--main);
    color: #222;
}
.product-attributes {
    margin-bottom: 20px;
}

.vpf-models-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}
.vpf-models-list li {
    margin-bottom: 5px;
}
.vpf-models-list__title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
}
.vpf-models-list a {
    cursor: pointer;
    color: var(--white);
    font-weight: 400;
    text-underline-offset: 6px;
    text-decoration: underline;
}
#specification-model .modal-content {
    overflow: auto;
}
.offices__list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    color: #fff;
}
.contacts__offices {
    margin-top: 40px;
}
.contacts__offices h2 {
    margin-bottom: 24px;
}
.page-template-contacts .contact__block {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
.page-template-contacts .contact-item {
    margin-bottom: 0;
}
.office-item {
    overflow: hidden;
    height: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
}
.office-item__title {
    min-height: 76px;
    margin: 0;
    padding: 18px 22px;
    font-weight: bold;
    font-size: 18px;
    line-height: 1.35;
    color: #fff;
}
.office-item__map {
    min-height: 400px;
    background: #1c1c1c;
}
.office-item__map iframe {
    display: block;
    width: 100% !important;
    height: 400px !important;
    border: 0;
    border-radius: 0;
}
@media (max-width: 991px) {
    .page-template-contacts .contact__block {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 575px) {
    .page-template-contacts .contact__block {
        grid-template-columns: 1fr;
    }
    .office-item__title {
        min-height: 0;
        font-size: 16px;
    }
    .office-item__map,
    .office-item__map iframe {
        min-height: 320px;
        height: 320px !important;
    }
}
.footer__copy-in {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.footer__copy {
    margin-top: 40px;
    background: #1c1c1c;
    padding: 24px 0;
}
.footer__copy-value {
    font-size: 14px;
    font-weight: 500;
}
.footer__copy-links {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.footer__copy-links a {
    font-size: 14px;
    color: var(--white);
}
.text-block table {
  width: 100%;
  border-collapse: collapse;
  background-color: #383E42;
  color: #e6e7e8;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.text-block table thead {
  background-color: #2a2f33;
}

.text-block table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #4a5158;
}

.text-block table td {
  padding: 14px 16px;
  border-bottom: 1px solid #4a5158;
}

.text-block table tbody tr {
  transition: background-color 0.2s ease;
}

.text-block table tbody tr:hover {
  background-color: #434a4f;
}

.text-block table tbody tr:last-child td {
  border-bottom: none;
}

/* Альтернативная окраска строк */
.text-block table tbody tr:nth-child(even) {
  background-color: #3d4347;
}

.text-block table tbody tr:nth-child(even):hover {
  background-color: #434a4f;
}
.text-block ul li:before {
    background: #fff;
    width: 4px;
    height: 4px;
}
.vpf-title__link {
    color: var(--main);
}
.product-page__main .product__code {
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    background: var(--card);
    width: fit-content;
    padding: 6px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.product-purchase__availability {
    margin-bottom: 12px;
    color: #69be15;
    font-size: 15px;
    font-weight: 600;
}
@media (min-width: 992px) {
    .product-page__head { --product-main-photo-height: 400px; }
    .product-page__head .main-photo { height: var(--product-main-photo-height); }
    .product-page__head.row.auto-h > .col-7 > .product-page__main--no-warehouses {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: var(--product-main-photo-height);
    }
    .product-page__main--no-warehouses .product-purchase {
        width: 100%;
        max-width: 380px;
        margin-top: auto;
        padding-top: 24px;
    }
    .product-page__main--no-warehouses .product__price-block {
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 18px;
    }
    .product-page__main--no-warehouses .product__btns .btn_cart { width: 100%; }
}

.card.shadow-sm {
    padding: 24px;
    border-radius: 20px;
    background: var(--card);
    border: 1px solid var(--line);
}
.catalog-dropdown .child-categories-list.dropdown-brands-list {
    grid-template-columns: repeat(4, 1fr);
}
.catalog-dropdown .child-categories-list.dropdown-brands-list .brand-item {
    display: none;
}
.catalog-dropdown .child-categories-list.dropdown-brands-list .brand-item.popular {
    display: block;
}
.catalog-dropdown .child-categories-list.dropdown-brands-list.show-all .brand-item {
    display: block;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .text-block table {
    font-size: 14px;
  }
  
  .text-block table th,
  .text-block table td {
    padding: 10px 12px;
  }
}

.in-stock {
    color: var(--main);
}
.text-block .woocommerce-MyAccount-navigation ul li.is-active a {
    color: #fff;
}
.panel-list li {
    border-bottom: none;
}

/* Основной контейнер */
.mobile-catalog-wrapper .mobile-main-catalog-item {
    list-style: none;
    padding: 0;
}

.catalog-trigger-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}
.catalog-trigger-row a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    color: #222;
    text-decoration: none;
}

/* Стрелочки */
.catalog-main-toggle,
.mobile-cat-toggle {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}
/* Рисуем стрелку через CSS (шеврон) */
.catalog-main-toggle::after,
.mobile-cat-toggle::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-top: -4px;
}
/* Состояние открыто - поворот стрелки */
.active-toggle::after {
    transform: rotate(-135deg);
    margin-top: 4px;
}

/* Дерево категорий */
.mobile-cat-tree {
    padding: 0;
    margin: 0;
    list-style: none;
    background: var(--dark);
}

.mobile-cat-item {
    list-style: none;
    border-bottom: 1px solid #eee;
}
.mobile-cat-item:last-child {
    border-bottom: none;
}

.mobile-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-cat-header a {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    flex-grow: 1;
}
.panel-adaptive {
    background: var(--bg);
}
.panel-list li a {
    color: #fff;
}
/* Подменю (2 и 3 уровни) */
.mobile-sub-menu {
    display: none; /* Скрыто по умолчанию */
    padding: 0;
    margin: 0;
    list-style: none;
}
.mobile-sub-menu li a {
    display: block;
    font-size: 13px;
    color: #fff;
}

/* 3 уровень (внуки) */
.mobile-sub-menu .mobile-sub-menu li a {
    padding-left: 60px; /* Отступ для 3 уровня */
    color: #777;
    font-size: 13px;
}

/* Выделение популярных брендов */
.brand-popular a {
    font-weight: 600;
    color: #222 !important;
}
/* Пункт выбора авто */
.car-selection-item .mobile-cat-header a {
    color: #fff;
    font-weight: 600;
}

.contact__block {
    background: var(--card);
    color: var(--white);
    border: 1px solid var(--line);
}
.contact-item__value a {
    color: #fff;
    font-weight: 500;
    font-size: 20px;
}
.contact-item__label {
    color: #bbbbbb;
}
.select2-container--default .select2-selection--single {
    border: none;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: var(--main);
    color: var(--bg);
}
.select2-container--default .select2-selection--single .select2-selection__clear {
    margin-right: 0;
}

.woocommerce-error, .woocommerce-info, .woocommerce-message {
    background: var(--card);
    color: var(--white);
    border-radius: 8px;
}
.woocommerce-info::before {
    color: var(--main);
}
.woocommerce-info {
    border-top: none;
}
a.bottom-item {
    color: #222;
}
.front-selects h2 {
    color: var(--main);
    margin-bottom: 16px;
}
.front-selects .custom-vpf {
    padding: 40px;
}
.order-form .form label {
    color: var(--white);
}
.cart-total td {
    color: #fff;
}
.cart-item__price_val {
    color: #fff;
}
.order-form.form label {
    color: var(--white);
}
.order-form .form__terms {
    color: #fff;
}
.about-block {
    position: relative;
    overflow: hidden;
}
.section-about__decor {
    position: absolute;
    bottom: 0;
    left: 0;
    pointer-events: none;
}


@media (max-width: 991px) {
    .header__social {
        gap: 12px;
    }

    .footer__copy {
        padding-bottom: 80px;
    }
    .header__btn {
        width: 34px;
        height: 34px;
        background: var(--main);
        border: none;
    }
    .header__btn .svg svg {
        width: 16px;
        height: 16px;
        color: var(--bg);
    }
    .header__menu {
        margin-right: 20px;
    }
    .hero-features__in {
        flex-wrap: wrap;
    }
    .hero-feature {
        padding: 16px;
    }
    .hero-feature {
        width: 100%;
    }
    .front-cat__img img {
        max-width: 140px;
        max-height: 140px;
    }
    .about-block .text-block, .delivery .text-block {
        font-size: 16px;
    }
    .front-cat {
        height: 160px;
    }
    .front-cat__title a {
        font-size: 18px;
    }
    header {
        border-bottom: 1px solid var(--line);
    }
    .cons__title {
        font-size: 24px;
    }
    .sidebar-cats {
        position: static;
        display: block;
        margin-bottom: 16px;
    }
    .front-hero__in {
        padding: 0 10px;
        width: calc(100% + 30px);
        margin: 0 -15px;
        border-radius: 0;
    }
    .h2__sub {
        font-size: 16px;
        font-weight: normal;
    }
    .form .row {
        margin: 0;
    }
    .form .col-6,
    .form .col-12 {
        padding: 0;
    }
}

/*
#314858
 */


/* --- Bento Hero Section --- */
.bento-card {
    background: var(--card); /* Ваш темно-серый фон карточек */
    border: 1px solid var(--line);
    border-radius: 28px; /* Современное большое скругление */
    padding: 40px;
    position: relative;
    overflow: hidden;
    height: 100%;
}

/* Главная карточка */
.bento-card--main {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;

    background-image: 
        linear-gradient(90deg, rgba(28, 32, 38, 1) 0%, rgba(28, 32, 38, 0.95) 45%, rgba(28, 32, 38, 0) 100%),
        url('/img/main-bg.png');
        
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

.bento-badge {
    display: inline-block;
    width: fit-content;
    background: transparent;
    border: 1px solid #b0b5b9;
    color: #b0b5b9;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.bento-h1 {
    font-size: 46px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.bento-desc {
    font-size: 18px;
    color: #b0b5b9; /* Мягкий серый для читаемости */
    line-height: 1.5;
    margin-bottom: 40px;
    max-width: 90%;
}

/* Кнопки мессенджеров */
.bento-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-modern:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    color: #fff;
}

.btn-modern--tg { background: #28a7e8; }
.btn-modern--wa { background: #46c756; }

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon svg {
    width: 24px;
    height: 24px;
}

/* --- Стек УТП карточек (Правая колонка) --- */
.bento-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.bento-card--utp {
    padding: 24px 30px;
    height: calc(33.333% - 13px); /* Равномерное распределение по высоте */
    display: flex;
    align-items: center;
    gap: 20px;
}

.bento-card--tradein {
    background: var(--main);
    border-color: var(--main);
}

.bento-card--tradein .bento-utp-val,
.bento-card--tradein .bento-utp-text {
    color: #fff;
}

.bento-utp-val {
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    min-width: 100px;
}

.bento-utp-text {
    font-size: 15px;
    color: #b0b5b9;
    line-height: 1.3;
    font-weight: 500;
}

.bento-card--tradein .bento-utp-text {
    color: rgba(255, 255, 255, 0.8);
}

.bento-decor {
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 80px;
    height: 80px;
    opacity: 0.1;
    color: #fff;
    pointer-events: none;
}

/* Адаптив */
@media (max-width: 1200px) {
    .bento-h1 { font-size: 36px; }
    .bento-utp-val { font-size: 26px; min-width: 80px; }
}

@media (max-width: 991px) {
    .bento-card { padding: 30px; border-radius: 20px; }
    .bento-card--utp { height: auto; flex-direction: column; align-items: flex-start; gap: 10px; }
    .bento-stack { flex-direction: row; flex-wrap: wrap; }
    .bento-stack > div { flex: 1; min-width: 140px; }
}

/* =========================================
   NEW HEADER STYLES (VIPER DESIGN)
   ========================================= */

.site-header {
    background-color: var(--bg);
    padding: 12px 0 22px;
    color: #FFFFFF;
    position: relative;
    z-index: 100;
}

/* TOP ROW */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

/* Бургер — только мобилка, слева */
.site-header .header__burger.hamburger {
    display: none;
    flex-shrink: 0;
    padding: 0;
    margin: 0 8px 0 0;
    color: #fff;
}

/* VK + TG в мобильном header */
.header-mobile-socials {
    display: none;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.header-mobile-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, color 0.2s ease;
}
.header-mobile-socials a:hover {
    color: #fff;
}
.header-mobile-socials svg {
    display: block;
    width: 16px;
    height: 16px;
}
.header-mobile-socials svg path {
    fill: currentColor;
}
.header-mobile-socials__vk:hover {
    background: #0077ff;
}
.header-mobile-socials__tg:hover {
    background: #28a7e8;
}

.site-header .header__burger .hamburger-inner,
.site-header .header__burger .hamburger-inner::before,
.site-header .header__burger .hamburger-inner::after {
    background-color: #fff;
}

.header__logo {
    flex-shrink: 0;
}

.header__logo img {
    max-width: 200px;
    height: auto;
}

.header__phone-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header__phone-block .phone-number {
    font-size: 22px;
    font-weight: 800;
    color: #FFFFFF;
    text-decoration: none;
    line-height: 1.2;
}

.header__phone-block .phone-desc {
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
    opacity: 0.9;
}

/* SEARCH BLOCK */
.header__search-block {
    flex-grow: 1;
    max-width: 600px;
}

.header-bottom .header__search-block {
    min-width: 260px;
    max-width: none;
    margin: 0 32px 0 24px;
}

/* AWS Plugin Override matching Mockup */
.site-header .aws-container .aws-search-form {
    display: flex;
    height: 48px;
}

.site-header .aws-container .aws-show-clear .aws-search-field {
    border-radius: 8px 0 0 8px !important;
    border: none;
    height: 48px;
    padding-left: 20px;
    font-size: 16px;
    background: #F4F4F4; /* Светло-серый из палитры */
    color: #2D2C2C;
}

.site-header .aws-container .aws-search-form .aws-form-btn {
    position: static;
    background: #C3272E;
    color: #FFFFFF;
    width: 120px;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.site-header .aws-container .aws-search-form .aws-form-btn:hover {
    background: #a82025;
}

/* Скрываем дефолтную лупу плагина и пишем текст "Найти" */
.site-header .aws-container .aws-search-form .aws-form-btn svg,
.site-header .aws-container .aws-search-form .aws-form-btn img {
    display: none !important; 
}
.site-header .aws-container .aws-search-form .aws-form-btn::before {
    content: 'Найти';
}

/* HEADER REQUEST BUTTON */
.header__request-block {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-left: auto;
}

.header__request-text {
    max-width: 190px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.35;
    text-align: right;
}

.btn-request {
    background: #C3272E;
    color: #FFFFFF;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.3s ease;
}
.btn-request:hover {
    background: #a82025;
    color: #FFFFFF;
}

/* BOTTOM ROW */
.header-bottom {
    position: relative;
    display: flex;
    align-items: center;
}

.site-header .btn-catalog {
    background: #C3272E;
    color: #FFFFFF;
    height: 48px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}
.site-header .btn-catalog:hover {
    background: #a82025;
}

/* NAVIGATION */
.header__nav-menu {
    margin-left: 30px;
}

.header-top .header__nav-menu {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 10px;
}

.header__nav-menu .header__list {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header__nav-menu .header__list li a {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header__nav-menu .header__list li a:hover {
    color: #C3272E;
}

.header__nav-menu .header__list li.current-menu-item > a,
.header__nav-menu .header__list li.current-menu-ancestor > a {
    color: #C3272E;
}

/* ACTIONS (CART & LOGIN) */
.header__actions {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
}

.header__cart-link, 
.header__login-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.header__cart-link:hover, 
.header__login-link:hover {
    opacity: 1;
    color: #C3272E;
}

.header__cart-link .svg svg,
.header__cart-link i.svg svg path {
    fill: currentColor;
}

.header__login-link svg path {
    fill: currentColor;
}

.cart-btn__val {
    font-weight: 600;
    font-size: 16px;
    color: #FFFFFF;
}

/* АДАПТИВ (Планшеты/Моб. устройства базово) */
@media (max-width: 1350px) {
    .header-top { gap: 18px; }
    .header__nav-menu .header__list { gap: 18px; }
    .header__nav-menu .header__list li a { font-size: 14px; }
    .header__request-text { display: none; }
}

@media (max-width: 1100px) {
    .header__logo img { max-width: 170px; }
    .header__phone-block .phone-number { font-size: 18px; }
    .header-top .header__nav-menu { margin-left: 0; }
    .header__nav-menu .header__list { gap: 12px; }
    .btn-request { padding: 0 14px; }
    .header-bottom .header__search-block { margin-right: 20px; }
    .header__actions { gap: 20px; }
}

@media (max-width: 991px) {
    .header-top, .header-bottom {
        flex-wrap: wrap;
    }
    .header__search-block {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 15px;
    }
    .header__nav-menu {
        display: none; /* Скрываем десктопное меню на мобилках */
    }
}

/* Делаем так, чтобы края крестика не обрезались при вращении */
.btn-catalog svg {
    overflow: visible; 
}

/* Плавный переход для линий SVG */
.btn-catalog svg line {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* Анимация при наличии класса active у родителя */
.header__catalog.active .btn-catalog svg line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.header__catalog.active .btn-catalog svg line:nth-child(2) {
    opacity: 0; /* Прячем среднюю линию */
}

.header__catalog.active .btn-catalog svg line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

/* Отдельная иконка закрытия сохраняет симметрию крестика. */
.btn-catalog .catalog-icon--close { display: none; flex: none; }
.header__catalog.active .btn-catalog .catalog-icon--menu { display: none; }
.header__catalog.active .btn-catalog .catalog-icon--close { display: block; }

.catalog-dropdown .catalog-all-products {
    display: block;
    margin-bottom: 12px;
    padding: 12px 15px;
    border-radius: 8px;
    background: var(--main);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}
.catalog-dropdown .catalog-all-products:hover { color: #fff; filter: brightness(1.1); }

/* У уведомления WooCommerce свой значок; маркер темы смещает текст на него. */
.text-block .woocommerce-error { padding: 16px 20px 16px 52px; margin: 0 0 24px; }
.text-block .woocommerce-error li { padding: 0; margin: 0 0 6px; overflow-wrap: anywhere; }
.text-block .woocommerce-error li:last-child { margin-bottom: 0; }
.text-block .woocommerce-error li::before { content: none; }
.text-block .woocommerce-error::before { top: 16px; left: 20px; }

.text-block .woocommerce-order { min-width: 0; }
.text-block .woocommerce-thankyou-order-received {
    padding: 22px 24px;
    border-radius: 12px;
    background: var(--card);
    color: var(--white);
    font-size: 24px;
    line-height: 1.35;
    font-weight: 600;
}
.woocommerce-order-received .text-block .woocommerce ul.woocommerce-order-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    padding: 0;
    margin: 24px 0 40px;
    list-style: none;
}
.woocommerce-order-received .text-block .woocommerce ul.woocommerce-order-overview::before,
.woocommerce-order-received .text-block .woocommerce ul.woocommerce-order-overview::after {
    content: none;
    display: none;
}
.woocommerce-order-received .text-block .woocommerce ul.woocommerce-order-overview li {
    display: block;
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    overflow-wrap: anywhere;
    float: none;
    text-transform: none;
}
.woocommerce-order-received .text-block .woocommerce ul.woocommerce-order-overview li::before { content: none; }
.woocommerce-order-received .text-block .woocommerce ul.woocommerce-order-overview li strong { display: block; margin-top: 6px; color: var(--white); }
@media (max-width: 767px) {
    .woocommerce-order-received .text-block .woocommerce ul.woocommerce-order-overview {
        grid-template-columns: minmax(0, 1fr);
    }
}
.text-block .woocommerce-order .woocommerce-order-details,
.text-block .woocommerce-order .woocommerce-customer-details { overflow-x: auto; }

/* Делаем форму флекс-контейнером */
.site-header .aws-container .aws-search-form {
    display: flex !important;
    height: 48px !important;
}

/* Обёртка с инпутом занимает всё оставшееся место */
.site-header .aws-container .aws-wrapper {
    flex-grow: 1 !important;
    position: relative !important;
    width: auto !important;
}

/* Стилизация самого поля ввода */
.site-header .aws-container .aws-search-field {
    height: 48px !important;
    border-radius: 8px 0 0 8px !important;
    background: #FFFFFF !important;
    border: none !important;
    padding-left: 20px !important;
    width: 100% !important;
    font-size: 16px !important;
}

/* Жестко ставим кнопку на место (убиваем position: absolute) */
.site-header .aws-container .aws-search-btn.aws-form-btn {
    position: relative !important; 
    right: auto !important;
    top: auto !important;
    width: 120px !important;
    height: 48px !important;
    background: #C3272E !important;
    color: #FFFFFF !important;
    border-radius: 0 8px 8px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    border: none !important;
    transition: background 0.3s ease !important;
    z-index: 2 !important;
}

.site-header .aws-container .aws-search-btn.aws-form-btn:hover {
    background: #a82025 !important;
}

/* Прячем стандартную иконку лупы плагина */
.site-header .aws-container .aws-search-btn_icon svg {
    display: none !important;
}

.aws-container .aws-search-form .aws-search-btn_icon {
    display: none !important;
}

/* =========================================
   NEW VIPER HERO BANNER
   ========================================= */

.hero-viper {
    position: relative;
    width: 100%;
    background: transparent;
    overflow: visible;
    isolation: isolate;
    padding: 40px 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

/* Фон как на категориях — не обрезается, за контентом */
.hero-viper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    min-height: clamp(320px, 42vw, 738px);
    background: url("/img/bg-new.jpg") center top / cover no-repeat;
    z-index: 0;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 70%,
        rgba(0, 0, 0, 0.55) 88%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 70%,
        rgba(0, 0, 0, 0.55) 88%,
        transparent 100%
    );
}

.hero-viper > * {
    position: relative;
    z-index: 1;
}

.hero-viper__wave {
    display: none !important;
}

.front-catalog.m-60 {
    position: relative;
    z-index: 2;
}

@media (max-width: 767px) {
    .hero-viper {
        min-height: 420px;
    }
    .hero-viper::before {
        background-image: url("/img/bg-new-mob.jpg");
        min-height: clamp(280px, 95vw, 560px);
    }
}

.hero-viper__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.hero-viper__content {
    flex: 1;
    max-width: 50%;
    z-index: 2;
}

/* Стилизация заголовков (наклонный, жирный, капс) */
.hero-viper__title {
    font-size: 42px;
    text-transform: uppercase;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: 1px;
}

.hero-viper__subtitle {
    font-size: 24px;
    font-weight: 500;
    color: #fff; /* Серый цвет из макета */
    line-height: 1.3;
    margin-bottom: 40px;
}

/* Кнопка */
.hero-viper__btn {
    background-color: #C3272E;
    color: #FFFFFF;
    padding: 0 40px;
    height: 56px;
    line-height: 56px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
}

.hero-viper__btn:hover {
    background-color: #a82025;
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Изображение устройства */
.hero-viper__image {
    flex: 1;
    max-width: 600px;
    height: 500px; /* Заданный размер */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    position: relative;
}

.hero-viper__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Добавляем тень для объема, как на макете */
    filter: drop-shadow(0px 25px 25px rgba(0,0,0,0.8));
}

/* Декоративные элементы управления (Справа) */
.hero-viper-swiper {
    width: 100%;
    position: relative;
    background: transparent;
    z-index: 1;
}
.hero-viper-swiper .swiper-slide {
    height: auto;
    background: transparent;
}
.hero-viper__features {
    display: none !important;
}

.hero-viper__controls,
.hero-ctrl-btn {
    display: none !important;
}

/* Точки пагинации — внизу по центру (перебиваем дефолтный Swiper) */
.hero-viper-swiper {
    overflow: hidden;
}

.hero-viper-swiper .hero-viper__dots.swiper-pagination,
.hero-viper-swiper .hero-viper__dots {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 8px !important;
    top: auto !important;
    width: 100% !important;
    transform: none !important;
    z-index: 5;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.hero-viper-swiper .hero-dot {
    width: 10px !important;
    height: 10px !important;
    margin: 0 !important;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    background: transparent !important;
    opacity: 0.75 !important;
    cursor: pointer;
    pointer-events: auto;
    padding: 0;
    box-sizing: border-box;
    display: inline-block;
    transition: background 0.25s ease, opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.hero-viper-swiper .hero-dot:hover {
    opacity: 1 !important;
}

.hero-viper-swiper .hero-dot.hero-dot--active,
.hero-viper-swiper .hero-dot.swiper-pagination-bullet-active {
    background: #fff !important;
    border-color: #fff;
    opacity: 1 !important;
    transform: scale(1.15);
}

/* Адаптив для планшетов и мобилок */
@media (max-width: 1100px) {
    .hero-viper__title { font-size: 42px; }
    .hero-viper__subtitle { font-size: 26px; }
}

@media (max-width: 991px) {
    .hero-viper__container {
        flex-direction: column;
        text-align: center;
    }
    .hero-viper__content {
        max-width: 100%;
        margin-bottom: 20px;
    }
    .hero-viper__title { font-size: 32px; }
    .hero-viper__subtitle { font-size: 20px; margin-bottom: 30px;}
    
    .hero-viper__image {
        height: 350px;
        max-width: 100%;
    }

    .hero-viper-swiper .hero-viper__dots.swiper-pagination,
    .hero-viper-swiper .hero-viper__dots {
        bottom: 4px !important;
        gap: 8px;
    }

    .hero-viper-swiper .hero-dot {
        width: 8px !important;
        height: 8px !important;
    }
}

.front-cat {
    border: 1px solid rgba(255,255,255,.1);
    background: linear-gradient(180deg, rgba(81, 78, 79, 0.53) 0%, rgba(48, 46, 47, 0.53) 100%);
}

/* =========================================
   БЛОК "ДРУГИЕ НАШИ САЙТЫ"
   ========================================= */

.other-sites {
    position: relative;
    padding: 60px 0 100px; /* Отступ снизу больше для градиента */
    overflow: hidden; /* Чтобы градиент не вылезал за рамки страницы */
}

.relative-container {
    position: relative;
    z-index: 2; /* Контент всегда поверх свечения */
}

/* Список */
.other-sites__list {
    display: flex;
    flex-direction: column;
}

/* Элемент списка (строка) */
.other-site-item {
    display: flex;
    align-items: center;
    padding: 16px 0; /* Компактные отступы */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* Тонкая темная линия */
    text-decoration: none;
    transition: background 0.3s ease;
}

.other-site-item:last-child {
    border-bottom: none;
}

/* Легкая подсветка строки при наведении */
.other-site-item:hover {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 16px 15px;
    margin: 0 -15px; /* Компенсируем паддинг, чтобы визуально не дергалось */
    border-color: transparent;
}

/* Белая плашка с картинкой (компактная) */
.other-site__img {
    width: 150px;
    height: 90px;
    background: #FFFFFF;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    margin-right: 30px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.other-site-item:hover .other-site__img {
    transform: scale(1.05); /* Легкий зум картинки при ховере */
}

.other-site__img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Текстовый блок */
.other-site__info {
    flex-grow: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.other-site__name {
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.other-site__desc {
    font-size: 14px;
    color: #b0b5b9;
    font-weight: 500;
}

/* Блок "Перейти" */
.other-site__action {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    margin-left: 12px;
}

.other-site__link-text {
    font-size: 15px;
    color: #FFFFFF;
    font-weight: 600;
}

/* Круглая стрелка */
.other-site__arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.other-site__arrow svg {
    width: 20px;
    height: 20px;
}

/* Анимация стрелки при наведении */
.other-site-item:hover .other-site__arrow {
    background: #C3272E;
    border-color: #C3272E;
    transform: translateX(5px);
}
.other-site-item:hover .other-site__name {
    color: #C3272E;
}

/* =========================================
   КРАСНЫЙ НИЖНИЙ ГРАДИЕНТ (СВЕЧЕНИЕ)
   ========================================= */
.other-sites__bottom-glow {
    position: absolute;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 350px;
    /* Создаем эллиптическое красное свечение */
    background: radial-gradient(ellipse at center, rgba(195, 39, 46, 0.4) 0%, rgba(195, 39, 46, 0) 70%);
    pointer-events: none; /* Чтобы не перекрывало клики */
    z-index: 1;
}


/* --- Адаптив для мобильных и планшетов --- */
@media (max-width: 991px) {
    .other-sites__title {
        font-size: 28px;
    }
    .other-site-item {
        padding: 20px 0;
    }
    .other-site__img {
        width: min(100px, 25vw);
        height: 70px;
        margin-right: 20px;
        border-radius: 12px;
    }
    .other-site__name {
        font-size: 18px;
    }
    .other-site__desc {
        font-size: 13px;
    }
    .other-site__link-text {
        display: none; /* Прячем слово "Перейти" на смартфонах, оставляем только стрелку */
    }
}

/*
body {
    background: #f2f2f2;
}
*/

.product-card {
    border-radius: 0;
    background: #fff;
    border: 1px solid #d9d9d9;
}

/* =========================================
   ИКОНКИ ХАРАКТЕРИСТИК (ICONS)
   ========================================= */
.product-icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.product-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #171717;
    color: #fff;
    padding: 15px 10px;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.product-icon-item:hover {
    transform: translateY(-3px);
}

.product-icon-img {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.product-icon-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-icon-title {
    font-size: 13px;
    line-height: 1.3;
    font-weight: 600;
    color: #fff;
}

/* =========================================
   ПРЕИМУЩЕСТВА ТОВАРА (BENS)
   ========================================= */
.product-benefits-section {
    margin: 60px 0;
    padding-top: 40px;
}

.product-benefits-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-benefit-row {
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

/* Чередование блоков (Текст слева, фото справа) */
.product-benefit-row.benefit-reverse {
    flex-direction: row-reverse;
}

.product-benefit-image {
    flex: 0 0 50%; /* Картинка занимает 50% ширины */
    min-height: 350px;
}
.product-benefit-row:nth-child(odd) {
    background: #eee;
}
.product-benefit-row:nth-child(odd) .product-benefit-desc,
.product-benefit-row:nth-child(odd) .product-benefit-title {
    color: #222;
}

.benefit-img-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.product-benefit-content {
    flex: 0 0 50%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-benefit-title {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.product-benefit-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #fff;
}

.product-benefit-desc p {
    margin-bottom: 15px;
}
.product-benefit-desc p:last-child {
    margin-bottom: 0;
}

/* Стили для кастомного списка в табах */
.product-custom-features-list .char-list {
    padding-left: 20px;
}

.product-custom-features-list .char-list li {
    font-size: 15px;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 10px;
    position: relative;
    list-style-type: disc; /* Обычные маркеры */
    list-style-position: outside;
}
.products__numbs {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.product-numb {
    color: #fff;
}
.product-numb {
    width: 160px;
}
.product-numb__title {
    font-weight: 800;
    font-size: 22px;
}

/* --- Адаптив для преимуществ --- */
@media (max-width: 991px) {
    .product-benefit-row, 
    .product-benefit-row.benefit-reverse {
        flex-direction: column;
    }
    
    .product-benefit-image, 
    .product-benefit-content {
        flex: 0 0 100%;
    }
    
    .product-benefit-image {
        min-height: 250px;
    }
    
    .product-benefit-content {
        padding: 30px;
    }
    
    .product-benefit-title {
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .product-icons-grid {
        grid-template-columns: repeat(2, 1fr); /* На мобильных по 2 в ряд */
    }
}
.photo-thumb {
    background: #fff;
}

.product-card {
    border: none;
    background: rgba(255,255,255,.1);
    border-radius: 4px;
}
.product-card__title a {
    font-weight: 600;
    font-size: 18px;
    color: #fff;
}
.product-card__image {
    height: 240px;
}
h1 {
    text-transform: uppercase;
    font-weight: 800;
}
h2 {
    font-size: 36px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 48px;
    margin: 0 0 40px;
}
.product-card__price {
    color: #fff;
}

/* =========================================
   БЛОК КАТЕГОРИЙ (BENTO GRID) НА ГЛАВНОЙ
   ========================================= */

.index-catalog-grid {
    display: grid;
    /* Создаем сетку из 4 колонок */
    grid-template-columns: repeat(4, 1fr);
    /* Задаем высоту строк. Первая строка - 40vh, вторая - 40vh */
    grid-auto-rows: 40vh; 
    gap: 0; /* Без отступов между блоками, как на макете */
    overflow: hidden;
    border-radius: 20px; /* Общее скругление углов для всей плитки */
    margin-top: 30px;
}

/* --- Стилизация самой плитки --- */
.index-catalog__elem {
    position: relative;
    display: block;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease;
    padding: 30px;
}

.index-catalog__elem:hover {
    background-color: #C3272E !important; /* Фирменный красный при наведении */
}

/* Заголовок внутри плитки */
.index-catalog__title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    max-width: 280px;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

/* Картинка внутри плитки */
.index-catalog__image {
    position: absolute;
    bottom: 0;
    right: 0;
    max-width: 60%;
    max-height: 80%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    z-index: 1;
}

.index-catalog__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.index-catalog__elem:hover .index-catalog__image img {
    transform: scale(1.05); /* Легкий зум картинки при наведении */
}

/* Круглая стрелка */
.index-catalog__arrow {
    position: absolute;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.index-catalog__arrow svg {
    width: 24px;
    height: 24px;
    color: #ffffff; /* Используем currentColor для управления цветом из CSS */
}

.index-catalog__elem:hover .index-catalog__arrow {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

/* --- Распределение плиток по сетке и Цвета --- */

/* 1-я плитка (Видеорегистраторы): Большая, занимает 2 колонки и 2 строки */
.index-catalog__elem:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
    background-color: #222222;
}
.index-catalog__elem:nth-child(1) .index-catalog__image {
    max-width: 70%;
    max-height: 90%;
    bottom: 20px;
}

/* 2-я плитка (Ксенон): Занимает 1 колонку, 1 строку */
.index-catalog__elem:nth-child(2) {
    grid-column: span 1;
    background-color: #444444;
}

/* 3-я плитка (LED автосвет): Занимает 1 колонку, 1 строку */
.index-catalog__elem:nth-child(3) {
    grid-column: span 1;
    background-color: #747474;
}

/* 4-я плитка (Аксессуары): Занимает 2 колонки, 1 строку. Текст темный, фон светлый */
.index-catalog__elem:nth-child(4) {
    grid-column: span 2;
    background-color: #ffffff;
    color: #111111;
}
.index-catalog__elem:nth-child(4) .index-catalog__title {
    color: #111111;
}
.index-catalog__elem:nth-child(4) .index-catalog__arrow {
    background: #f2f2f2;
}
.index-catalog__elem:nth-child(4) .index-catalog__arrow svg {
    color: #111111;
}

/* Инверсия цветов для светлой плитки при наведении */
.index-catalog__elem:nth-child(4):hover {
    color: #ffffff;
}
.index-catalog__elem:nth-child(4):hover .index-catalog__title,
.index-catalog__elem:nth-child(4):hover .index-catalog__arrow svg {
    color: #ffffff;
}


/* --- Адаптив --- */

@media (max-width: 1100px) {
    .index-catalog__title {
        font-size: 24px;
    }
}

@media (max-width: 991px) {
    /* На планшетах делаем сетку из 2 колонок */
    .index-catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 250px; /* Фиксируем высоту */
    }
    .index-catalog__elem:nth-child(1) {
        grid-column: span 2; /* Первая плитка по-прежнему на всю ширину */
        grid-row: span 1;
    }
    .index-catalog__elem:nth-child(2),
    .index-catalog__elem:nth-child(3) {
        grid-column: span 1;
    }
    .index-catalog__elem:nth-child(4) {
        grid-column: span 2; /* Последняя тоже на всю ширину */
    }
}

@media (max-width: 576px) {
    /* На мобильных телефонах все плитки в один столбец */
    .index-catalog-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
        border-radius: 12px;
    }
    .index-catalog__elem:nth-child(1),
    .index-catalog__elem:nth-child(2),
    .index-catalog__elem:nth-child(3),
    .index-catalog__elem:nth-child(4) {
        grid-column: span 1;
        grid-row: span 1;
    }
    .index-catalog__title {
        font-size: 20px;
        top: 0;
        left: 0;
    }
    .index-catalog__elem {
        padding: 20px;
    }
    .index-catalog__arrow {
        width: 40px;
        height: 40px;
        bottom: 20px;
        left: 20px;
    }
    .index-catalog__arrow svg {
        width: 18px;
        height: 18px;
    }
}
.hero-viper {
    position: relative;
}
.hero-viper__wave img {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 85%;
    right: 0;
    bottom: 0;
    pointer-events: none;
}
.hero-viper__container {
    position: relative;
    z-index: 2;
}

/* Delivery page */
.delivery-hero__subtitle {
    margin-top: 16px;
    color: rgba(255, 255, 255, .72);
    font-size: 20px;
    font-weight: 500;
}
.delivery-page {
    padding: 0 0 80px;
}
.delivery-intro {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    padding: 36px;
    border: 1px solid rgba(195, 39, 46, .55);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(195, 39, 46, .18), rgba(255, 255, 255, .06));
}
.delivery-intro__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: var(--main);
    color: #fff;
}
.delivery-intro__icon svg {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.delivery-eyebrow {
    margin-bottom: 9px;
    color: #e86b70;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.delivery-intro h2,
.delivery-section-heading h2 {
    color: var(--white);
}
.delivery-intro h2 {
    max-width: 900px;
    margin-bottom: 14px;
    font-size: 30px;
    line-height: 1.25;
}
.delivery-intro p {
    max-width: 1000px;
    color: rgba(255, 255, 255, .72);
    font-size: 17px;
    line-height: 1.65;
}
.delivery-terms {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}
.delivery-term {
    min-height: 230px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
    transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.delivery-term:hover {
    transform: translateY(-3px);
    border-color: var(--main);
    background: rgba(195, 39, 46, .12);
}
.delivery-term__number {
    margin-bottom: 38px;
    color: var(--main);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .1em;
}
.delivery-term h3 {
    margin-bottom: 12px;
    color: var(--white);
    font-size: 19px;
    line-height: 1.25;
}
.delivery-term p {
    color: rgba(255, 255, 255, .65);
    font-size: 14px;
    line-height: 1.55;
}
.delivery-points {
    margin-top: 64px;
}
.delivery-section-heading {
    margin-bottom: 24px;
}
.delivery-section-heading h2 {
    font-size: 32px;
}
.delivery-points__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.delivery-point {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 20px;
    min-height: 170px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .06);
}
.delivery-point__index {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(195, 39, 46, .65);
    border-radius: 50%;
    color: #e86b70;
    font-size: 13px;
    font-weight: 800;
}
.delivery-point h3 {
    margin-bottom: 8px;
    color: var(--white);
    font-size: 21px;
}
.delivery-point p {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, .68);
    font-size: 15px;
    line-height: 1.5;
}
.delivery-point a {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}
.delivery-point a:hover {
    color: #e86b70;
}
.delivery-point__pending {
    color: rgba(255, 255, 255, .45);
    font-size: 14px;
}
.delivery-warning {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-top: 28px;
    padding: 24px 28px;
    border: 1px solid rgba(195, 39, 46, .65);
    border-radius: 16px;
    background: rgba(195, 39, 46, .14);
}
.delivery-warning__icon {
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--main);
    color: #fff;
    font-size: 24px;
    font-weight: 800;
}
.delivery-warning__title {
    margin-bottom: 4px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}
.delivery-warning p {
    color: rgba(255, 255, 255, .78);
    font-size: 15px;
    line-height: 1.5;
}
@media (max-width: 1100px) {
    .delivery-terms {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .delivery-term {
        min-height: 210px;
    }
}
@media (max-width: 767px) {
    .delivery-hero__subtitle {
        font-size: 16px;
    }
    .delivery-page {
        padding-bottom: 48px;
    }
    .delivery-intro {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px;
    }
    .delivery-intro__icon {
        width: 58px;
        height: 58px;
    }
    .delivery-intro__icon svg {
        width: 30px;
        height: 30px;
    }
    .delivery-intro h2,
    .delivery-section-heading h2 {
        font-size: 24px;
    }
    .delivery-intro p {
        font-size: 15px;
    }
    .delivery-terms,
    .delivery-points__grid {
        grid-template-columns: 1fr;
    }
    .delivery-term {
        min-height: 0;
    }
    .delivery-term__number {
        margin-bottom: 26px;
    }
    .delivery-points {
        margin-top: 48px;
    }
    .delivery-point {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 16px;
        min-height: 0;
        padding: 22px;
    }
    .delivery-point__index {
        width: 42px;
        height: 42px;
    }
    .delivery-warning {
        align-items: flex-start;
        padding: 20px;
    }
}
.product-card__stock {
    align-items: baseline;
    gap: 6px 12px;
}
.product-card__code {
    min-width: 0;
    color: #fff;
    overflow-wrap: anywhere;
}
.product-card__stock .product-card__availability {
    flex-shrink: 0;
    white-space: nowrap;
}
@media (max-width: 767px) {
    .product-card__stock .product-card__availability {
        font-size: 12px;
    }
    .product-card__stock .in-stock {
        color: #9ad65c;
    }
}
.product-card__price-block {
    margin-bottom: 20px;
}

.home footer {
    margin-top: 0;
}

.about__docs {
    display: flex;
    gap: 20px;
}
.about__docs img {
    max-width: 200px;
}
.about__logo {
    margin-bottom: 40px;
}

/* =========================================
   БЛОК "О КОМПАНИИ" (BENTO GRID)
   ========================================= */

.about-modern {
    margin: 60px 0;
}

.about-modern__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.about-modern__title {
    font-size: 36px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    color: #fff; /* Если сайт светлый */
}

.about-modern__title span {
    color: #C3272E; /* Фирменный красный Viper */
}

.about-modern__logo img {
    max-height: 40px;
    width: auto;
}

/* --- Сетка --- */
.about-modern__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(140px, auto);
    gap: 20px;
}

/* --- Базовая карточка --- */
.about-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eeeeee;
}

.about-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.about-card__subtitle {
    font-size: 20px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
}

.about-card__content p {
    font-size: 16px;
    line-height: 1.6;
    color: #222;
    margin-bottom: 15px;
}

.about-card__content p:last-child {
    margin-bottom: 0;
}

/* --- Специфичные карточки --- */

/* Главный текст */
.about-card--main {
    grid-column: span 8;
    grid-row: span 2;
    background: #ffffff;
    justify-content: flex-start;
}

.about-card--main p {
    font-size: 16px;
}

/* Миссия (Акцентная темная карточка) */
.about-card--mission {
    grid-column: span 4;
    grid-row: span 2;
    background: #222222;
    color: #ffffff;
    border: none;
}

.about-card--mission .about-card__subtitle,
.about-card--mission .about-card__content p {
    color: #ffffff;
}

.about-card--mission .about-card__icon {
    margin-bottom: 20px;
}

.about-card--mission .about-card__icon svg {
    width: 40px;
    height: 40px;
    color: #C3272E;
}

/* Карточки со статистикой (Цифры) */
.about-card--stat {
    grid-column: span 3;
    align-items: center;
    text-align: center;
    background: #ffffff;
}

.stat-val {
    font-size: 38px;
    font-weight: 800;
    color: #C3272E;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: #222;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Документы */
.about-card--docs {
    grid-column: span 6;
    background: #ffffff;
}

.docs-wrapper {
    display: flex;
    gap: 15px;
}

.doc-link {
    position: relative;
    display: block;
    width: 100px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eaeaea;
}

.doc-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.doc-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(195, 39, 46, 0.8); /* Красный оверлей */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.doc-overlay svg {
    width: 30px; height: 30px;
    color: #fff;
}

.doc-link:hover img {
    transform: scale(1.1);
}

.doc-link:hover .doc-overlay {
    opacity: 1;
}

/* --- Адаптив --- */
@media (max-width: 991px) {
    .about-card--main { grid-column: span 12; }
    .about-card--mission { grid-column: span 12; }
    .about-card--stat { grid-column: span 6; }
    .about-card--docs { grid-column: span 12; }

    .header__search-block {
        display: none;
    }
    .header__request-block {
        display: none;
    }
    .header-bottom {
        display: none;
    }
    .header-top {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        margin-bottom: 0;
        padding: 0 4px;
        height: 60px;
        gap: 12px;
    }
    .site-header .header__burger.hamburger {
        display: inline-flex;
        order: 0;
    }
    .header__logo {
        order: 1;
        margin-right: auto;
    }
    .header__phone-block {
        order: 2;
        display: none;
    }
    .header__nav-menu {
        display: none;
    }
    .header-mobile-socials {
        display: inline-flex;
        order: 3;
    }
    .header__actions {
        order: 4;
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .header__login-link span {
        display: none;
    }
    .header__phone-block .phone-number {
        font-size: 16px;
    }
    header.site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        padding: 0;
        z-index: 100100;
    }
    body {
        padding-top: 60px;
    }
    .panel-adaptive {
        display: block;
        top: 60px;
        z-index: 100090;
        background: var(--bg);
    }
    .hero-viper__title {
        font-size: 28px;
    }
    .hero-viper {
        padding: 20px 0;
    }
    .index-catalog__elem:nth-child(1) .index-catalog__image {
        max-width: 40%;
    }
    .index-catalog__image {
        max-width: 40%;
    }
}

@media (max-width: 576px) {
    .about-modern__title { font-size: 28px; }
    .about-card--stat { grid-column: span 12; }
    .doc-link { width: calc(50% - 7.5px); height: 200px; } /* Сертификаты по 2 в ряд на мобилках */
}

.product-benefits-list {
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================
   ИКОНКИ В БАННЕРЕ (HERO FEATURES)
   ========================================= */
.hero-viper__features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px; /* Отступ между квадратиками */
    position: absolute;
    top: 0;
    right: 0;
    z-index: 5;
    max-width: 260px;
}
.hero-viper__features .hero-feature:nth-child(n + 9) {
    display: none;
}

.hero-feature {
    background-color: #1a1a1a; /* Цвет черных квадратиकों как на макете */
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-feature:hover {
    background-color: #222222;
    transform: translateY(-5px); /* Слегка приподнимаем при наведении */
}

.hero-feature__icon {
    width: 50px; 
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-feature__icon img {
    max-width: 35px;
    max-height: 35px;
    object-fit: contain;
}

.hero-feature__title {
    color: #ffffff;
    font-size: 11px;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* --- ТУЛТИП (Всплывающая подсказка) --- */
.hero-feature__tooltip {
    position: absolute;
    top: -15px;
    right: -15px;
    background-color: #C3272E; /* Фирменный красный Viper */
    color: #ffffff;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Пружинистая анимация */
    z-index: 10;
    box-shadow: 0 5px 15px rgba(195, 39, 46, 0.3);
    pointer-events: none;
}

/* Показываем тултип при наведении на квадрат */
.hero-feature:hover .hero-feature__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.hero-feature:hover {
    position: relative;
    z-index: 2;
}

/* Адаптив для мобильных (по 2 квадрата в ряд) */
@media (max-width: 576px) {
    .hero-feature__tooltip {
        display: none;
    }
    .hero-feature {
        width: calc(50% - 7.5px);
        height: 120px;
    }
    
    .hero-feature__tooltip {
        top: -10px;
        right: 0; /* На мобильных сдвигаем тултип, чтобы он не вылезал за экран */
    }
}

/* 33524 */

/* ===== Корзина: правки от 25.08.26 (п.8–11) ===== */

/* п.9 — «Очистить корзину» в правом верхнем углу над товарами */
.cart-title {
    justify-content: flex-end;
}
.cart-title h1 {
    margin-right: auto;
}
.cart-title__btn .js-clear-cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
}
.cart-title__btn .js-clear-cart svg path {
    stroke: #fff;
    transition: stroke .15s ease;
}
.cart-title__btn .js-clear-cart:hover {
    color: var(--main);
}
.cart-title__btn .js-clear-cart:hover svg path {
    stroke: var(--main);
}

/* п.10 — текст товара в корзине белый */
.cart-item .cart-item__title,
.cart-item .cart-item__title a,
.cart-item__price_val,
.cart-item__price_text,
.cart-total__text,
.cart-total__val {
    color: #fff;
}
.cart-item .cart-item__title a:hover {
    color: var(--main);
}

/* п.8 — «Оформить заказ» под товарами, в правом нижнем углу */
.cart-checkout-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}
.cart-checkout-row__btn {
    min-width: 240px;
    text-align: center;
}

@media (max-width: 767px) {
    .cart-checkout-row__btn {
        width: 100%;
        min-width: 0;
    }
    .cart-title {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* ===== Аккаунт в шапке ===== */
.header__account.is-logged-in {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    line-height: 1.2;
}
.header__account .header__login-link span b {
    font-weight: 700;
}
.header__logout-link {
    padding-left: 36px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, .65);
    text-decoration: none;
    transition: color .15s ease;
}
.header__logout-link:hover {
    color: var(--main);
}

/* ===== Две цены: цена клиента + розничная ===== */
.price-customer {
    display: block;
}
.price-customer__label,
.price-retail__label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    color: rgba(255, 255, 255, .6);
}
.price-customer__label {
    color: var(--main);
}
.price-customer__val {
    display: block;
    font-weight: 700;
}
.price-retail {
    display: block;
    margin-top: 6px;
}
.price-retail__val {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, .55);
    text-decoration: line-through;
}

@media (max-width: 991px) {
    .header__account.is-logged-in {
        gap: 0;
    }
    .header__logout-link {
        padding-left: 0;
    }
}

/* ===== Брендовая линия-декор ===== */

/* Декор сохраняет пропорции и начинается у верхнего края. */
footer {
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/brand-wave.png") center top / 100% auto no-repeat;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

footer > * {
    position: relative;
    z-index: 1;
}


/* ===== Поиск и ссылка «ОПТ» в шапке (п.13) ===== */

/* Поиск растянут на всё свободное место */
.header-bottom .header__search-block {
    flex: 1 1 auto;
    min-width: 200px;
    max-width: none;
    margin: 0 24px;
}

/* «ОПТ» — не кнопка, просто белая надпись */
.btn-opt {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    height: 48px;
    margin-right: 32px;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: .04em;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease;
}

.btn-opt:hover,
.btn-opt:focus {
    color: var(--main);
}

@media (max-width: 1100px) {
    .header-bottom .header__search-block {
        margin: 0 16px;
    }
    .btn-opt {
        margin-right: 20px;
        font-size: 15px;
    }
}

@media (max-width: 991px) {
    .btn-opt {
        order: 2;
        height: auto;
        margin: 0 0 0 16px;
        font-size: 14px;
    }
}

/* ===== Всплывающее окно обратного звонка (п.18) ===== */
.callback-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100200;
    width: 300px;
    max-width: calc(100vw - 32px);
    padding: 18px 20px 20px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #1f1f1f;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
    color: #fff;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .3s ease, transform .3s ease;
}

.callback-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.callback-toast__close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .6);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: color .15s ease;
}

.callback-toast__close:hover {
    color: var(--main);
}

.callback-toast__title {
    margin-bottom: 6px;
    padding-right: 20px;
    font-size: 16px;
    font-weight: 700;
}

.callback-toast__text {
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, .7);
}

.callback-toast__btn {
    display: block;
    width: 100%;
    text-align: center;
}

@media (max-width: 767px) {
    .callback-toast {
        right: 12px;
        left: 12px;
        bottom: 70px;
        width: auto;
    }
}

/* ===== Корзина: список товаров с прокруткой и способ получения ===== */
.cart-list-scroll {
    max-height: 420px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(195, 39, 46, .85) rgba(255, 255, 255, .08);
}

.cart-list-scroll::-webkit-scrollbar {
    width: 6px;
}

.cart-list-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .08);
    border-radius: 999px;
}

.cart-list-scroll::-webkit-scrollbar-thumb {
    background: rgba(195, 39, 46, .85);
    border-radius: 999px;
}

.cart-list--total {
    margin-top: 4px;
}

.pickup-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 8px;
}

.pickup-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #fff;
    font-size: 15px;
}

.pickup-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--main);
    cursor: pointer;
}

@media (max-width: 767px) {
    .cart-list-scroll {
        max-height: 60vh;
    }
}

/* Фон-стрелка не нужна в шапке внутренних страниц (напр. «Оплата и доставка») */
.hero-viper.hero-page::before {
    display: none;
}

/* Обновления шапки, главной и доставки. */
.header-bottom .btn-opt,
.header-top .header-mobile-opt {
    justify-content: center;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: rgba(180, 185, 190, .24);
    color: #fff;
    transition: background .2s ease, color .2s ease;
}
.header-bottom .btn-opt:hover,
.header-bottom .btn-opt:focus,
.header-top .header-mobile-opt:hover,
.header-top .header-mobile-opt:focus {
    background: rgba(180, 185, 190, .38);
    color: #fff;
}

.header-top .header-mobile-opt {
    display: none;
}

@media (min-width: 769px) {
    .catalog-dropdown .catalog-layout__parents { width: 26%; }
    .catalog-dropdown .catalog-layout__children { width: 74%; }
}

.index-catalog__elem.has-custom-color {
    background-color: var(--tile-bg) !important;
    color: var(--tile-fg);
}
.index-catalog__elem:nth-child(n+5):not(.has-custom-color) { background-color: #444; }
.index-catalog__elem.has-custom-color .index-catalog__title,
.index-catalog__elem.has-custom-color .index-catalog__arrow svg { color: var(--tile-fg); }
.index-catalog__elem.has-custom-color:hover { background-color: #c3272e !important; color: #fff; }
.index-catalog__elem.has-custom-color:hover .index-catalog__title,
.index-catalog__elem.has-custom-color:hover .index-catalog__arrow svg { color: #fff; }

.delivery-page .delivery-warning {
    min-height: 0;
    margin-top: 18px;
    padding: 12px 18px;
    border-radius: 10px;
}
.delivery-page .delivery-warning__icon {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
    font-size: 17px;
}
.delivery-page .delivery-warning p { margin: 0; }

@media (max-width: 767px) {
    .header-bottom .btn-opt { padding: 0 12px; min-height: 40px; margin-left: 8px; }
    .home .hero-viper__content,
    .home .hero-viper__action { min-width: 0; width: 100%; }
    .home .hero-viper__btn {
        box-sizing: border-box;
        max-width: 100%;
        height: auto;
        min-height: 48px;
        padding: 13px 20px;
        line-height: 1.3;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 991px) {
    .header-top .header-mobile-opt {
        display: inline-flex;
        order: 2;
        min-height: 44px;
        margin: 0;
        padding: 0 14px;
    }
    .mobile-catalog-wrapper .catalog-trigger-row {
        min-height: 52px;
        margin: 12px 16px;
        padding: 0 10px 0 16px;
        border-radius: 8px;
        background: var(--main);
    }
    .mobile-catalog-wrapper .catalog-trigger-row .main-catalog-link {
        flex: 1 1 auto;
        min-width: 0;
        padding: 12px 0;
        color: #fff;
        font-weight: 700;
    }
    .mobile-catalog-wrapper .catalog-trigger-row .main-catalog-link svg {
        flex: none;
    }
    .mobile-catalog-wrapper .catalog-trigger-row .catalog-main-toggle {
        flex: 0 0 42px;
        height: 44px;
    }
}
