/* Стили для главной страницы (urlname: main) */

/* Стили для слайдера на главной */
.hero-slider {
    position: relative;
    margin-bottom: 3rem;
}

/* Стили для секций главной страницы */
.home-section {
    margin: 3rem 0;
}

/* Единый стиль для всех заголовков разделов на главной */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 3rem;
    font-family: 'Alegreya Sans', sans-serif;
}

/* Стили для карточек товаров на главной */
.featured-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* News Section Styles */
.news-section {
    padding: 3rem 5rem; /* 5rem horizontal padding for desktop */
    margin: 4rem 0;
}

/* News Grid for Desktop */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.news-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    border: 2px solid rgba(255, 207, 157, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(10, 38, 71, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(10, 38, 71, 0.15);
    border-color: var(--border-heading-color);
}

.news-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.news-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-date {
    background: var(--border-heading-color);
    color: var(--bg-color);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    display: inline-block;
    border-radius: 0.25rem;
    width: fit-content;
}

.news-card-title {
    margin-top: 0;
    margin-bottom: 0.75rem;
    flex-grow: 1;
}

.news-card-title a {
    font-family: 'Alegreya Sans', sans-serif !important;
    color: var(--bg-color);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.news-card-title a:hover {
    color: var(--border-heading-color);
    text-decoration: none;
}

.news-card-excerpt {
    color: var(--main-text-color);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 0;
    opacity: 0.85;
}

/* Mobile News Slider */
.news-slider {
    position: relative;
    margin: 2rem 0;
    display: none;
}

.news-swiper {
    padding-bottom: 0;
    overflow: hidden;
}

.news-slider .news-card {
    height: auto;
    margin-bottom: 0;
    width: 100%;
}

.news-section .news-swiper .swiper-slide {
    height: auto;
    background: var(--white);
}

/* Pagination for news slider */
.news-pagination {
    text-align: center;
    position: relative;
    margin-top: 1.5rem;
}

.news-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(10, 38, 71, 0.3);
    opacity: 1;
    margin: 0 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    cursor: pointer;
}

.news-pagination .swiper-pagination-bullet-active {
    background: var(--border-heading-color) !important;
    transform: scale(1.2) !important;
    box-shadow: 0 0 0 3px rgba(255, 207, 157, 0.3) !important;
}

/* Ensure news slider active bullets always override Swiper.js defaults */
.news-pagination .swiper-pagination .swiper-pagination-bullet-active {
    background: #FFCF9D !important;
    transform: scale(1.2) !important;
    box-shadow: 0 0 0 3px rgba(255, 207, 157, 0.3) !important;
}

/* FAQ Section Styles */
.faq-section {
    padding: 3rem 5rem;
    margin: 4rem 0;
}

/* Products Section Styles */
.products-section {
    padding: 3rem 5rem;
    margin: 4rem 0;
}

.products-slider {
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Consistent section spacing for all homepage sections */
.news-section,
.faq-section,
.products-section,
.values-section,
.team-section,
.stats-section,
.contact-section {
    padding: 3rem 5rem; /* 5rem horizontal padding for desktop */
    margin: 4rem 0;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .featured-products {
        grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
        gap: 1rem;
    }
    
    /* Mobile responsive for section titles */
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    /* Mobile responsive for sections */
    .news-section,
    .faq-section,
    .products-section,
    .values-section,
    .team-section,
    .stats-section,
    .contact-section {
        padding: 2rem 1rem; /* Minimal horizontal padding on mobile */
        margin: 3rem 0;
    }
    
    /* Hide desktop news grid, show mobile slider */
    .news-grid {
        display: none !important;
    }
    
    .news-slider {
        display: block !important;
        padding: 0;
        margin: 2rem 0;
    }
    
    /* Mobile news card adjustments */
    .news-slider .news-card {
        margin: 0;
        box-shadow: none;
        border: 0.125rem solid #e5e7eb;
    }
    
    /* Disable hover animations for mobile slider */
    
/* Cache bust for pages/main.css */
    .news-slider .news-card:hover {
        transform: none;
        box-shadow: none;
        border-color: rgba(255, 207, 157, 0.35);
    }
    
    .news-slider .news-card:hover .news-card-image img {
        transform: none;
    }
    
    .news-section .news-swiper .swiper-slide {
        padding: 0 0.5rem;
    }
    
    .news-slider .news-card-content {
        padding: 1rem;
    }
    
    .news-slider .news-card-image {
        height: 160px;
    }
}

@media (min-width: 769px) {
    /* Hide mobile slider on desktop, show grid */
    .news-slider {
        display: none !important;
    }
    
    .news-grid {
        display: grid !important;
    }
}

/* Premium Button Styles - No animations, no flickering */
.btn-outline-primary {
    background: var(--primary-blue) !important;
    border: 2px solid var(--primary-blue) !important;
    color: white !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    padding: 1rem 2.5rem !important;
    border-radius: 0.375rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03125rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 13.75rem !important;
    text-decoration: none !important;
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
    /* NO transitions, NO animations, NO transforms */
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background: var(--primary-brown) !important;
    border-color: var(--primary-brown) !important;
    color: white !important;
    text-decoration: none !important;
    padding: 1rem 2.5rem !important;
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
    /* Same padding to prevent content jumping */
}

/* Removed generic svg styles - now using specific .btn-arrow class */

/* Arrow icon styles for all buttons */
.btn-arrow {
    margin-left: 0.5rem;
    vertical-align: middle;
    /* NO transitions, NO animations */
}

/* Desktop arrow sizing (992px and up) */
@media (min-width: 992px) {
    .btn-arrow {
        width: 1rem !important;
        height: 1rem !important;
    }
}

/* Mobile arrow sizing (up to 991px) */
@media (max-width: 991px) {
    .btn-arrow {
        width: 16px !important;
        height: 16px !important;
    }
}

/* No hover effect for arrow - no animations */

/* Mobile responsive styles for buttons */
@media (max-width: 768px) {
    .btn-outline-primary {
        border-radius: 0.5rem; /* Match add-to-cart-btn on mobile */
        padding: 0.8rem 2rem;
        font-size: 1rem;
        min-width: auto;
    }
}