/* ========================================
   ROOT ПЕРЕМЕННЫЕ (Цветовая система)
   ======================================== */
:root {
    /* Основные цвета */
    --color-primary: #53BF71;
    --color-primary-dark: #3DA85C;
    --color-primary-light: #7ED098;
    --color-primary-gradient: linear-gradient(135deg, #53BF71 0%, #3DA85C 100%);
    
    /* Темная тема */
    --color-dark: #0A0A0A;
    --color-dark-medium: #141414;
    --color-dark-light: #1A1A1A;
    --color-dark-card: #1E1E1E;
    
    /* Светлая тема */
    --color-light: #F8F9FA;
    --color-white: #FFFFFF;
    --color-gray: #E5E5E5;
    --color-gray-light: #F0F0F0;
    
    /* Текст */
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-muted: #999999;
    --text-on-dark: #CCCCCC;
    --text-on-dark-light: #F0F0F0;
    --text-white: #FFFFFF;
    
    /* Тени */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-primary: 0 4px 20px rgba(83, 191, 113, 0.3);
    
    /* Радиусы */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Шрифты */
    --font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

/* ========================================
   ОБЩИЕ СТИЛИ
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background: var(--color-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   ШАПКА (Header)
   ======================================== */
.header {
    background: var(--color-dark);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--color-primary);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ========================================
   ЛОГОТИП
   ======================================== */
.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
}

.logo-image {
    max-height: 55px;
    width: auto;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.logo-image:hover {
    opacity: 0.85;
}

.logo-slogan {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 2px;
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.5px;
}

.logo-text .logo-highlight {
    color: var(--color-primary);
    position: relative;
}

.logo-text .logo-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

/* ========================================
   НАВИГАЦИЯ (Desktop)
   ======================================== */
.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-list > li > a,
.nav-list > li > .nav-link {
    color: var(--text-on-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 4px 0;
    cursor: pointer;
}

.nav-list > li > a::after,
.nav-list > li > .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-list > li > a:hover::after,
.nav-list > li > a.active::after,
.nav-list > li > .nav-link:hover::after {
    width: 100%;
}

.nav-list > li > a:hover,
.nav-list > li > a.active,
.nav-list > li > .nav-link:hover {
    color: var(--color-primary);
}

/* Стрелка у раскрывающихся пунктов */
.nav-arrow {
    display: inline-block;
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.nav-arrow.open {
    transform: rotate(180deg);
}

/* ========================================
   ВЫПАДАЮЩЕЕ МЕНЮ (Desktop)
   ======================================== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-dark-light);
    list-style: none;
    padding: 8px 0;
    min-width: 200px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    transform: translateX(-50%) translateY(-8px);
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Мостик между пунктом и меню */
.nav-dropdown::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: transparent;
    z-index: 1000;
}

.dropdown-menu li {
    padding: 0 8px;
}

.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--text-on-dark);
    text-decoration: none;
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: var(--color-primary);
    color: var(--text-white);
}

/* ========================================
   КНОПКИ
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--color-primary-gradient);
    color: var(--text-white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(83, 191, 113, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--text-white);
}

.btn-dark {
    background: var(--color-dark-light);
    color: var(--text-white);
}

.btn-dark:hover {
    background: var(--color-dark-medium);
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 20px;
    font-size: 13px;
}

.btn-large {
    padding: 16px 48px;
    font-size: 18px;
}

/* ========================================
   СЛАЙДЕР (Hero)
   ======================================== */
.slider {
    position: relative;
    overflow: hidden;
    background: var(--color-dark);
}

.slider-container {
    position: relative;
    height: 600px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) saturate(1.1);
}

.slide-caption {
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-white);
    width: 90%;
    max-width: 800px;
}

.slide-caption h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.slide-caption h2 .highlight {
    color: var(--color-primary);
}

.slide-caption p {
    font-size: 20px;
    opacity: 0.9;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.slide-caption .btn {
    margin-top: 20px;
}

/* Кнопки слайдера */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    color: var(--text-white);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 28px;
    padding: 16px 22px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.slider-btn.prev {
    left: 24px;
}

.slider-btn.next {
    right: 24px;
}

/* Точки слайдера */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(255,255,255,0.6);
}

.dot.active {
    background: var(--color-primary);
    box-shadow: 0 0 20px rgba(83, 191, 113, 0.5);
    transform: scale(1.2);
}

/* ========================================
   СЕКЦИИ
   ======================================== */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 48px;
}

.section-dark {
    background: var(--color-dark);
    color: var(--text-on-dark);
}

.section-dark h2 {
    color: var(--text-white);
}

.section-dark .section-subtitle {
    color: var(--text-muted);
}

