﻿/* ===================== ПРЕМИАЛЬНАЯ ГЛАВНАЯ СТРАНИЦА ===================== */
/* Общие контейнеры и отступы */
.section {
    padding: 4rem 0;
}

.section-light {
    background-color: var(--white);
}

.section-gray {
    background-color: var(--light-gray);
}

.container-narrow {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container-narrow {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }
}

/* ===================== HERO SECTION ===================== */
.hero {
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    border-bottom: 1px solid var(--border-light);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero .lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Hero badges */
.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-feature {
    display: flex;
    align-items: flex-start;
    padding: 1.25rem;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: var(--transition);
}

    .hero-feature:hover {
        border-color: var(--accent-blue);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .hero-feature i {
        color: var(--accent-blue);
        font-size: 1.5rem;
        margin-right: 1rem;
        flex-shrink: 0;
    }

    .hero-feature h4 {
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 0.25rem;
    }

    .hero-feature p {
        font-size: 0.875rem;
        color: var(--text-secondary);
        margin: 0;
    }

/* Hero buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
    }
}

/* ===================== SERVICES GRID ===================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

    .service-card:hover {
        border-color: var(--accent-blue);
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 102, 204, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

    .service-icon i {
        font-size: 1.75rem;
        color: var(--accent-blue);
    }

.service-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* ===================== SECTION HEADERS ===================== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===================== ADVANTAGES ===================== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.advantage-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

    .advantage-card:hover {
        border-color: var(--accent-blue);
        box-shadow: var(--shadow-md);
    }

.advantage-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 102, 204, 0.05) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

    .advantage-icon i {
        font-size: 1.5rem;
        color: var(--accent-blue);
    }

.advantage-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.advantage-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ===================== CATEGORIES ===================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .category-card:hover {
        border-color: var(--accent-blue);
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

.category-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 102, 204, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

    .category-icon i {
        font-size: 2rem;
        color: var(--accent-blue);
    }

.category-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.category-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* ===================== PRODUCTS SHOWCASE ===================== */
.products-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.showcase-product-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .showcase-product-card:hover {
        border-color: var(--accent-blue);
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

.product-image-container {
    position: relative;
    padding-top: 75%; /* 4:3 aspect ratio */
    background: var(--light-gray);
    overflow: hidden;
}

    .product-image-container img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 1.5rem;
        transition: transform 0.5s ease;
    }

.showcase-product-card:hover .product-image-container img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    background: var(--accent-blue);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.product-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-sku {
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    flex: 1;
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex: 1;
}

.product-meta {
    margin-bottom: 1.5rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.stock-available {
    color: #28a745;
}

.stock-unavailable {
    color: var(--text-muted);
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

/* ===================== SUB-CATEGORIES ===================== */
.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.subcategory-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition);
    text-align: center;
    height: 100%;
}

    .subcategory-card:hover {
        border-color: var(--accent-blue);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .subcategory-card i {
        font-size: 2rem;
        color: var(--accent-blue);
        margin-bottom: 1rem;
        display: block;
    }

    .subcategory-card h3 {
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 0.75rem;
    }

    .subcategory-card p {
        font-size: 0.875rem;
        color: var(--text-secondary);
        line-height: 1.5;
        margin: 0;
    }

/* ===================== SERVICES ===================== */
.services-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card-large {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2.5rem;
    transition: var(--transition);
    height: 100%;
}

    .service-card-large:hover {
        border-color: var(--accent-blue);
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

    .service-card-large i {
        font-size: 2.5rem;
        color: var(--accent-blue);
        margin-bottom: 1.5rem;
        display: block;
    }

    .service-card-large h3 {
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 1rem;
    }

    .service-card-large p {
        font-size: 0.875rem;
        color: var(--text-secondary);
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

/* ===================== STATISTICS ===================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

    .stat-card:hover {
        border-color: var(--accent-blue);
        box-shadow: var(--shadow-md);
    }

.stat-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 102, 204, 0.05) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

    .stat-icon i {
        font-size: 1.5rem;
        color: var(--accent-blue);
    }

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===================== CONTACTS ===================== */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 992px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.contact-info-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
}

    .contact-info-card:hover {
        border-color: var(--accent-blue);
        transform: translateX(4px);
    }

.contact-info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

    .contact-info-header i {
        font-size: 1.25rem;
        color: var(--accent-blue);
    }

    .contact-info-header h4 {
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0;
    }

.contact-info-content {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

    .contact-info-content a {
        color: inherit;
        text-decoration: none;
        transition: var(--transition);
    }

        .contact-info-content a:hover {
            color: var(--accent-blue);
        }

.contact-form-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
}

    .contact-form-card h3 {
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 1.5rem;
    }

.contact-form .form-control {
    background: var(--white);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: var(--transition);
}

    .contact-form .form-control:focus {
        border-color: var(--accent-blue);
        box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    }

.contact-form label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
}

/* ===================== CTA SECTION ===================== */
.cta-section {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    border-top: 1px solid var(--border-light);
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

        .cta-buttons .btn {
            min-width: 250px;
        }
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

    /* Delay for staggered animations */
    .fade-in-up.delay-1 {
        animation-delay: 0.1s;
    }

    .fade-in-up.delay-2 {
        animation-delay: 0.2s;
    }

    .fade-in-up.delay-3 {
        animation-delay: 0.3s;
    }

    .fade-in-up.delay-4 {
        animation-delay: 0.4s;
    }

/* ===================== UTILITY CLASSES ===================== */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.px-4 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-3 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* ===================== RESPONSIVE ADJUSTMENTS ===================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .services-cards,
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .products-showcase-grid {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 2rem;
    }

    .contact-form-card {
        padding: 1.5rem;
    }
}
