/* ==========================================================================
   HIKVISION KZ — modern interface layer
   Подключается ПОСЛЕДНИМ (header.twig). Структуру, тексты и палитру не меняет:
   только анимации, глубина, скругления, состояния hover/focus.
   Палитра сайта: красный #d42f37, тёмно-синий футер, белый/светло-серый фон.
   ========================================================================== */

:root {
    --hk-red: #d42f37;
    --hk-red-dark: #b3242c;
    --hk-red-soft: rgba(212, 47, 55, .10);
    --hk-red-glow: rgba(212, 47, 55, .35);
    --hk-ink: #1e293b;
    --hk-line: #e8ecf2;
    --hk-ease: cubic-bezier(.22, .8, .24, 1);
    --hk-spring: cubic-bezier(.34, 1.56, .64, 1);
    --hk-shadow-1: 0 2px 8px rgba(30, 41, 59, .06);
    --hk-shadow-2: 0 10px 30px -8px rgba(30, 41, 59, .18);
    --hk-shadow-3: 0 24px 50px -14px rgba(30, 41, 59, .28);
    --hk-radius: 16px;
}

/* ---------- База ---------- */
html { -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
::selection { background: var(--hk-red); color: #fff; }
:focus-visible { outline: 2px solid var(--hk-red); outline-offset: 3px; border-radius: 6px; }
a, button, .btn, input, select, textarea { -webkit-tap-highlight-color: transparent; }

/* мягкое появление страницы (без fill-mode — слой не остаётся) */
@keyframes hkPage { from { opacity: 0; } to { opacity: 1; } }
body { animation: hkPage .55s ease-out; }

/* тонкий скроллбар */
@supports (scrollbar-width: thin) { html { scrollbar-width: thin; scrollbar-color: #c9cfd9 transparent; } }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c9cfd9; border-radius: 10px; border: 2px solid #fff; }
::-webkit-scrollbar-thumb:hover { background: var(--hk-red); }

/* ---------- Индикатор прокрутки ---------- */
#hk-progress {
    position: fixed; left: 0; top: 0; height: 3px; width: 100%;
    transform-origin: 0 50%; transform: scaleX(0);
    background: linear-gradient(90deg, var(--hk-red), #ff6b72);
    box-shadow: 0 0 10px var(--hk-red-glow);
    z-index: 10000; pointer-events: none; will-change: transform;
}

/* ---------- Верхний красный баннер (B2B) ---------- */
.wrapper > div[style*="d42f37"] { position: relative; overflow: hidden; }
.wrapper > div[style*="d42f37"]::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent);
    transform: skewX(-20deg); pointer-events: none;
    animation: hkSheen 6.5s ease-in-out 1.2s infinite;
}
@keyframes hkSheen { 0% { left: -40%; } 38%, 100% { left: 130%; } }
.wrapper > div[style*="d42f37"] a {
    transition: background .3s var(--hk-ease), transform .3s var(--hk-ease), box-shadow .3s !important;
}
.wrapper > div[style*="d42f37"] a:hover {
    background: #fff !important; color: var(--hk-red) !important;
    transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
}

/* ---------- Шапка ---------- */
#top { background: #fff; }
header.scroll-fix { position: relative; z-index: 50; }
.fixBox { transition: box-shadow .35s var(--hk-ease), background .35s; }
@keyframes hkDrop { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }
.fixBox.scroll-fixed {
    background: rgba(255, 255, 255, .86) !important;
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 8px 28px -10px rgba(30, 41, 59, .25);
    animation: hkDrop .45s var(--hk-ease);
}
#logo img { transition: transform .4s var(--hk-spring), filter .3s; }
#logo a:hover img { transform: scale(1.05); filter: drop-shadow(0 6px 10px var(--hk-red-glow)); }

/* поиск */
#search-by-category .search-container {
    border-radius: 12px; transition: box-shadow .3s var(--hk-ease), transform .3s var(--hk-ease);
}
#search-by-category .search-container:focus-within {
    box-shadow: 0 0 0 4px var(--hk-red-soft), 0 12px 28px -10px var(--hk-red-glow);
}
#text-search { transition: background .3s, padding .3s; }
#btn-search-category { transition: background .3s, transform .3s var(--hk-spring) !important; }
#btn-search-category:hover { background: var(--hk-red-dark) !important; }
#btn-search-category:active { transform: scale(.94); }

/* «Стать партнером» — пилюля с бликом (span остаётся inline, геометрия шапки не меняется) */
.col-cart a[href="/partner"] span {
    position: relative; top: 0;
    background-image: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%) !important;
    background-repeat: no-repeat !important; background-size: 250% 100% !important; background-position: 130% 0 !important;
    transition: top .3s var(--hk-ease), box-shadow .3s, background-color .3s, background-position .8s var(--hk-ease);
    box-shadow: 0 6px 16px -6px var(--hk-red-glow);
}
.col-cart a[href="/partner"]:hover span {
    top: -2px; background-color: var(--hk-red-dark) !important; background-position: -30% 0 !important;
    box-shadow: 0 14px 26px -8px var(--hk-red-glow);
}
.col-cart a[href="/partner"]:active span { top: 0; }

/* кнопка «Каталог» и меню */
.vertical-menu .pt-menu-bar { transition: background .3s, box-shadow .3s, transform .3s var(--hk-spring); border-radius: 10px; }
.vertical-menu:hover .pt-menu-bar { box-shadow: 0 12px 24px -10px var(--hk-red-glow); }
.vertical-menu .pt-menu-bar:active { transform: scale(.98); }
@keyframes hkMenuIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.vertical-menu .ul-top-items { border-radius: 0 0 14px 14px; box-shadow: var(--hk-shadow-3); overflow: hidden; }
.vertical-menu .ul-top-items { animation: hkMenuIn .3s var(--hk-ease); }
.vertical-menu .li-top-item .a-top-link { transition: background .25s, padding-left .3s var(--hk-ease), color .25s !important; }
.vertical-menu .li-top-item:hover > .a-top-link { padding-left: 1rem !important; background: var(--hk-red-soft) !important; color: var(--hk-red) !important; }
.vertical-menu .li-top-item .sub-menu-container,
.vertical-menu .li-top-item .mega-menu-container { border-radius: 0 14px 14px 0; box-shadow: var(--hk-shadow-3); }

/* горизонтальные пункты — подчёркивание «растёт» из центра */
.horizontal-menu .li-top-item .a-top-link {
    background-image: linear-gradient(var(--hk-red), var(--hk-red));
    background-repeat: no-repeat; background-position: 50% 100%; background-size: 0 2px;
    transition: background-size .35s var(--hk-ease), color .25s !important;
}
.horizontal-menu .li-top-item:hover .a-top-link,
.horizontal-menu .li-top-item.active .a-top-link { background-size: 100% 2px; color: var(--hk-red) !important; }

/* телефон */
.header-phone a { transition: transform .3s var(--hk-ease), color .3s; display: inline-block; }
.header-phone a:hover { transform: translateY(-2px); color: var(--hk-red); }
.header-phone img, .header-phone svg { transition: transform .5s var(--hk-spring); }
.header-phone a:hover img, .header-phone a:hover svg { animation: hkRing .8s ease; }
@keyframes hkRing { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(5deg); } }

