/* ==========================================================================
   1. ПЕРЕМЕННЫЕ И ОСНОВНЫЕ СТИЛИ (ROOT & BASE)
   ========================================================================== */
:root {
    --primary: #f9ac00;
    --primary-glow: rgba(249, 172, 0, 0.3);
    --bg: #0a0a0c;
    --card-bg: #141417;
    --border: rgba(255, 255, 255, 0.06);
    --text-main: #ffffff;
    --text-dim: #9494a0;
    --radius: 20px;
    --section-padding: 100px;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 24px; 
}

section { 
    padding: var(--section-padding) 0; 
}

/* Эффекты свечения на фоне */
.blob-glow {
    position: fixed; 
    top: -150px; 
    left: 50%; 
    transform: translateX(-50%);
    width: 800px; 
    height: 400px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: -1; 
    pointer-events: none;
}

/* Фоновые изображения для секций (Hero, Trust и т.д.) */
.bg-image-overlay {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.bg-image-overlay::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(10, 10, 12, 0.7) 0%, rgba(10, 10, 12, 0.9) 100%);
    z-index: 1;
}

.bg-image-overlay .container {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   2. ШАПКА И НАВИГАЦИЯ (HEADER & NAV)
   ========================================================================== */
.header {
    height: 85px;
    display: flex;
    align-items: center;
    position: sticky; 
    top: 0;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.header-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%;
}

.logo { 
    font-family: 'Inter Tight'; 
    font-size: 1.6rem; 
    font-weight: 900; 
    text-decoration: none; 
    color: #fff; 
    letter-spacing: -1px; 
}

.logo span { color: var(--primary); }

.main-nav { display: flex; align-items: center; }

.nav-list { 
    display: flex; 
    list-style: none; 
    gap: 24px; 
    align-items: center; 
}

.nav-list > li { display: flex; align-items: center; }

.nav-list > li > a { 
    color: var(--text-dim); 
    text-decoration: none; 
    font-size: 0.85rem; 
    font-weight: 600; 
    transition: 0.3s; 
    display: flex; 
    align-items: center; 
    gap: 6px;
    padding: 10px 0;
}

.nav-list i { width: 14px; height: 14px; display: flex; align-items: center; }
.nav-list a:hover { color: #fff; }

.has-children { position: relative; }

.submenu {
    position: absolute; 
    top: calc(100% + 15px); 
    left: 0; 
    width: 260px;
    background: #1a1a1e; 
    border: 1px solid var(--border);
    padding: 12px; 
    list-style: none; 
    border-radius: 12px;
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(10px);
    transition: 0.3s; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.has-children:hover .submenu { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
}

.submenu li a { 
    color: var(--text-dim); 
    text-decoration: none; 
    font-size: 0.85rem;
    padding: 10px 12px; 
    display: block; 
    border-radius: 8px;
}

.submenu li a:hover { 
    background: rgba(255,255,255,0.05); 
    color: var(--primary); 
}

/* ==========================================================================
   3. ГЕРОЙ И ОБЩИЕ ЭЛЕМЕНТЫ (HERO & UI)
   ========================================================================== */
.hero { padding: 120px 0 80px; text-align: center; }

.section-title { 
    font-size: 3rem; 
    font-weight: 900; 
    text-align: center; 
    margin-bottom: 70px; 
    letter-spacing: -1.5px; 
}

.section-title span { color: var(--primary); }

.badge { 
    color: var(--primary); 
    font-size: 0.75rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 2px;
    background: rgba(249, 172, 0, 0.1); 
    padding: 6px 16px; 
    border-radius: 30px;
}

.hero h1 { 
    font-family: 'Inter Tight'; 
    font-size: clamp(3rem, 8vw, 5rem); 
    font-weight: 900; 
    line-height: 1; 
    margin: 30px 0; 
}

.hero h1 span { color: var(--primary); }

.hero p { 
    color: var(--text-dim); 
    font-size: 1.2rem; 
    max-width: 600px; 
    margin: 0 auto 40px; 
}

.hero-actions { 
    display: flex; 
    gap: 20px; 
    justify-content: center; 
    align-items: center; 
}

.btn-main, .btn-primary { 
    padding: 18px 36px; 
    border-radius: 50px;
    font-weight: 800; 
    text-transform: uppercase; 
    cursor: pointer; 
    transition: 0.3s;
    border: none;
    text-decoration: none;
}

.btn-main { background: #fff; color: #000; }
.btn-main:hover { background: var(--primary); }

.btn-primary { 
    background: var(--primary); 
    color: #000; 
    font-size: 0.75rem; 
    padding: 12px 24px;
}

.btn-primary:hover { 
    transform: scale(1.05); 
    box-shadow: 0 0 20px var(--primary-glow); 
}

.wa-link { 
    color: #fff; 
    text-decoration: none; 
    font-weight: 600; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

.brands-bar { 
    background: rgba(255, 255, 255, 0.02);
    padding: 20px 0;
    border-bottom: 1px solid var(--border); 
    overflow: hidden; 
}

.brands-track { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 40px; 
    opacity: 0.3; 
}

.brands-track span { 
    font-family: 'Inter Tight'; 
    font-size: 1.4rem; 
    font-weight: 900; 
    letter-spacing: 2px; 
}

/* ==========================================================================
   4. BENTO СЕТКА УСЛУГ (ИСПРАВЛЕННЫЕ КАРТИНКИ)
   ========================================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    gap: 20px;
}

.bento-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 35px;
    border: 1px solid var(--border);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    overflow: hidden; 
    z-index: 1;
}

.bento-card:hover { 
    border-color: var(--primary); 
    transform: translateY(-8px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.3); 
}

.bento-card.large { grid-column: span 2; grid-row: span 2; }
.bento-card.tall { grid-column: span 1; grid-row: span 2; }
.bento-card.accent { grid-column: span 1; grid-row: span 1; }
.bento-card.small { grid-column: span 1; grid-row: span 1; }
.bento-card.wide { grid-column: span 2; grid-row: span 1; }

/* ФОТО НА ВЕСЬ БЛОК БЕЗ ВРАЩЕНИЙ */
.bento-img-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Растягивает картинку на весь блок */
    opacity: 0.2;
    transition: var(--transition);
    pointer-events: none;
    z-index: 0;
    filter: grayscale(100%);
}

.bento-card:hover .bento-img-bg {
    opacity: 0.4;
    transform: scale(1.05); /* Легкий зум при наведении */
    filter: grayscale(0%);
}

.bento-icon {
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
    position: relative; z-index: 2;
}

.bento-icon i { color: var(--primary); width: 24px; }

.bento-tag { 
    font-size: 0.65rem; 
    font-weight: 900; 
    text-transform: uppercase; 
    color: var(--primary); 
    letter-spacing: 1px; 
    display: block; 
    margin-bottom: 10px; 
    position: relative; z-index: 2;
}

.bento-card h3 { 
    font-size: 1.6rem; 
    font-weight: 800; 
    margin-bottom: 12px; 
    letter-spacing: -0.5px; 
    position: relative; z-index: 2;
}

.bento-card p { 
    color: var(--text-dim); 
    font-size: 0.9rem; 
    line-height: 1.4; 
    position: relative; z-index: 2;
}

.bento-list { display: flex; gap: 15px; margin-top: 20px; position: relative; z-index: 2;}
.bento-list span { 
    font-size: 0.75rem; 
    color: #fff; 
    font-weight: 600; 
    border-left: 1px solid var(--primary); 
    padding-left: 8px; 
}

.bento-brands { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; position: relative; z-index: 2;}
.bento-brands span { 
    background: rgba(255,255,255,0.05); 
    padding: 4px 10px; 
    border-radius: 6px; 
    font-size: 0.7rem; 
    color: #fff; 
}

.bento-card.accent { background: var(--primary); border: none; }
.bento-card.accent h3, .bento-card.accent p { color: #000; }
.bento-card.accent .bento-icon { background: rgba(0,0,0,0.1); }
.bento-card.accent .bento-icon i { color: #000; }

.bento-card.diagnostic { background: linear-gradient(135deg, #141417 0%, #1c1c21 100%); }

.bento-link { 
    margin-top: 20px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    text-decoration: none; 
    color: #000; 
    font-weight: 800; 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    position: relative; z-index: 2;
}

/* ==========================================================================
   5. ПРАЙС-ЛИСТ (PRICE TABLE)
   ========================================================================== */

/* Контейнер для нескольких таблиц */
.price-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.price-category {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid var(--border);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.category-header i {
    color: var(--primary);
    width: 28px;
    height: 28px;
}

.category-header h3 {
    font-family: 'Inter Tight';
    font-size: 1.5rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    transition: 0.3s;
}

/* Эффект популярной услуги */
.price-item.popular::before {
    content: 'POPULAR';
    font-size: 0.6rem;
    background: var(--primary);
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 900;
    margin-right: 10px;
}

.service-cost.highlight {
    color: #00ff88; /* Зеленый для бесплатных услуг */
    background: rgba(0, 255, 136, 0.1);
}

.price-notice {
    text-align: center;
    margin-top: 30px;
    color: var(--text-dim);
    font-size: 0.85rem;
    font-style: italic;
}

/* Мобильная адаптация */
@media (max-width: 992px) {
    .price-container {
        grid-template-columns: 1fr;
    }
}
.price-table {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 15px;
    border: 1px solid var(--border);
    max-width: 700px;
    margin: 0 auto;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-radius: 15px;
    transition: 0.3s;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.price-item:last-child { border-bottom: none; }

.price-item:hover { 
    background: rgba(255,255,255,0.03); 
    transform: translateX(10px); 
}

.service-name { color: var(--text-main); font-weight: 600; font-size: 1.05rem; }

.service-dots { 
    flex-grow: 1; 
    border-bottom: 1px dashed rgba(249, 172, 0, 0.2); 
    margin: 0 25px; 
    position: relative; 
    top: -2px; 
}

.service-cost {
    font-weight: 800;
    color: var(--primary);
    background: rgba(249, 172, 0, 0.1);
    padding: 8px 20px;
    border-radius: 50px;
    min-width: 130px;
    text-align: center;
}

/* ==========================================================================
   6. СТАТИСТИКА И ТРАСТ (STATS & TRUST)
   ========================================================================== */
.stats { background: rgba(255,255,255,0.02); }

.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    text-align: center; 
}

.stat-num { 
    font-size: 3.5rem; 
    font-weight: 900; 
    color: var(--primary); 
    display: block; 
    letter-spacing: -2px; 
}

.stat-item p { 
    color: var(--text-dim); 
    text-transform: uppercase; 
    font-size: 0.7rem; 
    font-weight: 700; 
    letter-spacing: 1px; 
}

.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.trust-item { text-align: center; padding: 20px; }
.trust-item i { width: 48px; height: 48px; color: var(--primary); margin-bottom: 24px; }
.trust-item h4 { font-size: 1.3rem; margin-bottom: 15px; font-family: 'Inter Tight'; }
.trust-item p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.6; }

/* ==========================================================================
   7. ПРОЦЕСС И КЕЙСЫ (PROCESS & CASES)
   ========================================================================== */
.process{
    background: rgba(255, 255, 255, 0.02);
}
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.step { position: relative; }
.step-num { 
    font-size: 4rem; 
    font-weight: 900; 
    color: rgba(249, 172, 0, 0.3); 
    position: absolute; 
    top: -30px; 
    left: 0; 
}
.step h4 { font-size: 1.3rem; margin-bottom: 15px; position: relative; z-index: 1; }
.step p { color: var(--text-dim); font-size: 0.9rem; position: relative; z-index: 1; }

.case-card {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    background: var(--card-bg);
    border-radius: var(--radius); 
    overflow: hidden; 
    border: 1px solid var(--border);
}

.case-content { padding: 60px; }
.case-label { color: var(--primary); font-weight: 800; font-size: 0.75rem; text-transform: uppercase; }
.case-content h3 { font-size: 2.2rem; margin: 15px 0; font-family: 'Inter Tight'; font-weight: 900; }

.case-result { 
    margin-top: 30px; 
    padding: 20px; 
    background: rgba(255,255,255,0.03); 
    border-radius: 12px; 
    font-weight: 600; 
    border-left: 3px solid var(--primary); 
}

.case-image { 
    background: url('../img/zamena-zatvora.jpg') center/cover; 
    min-height: 450px; 
}
/* ==========================================================================
   ОТЗЫВЫ (REVIEWS)
   ========================================================================== */
.reviews {
        background: rgba(255, 255, 255, 0.02);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.review-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    transition: var(--transition);
}

.review-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--primary);
    border: 1px solid var(--border);
}

.reviewer-name {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
}

.review-date {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.review-rating {
    color: var(--primary);
    display: flex;
    gap: 2px;
}

.review-rating svg {
    width: 14px;
    height: 14px;
    fill: var(--primary);
}

.review-device {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: var(--text-dim);
}

.review-device span {
    color: var(--primary);
}

.review-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-dim);
}

.reviews-action {
    text-align: center;
}

/* Адаптация для отзывов */
@media (max-width: 992px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}
/* ==========================================================================
   8. FAQ И КОНТАКТЫ (FAQ & MAP)
   ========================================================================== */
.faq { padding: 80px 0;}
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.faq-item h4 { color: var(--primary); margin-bottom: 15px; font-family: 'Inter Tight'; font-size: 1.2rem; }
.faq-item p { color: var(--text-dim); line-height: 1.6; font-size: 0.95rem; }

details { 
    background: var(--card-bg); 
    margin-bottom: 15px; 
    border-radius: 15px; 
    border: 1px solid var(--border); 
    transition: 0.3s; 
}

details:hover { border-color: rgba(255,255,255,0.15); }

summary { 
    padding: 25px; 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-weight: 700; 
    list-style: none; 
}

summary i { color: var(--primary); transition: 0.3s; }
details[open] summary i { transform: rotate(45deg); }
.faq-answer { padding: 0 25px 25px; color: var(--text-dim); line-height: 1.6; }

.map-box {
    display: grid; 
    grid-template-columns: 1fr 1.5fr; 
    background: var(--card-bg);
    border-radius: var(--radius); 
    overflow: hidden; 
    border: 1px solid var(--border); 
    min-height: 450px;
}

.map-info { padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.map-info h3 { font-size: 2.2rem; font-family: 'Inter Tight'; margin-bottom: 30px; font-weight: 900; }
.map-info p { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; color: var(--text-dim); }
.map-info i { color: var(--primary); width: 20px; }

/* ==========================================================================
   9. ПОДВАЛ (FOOTER)
   ========================================================================== */
.footer { padding: 80px 0 40px; border-top: 1px solid var(--border); }

.footer-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr; 
    gap: 60px; 
    margin-bottom: 60px; 
}

.footer-brand .logo { font-size: 2rem; margin-bottom: 20px; display: block; }
.footer-links h4, .footer-contacts h4 { 
    margin-bottom: 25px; 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    color: #fff; 
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-dim); text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: var(--primary); }

.footer-bottom { 
    border-top: 1px solid var(--border); 
    padding-top: 30px; 
    text-align: center; 
    color: #444; 
    font-size: 0.8rem; 
}

/* ==========================================================================
   10. МОДАЛЬНОЕ ОКНО (MODAL)
   ========================================================================== */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(10px);
    display: none; justify-content: center; align-items: center; z-index: 2000; padding: 20px;
}

.modal-content {
    background: var(--card-bg); padding: 50px; border-radius: var(--radius);
    max-width: 500px; width: 100%; position: relative; border: 1px solid var(--border);
}

.close-modal { 
    position: absolute; top: 20px; right: 20px; 
    background: none; border: none; color: var(--text-dim); 
    font-size: 2rem; cursor: pointer; 
}

.modal-form { display: flex; flex-direction: column; gap: 15px; margin-top: 25px; }
.modal-form input, .modal-form select {
    background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    padding: 18px; border-radius: 12px; color: #fff; outline: none;
}

/* ==========================================================================
   11. СТРАНИЦА КАТАЛОГА / БРЕНДОВ
   ========================================================================== */
.service-hero {
    padding: 120px 0 60px;
    background: linear-gradient(to bottom, rgba(249, 172, 0, 0.05), transparent);
}

.brand-catalog {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin: 40px 0 80px;
}

.brand-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.brand-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.brand-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: calc(var(--radius) - 10px);
    background: #1a1a1a;
}

.brand-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.8);
}

