/* Базовые настройки */
html {
    scroll-behavior: smooth;
}
body { 
    font-family: 'Inter', sans-serif; 
    background-color: #0f172a; /* Темный фон */
    color: #cbd5e1;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Цвета бренда */
.text-brand { color: #7c3aed; }
.bg-brand { background-color: #7c3aed; }

/* Кнопки */
.btn-primary {
    background-color: #7c3aed;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.5);
}
.btn-primary:hover {
    background-color: #6d28d9;
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid #475569;
    color: #cbd5e1;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    border-color: #7c3aed;
    color: white;
}

/* Шапка */
header {
    border-bottom: 1px solid #1e293b;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-area { display: flex; align-items: center; gap: 0.75rem; }
.logo-box {
    border: 2px solid #7c3aed;
    border-radius: 0.5rem;
    padding: 0.25rem 0.75rem;
    font-family: monospace;
    font-weight: bold;
    color: #7c3aed;
    font-size: 1.25rem;
}
.logo-box-small { color: #7c3aed; font-family: monospace; font-weight: bold; font-size: 1.25rem; }
.logo-text { color: white; font-weight: bold; font-size: 1.5rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* Главный экран */
.hero-section {
    max-width: 72rem;
    margin: 0 auto;
    padding: 3rem 1.5rem; /* Уменьшили отступы для мобильных */
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}
@media (min-width: 768px) {
    /* Уменьшили верхний/нижний отступ с 8rem до 4rem. Сделали текст чуть шире картинки */
    .hero-section { flex-direction: row; padding: 4rem 1.5rem; }
    .hero-content { width: 55%; } 
    .hero-image-area { width: 45%; }
}
.hero-title { font-size: 2rem; font-weight: 800; color: white; line-height: 1.2; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .hero-title { font-size: 2.8rem; } } /* Уменьшили шрифт с 3.5rem до 2.8rem */
.hero-subtitle { font-size: 1.125rem; color: #94a3b8; margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; }

/* Изображение */
.hero-image-area { position: relative; width: 100%; }
.glow-bg {
    position: absolute; inset: 0;
    background-color: #7c3aed; filter: blur(100px); opacity: 0.2;
    border-radius: 50%;
}
.image-placeholder {
    position: relative;
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 1rem;
    aspect-ratio: 1 / 1;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    color: #64748b; font-family: monospace; text-align: center;
}
/* Лого */
.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    /* border-radius: 8px; */ 
}

.logo-img-small {
    height: 40px; /* Высота логотипа в подвале (чуть меньше) */
    width: auto;
    object-fit: contain;
}

/* Старый текстовый лого */
/* .logo-box {
    border: 2px solid #7c3aed;
    border-radius: 0.5rem;
    padding: 0.25rem 0.75rem;
    font-family: monospace;
    font-weight: bold;
    color: #7c3aed;
    font-size: 1.25rem;
} */

/* Преимущества */
.features-section { 
    background-color: #1e293b; 
    border-top: 1px solid #334155; 
    border-bottom: 1px solid #334155; 
    padding: 4rem 0; 
}
.features-grid { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card { padding: 1.5rem; border-radius: 0.75rem; transition: background 0.3s; }
.feature-card:hover { background-color: #334155; }
.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 { color: white; font-size: 1.25rem; font-weight: bold; margin-bottom: 0.5rem; }
.feature-card p { color: #94a3b8; font-size: 0.875rem; }

/* Каталог */
.catalog-section { max-width: 72rem; margin: 0 auto; padding: 6rem 1.5rem; }
.catalog-section h2 { font-size: 2rem; font-weight: bold; color: white; text-align: center; margin-bottom: 3rem; }
.product-card { background-color: #1e293b; border: 1px solid #334155; border-radius: 1rem; display: flex; flex-direction: column; max-width: 56rem; margin: 0 auto; overflow: hidden; transition: border-color 0.3s; }
.product-card:hover { border-color: #7c3aed; }
@media (min-width: 768px) { 
    .product-card { flex-direction: row; } 
}
.product-image { background-color: #334155; padding: 3rem; display: flex; align-items: center; justify-content: center; min-height: 300px; }
@media (min-width: 768px) { 
    .product-image { width: 50%; } 
}
.product-info { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 768px) { 
    .product-info { width: 50%; } 
}
.product-info h3 { font-size: 1.5rem; font-weight: bold; color: white; margin-bottom: 0.5rem; }
.product-info p { color: #94a3b8; margin-bottom: 1.5rem; }
.product-info ul { list-style: none; padding: 0; margin-bottom: 2rem; color: #cbd5e1; font-size: 0.875rem; line-height: 1.8; }
.product-buy { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.price { font-size: 1.5rem; font-weight: bold; color: white; }

/* О нас */
.about-section { background-color: #1e293b; padding: 6rem 0; border-top: 1px solid #334155; }
.about-content { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem; text-align: center; }
.about-content h2 { color: #7c3aed; font-size: 0.875rem; font-weight: bold; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.about-content h3 { font-size: 2rem; font-weight: bold; color: white; margin-bottom: 1.5rem; }
.about-content p { font-size: 1.125rem; color: #94a3b8; line-height: 1.8; font-style: italic; }

/* Стили для пустого каталога */
.empty-catalog {
    max-width: 48rem;
    margin: 0 auto;
    padding: 3rem;
    text-align: center;
    background-color: #1e293b;
    border: 1px dashed #475569;
    border-radius: 1rem;
    color: #94a3b8;
    font-size: 1.125rem;
}

/* Немного отделим блок "О нас" от "Истории" */
.about-section {
    background-color: #0f172a; /* Сделаем его чуть темнее, чтобы выделить */
    border-top: 1px solid #334155;
    border-bottom: 1px solid #1e293b;
}

/* Слегка поправим отступы в заголовках */
.about-content h2, .story-content h2 {
    color: #7c3aed;
    font-size: 0.875rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.about-content h3, .story-content h3 {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1.5rem;
}

/* История */
.story-section { background-color: #1e293b; padding: 6rem 0; border-top: 1px solid #334155; }
.story-content { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem; text-align: center; }
.story-content h2 { color: #7c3aed; font-size: 0.875rem; font-weight: bold; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.story-content h3 { font-size: 2rem; font-weight: bold; color: white; margin-bottom: 1.5rem; }
.story-content p { font-size: 1.125rem; color: #94a3b8; line-height: 1.8; font-style: italic; }

/* Подвал */
footer { border-top: 1px solid #334155; padding: 3rem 0; background-color: #0f172a; text-align: center; }
.footer-container { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.footer-links { display: flex; gap: 1.5rem; font-size: 0.875rem; }
.footer-links a { color: #94a3b8; text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: #7c3aed; }
.copyright { font-size: 0.75rem; color: #475569; }
@media (min-width: 768px) { 
    .footer-container { 
        display: grid;
        grid-template-columns: 1fr auto 1fr; /* Логотип слева, кнопки по центру, копирайт справа */
        align-items: center;
    } 
    .logo-area {
        justify-self: start; /* Прижимаем логотип влево */
    }
    .footer-links {
        justify-self: center; /* Ставим ссылки ровно по центру */
    }
    .copyright {
        justify-self: end; /* Прижимаем текст вправо */
        text-align: right;
    }
}