/* ---------- Слайдер ---------- */
.tmarket-slider { border-radius: 24px; overflow: hidden; box-shadow: var(--hk-shadow-3); isolation: isolate; }
.tmarket-slider .nivo-main-image,
.tmarket-slider .nivo-slice img { transform-origin: 60% 50%; }
.nivo-directionNav a {
    position: absolute; top: 50% !important; margin: 0 !important; padding: 0;
    width: 50px !important; height: 50px !important; line-height: 0 !important; border-radius: 50% !important;
    overflow: hidden; font-size: 0 !important;
    background: rgba(255, 255, 255, .16) !important; border: 1px solid rgba(255, 255, 255, .35) !important;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transform: translateY(-50%) scale(1);
    transition: opacity .3s, visibility .3s, transform .3s var(--hk-ease), background .3s, border-color .3s !important;
}
.nivo-directionNav a::before {
    content: "" !important; position: absolute; inset: 0; margin: auto !important; width: 11px; height: 11px;
    font-size: 0 !important; border-top: 2.5px solid #fff; border-right: 2.5px solid #fff;
}
.nivo-directionNav .nivo-prevNav { left: 18px !important; }
.nivo-directionNav .nivo-nextNav { right: 18px !important; }
.nivo-directionNav .nivo-prevNav::before { transform: translateX(2px) rotate(-135deg); }
.nivo-directionNav .nivo-nextNav::before { transform: translateX(-2px) rotate(45deg); }
.nivo-directionNav a:hover { background: var(--hk-red) !important; border-color: var(--hk-red) !important; transform: translateY(-50%) scale(1.08); }
.nivo-controlNav { z-index: 6; }
.nivo-controlNav a { transition: width .4s var(--hk-ease), background .3s, transform .3s var(--hk-spring) !important; }
.nivo-controlNav a:hover { transform: scale(1.3); }

/* ---------- Заголовки секций ---------- */
.section-header { position: relative; }
.section-subtitle { display: inline-block; letter-spacing: .14em; }
.section-line { transform-origin: 50% 50%; transition: transform .9s var(--hk-ease) .2s; }
.hk-js .section-header:not(.hk-in) .section-line { transform: scaleX(0); }
.section-title { transition: letter-spacing .6s var(--hk-ease); }
.hk-js .section-header:not(.hk-in) .section-title { letter-spacing: .06em; }

/* ---------- Карточки (общая «подсветка за курсором») ---------- */
.category-card, .product-card, .banner-center-item {
    --mx: 50%; --my: 50%; position: relative; isolation: isolate;
}
.category-card::after, .product-card::after, .banner-center-item::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .16), transparent 45%);
    opacity: 0; transition: opacity .35s;
}
.product-card::after { background: radial-gradient(360px circle at var(--mx) var(--my), var(--hk-red-soft), transparent 55%); }
.category-card:hover::after, .product-card:hover::after, .banner-center-item:hover::after { opacity: 1; }

/* категории */
.category-card { border-radius: 20px; transition: transform .5s var(--hk-ease), box-shadow .5s var(--hk-ease); will-change: transform; }
.category-card:hover { box-shadow: 0 28px 50px -18px rgba(30, 41, 59, .5); }
.category-card .category-image img { transition: transform 1.1s var(--hk-ease), filter .5s; }
.category-card:hover .category-image img { transform: scale(1.09); }
.category-card .category-icon { transition: transform .5s var(--hk-spring), box-shadow .4s, background .3s; box-shadow: 0 10px 20px -8px var(--hk-red-glow); }
.category-card:hover .category-icon { transform: translateY(-6px) rotate(-6deg) scale(1.06); }
.category-card .category-content h3, .category-card .category-content h4 { transition: transform .45s var(--hk-ease); }
.category-card:hover .category-content h3, .category-card:hover .category-content h4 { transform: translateY(-4px); }
.category-card .category-content .btn { transition: opacity .4s, transform .45s var(--hk-spring), background .3s, color .3s !important; }

/* товарные карточки */
.product-card {
    border-radius: var(--hk-radius); border: 1px solid transparent; overflow: hidden;
    transition: transform .45s var(--hk-ease), box-shadow .45s var(--hk-ease), border-color .3s;
}
.product-card::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 4;
    background: linear-gradient(90deg, var(--hk-red), #ff6b72);
    transform: scaleX(0); transform-origin: 0 50%; transition: transform .55s var(--hk-ease);
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--hk-shadow-3); border-color: var(--hk-red-soft); }
.product-card:hover::before { transform: scaleX(1); }
.product-card .product-image img { transition: transform .8s var(--hk-ease), filter .4s; }
.product-card:hover .product-image img { transform: scale(1.1) translateY(-3px); filter: drop-shadow(0 14px 14px rgba(30, 41, 59, .18)); }
.product-card .product-title a { transition: color .25s; }
.product-card:hover .product-title a { color: var(--hk-red); }
.product-card .btn, .product-card a.btn { transition: transform .4s var(--hk-spring), background .3s, box-shadow .3s !important; }
.product-card:hover .btn { transform: translateX(4px); box-shadow: 0 10px 20px -8px var(--hk-red-glow); }
.product-card .btn:hover { background: var(--hk-red-dark) !important; transform: translateX(4px) scale(1.06); }
.product-card .btn i, .product-card .btn svg { transition: transform .35s var(--hk-spring); }
.product-card:hover .btn i { transform: translateX(3px); }

/* порядок появления «лесенкой» */
.row > [class*="col-"]:nth-child(2) > .animate-on-scroll { transition-delay: .08s !important; }
.row > [class*="col-"]:nth-child(3) > .animate-on-scroll { transition-delay: .16s !important; }
.row > [class*="col-"]:nth-child(4) > .animate-on-scroll { transition-delay: .24s !important; }
.row > [class*="col-"]:nth-child(5) > .animate-on-scroll { transition-delay: .32s !important; }
.animate-on-scroll { transition: opacity .7s var(--hk-ease), transform .7s var(--hk-ease), box-shadow .45s var(--hk-ease), border-color .3s; }
.animate-on-scroll.animated { animation-duration: .8s; }
.product-card.animated:hover, .category-card.animated:hover { transition-delay: 0s !important; }

/* ---------- Баннеры «Подбор» и «Партнёрство» ---------- */
.banner-center-item { border-radius: 22px; overflow: hidden; transition: transform .5s var(--hk-ease), box-shadow .5s var(--hk-ease); }
.banner-center-item:hover { transform: translateY(-6px); box-shadow: var(--hk-shadow-3); }
.banner-center-item::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: 3; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
    transform: skewX(-20deg); transition: left 1s var(--hk-ease);
}
.banner-center-item:hover::before { left: 140%; }
.btn-tp { position: relative; transition: transform .35s var(--hk-spring), box-shadow .3s, background .3s !important; }
.btn-tp:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 26px -8px var(--hk-red-glow); background: var(--hk-red-dark) !important; }
.btn-tp:active { transform: scale(.97); }
.btn-tp::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    box-shadow: 0 0 0 0 var(--hk-red-glow); animation: hkPulse 2.6s ease-out infinite;
}
@keyframes hkPulse { 0% { box-shadow: 0 0 0 0 rgba(212, 47, 55, .35); } 70%, 100% { box-shadow: 0 0 0 12px rgba(212, 47, 55, 0); } }

/* ---------- Логотипы брендов ---------- */
.brand-logo { padding: 2.5rem 0; }
.brand-logo .swiper-slide img {
    transition: opacity .4s, transform .5s var(--hk-spring), filter .4s;
}
.brand-logo .swiper-slide:hover img { opacity: 1; transform: scale(1.12); filter: drop-shadow(0 8px 10px rgba(30, 41, 59, .18)); }

