:root {
    --bg-dark: #0a0d12;
    --neon-blue: #00e5ff;
    --overlay: rgba(10, 13, 18, 0.85);
    --card-bg: #12171f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: #fff;
    line-height: 1.6;
    padding-top: 110px; /* Отступ под шапку */
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- ШАПКА САЙТА --- */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.top-bar {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    padding: 8px 0;
    font-size: 13px;
    color: #8b949e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.info-item { margin-right: 20px; }
.info-item i { color: var(--neon-blue); margin-right: 6px; }

.phone-link { color: #fff; text-decoration: none; font-weight: 700; }

.navbar {
    background: rgba(10, 13, 18, 0.85);
    backdrop-filter: blur(15px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 229, 255, 0.1);
}

/* Логотип */
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-wrapper {
    position: relative;
    font-size: 24px;
    color: var(--neon-blue);
    background: rgba(0, 229, 255, 0.1);
    padding: 8px;
    border-radius: 10px;
}
.logo-wrapper .check {
    position: absolute; bottom: 2px; right: 2px;
    font-size: 12px; color: #00ff88; background: #0a0d12; border-radius: 50%;
}
.brand-name { font-size: 18px; font-weight: 900; display: block; }
.brand-sub { font-size: 9px; color: var(--neon-blue); letter-spacing: 2px; }

/* Меню - улучшенные стили */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-grow: 1;
    justify-content: center;
}
.nav-menu a {
    text-decoration: none;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    transition: 0.3s;
    position: relative;
    padding-bottom: 4px;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-blue);
    transition: width 0.3s ease;
}
.nav-menu a:hover::after {
    width: 100%;
}
.nav-menu a:hover { color: var(--neon-blue); }

/* Кнопка в шапке */
.btn-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #00e5ff 0%, #00a2ff 100%);
    color: #000 !important;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: 0.3s;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 229, 255, 0.4); }

/* --- ГЛАВНЫЙ БЛОК --- */
.main-bg {
    background: linear-gradient(to right, var(--overlay), rgba(10, 13, 18, 0.4)), 
                url('img/hero-bg.png');
    background-size: cover;
    background-position: center;
    padding: 120px 0;
}

h1 { font-size: 3rem; font-weight: 900; margin-bottom: 20px; text-transform: uppercase; }
.neon-text { color: var(--neon-blue); text-shadow: 0 0 15px rgba(0, 229, 255, 0.4); }
.hero-subtext { max-width: 600px; color: #a1a1a1; margin-bottom: 30px; font-size: 1.1rem; }

.btn-primary {
    background: var(--neon-blue); color: #000;
    padding: 18px 35px; border-radius: 5px; text-decoration: none;
    font-weight: bold; display: inline-block; transition: 0.3s;
}
.btn-secondary {
    border: 1px solid #fff; color: #fff;
    padding: 18px 35px; border-radius: 5px; text-decoration: none;
    margin-left: 15px; display: inline-block;
}

/* --- СТАТИСТИКА --- */
.pattern-bg {
    background: linear-gradient(var(--overlay), var(--overlay)),
                url('https://images.unsplash.com/photo-1581092335871-4b3d5c9f6a3d?auto=format&fit=crop&q=80&w=1920');
    background-size: cover; padding: 60px 0;
    border-top: 1px solid var(--neon-blue); border-bottom: 1px solid var(--neon-blue);
}
.stats-grid { display: flex; justify-content: space-between; text-align: center; }
.stat-num { display: block; font-size: 2.5rem; font-weight: 900; color: var(--neon-blue); }
.stat-desc { font-size: 0.8rem; color: #ccc; text-transform: uppercase; }


/* Секция услуг */
.services-section {
    padding: 80px 0;
}

.section-subtitle {
    text-align: center;
    color: #8b949e;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Сетка карточек */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}


/* Общие настройки карточек */
.service-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 229, 255, 0.2);
    min-height: 450px;
    display: flex;
    transition: 0.4s ease-in-out;
    background-size: cover;
    background-position: center;
}

.card-content {
    background: linear-gradient(to bottom, rgba(10, 13, 18, 0.7) 0%, rgba(10, 13, 18, 0.95) 100%);
    padding: 40px 25px;
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: 0.4s;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-blue);
    box-shadow: 0 15px 40px rgba(0, 229, 255, 0.2);
}

.service-card:hover .card-content {
    background: linear-gradient(to bottom, rgba(10, 13, 18, 0.5) 0%, rgba(10, 13, 18, 0.9) 100%);
}

.card-tv { background-image: url('img/card-tv.png'); }
.card-pc { background-image: url('img/card-pc.png'); }
.card-phone { background-image: url('img/card-phone.png'); }
.card-print { background-image: url('img/card-print.png'); }

.symptoms-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px;
    flex-grow: 1;
}

