/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: #333;
    background-color: #fefefe;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.french-flag-btn {
    width: 30px;
    height: 22px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    background: linear-gradient(90deg, 
        #002395 33%, 
        #ffffff 33%, 
        #ffffff 66%, 
        #ED2939 66%
    );
    padding: 0;
    margin-left: 0.5rem;
    position: relative;
    overflow: hidden;
}

.french-flag-btn:hover {
    border-color: #0a1931;
    transform: scale(1.05);
    transition: all 0.2s;
}

/* Добавим тень для объема */
.french-flag-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 3px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
    pointer-events: none;
}
/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, .logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #0a1931;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background-color: #8b0000;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: #555;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0; /* Строгий стиль без скруглений */
}

.btn-primary {
    background-color: #0a1931;
    color: #fff;
}

.btn-primary:hover {
    background-color: #8b0000;
}

.btn-secondary {
    background-color: transparent;
    color: #0a1931;
    border: 1px solid #0a1931;
    padding: 10px 20px;
}

.btn-secondary:hover {
    background-color: #0a1931;
    color: #fff;
}
/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 45px;
    display: block;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-list a {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.nav-list a:hover {
    color: #8b0000;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-icon {
    font-size: 1.3rem;
    position: relative;
}

/* ===== HERO SECTION ===== */
.hero {
    margin-top: 80px; /* Высота фиксированного хедера */
    height: 80vh;
    min-height: 600px;
    background: linear-gradient(rgba(10, 25, 49, 0.85), rgba(10, 25, 49, 0.9)), url('images/hero-background.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
}

.hero-title, .hero-subtitle {
    color: #fff;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* ===== SECTIONS COMMON ===== */
.section-padding {
    padding: 6rem 0;
}

.text-center {
    text-align: center;
}

/* ===== FEATURES SECTION ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border: 1px solid #eee;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* ===== PREVIEW PRODUCTS ===== */
.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.products-preview {
    display: grid;
    gap: 2rem;
}

/* Для мобильных - 1 колонка */
@media (max-width: 767px) {
    .products-preview {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Для планшетов - 2 колонки */
@media (min-width: 768px) and (max-width: 991px) {
    .products-preview {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Для десктопа - 3 колонки */
@media (min-width: 992px) {
    .products-preview {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

.product-card-preview {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-card-preview img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    display: block;
    background-color: #f8f8f8;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: transform 0.5s ease;
}

.product-card-preview:hover img {
    transform: scale(1.03);
}

.product-card-preview .product-info {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card-preview h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: #0a1931;
    line-height: 1.3;
}

.product-card-preview p {
    color: #666;
    margin-bottom: 1rem;
    flex-grow: 1;
    line-height: 1.6;
}

.product-card-preview .product-price {
    font-size: 1.5rem;
    color: #8b0000;
    margin: 1rem 0;
    font-weight: 700;
}
/* ===== CONTACT SECTION ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    color: #8b0000;
}

.contact-info p {
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 1.2rem;
    border: 1px solid #ccc;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    background-color: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #0a1931;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #0a1931;
    color: #ccc;
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer h4 {
    color: #fff;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.footer-links ul,
.footer-legal ul {
    list-style: none;
}

.footer-links li,
.footer-legal li {
    margin-bottom: 0.7rem;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    
    .nav-list {
        display: none;
    }
    
    .hero {
        height: 70vh;
        min-height: 500px;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

/* ===== DESKTOP FIXES ===== */
@media (min-width: 769px) {
    .nav-list {
        display: flex !important;
    }
    
    .burger-btn {
        display: none !important;
    }
    
    .products-preview {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .hero {
        height: 90vh;
        max-height: 900px;
    }
    
    .hero .container {
        max-width: 800px;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
        gap: 4rem;
        align-items: start;
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* ===== ADDITIONAL DESKTOP ENHANCEMENTS ===== */
@media (min-width: 1200px) {
    .container {
        padding: 0;
    }
    
    h1 {
        font-size: 4rem;
    }
    
    h2 {
        font-size: 3rem;
    }
}
/* FORCE FIX */
.footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

.contact {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
/* ===== ЛОГОТИП В ШАПКЕ ===== */
.header .logo img {
    filter: brightness(0) invert(0); /* Черный цвет */
    transform: scale(2.5);
    transform-origin: left center; /* Масштабируем от левого края */
}

/* ===== ЛОГОТИП В ФУТЕРЕ ===== */
.footer-logo {
    position: relative; /* Контейнер для позиционирования */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    filter: brightness(0) invert(1); /* Белый цвет */
    transform: scale(0.4);
    transform-origin: left top; /* Масштабируем от левого верхнего угла */
    
    /* Вместо top/left с большими значениями: */
    margin-left: -15px;  /* Легкий сдвиг влево */
    margin-top: -10px;   /* Легкий сдвиг вверх */
    margin-bottom: -25px; /* Компенсация для текста под лого */
    
    /* Фиксируем размеры для стабильности */
    width: 300px;  /* Ширина оригинального лого */
    height: 75px;  /* Высота оригинального лого */
    object-fit: contain;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .header .logo img {
        transform: scale(1.8); /* Чуть меньше на мобильных */
    }
    
    .footer-logo img {
        transform: scale(0.35);
        margin-left: -10px;
        margin-top: -5px;
        margin-bottom: -20px;
    }
    
    .footer-logo p {
        font-size: 0.9rem; /* Уменьшаем текст в футере */
        margin-top: 5px;
    }
}
/* ===== ЛОГОТИП В ФУТЕРЕ ВСЕХ СТРАНИЦ ===== */
.footer-logo img {
    filter: brightness(0) invert(1); /* Делаем белым */
    width: 200px; /* Фиксированная ширина */
    height: auto;
    margin-bottom: 10px;
    transform: scale(1); /* Убираем масштабирование если было */
}

/* Уберите inline-стиль из футера, если он есть */
.footer-logo img[style*="height: 40px"] {
    height: auto !important; /* Переопределяем inline-стиль */
}

/* Сдвигаем весь блок логотипа влево и вверх */
.footer-logo {
    text-align: left;
    margin-top: -10px;
    margin-left: -15px;
}

/* Текст под логотипом */
.footer-logo p {
    font-size: 0.9rem;
    margin-top: 5px;
    max-width: 250px;
}
/* ===== ФУТЕР ДЛЯ МОБИЛЬНЫХ (2 КОЛОНКИ) ===== */
@media (max-width: 768px) {
    .footer-content {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Две колонки */
        gap: 2rem;
        align-items: start;
    }
    
    /* ЛОГОТИП слева */
    .footer-logo {
        grid-column: 1;
        text-align: left;
    }
    
    .footer-logo img {
        width: 160px;
        margin-bottom: 10px;
    }
    
    /* НАВИГАЦИЯ справа */
    .footer-links {
        grid-column: 2;
        text-align: left;
    }
    
    /* ЛЕГАЛЬНАЯ ИНФО справа (под навигацией) */
    .footer-legal {
        grid-column: 2;
        text-align: left;
        margin-top: 1.5rem;
    }
    
    /* ТЕКСТ "Équipement professionnel..." - перемещаем вниз */
    .footer-logo p {
        grid-column: 1 / span 2; /* На всю ширину */
        text-align: center;
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.7);
        margin-top: 2rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        order: 99; /* Размещаем перед копирайтом */
    }
    
    /* КОПИРАЙТ - в самый низ */
    .footer-bottom {
        grid-column: 1 / span 2;
        order: 100; /* Самый последний */
        margin-top: 0.5rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}