/* Общие стили */
:root {
    --primary-color: #ff4d00;
    --secondary-color: #2c3e50;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --white-color: #ffffff;
    --border-radius: 10px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --header-height: 80px; /* Добавляем высоту шапки для отступа */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
    transition: opacity 0.2s ease;
    text-size-adjust: 100%; /* Предотвращает автоматическое масштабирование текста */
    -webkit-text-size-adjust: 100%; /* Для Safari и Chrome */
}

html.no-js section.fade-in-section {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

html.no-js .staggered-element {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

html.loading {
    opacity: 0;
}

html.loaded {
    opacity: 1;
}

body {
    padding-top: var(--header-height);
    font-family: 'Roboto', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--light-color);
    overflow-x: hidden;
    width: 100%;
    text-rendering: optimizeLegibility; /* Улучшение рендеринга текста */
    -webkit-font-smoothing: antialiased; /* Сглаживание для WebKit/Blink */
    -moz-osx-font-smoothing: grayscale; /* Сглаживание для Firefox */
    font-feature-settings: "kern" 1; /* Включаем кернинг */
    font-kerning: normal; /* Нормальный кернинг */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Исправляем размытие текста для мониторов 1920×1080 */
@media screen and (max-width: 1920px) {
    h1, h2, h3, h4, h5, h6, p, a, span, li, button, input, textarea, select {
        transform: translateZ(0); /* Включаем аппаратное ускорение */
        backface-visibility: hidden; /* Предотвращает размытие при анимациях */
        will-change: transform; /* Подсказка браузеру для оптимизации */
        font-weight: 400, 500, 700, 900; /* Гарантируем загрузку правильных весов шрифта */
    }
    
    /* Особое исправление размытия заголовков */
    h1, h2, h3 {
        text-shadow: 0 0 1px rgba(0,0,0,0.01); /* Минимальная тень для четкости */
    }
    
    /* Предотвращение дробных значений пикселей для контейнеров */
    .container, .section-header, .hero-content, .about-content, 
    .fleet-card, .testimonial, .contact-info {
        transform: translate3d(0, 0, 0);
    }
    
    /* Исправление для элементов с фиксированным позиционированием */
    header, .floating-button {
        transform: translateZ(0);
    }
    
    /* Исправление для текста внутри флекс-контейнеров */
    .hero-features, .about-features, .contact-method, .footer-content {
        transform-style: preserve-3d;
    }
}

/* Специфичные настройки для Windows */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    body {
        text-rendering: geometricPrecision; /* Геометрическая точность рендеринга для IE/Edge */
    }
    
    h1, h2, h3, h4, h5, h6, p, a, span, li, button, input, textarea, select {
        transform: perspective(1px); /* Исправление размытия для IE/Edge */
    }
}

/* Дополнительное решение для платформы Windows (Chrome, Firefox) */
@supports (-moz-appearance:none) {
    @media screen and (max-width: 1920px) {
        body {
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            text-rendering: optimizeLegibility;
        }
    }
}

/* Особые настройки для мониторов с высоким DPI */
@media screen and (-webkit-min-device-pixel-ratio: 1.5), 
       screen and (min-resolution: 1.5dppx) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    .section-header h2,
    .site-title h1,
    .hero-content h1,
    .cta-content h2 {
        letter-spacing: -0.01em; /* Небольшое уменьшение расстояния между буквами для заголовков */
    }
}

html.resolution-1080p .section-header h2,
html.resolution-1080p .hero-content h1,
html.resolution-1080p .cta-content h2 {
    transform: translateZ(0);
    backface-visibility: hidden;
}

html.resolution-1080p p,
html.resolution-1080p a,
html.resolution-1080p span,
html.resolution-1080p li {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Исправление шрифтов для Windows */
html.windows-platform body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html.windows-platform .section-header h2 {
    /* Более выраженное сглаживание для заголовков */
    text-shadow: 0 0 1px rgba(0,0,0,0.01);
}

/* Модификация секции отзывов клиентов */
.testimonials {
    padding: 4rem 0 5rem;
    background-color: var(--light-color);
}

.testimonials .section-header {
    margin-bottom: 1.5rem;
}

.testimonials .section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    padding-top: 0;
}

.testimonials .section-header p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.testimonials .section-header h2::after {
    margin: 0.3rem auto 1rem;
}

/* Улучшенные стили для слайдера отзывов */
.testimonials-slider {
    margin-top: 1rem;
}

.testimonial {
    padding: 1.8rem;
    min-height: 280px;
}

.testimonial-text {
    margin-bottom: 1.5rem;
}

.testimonial-nav {
    margin-top: 1.5rem;
}