/* ---------- Подписка и футер ---------- */
.footer-newsletter { position: relative; overflow: hidden; }
.footer-newsletter::before, .footer-newsletter::after {
    content: ""; position: absolute; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 65%);
}
.footer-newsletter::before { width: 380px; height: 380px; left: -120px; top: -200px; animation: hkFloat 9s ease-in-out infinite; }
.footer-newsletter::after { width: 300px; height: 300px; right: -80px; bottom: -190px; animation: hkFloat 11s ease-in-out infinite reverse; }
@keyframes hkFloat { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, 18px); } }
.footer-newsletter > .container, .footer-newsletter > .row { position: relative; z-index: 1; }
.newsletter-container .newsletter_email { transition: box-shadow .3s, background .3s; }
.newsletter-container .newsletter_email:focus { box-shadow: 0 0 0 4px rgba(255, 255, 255, .35); outline: 0; }
.newsletter-container .btn { transition: background .3s, transform .3s var(--hk-spring), letter-spacing .3s !important; }
.newsletter-container .btn:hover { background: #0f172a !important; letter-spacing: .04em; }

.footer-main { position: relative; overflow: hidden; }
.footer-main::before {
    content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -240px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, var(--hk-red-soft), transparent 65%); animation: hkFloat 14s ease-in-out infinite;
}
.footer-main > .container, .footer-main > .row, .footer-main .row { position: relative; z-index: 1; }
.footer-title { position: relative; }
.footer-title::after {
    content: ""; display: block; width: 26px; height: 2px; margin-top: .7rem; background: var(--hk-red); border-radius: 2px;
    transition: width .5s var(--hk-ease);
}
.footer-widget:hover .footer-title::after, .footer-title:hover::after { width: 54px; }
.footer-links a { transition: color .25s, transform .3s var(--hk-ease), padding-left .3s var(--hk-ease); }
.footer-links a:hover { color: #fff !important; transform: translateX(6px); }
.footer-contact li { transition: transform .3s var(--hk-ease), color .25s; }
.footer-contact li:hover { transform: translateX(5px); color: #fff; }
.footer-contact li i, .footer-contact li svg { transition: transform .4s var(--hk-spring), color .3s; }
.footer-contact li:hover i, .footer-contact li:hover svg { transform: scale(1.25) rotate(-8deg); color: var(--hk-red); }
.footer-bottom .text-md-end img { transition: transform .4s var(--hk-spring), opacity .3s; opacity: .85; }
.footer-bottom .text-md-end img:hover { transform: scale(1.06); opacity: 1; }

/* ---------- Плавающие кнопки ---------- */
#btnwhatsapp a { position: relative !important; transition: transform .35s var(--hk-spring), box-shadow .3s !important; }
#btnwhatsapp a:hover { transform: scale(1.12) rotate(-6deg); box-shadow: 0 14px 30px rgba(1, 230, 117, .5) !important; }
#btnwhatsapp a::after {
    content: ""; position: absolute; inset: -2px; border-radius: 50%; pointer-events: none;
    animation: hkWa 2.4s ease-out infinite;
}
@keyframes hkWa { 0% { box-shadow: 0 0 0 0 rgba(1, 230, 117, .55); } 75%, 100% { box-shadow: 0 0 0 20px rgba(1, 230, 117, 0); } }
#back-top { border-radius: 50%; transition: transform .35s var(--hk-spring), background .3s, box-shadow .3s !important; box-shadow: 0 10px 22px -8px var(--hk-red-glow); }
#back-top:hover { transform: translateY(-5px); }
#back-top i { transition: transform .3s; }
#back-top:hover i { animation: hkUp .8s ease infinite; }
@keyframes hkUp { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* ---------- Внутренние страницы ---------- */
/* хлебные крошки */
.breadcrumb { background: transparent; padding-left: 0; }
.breadcrumb a { position: relative; transition: color .25s; }
.breadcrumb li a:hover { color: var(--hk-red); }
.breadcrumb li:last-child a { font-weight: 600; }

/* заголовок страницы с акцентом */
body:not(.common-home) #content > h1, body:not(.common-home) h1.title { position: relative; }
body:not(.common-home) #content > h1, body:not(.common-home) h1.title { padding-bottom: 1.1rem; margin-bottom: 2rem; }
body:not(.common-home) #content > h1::after, body:not(.common-home) h1.title::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; border-radius: 4px;
    background: linear-gradient(90deg, var(--hk-red), #ff6b72); transform-origin: 0 50%;
    animation: hkGrow .9s var(--hk-ease) .2s backwards;
}
@keyframes hkGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* меню категорий слева */
.category-menu { border-radius: 16px; overflow: hidden; box-shadow: var(--hk-shadow-1); border: 1px solid var(--hk-line); background: #fff; }
.category-menu .list-group-item, .category-menu__link { transition: background .25s, padding-left .3s var(--hk-ease), color .25s, box-shadow .3s; }
.category-menu .list-group-item:hover, .category-menu__link:hover {
    background: var(--hk-red-soft) !important; color: var(--hk-red) !important; padding-left: 26px !important;
    box-shadow: inset 3px 0 0 var(--hk-red);
}

/* пагинация */
.pagination > li > a, .pagination > li > span { border-radius: 10px !important; margin: 0 3px; border: 1px solid var(--hk-line); transition: transform .25s var(--hk-spring), background .25s, color .25s, box-shadow .25s; }
.pagination > li > a:hover { transform: translateY(-3px); background: var(--hk-red); color: #fff; border-color: var(--hk-red); box-shadow: 0 10px 18px -8px var(--hk-red-glow); }
.pagination > .active > span, .pagination > .active > a { background: var(--hk-red) !important; border-color: var(--hk-red) !important; color: #fff !important; box-shadow: 0 10px 18px -8px var(--hk-red-glow); }

/* страница товара */
.product-details { position: relative; }
.product-image-details .product-zoom-image {
    border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--hk-line); box-shadow: var(--hk-shadow-1);
    transition: box-shadow .45s var(--hk-ease), transform .45s var(--hk-ease);
}
.product-image-details .product-zoom-image:hover { box-shadow: var(--hk-shadow-2); transform: translateY(-3px); }
.product-image-details .product-zoom-image img { transition: transform .9s var(--hk-ease); }
.product-image-details .product-zoom-image:hover img { transform: scale(1.07); }
.additional-images .swiper-slide img, .additional-images img {
    border-radius: 12px; border: 2px solid transparent; transition: border-color .25s, transform .35s var(--hk-spring), box-shadow .3s;
}
.additional-images img:hover { border-color: var(--hk-red); transform: translateY(-3px); box-shadow: 0 10px 18px -10px var(--hk-red-glow); }
.product-info-details .inner { border-radius: 20px !important; box-shadow: var(--hk-shadow-1); transition: box-shadow .4s var(--hk-ease); }
.product-info-details .inner:hover { box-shadow: var(--hk-shadow-2); }
.product-info-details h1 { letter-spacing: -.01em; }
.btn-red, .oprovy-price {
    position: relative; overflow: hidden; isolation: isolate;
    transition: transform .35s var(--hk-spring), box-shadow .3s, background .3s !important;
}
.btn-red { box-shadow: 0 10px 22px -10px var(--hk-red-glow); }
.btn-red::after, .oprovy-price::after {
    content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%);
    background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, .4) 50%, transparent 75%);
    transition: transform .8s var(--hk-ease);
}
.btn-red:hover, .oprovy-price:hover { transform: translateY(-3px); box-shadow: 0 16px 28px -10px var(--hk-red-glow); }
.btn-red:hover::after, .oprovy-price:hover::after { transform: translateX(120%); }
.btn-red:active, .oprovy-price:active { transform: scale(.97); }
.oprovy-price:hover { background: #e3e8ef; }

/* вкладки */
.nav-tabs { border-bottom: 1px solid var(--hk-line); }
.nav-tabs > li > a, .nav-tabs .nav-link {
    position: relative; border-radius: 12px 12px 0 0 !important; transition: color .25s, background .25s, transform .3s var(--hk-ease);
}
.nav-tabs > li > a:hover, .nav-tabs .nav-link:hover { background: var(--hk-red-soft) !important; color: var(--hk-red) !important; transform: translateY(-2px); }
@keyframes hkTab { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.tab-content > .tab-pane.active { animation: hkTab .5s var(--hk-ease); }
.table-striped > tbody > tr { transition: background .2s, transform .25s var(--hk-ease); }
.table-striped > tbody > tr:hover { background: var(--hk-red-soft) !important; transform: translateX(4px); }

/* формы */
.form-control, select.form-control, textarea.form-control, .contact-form-wrapper input, .contact-form-wrapper textarea, .contact-form-wrapper select {
    border-radius: 12px; transition: border-color .25s, box-shadow .3s var(--hk-ease), background .25s, transform .25s;
}
.form-control:focus, .contact-form-wrapper input:focus, .contact-form-wrapper textarea:focus {
    border-color: var(--hk-red) !important; box-shadow: 0 0 0 4px var(--hk-red-soft) !important; outline: 0;
}
.btn { border-radius: 12px; }
.btn:active { transform: scale(.97); }

/* контакты */
.contact-item { border-radius: 16px; transition: transform .4s var(--hk-ease), box-shadow .4s var(--hk-ease), background .3s; }
.contact-item:hover { transform: translateX(8px); box-shadow: var(--hk-shadow-2); }
.contact-item .contact-icon { transition: transform .5s var(--hk-spring), box-shadow .3s; }
.contact-item:hover .contact-icon { transform: rotate(-8deg) scale(1.12); box-shadow: 0 10px 20px -8px var(--hk-red-glow); }
.contact-social a { transition: transform .4s var(--hk-spring), background .3s, color .3s, box-shadow .3s; }
.contact-social a:hover { transform: translateY(-5px) scale(1.1); box-shadow: 0 12px 20px -8px var(--hk-red-glow); }
.contact-form-wrapper { border-radius: 22px; box-shadow: var(--hk-shadow-2); transition: box-shadow .4s var(--hk-ease); }
.contact-form-wrapper:hover { box-shadow: var(--hk-shadow-3); }

/* модальные окна и алерты */
.modal.fade .modal-dialog { transition: transform .45s var(--hk-spring), opacity .3s; transform: translateY(24px) scale(.94); }
.modal.show .modal-dialog { transform: none; }
.modal-content { border-radius: 22px; border: 0; box-shadow: var(--hk-shadow-3); overflow: hidden; }
.modal-backdrop.show { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@keyframes hkAlert { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.alert { border-radius: 14px; animation: hkAlert .4s var(--hk-ease); }
.dropdown-menu { border-radius: 14px; box-shadow: var(--hk-shadow-3); border: 1px solid var(--hk-line); }

/* картинки категорий/блога/статей */
.img-thumbnail { border-radius: 14px; transition: transform .5s var(--hk-ease), box-shadow .4s; }
.img-thumbnail:hover { transform: scale(1.03); box-shadow: var(--hk-shadow-2); }
.cat_description, .product-description, .tab-pane { line-height: 1.75; }

/* ---------- Появление блоков при прокрутке (включает hk-modern.js) ---------- */
.hk-js .hk-reveal {
    opacity: 0; transform: translateY(26px);
    transition: opacity .8s var(--hk-ease), transform .8s var(--hk-ease);
    transition-delay: var(--hk-d, 0s);
}
.hk-js .hk-reveal.hk-in { opacity: 1; transform: none; }

/* ripple на кнопках */
.hk-ripple-host { position: relative; overflow: hidden; }
.hk-ripple {
    position: absolute; border-radius: 50%; pointer-events: none; background: rgba(255, 255, 255, .45);
    transform: scale(0); animation: hkRipple .65s ease-out forwards;
}
@keyframes hkRipple { to { transform: scale(2.6); opacity: 0; } }

/* ==========================================================================
   v2: верхний баннер B2B, строка #top и шапка header.scroll-fix
   ========================================================================== */

/* ---------- 1. Баннер «Рады сообщить…» ---------- */
.wrapper > div[style*="d42f37"] {
    background-image:
        radial-gradient(520px 160px at 8% 0%, rgba(255, 255, 255, .20), transparent 70%),
        radial-gradient(420px 140px at 96% 100%, rgba(0, 0, 0, .18), transparent 70%),
        linear-gradient(90deg, rgba(0, 0, 0, .06), rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .10)) !important;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .18);
}
.wrapper > div[style*="d42f37"] > .container { position: relative; z-index: 1; padding-top: 6px; padding-bottom: 6px; }
.wrapper > div[style*="d42f37"] .row { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 24px; margin: 0; }
.wrapper > div[style*="d42f37"] .row::before, .wrapper > div[style*="d42f37"] .row::after { display: none; }
.wrapper > div[style*="d42f37"] .row > div { float: none; width: auto; max-width: none; }
.wrapper > div[style*="d42f37"] .row > div:first-child {
    flex: 1 1 auto; position: relative;
    padding: 13px 15px 13px 46px !important; line-height: 1.5 !important; font-size: 14px; font-weight: 500 !important; letter-spacing: 0;
    text-wrap: pretty;
}
/* «живая» точка-индикатор перед текстом */
.wrapper > div[style*="d42f37"] .row > div:first-child::before {
    content: ""; position: absolute; left: 17px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
    background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); animation: hkLive 2.2s ease-out infinite;
}
@keyframes hkLive { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .65); } 70%, 100% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); } }
.wrapper > div[style*="d42f37"] .row > div:last-child { flex: 0 0 auto; padding: 0 !important; }
.wrapper > div[style*="d42f37"] .row > div:last-child a {
    display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
    background: rgba(255, 255, 255, .16) !important; color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px !important; padding: 6px 15px 6px 17px !important; line-height: 1.4;
    font-weight: 600; font-size: 13px; letter-spacing: .02em;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    transition: background .3s var(--hk-ease), color .3s, transform .3s var(--hk-ease), box-shadow .3s, border-color .3s !important;
}
.wrapper > div[style*="d42f37"] .row > div:last-child a::after {
    content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor;
    transform: rotate(45deg); transition: transform .3s var(--hk-ease);
}
.wrapper > div[style*="d42f37"] .row > div:last-child a:hover {
    background: #fff !important; color: var(--hk-red) !important; border-color: #fff;
    transform: translateY(-2px); box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .35);
}
.wrapper > div[style*="d42f37"] .row > div:last-child a:hover::after { transform: translateX(3px) rotate(45deg); }

