body {
    background-color: #161414;
    font-family: Fira Sans, sans-serif;
    color: white;
    position: relative;
    margin: 10px 0px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
a {
    margin: 0px;
    padding: 0px;
    color: #788eff;
    text-decoration: none;
    color: inherit;
}
.header {
    align-items: center;
    flex-direction: column;
    padding-bottom: 20px;
    border-bottom: solid;
    border-image: linear-gradient(to right, #161414, #41881f, #161414) 1;
    z-index: 1;
}
#leaf-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none; /* не мешает кликам */
    z-index: -1;
    overflow: hidden;
}

.leaf {
    position: absolute;
    top: -100px;
    opacity: 0.8;
    animation-name: fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* Анимация падения */
@keyframes fall {
    0% {
        transform: translateX(0px) rotate(0deg);
        top: -100px;
    }
    50% {
        transform: translateX(20px) rotate(180deg);
    }
    75% {
        transform: translateX(-20px) rotate(120deg);
    }
    100% {
        transform: translateX(0px) rotate(360deg);
        top: 100vh;
    }
}
.order-preloader{
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.logo-title {
    font-weight: 800;
    font-size: 20px;
    color: #41881f;
}
.page-btn {
    display: flex;
    justify-content: center;
    border: none;
    color: white;
    text-decoration: none;
    padding: 4px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.5s;
}
.header-btn-text {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 20px;
}

.page-btn:hover {
    background-color: #41881f;
}

.page-btn.active {
    background-color: #41881f;
}
.header-menu-btn {
    gap: 20px;
    align-items: center;
}
.cart-img {
    position: fixed;
    right: 0px;
    top: 250px;
    background-color: #4a832f;
    padding: 15px;
    border-radius: 12px 0px 0px 12px;
    width: 60px;
    height: 52px;
    cursor: pointer;
    z-index: 1001;
}


.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0;
}

/* PROMO-BANNER-1 */

.promo-banner-1 {
    position: relative;
    background-image: url("/images/promo-banner1.webp"); /* путь к изображению */
    background-position-y: -120px;
    margin-top: 50px;
    background-size: cover;
    display: flex;
    align-items: flex-end;
    color: white;
    overflow: visible;
    border-radius: 12px;
}

.promo-banner {
    margin-right: 20px;
    margin-left: 20px;
}

.promo-banner .overlay {
    width: 100%;
    background: linear-gradient(
            to top,
            rgba(22, 20, 20, 1),
            rgba(22, 20, 20, 0.096)
        ),
        linear-gradient(to right, rgba(22, 20, 20, 1), rgba(22, 20, 20, 0.09));
}
.title-promo {
    font-size: 32px;
    font-weight: 600;
}
.content {
    width: auto;
    height: auto;
    display: flex;
    justify-content: space-between;
}
.promo-banner .text-content {
    padding: 20px 0px;
    margin: 0 40px;
    max-width: 436px;
}
.highlight {
    color: #41881f; /* зелёный акцент */
}
.promo-banner .btn {
    background-color: #41881f;
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s;
}

.promo-banner .btn:hover {
    background-color: #6aad39;
}

.info-about-company{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    list-style: none;
    opacity: 0.7;
    padding: 0;
}
/* Product-list */

.product-list {
    display: grid;
    /* display: none !important; */
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 40px;
}

.product-item {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #3a3a3a;
    border-radius: 12px;
    padding: 20px;
    color: white;
    overflow: visible; /* важно для вылета изображения */
    display: flex;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    height: 140px;
    transition: 0.3s ease;
    cursor: pointer;
}

.product-item:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.7);
}

.product-image {
    position: absolute;
    right: 30px;
    top: -18px;
    margin-bottom: 10px;
}

.product-text {
    max-width: 206px;
    text-align: center;
}

.product-text h3 {
    margin: 0 0 5px;
    font-size: 20px;
    font-weight: 600;
}