/* Дополнительная оптимизация для обычных мониторов */
@media screen and (min-width: 1024px) and (max-width: 1920px) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    /* Коррекция для улучшения рендеринга на Windows */
    .section-header h2, 
    .site-title h1,
    .hero-content h1,
    h3, h4 {
        /* Предотвращение размытия путем обеспечения четкого позиционирования */
        position: relative;
        height: auto;
    }
    
    /* Исправление размытия границ контейнеров */
    .fleet-card,
    .service-card,
    .testimonial,
    .contact-info,
    .about-feature {
        position: relative; /* Улучшение рендеринга границ */
        transform: translateZ(0);
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
    position: relative;
    text-align: center;
    white-space: nowrap;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0.5rem auto 1.5rem;
    border-radius: 2px;
}

.section-header p {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 2rem;
}

/* Стили для кнопок */
.primary-button, .secondary-button, .cta-button, .submit-button, .btn-evacuation {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: white !important; /* Текст всегда белый для контраста */
    border: none;
}

.primary-button, .btn-evacuation {
    background-color: var(--primary-color);
    color: white !important;
    box-shadow: 0 4px 10px rgba(255, 77, 0, 0.3);
}

.primary-button:hover, .btn-evacuation:hover {
    background-color: #ff5e14;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 77, 0, 0.4);
    color: white !important; /* Важно: сохраняем белый цвет текста при наведении */
}

.secondary-button {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color) !important;
}

.secondary-button:hover {
    background-color: var(--primary-color);
    color: white !important; /* Важно: меняем цвет текста на белый при наведении */
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 77, 0, 0.2);
}

.cta-button {
    background-color: var(--primary-color);
    color: white !important;
    padding: 16px 40px;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(255, 77, 0, 0.4);
}

.cta-button:hover {
    background-color: #ff5e14;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 77, 0, 0.5);
    color: white !important; /* Сохраняем белый цвет текста */
}

.submit-button {
    background-color: var(--primary-color);
    color: white !important;
    width: 100%;
    padding: 16px;
    font-size: 1.2rem;
    margin-top: 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(255, 77, 0, 0.3);
}

.submit-button:hover {
    background-color: #ff5e14;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 77, 0, 0.4);
    color: white !important; /* Сохраняем белый цвет текста */
}

/* Дополнительный эффект пульсации для кнопки Вызвать эвакуатор */
.btn-evacuation {
    animation: pulse 2s infinite;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(255, 77, 0, 0.4);
    color: white !important; /* Гарантируем белый цвет */
}

.btn-evacuation:hover {
    animation: none;
    transform: translateY(-3px) scale(1.05);
    background-color: #ff5e14;
    box-shadow: 0 8px 20px rgba(255, 77, 0, 0.5);
    color: white !important; /* Гарантируем белый цвет при наведении */
}

/* Пульсация для кнопки вызова эвакуатора */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(255, 77, 0, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(255, 77, 0, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(255, 77, 0, 0.4);
    }
}

/* Header и навигация */
header {
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    max-width: 60px;
    margin-right: 15px;
    flex-shrink: 0;
}

.logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.site-title {
    flex: 0 1 auto;
    margin-right: 20px;
    margin-left: 15px;
    white-space: nowrap;
}

.site-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.site-title p {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin: 0;
}

.phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 20px;
    white-space: nowrap; /* Предотвращаем перенос на две строки */
}

.phone-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.availability {
    font-size: 0.8rem;
    color: var(--gray-color);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu .cta-button {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.7rem 1.5rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    margin-left: 1rem;
    font-weight: 600;
    white-space: nowrap; /* Предотвращаем перенос текста */
}

.nav-menu .cta-button:hover {
    background-color: #ff5e14;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.nav-menu .cta-button::after {
    display: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 20px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    border-radius: 3px;
    transition: var(--transition);
}

/* Основной экран */
.hero {
    padding: 5rem 0;
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background-color: var(--primary-color);
    opacity: 0.05;
    border-radius: 50%;
    z-index: 0;
    animation: pulse 8s infinite ease-in-out;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background-color: var(--primary-color);
    opacity: 0.05;
    border-radius: 50%;
    z-index: 0;
    animation: pulse 10s infinite ease-in-out 2s;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.primary-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 4px 6px rgba(255, 77, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.primary-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.primary-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(255, 77, 0, 0.3);
}

.primary-button:hover::before {
    left: 100%;
}

.secondary-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s ease;
}

.secondary-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.hero-features {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--white-color);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.feature i {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 77, 0, 0.1);
    margin: 0;
}

.feature:hover i {
    transform: scale(1.2);
}

.feature span {
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--box-shadow);
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: all 0.5s ease;
}