/* ---------- 2. Строка nav#top ---------- */
#top {
    background: linear-gradient(180deg, #fff, #f6f8fb) !important; border-bottom: 1px solid var(--hk-line) !important;
    line-height: 1 !important; position: relative;
}
#top .box-top > li { margin-right: 0 !important; }
#top .box-top-left > li.language { padding: 0 !important; margin: 0 !important; }
#top .box-top-left > li.language > a {
    position: relative; display: inline-flex !important; align-items: center; gap: 10px;
    padding: 9px 0 9px 28px !important; font-size: 12.5px !important; font-weight: 500 !important; line-height: 1.4 !important;
    color: #334155 !important; letter-spacing: .015em; cursor: default; text-decoration: none;
}
/* значок «проверено» */
#top .box-top-left > li.language > a::before {
    content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
    background: var(--hk-red); box-shadow: 0 4px 10px -3px var(--hk-red-glow);
}
#top .box-top-left > li.language > a::after {
    content: ""; position: absolute; left: 6px; top: 50%; width: 5px; height: 9px; margin-top: -6px;
    border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg);
}

/* ---------- 3. Шапка ---------- */
header.scroll-fix { background: #fff; padding: .9rem 0 1rem; box-shadow: 0 1px 0 var(--hk-line); }

/* поиск — крупнее, мягче, красная рамка загорается при фокусе */
#search-by-category .search-container #text-search {
    height: 4.8rem !important; border-radius: 14px !important; border: 2px solid rgba(212, 47, 55, .75) !important;
    padding-left: 3.2rem !important; background: #fff; font-size: 1.4rem !important;
    box-shadow: 0 8px 22px -14px rgba(30, 41, 59, .35);
    transition: border-color .3s, box-shadow .35s var(--hk-ease), background .3s !important;
}
#search-by-category .search-container #text-search:hover { border-color: rgba(212, 47, 55, .85) !important; }
#search-by-category .search-container #text-search:focus {
    border-color: var(--hk-red) !important; box-shadow: 0 0 0 4px var(--hk-red-soft), 0 14px 28px -14px var(--hk-red-glow); outline: 0;
}
#btn-search-category { border-radius: 0 12px 12px 0 !important; }

