/* Переменные для цветов */
:root {
    --color-dark-green: #0B3D2E;
    --color-main-green: #006B3C;
    --color-accent: #E91E63;
    --color-white: #ffffff;
    --color-light-gray: #f7f7f7;
    --color-text-body: #333333;
    --color-border: #e0e0e0;
    --color-secondary: #6c757d;
}

/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-text-body);
    background-color: var(--color-white);
    line-height: 1.6;
}

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

/* Кнопка */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    border: 2px solid var(--color-accent);
}

.btn-primary:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-light-gray);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* Шапка */
.header {
    background-color: var(--color-dark-green);
    color: var(--color-white);
    padding: 15px 0;
    position: relative;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    flex-wrap: nowrap;
    gap: 20px;
}

.header-logos {
    flex-shrink: 0;
}

.nav {
    margin-left: auto;
    flex-shrink: 0;
}

.header-logos {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 45px;
    width: auto;
    vertical-align: middle;
    transition: transform 0.3s ease-in-out;
    display: inline-block;
    object-fit: contain;
}

.halal-logo-link {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease-in-out;
}

.halal-logo-img {
    height: 45px;
    width: 45px;
    vertical-align: middle;
    transition: transform 0.3s ease-in-out;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.halal-logo-link:hover .halal-logo-img {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.nav a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 16px;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
}

.nav a:hover {
    opacity: 1;
    transform: scale(1.1);
    color: var(--color-main-green);
}

/* Кнопка админа */
.admin-login-top {
    font-size: 24px;
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
    z-index: 1000;
    flex-shrink: 0;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.admin-login-top:hover {
    transform: scale(1.3) rotate(5deg);
    color: #E91E63;
}

/* Главный Экран */
.hero-section {
    background: url('/static/images/zelen.jpg') no-repeat center center/cover, url('/zelen.jpg') no-repeat center center/cover;
    background-color: #388e3c;
    height: 70vh;
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 107, 60, 0.6) 0%, rgba(11, 61, 46, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.brand-name-highlight {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    color: var(--color-white);
    -webkit-text-fill-color: var(--color-white);
}

.hero-subtitle {
    font-size: 22px;
    margin-bottom: 40px;
    font-weight: 500;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    line-height: 1.5;
}

/* Секция Преимуществ */
.benefits-section {
    background: linear-gradient(135deg, #0B3D2E 0%, #007B47 100%);
    padding: 80px 0;
    color: var(--color-white);
    text-align: center;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
}

.benefits-section .section-title:first-child {
    color: #66bb6a;
    margin-bottom: 20px;
}

/* Карусель */
.quality-cards-grid {
    position: relative;
    overflow: hidden;
    padding: 20px 50px 40px 50px;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 107, 60, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.carousel-nav-btn:hover {
    background: rgba(0, 107, 60, 1);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav-prev {
    left: 5px;
}

.carousel-nav-next {
    right: 5px;
}

.carousel-nav-btn i {
    pointer-events: none;
}

.quality-cards-track {
    display: flex;
    transition: transform 0.3s ease;
    will-change: transform;
    gap: 40px;
}

.quality-card {
    flex: 0 0 auto;
    width: 300px;
    min-height: 380px;
    background-color: var(--color-white);
    border-radius: 12px;
    border: 3px solid rgba(0, 107, 60, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: center;
    padding-bottom: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
}

.quality-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 107, 60, 0.08) 0%, rgba(11, 61, 46, 0.08) 50%, rgba(46, 125, 50, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
    border-radius: 12px;
}

.quality-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 107, 60, 0.25);
    border-color: rgba(0, 107, 60, 0.4);
}

.quality-card:hover::before {
    opacity: 1;
}

.card-image-container {
    height: 200px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

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

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

.card-title {
    color: var(--color-dark-green);
    font-size: 1.4em;
    margin-bottom: 10px;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

.card-description {
    color: var(--color-text-body);
    font-size: 0.95em;
    padding: 0 20px;
    line-height: 1.5;
    min-height: 40px;
    position: relative;
    z-index: 1;
}

.card-group-title {
    background: linear-gradient(90deg, #03a85e, #00a857e7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    text-transform: uppercase;
}

.section-title.card-group-title {
    color: #1B5E20;
    font-weight: 800;
    font-size: 1.8em;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 50px;
    padding-bottom: 10px;
    display: inline-block;
    border-bottom: 4px solid #00695C;
}

.benefits-section .section-title:first-child {
    color: #66bb6a;
    margin-bottom: 20px;
}

/* Скрываем стандартный скроллбар */
.quality-cards-grid::-webkit-scrollbar {
    display: none;
}

.quality-cards-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Индикатор прокрутки */
.scroll-indicator {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 8px;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.scroll-dot.active {
    background-color: var(--color-white);
    transform: scale(1.2);
}

/* Секция Качества */
.quality-section {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 50%, #a5d6a7 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Анимация листьев */
.leaves-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.leaf {
    position: absolute;
    font-size: 2.5em;
    opacity: 0.6;
    animation: fallDown 15s infinite linear;
    filter: drop-shadow(0 2px 4px rgba(0, 107, 60, 0.3));
}

.leaf-1 {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.leaf-2 {
    left: 20%;
    animation-delay: 2s;
    animation-duration: 14s;
}

.leaf-3 {
    left: 30%;
    animation-delay: 4s;
    animation-duration: 13s;
}

.leaf-4 {
    left: 40%;
    animation-delay: 1s;
    animation-duration: 15s;
}

.leaf-5 {
    left: 50%;
    animation-delay: 3s;
    animation-duration: 12s;
}

.leaf-6 {
    left: 60%;
    animation-delay: 5s;
    animation-duration: 14s;
}

.leaf-7 {
    left: 70%;
    animation-delay: 2.5s;
    animation-duration: 13s;
}

.leaf-8 {
    left: 80%;
    animation-delay: 4.5s;
    animation-duration: 16s;
}

@keyframes fallDown {
    0% {
        transform: translateY(-100px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    50% {
        transform: translateY(50vh) translateX(30px) rotate(180deg);
        opacity: 0.8;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh) translateX(-20px) rotate(360deg);
        opacity: 0;
    }
}

.quality-section .container {
    width: 100%;
    position: relative;
    z-index: 2;
}

.quality-title {
    color: var(--color-dark-green);
    margin-bottom: 40px;
    font-size: 2.5em;
}

.quality-content p {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 20px;
}

.eac-mark {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--color-main-green);
    margin: 30px 0;
}

/* Подвал */
.footer {
    background-color: var(--color-dark-green);
    color: var(--color-white);
    padding: 30px 0;
    font-size: 14px;
}

.footer .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
}

.footer .logo-img {
    height: 60px;
    width: auto;
    vertical-align: middle;
    transition: transform 0.3s ease-in-out;
    object-fit: contain;
}

.logo-link:hover .logo-img {
    transform: scale(1.1);
}

.footer-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.footer-info p {
    margin-bottom: 5px;
    opacity: 0.8;
    margin-top: 0;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    vertical-align: middle;
    transition: transform 0.3s ease-in-out;
    object-fit: contain;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
}

.footer-logo-link.second-logo {
    margin-left: 0;
}

.footer-logo-img.second-logo-img {
    height: 60px;
    width: auto;
    max-width: 70px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.footer-logo-img:hover {
    transform: scale(1.1);
}

.footer-logo-img.second-logo-img:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

/* Социальные иконки */
.social-links {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 15px;
    height: 100%;
}

.social-links a,
.social-links-modal a,
.whatsapp-dropdown a {
    text-decoration: none !important;
    border-bottom: none !important;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-bottom: none;
}

.social-links a i {
    font-size: 36px;
    color: var(--color-white);
    transition: all 0.3s ease;
}

.admin-login-footer {
    display: none !important; /* Скрываем кнопку администратора в футере на всех экранах */
}

.admin-login-footer i {
    font-size: 36px;
    color: var(--color-white);
    transition: all 0.3s ease;
}

.admin-login-footer:hover i {
    color: #E91E63;
    transform: scale(1.15);
}

.instagram-btn:hover i {
    color: #E1306C;
    transform: scale(1.15);
}

.tiktok-btn:hover i {
    color: #EE1D52;
    transform: scale(1.15);
}

/* Выпадающее меню WhatsApp */
.whatsapp-dropdown {
    position: relative;
    display: inline-block;
}

.whatsapp-dropdown-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-white);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 8px;
    z-index: 1001;
    margin-bottom: 10px;
    min-width: 240px;
    padding: 12px;
}

.whatsapp-option {
    padding: 12px;
    transition: background-color 0.3s;
    margin-bottom: 8px;
    border-radius: 5px;
}

.whatsapp-option:last-child {
    margin-bottom: 0;
}

.whatsapp-option:hover {
    background-color: #f8f9fa;
}

.whatsapp-number {
    font-weight: 700;
    color: var(--color-dark-green);
    font-size: 15px;
    margin-bottom: 4px;
}

.whatsapp-name {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.whatsapp-link {
    display: block;
    background-color: #25D366;
    color: white !important;
    text-align: center;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    border-bottom: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.whatsapp-link:hover {
    background-color: #128C7E;
    transform: translateY(-1px);
}

.dropdown-toggle {
    text-decoration: none;
    border-bottom: none;
}

.dropdown-toggle i {
    font-size: 36px;
    color: var(--color-white);
    transition: all 0.3s ease;
}

.dropdown-toggle:hover i {
    color: #25D366;
    transform: scale(1.15);
}

/* МОДАЛЬНОЕ ОКНО КАРТОЧКИ - ИЗОБРАЖЕНИЕ СЛЕВА, ОПИСАНИЕ СПРАВА */
.card-modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    max-width: 90%;
    width: 800px;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card-modal-layout {
    display: flex;
    min-height: 500px;
}

/* Левая колонка - изображение */
.card-modal-left {
    flex: 0 0 40%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--color-border);
    position: relative;
}

.product-image-container {
    width: 100%;
    max-width: 280px;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.product-image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

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

.product-image-container:hover .product-image {
    transform: scale(1.08);
}

.product-price-section {
    text-align: center;
    width: 100%;
}

.price-badge {
    background: linear-gradient(135deg, var(--color-accent), #d32f2f);
    color: white;
    padding: 14px 24px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
    transition: all 0.3s ease;
}

.price-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.5);
}

.price-label {
    display: block;
    font-size: 0.85em;
    opacity: 0.9;
    margin-bottom: 5px;
    font-weight: 500;
}

.product-price {
    font-size: 1.5em;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Правая колонка - описание */
.card-modal-right {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.product-header {
    margin-bottom: 25px;
    border-bottom: 2px solid var(--color-light-gray);
    padding-bottom: 20px;
}

.product-title {
    color: var(--color-dark-green);
    font-size: 1.7em;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stars {
    color: #FFD700;
    font-size: 16px;
    letter-spacing: 2px;
}

.rating-text {
    color: var(--color-secondary);
    font-size: 0.9em;
    font-weight: 600;
}

.product-description {
    margin-bottom: 25px;
    background: var(--color-light-gray);
    padding: 18px;
    border-radius: 12px;
    border-left: 4px solid var(--color-main-green);
}

.product-description p {
    color: var(--color-text-body);
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0;
}

.product-details {
    flex: 1;
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    padding: 18px;
    background: var(--color-light-gray);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.detail-item:hover {
    background: #e9ecef;
    transform: translateX(8px);
    border-color: var(--color-main-green);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.detail-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-main-green), var(--color-dark-green));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
}

.detail-item:hover .detail-icon {
    transform: scale(1.1) rotate(5deg);
}

.detail-content {
    flex: 1;
}

.detail-content h4 {
    color: var(--color-dark-green);
    font-size: 1.05em;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-content p {
    color: var(--color-text-body);
    font-size: 0.9em;
    line-height: 1.5;
    margin: 0;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

/* Основные модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    max-width: 90%;
    width: 500px;
    animation: modalSlideIn 0.3s ease-out;
}

.close-btn {
    color: #999;
    float: right;
    font-size: 26px;
    font-weight: bold;
    position: absolute;
    top: 20px;
    right: 25px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: var(--color-light-gray);
}

.close-btn:hover {
    color: #000;
    background-color: #e0e0e0;
    transform: rotate(90deg);
}

.modal-title {
    font-size: 26px;
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--color-dark-green);
    text-align: center;
    font-weight: 700;
}

.contact-subtitle {
    text-align: center;
    margin-bottom: 25px;
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
}

/* Формы */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
    text-align: left;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-dark-green);
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-main-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 107, 60, 0.1);
    background: var(--color-white);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    margin-top: 10px;
    font-weight: 700;
}

/* Успешная модалка */
.center-button-container {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.success-ok-btn {
    padding: 14px 35px;
    font-size: 16px;
    border-radius: 10px;
    background-color: var(--color-accent);
    color: var(--color-white);
    border: 2px solid var(--color-accent);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
}

.success-ok-btn:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

#success-modal .modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 30px;
}

/* Модальное окно контактов */
.contact-info-block {
    text-align: left;
    margin-top: 20px;
    line-height: 1.8;
    font-size: 15px;
}

.contact-info-block i {
    margin-right: 10px;
    color: var(--color-main-green);
    width: 20px;
    text-align: center;
}

.contact-info-block p {
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-light-gray);
}

.contact-info-block p:last-child {
    border-bottom: none;
}

.social-links-modal {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px 0;
}

.social-links-modal .whatsapp-dropdown .dropdown-toggle,
.social-links-modal .social-btn {
    font-size: 28px;
    transition: all 0.3s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-decoration: none;
    border-bottom: none;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.social-links-modal .whatsapp-dropdown .dropdown-toggle {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.social-links-modal .whatsapp-dropdown .dropdown-toggle:hover {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.social-links-modal .social-btn.instagram-btn {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-links-modal .social-btn.instagram-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(225, 48, 108, 0.4);
}

.social-links-modal .social-btn.tiktok-btn {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
}

.social-links-modal .social-btn.tiktok-btn:hover {
    background: linear-gradient(135deg, #333333 0%, #000000 100%);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.social-links-modal .whatsapp-dropdown .dropdown-toggle:hover,
.social-links-modal .social-btn:hover {
    transform: translateY(-5px) scale(1.1);
}

.social-links-modal .whatsapp-dropdown .dropdown-toggle i,
.social-links-modal .social-btn i {
    z-index: 1;
    position: relative;
}

/* Секция новостей */
.news-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 50%, #a5d6a7 100%);
    text-align: center;
    position: relative;
}

.news-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1400px;
}

.news-section .section-title {
    font-size: 2.2em;
    margin-bottom: 40px;
    color: var(--color-dark-green);
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 107, 60, 0.1);
    position: relative;
    display: inline-block;
}

.news-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #006B3C 0%, #0B3D2E 100%);
    border-radius: 2px;
}

.news-grid {
    display: flex;
    overflow-x: hidden;
    overflow-y: visible;
    padding: 20px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    position: relative;
}

#news-carousel {
    overflow: hidden;
    width: 100%;
    position: relative;
}

#news-carousel .quality-cards-track {
    display: flex;
    gap: 30px;
    width: max-content;
    transition: transform 0.3s ease;
    will-change: transform;
}

.news-card {
    flex: 0 0 auto;
    width: 320px;
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 107, 60, 0.15);
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 107, 60, 0.1);
    position: relative;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #006B3C 0%, #0B3D2E 100%);
    z-index: 1;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 107, 60, 0.2);
    border-color: rgba(0, 107, 60, 0.3);
}

.news-image-container {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
    z-index: 1;
}

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

.news-card:hover .news-img {
    transform: scale(1.1);
}

.news-content {
    padding: 20px;
    background: var(--color-white);
}

.news-title {
    color: var(--color-dark-green);
    font-size: 1.2em;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.news-text {
    color: var(--color-text-body);
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95em;
}

.news-date {
    color: #006B3C;
    font-size: 0.9em;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 107, 60, 0.1);
}

.news-date::before {
    content: '📅';
    font-size: 1em;
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: absolute;
    top: 20px;
    right: 20px;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--color-white);
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

body.menu-open {
    overflow: hidden;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .header {
        padding: 12px 0;
        position: relative;
    }
    
    .header .container {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
        gap: 10px;
    }

    .mobile-menu-toggle {
        display: flex;
        right: 65px; /* Сдвигаем влево от кнопки администратора */
        top: 50%; /* Выравниваем по центру вертикально */
        transform: translateY(-50%); /* Центрируем */
    }

    .header-logos {
        gap: 8px;
        order: 1;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .halal-logo-img {
        height: 35px;
        width: 35px;
    }

    .admin-login-top {
        font-size: 20px;
        background-color: rgba(11, 61, 46, 0.8);
        padding: 6px;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        order: 3;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 20px;
    }
    
    .nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(11, 61, 46, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 1000;
        padding: 80px 20px 20px;
        overflow-y: auto;
    }
    
    .nav.nav-open {
        display: flex;
    }
    
    .nav a {
        font-size: 20px;
        padding: 15px 25px;
        width: 100%;
        text-align: center;
        border-radius: 8px;
        transition: all 0.3s ease;
        opacity: 1;
    }
    
    .nav a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: scale(1.05);
    }

    .hero-section {
        height: 50vh;
        min-height: 400px;
        padding: 0 15px;
        background: url('/static/images/zelen.jpg') no-repeat center center/cover, url('/zelen.jpg') no-repeat center center/cover;
    }

    .hero-content {
        padding: 0 10px;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero-title .brand-name-highlight {
        font-size: 1em;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
        line-height: 1.4;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 14px;
        width: 100%;
        max-width: 300px;
    }

    .quality-cards-grid {
        padding: 15px 35px 30px 35px;
        gap: 20px;
    }
    
    .carousel-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
        opacity: 0.8;
    }
    
    .carousel-nav-prev {
        left: 2px;
    }
    
    .carousel-nav-next {
        right: 2px;
    }
    
    .quality-card {
        width: 280px;
        min-height: 360px;
        padding-bottom: 25px;
    }
    
    .card-image-container {
        height: 180px;
    }

    .card-title {
        font-size: 1.2em;
    }

    .card-description {
        font-size: 0.9em;
        padding: 0 10px;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 25px;
        padding: 0 10px;
    }

    .card-group-title {
        font-size: 1.3em;
        border-bottom-width: 3px;
        margin-top: 30px;
    }
    
    .benefits-section {
        padding: 50px 0;
    }

    /* Адаптивность модального окна карточки */
    .card-modal-content {
        width: 95%;
        margin: 10px;
        max-height: 95vh;
    }

    .card-modal-layout {
        flex-direction: column;
        min-height: auto;
    }

    .card-modal-left {
        flex: none;
        padding: 25px;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .product-image-container {
        max-width: 220px;
        height: 220px;
        margin-bottom: 20px;
    }

    .card-modal-right {
        padding: 25px;
        max-height: 50vh;
    }

    .product-title {
        font-size: 1.4em;
    }

    .detail-item {
        padding: 15px;
        margin-bottom: 15px;
    }

    .detail-icon {
        width: 38px;
        height: 38px;
        margin-right: 12px;
        font-size: 16px;
    }

    .product-actions {
        gap: 10px;
    }

    .btn {
        padding: 14px 20px;
        font-size: 14px;
    }

    .quality-section {
        padding: 50px 15px;
        min-height: auto;
    }

    .quality-title {
        font-size: 1.6em;
        margin-bottom: 25px;
        padding: 0 10px;
    }

    .quality-content {
        padding: 0 10px;
    }

    .quality-content p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 15px;
    }

    .eac-mark {
        font-size: 1.1em;
        margin: 20px 0;
    }
    
    .leaves-animation {
        display: none; /* Отключаем анимацию листьев на мобильных для производительности */
    }

    .modal-content {
        width: 95%;
        padding: 25px 15px;
        margin: 10px auto;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .contact-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group textarea {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .btn-submit {
        padding: 14px;
        font-size: 15px;
    }

    .social-links-modal {
        flex-wrap: wrap;
        gap: 12px;
        padding: 15px 0;
    }
    
    .social-links-modal .whatsapp-dropdown .dropdown-toggle,
    .social-links-modal .social-btn {
        font-size: 24px;
        width: 48px;
        height: 48px;
    }
    
    .contact-info-block {
        font-size: 14px;
    }
    
    .contact-info-block p {
        margin-bottom: 12px;
        padding: 8px 0;
        word-break: break-word;
    }
    
    .contact-info-block i {
        font-size: 16px;
        width: 18px;
    }

    .footer {
        padding: 25px 0;
    }
    
    .footer .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding: 0 15px;
    }
    
    .footer-logos {
        flex-direction: column;
        gap: 10px;
    }

    .footer-logo-img {
        height: 45px;
    }
    
    .footer .logo-img {
        height: 45px;
    }
    
    .footer-logo-img.second-logo-img {
        height: 45px;
        max-width: 55px;
    }
    
    .footer-info {
        font-size: 13px;
    }
    
    .footer-info p {
        margin-bottom: 8px;
        line-height: 1.5;
    }

    .whatsapp-dropdown-menu {
        min-width: 200px;
        left: 0;
        transform: translateX(-20%);
    }
    
    .whatsapp-option {
        padding: 10px;
    }
    
    .whatsapp-number {
        font-size: 14px;
    }
    
    .whatsapp-link {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .social-links-modal .whatsapp-dropdown .dropdown-toggle {
        padding: 6px 10px;
        font-size: 14px;
    }

    .dropdown-toggle i {
        font-size: 32px;
    }

    .social-links {
        gap: 10px;
    }

    .social-links a i {
        font-size: 32px;
    }
    
    .admin-login-footer {
        display: none !important; /* Скрываем кнопку администратора в футере на мобильных */
    }

    /* Новости на мобильных */
    .news-section {
        padding: 50px 0;
    }
    
    .news-section .section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
        padding: 0 10px;
    }
    
    .news-grid {
        padding: 15px 35px;
    }
    
    #news-carousel .quality-cards-track {
        gap: 20px;
    }
    
    .news-card {
        width: 300px;
    }
    
    .news-image-container {
        height: 180px;
    }
    
    .news-content {
        padding: 18px;
    }
    
    .news-title {
        font-size: 1.15em;
        margin-bottom: 10px;
    }
    
    .news-text {
        font-size: 0.9em;
        margin-bottom: 12px;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .news-date {
        font-size: 0.85em;
        padding-top: 10px;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
    .mobile-menu-toggle {
        right: 60px; /* Немного ближе на маленьких экранах */
        width: 28px;
        height: 28px;
        top: 50%; /* Выравниваем по центру вертикально */
        transform: translateY(-50%); /* Центрируем */
    }
    
    .admin-login-top {
        width: 32px;
        height: 32px;
        font-size: 18px;
        right: 15px;
        top: 50%; /* Выравниваем по центру вертикально */
        transform: translateY(-50%); /* Центрируем */
    }
    
    .hero-section {
        height: 45vh;
        min-height: 350px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 13px;
    }
    
    .quality-card {
        width: 260px;
        min-height: 340px;
    }
    
    .news-card {
        width: 280px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .modal-content {
        width: 98%;
        padding: 20px 12px;
        margin: 5px auto;
    }
    
    .footer-info p {
        font-size: 12px;
    }
    
    .social-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    .social-links a i {
        font-size: 28px;
    }
    
    .admin-login-footer {
        display: none !important; /* Скрываем кнопку администратора в футере на маленьких экранах */
    }
    
    .contact-info-block p {
        font-size: 13px;
    }
    
    .social-links-modal .whatsapp-dropdown .dropdown-toggle,
    .social-links-modal .social-btn {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
}

html {
    scroll-behavior: smooth;
}

/* УЛУЧШЕННОЕ МОДАЛЬНОЕ ОКНО КАРТОЧКИ */
.card-modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    max-width: 90%;
    width: 700px;
    max-height: 85vh;
    overflow: hidden;
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-modal-layout {
    display: flex;
    min-height: 400px;
    max-height: 70vh;
}

/* Левая колонка - изображение */
.card-modal-left {
    flex: 0 0 45%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--color-border);
    position: relative;
}

.product-image-container {
    width: 100%;
    max-width: 240px;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

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

.product-image-container:hover .product-image {
    transform: scale(1.05);
}

.product-price-section {
    text-align: center;
    width: 100%;
}

.price-badge {
    background: linear-gradient(135deg, var(--color-accent), #d32f2f);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
    transition: all 0.3s ease;
}

.price-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

.price-label {
    display: block;
    font-size: 0.8em;
    opacity: 0.9;
    margin-bottom: 4px;
    font-weight: 500;
}

.product-price {
    font-size: 1.3em;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Правая колонка - описание */
.card-modal-right {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 100%;
}

.product-header {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-light-gray);
    padding-bottom: 15px;
}

.product-title {
    color: var(--color-dark-green);
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    color: #FFD700;
    font-size: 14px;
    letter-spacing: 1px;
}

.rating-text {
    color: var(--color-secondary);
    font-size: 0.85em;
    font-weight: 600;
}

.product-description {
    margin-bottom: 20px;
    background: var(--color-light-gray);
    padding: 15px;
    border-radius: 10px;
    border-left: 3px solid var(--color-main-green);
}

.product-description p {
    color: var(--color-text-body);
    font-size: 0.9em;
    line-height: 1.5;
    margin: 0;
}

.product-details {
    flex: 1;
    margin-bottom: 20px;
    overflow-y: auto;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 15px;
    background: var(--color-light-gray);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.detail-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
    border-color: var(--color-main-green);
}

.detail-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-main-green), var(--color-dark-green));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.detail-item:hover .detail-icon {
    transform: scale(1.05);
}

.detail-content {
    flex: 1;
}

.detail-content h4 {
    color: var(--color-dark-green);
    font-size: 0.95em;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-content p {
    color: var(--color-text-body);
    font-size: 0.85em;
    line-height: 1.4;
    margin: 0;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .card-modal-content {
        width: 95%;
        margin: 10px;
        max-height: 90vh;
    }

    .card-modal-layout {
        flex-direction: column;
        min-height: auto;
        max-height: 85vh;
    }

    .card-modal-left {
        flex: none;
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .product-image-container {
        max-width: 200px;
        height: 200px;
        margin-bottom: 15px;
    }

    .card-modal-right {
        padding: 20px;
        max-height: 50vh;
    }

    .product-title {
        font-size: 1.3em;
    }

    .detail-item {
        padding: 12px;
        margin-bottom: 12px;
    }

    .detail-icon {
        width: 32px;
        height: 32px;
        margin-right: 10px;
        font-size: 14px;
    }

    .product-actions {
        gap: 8px;
    }
}

/* Анимация появления */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* КОМПАКТНОЕ МОДАЛЬНОЕ ОКНО КАРТОЧКИ */
.card-modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    max-width: 90%;
    width: 600px;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

.card-modal-layout {
    display: flex;
    min-height: 450px;
    max-height: 70vh;
}

/* Левая колонка - изображение */
.card-modal-left {
    flex: 0 0 40%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-right: 1px solid #e0e0e0;
}

.product-image-container {
    width: 100%;
    max-width: 180px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-price-section {
    text-align: center;
    width: 100%;
    margin-top: auto;
}

.price-badge {
    background: linear-gradient(135deg, var(--color-main-green), var(--color-dark-green));
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

/* Правая колонка - контент */
.card-modal-right {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: white;
}

.product-header {
    margin-bottom: 20px;
}

.product-title {
    color: var(--color-dark-green);
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-subtitle {
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
    margin: 0;
}

/* Секции контента */
.content-sections {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.content-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 3px solid var(--color-main-green);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.section-icon {
    width: 20px;
    height: 20px;
    background: var(--color-main-green);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
}

.section-title {
    color: var(--color-dark-green);
    font-size: 0.95em;
    font-weight: 600;
    margin: 0;
}

.section-content {
    color: #333;
    font-size: 0.85em;
    line-height: 1.4;
    margin: 0;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
    margin: 5px 0;
}

/* Кнопки действий */
.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-compact {
    padding: 10px 15px;
    font-size: 0.85em;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .card-modal-content {
        width: 95%;
        margin: 10px;
        max-height: 85vh;
    }

    .card-modal-layout {
        flex-direction: column;
        min-height: auto;
        max-height: 80vh;
    }

    .card-modal-left {
        flex: none;
        padding: 15px;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .product-image-container {
        max-width: 120px;
        height: 120px;
    }

    .card-modal-right {
        padding: 15px;
        max-height: 50vh;
    }

    .product-title {
        font-size: 1.2em;
    }

    .content-section {
        padding: 12px;
    }

    .product-actions {
        flex-direction: column;
        gap: 8px;
    }
}

/* Анимация появления */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* УЛУЧШЕННОЕ МОДАЛЬНОЕ ОКНО КАРТОЧКИ */
.card-modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    max-width: 95%;
    width: 900px;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-modal-layout {
    display: flex;
    min-height: 550px;
    max-height: 80vh;
}

/* Левая колонка - изображение */
.card-modal-left {
    flex: 0 0 45%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--color-border);
    position: relative;
}

.product-image-container {
    width: 100%;
    max-width: 320px;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    padding: 10px;
}

.product-image-container:hover .product-image {
    transform: scale(1.05);
}

.product-price-section {
    text-align: center;
    width: 100%;
}

.price-badge {
    background: linear-gradient(135deg, var(--color-accent), #d32f2f);
    color: white;
    padding: 18px 28px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(233, 30, 99, 0.5);
}

.price-label {
    display: block;
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 4px;
    font-weight: 500;
}

.product-price {
    font-size: 1.6em;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Правая колонка - контент */
.card-modal-right {
    flex: 1;
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: white;
}

.product-header {
    margin-bottom: 30px;
    border-bottom: 2px solid var(--color-light-gray);
    padding-bottom: 20px;
}

.product-title {
    color: var(--color-dark-green);
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.product-subtitle {
    color: #666;
    font-size: 1.1em;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
}

/* Секции контента */
.content-sections {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.content-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid var(--color-main-green);
    transition: all 0.3s ease;
}

.content-section:hover {
    background: #e9ecef;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.section-icon {
    width: 32px;
    height: 32px;
    background: var(--color-main-green);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.section-title {
    color: var(--color-dark-green);
    font-size: 1.2em;
    font-weight: 700;
    margin: 0;
}

.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
    margin: 12px 0;
}

.section-content {
    color: #333;
    font-size: 1em;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
}

/* Кнопки действий */
.product-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.btn-compact {
    padding: 14px 20px;
    font-size: 1em;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Анимация появления */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Адаптивность для мобильных */
@media (max-width: 1024px) {
    .card-modal-content {
        width: 95%;
        max-width: 95%;
    }
    
    .card-modal-layout {
        min-height: 500px;
    }
    
    .card-modal-left {
        padding: 30px 20px;
    }
    
    .product-image-container {
        max-width: 280px;
        height: 280px;
    }
    
    .card-modal-right {
        padding: 30px 25px;
    }
    
    .product-title {
        font-size: 1.7em;
    }
}

@media (max-width: 768px) {
    .card-modal-content {
        width: 98%;
        margin: 10px;
        max-height: 95vh;
    }

    .card-modal-layout {
        flex-direction: column;
        min-height: auto;
        max-height: 90vh;
    }

    .card-modal-left {
        flex: none;
        padding: 25px 20px;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .product-image-container {
        max-width: 200px;
        height: 200px;
        margin-bottom: 20px;
    }

    .card-modal-right {
        padding: 25px 20px;
        max-height: 50vh;
    }

    .product-title {
        font-size: 1.5em;
    }

    .content-section {
        padding: 20px;
    }
    
    .content-sections {
        gap: 20px;
    }

    .product-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-compact {
        padding: 12px 16px;
    }
    
    .section-content {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .card-modal-content {
        width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
        height: 100vh;
    }
    
    .card-modal-layout {
        max-height: 100vh;
        height: 100%;
    }
    
    .card-modal-left {
        padding: 20px 15px;
    }
    
    .product-image-container {
        max-width: 180px;
        height: 180px;
    }
    
    .card-modal-right {
        padding: 20px 15px;
        max-height: 60vh;
    }
    
    .product-title {
        font-size: 1.3em;
    }
    
    .content-section {
        padding: 15px;
    }
    
    .section-content {
        font-size: 0.9em;
        text-align: left;
    }
    
    .product-actions {
        gap: 10px;
    }
    
    .btn-compact {
        padding: 12px 16px;
        font-size: 0.9em;
    }
    
    .close-btn {
        width: 36px;
        height: 36px;
        font-size: 24px;
        top: 15px;
        right: 15px;
    }
}

/* Улучшение скроллбара для модального окна */
.card-modal-right::-webkit-scrollbar {
    width: 6px;
}

.card-modal-right::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.card-modal-right::-webkit-scrollbar-thumb {
    background: var(--color-main-green);
    border-radius: 3px;
}

.card-modal-right::-webkit-scrollbar-thumb:hover {
    background: var(--color-dark-green);
}

/* Добавьте эти стили в конец файла styles.css */

/* Стили для кнопок в модальном окне контактов */
.social-links-modal {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

.social-links-modal .whatsapp-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.social-links-modal .whatsapp-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-bottom: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.social-links-modal .whatsapp-dropdown .dropdown-toggle:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.social-links-modal .whatsapp-dropdown .dropdown-toggle i {
    font-size: 20px;
    color: white;
}

.social-links-modal .whatsapp-dropdown .dropdown-toggle span {
    color: white;
    font-weight: 600;
}

.social-links-modal .social-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-links-modal .social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--color-light-gray);
    transition: all 0.3s ease;
    text-decoration: none;
    border-bottom: none;
}

.social-links-modal .social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-links-modal .instagram-btn {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

.social-links-modal .instagram-btn:hover {
    background: linear-gradient(45deg, #3048C5, #4839C2, #7229A3, #B02A73, #D02763, #FD0D0D);
}

.social-links-modal .tiktok-btn {
    background: #000000;
}

.social-links-modal .tiktok-btn:hover {
    background: #333333;
}

.social-links-modal .social-btn i {
    font-size: 20px;
    color: white;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .social-links-modal {
        flex-direction: column;
        gap: 12px;
    }
    
    .social-links-modal .whatsapp-dropdown .dropdown-toggle {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .social-links-modal .social-buttons {
        gap: 10px;
    }
    
    .social-links-modal .social-btn {
        width: 40px;
        height: 40px;
    }
    
    .social-links-modal .social-btn i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .social-links-modal {
        flex-direction: column;
        gap: 10px;
    }
    
    .social-links-modal .whatsapp-dropdown .dropdown-toggle {
        width: 100%;
        justify-content: center;
    }
    
    .social-links-modal .social-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* Стили для блока социальных сетей в модальном окне контактов */
.social-links-modal {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.social-links-modal .whatsapp-dropdown {
    position: relative;
}

.social-links-modal .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    border-bottom: none;
    transition: all 0.3s ease;
    font-size: 1.2em;
}

.social-links-modal .dropdown-toggle:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.social-links-modal .social-buttons {
    display: flex;
    gap: 10px;
}

.social-links-modal .social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    text-decoration: none;
    border-bottom: none;
    transition: all 0.3s ease;
    font-size: 1.2em;
}

.social-links-modal .instagram-btn {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: white;
}

.social-links-modal .tiktok-btn {
    background-color: #000000;
    color: white;
}

.social-links-modal .social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Стили для выпадающего меню WhatsApp */
.social-links-modal .whatsapp-dropdown-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    min-width: 200px;
    z-index: 1000;
    margin-bottom: 10px;
}

.social-links-modal .whatsapp-dropdown-menu::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: white;
}

.social-links-modal .whatsapp-option {
    text-align: center;
}

.social-links-modal .whatsapp-number {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.social-links-modal .whatsapp-name {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 10px;
}

.social-links-modal .whatsapp-link {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    border-bottom: none;
    font-size: 0.9em;
    transition: background-color 0.3s;
}

.social-links-modal .whatsapp-link:hover {
    background-color: #128C7E;
}