.cards-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

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

.rev-container {
    display: flex; /* Включаем Flexbox */
    justify-content: center; /* Центрируем карточки горизонтально */
}

.card,
.rev {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 160px;
    padding-top: 10px;
    object-fit: cover;
}

.rev {
    margin-bottom: 20px;
    width: 850px;
}

.rev img {
    width: 500px;
    padding-top: 20px;
    object-fit: cover;
}

.card-content,
.rev-content {
    padding: 15px;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #333;
}

.card-description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

#promo-prod-1 {
    border-radius: 10px;
}

/* Мобильная версия со слайдером */
@media (max-width: 768px) {
    .cards-wrapper {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding: 10px 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    .cards-wrapper::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }

    .card {
        flex: 0 0 280px;
        scroll-snap-align: start;
    }
    .rev {
        width: 100%;
    }
    /* Индикаторы прокрутки */
    .scroll-info {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 15px;
    }

    .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ddd;
    }

    .dot.active {
        background: #666;
    }
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.gallery-wrapper {
    display: flex;
    gap: 20px;
    position: relative;
}

.gallery-item {
    flex: 1;

    border-radius: 8px;
    overflow: hidden;
}

.gallery-item img {
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s;
}

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

@media (max-width: 768px) {
    .slider-container {
        overflow: hidden;
        position: relative;
    }

    .gallery-wrapper {
        display: flex;
        gap: 0;
        transition: transform 0.3s ease;
    }

    .gallery-item {
        flex: 0 0 100%;
    }

    .dots-container {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 15px;
    }

    .dot-g {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ddd;
        transition: background-color 0.3s;
        cursor: pointer;
    }

    .dot-g.active {
        background: #666;
    }
}

@media (min-width: 769px) {
    .dots-container {
        display: none;
    }
}

.expert-opinion {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    margin: 20px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #f9f9f9;
}

.expert-photo {
    flex: 0 0 150px;
    width: 150px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}

.expert-text {
    flex: 1;
}

ul {
    margin: 10px 0;
    padding-left: 20px;
}

ul li {
    font-size: 16px;
    color: #444;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .expert-opinion {
        flex-direction: column;
        align-items: center;
    }

    .expert-photo {
        margin: 0 0 15px 0;
    }

    ul {
        padding-left: 0;
    }

    ul li {
        text-align: left;
    }
}

.tittle-chart-container {
    text-align: center;
    font-weight: bold;
    color: rgb(255, 255, 255);
    background-color: rgb(0, 166, 83);
    padding: 2px;
    margin-bottom: 10px;
}

.chart-container {
    width: 90%;
    height: 400px;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    border-bottom: 2px solid rgb(47, 145, 244);
    border-left: 2px solid rgb(47, 145, 244);
    padding: 20px;
}
.column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90px;
}
.bar-red {
    width: 50px;
    background-color: #800202;
    margin-bottom: 10px;
    transition: height 0.5s ease;
}

.bar-purple {
    width: 100px;
    background-color: #3d0064;
    margin-bottom: 10px;
    transition: height 0.5s ease;
}

.bar-f {
    width: 150px;
    background-color: #7d036a;
    margin-bottom: 10px;
    transition: height 0.5s ease;
}

.bar-m {
    width: 150px;
    background-color: #035995;
    margin-bottom: 10px;
    transition: height 0.5s ease;
}

.top-label,
.bottom-label {
    text-align: center;
    margin: 5px 0;
}

.description {
    margin: 0 0 30px;
    text-align: center;
    font-size: 14px;
    font-style: italic;
}
@media (max-width: 767px) {
    .chart-container {
        width: 100%;
    }

    .column {
        width: 90px;
    }

    .bar-red {
        width: 35px;
    }

    .bar-purple {
        width: 80px;
    }

    .bar-f {
        width: 100px;
    }

    .bar-m {
        width: 100px;
    }
}