/* кнопка «Каталог» */
.vertical-menu .pt-menu-bar {
    border-radius: 14px !important; background-image: linear-gradient(135deg, rgba(255, 255, 255, 0), rgba(0, 0, 0, .12)) !important;
    box-shadow: 0 10px 22px -12px var(--hk-red-glow), inset 0 1px 0 rgba(255, 255, 255, .18);
    cursor: pointer; user-select: none;
}
.vertical-menu .pt-menu-bar:hover { box-shadow: 0 16px 28px -12px var(--hk-red-glow), inset 0 1px 0 rgba(255, 255, 255, .3); transform: translateY(-1px); }
.vertical-menu .text-vertical-bar { transition: letter-spacing .3s var(--hk-ease); }
.vertical-menu .pt-menu-bar:hover .text-vertical-bar { letter-spacing: .03em; }

/* горизонтальное меню — «таблетки» вместо голого текста */
.horizontal-menu .ul-top-items .li-top-item { margin-right: 6px !important; }
.horizontal-menu .li-top-item .a-top-link {
    padding: 1rem 1.4rem !important; border-radius: 12px; background-color: transparent !important;
    background-image: none !important;
    transition: background-color .3s var(--hk-ease), color .25s, transform .3s var(--hk-ease) !important;
}
.horizontal-menu .li-top-item:hover .a-top-link, .horizontal-menu .li-top-item.active .a-top-link {
    background-color: var(--hk-red-soft) !important; color: var(--hk-red) !important; transform: translateY(-1px);
}

/* телефон: иконка в круге + выделенный номер */
.header-phone a { display: inline-flex !important; align-items: center; gap: 12px; padding: 4px 4px 4px 4px; border-radius: 14px; }
.header-phone a:before {
    flex: 0 0 auto; box-sizing: content-box; padding: 9px; width: 28px !important; height: 28px !important;
    background-size: contain !important; background-origin: content-box; background-clip: padding-box !important;
    background-color: var(--hk-red-soft) !important; border-radius: 50%;
    transition: background-color .3s, transform .4s var(--hk-spring);
}
.header-phone a:hover:before { background-color: var(--hk-red-glow) !important; transform: rotate(-8deg) scale(1.06); }
.header-phone a > span { margin: 0 !important; display: block !important; line-height: 1.25; }
.header-phone a span > span { font-weight: 700 !important; font-size: 1.6rem !important; letter-spacing: .01em; color: var(--hk-ink) !important; }

/* «Стать партнером» — со стрелкой */
.col-cart a[href="/partner"] span {
    border-radius: 12px !important; background-image: linear-gradient(135deg, rgba(255, 255, 255, 0), rgba(0, 0, 0, .12)),
        linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%) !important;
    background-size: 100% 100%, 250% 100% !important; background-position: 0 0, 130% 0 !important;
    background-repeat: no-repeat !important; font-weight: 600; letter-spacing: .02em;
}
.col-cart a[href="/partner"]:hover span { background-position: 0 0, -30% 0 !important; }
.col-cart a[href="/partner"] span::after {
    content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 10px; vertical-align: 1px;
    border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg);
    transition: transform .3s var(--hk-ease);
}
.col-cart a[href="/partner"]:hover span::after { transform: translateX(3px) rotate(45deg); }

/* липкая версия шапки (после прокрутки) */
.fixBox.scroll-fixed { border-bottom: 1px solid rgba(232, 236, 242, .9); box-shadow: 0 14px 30px -16px rgba(30, 41, 59, .35); }

@media (max-width: 767px) {
    .wrapper > div[style*="d42f37"] .row { flex-direction: column; align-items: stretch; gap: 0; }
    .wrapper > div[style*="d42f37"] .row > div:first-child { padding: 14px 15px 10px 40px !important; font-size: 13px; line-height: 1.45 !important; }
    .wrapper > div[style*="d42f37"] .row > div:first-child::before { left: 15px; width: 9px; height: 9px; margin-top: -4px; top: 23px; }
    .wrapper > div[style*="d42f37"] .row > div:last-child { padding: 0 15px 14px !important; }
    .wrapper > div[style*="d42f37"] .row > div:last-child a { justify-content: center; width: 100%; }
    #top .box-top-left > li.language > a { font-size: 12px !important; padding: 9px 0 9px 26px !important; text-align: left; display: block !important; }
    #top .box-top-left > li.language > a::before, #top .box-top-left > li.language > a::after { margin-top: 0; top: 9px; }
    #top .box-top-left > li.language > a::after { top: 12px; }
    #search-by-category .search-container #text-search { height: 4.5rem !important; }
}

/* ==========================================================================
   v3: выпадающее меню «Каталог»
   ========================================================================== */
.vertical-menu .ul-top-items {
    margin-top: 10px !important; padding: 10px !important; width: 320px !important; max-width: calc(100vw - 30px);
    border: 1px solid var(--hk-line); border-radius: 18px !important; background: #fff !important;
    box-shadow: 0 30px 60px -18px rgba(30, 41, 59, .38), 0 6px 16px -6px rgba(30, 41, 59, .12) !important;
    overflow: visible !important;
}
/* «хвостик» панели, указывающий на кнопку */
.vertical-menu .ul-top-items::before {
    content: ""; position: absolute; top: -7px; left: 34px; width: 12px; height: 12px;
    background: #fff; border-top: 1px solid var(--hk-line); border-left: 1px solid var(--hk-line);
    transform: rotate(45deg); border-radius: 3px 0 0 0;
}

@keyframes hkItemIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.vertical-menu .ul-top-items .li-top-item {
    border: 0 !important; margin: 2px 0 !important; padding: 0 !important; background: transparent !important;
    animation: hkItemIn .42s var(--hk-ease) backwards;
}
.vertical-menu .ul-top-items .li-top-item:nth-child(1) { animation-delay: .04s; }
.vertical-menu .ul-top-items .li-top-item:nth-child(2) { animation-delay: .08s; }
.vertical-menu .ul-top-items .li-top-item:nth-child(3) { animation-delay: .12s; }
.vertical-menu .ul-top-items .li-top-item:nth-child(4) { animation-delay: .16s; }
.vertical-menu .ul-top-items .li-top-item:nth-child(5) { animation-delay: .20s; }
.vertical-menu .ul-top-items .li-top-item:nth-child(6) { animation-delay: .24s; }
.vertical-menu .ul-top-items .li-top-item:nth-child(n+7) { animation-delay: .28s; }

