/* Основные стили */
:root {
    --primary-color: #2E7D32;
    --secondary-color: #FFA726;
    --accent-color: #4FC3F7;
    --text-dark: #2C2C2C;
    --text-light: #6B6B6B;
    --karelia-green: #1B5E20;
    --warm-orange: #FF8F00;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Предотвращение горизонтального скролла */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.container, .container-fluid {
    overflow-x: hidden;
}

/* Исправление переполнения для всех основных элементов */
.row {
    margin-left: 0;
    margin-right: 0;
}

.col, [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Comfortaa', cursive;
    font-weight: 700;
}

.section-title {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

/* Навигация */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand .brand-text {
    font-family: 'Comfortaa', cursive;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-left: 10px;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Кнопка заявки в навигации */
.navbar-order-btn {
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--secondary-color), var(--warm-orange));
    border: none;
    box-shadow: 0 2px 10px rgba(255, 167, 38, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-order-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 167, 38, 0.4);
    background: linear-gradient(135deg, var(--warm-orange), var(--secondary-color));
}

.navbar-order-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 167, 38, 0.5);
}

.navbar-order-btn i {
    font-size: 1rem;
}

/* Hero секция */
.hero-section {
    height: 100vh;
    background: linear-gradient(135deg, 
        rgba(46, 125, 50, 0.8), 
        rgba(27, 94, 32, 0.9)
    ),
    url('hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--karelia-green));
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
    background: linear-gradient(135deg, var(--karelia-green), var(--primary-color));
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    padding: 10px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* О компании */
.feature-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: var(--text-light);
}

.feature-item i {
    font-size: 1.2rem;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 10px;
    z-index: -1;
}

/* Продукция */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 30px;
}

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

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(46, 125, 50, 0.8), 
        rgba(255, 167, 38, 0.8)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.view-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
}

.product-info h5 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.product-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.product-price {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 15px;
}

/* Контакты - новый дизайн */
.contact-section {
    position: relative;
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5f3 100%);
    overflow: hidden;
}

.contact-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.contact-bg-shapes::before,
.contact-bg-shapes::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.contact-bg-shapes::before {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    animation: floatShape 20s ease-in-out infinite;
}

.contact-bg-shapes::after {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    bottom: -100px;
    left: -80px;
    animation: floatShape 15s ease-in-out infinite reverse;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

.contact-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Карточки контактов */
.contact-card {
    background: white;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.08),
        0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(46, 125, 50, 0.08);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(46, 125, 50, 0.03), transparent);
    transition: left 0.5s ease;
}

.contact-card:hover::before {
    left: 100%;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.12),
        0 5px 15px rgba(46, 125, 50, 0.15);
    border-color: rgba(46, 125, 50, 0.2);
}

.contact-icon-wrapper {
    margin-bottom: 20px;
}

.contact-icon-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color), var(--karelia-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.25);
    transition: all 0.4s ease;
    position: relative;
}

.contact-icon-circle::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--karelia-green));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(10px);
}

.contact-card:hover .contact-icon-circle::before {
    opacity: 0.5;
}

.contact-card:hover .contact-icon-circle {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 30px rgba(46, 125, 50, 0.35);
}

.contact-icon-circle i {
    font-size: 2rem;
    color: white;
    transition: transform 0.4s ease;
}

.contact-card:hover .contact-icon-circle i {
    transform: scale(1.1);
}

.contact-card-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.contact-card-text {
    color: var(--text-dark);
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

.contact-card-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.contact-card-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.contact-card-link:hover {
    color: var(--karelia-green);
    transform: translateY(-2px);
}

.contact-card-link:hover::after {
    width: 80%;
}

.contact-card-hint {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
    font-style: italic;
}

/* Информационные блоки */
.contact-info-box {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.08),
        0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.4s ease;
    border: 1px solid rgba(46, 125, 50, 0.08);
}

.contact-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.12),
        0 5px 15px rgba(46, 125, 50, 0.1);
}

.contact-info-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.1), rgba(46, 125, 50, 0.05));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-info-box:hover .contact-info-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--primary-color), var(--karelia-green));
}

.contact-info-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.contact-info-box:hover .contact-info-icon i {
    color: white;
}

.contact-info-content {
    flex: 1;
}

.contact-info-content h5 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
}

/* Время работы */
.working-hours {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.working-hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.working-hours-item:hover {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.05), rgba(46, 125, 50, 0.02));
    transform: translateX(5px);
}