.brand-card:hover .brand-card-image img {
    transform: scale(1.1);
    filter: brightness(1);
}

.brand-icon-logo {
    font-family: 'Inter Tight';
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.brand-icon {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 15px;
    font-family: 'Inter Tight';
    transition: 0.3s;
}

.brand-card h3 {
    color: #fff;
    font-family: 'Inter Tight';
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.brand-card p {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.5;
}

.brand-card::after {
    content: '→';
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: var(--primary);
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: 0.3s;
}

.brand-card:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Компактные сетки моделей */
.models-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 40px 0;
}

.model-card-mini {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 20px 15px;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.model-card-mini:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    background: rgba(255,255,255,0.02);
}

.model-card-mini .img-wrap {
    width: 120px;
    height: 90px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.model-card-mini img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0.9);
    transition: 0.3s;
}

.model-card-mini h3 { font-size: 1rem; color: #fff; font-weight: 700; margin: 0; }
.model-card-mini .series-tag {
    font-size: 0.65rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

/* Иерархия категорий */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
}
.category-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    transition: 0.3s;
}
.category-card:hover {
    border-color: var(--primary);
    background: rgba(255,255,255,0.02);
}
.category-card i {
    color: var(--primary);
    margin-bottom: 20px;
    width: 32px;
    height: 32px;
}