.vertical-menu .ul-top-items .li-top-item .a-top-link {
    position: relative; display: flex !important; align-items: center; gap: 14px; margin: 0 !important; width: auto !important;
    padding: 12px 40px 12px 16px !important; border: 0 !important; border-radius: 12px;
    background: transparent !important; color: var(--hk-ink) !important;
    font-size: 1.45rem !important; font-weight: 500 !important; line-height: 1.3 !important;
    transition: background-color .3s var(--hk-ease), color .25s, padding .35s var(--hk-ease), box-shadow .3s !important;
}
/* маркер-точка */
.vertical-menu .ul-top-items .li-top-item .a-top-link::before {
    content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%;
    background: var(--hk-red-glow); box-shadow: 0 0 0 0 var(--hk-red-glow);
    transition: transform .4s var(--hk-spring), background-color .3s, box-shadow .4s;
}
/* текст пункта: без переноса и с нормальной высотой строки */
.vertical-menu .ul-top-items .li-top-item .a-top-link > span { line-height: 1.3 !important; white-space: nowrap; }
/* стрелка справа */
.vertical-menu .ul-top-items .li-top-item .a-top-link::after {
    content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
    border-top: 2px solid var(--hk-red); border-right: 2px solid var(--hk-red);
    transform: translateX(-10px) rotate(45deg); opacity: 0;
    transition: transform .4s var(--hk-ease), opacity .3s;
}
.vertical-menu .ul-top-items .li-top-item:hover > .a-top-link,
.vertical-menu .ul-top-items .li-top-item .a-top-link:focus-visible {
    padding-left: 22px !important; color: var(--hk-red) !important;
    background-color: transparent !important;
    background-image: linear-gradient(90deg, var(--hk-red-soft), rgba(212, 47, 55, .02)) !important;
    box-shadow: inset 3px 0 0 var(--hk-red);
}
.vertical-menu .ul-top-items .li-top-item:hover > .a-top-link::before {
    background: var(--hk-red); transform: scale(1.35); box-shadow: 0 0 0 5px var(--hk-red-soft);
}
.vertical-menu .ul-top-items .li-top-item:hover > .a-top-link::after { transform: translateX(0) rotate(45deg); opacity: 1; }
.vertical-menu .ul-top-items .li-top-item:active > .a-top-link { transform: scale(.985); }

/* если у пункта есть подменю — оформляем и его */
.vertical-menu .li-top-item .sub-menu-container, .vertical-menu .li-top-item .mega-menu-container {
    border: 1px solid var(--hk-line); border-radius: 18px !important; margin-left: 12px;
}

/* ==========================================================================
   v4: секция «Популярные категории»
   ========================================================================== */
#categories.categories-section {
    position: relative; padding-bottom: 20px;
    background:
        radial-gradient(700px 320px at 8% 0%, rgba(212, 47, 55, .045), transparent 70%),
        radial-gradient(600px 300px at 96% 18%, rgba(30, 41, 59, .05), transparent 70%),
        #fff;
}
#categories .section-header { margin-bottom: 2.4rem; }

#categories .category-card {
    border-radius: 26px; height: 360px; cursor: pointer; background: #1e293b;
    box-shadow: 0 14px 34px -18px rgba(30, 41, 59, .45);
    transition: transform .55s var(--hk-ease), box-shadow .55s var(--hk-ease);
}
#categories .category-card.small { height: 210px; border-radius: 22px; }
#categories .category-card:hover { transform: translateY(-8px); box-shadow: 0 34px 60px -22px rgba(30, 41, 59, .6); }

/* фото: медленный зум, лёгкое затемнение «в синеву» */
#categories .category-image img { transform: scale(1.001); transition: transform 1.3s var(--hk-ease), filter .6s; }
#categories .category-card:hover .category-image img { transform: scale(1.1); filter: saturate(1.08) contrast(1.03); }

/* затемнение снизу + тонкая «стеклянная» внутренняя рамка */
#categories .category-overlay {
    background:
        linear-gradient(to top, rgba(15, 23, 42, .94) 0%, rgba(30, 41, 59, .62) 38%, rgba(30, 41, 59, .10) 78%, rgba(30, 41, 59, 0) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10);
    border-radius: inherit; transition: background .6s var(--hk-ease), opacity .4s;
}
#categories .category-card:hover .category-overlay {
    background:
        linear-gradient(to top, rgba(179, 36, 44, .95) 0%, rgba(212, 47, 55, .58) 40%, rgba(212, 47, 55, .08) 80%, rgba(212, 47, 55, 0) 100%);
}

/* малые карточки: затемнение сильнее — подписи читаются на светлых фото */
#categories .category-card.small .category-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, .95) 0%, rgba(30, 41, 59, .78) 48%, rgba(30, 41, 59, .30) 100%);
}
#categories .category-card.small:hover .category-overlay {
    background: linear-gradient(to top, rgba(179, 36, 44, .96) 0%, rgba(212, 47, 55, .74) 52%, rgba(212, 47, 55, .22) 100%);
}

/* контент */
#categories .category-content { padding: 28px 30px 26px; }
#categories .category-card.small .category-content { padding: 20px 22px 20px; }
#categories .category-content h3, #categories .category-content h4 { text-shadow: 0 2px 14px rgba(0, 0, 0, .35); letter-spacing: .005em; }
#categories .category-content h3 { font-size: 2.4rem; }
#categories .category-content p { text-shadow: 0 1px 8px rgba(0, 0, 0, .35); opacity: .88; margin-bottom: 14px; }
#categories .category-card.small .category-content p { margin-bottom: 10px; font-size: 1.25rem; }

/* иконка: красный «стеклянный» квадрат с кольцом */
#categories .category-icon {
    width: 56px; height: 56px; border-radius: 18px; font-size: 2rem; margin-bottom: 16px; position: relative;
    background: linear-gradient(145deg, #e0434b, #d42f37 55%, #b3242c) !important;
    box-shadow: 0 12px 24px -10px var(--hk-red-glow), inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 5px rgba(255, 255, 255, .08);
}
#categories .category-card:hover .category-icon { transform: translateY(-4px) rotate(-6deg) scale(1.06); box-shadow: 0 16px 28px -10px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .4), 0 0 0 7px rgba(255, 255, 255, .16); }

/* «Смотреть все» — таблетка со стрелкой в круге */
#categories .category-content .btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 8px 7px 16px; border-radius: 999px;
    font-size: 1.3rem; font-weight: 600; letter-spacing: .02em;
    color: #fff !important; background: rgba(255, 255, 255, .14) !important; border: 1px solid rgba(255, 255, 255, .45) !important;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    opacity: 0; transform: translateY(16px);
    transition: opacity .45s var(--hk-ease), transform .5s var(--hk-spring), background .3s, color .3s, border-color .3s !important;
}
#categories .category-content .btn i {
    display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: 0 !important;
    border-radius: 50%; background: #fff; color: var(--hk-red); font-size: 1.2rem;
    transition: transform .4s var(--hk-spring);
}
#categories .category-card:hover .category-content .btn { opacity: 1; transform: translateY(0); }
#categories .category-content .btn:hover { background: #fff !important; color: var(--hk-red) !important; border-color: #fff !important; }
#categories .category-content .btn:hover i { transform: translateX(3px); background: var(--hk-red); color: #fff; }
#categories .category-card:focus-within .category-content .btn { opacity: 1; transform: none; }