.hero-image:hover {
    transform: scale(1.03) rotate(1deg);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.hero-image:hover img {
    transform: scale(1.1);
}

/* Стили для иконок */
.service-card i,
.about-feature i,
.feature i,
.contact-method i,
.social-icon i {
    font-family: 'Font Awesome 5 Free', 'FontAwesome'; /* Совместимость */
    font-weight: 900;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 77, 0, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 auto;
    box-shadow: none;
}

/* Фиксированные размеры иконок в разных элементах */
.feature i {
    width: 40px;
    height: 40px;
    min-width: 40px;
    margin: 0;
    font-size: 1.2rem;
}

.service-card i, .about-feature i {
    width: 50px;
    height: 50px;
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
}

.contact-method i, .social-icon i {
    width: 40px;
    height: 40px;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.social-icon i {
    margin: 0; /* Убираем отступ справа для иконок соцсетей */
}


/* Стили для сервисных карточек */
.service-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 2.5rem 1.5rem;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
    opacity: 0;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    top: 0;
    opacity: 0.03;
}

.service-card:hover h3 {
    color: var(--primary-color);
}

/* Стили для сервисной иконки */
.service-icon {
    width: 80px;
    height: 80px;
    background-color: transparent;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.service-icon i {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    color: var(--primary-color);
    background-color: rgba(255, 77, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}



/* Стили для кнопок в секции hero */
.hero-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 2rem;
}

.hero-buttons .btn-evacuation,
.hero-buttons .secondary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
}

/* Секция услуг */
.services {
    padding: 5rem 0;
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.service-card p {
    color: var(--gray-color);
    margin-bottom: 0;
}

/* CTA секция */
.cta-section {
    padding: 4rem 0;
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/pattern.png');
    opacity: 0.05;
    z-index: 0;
}

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

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: var(--primary-color) !important;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--border-radius);
    text-decoration: none;
    text-align: center;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--light-color);
    color: var(--primary-color) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* О нас секция */