.container-form {
    max-width: 700px;
    margin: 40px auto;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.offer-container {
    margin: 20px auto;
    padding: 30px;
}

.offer-title {
    color: rgb(0, 166, 83);
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
}

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

.offer-date {
    color: rgb(47, 145, 244);
    font-size: 18px;
    text-align: center;
    margin-bottom: 30px;
}

.warning-block {
    background: #fff3e0;
    border-left: 4px solid rgb(47, 145, 244);
    padding: 15px;
    margin-top: 30px;
    border-radius: 0 8px 8px 0;
}

.warning-block p {
    color: #333;
    margin: 0;
    font-size: 16px;
}

@media (max-width: 768px) {
    .offer-container {
        padding: 5px;
    }

    .offer-title {
        font-size: 24px;
    }

    .offer-benefits {
        flex-direction: column;
        align-items: center;
    }

    .benefit-item {
        width: 100%;
        max-width: 300px;
    }
}

.official-badge {
    background: rgb(47, 145, 244);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 12px;
}

.order-number {
    text-align: right;
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 16px;
}

.title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 24px;
}

.price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 8px;
    background: #f8f9fa;
}

.stock-counter {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
    animation: pulse 2s infinite;
}

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

.old-price {
    color: #6c757d;
    text-decoration: line-through;
    font-size: 14px;
}

.new-price {
    color: rgb(0, 166, 83);
    font-size: 24px;
    font-weight: bold;
}

.discount {
    color: rgb(47, 145, 244);
    text-align: center;
}

.discount-label {
    font-weight: bold;
}

.discount-value {
    font-size: 24px;
    font-weight: bold;
}

.divider {
    width: 1px;
    height: 48px;
    background: #dee2e6;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.input:focus {
    outline: none;
    border-color: rgb(0, 166, 83);
    box-shadow: 0 0 0 3px rgba(0, 166, 83, 0.2);
}

.button {
    width: 100%;
    padding: 12px;
    background: rgb(0, 166, 83);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.button:hover {
    background: rgb(0, 145, 72);
}

.security-note {
    text-align: center;
    color: #6c757d;
    font-size: 12px;
    margin-top: 12px;
}

.secure-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.secure-badge img {
    width: 120px;
    height: auto;
}

@media (max-width: 767px) {
    .secure-badge img {
        width: 110px;
        height: auto;
    }
}

#prod_img {
    width: 300px;
}

.comments {
  position: relative;
}

.comments::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 2.5px;
  background-color: rgb(47, 145, 244);
  margin-top: -20px;
}



.comment {
    display: flex;
    gap: 20px;
    padding: 10px;
    
    border-radius: 10px;
    background-color: #f4f4f4;
    margin-top: 20px;
}

.avatar-img {
    flex-shrink: 0;
}