.working-hours-item .days {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.working-hours-item .time {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
}

/* Современные соцсети */
.social-links-modern {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: #f8f9fa;
}

.social-btn-vk {
    color: #0077FF;
}

.social-btn-vk:hover {
    background: #0077FF;
    color: white;
    border-color: #0077FF;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 119, 255, 0.3);
}

.social-btn-telegram {
    color: #0088cc;
}

.social-btn-telegram:hover {
    background: #0088cc;
    color: white;
    border-color: #0088cc;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.3);
}

.social-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-btn:hover .social-icon {
    transform: scale(1.15);
}

.social-hint {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 10px;
    margin-bottom: 0;
    font-style: italic;
}

/* CTA кнопка */
.contact-cta-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.contact-cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.contact-cta-btn:hover::before {
    width: 300px;
    height: 300px;
}

.contact-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(46, 125, 50, 0.4);
}

.contact-cta-btn i {
    position: relative;
    z-index: 1;
}

/* Адаптивность контактов */
@media (max-width: 768px) {
    .contact-card {
        padding: 30px 20px;
    }
    
    .contact-icon-circle {
        width: 70px;
        height: 70px;
    }
    
    .contact-icon-circle i {
        font-size: 1.75rem;
    }
    
    .contact-card-title {
        font-size: 1.15rem;
    }
    
    .contact-info-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .working-hours-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .social-links-modern {
        justify-content: center;
    }
    
    .social-btn {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }
    
    .contact-cta-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .contact-bg-shapes::before {
        width: 300px;
        height: 300px;
        top: -100px;
        right: -80px;
    }
    
    .contact-bg-shapes::after {
        width: 250px;
        height: 250px;
        bottom: -80px;
        left: -60px;
    }
}

@media (max-width: 576px) {
    .contact-card {
        padding: 25px 15px;
    }
    
    .contact-icon-circle {
        width: 60px;
        height: 60px;
    }
    
    .contact-icon-circle i {
        font-size: 1.5rem;
    }
    
    .contact-info-box {
        padding: 20px;
    }
    
    .contact-info-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-info-icon i {
        font-size: 1.5rem;
    }
    
    .social-btn {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
    
    .contact-subtitle {
        font-size: 1rem;
    }
}

/* Модальное окно */
.modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--karelia-green));
    color: white;
    border: none;
}

.modal-body {
    padding: 30px;
}

.product-details {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.product-details h6 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-details ul {
    list-style: none;
    padding: 0;
}

.product-details li {
    padding: 5px 0;
    border-bottom: 1px solid #e9ecef;
}

.product-details li:last-child {
    border-bottom: none;
}

.product-details li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 10px;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Отзывы */
.review-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    padding: 50px 40px 40px;
    border-radius: 25px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.08), 
        0 8px 16px rgba(0,0,0,0.04),
        inset 0 1px 0 rgba(255,255,255,0.7);
    margin: 30px 0;
    position: relative;
    border: 1px solid rgba(46, 125, 50, 0.1);
    transition: all 0.4s ease;
    overflow: hidden;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 25px 25px 0 0;
}

.review-card::after {
    content: '"';
    position: absolute;
    top: 15px;
    right: 30px;
    font-size: 6rem;
    color: rgba(46, 125, 50, 0.08);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
    transform: rotate(15deg);
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.12), 
        0 12px 24px rgba(0,0,0,0.06),
        inset 0 1px 0 rgba(255,255,255,0.8);
}

.review-stars {
    font-size: 1.4rem;
    margin-bottom: 25px;
    text-align: center;
}

.review-stars i {
    margin: 0 2px;
    color: #FFD700;
    text-shadow: 0 1px 2px rgba(255,215,0,0.3);
    transition: all 0.3s ease;
}

.review-card:hover .review-stars i {
    transform: scale(1.1);
}

.review-text {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-dark);
    font-style: italic;
    margin: 0 0 30px;
    padding: 0;
    border: none;
    text-align: center;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.review-author {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    gap: 20px;
    padding-top: 25px;
    border-top: 1px solid rgba(46, 125, 50, 0.1);
    position: relative;
}

.review-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid transparent;
    background: linear-gradient(white, white) padding-box, 
                linear-gradient(135deg, var(--primary-color), var(--secondary-color)) border-box;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
    transition: all 0.3s ease;
}

.review-card:hover .review-avatar {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(46, 125, 50, 0.3);
}

.author-info {
    text-align: left;
}

.author-info strong {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.author-info small {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.author-info small::before {
    content: '📍';
    font-size: 0.8rem;
}

/* Кастомные стили для карусели отзывов */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--karelia-green));
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    transition: all 0.4s ease;
    border: 3px solid white;
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.25);
}