.brand-list-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.brand-badge {
    font-size: 0.7rem;
    padding: 4px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    color: var(--text-dim);
}

/* SEO блок */
/* Контейнер SEO текста */
.seo-text-block {
    background: #000; /* Глубокий черный фон */
    border-top: 1px solid var(--border);
}

/* Заголовки внутри блока */
.seo-text-block h1 {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.seo-text-block h2 {
    font-size: 1.6rem;
    color: #fff;
    margin: 50px 0 20px;
    padding-left: 15px;
    border-left: 3px solid var(--primary); /* Красная черта слева как акцент */
}

.seo-text-block h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin: 30px 0 15px;
    font-weight: 700;
}

.seo-text-block h4 {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 10px;
}

/* Абзацы и выделение */

.seo-text-block strong {
    color: #fff;
    font-weight: 600;
}

/* Списки */
.seo-text-block ul, .seo-text-block ol {
    margin: 20px 0 30px 20px;
    padding: 0;
}

.seo-text-block li {
    margin-bottom: 12px;
}

/* Маркированный список (точки) */
.seo-text-block ul li {
    list-style: none;
    position: relative;
    padding-left: 25px;
}

.seo-text-block ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* Нумерованный список */
.seo-text-block ol {
    counter-reset: my-counter;
}

.seo-text-block ol li {
    list-style: none;
    counter-increment: my-counter;
    position: relative;
    padding-left: 35px;
}