.about {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.about .container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-content {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.service-image {
    position: absolute; /* Позиционируем элемент абсолютно */
    z-index: 10; /* Поднимаем элемент выше других */
    top: 0; /* Установите нужные значения для top, left, right, bottom */
    left: 0; /* Установите нужные значения для top, left, right, bottom */
    transform: translateX(50%) translateY(30%);
}

.service-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 70%; /* Уменьшаем фотографию, чтобы избежать багов */
    height: auto; /* Сохраняем пропорции изображения */
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-features {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.about-feature {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
}

/* Используем тот же подход, что в service-card */
.about-feature::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
    opacity: 0;
}

/* Отключаем after */
.about-feature::after {
    display: none;
}

.about-feature:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-feature:hover::before {
    top: 0;
    opacity: 0.03;
}

.about-feature:hover h3 {
    color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: transparent;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-feature i {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    color: var(--primary-color);
    background-color: rgba(255, 77, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}


.feature-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

/* Эффект при нажатии */
.about-feature:active {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

/* Стили для слайдеров */
.fleet-slider, .testimonials-slider {
    position: relative;
    overflow: visible; /* Показываем соседние слайды */
    margin-bottom: 2rem;
    padding-bottom: 40px;
    padding-top: 20px;
    z-index: 1;
    border-radius: var(--border-radius);
}

.fleet-slides-container, .testimonial-slides-container {
    display: flex;
    transition: transform 0.6s ease-in-out;
    width: 100%;
    height: auto;
    padding: 20px 0; /* Добавляем отступы для видимости теней */
}

/* Предотвращаем взаимодействие во время переходов */
.fleet-slides-container.transitioning, 
.testimonial-slides-container.transitioning {
    pointer-events: none;
}

/* Стили для слайд-обёрток */
.fleet-slide-wrapper, .testimonial-slide-wrapper {
    flex: 0 0 80%; /* Каждый слайд занимает 80% ширины контейнера для видимости соседних */
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 15px;
    transition: all 0.5s ease;
    position: relative;
    overflow: visible;
    height: auto;
    opacity: 0.5; /* Неактивные слайды полупрозрачные */
    transform: scale(0.8); /* Неактивные слайды немного уменьшены */
    filter: blur(2px); /* Размытие для неактивных слайдов */
    pointer-events: none; /* Делаем неактивные слайды некликабельными */
}

/* Активный слайд */
.fleet-slide-wrapper.active, .testimonial-slide-wrapper.active {
    z-index: 3;
    opacity: 1; /* Активный слайд непрозрачный */
    transform: scale(1); /* Активный слайд в полном размере */
    pointer-events: auto; /* Активный слайд кликабельный */
    filter: blur(0px); /* Убираем размытие для активного слайда */
}

/* Стили для карточек и их содержимого */
.fleet-card, .testimonial {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    overflow: visible;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform-origin: center bottom;
}

/* Стиль для активного слайда */
.fleet-slide-wrapper.active .fleet-card, 
.testimonial-slide-wrapper.active .testimonial {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 77, 0, 0.2); /* Усиливаем рамку для активного слайда */
}

/* Анимация появления активного слайда */
@keyframes cardAppear {
    from { opacity: 0.5; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1) translateY(-10px); }
}

.fleet-slide-wrapper.active .fleet-card, 
.testimonial-slide-wrapper.active .testimonial {
    animation: cardAppear 0.6s forwards;
}

/* Стили для навигации слайдера */
.fleet-nav, .testimonial-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    position: relative;
    z-index: 10;
}

.prev-btn, .next-btn, 
.prev-testimonial, .next-testimonial {
    background-color: var(--primary-color);
    color: white !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(255, 77, 0, 0.3);
    position: relative;
    z-index: 10;
}

.prev-btn:hover, .next-btn:hover,
.prev-testimonial:hover, .next-testimonial:hover {
    background-color: white;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.prev-btn i, .next-btn i, 
.prev-testimonial i, .next-testimonial i {
    color: white;
    transition: all 0.3s ease;
    background-color: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.prev-btn:hover i, .next-btn:hover i, 
.prev-testimonial:hover i, .next-testimonial:hover i {
    color: var(--primary-color);
    background-color: transparent;
    transform: none;
    box-shadow: none;
}

/* Стили для точек навигации слайдера */
.fleet-dots, .testimonial-dots {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    height: 30px; /* Фиксированная высота для предотвращения скачков */
    
}

/* Исправление для точек навигации слайдера */
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
    margin: 0 3px;
    display: block;
    flex-shrink: 0;
    position: relative;
    outline: none;
}

.dot:focus {
    box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.3);
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

.dot:hover {
    background-color: rgba(255, 77, 0, 0.5);
}

/* Замена экстра стилей для точек, если они существуют */
.testimonial-dots .dot,
.fleet-dots .dot {
    width: 10px !important;
    height: 10px !important;
}

.testimonial-dots .dot.active,
.fleet-dots .dot.active {
    width: 10px !important;
    height: 10px !important;
    background-color: var(--primary-color) !important;
    transform: scale(1.3) !important;
}

/* Стили для изображений в слайдере автопарка */
.fleet-image {
    height: 250px;
    overflow: hidden;
    position: relative;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    flex-shrink: 0;
}

.fleet-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

/* Увеличение картинки при наведении в активном слайде */
.fleet-slide-wrapper.active:hover .fleet-image img {
    transform: scale(1.1);
}

/* Стили для текста отзывов */
.testimonial {
    padding: 2rem;
    min-height: 300px;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 30px;
}

.testimonial-text p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--dark-color);
    line-height: 1.6;
    width: 100%;
}

.testimonial-text::before {
    content: '\f10d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: -10px;
    left: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    opacity: 0.3;
    z-index: 0;
}

.testimonial-text::after {
    content: '\f10e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    bottom: -10px;
    right: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    opacity: 0.3;
    z-index: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1.5rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--light-color);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

/* Стили для плавной анимации при скролле */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-30px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(30px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Анимация для элементов при прокрутке */
.service-card, .about-feature, .fleet-card, .testimonial, 
.hero-content, .hero-image, .about-content, .about-image, 
.form-container, .contact-info, .map {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform-style: flat;
    backface-visibility: hidden;
    will-change: transform, opacity;
}

.service-card.animated, .about-feature.animated, .fleet-card.animated, 
.testimonial.animated, .hero-content.animated, .hero-image.animated, 
.about-content.animated, .about-image.animated, 
.form-container.animated, .contact-info.animated, .map.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Сбрасываем все пользовательские стили для анимации */
.about-feature {
    transition-property: opacity, transform, box-shadow;
}

.about-feature.animated {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.about-feature.animated:hover {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Удаляем эффекты стилей из общей анимации для элементов about-feature */
@keyframes customFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Для горизонтального появления */
.hero-content, .about-content, .form-container {
    transform: translateX(-30px);
}

.hero-image, .about-image, .contact-info {
    transform: translateX(30px);
}

.hero-content.animated, .about-content.animated, .form-container.animated,
.hero-image.animated, .about-image.animated, .contact-info.animated {
    transform: translateX(0);
}

/* Стили для активного пункта меню */
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    width: 100%;
}

/* Форма обратной связи */
.call-form {
    padding: 5rem 0;
    background-color: white;
}

.call-form .container {
    display: flex;
    gap: 3rem;
}

.form-container {
    flex: 1.5;
}

.contact-info {
    flex: 1;
    background-color: var(--secondary-color);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    align-self: flex-start;
}

.form-container p {
    margin-bottom: 2rem;
    text-align: center;
    color: var(--gray-color);
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    color: var(--dark-color);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--white-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0aec0;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    opacity: 0;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.2);
}

.submit-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.submit-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}


.submit-button:hover::after {
    width: 300%;
    height: 300%;
}

.submit-button:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Стили для формы и анимации */
.form-container {
    background-color: var(--white-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.form-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.contact-info {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.contact-info:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--white-color);
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.contact-info li:hover {
    transform: translateX(10px);
}

.contact-info i {
    font-size: 1.2rem;
    margin-right: 1rem;
}

.contact-info a {
    color: var(--white-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    color: var(--light-color);
    text-decoration: underline;
}

.social-media {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/*.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    transform: translateY(-3px);
    background-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
    }

/* Карта секция */
.map-section {
    padding: 5rem 0;
    background-color: var(--light-color);
    text-align: center;
}

.map-section p {
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--gray-color);
}

.map {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 450px;
}

.map #yandex-map {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
}

/* Стили для элементов Яндекс.Карты */
.ymaps-2-1-79-map {
    border-radius: var(--border-radius);
}

.ymaps-2-1-79-balloon__content {
    padding: 15px !important;
    font-family: 'Roboto', sans-serif !important;
}

.ymaps-2-1-79-balloon__content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.ymaps-2-1-79-balloon__content p {
    margin: 5px 0;
    color: var(--gray-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.footer-text h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.footer-text p {
    color: #93a3b8;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-nav h4, .footer-contacts h4, .footer-docs h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-nav ul li, .footer-contacts ul li, .footer-docs ul li {
    margin-bottom: 0.8rem;
}

.footer-nav a, .footer-contacts a, .footer-docs a {
    color: #93a3b8;
    transition: var(--transition);
}

.footer-nav a:hover, .footer-contacts a:hover, .footer-docs a:hover {
    color: var(--primary-color);
}

.footer-contacts ul li {
    display: flex;
    align-items: center;
}

.footer-contacts ul li i {
    margin-right: 10px;
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    font-size: 0.9rem;
}

/* Плавающая кнопка вызова */
.floating-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.floating-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

.floating-button i {
    font-size: 1.5rem;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 77, 0, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(255, 77, 0, 0);
    }
    100% {
        transform: scale(1);
    }
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 2.5rem;
    }

    .hero .container, .about .container, .call-form .container {
        flex-direction: column;
    }

    .about-content, .about-image {
        max-width: 100%;
    }


    .service-image {
        position: static; /* Позиционируем элемент абсолютно */
        z-index: 10; /* Поднимаем элемент выше других */
        top: 0; /* Установите нужные значения для top, left, right, bottom */
        left: 0; /* Установите нужные значения для top, left, right, bottom */
        height: max-content;

        transform: scale(1.2) translateY(20%);; /* Увеличиваем элемент в 3 раза */
    }

    .service-image img {
        position: static; /* Позиционируем элемент абсолютно */
        z-index: 10; /* Поднимаем элемент выше других */
        top: 0; /* Установите нужные значения для top, left, right, bottom */
        left: 0; /* Установите нужные значения для top, left, right, bottom */
        transform: translateX(20%) scale(1.2); /* Увеличиваем изображение в 3 раза */
    }
    
    .fleet-card {
        flex-direction: column;
    }

    .fleet-image, .fleet-info {
        width: 100%;
    }

    .footer-links {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    nav {
        justify-content: space-between;
    }

    .logo {
        margin-right: 0;
    }
    
    .phone {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--white-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        transition: all 0.5s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        margin: 1.5rem 0;
    }

    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        cursor: pointer;
        z-index: 1010;
        visibility: visible !important;
        opacity: 1 !important;
        margin-left: 15px;
        position: relative;
    }
    
    .mobile-menu-btn span {
        display: block !important;
        width: 100% !important;
        height: 3px !important;
        background-color: var(--primary-color) !important;
        border-radius: 2px !important;
        transition: all 0.3s ease !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0 !important;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .footer-content, .footer-links {
        flex-direction: column;
        gap: 2rem;
    }

    .site-title {
        display: none;
    }

    .logo img {
        height: 40px;
    }

    .fleet-image {
        height: 200px;
    }

    .nav-menu {
        gap: 1px; /* Уменьшаем расстояние для мобильных устройств */
        
    }
    

    .nav-menu li {
        margin: 20px; /* Убираем margin для мобильных устройств */
        justify-content: space-between; /* Уменьшаем пробелы между кнопками */

    }
}

@media (max-width: 576px) {
    header {
        padding: 0 0.5rem;
    }
    
    nav {
        position: relative;
        justify-content: space-between;
    }
    
    .logo img {
        height: 35px;
    }
    
    .phone {
        display: none;
    }
    
    .phone-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 1.5rem 0;
    }
    
    .nav-menu .phone-mobile .phone-number {
        font-size: 1.2rem;
        color: var(--primary-color);
        font-weight: 700;
        margin-bottom: 5px;
    }
    
    .mobile-menu-btn {
        width: 25px;
        height: 18px;
        margin-right: 5px;
    }
    
    .mobile-menu-btn span {
        height: 2px !important;
    }
    
    .section-title {
        font-size: 1.8rem;
        white-space: normal;
        hyphens: manual;
    }
    
    .about .section-title::before,
    .about .section-title::after {
        content: "\00a0"; /* Неразрывный пробел */
        display: none;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-info {
        padding: 1.5rem;
    }
    
    .floating-button {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-button a {
        width: 50px;
        height: 50px;
    }
    
    .testimonial {
        padding: 1.5rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .testimonial-author img {
        width: 50px;
        height: 50px;
    }
}

.site-title {
    display: flex;
    flex-direction: column;
    margin-right: auto;
    margin-left: 15px;
}

.site-title h1 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--dark-color);
    margin: 0;
}

.site-title p {
    font-size: 0.85rem;
    color: var(--gray-color);
}

.company-info {
    margin-bottom: 1.5rem;
}

.company-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.company-info p {
    color: #93a3b8;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

@media (min-width: 992px) {
    .fleet-card {
        flex-direction: row;
        align-items: center;
    }
    
    .fleet-image {
        width: 50%;
        height: 300px;
        border-radius: var(--border-radius) 0 0 var(--border-radius);
    }
    
    .fleet-info {
        width: 50%;
    }
}

/* Автопарк секция */
.fleet {
    padding: 5rem 0;
    background-color: white;
    overflow: visible;
}

.fleet-image {
    height: 250px;
    overflow: hidden;
    position: relative;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    flex-shrink: 0;
}

.fleet-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.fleet-info {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.fleet-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.fleet-info p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.fleet-info ul {
    padding-left: 0;
    margin-top: auto;
    list-style: none;
}

.fleet-info ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--gray-color);
}

.fleet-info ul li::before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Стиль для активного слайда */
.fleet-slide-wrapper.active .fleet-card, 
.testimonial-slide-wrapper.active .testimonial {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 77, 0, 0.2); /* Усиливаем рамку для активного слайда */
}

/* Увеличение картинки при наведении в активном слайде */
.fleet-slide-wrapper.active:hover .fleet-image img {
    transform: scale(1.1);
}

/* Для больших экранов делаем горизонтальную карточку */
@media (min-width: 992px) {
    .fleet-card {
        flex-direction: row;
    }
    
    .fleet-image {
        width: 50%;
        height: 300px;
        border-radius: var(--border-radius) 0 0 var(--border-radius);
    }
    
    .fleet-info {
        width: 50%;
    }
}

/* Для средних и маленьких экранов */
@media (max-width: 991px) {
    .fleet-card {
        flex-direction: column;
    }
    
    .fleet-image {
        width: 100%;
        height: 200px;
    }
    
    .fleet-info {
        width: 100%;
    }
}

/* Обновлённые стили для карточек и элементов с закруглёнными углами */
.service-card,
.about-feature,
.testimonial,
.fleet-card,
.cta-section,
.form-container,
.contact-info,
input, 
select, 
textarea {
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* Обновлённые стили для контактной формы */
.contact {
    background-color: var(--light-color);
    padding: 5rem 0;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.contact-info {
    flex: 1;
    background-color: var(--white-color);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    min-width: 300px;
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-method {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-method i {
    margin-right: 1rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 77, 0, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}



.contact-method div {
    flex: 1;
}

.contact-method h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--dark-color);
}

.contact-method p {
    margin: 0.3rem 0 0;
    color: var(--gray-color);
}

.contact-method a {
    color: var(--gray-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-method a:hover {
    color: var(--primary-color);
}

.social-media {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/*.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 77, 0, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--primary-color);
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 77, 0, 0.3);
}*/

.form-container {
    flex: 2;
    background-color: var(--white-color);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    min-width: 300px;
}

.form-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group:nth-child(4) {
    grid-column: span 2;
}

input, 
select, 
textarea {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

input:focus, 
select:focus, 
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.2);
}

::placeholder {
    color: #94a3b8;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

input:focus::placeholder,
textarea:focus::placeholder {
    opacity: 0.3;
}

textarea {
    resize: vertical;
    min-height: 150px;
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group:nth-child(4) {
        grid-column: span 1;
    }
}

/* Плавные переходы между модулями */
section {
    position: relative;
    transition: opacity 0.6s ease, transform 0.8s ease;
}

section.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    will-change: opacity, transform;
}

section.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Разные эффекты появления для разных секций */
section#hero.fade-in-section {
    transform: translateY(0);
    opacity: 0;
}

section#hero.fade-in-section.is-visible {
    opacity: 1;
}

section#services.fade-in-section {
    transform: translateY(40px);
}

section#about.fade-in-section {
    transform: translateX(-30px);
}

section#fleet.fade-in-section {
    transform: translateY(50px);
}

section#testimonials.fade-in-section {
    transform: translateX(30px);
}

section#contact.fade-in-section,
section#call.fade-in-section {
    transform: translateY(40px);
    opacity: 0;
}