.symptoms-list li {
    font-size: 14px;
    color: #e0e0e0;
    margin-bottom: 12px;
    text-align: left;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.btn-service {
    display: block;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    text-decoration: none;
    padding: 12px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

.btn-service:hover {
    background: var(--neon-blue);
    color: #000;
}

/* --- ГАЛЕРЕЯ --- */
.gallery-section {
    padding: 60px 0;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 229, 255, 0.2);
    transition: 0.3s;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: 0.4s;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, #000, transparent);
    padding: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}
.gallery-item:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 10px 25px rgba(0, 229, 255, 0.2);
}

/* --- ДОСТАВКА --- */
.delivery-bg {
    background: linear-gradient(to right, var(--overlay) 40%, rgba(10, 13, 18, 0.4)), 
                url('https://images.unsplash.com/photo-1512418490979-92798ccc1380?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    border-top: 1px solid rgba(0, 229, 255, 0.1);
}
.delivery-wrapper {
    display: flex;
    justify-content: flex-start;
}

.delivery-text {
    max-width: 700px;
}

.delivery-main-p {
    color: #a1a1a1;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.steps-list {
    margin-bottom: 50px;
}

.step-item {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.step-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--neon-blue);
    background: rgba(0, 229, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
    line-height: 1;
    min-width: 50px;
    text-align: center;
}

.step-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #fff;
}

.step-info p {
    font-size: 0.95rem;
    color: #8b949e;
    line-height: 1.5;
}

.delivery-footer {
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--neon-blue);
}

