/* Файл: /css/main.css */
:root {
    --black: #111111;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray-border: #e0e0e0;
    --text-main: #333333;
    --text-muted: #777777;
    --accent: #b8860b; 
    --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased; 
    overflow-x: hidden; 
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Верхняя панель */
.top-bar {
    background-color: var(--black);
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--white);
}

.top-bar-links { display: flex; gap: 20px; }
.top-bar a:hover { color: var(--accent); }

/* Шапка */
.header {
    border-bottom: 1px solid var(--gray-border);
    padding: 15px 20px;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Логотип */
.header-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 24px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 1px;
    line-height: 1;
    user-select: none;
}

/* МОДА */
.header-logo .logo-moda {
    font-weight: 900;
    color: var(--white);
    -webkit-text-stroke: 1px var(--black);
    text-shadow: 1px 1px 0 var(--black), -1px -1px 0 var(--black), 1px -1px 0 var(--black), -1px 1px 0 var(--black);
}

/* ИТАЛИЯ */
.header-logo .logo-italia {
    font-weight: 500; 
    letter-spacing: -0.5px; 
    color: var(--black);
}

.nav-main {
    display: flex;
    gap: 25px;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-main a:hover { color: var(--text-muted); }

.header-actions { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
}

/* Поиск */
.search-container { position: relative; }

.search-bar {
    background: var(--gray-light);
    border: 1px solid var(--gray-border);
    padding: 10px 15px;
    border-radius: 20px;
    width: 200px;
    font-size: 13px;
    outline: none;
    transition: border 0.3s;
}

.search-bar:focus { border-color: var(--black); }

/* SVG-иконки */
.icon-btn {
    background: none; border: none; cursor: pointer; padding: 5px; display: flex; align-items: center; justify-content: center; color: var(--black); transition: transform 0.2s, color 0.2s;
}
.icon-btn:hover { transform: scale(1.1); color: var(--text-muted); }
.icon-btn svg { width: 22px; height: 22px; stroke-width: 1.5; }

/* --- HERO-БАННЕР --- */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.hero-half {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-half.left {
    background-image: url('/images/banners/hero-bg1.jpg'); 
    background-color: #e0e0e0;
}
.hero-half.right {
    background-image: url('/images/banners/hero-bg2.jpg');
    background-color: #d0d0d0;
}

/* Центральный логотип на баннере */
.hero-logo-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    pointer-events: none;
}

.logo-word {
    font-family: 'Arial Black', Impact, sans-serif;
    font-size: 10vw;
    line-height: 1;
    white-space: nowrap;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.4);
}

.logo-moda-container {
    display: flex;
    justify-content: flex-end;
    padding-right: 0.5vw;
}

.logo-moda-hero {
    color: var(--white);
    font-weight: 900;
}

.logo-italia-container {
    display: flex;
    justify-content: flex-start;
    padding-left: 0.5vw;
}

.logo-italia-hero {
    color: transparent;
    -webkit-text-stroke: 2px var(--white);
    font-weight: 400;
}

