:root {
    --primary: #0ea5e9;
    --primary-hover: #0284c7;
    --dark: #0f172a;
    --dark-card: #1e293b;
    --gray-light: #f8fafc;
    --gray-text: #475569;
    --white: #ffffff;
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--gray-light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Шапка --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo span { color: var(--primary); }

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.nav-links a:hover { color: var(--primary); }

.header-phone {
    display: flex;
    align-items: center;
    gap: 15px;
}

.phone-link {
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    transition: var(--transition);
}

.phone-link:hover { color: var(--primary); }

.btn {
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
}

/* Гамбургер меню */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* --- Главный экран --- */
.hero {
    position: relative;
    padding: 180px 0 110px;
    color: var(--white);
    text-align: center;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-bg-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
}

.hero-bg-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1.03);
}

.hero-bg-slide.active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 1.5s ease-in-out, transform 6s ease-out;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero h1 {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.hero h1 span {
    color: var(--primary);
    background: linear-gradient(45deg, #38bdf8, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 20px;
    color: #cbd5e1;
    max-width: 820px;
    margin: 0 auto 35px;
    font-weight: 400;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.badge {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* --- Секции --- */
.section { padding: 90px 0; }
.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--dark);
    letter-spacing: -0.5px;
}
.section-subtitle {
    text-align: center;
    color: var(--gray-text);
    font-size: 18px;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Секция Автопарка --- */
.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.fleet-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fleet-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.12);
}

.fleet-height {
    font-size: 34px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.fleet-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.fleet-card ul {
    list-style: none;
    margin-bottom: 30px;
    color: var(--gray-text);
}

.fleet-card ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 24px;
    font-size: 15px;
}

.fleet-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 800;
}

/* --- СЕКЦИЯ: ВИДЫ РАБОТ --- */
.works-bg { background: #ffffff; }

.works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.work-card {
    background: var(--gray-light);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 28px 22px;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.work-card:hover {
    transform: translateY(-6px);
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.15);
}

.work-num {
    position: absolute;
    top: 15px;
    right: 18px;
    font-size: 13px;
    font-weight: 800;
    color: #cbd5e1;
    transition: var(--transition);
}

.work-card:hover .work-num { color: var(--primary); }
.work-icon { font-size: 38px; margin-bottom: 16px; display: block; }

.work-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
    line-height: 1.3;
}

.work-card p {
    font-size: 14px;
    color: var(--gray-text);
    line-height: 1.5;
}

/* --- Секция Преимуществ --- */
.features { background: var(--dark); color: var(--white); }
.features .section-title { color: var(--white); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    background: var(--dark-card);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.06);
    transition: var(--transition);
}

.feature-item:hover {
    border-color: rgba(14, 165, 233, 0.5);
    transform: translateY(-4px);
}

.feature-icon { font-size: 42px; margin-bottom: 18px; display: block; }
.feature-item h3 { font-size: 20px; margin-bottom: 10px; color: var(--white); font-weight: 700; }
.feature-item p { color: #94a3b8; font-size: 15px; }

/* --- Блок Заказа --- */
.contact-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 50px 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
    border: 1px solid #f1f5f9;
}

.messengers-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.m-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
}

