/* --- Сброс и Базовые стили --- */
:root {
    --bg-color: #0a0c10;       /* Глубокий космический чёрный (с лёгким стильным синим отливом) */
    --bg-dark: #121620;        /* Контрастный тёмно-графитовый для карточек */
    --bg-darker: #07090d;      /* Промежуточный оттенок для плашек */
    --text-color: #ffffff;
    --text-muted: #94a3b8;     /* Более мягкий серебристый цвет для второстепенного текста */
    --primary-gradient: linear-gradient(135deg, #00f0ff, #0072ff); /* Более яркий неоновый циан */
    --secondary-gradient: linear-gradient(135deg, #ff007f, #7928ca); /* Пурпурно-розовый неон */
    --accent-color: #00f0ff;
    --font-main: 'Montserrat', sans-serif;
    --font-heading: 'Orbitron', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h4 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    margin: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    margin: 5px;
    text-transform: uppercase;
    padding: 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
    background-color: var(--bg-color) !important;
    border-bottom: 1px solid #1e293b; /* Контрастная аккуратная линия вместо серого фона */
}

.bg-dark {
    background-color: var(--bg-darker) !important; /* Мягкое благородное потемнение секций */
}

.bg-darker {
    background-color: var(--bg-color) !important;
}

/* --- Кнопки --- */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #0a0c10; /* Чёрный текст на яркой кнопке для бешеного контраста */
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}

.btn-telegram {
    background: linear-gradient(135deg, #229ED9, #0088cc);
    color: white;
}

.btn-secondary {
    background: var(--bg-dark);
    color: white;
    border: 1px solid #334155;
}

/* --- Шапка --- */
.header {
    background-color: rgba(10, 12, 16, 0.85); /* Эффект размытого стекла */
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid #1e293b;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    background-clip: border-box;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-list {
    display: flex;
    gap: 20px;
}

.nav-list a {
    padding: 5px 10px;
    border-radius: 5px;
    transition: 0.3s;
    color: var(--text-muted);
}

.nav-list a:hover {
    color: var(--accent-color);
}

.nav-list a.active {
    background: var(--primary-gradient);
    color: #0a0c10;
    font-weight: bold;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.burger {
    display: none;
    cursor: pointer;
}

/* --- Главный блок (Hero) --- */
.hero-section {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3rem;
    background: var(--secondary-gradient);
    background-clip: border-box;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-image {
    flex: 1;
}

.placeholder-img {
    width: 100%;
    height: 300px;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    color: var(--accent-color);
    font-family: var(--font-heading);
    object-fit: cover;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.15);
}

/* --- Сетки --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.card {
    background: var(--bg-dark);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #1e293b;
    transition: 0.3s;
}

.card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

/* --- Интерактив: Как примерить --- */
.try-on-container {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
}

.instruction-step {
    flex: 1;
}

.instruction-step p {
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-left: 3px solid var(--accent-color);
    padding-left: 10px;
}

.try-on-demo {
    flex: 1;
}

.demo-card {
    position: relative;
    width: 300px;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    cursor: crosshair;
}

.demo-img-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.demo-img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.img-before {
    opacity: 1;
    z-index: 1;
}

.img-after {
    opacity: 0;
    z-index: 2;
}

.demo-card:hover .img-before {
    opacity: 0;
}

.demo-card:hover .img-after {
    opacity: 1;
}

.demo-caption {
    text-align: center;
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Шаги заказа --- */
.steps-timeline {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-num {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: #0a0c10;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: bold;
    font-size: 1.2rem;
}

/* --- Бренды --- */
.brands-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.brands-list span {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffffff; /* Делаем текст чисто белым и читаемым */
    background: var(--bg-dark); /* Темный фон плашки, чтобы выделяться */
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid rgba(0, 240, 255, 0.2); /* Тонкий неоновый контур */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* Эффект при наведении на бренд */
.brands-list span:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    transform: translateY(-2px);
}

/* --- Каталог --- */
.catalog-filters {
    margin: 30px 0;
    display: flex;
    gap: 15px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--text-color);
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 20px;
    transition: 0.3s;
    font-weight: 500;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--accent-color);
    color: #0a0c10;
    font-weight: bold;
}

/* --- Категории --- */
.category-section {
    margin-bottom: 50px;
}

.category-title {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 240, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Сетка товаров --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* --- Карточка товара (Обновленный шикарный контраст) --- */
.product-card {
    background: var(--bg-dark) !important; /* Выделяется из фона страницы */
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #1e293b !important;
    transition: all 0.3s ease;
    max-width: 280px;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color) !important;
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.25);
}

/* Изображение товара */
.product-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
    background: #07090d;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

/* Бейдж */
.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff007f, #7928ca); /* Розовый неон для бейджей, сочно контрастирует */
    color: #fff;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Информация о товаре */
.product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 12px;
}

/* Кнопка */
.product-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
}