/* на сенсорных экранах кнопка видна всегда */
@media (hover: none) {
    #categories .category-content .btn { opacity: 1; transform: none; }
    #categories .category-card:hover { transform: none; }
}
@media (max-width: 991px) {
    #categories .category-card { height: 320px; }
    #categories .category-card.small { height: 230px; }
}
@media (max-width: 575px) {
    #categories .category-card { height: 290px; border-radius: 22px; }
    #categories .category-card.small { height: 210px; }
    #categories .category-content { padding: 22px 22px 20px; }
    #categories .category-content h3 { font-size: 2.1rem; }
}

/* ==========================================================================
   v5: карточки товаров («Популярные товары», каталог, поиск)
   Фото с белым фоном: никаких filter/drop-shadow на <img> (они обводят прямоугольник),
   белый фон растворяется через mix-blend-mode: multiply на мягкой подложке.
   ========================================================================== */
.products-section {
    position: relative;
    background:
        radial-gradient(700px 300px at 92% 0%, rgba(212, 47, 55, .05), transparent 70%),
        radial-gradient(700px 320px at 4% 100%, rgba(30, 41, 59, .06), transparent 70%),
        var(--light-color, #f1f5f9);
}

.product-card {
    background: #fff; border: 1px solid #edf0f5; border-radius: 22px;
    box-shadow: 0 1px 2px rgba(30, 41, 59, .04), 0 10px 26px -16px rgba(30, 41, 59, .22);
    display: flex; flex-direction: column; height: 100%;
}
.product-card:hover {
    transform: translateY(-8px) !important; border-color: rgba(212, 47, 55, .22);
    box-shadow: 0 2px 4px rgba(30, 41, 59, .04), 0 34px 54px -22px rgba(30, 41, 59, .38);
}

/* подложка под фото */
.product-card .product-image {
    height: 226px; margin: 10px 10px 0; border-radius: 16px; flex: 0 0 auto;
    background: radial-gradient(circle at 50% 46%, #ffffff 0%, #f5f7fb 62%, #eef1f7 100%);
    transition: background .5s var(--hk-ease);
}
.product-card:hover .product-image {
    background: radial-gradient(circle at 50% 46%, #ffffff 0%, #fbf3f3 60%, #f6e6e7 100%);
}
.product-card .product-image a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.product-card .product-image img {
    max-width: 88%; max-height: 190px; width: auto; height: auto; object-fit: contain;
    mix-blend-mode: multiply;          /* белый фон фото сливается с подложкой */
    filter: none !important;           /* ← убрана тень, обводившая границы фото */
    transition: transform .8s var(--hk-ease);
    will-change: transform;
}
.product-card:hover .product-image img { transform: scale(1.09) translateY(-2px); filter: none !important; }

/* текстовая часть */
.product-card .product-info { display: flex; flex-direction: column; flex: 1 1 auto; padding: 16px 20px 20px; }
.product-card .product-title {
    font-size: 15.5px; font-weight: 500; line-height: 1.4; min-height: 0; margin-bottom: 14px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.product-card .product-title a { color: var(--hk-ink); background-image: linear-gradient(var(--hk-red), var(--hk-red)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px; transition: color .25s, background-size .4s var(--hk-ease); }
.product-card:hover .product-title a { color: var(--hk-red); background-size: 100% 1px; }
.product-card .product-price { margin: auto 0 0; padding-top: 14px; border-top: 1px dashed #e3e8f0; justify-content: space-between; gap: 12px; }
.product-card .current-price { font-weight: 600; font-size: 15.5px; letter-spacing: .01em; }

/* кнопка-стрелка: без смещений от transform/left темы */
.product-card .btn, .product-card a.btn {
    position: relative !important; left: auto !important; transform: none !important; flex: 0 0 auto;
    width: 42px; height: 42px; max-width: none; padding: 0 !important; margin: 0;
    display: inline-flex !important; align-items: center; justify-content: center;
    border-radius: 14px !important; overflow: hidden;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0), rgba(0, 0, 0, .14)) !important;
    box-shadow: 0 10px 18px -10px var(--hk-red-glow) !important;
    transition: box-shadow .35s var(--hk-ease), border-radius .35s var(--hk-ease), background-color .3s !important;
}
.product-card .btn svg { width: 22px; height: 22px; transition: transform .4s var(--hk-spring); }
.product-card:hover .btn { transform: none !important; box-shadow: 0 14px 22px -10px var(--hk-red-glow) !important; border-radius: 50% !important; }
.product-card:hover .btn svg { transform: translateX(2px); }
.product-card .btn:hover { transform: none !important; background-color: var(--hk-red-dark) !important; }
.product-card .btn:hover svg { transform: translateX(4px); }

@media (max-width: 767px) {
    .product-card { border-radius: 18px; }
    .product-card .product-image { height: 170px; margin: 8px 8px 0; border-radius: 13px; }
    .product-card .product-image img { max-height: 140px; }
    .product-card .product-info { padding: 12px 12px 14px; }
    .product-card .product-title { font-size: 13px; line-height: 1.35; margin-bottom: 10px; overflow-wrap: anywhere; hyphens: auto; -webkit-line-clamp: 4; }
    .product-card .product-price { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 10px; }
    .product-card .current-price { font-size: 13px; text-align: center; }
    .product-card .btn, .product-card a.btn { width: 100%; height: 36px; border-radius: 12px !important; }
    .product-card:hover .btn { border-radius: 12px !important; }
}
@media (hover: none) { .product-card:hover { transform: none !important; } }

/* ==========================================================================
   v6: блок рассылки .footer-newsletter и футер .footer-main / .footer-bottom
   ========================================================================== */

/* ---------- Рассылка ---------- */
.footer-newsletter {
    padding: 3.4rem 0 !important;
    background-image:
        radial-gradient(rgba(255, 255, 255, .16) 1.3px, transparent 1.6px),
        linear-gradient(112deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, 0) 42%),
        linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .12));
    background-size: 24px 24px, 100% 100%, 100% 100%;
    -webkit-mask-image: none;
}
.footer-newsletter .row { align-items: center; }

/* заголовок с иконкой-конвертом */
.footer-newsletter .row > div:first-child { position: relative; padding-left: 88px !important; }
.footer-newsletter .row > div:first-child::before {
    content: "\f73d"; font-family: "bootstrap-icons"; font-size: 2.6rem; color: #fff;
    position: absolute; left: 15px; top: 50%; width: 58px; height: 58px; margin-top: -29px;
    display: flex; align-items: center; justify-content: center; border-radius: 18px;
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .42);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: 0 14px 26px -14px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .35);
    animation: hkEnv 4.5s ease-in-out infinite;
}
@keyframes hkEnv { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-5deg); } }
.newsletter-title { font-size: 2.5rem !important; font-weight: 700 !important; line-height: 1.25 !important; letter-spacing: .005em; }
.newsletter-marketing-text p { margin: 4px 0 0 !important; font-size: 1.45rem; opacity: .92; }