/* ========================================
   ПРЕИМУЩЕСТВА (Advantages)
   ======================================== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.adv-item {
    background: var(--color-white);
    padding: 32px 24px;
    text-align: center;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.adv-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--color-primary);
}

.adv-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(83, 191, 113, 0.1);
    border-radius: 50%;
    font-size: 32px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.adv-item:hover .adv-icon {
    background: var(--color-primary);
    color: var(--text-white);
}

.adv-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.adv-item p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ========================================
   УСЛУГИ (Services Preview)
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-light);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.service-card .card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.service-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-image img {
    transform: scale(1.05);
}

.service-card .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.service-card .card-overlay .tag {
    display: inline-block;
    background: var(--color-primary);
    color: var(--text-white);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-card h3 {
    padding: 16px 20px 4px;
    font-size: 20px;
}

.service-card p {
    padding: 0 20px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ========================================
   БРЕНДЫ
   ======================================== */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.brand-item {
    background: var(--color-white);
    padding: 32px 20px;
    text-align: center;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.brand-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.brand-item .brand-logo {
    width: 100%;
    max-width: 180px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.brand-item .brand-name {
    font-weight: 600;
    font-size: 16px;
    display: block;
}

.brand-item .brand-count {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ========================================
   ГАЛЕРЕЯ
   ======================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item .gallery-label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    color: var(--text-white);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
}

.gallery-item .gallery-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(83, 191, 113, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-icon {
    opacity: 1;
}

/* ========================================
   ОТЗЫВЫ
   ======================================== */
.reviews-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.review-item {
    text-align: center;
    padding: 40px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: none;
}

.review-item.active {
    display: block;
}

.review-item .review-text {
    font-size: 20px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.8;
}

.review-item .review-text::before {
    content: '"';
    color: var(--color-primary);
    font-size: 40px;
    font-weight: 700;
}

.review-item .review-text::after {
    content: '"';
    color: var(--color-primary);
    font-size: 40px;
    font-weight: 700;
}

.review-item .review-author {
    margin-top: 20px;
    font-weight: 600;
    color: var(--color-primary);
}

.review-item .review-car {
    font-size: 14px;
    color: var(--text-muted);
}

/* ========================================
   CTA (Призыв к действию)
   ======================================== */
.cta-section {
    background: var(--color-dark);
    color: var(--text-white);
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(83, 191, 113, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section h2 {
    color: var(--text-white);
    font-size: 40px;
}

.cta-section .cta-subtitle {
    color: var(--text-on-dark);
    font-size: 18px;
    margin-bottom: 32px;
}

.cta-section .btn {
    position: relative;
    z-index: 1;
}

/* ========================================
   ПОДВАЛ (Footer)
   ======================================== */
.footer {
    background: var(--color-dark);
    color: var(--text-muted);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    color: var(--text-white);
    font-size: 16px;
    margin-bottom: 16px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--color-primary);
}

.footer-desc {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.footer-social a:hover {
    background: var(--color-primary);
    color: var(--text-white);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.text-center {
    text-align: center;
    margin-top: 30px;
}

/* ========================================
   МОБИЛЬНАЯ ВЕРСИЯ (до 768px)
   ======================================== */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-dark);
        padding: 20px 24px;
        border-top: 1px solid rgba(255,255,255,0.05);
        box-shadow: var(--shadow-lg);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .nav.open {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .nav-list > li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .nav-list > li:last-child {
        border-bottom: none;
    }
    
    .nav-list > li > a,
    .nav-list > li > .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 8px;
        font-size: 16px;
        color: var(--text-on-dark);
        text-decoration: none;
        width: 100%;
        cursor: pointer;
        background: none;
        border: none;
        font-weight: 500;
    }
    
    .nav-list > li > a:hover,
    .nav-list > li > .nav-link:hover {
        color: var(--color-primary);
    }
    
    .nav-list > li > a::after,
    .nav-list > li > .nav-link::after {
        display: none;
    }
    
    /* Мобильное подменю */
    .nav-dropdown .dropdown-menu {
        display: none;
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        padding: 4px 0 4px 16px;
        background: transparent;
        border: none;
        box-shadow: none;
        border-left: 2px solid var(--color-primary);
        margin: 0 0 8px 8px;
        transition: none;
    }
    
    .nav-dropdown .dropdown-menu.open {
        display: block !important;
    }
    
    .nav-dropdown .dropdown-menu li {
        padding: 0;
    }
    
    .nav-dropdown .dropdown-menu a {
        display: block;
        padding: 10px 12px;
        color: var(--text-on-dark);
        text-decoration: none;
        font-size: 15px;
        border-radius: var(--radius-sm);
        transition: all 0.2s ease;
        white-space: normal;
        border-left: 2px solid transparent;
    }
    
    .nav-dropdown .dropdown-menu a:hover,
    .nav-dropdown .dropdown-menu a:active {
        background: rgba(83, 191, 113, 0.1);
        border-left-color: var(--color-primary);
        color: var(--color-primary);
    }
    
    .nav-dropdown::after {
        display: none;
    }
    
    /* Стрелка на мобильных */
    .nav-arrow {
        font-size: 12px;
        transition: transform 0.3s ease;
        margin-left: 8px;
    }
    
    .nav-arrow.open {
        transform: rotate(180deg);
    }
    
    /* Скрываем CTA в шапке на мобильных */
    .header-cta {
        display: none;
    }
    
    .logo-image {
        max-height: 40px;
    }
    
    .slider-container {
        height: 400px;
    }
    
    .slide-caption h2 {
        font-size: 28px;
    }
    
    .slide-caption p {
        font-size: 16px;
    }
    
    .slider-btn {
        padding: 10px 14px;
        font-size: 20px;
    }
    
    section {
        padding: 50px 0;
    }
    
    section h2 {
        font-size: 28px;
    }
    
    .advantages-grid,
    .services-grid,
    .brands-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ========================================
   ПЛАНШЕТЫ (768px - 992px)
   ======================================== */
@media (min-width: 769px) and (max-width: 992px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}