.avatar-img img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.name-comm p {
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.data p {
    font-size: 12px;
    color: #9e9d9d;
    margin-top: -5px;
    margin-bottom: 0;
}

.data-reply p {
    font-size: 12px;
    color: #9e9d9d;
}

.text-comm p {
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.foto-comm img {
    margin-top: 10px;
    border-radius: 10px;
}

.comment-reply {
    position: relative;
    margin-top: 20px;
    margin-left: 20px;
}



.reply-to {
    display: flex;
    align-items: center;
    margin: 5px 0;
    font-size: 12px;
    color: rgb(47, 145, 244);
}

.reply-name {
    color: rgb(47, 145, 244);
}

/* Альтернативный стиль кнопок */
.comment-actions {
    display: flex;
    gap: 15px;
    margin-top: -8px;
    margin-left: 30px;
}

.comment-actions-reply {
    position: relative;
    display: flex;
    gap: 15px;
    margin-top: -5px;
    margin-left: 50px;
}

.action-btn {
    background-color: #ffffff;
    border: 0.1px solid rgb(47, 145, 244);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 13px;
    color: rgb(47, 145, 244);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-btn:hover {
    background-color: #e4e6e9;
    color: #3498db;
}

.like-btn {
    display: flex;
    align-items: center;
}

.like-btn.active {
    background-color: #ffebee;
    color: #e74c3c;
}

.like-btn.active .like-icon {
    color: #e74c3c;
}

.like-icon {
    font-size: 14px;
}

.like-count {
    font-weight: 500;
}

/* Анимация для лайка */
@keyframes likeAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.like-btn:active .like-icon {
    animation: likeAnimation 0.3s ease;
}

@media (max-width: 767px) {
    .comments h2 {
        width: 60%;
    }

    .comments::after {
        width: 95%;
        height: 1.5px;
    }

    .comment {
        padding: 5px;
        gap: 12px;
    }

    .comment-reply {
        margin-left: 10px;
    }

    .comment-reply::before {
        left: -12px;
        width: 10px;
        height: 80px;
    }

    .avatar-img img {
        width: 45px;
        height: 45px;
        border: 2px solid white;
    }

    .name-comm p {
        font-size: 14px;
    }

    .text-comm p {
        font-size: 13px;
        line-height: 1.4;
    }

    .foto-comm img {
        width: 95%;
        margin-top: 5px;
    }

    .comment-actions {
        margin-top: -2px;
        margin-left: 15px;
    }

    .comment-actions-reply {
        margin-top: 0px;
        margin-left: 30px;
    }
}


/* Balancio ES adaptation */
.product-highlight{margin:28px auto;padding:24px;border-radius:18px;background:#fafaf6;text-align:center;box-shadow:0 8px 28px rgba(0,0,0,.08)}
.product-highlight img{display:block;max-width:360px;width:78%;height:auto;margin:0 auto 12px;object-fit:contain}
.product-highlight p{margin:0;font-size:17px;line-height:1.45}
.ingredient-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0}
.ingredient-item{padding:18px;border:1px solid #e6e6dc;border-radius:14px;background:#fff}
.ingredient-item h3{margin:0 0 8px;color:#4f6500;font-size:20px}
.ingredient-item p{margin:0;line-height:1.5}
.expectation-note{margin:28px 0;padding:22px;border-left:5px solid #b2af42;background:#fafaf2;border-radius:10px}
.expectation-note h4{margin-top:0}
@media(max-width:640px){.ingredient-grid{grid-template-columns:1fr}.product-highlight img{width:88%;max-width:300px}}

/* Austrian localized header */
.at-header-strip {
    background: #c8102e;
    color: #fff;
    font-family: "Exo 2", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.at-header-strip__inner {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.at-flag {
    width: 28px;
    height: 18px;
    display: inline-block;
    border: 1px solid rgba(255,255,255,.65);
    background: linear-gradient(to bottom, #ed2939 0 33.333%, #fff 33.333% 66.666%, #ed2939 66.666% 100%);
    box-shadow: 0 1px 2px rgba(0,0,0,.18);
}
#header .middle {
    border-bottom: 3px solid #ed2939;
    box-shadow: 0 3px 10px rgba(35,35,35,.08);
}
#header .middle .logo img {
    max-width: 220px;
}
#header .middle .burger-button i,
#header .middle .right-btns i {
    color: #c8102e;
}
#header .main-nav {
    background: linear-gradient(90deg, #a60f27 0%, #ed2939 52%, #a60f27 100%);
}
#header .main-nav .main-menu .nav-item:hover a,
#header .main-nav .main-menu .nav-item:hover button {
    color: #c8102e;
}
#swipe-menu {
    background: linear-gradient(150deg, #a60f27 0%, #ed2939 100%);
}
#swipe-menu .swipe-head .close-swipe-nav:hover i {
    color: #fff;
}
@media screen and (max-width: 768px) {
    .at-header-strip {
        font-size: 10px;
    }
    .at-header-strip__inner {
        min-height: 26px;
    }
    .at-flag {
        width: 24px;
        height: 15px;
    }
    #header .middle .logo img {
        max-width: 135px;
    }
}