/* форма: стеклянная «капсула» с кнопкой внутри */
.footer-newsletter .newsletter-block .newsletter-content { float: none; margin: 0 !important; width: 100%; }
.footer-newsletter .newsletter-content .content {
    display: block; padding: 6px; border-radius: 22px;
    background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .4);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 22px 40px -22px rgba(0, 0, 0, .55);
    transition: box-shadow .35s var(--hk-ease), background .3s, border-color .3s;
}
.footer-newsletter .newsletter-content .content:focus-within {
    background: rgba(255, 255, 255, .24); border-color: rgba(255, 255, 255, .8);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, .22), 0 26px 44px -22px rgba(0, 0, 0, .6);
}
.footer-newsletter .newsletter_email {
    height: 5rem !important; border: 0 !important; border-radius: 16px !important; padding: 0 17rem 0 2.2rem !important;
    font-size: 1.45rem !important; color: var(--hk-ink) !important; background: #fff !important; box-shadow: none !important; outline: 0;
}
.footer-newsletter .newsletter_email::placeholder { color: #8a94a6 !important; }
.footer-newsletter .newsletter-content .content button.btn {
    right: 6px !important; top: 6px !important; bottom: 6px; height: auto; padding: 0 2.2rem 0 2rem !important;
    border-radius: 16px !important; background: #1e293b !important; color: #fff !important;
    line-height: 1 !important; font-size: 1.3rem !important; font-weight: 600 !important; letter-spacing: .06em;
    display: inline-flex; align-items: center; gap: 10px; overflow: hidden;
    box-shadow: 0 12px 22px -12px rgba(0, 0, 0, .7) !important;
    transition: background .3s, transform .35s var(--hk-spring), box-shadow .3s !important;
}
.footer-newsletter .newsletter-content .content button.btn::after {
    content: ""; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor;
    transform: rotate(45deg); transition: transform .35s var(--hk-ease);
}
.footer-newsletter .newsletter-content .content button.btn:hover { background: #0b1220 !important; letter-spacing: .06em; transform: translateY(-1px); }
.footer-newsletter .newsletter-content .content button.btn:hover::after { transform: translateX(4px) rotate(45deg); }
.footer-newsletter .newsletter-content .content button.btn:active { transform: scale(.97); }

/* сообщения об успехе/ошибке читаемы на красном фоне */
.newsletter-notification:empty { display: none; }
.newsletter-notification { margin-top: 12px !important; padding: 9px 16px; border-radius: 12px; font-size: 1.35rem !important; font-weight: 600; line-height: 1.35 !important; color: #fff !important; background: rgba(0, 0, 0, .25); animation: hkAlert .4s var(--hk-ease); }
.newsletter-notification.success { background: rgba(16, 150, 100, .92); color: #fff !important; }
.newsletter-notification.error { background: rgba(15, 23, 42, .78); color: #fff !important; }

/* ---------- Основная часть футера ---------- */
.footer-main {
    padding: 76px 0 54px !important;
    background:
        radial-gradient(820px 380px at 88% -8%, rgba(212, 47, 55, .17), transparent 70%),
        radial-gradient(640px 380px at -4% 108%, rgba(255, 255, 255, .05), transparent 70%);
}
/* тонкая сетка, растворяющаяся к краям */
.footer-main::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 72%);
    mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 72%);
}
.footer-brand img { max-height: 40px; width: auto; transition: transform .45s var(--hk-spring), filter .3s; }
.footer-brand:hover img { transform: scale(1.04); filter: drop-shadow(0 6px 14px var(--hk-red-glow)); }
.footer .footer-text { line-height: 1.75; font-size: 1.45rem; }

.footer-title { font-size: 1.75rem !important; letter-spacing: .02em; margin-bottom: 1.6rem !important; }

/* ссылки: стрелка красная, текст белеет и сдвигается */
.footer-links a { font-size: 1.45rem; }
.footer-links a::before { color: var(--hk-red); font-weight: 700; }
.footer-links li { margin-bottom: 1.1rem; }

/* контакты: строки с иконками в плашках */
.footer-contact li {
    gap: 12px; padding: 8px 8px 8px 0; margin: 0 0 6px !important; border-radius: 14px; font-size: 1.36rem; letter-spacing: 0; text-wrap: balance;
    transition: transform .3s var(--hk-ease), color .25s, background .3s, padding .3s var(--hk-ease);
}
.footer-contact li:hover { background: rgba(255, 255, 255, .05); padding-left: 10px; transform: none; color: #fff; }
.footer-contact li i {
    flex: 0 0 auto; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px; font-size: 1.6rem; background: rgba(212, 47, 55, .16); color: #ff6b72 !important;
    box-shadow: inset 0 0 0 1px rgba(212, 47, 55, .28);
    transition: background .3s, color .3s, transform .4s var(--hk-spring), box-shadow .3s;
}
.footer-contact li:hover i { background: var(--hk-red); color: #fff !important; transform: rotate(-8deg) scale(1.08); box-shadow: 0 10px 18px -8px var(--hk-red-glow); }

/* ---------- Нижняя полоса ---------- */
.footer-bottom { position: relative; border-top: 0 !important; padding: 26px 0 !important; background: rgba(0, 0, 0, .14); }
.footer-bottom::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22) 20%, rgba(212, 47, 55, .55) 50%, rgba(255, 255, 255, .22) 80%, transparent);
}
.footer-bottom .copyright { font-size: 1.35rem; opacity: .85; letter-spacing: .02em; }

@media (max-width: 991px) {
    .footer-newsletter { padding: 2.8rem 0 !important; }
    .newsletter-title { font-size: 2.2rem !important; }
    /* планшет: заголовок и форма друг под другом, форма на всю ширину */
    .footer-newsletter .row > div { flex: 0 0 100%; max-width: 100%; width: 100%; }
    .footer-newsletter .row > div:first-child { margin-bottom: 22px; }
}
@media (max-width: 767px) {
    .footer-newsletter .row > div:first-child { padding-left: 15px !important; padding-top: 74px; text-align: center; }
    .footer-newsletter .row > div:first-child::before { left: 50%; top: 0; margin: 0 0 0 -29px; }
    .footer-newsletter .newsletter_email { padding-right: 15rem !important; font-size: 1.35rem !important; }
    .footer-newsletter .newsletter-content .content button.btn { padding: 0 1.5rem 0 1.4rem !important; font-size: 1.15rem !important; }
    .footer-main { padding: 52px 0 34px !important; }
    .footer-title::after { margin-left: auto; margin-right: auto; }
    .footer-contact li { padding: 8px 12px; justify-content: center; text-align: center; }
    .footer-contact li:hover { padding-left: 12px; }
    .footer-contact li span { text-align: center; }
    .footer-bottom { padding: 22px 0 96px !important; }   /* место под плавающую кнопку WhatsApp */
}
@media (prefers-reduced-motion: reduce) {
    .footer-newsletter .row > div:first-child::before { animation: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 991px) {
    .product-card:hover { transform: translateY(-4px); }
    .category-card:hover .category-content h3, .category-card:hover .category-content h4 { transform: none; }
    .contact-item:hover { transform: none; }
    .nivo-directionNav a { width: 40px !important; height: 40px !important; }
    .tmarket-slider { border-radius: 16px; }
    .banner-center-item { border-radius: 16px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    header .fixBox:not(.scroll-fixed) #logo img { width: 150px !important; height: auto !important; max-width: none; }
    header .fixBox:not(.scroll-fixed) #logo img { margin-left: 4.2rem; }
}
@media (max-width: 991px) {
    /* мобильная/планшетная шапка: заметный логотип и поиск на всю ширину */
    header .fixBox:not(.scroll-fixed) #logo img { width: 132px; max-width: none; height: auto; }
    header .fixBox:not(.scroll-fixed) #logo { padding-bottom: 6px; }
    header .fixBox:not(.scroll-fixed) { width: 100% !important; }
    header .fixBox:not(.scroll-fixed) .col-search, header .fixBox:not(.scroll-fixed) #search-by-category { display: block; width: 100% !important; }
    header .search-container, header #text-search { width: 100%; }
    .header-phone a { display: inline-flex; align-items: center; gap: 6px; }
}
@media (max-width: 575px) {
    .wrapper > div[style*="d42f37"]::after { display: none; }
    .hk-js .hk-reveal { transform: translateY(16px); }
    .footer-newsletter::before, .footer-newsletter::after, .footer-main::before { animation: none; }
}

/* пользователям с «уменьшить движение» — без анимаций */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .hk-js .hk-reveal { opacity: 1 !important; transform: none !important; }
}
