﻿.category-banners {
    padding: 40px 0;
}

.category-banners-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.category-banners-head h2 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.15;
    color: #000000;
}

.category-banners-swiper {
    overflow: hidden;
    margin-right: -20px;
    padding: 0 20px 34px 0;
}

.category-banners-swiper:not(.swiper-initialized) .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.category-banners-swiper:not(.swiper-initialized) .swiper-slide {
    width: auto !important;
}

.banner-card {
    position: relative;
    display: block;
    height: 360px;
    border-radius: 24px; /* Сильное скругление */
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease;
    cursor: grab;
    pointer-events: auto;
}

.banner-card:hover {
    transform: scale(1.01);
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Заполнение всей области */
    pointer-events: none;
    user-select: none;
}

/* Затемнение в нижней части для читаемости текста */
.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 102px;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.46) 58%, rgba(0,0,0,0) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    pointer-events: auto;
}

.banner-overlay::before {
    content: "";
    position: absolute;
    inset: 18px 20px 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.banner-card:hover .banner-overlay::before,
.banner-card:focus-visible .banner-overlay::before {
    opacity: 1;
}

.banner-title {
    position: relative;
    z-index: 1;
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.banner-arrow {
    position: relative;
    z-index: 1;
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    border-top: 2px solid #FFFFFF;
    border-right: 2px solid #FFFFFF;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.banner-card:hover .banner-arrow,
.banner-card:focus-visible .banner-arrow {
    transform: translateX(3px) rotate(45deg);
}

.category-slider-pagination {
    position: static;
    margin-top: 20px;
    text-align: center;
}

.category-slider-pagination .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    background: #A8C8A0;
    opacity: 1;
}

.category-slider-pagination .swiper-pagination-bullet-active {
    background: #1E3A2B;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .category-banners-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-banners-head h2 {
        font-size: 28px;
    }

    .banner-card {
        height: 250px;
    }
}

@media (max-width: 1023px) {
    .category-banners-swiper:not(.swiper-initialized) .swiper-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .category-banners-swiper:not(.swiper-initialized) .swiper-wrapper {
        grid-template-columns: 1fr;
    }
}

/* contact-icons-unified-v2 */
.contact-card__icon,
.contact-method__icon,
.contact-channel__icon,
.contact-icon,
.contacts-page .contact-card [class*="icon"],
.contact-page .contact-card [class*="icon"],
.contacts-section .contact-card [class*="icon"],
.contact-section .contact-card [class*="icon"],
.contact-card > [class*="icon"]:first-child {
  width: 58px !important;
  min-width: 58px !important;
  height: 58px !important;
  min-height: 58px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--color-primary, var(--green-dark, #183f2c)) !important;
  border: 1px solid var(--color-primary, var(--green-dark, #183f2c)) !important;
  color: var(--color-white, #fff) !important;
  box-shadow: 0 12px 26px rgba(24, 63, 44, 0.16) !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  overflow: hidden !important;
}

.contact-card__icon svg,
.contact-method__icon svg,
.contact-channel__icon svg,
.contact-icon svg,
.contacts-page .contact-card [class*="icon"] svg,
.contact-page .contact-card [class*="icon"] svg,
.contacts-section .contact-card [class*="icon"] svg,
.contact-section .contact-card [class*="icon"] svg,
.contact-card > [class*="icon"]:first-child svg {
  width: 26px !important;
  height: 26px !important;
  color: currentColor !important;
  stroke: currentColor !important;
}

.contact-card__icon svg *:not([fill="none"]),
.contact-method__icon svg *:not([fill="none"]),
.contact-channel__icon svg *:not([fill="none"]),
.contact-icon svg *:not([fill="none"]),
.contacts-page .contact-card [class*="icon"] svg *:not([fill="none"]),
.contact-page .contact-card [class*="icon"] svg *:not([fill="none"]),
.contacts-section .contact-card [class*="icon"] svg *:not([fill="none"]),
.contact-section .contact-card [class*="icon"] svg *:not([fill="none"]),
.contact-card > [class*="icon"]:first-child svg *:not([fill="none"]) {
  fill: currentColor !important;
}

.contact-card__icon img,
.contact-method__icon img,
.contact-channel__icon img,
.contact-icon img,
.contacts-page .contact-card [class*="icon"] img,
.contact-page .contact-card [class*="icon"] img,
.contacts-section .contact-card [class*="icon"] img,
.contact-section .contact-card [class*="icon"] img,
.contact-card > [class*="icon"]:first-child img {
  width: 26px !important;
  height: 26px !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) !important;
}

/* contact-icons-unified-v3 */
.contact-card__icon,
.contact-method__icon,
.contact-channel__icon,
.contact-icon,
.contacts-page .contact-card [class*="icon"],
.contact-page .contact-card [class*="icon"],
.contacts-section .contact-card [class*="icon"],
.contact-section .contact-card [class*="icon"],
.contact-card > [class*="icon"]:first-child {
  width: 58px !important;
  min-width: 58px !important;
  height: 58px !important;
  min-height: 58px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--color-primary, var(--green-dark, #183f2c)) !important;
  border: 1px solid var(--color-primary, var(--green-dark, #183f2c)) !important;
  color: var(--color-white, #fff) !important;
  box-shadow: 0 12px 26px rgba(24, 63, 44, 0.16) !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  overflow: hidden !important;
}

.contact-card__icon svg,
.contact-method__icon svg,
.contact-channel__icon svg,
.contact-icon svg,
.contacts-page .contact-card [class*="icon"] svg,
.contact-page .contact-card [class*="icon"] svg,
.contacts-section .contact-card [class*="icon"] svg,
.contact-section .contact-card [class*="icon"] svg {
  width: 26px !important;
  height: 26px !important;
  color: currentColor !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.2 !important;
}

.contact-card__icon img,
.contact-method__icon img,
.contact-channel__icon img,
.contact-icon img,
.contacts-page .contact-card [class*="icon"] img,
.contact-page .contact-card [class*="icon"] img,
.contacts-section .contact-card [class*="icon"] img,
.contact-section .contact-card [class*="icon"] img {
  width: 27px !important;
  height: 27px !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}

.contact-card__icon::before,
.contact-method__icon::before,
.contact-channel__icon::before,
.contact-icon::before,
.contacts-page .contact-card [class*="icon"]::before,
.contact-page .contact-card [class*="icon"]::before,
.contacts-section .contact-card [class*="icon"]::before,
.contact-section .contact-card [class*="icon"]::before {
  color: currentColor !important;
}

/* contact-icons-unified-v4 */
.contact-card [class*="icon"],
.contact-card [class*="logo"],
.contacts-card [class*="icon"],
.contacts-card [class*="logo"],
.contact-method [class*="icon"],
.contact-method [class*="logo"],
.contacts-method [class*="icon"],
.contacts-method [class*="logo"],
.contacts-grid [class*="icon"],
.contacts-grid [class*="logo"],
.contacts-list [class*="icon"],
.contacts-list [class*="logo"],
.contact-links [class*="icon"],
.contact-links [class*="logo"] {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
    border-radius: 999px !important;
    display: inline-grid !important;
    place-items: center !important;
    background: #1b4330 !important;
    color: #ffffff !important;
    border: 0 !important;
    box-shadow: 0 14px 28px rgba(27, 67, 48, 0.16) !important;
    overflow: hidden !important;
}

.contact-card [class*="icon"]::before,
.contact-card [class*="icon"]::after,
.contact-card [class*="logo"]::before,
.contact-card [class*="logo"]::after,
.contacts-card [class*="icon"]::before,
.contacts-card [class*="icon"]::after,
.contacts-card [class*="logo"]::before,
.contacts-card [class*="logo"]::after,
.contact-method [class*="icon"]::before,
.contact-method [class*="icon"]::after,
.contact-method [class*="logo"]::before,
.contact-method [class*="logo"]::after,
.contacts-method [class*="icon"]::before,
.contacts-method [class*="icon"]::after,
.contacts-method [class*="logo"]::before,
.contacts-method [class*="logo"]::after {
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.contact-card [class*="icon"] svg,
.contact-card [class*="logo"] svg,
.contacts-card [class*="icon"] svg,
.contacts-card [class*="logo"] svg,
.contact-method [class*="icon"] svg,
.contact-method [class*="logo"] svg,
.contacts-method [class*="icon"] svg,
.contacts-method [class*="logo"] svg,
.contacts-grid [class*="icon"] svg,
.contacts-grid [class*="logo"] svg,
.contacts-list [class*="icon"] svg,
.contacts-list [class*="logo"] svg,
.contact-links [class*="icon"] svg,
.contact-links [class*="logo"] svg {
    width: 28px !important;
    height: 28px !important;
    color: #ffffff !important;
    stroke: currentColor !important;
}

.contact-card [class*="icon"] svg [stroke],
.contact-card [class*="logo"] svg [stroke],
.contacts-card [class*="icon"] svg [stroke],
.contacts-card [class*="logo"] svg [stroke],
.contact-method [class*="icon"] svg [stroke],
.contact-method [class*="logo"] svg [stroke],
.contacts-method [class*="icon"] svg [stroke],
.contacts-method [class*="logo"] svg [stroke],
.contacts-grid [class*="icon"] svg [stroke],
.contacts-grid [class*="logo"] svg [stroke],
.contacts-list [class*="icon"] svg [stroke],
.contacts-list [class*="logo"] svg [stroke],
.contact-links [class*="icon"] svg [stroke],
.contact-links [class*="logo"] svg [stroke] {
    stroke: currentColor !important;
}

.contact-card [class*="icon"] svg [fill]:not([fill="none"]),
.contact-card [class*="logo"] svg [fill]:not([fill="none"]),
.contacts-card [class*="icon"] svg [fill]:not([fill="none"]),
.contacts-card [class*="logo"] svg [fill]:not([fill="none"]),
.contact-method [class*="icon"] svg [fill]:not([fill="none"]),
.contact-method [class*="logo"] svg [fill]:not([fill="none"]),
.contacts-method [class*="icon"] svg [fill]:not([fill="none"]),
.contacts-method [class*="logo"] svg [fill]:not([fill="none"]),
.contacts-grid [class*="icon"] svg [fill]:not([fill="none"]),
.contacts-grid [class*="logo"] svg [fill]:not([fill="none"]),
.contacts-list [class*="icon"] svg [fill]:not([fill="none"]),
.contacts-list [class*="logo"] svg [fill]:not([fill="none"]),
.contact-links [class*="icon"] svg [fill]:not([fill="none"]),
.contact-links [class*="logo"] svg [fill]:not([fill="none"]) {
    fill: currentColor !important;
}

.contact-card [class*="icon"] img,
.contact-card [class*="logo"] img,
.contacts-card [class*="icon"] img,
.contacts-card [class*="logo"] img,
.contact-method [class*="icon"] img,
.contact-method [class*="logo"] img,
.contacts-method [class*="icon"] img,
.contacts-method [class*="logo"] img,
.contacts-grid [class*="icon"] img,
.contacts-grid [class*="logo"] img,
.contacts-list [class*="icon"] img,
.contacts-list [class*="logo"] img,
.contact-links [class*="icon"] img,
.contact-links [class*="logo"] img {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain !important;
    filter: brightness(0) invert(1) !important;
    mix-blend-mode: normal !important;
}
/* end-contact-icons-unified-v4 */