.seo-text-block ol li::before {
    content: counter(my-counter);
    position: absolute;
    left: 0;
    top: -2px;
    width: 24px;
    height: 24px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

/* Горизонтальная линия */
.seo-text-block hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--border) 0%, transparent 100%);
    margin: 40px 0;
}

/* Секция FAQ внутри текста */
.seo-text-block section {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--border);
    margin: 30px 0;
}

/* Адресный блок в конце */
.seo-text-block p{
    background: #111;
    padding: 20px;
    border-left: 2px solid #333;
    color: #888;
}
/* Стили для ссылок в SEO блоке */
.seo-text-block a {
    color: var(--primary); /* Используем наш фирменный красный */
    text-decoration: none;
    font-weight: 600;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(255, 77, 77, 0.3); /* Тонкая полупрозрачная линия под ссылкой */
    transition: all 0.3s ease;
    position: relative;
}

/* Эффект при наведении */
.seo-text-block a:hover {
    color: #fff; /* Ссылка белеет при наведении */
    border-bottom-color: var(--primary); /* Линия становится ярче */
    background: rgba(255, 77, 77, 0.05); /* Легкое фоновое подсвечивание */
}

/* Если ссылка ведет на телефон или почту (дополнительный акцент) */
.seo-text-block a[href^="tel:"], 
.seo-text-block a[href^="mailto:"] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-bottom: none;
    color: #fff;
    background: var(--card-bg);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.seo-text-block a[href^="tel:"]:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Плавный переход для всех ссылок в блоке */