/* Плавный переход между модулями при активном скролле */
.smooth-scroll-active {
    scroll-behavior: smooth;
}

/* Эффект перехода через фон */
.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.transition-overlay.active {
    opacity: 0.05;
}

/* Плавное появление элементов внутри секций */
.staggered-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.staggered-element.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Улучшение существующих анимаций */
.animated {
    transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1.0) !important;
}

/* Анимации в зависимости от направления прокрутки */
section.fade-in-section[data-scroll-direction="down"] {
    transform: translateY(40px);
}

section.fade-in-section[data-scroll-direction="up"] {
    transform: translateY(40px);
}

section#hero.fade-in-section[data-scroll-direction="down"],
section#hero.fade-in-section[data-scroll-direction="up"] {
    transform: translateY(30px);
}

section.fade-in-section[data-scroll-direction="down"] .staggered-element:not(.animated) {
    transform: translateY(30px);
}

section.fade-in-section[data-scroll-direction="up"] .staggered-element:not(.animated) {
    transform: translateY(30px);
}

/* Улучшаем перенос для разных типов модулей */
section.fade-in-section[data-scroll-direction="down"]#about,
section.fade-in-section[data-scroll-direction="down"]#testimonials {
    transform: translateX(-30px);
}

section.fade-in-section[data-scroll-direction="up"]#about,
section.fade-in-section[data-scroll-direction="up"]#testimonials {
    transform: translateX(-30px);
}