/* Кнопки поверх баннера */
.hero-buttons {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.btn {
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: 2px solid var(--black);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary { background-color: var(--black); color: var(--white); }
.btn-primary:hover { background-color: var(--white); color: var(--black); border-color: var(--white); }
.btn-secondary { background-color: var(--white); color: var(--black); }
.btn-secondary:hover { background-color: var(--black); color: var(--white); border-color: var(--black); }

/* Преимущества */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background-color: var(--gray-border);
    border-bottom: 1px solid var(--gray-border);
}

.feature-card { background-color: var(--white); padding: 30px 20px; text-align: center; }
.feature-card h3 { font-size: 16px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.feature-card p { font-size: 13px; color: var(--text-muted); }

/* Блок-баннер с призывом к калькулятору размеров */
.size-banner {
    background-color: var(--gray-light);
    text-align: center;
    padding: 40px 20px;
    border-bottom: 1px solid var(--gray-border);
}
.size-banner h2 { font-size: 24px; margin-bottom: 10px; font-weight: 500; }
.size-banner p { color: var(--text-muted); margin-bottom: 20px; font-size: 15px; }

/* Секции с товарами */
.section-container { max-width: 1400px; margin: 0 auto; padding: 60px 20px; }
.section-title { text-align: center; font-size: 28px; font-weight: 500; margin-bottom: 15px; letter-spacing: 1px; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
.product-card { transition: opacity 0.3s ease; }

.product-image {
    background-color: var(--gray-light);
    height: 400px;
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}

.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-image img { transform: scale(1.05); }

.product-badge {
    position: absolute; top: 10px; left: 10px; padding: 5px 10px; font-size: 11px; font-weight: 600; text-transform: uppercase; z-index: 2;
}

.product-info { text-align: center; }
.product-brand { font-size: 12px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 5px; letter-spacing: 1px; }
.product-name { font-size: 15px; font-weight: 500; margin-bottom: 10px; }
.product-price { font-size: 16px; font-weight: 600; margin-bottom: 15px; }

.btn-buy {
    width: 100%; padding: 12px; background: var(--white); border: 1px solid var(--black); color: var(--black); text-transform: uppercase; font-size: 12px; font-weight: 600; letter-spacing: 1px; cursor: pointer; transition: all 0.3s;
}
.btn-buy:hover { background: var(--black); color: var(--white); }

/* Плавающая кнопка чата */
.chat-widget {
    position: fixed; bottom: 30px; right: 30px; background-color: var(--black); color: var(--white); padding: 15px 25px; border-radius: 50px; font-weight: bold; box-shadow: 0 5px 15px rgba(0,0,0,0.3); display: flex; align-items: center; gap: 10px; cursor: pointer; transition: transform 0.2s; z-index: 1000;
}
.chat-widget:hover { transform: scale(1.05); }

/* Блок подписки */
.cta-section { background-color: var(--gray-light); padding: 80px 20px; text-align: center; }
.cta-section h2 { font-size: 32px; margin-bottom: 15px; }
.cta-section p { color: var(--text-muted); margin-bottom: 30px; }
.cta-form { display: flex; justify-content: center; gap: 10px; max-width: 500px; margin: 0 auto; }
.cta-form input { flex: 1; padding: 15px; border: 1px solid var(--gray-border); outline: none; }

/* Подвал */
.footer { background-color: var(--black); color: var(--white); padding: 60px 20px 20px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1400px; margin: 0 auto; gap: 40px; }
.footer-col h4 { font-size: 14px; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul li { margin-bottom: 12px; font-size: 14px; color: #aaaaaa; cursor: pointer; transition: color 0.2s; }
.footer-col ul li:hover { color: var(--white); }
.footer-bottom { max-width: 1400px; margin: 60px auto 0; padding-top: 20px; border-top: 1px solid #333; font-size: 12px; color: #777; display: flex; justify-content: space-between; }

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 1024px) {
    .product-grid, .features { grid-template-columns: repeat(2, 1fr); }
    .search-bar { display: none; } 
    .logo-word { font-size: 12vw; } 
}

@media (max-width: 768px) {
    .header-logo { display: none; } 
    .nav-main { display: none; } 
    
    .header-content { justify-content: flex-end; } 
    .header-actions { gap: 15px; }

    .hero { grid-template-columns: 1fr; height: 60vh; }
    .hero-half.right { display: none; } 
    
    .hero-logo-overlay { 
        grid-template-columns: 1fr; 
        grid-template-rows: auto auto;
        justify-content: center;
        align-content: center;
        gap: 0; 
    }
    .logo-moda-container { justify-content: center; padding: 0; }
    .logo-italia-container { justify-content: center; padding: 0; }
    
    .logo-word { 
        font-size: 18vw; 
        line-height: 0.9; 
    }
    
    .hero-buttons { flex-direction: column; width: 80%; }
    .hero-buttons .btn { width: 100%; text-align: center; }
    
    .footer-cols { grid-template-columns: 1fr; gap: 20px; }
    .cta-form { flex-direction: column; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .product-image { height: 300px; }
    .size-banner h2 { font-size: 20px; }
}