html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

body {
    position: relative;
    padding-top: 5px;
    min-width: 320px;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

.list-reset {
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    list-style: none;
}

.btn-reset {
    padding: 0;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

h1,
h2,
h3 {
    margin: 0;
}

p {
    margin: 0;
}

/* ==========================================================================
                                GLOBAL
========================================================================== */

.container {
    max-width: 1140px;
}

.flex {
    display: flex;
}

.wrap {
    flex-wrap: wrap;
    align-items: center;
}

.between {
    justify-content: space-between;
}

.table {
    vertical-align: middle;
}

.table-header {
    text-align: center;
    font-size: 110%;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.3rem;
}


h5 {
    font-size: 1.2rem;
}

h6 {
    font-size: 1.1rem;
}
/* Кнопка вверх страницы */
.btn-up {
    z-index: 1;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: rgba(40, 167, 69, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
    opacity: .5;
}

.btn-up svg {
    width: 24px;
    height: 24px;
    stroke: white;
    transition: transform 0.3s ease;
}

.btn-up::before {
    opacity: 1;
    pointer-events: auto;
}

.btn-up_hide {
    display: none;
}

.btn-up_hiding {
    opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
    .btn-up:hover {
        opacity: 1;
        background-color: #40cf33;
    }
}

@media (max-width: 768px) {
    .btn-up {
        right: 10px;
        bottom: 70px; /* Было 30px - теперь сверху */
    }
}

@media (max-width: 480px) {
    .feedback-form {
        right: 10px;
        bottom: 70px; /* Соответственно уменьшаем */
    }
}

/* ==========================================================================
                                HEADER
========================================================================== */
.header {
    padding: 0.5rem 0;
    border-bottom: 2px solid #e0e0e0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.navbar-evenly {
    justify-content: space-evenly;
}

.divlogo,
.header-contacts {
    max-width: 25%;
}

.header-social {
    padding: 1rem 0 0.5rem;
    border-bottom: 2px solid #28a745;
}

.header-contacts-list {
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: space-between;
    align-items: left;
    gap: 0.2rem;
}

.header-logo {
    max-height: 80px;
}

.header-contacts-list-item {
    margin-bottom: 5px;
    padding: 0px 5px;
}

/* Ссылки на телефоны и почту */
.header-tel-link,
.header-mail-link {
    position: relative;
    display: inline-block;
    padding: 3px 3px 3px 5px;
    line-height: 1rem;
    color: #4d4d4d;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.header-tel-link:hover,
.header-mail-link:hover {
    color: #28a745;
    transform: scale(1.05);
}

.operator-icon {
    max-width: 20px;
    max-height: 20px;
}

/* Telega / viber*/

.social-img {
    max-width: 20px;
    max-height: 20px;
}

/* Адаптивные стили */
@media (max-width: 1400px) {
    .header-social {
        justify-content: center;
        gap: 20px;
    }
    
    .header-contacts-list {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 992px) {
    .divlogo {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .header-social {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .header-contacts-list {
        width: 100%;
    }
    
    .header-contacts-list-item {
        justify-content: center;
    }
    
    .header-tel-link,
    .header-mail-link {
        font-size: 14px;
    }
    
    .social-img {
        width: 20px;
        height: 20px;
    }
}

/* Навигация по разделам */
.navbar {
    padding: .4rem 1rem .1rem;
    width: 100%;
    z-index: 2;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }
  
  .nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
    width: 100%;
    justify-content: space-evenly;
    align-items: center;
  }
  
  .header-nav-list-item {
    position: relative;
    padding: 0.2rem 1rem;
    font-size: 20px;
    font-weight: 600;
    color: #4d4d4d;
    text-decoration: none;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
  }
  
  /* При ширине экрана меньше 768px включается горизонтальная прокрутка */
  @media (max-width: 768px) {
    .nav-list {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 0.5rem;
    }
  }
  
  /* При ширине экрана меньше 480px меню становится вертикальным */
  @media (max-width: 480px) {
    .nav-list {
      flex-direction: column;
      overflow-x: visible;
      padding-bottom: 0;
      gap: 0.1rem;
    }
    
    .header-nav-list-item {
      width: 100%;
      text-align: center;
      padding: 0 1rem;
    }
  }

.header-nav-list-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #28a745;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.header-nav-list-item:hover {
    color: #28a745;
}

.header-nav-list-item:hover::after {
    width: 100%;
}

/* Кнопка обратной связи ПЕРСПЕКТИВА*/

.header-nav-btn {
    position: relative;
    padding-left: 5px;
    padding-right: 5px;
    color: #4d4d4d;
    font-size: 20px;
    font-weight: 600;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.header-nav-btn::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #28a745;
    transition: width 0.3s ease, left 0.3s ease;
}

.header-nav-btn:hover {
    color: #28a745;
}

.header-nav-btn:hover::after {
    width: 100%;
    left: 0;
}

/* Стили для бургера */
.contacts-burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 11;
}

.contacts-burger img {
    width: 40px;
    height: 40px;
}

/* Стили для иконок */
.phone-icon {
    opacity: 1;
}

.close-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    opacity: 0;
    z-index: 12;
    transition: opacity 0.3s ease;
}

.contacts-burger.active .phone-icon {
    opacity: 0;
}

.contacts-burger.active .close-icon {
    opacity: 1;
}

/* Затемнение фона при открытом меню */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9;
}

.overlay.active {
    display: block;
}

/* Стили для выезжающего меню */
.header-contacts-lists-wrapper {
    display: flex;
    gap: 30px;
}

@media (max-width: 769px) {
    .header-social {
        padding-bottom: 0;
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 769px) {
    .contacts-burger {
        display: block;
    }

    .header-contacts-lists-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 80px 20px 20px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
        transition: right 0.3s ease;
        z-index: 10;
        overflow-y: auto;
        transform: translateX(0);
    }

    .header-contacts-lists-wrapper.active {
        right: 0;
        transform: translateX(0);
    }
}

@media (max-width: 320px) {
    .header-contacts-lists-wrapper {
        width: 100%;
        right: -100%;
    }
    
    .header-contacts-lists-wrapper.active {
        right: 0;
    }
}


/* ==========================================================================
                                MAIN
========================================================================== */

/* Хиро секция */
.hero {
    position: relative;
    z-index: 1;
    margin-bottom: 45px;
}

.hero:before {
    content: '';
    position: absolute;
    z-index: -1;
    background-image: url(../img/lema-hero-bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

@media (max-width: 769px) {
    .hero:before {
        background-image: url(../img/lema-hero-bg-small.jpg);
    }
    }

.hero-header {
    padding: 35px 0px;
}

.hero-title {
    max-width: 60%;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-descr {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Анимированная кнопка на готовые решения */

.animated-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    background-color: rgb(40, 167, 69, 0.5);
    border: 2px solid #28a745;
    border-radius: 30px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: pulse 3s infinite;
}


.animated-button:hover {
    background-color: #40cf33;
    color: #ffffff;
    border-color: #40cf33;
}


@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/*abou system ESS*/
.about {
    text-align: justify;
    margin-bottom: 45px;
}

.content-header-h2,
.content-header-h3 {
    text-align: center;
    margin-bottom: 20px;
}

.content-header-h2 {
    font-size: 2.5rem;
}

.content-header-h3 {
    font-size: 1.8rem;
}

.content-header-h4 {
    text-align: left;
    font-size: 1.5rem;
    color: #2e7d32;
    padding: 15px 0;
}

.about-advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.adv-card {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.adv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.adv-card p {
    font-size: 1rem;
    line-height: 1.5;
}

.adv-card h3 {
    color: #28a745;
}

/* ============================ СЕКЦИЯ КАТЕГОРИИ============================ */
.categories {
    padding-bottom: 60px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-content {
    flex-grow: 1;
    padding: 25px;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.category-description {
    color: #666;
    line-height: 1.6;
}

.category-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: #28a745;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-button:hover {
    background-color: #218838;
    transform: translateX(5px);
}

.category-button svg {
    transition: transform 0.3s ease;
}

.category-button:hover svg {
    transform: translateX(5px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .categories {
        padding: 40px 0;
    }

    .category-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .category-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .categories {
        padding: 30px 0;
    }

    .category-content {
        padding: 20px;
    }

    .category-button {
        width: 100%;
        justify-content: center;
    }
}
/* =====================PRODUCT ITEM ===================== */
.product-cards {
    margin: 45px 0;
}

.short-descr {
    text-align: center;
    font-weight: 600;
    margin-bottom: 25px;
}

.product-item-img1 {
    background-image: url(../img/BluePulseSeriesKAC125D-BC233DE.png);
}

.product-item-img2 {
    background-image: url(../img/cfe-5100s.png);
}

.product-item-img3 {
    background-image: url(../img/ensmart-power-smart-ess-1000.png);
}

.product-item-img4 {
    background-image: url(../img/HBS372-1.png);
}

.product-item-img5 {
    background-image: url(../img/bseries\ 1275\ kva\ 1000V.png);
}

.product-item-img6 {
    background-image: url(../img/dualbseries2550kva.png);
}

.product-item-img7 {
    background-image: url(../img/CON20-1.png);
}

.product-item-img8 {
    background-image: url(../img/BluePulseSeriesKAC50DP-BC100DE.png);
}

/* Сетка */
.text-center ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Карточки */
.product-item {
    position: relative;
    display: flex;
    margin: 15px;
    padding: 10px;
    width: 100%;
    max-width: 300px;
    height: 450px;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.product-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.product-item-img {
    flex: 1;
    height: 200px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.product-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    transition: height 0.3s ease;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.product-item:hover .product-buttons {
    height: 100%;
}

.button {
    text-decoration: none;
    color: #28a745;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 20px;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: 0.3s ease, border 0.3s ease;
}

.button:hover {
    background: #28a746a1;
    color: #fff;
    border: 2px solid #fff;;
}

/* Названия карточек */
.product-title {
    padding: 15px;
    font-size: 1.25rem;
    font-weight: bold;
    color: #4d4d4d;
    transition: color 0.3s ease;
}

.product-title a {
    text-decoration: none;
    color: inherit;
}

.product-title:hover a {
    color: #28a745;
}

/* Адаптивность */
@media (min-width: 1200px) {
    .col-xxl-4 {
        flex: 0 0 calc(33.333% - 30px);
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .col-lg-4 {
        flex: 0 0 calc(33.333% - 30px);
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .col-md-12 {
        flex: 0 0 calc(50% - 30px);
    }
}

@media (max-width: 767.98px) {
    .col-12 {
        flex: 0 0 calc(100% - 30px);
    }
}

.table-overflow {
    overflow: auto;
}

/* =====================ABOUT US ===================== */
.about-us {
    position: relative;
    z-index: 1;
    box-shadow: 0 -8px 16px rgba(0, 0, 0, 0.5), 0 8px 16px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease
}

.about-us ul, .about-us p {
    margin-bottom: 20px;
}

.about-us p {
    font-size: 1rem;
    font-weight: 600;
}

.about-us p:last-child {
    padding-bottom: 25px;
    margin-bottom: 0px;
}

.about-us h2 {
    padding-top: 25px;
}

.about-us:before {
    content: '';
    position: absolute;
    z-index: -1;
    background-image: url(../img/bg2.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

/* Блок перехода к портфолио */

.portfolio-content {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 25px;
    text-align: center;
}

.portfolio-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 2rem 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-color);
}

.portfolio-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 2rem 0;
    color: var(--text-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-button-div {
    padding: 0 25px 25px;
    margin-top: auto;
}

.portfolio-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(45deg, #a0f1ab, #2d7a48, #2d5a3f);
    background-size: 200% 200%;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: gradientAnimation 3s ease infinite;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.portfolio-button:hover {
    background: #28a745;
    color: white;
    transform: translateX(5px);
    animation: none;
}

.portfolio-button .arrow-icon {
    width: 18px;
    height: 18px;
    margin-left: 8px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: transform 0.3s ease;
}

.portfolio-button:hover .arrow-icon {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .portfolio-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
}

/* ==========================================================================
                                CONTENT PAGES
========================================================================== */


.product-info {
    padding: 2rem 1rem;
}

.content-img-70 {
    max-width: 70%;
    margin: auto 15% 25px;
}

.content-img-50 {
    max-width: 50%;
    float: right;
    margin: 0 7px 7px 7px;
}

.content-img-40 {
    max-width: 40%;
    float: right;
    margin: 0 7px 7px 7px;
}

.tableimg {
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
}

.text-align-center {
    text-align: center;
}

.product-name {
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.product-sys-name {
    margin: 0 0 25px;
    text-align: center;
}

.product-descr-header {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: #28a745;
    text-shadow: 1px 1px 2px rgba(40, 167, 69, 0.3);
}

.product-descr-text {
    margin-bottom: 1rem;
    color: #555;
}

.accordion {
    margin-bottom: 25px;
}

.img-fluid {
    margin-bottom: 15px;
}

i {
    font-size: 1.3rem;
    color: rgb(2, 170, 2);
}

.notes-text {
    font-size: 0.9rem;
    color: #777;
    padding-left: 5px;
}

.accordion-button {
    background-color: rgb(40, 167, 69, 0.05);
}

.accordion-button:not(.collapsed) {
    background-color: rgb(40, 167, 69, 0.2);
}

.accordion-button:hover {
    background-color: rgb(40, 167, 69, 0.2);
}

.carousel-caption {
    text-align: left;
    color: black;

}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    opacity: 1;
    transition: all 0.3s ease-in-out;
    position: relative;
    background: linear-gradient(45deg, #79f58a, #2d7a48, #2d5a3f);
    background-size: 200% 200%;
    transition: background 0.3s ease;
    animation: gradientAnimation 3s ease infinite;
}

.carousel-control-prev-icon::after,
.carousel-control-next-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
}

.carousel-control-next-icon::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

@media (hover: hover) and (pointer: fine) {
    .carousel-control-prev:hover .carousel-control-prev-icon,
    .carousel-control-next:hover .carousel-control-next-icon {
        opacity: 1;
        background-color: #40cf33;
        transform: scale(1.1);
    }
}

.carousel-indicators [data-bs-target] {
    background-color: black;
}

.w-100 {
    max-height: 600px;
}

.carousel {
    margin-bottom: 25px;
}

@media (min-width: 1200px) {
    .col-xxl-4 {
        flex: 0 0 calc(33.333% - 30px);
        margin: 0 auto;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .col-lg-4 {
        flex: 0 0 calc(33.333% - 30px);
        margin: 0 auto;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .col-md-12 {
        flex: 0 0 calc(50% - 30px);
        margin: 0 auto;
    }
}

@media (max-width: 767.98px) {
    .col-12 {
        flex: 0 0 calc(100% - 30px);
        margin: 0 auto;
    }
    
    .product-item {
        margin: 15px auto;
    }
}

/* ==========================================================================
                                FOOTER
========================================================================== */

.footer {
    background: linear-gradient(180deg, #4d4d4d 0%, #0a0a0a 100%);
    color: #fff;
    padding: 60px 0 20px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.footer-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    max-width: 140px;
    height: auto;
}

.footer-description {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 80%;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.social-icon {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

.footer-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: #28a745;
}

.footer-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-list a,
.footer-list span {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-list a:hover {
    color: #28a745;
    transform: translateX(5px);
}

.contact-icon {
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.copyright {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #28a745;
}

@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-description {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .footer-description {
        font-size: 0.9rem;
    }

    .footer-title {
        font-size: 1rem;
    }

    .footer-list a,
    .footer-list span {
        font-size: 0.9rem;
    }
}

/*======================= CONTACTS ======================= */

/* Стили для страницы контактов */
.contacts {
    padding: 30px 0;
    background-color: #ffffff;
}

.content-header-h1 {
    text-align: center;
    margin-bottom: 25px;
    font-weight: 600;
}

.contact-section {
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, 
        rgba(40, 167, 69, 0.02) 0%,
        rgba(255, 255, 255, 1) 50%,
        rgba(40, 167, 69, 0.02) 100%
    );
    border: 1px solid #eee;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.02),
        0 1px 3px rgba(0, 0, 0, 0.03);
}

.contact-section:hover {
    border-color: #28a745;
    background: linear-gradient(135deg, 
        rgba(40, 167, 69, 0.04) 0%,
        rgba(255, 255, 255, 1) 50%,
        rgba(40, 167, 69, 0.04) 100%
    );
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.03),
        0 2px 4px rgba(0, 0, 0, 0.04);
}

.contact-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.contact-icon {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-details {
    flex: 1;
}

.contact-phones {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-phones a,
.contact-item a {
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
    line-height: 1.5;
}

.contact-phones a:hover,
.contact-item a:hover {
    color: #28a745;
}

.contact-map {
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Адаптивные стили */
@media (max-width: 1200px) {
    .contact-content {
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-section {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .contacts {
        padding: 40px 0;
    }

    .content-header-h1 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .contact-section h2 {
        font-size: 1.5rem;
    }

    .contact-map {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .contact-section {
        padding: 20px;
        margin-bottom: 30px;
    }

    .contact-item {
        padding: 10px;
    }
}

/* Дополнительные стили для улучшения доступности */
@media (hover: hover) {
    .contact-item:hover {
        background-color: #f8f9fa;
    }
}

/* Стили для фокуса */
.contact-phones a:focus,
.contact-item a:focus {
    outline: 2px solid #28a745;
    outline-offset: 2px;
}

/* Анимация для карты */
.contact-map {
    position: relative;
}

.contact-map::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
    pointer-events: none;
}

/*======================= FORM ======================= */

.feedback-form-wrapper {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.feedback-button {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    border-radius: 0 5px 5px 0;
    transition: background-color 0.3s;
    opacity: 0.6;
}

.feedback-button:hover {
    background: #40cf33;
    opacity: 1;
}

.feedback-form {
    position: fixed;
    right: -400px;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    background: white;
    padding: 20px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    border-radius: 10px 0 0 10px;
}

.feedback-form.active {
    right: 0;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-form {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.submit-button {
    width: 100%;
    padding: 10px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background: #40cf33;
}

.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-group textarea:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

/* Увеличим ширину формы для лучшего отображения */
.feedback-form {
    width: 380px;
}

/* Стилизация скроллбара для текстового поля */
.form-group textarea {
    scrollbar-width: thin; /* для Firefox */
    scrollbar-color: #28a745 #f0f0f0; /* для Firefox */
}

/* Стили для Webkit браузеров (Chrome, Safari, новый Edge) */
.form-group textarea::-webkit-scrollbar {
    width: 8px;
}

.form-group textarea::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.form-group textarea::-webkit-scrollbar-thumb {
    background-color: #28a745;
    border-radius: 4px;
    border: 2px solid #f0f0f0;
}

.form-group textarea::-webkit-scrollbar-thumb:hover {
    background-color: #40cf33;
}

@media (max-width: 768px) {
    .feedback-form-wrapper {
        right: 10px;
        left: auto;
        top: auto;
        bottom: 10px;
        transform: none;
    }

    .feedback-button {
        writing-mode: horizontal-tb;
        transform: none;
        width: 50px;
        height: 50px;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        background-color: rgba(40, 167, 69, 0.9);
        opacity: .5;
        transition: all 0.3s ease-in-out;
    }

    .feedback-button:hover {
        opacity: 1;
        background-color: #40cf33;
    }

    .feedback-button span {
        display: none;
    }

    .feedback-button::before {
        content: '';
        width: 24px;
        height: 24px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H5.2L4 17.2V4h16v12zM7 9h2v2H7zm4 0h2v2h-2zm4 0h2v2h-2z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }

    .feedback-form {
        position: fixed;
        right: -100%;
        top: 5%;
        bottom: 90px;
        transform: none;
        width: calc(100% - 40px);
        max-width: 340px;
        max-height: 90vh;
        margin: 0 20px;
        border-radius: 10px;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .feedback-form.active {
        right: 0;
        top: auto;
        bottom: 70px;
    }

    .feedback-form::-webkit-scrollbar {
        width: 6px;
    }

    .feedback-form::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .feedback-form::-webkit-scrollbar-thumb {
        background: #28a745;
        border-radius: 3px;
    }

    .feedback-form::-webkit-scrollbar-thumb:hover {
        background: #40cf33;
    }
}

    .form-header {
        position: relative;
        padding-right: 30px;
    }

    .close-form {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #666;
        padding: 0;
        z-index: 1;
    }

    .close-form:hover {
        color: #28a745;
    }


@media (max-width: 480px) {
    .feedback-button::before {
        width: 20px;
        height: 20px;
    }

    .feedback-form {
        bottom: 70px;
        width: calc(100% - 20px);
        margin: 0 10px;
        max-height: 90vh;
    }

    .close-form {
        width: 20px;
        height: 20px;
        font-size: 20px;
    }
}

/*======================= GALLERY ======================= */
 /* Галерея */
 .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
}
.gallery-item {
    overflow: hidden;
    border-radius: 8px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-section {
    padding: 25px 0;
    background-color: var(--light-bg);
}

.gallery-header {
    text-align: center;
    margin-bottom: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    position: relative;
    margin-bottom: 20px;
}

.gallery-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.gallery-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 0;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Адаптивность */
@media (max-width: 1200px) {
    .gallery-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 40px 0;
    }

    .gallery-title {
        font-size: 2rem;
    }

    .gallery-description {
        font-size: 1rem;
        padding: 0 20px;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .gallery-title {
        font-size: 1.75rem;
    }

    .gallery {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
}
  

/* ============================ ДРОПДАУН ХЕДЕР============================ */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    padding: 8px 0;
    min-width: 200px;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-item:hover {
    background-color: #c7f7cfbb;
}

@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        display: none;
        background: #f8f9fa;
        box-shadow: none;
        padding: 0;
        min-width: 100%;
    }

    .dropdown-item {
        padding: 10px 20px;
        text-align: center;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: center;
    }

    .dropdown-toggle::after {
        content: '';
        display: inline-block;
        margin-left: 8px;
        border-top: 5px solid #4d4d4d;
        border-right: 5px solid transparent;
        border-left: 5px solid transparent;
        transition: transform 0.3s ease;
    }

    .dropdown.active .dropdown-toggle::after {
        transform: rotate(180deg);
    }
}

@media (max-width: 480px) {
    .dropdown-item {
        padding: 8px 16px;
        font-size: 16px;
    }
}


/* ============================ GENERATORS СТРАНИЦА ГЕНЕРАТОРЫ ============================ */
.product-item-500kvavolvo{
    background-image: url(../img/generatorsimg/500kVa-Volvo/500kVa-Volvo.jpg);
}

.product-item-350kvavolvo{
    background-image: url(../img/generatorsimg/350kVa-Volvo/350kVa-Volvo.jpg);
}

.product-item-275kvavolvo{
    background-image: url(../img/generatorsimg/275kVa-Volvo/275kVa-Volvo.jpg);
}

.product-item-200kvavolvo{
    background-image: url(../img/generatorsimg/200kVa-Volvo/200kVa-Volvo.jpg);
}

.product-item-150kvavolvo {
    background-image: url(../img/generatorsimg/150kVa-Volvo/150kVa-Volvo.jpg);
}

.product-item-150ratedkvavolvo {
    background-image: url(../img/generatorsimg/150kVa-Volvo-rated/150kVa-Volvo-rated.jpg);
}

.product-item-100kvavolvo {
    background-image: url(../img/generatorsimg/100kVa-Volvo/100kVa-Volvo.jpg);
}

.product-item-138ratedkvavolvo {
    background-image: url(../img/generatorsimg/150kVa-Volvo-rated/150kVa-Volvo-rated.jpg)
}

.product-item-85kvavolvo {
    background-image: url(../img/generatorsimg/85kVa-Volvo/85kVa-Volvo.jpg);
}

.product-item-A-P660S {
    background-image: url(../img/generatorsimg/Perkins-A-P660S/perkins-A-P660S.jpg);
}

.product-item-A-P100HS {
    background-image: url(../img/generatorsimg/Perkins-A-P100HS/A-P100HS.jpg);
}

.product-item-A-P550S {
    background-image: url(../img/generatorsimg/Perkins-A-P550S/A-P550S.jpg);
}

.product-item-A-P500 {
    background-image: url(../img/generatorsimg/Perkins-A-P500/A-P500.jpg);
}

.product-item-A-P440 {
    background-image: url(../img/generatorsimg/Perkins-A-P440/A-P440.jpg);
}

.product-item-A-P165H {
    background-image: url(../img/generatorsimg/Perkins-A-P165H/A-P165H.jpg);
}

.product-item-A-P275 {
    background-image: url(../img/generatorsimg/Perkins-A-P275/A-P275.jpg);
}

.product-item-A-P250 {
    background-image: url(../img/generatorsimg/Perkins-A-P250/A-P250.jpg);
}

.product-item-A-P220 {
    background-image: url(../img/generatorsimg/Perkins-A-P220/A-P220.jpg);
}

.product-item-A-P198 {
    background-image: url(../img/generatorsimg/Perkins-A-P198/A-P198.jpg);
}

.product-item-A-P17 {
    background-image: url(../img/generatorsimg/Perkins-A-P17/A-P17.jpg);
}

.product-item-A-P10 {
    background-image: url(../img/generatorsimg/Perkins-A-P10/A-P10.jpg);
}

.product-item-A-P71 {
    background-image: url(../img/generatorsimg/Perkins-A-P71/A-P71.jpg);
}

.product-item-A-P150 {
    background-image: url(../img/generatorsimg/Perkins-A-P150/A-P150.jpg);
}

.product-item-A-P165 {
    background-image: url(../img/generatorsimg/Perkins-A-P165/A-P165.jpg);
}

.product-item-A-P88 {
    background-image: url(../img/generatorsimg/Perkins-A-P88/A-P88.jpg);
}

.product-item-A-P14 {
    background-image: url(../img/generatorsimg/Perkins-A-P14/A-P14.jpg);
}

.product-item-A-P22 {
    background-image: url(../img/generatorsimg/Perkins-A-P22/A-P22.jpg);
}

.certificate-section {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    padding: 1rem 0;
}

.certificate-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 300px;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #4CAF50;
    border: none;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #45a049;
    transform: translateY(-1px);
}

.download-icon {
    width: 20px;
    height: 20px;
    color: currentColor;
}

@media (max-width: 768px) {
    .certificate-section {
        min-height: auto;
        padding: 3rem 0;
    }
    
    .certificate-container {
        max-width: 90%;
    }
}

.table-50na50 td {
    width: 50%;
}


.generators-page-carousel-image-container {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
}

.generators-page-carousel-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-content-wrapper {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
}

.product-carousel {
    flex: 0 0 50%;
    width: 100%;
}

.product-info-table {
    flex: 0 0 45%;
    margin-top: 0;
    align-self: center;
}

@media (max-width: 768px) {
    .product-content-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .product-carousel {
        flex: 1;
        width: 100%;
    }
    
    .product-info-table {
        flex: 1;
        width: 100%;
        margin-top: 2rem;
    }
}

/* ============================ GENERATORS FILTERS ФИЛЬТРЫ ============================ */
.filters-section {
    margin-top: 20px;
    position: relative;
}

.filters-toggle {
    width: 100%;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filters-toggle:hover {
    background: #f8f9fa;
}

.filters-toggle span {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

.filters-toggle-icon {
    transition: transform 0.3s ease;
}

.filters-toggle.active .filters-toggle-icon {
    transform: rotate(180deg);
}

.col-md-6 {
    position: relative;
}

.filters-wrapper {
    display: none;
    position: absolute;
    z-index: 1000;
    background-color: #fff;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
    width: calc(100% - 24px);
    left: 12px;
    right: 12px;
}

.filters-wrapper.active {
    display: block;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 220px;
    overflow-y: auto;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 3px;
    transition: background-color 0.2s ease;
    font-size: 0.95rem;
    color: #333;
}

.checkbox-label:hover {
    background-color: #f8f9fa;
}

.checkbox-label.select-all {
    border-bottom: 1px solid #eee;
    margin-bottom: 4px;
    padding-bottom: 8px;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    width: 16px;
    height: 16px;
    border: 1px solid #ddd;
    border-radius: 3px;
    accent-color: #28a745;
}

.filter-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    text-align: right;
}

.apply-filter {
    padding: 6px 16px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
}

.apply-filter:hover {
    background-color: #218838;
}

.checkbox-group::-webkit-scrollbar {
    width: 6px;
}

.checkbox-group::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.checkbox-group::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.checkbox-group::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

@media (max-width: 768px) {
    .filters-wrapper {
        position: static;
        width: 100%;
        left: 0;
        right: 0;
        margin-top: -1px;
        border-top: none;
        border-radius: 0 0 4px 4px;
    }
}