.carousel-control-prev {
    left: -80px;
}

.carousel-control-next {
    right: -80px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: linear-gradient(135deg, var(--secondary-color), var(--warm-orange));
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 12px 30px rgba(255, 167, 38, 0.35);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.carousel-indicators {
    bottom: 20px; /* Размещаем внутри блока */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
}

/* Полоска прогресса для отзывов */
.carousel-progress-bar {
    width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress-track {
    width: 100%;
    height: 3px;
    background: rgba(46, 125, 50, 0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transition: width 0.4s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: var(--secondary-color);
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 4px rgba(255, 167, 38, 0.5);
}

/* Улучшение секции отзывов */
#reviews {
    background: linear-gradient(135deg, 
        rgba(248, 249, 250, 0.8) 0%, 
        rgba(233, 236, 239, 0.8) 100%
    );
    position: relative;
    overflow: hidden;
}

#reviews::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(46, 125, 50, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 167, 38, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(-10px) rotate(1deg); }
}

#reviews .section-title {
    position: relative;
    z-index: 1;
}

#reviewsCarousel {
    position: relative;
    z-index: 1;
    min-height: 540px; /* Высота с учетом индикаторов */
    padding-bottom: 80px; /* Место для индикаторов */
}

#reviewsCarousel .carousel-inner {
    min-height: 460px;
}

#reviewsCarousel .carousel-item {
    min-height: 460px;
    transition: all 0.6s ease;
}


/* Форма заявки */
.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--karelia-green));
    color: white;
    border: none;
    padding: 20px 30px;
}

.modal-body {
    padding: 30px;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Кнопка отправки формы */
#orderForm .btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--warm-orange));
    border: none;
    padding: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

#orderForm .btn-primary:hover {
    background: linear-gradient(135deg, var(--warm-orange), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 167, 38, 0.4);
}

/* Анимация появления модального окна */
.modal.fade .modal-dialog {
    transform: scale(0.8) translateY(-50px);
    transition: all 0.3s ease;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* Стили для успешной отправки */
.success-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--primary-color);
}

.success-message i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.success-message h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Кнопки управления отображением продуктов */
.show-more-btn, .show-less-btn {
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

.show-more-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--karelia-green));
    border-color: var(--primary-color);
    color: white;
}

.show-more-btn:hover {
    background: linear-gradient(135deg, var(--karelia-green), var(--primary-color));
    border-color: var(--karelia-green);
    color: white;
}

/* Компактные карточки продуктов для модального окна */
.product-card-small {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.product-card-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: var(--primary-color);
}

.product-image-small {
    position: relative;
    overflow: hidden;
    height: 150px;
}

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

.product-card-small:hover .product-image-small img {
    transform: scale(1.1);
}

.product-overlay-small {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 125, 50, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card-small:hover .product-overlay-small {
    opacity: 1;
}

.product-info-small {
    background: white;
}

.product-title-small {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
}

.product-desc-small {
    font-size: 0.8rem;
    line-height: 1.4;
}

.product-price-small {
    font-size: 0.9rem;
    font-weight: 700;
}

/* Стили для модального окна с продуктами */
#allProductsModal .modal-dialog {
    max-width: 1200px;
}

#allProductsModal .modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--karelia-green)) !important;
}

#allProductsModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* Кастомный скроллбар для модального окна */
#allProductsModal .modal-body::-webkit-scrollbar {
    width: 8px;
}

#allProductsModal .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#allProductsModal .modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

#allProductsModal .modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--karelia-green);
}

/* Стили для модального окна детального просмотра товара поверх каталога */
#productDetailModal {
    z-index: 1060;
}

#productDetailModal .modal-backdrop {
    z-index: 1059;
    background-color: rgba(0, 0, 0, 0.3); /* Более прозрачный фон */
}

#productDetailModal .modal-content {
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border: 2px solid rgba(46, 125, 50, 0.1);
}

#productDetailModal .modal-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--warm-orange));
}

#productDetailModal .product-details {
    background: rgba(46, 125, 50, 0.05);
    border: 1px solid rgba(46, 125, 50, 0.1);
}

/* Затемнение фонового модального окна */
.modal-backdrop.show ~ .modal-backdrop {
    opacity: 0.3;
}

/* Горизонтальная прокрутка продуктов на мобильных */
.products-scroll-wrapper {
    position: relative;
    margin: 0 -15px;
}

.products-scroll-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60px;
    background: linear-gradient(90deg, transparent, rgba(248, 249, 250, 0.95));
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.products-scroll-wrapper.scroll-end::after {
    opacity: 0;
}