.seo-text-block a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -1px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.seo-text-block a:hover::after {
    width: 100%;
}
/* ==========================================================================
   12. МОБИЛЬНАЯ АДАПТАЦИЯ (RESPONSIVE)
   ========================================================================== */
@media (max-width: 992px) {
    .nav-list, .header-cta { display: none; }
    
    .bento-grid, 
    .process-steps, 
    .case-card, 
    .footer-grid, 
    .stats-grid, 
    .trust-grid, 
    .map-box { 
        grid-template-columns: 1fr; 
    }
    
    .bento-grid {
        grid-auto-rows: auto;
    }
    
    .bento-card.large, .bento-card.tall, .bento-card.wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .hero h1 { font-size: 3rem; }
    
    .price-item { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 15px; 
    }
    
    .service-dots { display: none; }
    .service-cost { width: 100%; }

    .case-image { min-height: 300px; }
    
    .brand-catalog {
        grid-template-columns: 1fr;
    }
}
/* --- Стили для новых блоков (Преимущества и Ошибки) --- */

/* Сетка для преимуществ */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.features{
    background: rgba(255, 255, 255, 0.02);
}
.feature-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.feature-card i {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-dim);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Сетка для типичных неисправностей */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.issue-item {
    background: rgba(255, 255, 255, 0.01);
    padding: 30px;
    border-left: 3px solid var(--primary); /* Твой акцентный цвет */
    border-radius: 0 15px 15px 0;
}

.issue-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 600;
}

.issue-item p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 30px;
    }
}