.m-btn:hover { opacity: 0.9; transform: translateY(-2px); }
.m-vk { background: rgb(130, 50, 225); }
.m-sms { background: #0284c7; }
.m-phone { background: var(--dark); }

/* --- Слайдер Отзывов --- */
.reviews-slider-wrapper { position: relative; padding: 0 10px; }
.reviews-viewport { overflow: hidden; padding: 15px 5px; }
.reviews-track {
    display: flex;
    gap: 20px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.review-card {
    flex: 0 0 calc(33.333% - 14px);
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.review-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.12);
}

.review-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.review-avatar {
    width: 55px; height: 55px; border-radius: 50%; object-fit: cover;
    background: #e2e8f0; border: 2px solid var(--primary);
}
.review-name { font-weight: 700; font-size: 16px; color: var(--dark); }
.review-role { font-size: 13px; color: var(--gray-text); }
.review-stars { color: #0ea5e9; margin-bottom: 12px; font-size: 16px; }
.review-text { color: #475569; font-size: 14.5px; font-style: italic; line-height: 1.6; }

.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; background: var(--white);
    border: 1px solid #cbd5e1; border-radius: 50%; color: var(--dark);
    font-size: 22px; cursor: pointer; z-index: 10;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08); transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.slider-btn:hover {
    background: var(--primary); color: var(--white);
    border-color: var(--primary); transform: translateY(-50%) scale(1.08);
}
.slider-btn.prev { left: -24px; }
.slider-btn.next { right: -24px; }

.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: #cbd5e1; cursor: pointer; transition: var(--transition);
}
.dot.active { background: var(--primary); width: 32px; border-radius: 12px; }

/* --- Подвал --- */
footer {
    background: #020617; color: #94a3b8;
    padding: 50px 0 30px; border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-content {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 20px; margin-bottom: 30px;
}
.relevance-code {
    background: rgba(255,255,255,0.03); padding: 15px 20px; border-radius: 8px;
    font-family: monospace; font-size: 13px; color: #94a3b8;
    border: 1px dashed rgba(255,255,255,0.15); text-align: center;
}

/* Плавающая быстрая кнопка звонка */
.mobile-call-btn {
    display: none; position: fixed; bottom: 25px; right: 25px;
    background: var(--primary); color: var(--white);
    width: 65px; height: 65px; border-radius: 50%;
    justify-content: center; align-items: center;
    font-size: 28px; box-shadow: 0 4px 15px rgba(14, 165, 233, 0.6);
    z-index: 999; text-decoration: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(14,165,233, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(14,165,233, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(14,165,233, 0); }
}

/* --- Адаптивность --- */
@media (max-width: 1024px) {
    .works-grid { grid-template-columns: repeat(2, 1fr); }
    .review-card { flex: 0 0 calc(50% - 10px); }
    .slider-btn.prev { left: -10px; }
    .slider-btn.next { right: -10px; }
}

@media (max-width: 992px) {
    .hero h1 { font-size: 38px; }
    .hero p { font-size: 18px; }
}

/* Оптимизация интерфейса для мобильных (Телефоны) */
@media (max-width: 768px) {
    header { padding: 8px 0; }
    .logo span { display: none; }
    .hamburger { display: flex; }
    .logo { font-size: 15px; }
    .logo img { height: 34px !important; }
    .header-phone { gap: 12px; }
    .phone-link { font-size: 15px; white-space: nowrap; letter-spacing: -0.5px; }

    .nav-links {
        position: fixed; 
        top: 51px;
        left: -100%;
        width: 100%; 
        height: calc(100vh - 51px);
        background: rgba(15, 23, 42, 0.98);
        flex-direction: column; align-items: center;
        padding-top: 40px; gap: 25px; transition: var(--transition);
    }
    
    .nav-links.active { left: 0; }
    .nav-links a { font-size: 20px; }
    .header-phone .btn { display: none; }

    .hero { padding: 120px 0 60px; min-height: auto; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 16px; margin-bottom: 25px; }

    .section { padding: 55px 0; }
    .section-title { font-size: 26px; }
    .section-subtitle { font-size: 15px; margin-bottom: 35px; }

    .fleet-card { padding: 25px 20px; }
    .work-card { padding: 20px 15px; }

    .works-grid { grid-template-columns: 1fr; }
    .review-card { flex: 0 0 100%; padding: 25px 20px; }

    .slider-btn { width: 40px; height: 40px; font-size: 18px; }
    .slider-btn.prev { left: -5px; }
    .slider-btn.next { right: -5px; }

    .contact-box { padding: 30px 20px; }
    .m-btn { width: 100%; justify-content: center; }
    .mobile-call-btn { display: flex; }
}

@media (max-width: 1290px) {
    .hamburger { display: flex; }

    .nav-links {
        position: fixed; top: 70px; left: -100%;
        width: 100%; height: calc(100vh - 70px);
        background: rgba(15, 23, 42, 0.98);
        flex-direction: column; align-items: center;
        padding-top: 40px; gap: 25px; transition: var(--transition);
    }
    .nav-links.active { left: 0; }
    .nav-links a { font-size: 20px; }
}