/* Стилизуем переход между секциями */
.smooth-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--primary-color);
    z-index: 9999;
    transform: scaleX(0);
    transform-origin: left;
}

.smooth-transition.active {
    animation: transition-progress 0.8s ease-in-out forwards;
}

@keyframes transition-progress {
    0% {
        transform: scaleX(0);
    }
    50% {
        transform: scaleX(0.5);
    }
    100% {
        transform: scaleX(1);
    }
}

/* Фикс для раздела контактов, который исчезает */
section#contact, 
section#call,
section#map {
    opacity: 1 !important;
    transform: none !important;
}

section#contact.fade-in-section,
section#call.fade-in-section,
section#map.fade-in-section {
    opacity: 1 !important;
    transform: none !important;
}

.contact-info, 
.form-container {
    opacity: 1 !important;
    transform: none !important;
}

.contact-method {
    opacity: 1 !important;
    transform: none !important;
}

/* Обеспечение видимости всех секций при перезагрузке страницы */
@media (max-width: 992px) {
    section.fade-in-section {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .staggered-element {
        opacity: 1 !important;
        transform: none !important;
    }
} 

/* Устранение размытия шрифтов при субпиксельном рендеринге */
@supports (font-variant-numeric: lining-nums) {
    body {
        font-variant-numeric: lining-nums;
        font-variant-ligatures: common-ligatures;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
}

/* Стили для закрепленной шапки сайта */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Стили для шапки при прокрутке */
.sticky-header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .sticky-header {
        padding: 5px 0;
    }
}

/* Добавляем специальные классы для определения типа устройства */
html.is-mobile body {
    font-size: 16px;
}

html.is-tablet body {
    font-size: 16px;
}

/* Улучшение стиля кнопки меню для маленьких экранов */
@media (max-width: 360px) {
    .mobile-menu-btn {
        width: 30px !important;
        height: 22px !important;
        margin-right: 10px !important;
        transform: scale(1.2);
    }
    
    .mobile-menu-btn span {
        height: 3px !important;
        margin: 3px 0 !important;
    }
    
    .logo img {
        height: 30px !important;
    }
}

/* Улучшение адаптивности сайта для различных устройств */
/* Стили для средних планшетов (портретная ориентация) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 95%;
    }
    
    .mobile-menu-btn {
        display: flex !important;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--white-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        transition: all 0.5s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hero .container, 
    .about .container {
        flex-direction: column;
    }
    
    .hero-content,
    .hero-image,
    .about-content,
    .about-image,
    .service-image {
        width: 100%;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .about-image {
        margin-top: 2rem;
        height: 300px;
    }

    .service-image {
        margin-top: 2rem;
        height: 300px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info,
    .form-container {
        width: 100%;
        margin-bottom: 2rem;
    }
}

/* Улучшаем стили для малых планшетов и больших телефонов */
@media (min-width: 576px) and (max-width: 767px) {
    .site-title {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .fleet-image {
        height: 250px;
    }
}



/* Дополнительная оптимизация для очень маленьких экранов */
@media (max-width: 360px) {
    h1, .hero h1 {
        font-size: 1.8rem !important;
    }
    
    h2, .section-header h2 {
        font-size: 1.5rem !important;
    }
    
    .section-header p {
        font-size: 1rem !important;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        width: 85% !important; /* Шире меню для маленьких устройств */
    }
    
    .hero-features .feature {
        padding: 10px;
    }
    
    .hero-features .feature i {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .hero-features .feature span {
        font-size: 0.8rem;
    }
    
    .mobile-menu-btn {
        position: absolute;
        top: 50%;
        right: 10px;
        transform: translateY(-50%) scale(1.2);
    }
}

/* Улучшение для планшетов в горизонтальной ориентации */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 95%;
    }
    
    .nav-menu li {
        margin-left: 15px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Оптимизация для рендеринга */
body {
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Оптимизация для загрузки изображений */
img {
    height: auto;
    max-width: 100%;
}

/* Дополнительный класс для iPad */
@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1024px) {
    html.is-tablet body {
        font-size: 16px !important;
    }
    
    .mobile-menu-btn {
        display: flex !important;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 60%;
        height: 100vh;
        background-color: var(--white-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        transition: all 0.5s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .phone {
        display: none;
    }
    
    .phone-mobile {
        display: flex !important;
    }
}

/* Стили для различных ориентаций устройства */
html.landscape .hero .container {
    flex-direction: row;
}

html.portrait.is-tablet .hero .container,
html.portrait.is-mobile .hero .container {
    flex-direction: column;
}

/* Улучшения для iPad */
html.is-ipad .mobile-menu-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 1010;
}

html.is-ipad .phone {
    display: none !important;
}

html.is-ipad .phone-mobile {
    display: flex !important;
}

html.is-ipad .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 60%;
    height: 100vh;
    background-color: var(--white-color);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    transition: all 0.5s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

html.is-ipad .nav-menu.active {
    right: 0;
}

/* Улучшенная видимость кнопки меню для очень маленьких экранов */
html.xs-screen .mobile-menu-btn {
    position: absolute !important;
    top: 50% !important;
    right: 10px !important;
    transform: translateY(-50%) scale(1.2) !important;
    width: 30px !important;
    height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    z-index: 1010 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

html.xs-screen .mobile-menu-btn span {
    width: 100% !important;
    height: 3px !important;
    background-color: var(--primary-color) !important;
    border-radius: 3px !important;
    transition: all 0.3s ease !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Улучшение контрастности кнопки меню */
.mobile-menu-btn span {
    background-color: var(--primary-color) !important;
    width: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Гарантия видимости на всех устройствах */
@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 80% !important;
        height: 200vh !important;
        background-color: var(--white-color) !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 6rem 2rem 2rem !important;
        transition: all 0.5s ease !important;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1) !important;
        z-index: 1000 !important;
    }
    
    .nav-menu.active {
        right: 0 !important;
        transform: translateY(-100px) !important; /* Поднимаем текст */
        font-size: calc(0.7rem + 1vw) !important; /* Оптимизация размера текста */
    }

}

/* Стили для элементов, видимых только на десктопе */
.desktop-only {
    display: block;
}

/* Скрываем элементы desktop-only на мобильных устройствах */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

/* Поднимаем кнопки в мобильном меню выше */
.mobile-menu-btn {
    margin-top: 10px; /* Увеличьте значение, если нужно поднять еще выше */
}

/* Убедитесь, что кнопки остаются видимыми при сжатии экрана */
@media (max-width: 768px) {
    .hero-buttons {
        display: flex;
        flex-direction: column; /* Измените на колонку для лучшего отображения */
        position: relative; /* Убедитесь, что кнопки не выходят за пределы экрана */
        z-index: 10; /* Убедитесь, что кнопки находятся выше других элементов */
    }

    .btn-evacuation, .secondary-button {
        margin: 5px 0; /* Добавьте отступы между кнопками */
    }
}