.product-text p {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    display: -webkit-box; /* Поддержка многострочного обрезания */
    -webkit-line-clamp: 3;
    line-clamp: 3; /* Количество строк, после которых обрезать */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Центрируем последнюю карточку */
.center-item {
    grid-column: 1 / -1; /* занимает всю строку */
    justify-self: center; /* выравнивание по центру */
    width: 100%; /* важно: фиксируем ширину */
    max-width: 450px; /* ограничим, чтобы не растягивалась */
}

/* PROMO-BANNER-2 */

.promo-banner-2 {
    position: relative;
    background-image: url("/images/pizza-2.jpeg"); /* путь к изображению */
    background-position-y: -18em;
    background-size: cover;
    display: flex;
    align-items: flex-end;
    color: white;
    overflow: visible;
    border-radius: 12px;
}
.promo-banner-2 .overlay {
    width: 100%;
    background: linear-gradient(
            to top,
            rgba(22, 20, 20, 1),
            rgba(22, 20, 20, 0.2)
        ),
        linear-gradient(to right, rgba(22, 20, 20, 1), rgba(22, 20, 20, 0.2));
}

.pizza-image {
    width: 350px; /* Уместить по ширине */
    height: auto; /* Сохраняем пропорции */
    display: block;
    margin-right: 40px;
}
.post-scriptum {
    font-size: 10px;
    font-weight: 275;
    margin: 0 40px;
    opacity: 0.5;
}

.info-about-us {
    padding: 20px 0;
    border-bottom: solid;
    border-top: solid;
    border-image: linear-gradient(to right, #161414, #41881f, #161414) 1;
    text-align: center;
    background-color: #161414;
}

.info-title {
    font-size: 20px;
    font-weight: 600;
}
.info-text {
    margin: 0 20px;
    font-size: 16px;
    font-weight: 400;
}
.map-text {
    display: flex;
    flex-direction: column;
}
.map-info {
    margin: 0 40px;
}
.map-content {
    width: 100%;
    height: 30vh;
    border-radius: 12px;
}
.footer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 40px;
}
.footer-info {
    gap: 20px;
    list-style-type: none;
    font-size: 14px;
    font-weight: 275;
}
.footer-text {
    text-align: center;
}
footer {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    margin: 0 20px;
    margin-top: auto;
}

/* КАРУСЕЛЬ */
.category-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.category-menu {
    display: flex;
    gap: 10px;
    padding: 10px 16px;
    cursor: grab;
    user-select: none;
    scroll-behavior: smooth;
    white-space: nowrap;
    overflow-x: auto;
}

.category-menu::-webkit-scrollbar {
    display: none;
}

.category-menu:active {
    cursor: grabbing;
}

.category {
    display: flex;
    /* flex: 0 0 auto; */
    padding: 8px 24px;
    background-color: #333;
    color: white;
    font-weight: 600;
    gap: 10px;
    font-size: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}
.category:hover{
    background-color: #3d6b27;
    transform: scale(1.02);
}
.category.active {
    background-color: #41881f;
}

.fade-left,
.fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.fade-left {
    left: 0;
    background: linear-gradient(to right, #161414, transparent);
}

.fade-right {
    right: 0;
    background: linear-gradient(to left, #161414, transparent);
}

.fade-left.hidden,
.fade-right.hidden {
    opacity: 0;
}
@media (hover: hover) and (pointer: fine) {
    .category-menu {
        cursor: grab;
    }

    .category-menu.dragging {
        cursor: grabbing;
        user-select: none;
    }
}
.subcategory-panel {
    padding: 0px 16px;
    width: 100%;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
    margin-bottom: 50px;
}

.subcategory-panel.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto; /* Или нужная тебе высота */
}

.subcategory-panel.closing {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    max-height: 0;
}

.subcategory-list {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.subcategory {
    padding: 8px 24px;
    background-color: #333;
    border-radius: 10px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    transition: 0.3s;
}
.subcategory:hover{
    background-color: #3d6b27;
    transform: scale(1.02);
}
.subcategory.active {
    background-color: #41881f;
}

/* PRODUCTS */

.product-catalog {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-right: 20px;
    margin-left: 20px;
}
.products-list{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}
.product-structure-main{
    display: none;
    opacity: 0.5;
    margin: 0;
}

.product img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    cursor: pointer;
}
.product {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    max-width: 250px;
    gap: 10px;
}
.product-name {
    font-weight: 275;
    font-size: 16px;
    margin: 0;
    word-break: break-all;
}
.product-top-info{
    flex-direction: column;
    gap: 4px;
}
.product-weight {
    display: none;
    background-color: #41881f;
    border-radius: 4px;
    padding: 0px 8px;
    margin: 0;
    font-weight: 400;
}
.product-weight::after {
    content: "г";
}
.product-price {
    font-size: 20px;
    height: max-content;
    font-weight: 200;
    margin: 0;

}

/* ACTION-list */

.action-title img {
    width: 40px;
    margin-bottom: 6px;
}
.action-title {
    margin-left: 10px;
    font-size: 32px;
    font-weight: 600;
}
.carousel-item {
    text-align: center;
}
.total-cost-btn .add-to-cart-button{
    font-size: 16px;
    display: flex;
}
.carousel-item > div {
    display: inline-block;
    width: 100%;
    height: 300px;
    background-color: #ddd;
    line-height: 300px;
    font-size: 2rem;
}
.offcanvas {
    background-color: #161414;
    border-radius: 12px 0 0 12px;
    max-width: 330px;
    display: flex;
    align-content: center;
    align-items: center;
}

#offcanvas-preloader {
    height: 100% !important;
    align-content: center;
}
.offcanvas-header {
    justify-content: center;
    flex-direction: column;
    width: max-content;
}

.offcanvas-body {
    color: white;
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
}
.offcanvas-body-img {
    mask-image: linear-gradient(to bottom, black 60%, transparent 96%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 96%);
    aspect-ratio: 1/1;
}
.info-title-offcanvas {
    background-color: #41881f;
    font-size: 20px;
    font-weight: 600;
    padding: 12px 36px;
    border-radius: 8px;
}
.offcanvas-porduct-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.product-structure {
    display: flex;
    padding: 10px 0 0 0;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid;
    border-bottom: 1px solid;
    border-image: linear-gradient(to right, #161414, #41881f, #161414) 1;
}

.total-cost-btn {
    display: flex;
    flex-direction: row;
    align-items: end;
    gap:10px;
    margin-bottom: 20px;
}
.total-cost-btn .custom-counter{
    min-height: 40px;
}
.cart-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top:30px;
    align-items: center;
}
.add-to-cart-btn{
    display: flex !important;
    gap: 50px;
    flex-direction: column;
}
.add-to-cart-button {
    background-color: #41881f;
    border-radius: 8px;
    border: none;
    color: white;
    font-size: 20px;
    font-weight: 700;
    padding: 8px 16px;
    margin: 0px !important;
}
.custom-counter {
    background-color: #3a3a3a;
    border-radius: 6px;
    width: auto;
    height: auto;
    gap: 20px;
    user-select: none;
}

.custom-counter.py-2 {
    padding-top: .1rem !important;
    padding-bottom: .1rem !important;
}

.custom-counter button {
    text-decoration: none;
}

.custom-counter button:focus {
    outline: none;
    box-shadow: none;
}
.total-price {
    font-size: 20px;
    font-weight: 400;
    margin: 0px !important;
}
.modal-dialog {
    max-width: 1150px;
    flex-direction: column;
    padding: 80px 40px;
}
.modal-content {
    padding: 40px;
    color: white;
    background-color: #161414;
}
.modal-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    border: none;
}
.modal-total-price {
    background-color: #41881f;
    font-weight: 600;
    font-size: 20px;
    padding: 6px 32px;
    border-radius: 8px;
    text-align: center;
}
.modal-body {
    border-top: 3px solid;
    border-bottom: 3px solid;
    border-color: #41881f;
}
.modal-body-products {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.cart-product {
    background-color: #242020;
    padding: 20px;
    display: flex;
    border-radius: 12px;
}
.cart-product-text-info{
    width: 100%;
}
.cart-product-title {
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 0px;
}
.cart-product-text {
    font-size: 16px;
    font-weight: 100;
    margin: 0;
    opacity: 0.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cart-product img {
    max-height: 130px;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    margin-right: 20px;
}
.modal-body-buyBlock {
    align-items: flex-end;
    justify-content: space-between;
}
.continue-btn {
    color: white;
    font-size: 20px;
    font-weight: 400;
    padding: 4px 12px;
    border: 2px solid;
    border-radius: 12px;
    background-color: #161414;
}
.buyBlock-right {
    text-align: right;
    flex-direction: column;
}
.buyBlock-right p{
    font-size: 20px;
    font-weight: 700;
}
.buyBlock-right button {
    background-color: #41881f;
    border-radius: 12px;
    color: white;
    font-size: 20px;
    padding: 4px 12px;
    border: none;
}
.modal-footer-recommend {
    margin-top: 10px;
}
.bird {
    position: absolute;
    z-index: 1001;
    right: 30px;
    top: 20px;
}
.modal-header-back {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 12px;
    color: white;
    background-color: #41881f;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
form input {
    flex-grow: 2;
    max-height: 40px;
    border: 1px solid;
    border-color: white;
    background-color: #161414;
    border-radius: 12px;
}
form button {
    background-color: #41881f;
    border: none;
    border-radius: 12px;
    color: white;
    padding: 12px 0px;
    font-weight: 600;
    font-size: 16px;
}
.card-img {
    width: 108px;
    height: 108px;
    object-fit: cover;
}
.modal-form {
    justify-content: space-between;
    gap: 20px;
}
.form-image {
    position: relative;
    max-width: 326px;
}
.phone-img {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 100%;
}
.glow-wrapper {
    position: relative;
    display: inline-block;
}
.glow-wrapper::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, #41881f80 0%, transparent 70%);
    z-index: 0;
    filter: blur(40px);
}
.form {
    width: 50%;
}
.district-card h4,
.district-card p {
    margin: 0;
}

.district-card{
    background-color: #242020;
    cursor: pointer;
}

.district-card.selected {
    background-color: #41881f;
    color: white;
    border-color: #2f6416;
    transition: 0.2s ease;
}

.input-group {
    position: relative;
    margin: 20px 0;
}

input {
    width: 50%;
    padding: 12px 10px 12px 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 12px !important;
    outline: none;
    color: white;
}

.label-form {
    position: absolute;
    top: 8px;
    left: 10px;
    color: #aaa;
    transition: 0.2s ease all;
    pointer-events: none;
}

.input-form:focus + .label-form,
.input-form:not(:placeholder-shown) + .label-form {
    top: -24px;
    left: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #41881f;
}

.input-form::placeholder {
    color: transparent;
}
.bird-form {
    position: absolute;
    z-index: 1001;
    right: 10px;
    top: -62px;
}
@media (max-width: 1140px) {
    /* .container {
        max-width: 944px;
    } */
    .header {
        width: 100vw;
    }
    .product-catalog {
        margin-right: 20px;
        margin-left: 20px;
    }

}
@media (max-width: 992px) {
    /* .container {
        max-width: 688px;
    } */
    .footer-info {
        font-size: 10px;
    }
    .content {
        display: block;
    }
    .product-list {
        display: flex;
        flex-direction: column;
    }
    .center-item {
        max-width: none;
    }
    .kola {
        right: 50px;
    }
    .pizza-image {
        position: absolute;
        display: none;
    }
    .promo-banner .text-content {
        max-width: none;
    }
    .promo-banner-1 {
        /* background-position-y: -150px;
        background-position-x: -24em; */
    }
    .promo-banner-2 {
        background-size: cover;
        background-position-y: 0;
    }
}
@media (max-width: 700px) {
    /* .container {
        max-width: 385px;
    } */
    .modal-content{
        padding: 20px;
    }
    .form{
        width: 100%;
    }
    .input-group{
        margin: 14px 0px;
    }
    .form-image{
        display: none;
    }
    .modal-body-buyBlock{
        flex-direction: column-reverse;
        gap: 10px;
        align-items: center;
        justify-content: center;
    }
    .modal-body{
        padding: 20px 0px;
    }
    .buyBlock-right{
        text-align: center;
    }
    .footer {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
    }
    .modal-dialog{
        padding: 80px 20px;
    }
    .footer-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
        font-size: 14px;
        gap: 10px;
        margin-top: 20px;
    }
    .product-list {
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
    .product-item {
        height: auto;
        min-width: 140px;
        flex-direction: column-reverse;
        text-align: left;

    }
    .product-text {
        max-width: none;
    }
    .kola {
        right: 0;
    }
    /* .modal-header{
        flex-direction: column;
        justify-content: center;
    } */
    .product-image {
        position: relative;
        right: 0px;
        top: 0;
        margin-bottom: 10px;
    }
    .promo-banner-1 {
        background-size: cover;
        width: auto;
        background-position-y: 0px;
        background-position-x: 4em;
    }
    .promo-banner-2 {
        width: auto;
        height: auto;
        background-position-x: 0px;
        background-position-y: 0px;
    }
    /* .info-text {
        position: relative;
        overflow: clip;
        max-height: 9em; 
        transition: max-height 1s ease;
    }
    .info-text.expanded {
        max-height: 1000px;
    }

    .info-text::after {
        position: absolute;
        right: 0px;
        bottom: 0px;
        content: '...';
        background-color: #161414;
        padding: 0px 0px;
    }
    .info-text.expanded::after {
        content: '';
    } */
}

@media (max-width: 375px) {
    /* .container {
        max-width: 285px;
    } */
    .product-item{
        max-width: none;
        width: 100%;
        max-height: 180px;
        flex-direction: row-reverse;
        gap: 10px;
    }
    .product-text{
        text-align: left;
        min-width: 55%;
    }
    .product-text h3{
        font-size: 16px;
    }
    .product-text p {
        margin: 0;
        font-size: 12px;
        line-height: 1.4;
        display: -webkit-box; /* Поддержка многострочного обрезания */
        -webkit-line-clamp: 3;
        line-clamp: 3; /* Количество строк, после которых обрезать */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .product-image{
        left: 0px;
        margin: 0;
        height: 74px;
        width: auto;
    }
    .kola{
        margin-left: 12px;
        margin-right: 12px;
    }
    .promo-banner .text-content {
        margin: 0px;
        display: flex;
        justify-content: center;
        flex-direction: column;
    }
    .buyBlock-right p{
        font-size: 16px;
    }
    .buyBlock-right button{
        font-size: 16px;
    }
    .continue-btn{
        font-size: 16px;
    }
    /* .cart-product-title{
        font-size: 16px;
    } */
    .modal-content{
        padding: 10px;
    }
    .post-scriptum {
        margin: 0 20px;
    }
    .promo-banner-1 {
        background-position-x: -3em;
    }
    .artem {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .header-menu-btn {
        flex-direction: column;
        gap: 10px;
    }
}

.swiper {
  width: 100%;
  height: 100%;
  padding-right: 0; /* Убрали лишний отступ */
  overflow: hidden !important;
  mask-image: linear-gradient(90deg, #000 80%, transparent 95)

}

.slide {
    transform: scale(0.85);
    opacity: 0.5;
    transition: transform 0.3s ease, opacity 0.3s ease !important;
    cursor: pointer;
    scroll-snap-align: start !important; /* Выравнивание при прокрутке */
    will-change: transform !important;
    flex: 0 0 80%; /* Базовый размер 80% (чтобы было видно 70% следующего) */
    min-width: 0; /* Фикс переполнения содержимого */
}


.slider-track.swiper-wrapper {
  display: flex;
  padding: 20px 10px;
  height: auto;
  overflow: visible; /* Разрешаем содержимому выходить за границы */
}

.slider-container {
    width: 100%;
    position: relative;
}

.slider-track {
  display: flex;
  padding: 40px 0;
}

@keyframes shake {
  0% { transform: translate(0, 0) rotate(0deg); }
  10% { transform: translate(-2px, 2px) rotate(-1deg); }
  20% { transform: translate(3px, -1px) rotate(1deg); }
  30% { transform: translate(-2px, 1px) rotate(0deg); }
  40% { transform: translate(2px, -2px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(1px, -1px) rotate(0.5deg); }
  70% { transform: translate(-2px, 1px) rotate(-0.5deg); }
  80% { transform: translate(1px, -2px) rotate(0.2deg); }
  90% { transform: translate(-1px, 1px) rotate(0deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.contact-img {
  transition: transform 0.2s ease;
}

.contact-img:hover {
  animation: shake 0.6s ease;
}

.contact-img {
    cursor: pointer;
    position: fixed;
    right: 0;
    bottom: 0;
    margin: 20px;
    width: 50px;
}

.product-category-icon {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 40px !important;
    height: 40px;
    z-index: 2;
    /* background: rgba(255,255,255,0.85); */
    border-radius: 50%;
    padding: 4px;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.08); */
    object-fit: contain;
}

.product-category-icon-cart{
    top: 34px;
    left: 34px;
}

.product {
    position: relative;
}


/* Стили для слайдов */
.swiper-slide {
    border-radius: 12px;
    color: white;
    width: auto !important;
    position: relative;
}

/* Стили карточки */
.card {
    background: #242020;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    color: white;
    flex-direction: row;
    padding: 20px;
    height: auto;
    width: auto !important;
    gap: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: -1;
}

.card-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 100%;
}

.price-add-to-cart {
    margin-bottom: 0px;
}

.stocks-title{
    font-size: 32px;
    font-weight: 600;
    margin-left: 20px;
    margin-bottom: 40px;
    margin-top: 40px;
}

@media (max-width: 1120px) {

}

@media (max-width: 640px) {
    .swiper-slide {
        gap: 20px;
    }
    .info-tovar-text {
        width: auto;
    }
    .total-cost-btn .custom-counter{
        gap: 4px;
    }
    .price-count-block .add-to-cart-btn{
        padding: 4px 4px;
    }
    .price-add-to-cart {
        margin-bottom: 0px;
        display: none;
    }
    .price-info {
        width: max-content;
        gap: 10px;
    }
    .info-tovar-text {
        display: flex !important;
    }
}


@media (max-width: 768px) {
    .modal-header {
        flex-direction: column;
        justify-content: center;
    }
}
.address{
    display: flex;
    justify-content: space-between;
}
.span-address{
    display: inline-block;
    text-align: right;
    margin: 10px 0;
    background: none;
    color: white;
    border-radius: 2px;
    border: none;
    padding: 4px 12px;
    transition: 0.8s;
}
.span-address:hover{
    border-radius: 6px;
    background-color: #41881f;
}
.category-icon{
    width: 30px;
    height: 30px;
}
.subcategory-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-right: 10px;
    border-radius: 4px;
}
.label-form-active{
    top: -24px;
    left: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #41881f;
}
.subcategory.active {
    background-color: #41881f;
    font-weight: bold;
}

/* Общие стили для контента */
.tovar-text {
  margin: 0;
  font-weight: 600;
  font-size: 20px;
  line-height: 100%;

}

.info-tovar-text {
    color: #a8a8a8;
    font-weight: 200;
    font-size: 16px;
    line-height: 140%;
    margin: 0px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;

}

.price-info {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 15px;
}

.price {
    font-weight: 600;
    font-size: 20px;
    margin: 0px;
    width: max-content;
}

.btn-cart {
    height: max-content;
    width: max-content;
    background-color: #41881f;
    border-radius: 12px;
    color: white;
    padding: 4px 20px;
    border: none;
    display: flex !important;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    font-size: 20px;
    text-align: center;
    flex-direction: row;
}
.btn-cart:hover {
  background-color: #6aad39;
}

.price-count-block {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    align-items: center;
}
.price-count-block .btn-cart {
    padding: 4px 25px;
    display: flex !important;
    gap: 5px;
    border-radius: 8px;
}
.price-count-block div.custom-counter {
    border-radius: 8px;
}

.info-modal {
    gap: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
.card > img:not(.info-modal){
    display: none;
}
.card .info-modal .d-flex > img:not(.price-count-block){
    display: none;
}
@media (max-width:640px) {
    .add-to-cart-button {
        margin-right: 0 !important;
        width: auto;
        height: auto;
    }
    .total-cost-btn.custom-counter {
        gap: 5px;
    }
    #product_sizesContainer {
        max-width: 310px;
    }
    .form-check-label {
        padding: 7px 45px !important;
    }

}

@media (max-width:425px) {
    .offcanvas {
        width: max-content !important;
        display: flex;
        align-items: center;
        padding: 10px;
    }
    .offcanvas-body {
        padding-top: 10px;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .add-to-cart-button {
        padding: 8px 12px;
    }
    .total-price {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width:375px) {
    .add-to-cart-button {
        padding: 4px 16px;
    }
    .offcanvas{
        max-width: 80% ;
    }
    .form-check-label {
        padding: 7px 30px !important;
    }

}

.suggestions-wrapper {
    /* display: none !important; */
    position: relative;
    margin: 0;
    padding: 0;
    vertical-align: top;
    -webkit-text-size-adjust: 100%;
    display: inline-block;
    width: 100%;
    background: #161414;
}


.suggestions-suggestions {
    background: #000000;
    color: #000000;
    border: 1px solid #999;
    -ms-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    cursor: default;
    min-width: 100%;
    position: absolute;
    z-index: 3;
    -webkit-text-size-adjust: 100%;
}
.suggestions-suggestions strong {
  font-weight: normal;
  color: #3399ff;
}
.suggestions-suggestions.suggestions-mobile {
  border-style: none;
}
.suggestions-suggestions.suggestions-mobile .suggestions-suggestion {
  border-bottom: 1px solid #ddd;
}
/**
 * Контейнер для одной подсказки
 */
.suggestions-suggestion {
  padding: 4px 4px;
  overflow: hidden;
}
.suggestions-suggestion:hover {
  background: #f7f7f7;
}
/**
 * Выбранная (активная) подсказка
 */
.suggestions-selected {
  background: #f0f0f0;
}
.suggestions-selected:hover {
  background: #f0f0f0;
}
/**
 * Информационный блок в верхней части выпадашки с подсказками
 */
.suggestions-hint {
    display: none;
}
/**
 * Дополнительный текст в подсказке, который идет второй строкой
 */
.suggestions-subtext {
  color: #777;
}
/**
 * Размещает дополнительный текст в одну строку с основным текстом подсказки
 */
.suggestions-subtext_inline {
  display: inline-block;
  min-width: 6em;
  vertical-align: bottom;
  margin: 0 0.5em 0 0;
}
/**
 * Разделитель нескольких дополнительных текстов
 */
.suggestions-subtext-delimiter {
  display: inline-block;
  width: 2px;
}
/**
 * Выделяет подсказку
 */
.suggestions-subtext_label {
  margin: 0 0 0 0.25em;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  padding: 0 3px;
  background: #41881f;
  font-size: 85%;
}
.suggestions-value[data-suggestion-status="LIQUIDATED"] {
  position: relative;
}
.suggestions-value[data-suggestion-status="LIQUIDATED"]:after {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid rgba(0, 0, 0, 0.4);
  content: "";
}


.product-addons {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
}
/* Обёртка кнопки */
.addon-btn {
  display: inline-block;
  position: relative;
  cursor: pointer;
  user-select: none;
  margin-bottom: 10px;
}

/* Скрываем нативный чекбокс */
.addon-checkbox {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

#addonsList {
    position: relative;
    width: max-content;
    height: 44px;
    padding: 0px;

}

/* Видимая кнопка */
.addon-content {
  display: block;
    padding: 7px 30px;
    background: #FFFFFF29;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
    }

/* Hover */
.addon-btn:hover .addon-content {
  background-color: #41881f;
  border-color: #41881f;
  color: white;
  box-shadow: 0 0 8px rgba(65, 136, 31, 0.5);
}

/* Focus */
.addon-checkbox:focus-visible ~ .addon-content {
  outline: 2px solid #6aad39;
  outline-offset: 4px;
}

/* Checked */
.addon-checkbox:checked ~ .addon-content {
  background-color: #41881f;
  border-color: #41881f;
}

/* Active */
/* --------------------------------------------------------------------- */


/* Контейнер, чтобы всё держать внутри */
.form-check.size-item {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

/* Скрываем стандартную точку у radio */
.form-check-input.size-radio {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin-top: 0px;
    margin-left: -50% !important;
    cursor: pointer;
}

/* Кнопка, которая выглядит как блок */
.form-check-input:focus + .form-check-label, .form-check-input:not(:placeholder-shown) + .form-check-label {
    top: 0px;
    left: 0px;
    background: #FFFFFF29;
    font-size: 16px;
    font-weight: 700;
    color: white;
    position: relative;
}
.form-check-label {
    display: block;
    padding: 7px 30px;
    font-size: 16px;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: auto;
}

/* При наведении */
.form-check-label:hover {
  background-color: #41881f;
  color: white;
}

/* При выборе */
.form-check-input:checked + .form-check-label {
  background-color: #ffe0a6;
  /* box-shadow: 0 0 0 2px #ffcc66; */
}


/* Внутренний текст-контейнер */
.size-content {
  transition: all 0.3s ease;
}


/* Hover */
.form-check:hover .form-check-label {
  background-color: #41881f;
  box-shadow: 0 0 8px rgba(65, 136, 31, 0.5);
}

/* Выбранный радио — делаем label зелёным */
.form-check-input:checked + .form-check-label {
  background-color: #41881f;
  border-color: #41881f;
}

.form-check {
    border-radius: 8px;
    background-color: #FFFFFF29;
    display: block;
    min-height: 0px;
    padding-left: 0px;
    margin-bottom: 0px;
}

#product_sizesContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    width: 100%;
    gap: 10px;
    flex-wrap: wrap;
}

.form-check-text {
    width: 100%;
}
.stocks-title{
    font-size: 32px;
    font-weight: 600;
    margin-left: 20px;
}

@media (max-width: 559px) {
    .info-about-company{
        gap: 10px;
    }
    .product {
        /* flex-direction: row; */
        /* max-width: 100%; */
        max-width: 110px;
        gap: 20px;
    }
    .product-name{
        display: -webkit-box;
        -webkit-line-clamp: 1;
        line-clamp: 1; 
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .product-category-icon {
        left: 4px;
        top: 4px;
    }
    .product-category-icon-cart{
        top: 40px;
        left: 20px;
        width: 30px;
        height: 30px;
    }
    .product > img:nth-child(2){
        width: 100%;
        /* max-width: 150px;
        max-height: 150px; */
    }
    .products-list{
        gap: 20px;
    }
    .price-count-block .btn-cart {
        padding: 8px 25px;
        display: flex !important;
        gap: 5px;
        border-radius: 8px;
    }
    .product-structure-main{
        /* display: block; */
        /* font-size: 12px;
        font-weight: 250;
        display: -webkit-box; 
        -webkit-line-clamp: 3;
        line-clamp: 3; 
        -webkit-box-orient: vertical;
        overflow: hidden; */
    }
    .tovar-text{
        font-size: 16px;
    }
    .info-tovar-text{
        font-size: 12px;
    }
    .card{
        padding: 10px;
    }
    .card-img{
        min-width: 75px !important;
        height: auto;
        margin-right: 10px;
        object-fit: cover;
    }
    .custom-counter {
        width: max-content;
        height: max-content;
        border-radius: 6px;
        padding: 0px 8px !important;
        gap: 12px;
        display: flex;
    }
    .cart-product-text{
        font-size: 12px;
        font-weight: 200;
    }
    .cart-product{
        flex-direction: row;
        gap: 10px;
    }
    .cart-product img{
        margin-right: 10px;
        max-width: 75px;
        max-height: 75px;
        aspect-ratio: 1/1;
    }
    .address{
        flex-direction: column;
    }
    .span-address{
        text-align: left;
    }
    .price{
        font-size: 12px;
    }
    .product-stocks .swiper-slide .product img{
        width: 100%;
        height: auto;
    }
    .slider2-next,
    .slider2-prev{
        top: 100px !important;
    }
    .stocks-title{
        margin-left: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 4px;
    }
}
.modal-body-form{
    border-bottom: 0px solid;   
}
.stocks-title-img{
    width: 30px;
    height: auto;
    transform: rotate(-15deg);
    margin-bottom: 4px;
}
.slider2-next,
.slider2-prev{
    color: #41881f !important;
    background-color: rgba(0, 0, 0, 0.445) !important;
    width: 60px !important;
    height: auto !important;
    border-radius: 50% !important;
    padding: 8px !important;
}
.whatsapp{
    margin-top: 10px;
}
.whatsapp p{
    margin: 0;
}
.whatsapp img{
    margin-top: 10px;
}
.swiper-container {
    position: relative !important; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: auto;
    margin: 0 20px;
}

.slider2 {
    max-width: 800px;
    overflow: hidden;
    margin-bottom: 40px;
}

.slider2-prev,
.slider2-next{
    position: relative !important;
    margin: 0 20px;
}
.product-stocks{
    margin: 0 20px;
}
.product-stocks .swiper-slide .product{
}
/* Настройки стрелок */
.slider2-prev::after,
.slider2-next::after {
    content: '' !important;
    height: 61px !important;
    min-width: 61px !important;
}
.slider2 .swiper-slide{

}
.slider2-prev,
.slider2-next{
    width: 61px !important;
    height: 61px !important;
}
.slider2-prev::after{
    background-image: url('/images/prev.svg');
}
.slider2-next::after{
    background-image: url('/images/next.svg');
}
/* Слайды */
.swiper-slide .product{
    width: 100%;
}
.stocks-icon{
    position: absolute;
    color: #41881f;
    font-size: 16px;
    font-weight: 600;
    background-color: white;
    border-radius: 4px;
    left: 12px;
    bottom: 74px;
    padding: 0 6px;
}
.cart-product-title-stocks{
    font-size: 20px;
    font-weight: 600;
}
.stocks-price{
    font-size: 16px;
    font-weight: 500;
    opacity: 0.8;
}
.stocks-if{
    font-size: 12px;
    font-weight: 275;
    opacity: 0.8;
}
@media (max-width: 559px) {
    .slider2 {
        max-width: 350px;
    }
    .product-stocks .swiper-slide .product{
        max-width: 110px;
    }

    .slider2-prev::after,
    .slider2-next::after {
        content: '' !important;
        height: 40px !important;
        min-width: 40px !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
    }
    .swiper-container{
        margin: 0;
        align-items: start;
    }
    .product-stocks{
        margin: 0 10px;
    }
    .slider2-prev,
    .slider2-next{
        padding: 0 !important;
        margin: 0 !important;
        width: 40px !important;
        height: 40px !important;
    }
    .slider2-prev{
        margin-right: 20px !important;
    }
    .slider2-next{
        margin-left: 20px !important;
    }
    .stocks-icon{
        bottom: 78px;
        left: 6px;
    }
    .title-promo{
        font-size: 20px;
    }
    .cart-product-title-stocks{
        font-size: 16px;
    }
}


@media (max-width: 376px) {
    .total-cost-btn .custom-counter{
        min-height: auto;
        height: 32px;
    }
}

.swiper3{
    width: 100%;
    height: auto;
}
.swiper-slide a{
    width: auto;
}
.swiper3 .swiper-wrapper {
    width: auto;
}
.districts-btn{
    margin-top: 10px;
    background-color: #242020;
    border: none;
    font-size: 20px;
    font-weight: 600;
}
.districts-btn:hover{
    background-color: #41881f;
}
.districts-btn.show{
    background-color: #41881f;
}
.dropdown-menu{
    background-color: #242020;
    width: 100%;
    padding: 0px;
    opacity: 0;
    display: flex !important;
    flex-direction: column; 
    transform: scaleY(1);
    pointer-events: none;
    transition: transform 0.7s, opacity 0.4s;
    gap: 4px;
}
.dropdown-item{
    color: white;
    border-radius: 4px;
    display: flex;
    flex-direction: row;
    justify-content: start;
    gap: 40px;
    font-size: 20px;
    align-items: center;
}
.dropdown-item .stocks-if{
    font-size: 16px;
    font-weight: 500;
}
.dropdown-item:hover{
    background-color: #41881f;
    color: white;
}
.dropdown-menu.show {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
}
.dropdown-header{
    color: white;
    font-size: 16px;
    opacity: 0.6;
}
.accordion{
    margin-top: 20px;
}
.accordion-button{
    box-shadow: none !important;
    color: white;
    background-color: #242020;
    border-radius: 12px !important;
}
.accordion-body{
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.accordion-button{
    font-size: 20px;
    font-weight: 500;
}
.accordion{
    --bs-accordion-active-color: white !important;
    --bs-accordion-active-bg: #41881f !important;
    --bs-accordion-btn-focus-box-shadow: none !important;
    --bs-accordion-btn-icon: url("images/angle-down.svg");
    --bs-accordion-btn-active-icon: url("images/angle-down.svg");
}
.accordion-button::after{
    content: '▼';
}
.accordion-info{
    cursor: pointer;
    display: flex;
    gap: 20px;
    background-color: #3a3a3a;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    transition: 0.5s;
    border: none;
    text-align: center;
}
.accordion-header{
    border: none !important;
}

.accordion-info.selected {
    /* Стили */
    background-color: #41881f;
    color: #ffffff;
}


.accordion-info .cart-product-title-stocks{
    margin: 0;
}
.accordion-info .stocks-price{
    margin: 0;
}
.accordion-info .stocks-if{
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}
.accordion-info:hover{
    background-color: #41881f;
    border-radius: 8px;
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.accordion-item{
    background-color: #242020 !important;
    color: white;
    border-radius: 12px !important;
    border: none !important;
}

.btn-group{
    display: none;
}
@media (max-width: 559px) {
    .accordion-info{
        width: 48%;
        gap: 0px;
        flex-direction: column;
    }
    .accordion-body{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        flex-direction: row;
    }
    .accordion-info:hover{
        transform: scale(1.05);
    }
}
@media (max-width: 376px) {
    .accordion-info{
        width: 100%;
        gap: 0px;
        flex-direction: column;
    }
}
.modal-footer-districts{
    display: none !important;
}

.btn-whatsapp{
    padding: 12px 4px !important;
}




@media (max-width: 425px) {
    .responsive-table thead {
        display: none;
    }

    .responsive-table,
    .responsive-table tbody,
    .responsive-table tr,
    .responsive-table td {
        display: block;
        width: 100%;
    }

    .responsive-table tr {
        margin-bottom: 15px;
        border: 1px solid #999;
        background-color: #2b3f6a;
    }

    .responsive-table td {
        padding: 8px;
        border: 1px solid #999;
        background-color: #1f2c48;
        color: #fff;
        position: relative;
    }

    .responsive-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: bold;
        margin-bottom: 5px;
        color: #ccc;
    }
}

.text-background{
    background-color: #161414;
    padding: 10px;
}
.text-align-center{
    text-align: center;
}

.cookie-banner {
    width: 100%;
    max-width: 400px;
    background-color: #41881F;
    color: #fff;
    padding: 15px;
    text-align: left;
    font-size: 14px;
    border-radius: 12px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.cookie-banner a {
    text-decoration: underline;
}

.cookie-banner button {
    background-color: #fff;
    border: none;
    padding: 8px 16px;
    color: #41881F;
    cursor: pointer;
    border-radius: 4px;
}

#notification-container {
    position: fixed;
    bottom: 0px;
    left: 0px;
    z-index: 1000;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    margin: 20px;
}

.notification {
    cursor: pointer;
    background-color: #41881F;
    color: white;
    padding: 16px 24px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    min-width: 250px;
    transition: 0.5s;
    margin: 0;
}
.notification p{
    margin: 0;
}
.timer-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background-color: #fff;
    animation: shrink 5s linear forwards;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.hide {
    opacity: 0;
    transform: translateX(-80px);
}

@keyframes shrink {
    from{ 
        width: 100%;
    }
    to{
        width: 0%;
    }
}

.swiper4{
}
.cookie-banner h3{
    font-size: 20px;
}
.swiper4{
    width: auto;
    max-width: max-content;
    margin: 0 auto;
}
@media (max-width:376px) {
    .cookie-banner img{
        width: 30px;
    }
    .cookie-banner h3{
        font-size: 16px;
    }
    .cookie-banner p{
        font-size: 12px;
    }
    #notification-container{
        margin: 10px;
    }
    .notification img{
        width: 30px;
    }
    .notification{
        padding: 12px;
    }
    .notification p{
        font-size: 14px;
        font-weight: 500;
    }
}

.cookie-banner {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.cookie-banner.hide {
    opacity: 0;
    transform: translateX(-120px); /* вниз при исчезновении */
}