.product-btn:hover {
    background: var(--primary-gradient);
    color: #0a0c10;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.4);
}

/* --- Детальная страница товара --- */
.product-detail {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.product-gallery {
    flex: 1;
    min-width: 300px;
}

.model-preview {
    margin-top: 20px;
    text-align: center;
}

.model-preview img {
    margin: 0 auto;
    border-radius: 10px;
}

.product-info-detail {
    flex: 1;
    min-width: 300px;
}

.features, .description {
    margin: 20px 0;
    background: var(--bg-dark);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #1e293b;
}

.features ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 10px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* --- Форма --- */
.contact-form-wrapper {
    max-width: 600px;
    margin: 60px auto 0;
    background: var(--bg-dark);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #1e293b;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea, .contact-form select {
    padding: 15px;
    background: var(--bg-color);
    border: 1px solid #334155;
    color: white;
    border-radius: 5px;
    font-family: var(--font-main);
}

.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* --- Услуги и Инфографика --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-card {
    background: var(--bg-dark) !important;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #1e293b !important;
}

.service-card:hover {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.service-card img {
    border-radius: 10px;
    margin-bottom: 15px;
}

.infographic-block {
    margin-top: 60px;
    text-align: center;
    background: var(--bg-dark) !important;
    padding: 40px;
    border-radius: 10px;
    border: 1px solid #1e293b;
}

.infographic-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.iso-step {
    padding: 15px 25px;
    background: var(--secondary-gradient);
    border-radius: 5px;
    font-weight: bold;
    color: white;
}

.iso-arrow {
    font-size: 2rem;
    color: var(--text-muted);
}

/* --- Подвал --- */
.footer {
    background: #07090d;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid #1e293b;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.slogan {
    color: var(--accent-color);
    font-style: italic;
    margin-top: 5px;
}

#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    box-shadow: 0 0 15px rgba(0,0,0,0.7);
    display: none;
}

/* --- Модальное окно --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 7, 10, 0.85);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-dark);
    padding: 40px;
    border: 1px solid var(--accent-color);
    border-radius: 10px;
    max-width: 500px;
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-muted);
}

.close-modal:hover {
    color: #fff;
}

/* Стили для блока примерки */
.try-on-container {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.instruction-step {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 1.2rem;
    color: #e0e0e0;
}

.instruction-step p {
    background: var(--bg-dark);
    padding: 12px 24px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
    border-top: 1px solid #1e293b;
    border-bottom: 1px solid #1e293b;
    border-right: 1px solid #1e293b;
}

.demo-card {
    position: relative;
    width: 400px;
    height: 500px;
    overflow: hidden;
    border-radius: 15px;
    border: 2px solid rgba(0, 240, 255, 0.2);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.demo-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.2);
}

.demo-img-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.img-before,
.img-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.img-after {
    opacity: 0;
}

.demo-card:hover .img-after {
    opacity: 1;
}

.demo-card:hover .img-before {
    opacity: 0;
}

.demo-caption {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 12, 16, 0.85);
    border: 1px solid #1e293b;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    white-space: nowrap;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Адаптивность --- */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .nav {
        display: none;
        width: 100%;
        order: 3;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }
    
    .burger {
        display: block;
    }
    
    .hero-section {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }

    .try-on-container {
        flex-direction: column;
    }
    
    .steps-timeline {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .product-image {
        height: 160px;
    }
    
    .category-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-image {
        height: 140px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-title {
        font-size: 0.85rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
}