.promo-box {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.promo-box i {
    font-size: 1.8rem;
    color: var(--neon-blue);
}

.promo-box strong {
    color: var(--neon-blue);
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .delivery-footer {
        flex-direction: column;
        text-align: center;
    }
    .step-item {
        gap: 15px;
    }
}
.delivery-content { max-width: 500px; margin-left: auto; }
.d-feat { margin-top: 15px; font-weight: bold; }
.d-feat i { color: var(--neon-blue); margin-right: 10px; }

/* --- ФУТЕР --- */
footer { padding: 50px 0; border-top: 1px solid #222; background: #07090d; }
.footer-main { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-tel { font-size: 1.8rem; color: var(--neon-blue); text-decoration: none; font-weight: 900; }

/* Баннер квиза на странице */
.quiz-banner {
    background: linear-gradient(90deg, #1c2128 0%, #0a0d12 100%);
    border: 2px solid var(--neon-blue);
    padding: 30px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px auto;
    flex-wrap: wrap;
    gap: 20px;
}

.quiz-text h3 { color: var(--neon-blue); margin-bottom: 5px; }
.quiz-text p { margin-bottom: 0; }

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    background-color: #161b22;
    margin: 10% auto;
    padding: 40px;
    border: 1px solid var(--neon-blue);
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    position: relative;
    text-align: center;
}

.close {
    position: absolute; right: 20px; top: 10px;
    color: #fff; font-size: 30px; cursor: pointer;
}

.quiz-step { display: none; }
.quiz-step.active { display: block; }

.step-counter { color: var(--neon-blue); font-size: 0.8rem; text-transform: uppercase; }

.quiz-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.quiz-options button {
    background: rgba(255,255,255,0.05);
    border: 1px solid #30363d;
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.quiz-options button:hover {
    border-color: var(--neon-blue);
    background: rgba(0, 229, 255, 0.1);
}

#quiz-form { margin-top: 25px; }
#quiz-phone {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #30363d;
    background: #0d1117;
    color: #fff;
    margin-bottom: 15px;
}

/* --- ОБНОВЛЕННОЕ МЕНЮ КАТЕГОРИЙ --- */
.service-menu {
    background: rgba(10, 13, 18, 0.6); /* Темный полупрозрачный фон */
    backdrop-filter: blur(10px); /* Эффект стекла */
    border-bottom: 1px solid rgba(0, 229, 255, 0.2); /* Тонкая неоновая линия */
    padding: 12px 0;
}

.service-list {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px; /* Расстояние между ссылками */
}

.service-list li a {
    text-decoration: none;
    color: #8b949e; /* Серый цвет для неактивных */
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.service-list li a:hover, 
.service-list li a.active {
    color: var(--neon-blue); /* Твой фирменный голубой при наведении */
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}


/* Исправление логотипа */
.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-name { color: #fff; display: block; font-size: 18px; font-weight: 900; }
.brand-sub { color: #8b949e; display: block; font-size: 9px; letter-spacing: 2px; }

/* Стили для сервисного меню */
.service-menu {
    background: rgba(10, 13, 18, 0.95);
    border-bottom: 1px solid var(--neon-blue);
    padding: 12px 0;
}

.service-list {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.service-list a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    transition: 0.3s;
}

/* Подсветка активной страницы */
.service-list a.active {
    color: var(--neon-blue) !important;
    font-weight: bold;
}

/* Исправление логотипа */
.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-name { color: #fff; display: block; font-size: 18px; font-weight: 900; }
.brand-sub { color: #8b949e; display: block; font-size: 9px; letter-spacing: 2px; }

/* Стили для сервисного меню */
.service-menu {
    background: rgba(10, 13, 18, 0.95);
    border-bottom: 1px solid var(--neon-blue);
    padding: 12px 0;
}

.service-list {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.service-list a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    transition: 0.3s;
}

/* Подсветка активной страницы */
.service-list a.active {
    color: var(--neon-blue) !important;
    font-weight: bold;
}

.section-title {
    text-align: center;
    width: 100%; /* Чтобы заголовок занимал всю ширину и мог центрироваться */
    margin-bottom: 30px; /* По желанию, добавьте отступ снизу до картинок */
}

/* Настройка сетки для секции доставки */
.delivery-wrapper {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.delivery-left {
    flex: 1;
    max-width: 550px;
}

.delivery-docs {
    flex: 1;
    background: rgba(10, 13, 18, 0.6);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(0, 229, 255, 0.1);
    backdrop-filter: blur(10px);
}

.docs-header {
    margin-bottom: 25px;
    text-align: center;
}

.docs-header h3 {
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.docs-header p {
    font-size: 0.9rem;
    color: #8b949e;
}

/* Сетка карточек документов */
.docs-grid {
    display: flex;
    gap: 20px;
}

.doc-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.doc-card:hover {
    border-color: var(--neon-blue);
    transform: translateY(-5px);
}

.doc-image {
    width: 100%;
    height: 180px;
    background: #1c2128; /* Цвет-заглушка, пока нет фото */
    overflow: hidden;
}

.doc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.doc-info {
    padding: 15px;
}

.doc-info h4 {
    color: var(--neon-blue);
    font-size: 1rem;
    margin-bottom: 8px;
}

.doc-info p {
    font-size: 0.85rem;
    color: #a1a1a1;
    line-height: 1.4;
}

/* --- ФИНАЛЬНЫЙ БЛОК АДАПТАЦИИ --- */

@media screen and (max-width: 768px) {
    /* 1. Настройка тела страницы */
    body {
        padding-top: 180px !important; /* Отступ под высокую мобильную шапку */
    }

    /* 2. Скрываем лишнее: верхний бар и кнопку курьера */
    .top-bar, 
    .nav-actions, 
    .navbar .btn-cta {
        display: none !important;
    }

    /* 3. Шапка: Логотип по центру, меню ссылок под ним */
    .navbar .container.flex-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        padding: 15px 10px !important;
    }

    .logo {
        margin: 0 auto !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .logo-text {
        text-align: center !important;
    }

    .nav-menu {
        display: flex !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 15px !important;
        width: 100% !important;
    }

    /* 4. Горизонтальный скролл для УСЛУГ (Типы устройств) */
    .services-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 15px !important;
        padding: 10px 15px 30px !important;
        -webkit-overflow-scrolling: touch;
    }

    .service-card {
        flex: 0 0 85% !important; /* Карточка на 85% ширины экрана */
        scroll-snap-align: center;
        min-height: 420px !important;
    }

    /* 5. Горизонтальный скролл для ГАЛЕРЕИ (Примеры работ) */
    .gallery-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 15px !important;
        padding: 10px 15px 20px !important;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-item {
        flex: 0 0 80% !important;
        scroll-snap-align: center;
    }

    /* 6. Скролл для СЕРВИСНОГО МЕНЮ (список под шапкой) */
    .service-list {
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding: 5px 15px !important;
        gap: 20px !important;
    }

    /* Скрываем полоски прокрутки для чистого вида */
    .services-grid::-webkit-scrollbar,
    .gallery-grid::-webkit-scrollbar,
    .service-list::-webkit-scrollbar {
        display: none !important;
    }

    /* 7. Исправление секции доставки */
    .delivery-wrapper {
        flex-direction: column !important;
    }

    .delivery-footer {
        flex-direction: column !important;
        text-align: center !important;
    }

    .promo-box {
        justify-content: center !important;
    }
}

.map-container {
    position: relative;
    border-radius: 12-15px; /* Скруглите углы для современного вида */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-label {
    display: inline-block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}
.map-label:hover {
    text-decoration: underline;
}