.products-scroll-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding: 20px 15px;
}

/* Скрываем скроллбар но оставляем функциональность */
.products-scroll-container::-webkit-scrollbar {
    display: none;
}

.products-scroll-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Карточки продуктов в горизонтальном скролле */
.products-scroll-container .product-card-wrapper {
    flex: 0 0 280px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.products-scroll-container .product-card {
    margin-bottom: 0;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.products-scroll-container .product-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Карточка "Все товары" в конце скролла */
.show-all-card {
    background: linear-gradient(135deg, var(--primary-color), var(--karelia-green));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.show-all-card:hover {
    background: linear-gradient(135deg, var(--karelia-green), var(--primary-color));
}

.show-all-content {
    text-align: center;
    padding: 40px 20px;
}

.show-all-content i.bi-grid-3x3-gap {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
    opacity: 0.9;
}

.show-all-content h5 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
    line-height: 1.4;
}

.show-all-content p {
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.9;
    color: white;
}

.show-all-arrow {
    margin-top: 15px;
}

.show-all-arrow i {
    font-size: 2.5rem;
    animation: bounceRight 1.5s ease-in-out infinite;
}

@keyframes bounceRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

/* Индикатор прокрутки */
.scroll-indicator {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 10px;
    padding: 8px 16px;
    background: rgba(46, 125, 50, 0.08);
    border-radius: 20px;
    display: inline-block;
    animation: slideHint 2s ease-in-out infinite;
}

.scroll-indicator i {
    margin-left: 5px;
    font-size: 1.1rem;
    color: var(--primary-color);
}

@keyframes slideHint {
    0%, 100% { transform: translateX(0); opacity: 0.7; }
    50% { transform: translateX(10px); opacity: 1; }
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    .section-title::after {
        left: 0;
        transform: none;
    }
    
    .navbar-order-btn {
        padding: 6px 15px;
        font-size: 0.85rem;
        margin: 8px;
        width: calc(100% - 16px);
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Уменьшаем ширину карточек на маленьких экранах */
    .products-scroll-container .product-card-wrapper {
        flex: 0 0 260px;
    }
    
    .carousel-control-prev {
        left: 15px;
        width: 50px;
        height: 50px;
    }
    
    .carousel-control-next {
        right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .review-card {
        padding: 35px 25px 25px;
        margin: 20px 10px;
        border-radius: 20px;
    }
    
    .review-card::after {
        font-size: 4rem;
        top: 10px;
        right: 20px;
    }
    
    .review-text {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .review-author {
        flex-direction: column;
        gap: 15px;
        padding-top: 20px;
    }
    
    .review-avatar {
        width: 60px;
        height: 60px;
    }
    
    .avatar-placeholder {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
    
    .no-image-placeholder {
        height: 200px;
    }
    
    .no-image-placeholder i {
        font-size: 2.5rem;
    }
    
    .author-info {
        text-align: center;
    }
    
    .author-info strong {
        font-size: 1.1rem;
    }
    
    .carousel-indicators {
        bottom: 15px;
    }
    
    .carousel-progress-bar {
        width: 150px;
    }
    
    .progress-track {
        height: 2px;
    }
    
    .progress-fill::after {
        width: 4px;
    }
    
    /* Адаптивная высота блока отзывов для планшетов */
    #reviewsCarousel {
        min-height: 450px;
    }
    
    #reviewsCarousel .carousel-inner,
    #reviewsCarousel .carousel-item {
        min-height: 350px;
    }
    
    .show-more-btn, .show-less-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    #allProductsModal .modal-dialog {
        max-width: 95%;
        margin: 10px auto;
    }
    
    #allProductsModal .modal-body {
        max-height: 60vh;
        padding: 15px;
    }
    
    .product-card-small {
        margin-bottom: 15px;
    }
    
    .product-image-small {
        height: 120px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .contact-item {
        margin-bottom: 20px;
    }
    
    /* Уменьшаем ширину карточек на очень маленьких экранах */
    .products-scroll-container .product-card-wrapper {
        flex: 0 0 240px;
    }
    
    .products-scroll-container {
        gap: 12px;
        padding: 15px 10px;
    }
    
    .scroll-indicator {
        font-size: 0.85rem;
        margin-top: 5px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .carousel-control-prev {
        left: 5px;
    }
    
    .carousel-control-next {
        right: 5px;
    }
    
    .review-card {
        padding: 30px 20px 20px;
        margin: 15px 5px;
        border-radius: 18px;
    }
    
    .review-card::after {
        font-size: 3rem;
        top: 8px;
        right: 15px;
    }
    
    .review-text {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .review-stars {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .review-author {
        gap: 12px;
        padding-top: 15px;
    }
    
    .review-avatar {
        width: 55px;
        height: 55px;
        border-width: 3px;
    }
    
    .avatar-placeholder {
        width: 55px;
        height: 55px;
        font-size: 1.2rem;
        border-width: 3px;
    }
    
    .no-image-placeholder {
        height: 180px;
    }
    
    .no-image-placeholder i {
        font-size: 2rem;
    }
    
    .no-image-placeholder span {
        font-size: 0.8rem;
    }
    
    .author-info strong {
        font-size: 1rem;
    }
    
    .author-info small {
        font-size: 0.9rem;
    }
    
    .carousel-indicators {
        bottom: 10px;
    }
    
    .carousel-progress-bar {
        width: 120px;
    }
    
    .progress-track {
        height: 2px;
    }
    
    .progress-fill::after {
        width: 3px;
    }
    
    /* Адаптивная высота блока отзывов для мобильных */
    #reviewsCarousel {
        min-height: 380px;
    }
    
    #reviewsCarousel .carousel-inner,
    #reviewsCarousel .carousel-item {
        min-height: 320px;
    }
    
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .show-more-btn, .show-less-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        letter-spacing: 0.5px;
    }
    
    .product-title-small {
        font-size: 0.9rem;
    }
    
    .product-desc-small {
        font-size: 0.75rem;
    }
    
    .product-price-small {
        font-size: 0.85rem;
    }
}

/* Скролл */
html {
    scroll-behavior: smooth;
}

/* Заглушки для изображений */
.no-image-placeholder {
    width: 100%;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: var(--text-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.no-image-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    opacity: 0.6;
}

.no-image-placeholder span {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.no-image-placeholder-small {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: var(--primary-color);
    border-radius: 8px;
}

.no-image-placeholder-small i {
    font-size: 2rem;
    opacity: 0.6;
}

.no-image-placeholder-modal {
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: var(--text-light);
    border-radius: 10px;
}

.no-image-placeholder-modal i {
    color: var(--primary-color);
    opacity: 0.6;
    margin-bottom: 15px;
}

.no-image-placeholder-modal p {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

/* Заглушки для аватаров */
.avatar-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
    transition: all 0.3s ease;
}

.avatar-initials {
    font-family: 'Comfortaa', cursive;
    font-weight: 700;
}

/* Загрузка */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Стили для социальных сетей */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.social-link {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(46, 125, 50, 0.1);
    border: 2px solid transparent;
}

.social-link:hover {
    color: var(--karelia-green);
    background: rgba(46, 125, 50, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

.social-link i,
.social-link svg {
    display: block;
    margin-bottom: 0.5rem;
}

.vk-icon {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.social-link:hover .vk-icon {
    transform: scale(1.1);
}

.social-link span {
    font-weight: 500;
    color: inherit;
}

/* Стили для футера */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

footer h5, footer h6 {
    color: var(--primary-color);
    font-weight: 600;
}

footer .text-primary {
    color: var(--primary-color) !important;
}

/* Улучшаем читаемость текста в футере */
footer .text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

footer p {
    color: rgba(255, 255, 255, 0.75);
}

footer a {
    transition: color 0.3s ease, transform 0.2s ease;
}

footer a.text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

footer a.text-muted:hover {
    color: rgba(255, 255, 255, 0.95) !important;
    transform: translateX(3px);
}

footer a:hover {
    color: var(--primary-color) !important;
    transform: translateX(3px);
}

footer .social-links-footer a {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

footer .social-links-footer a:hover {
    transform: translateY(-3px) scale(1.1);
    color: var(--primary-color) !important;
}

footer .contact-info i {
    width: 16px;
    text-align: center;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Адаптивность футера */
@media (max-width: 768px) {
    footer .col-lg-2,
    footer .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    footer h6 {
        margin-top: 1.5rem;
    }
    
    footer .social-links-footer {
        margin-top: 1rem;
    }
}

/* Стили для характеристик продуктов */
.product-specs {
    margin: 0.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.spec-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #6c757d;
    gap: 0.5rem;
}

.spec-item i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Адаптивность для соцсетей */
@media (max-width: 768px) {
    .social-links {
        gap: 1rem;
    }
    
    .social-link {
        padding: 0.75rem;
    }
    
    .social-link i {
        font-size: 1.5rem !important;
    }
}
