/**
 * MD CARS - Основные стили для сайта
 * Современный и стильный дизайн для автодилера
 */

@import url('/assets/css/policy.css');
@import url('/assets/css/service.css');
@import url('/assets/css/about.css');

/* =========== Основные стили =========== */
:root {
    --primary-color: #2f5f82;
    --primary-color-rgb: 47, 95, 130;
    --secondary-color: #e61e25;
    --dark-color: #121212;
    --light-color: #f9f9f9;
    --gray-color: #757575;
    --light-gray: #eaeaea;
    --white-color: #ffffff;
    --black-color: #000000;
    --text-color: #333333;
    --border-radius: 8px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, #2f5f82 0%, #1d4966 100%);
    --body-font: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
    overflow-x: hidden;
    padding-top: 124px; 
}

@media (max-width: 991.98px) {
    body {
        padding-top: 0;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--dark-color);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 2rem;
}

p {
    margin-bottom: 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover:before {
    width: 100%;
}

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

.btn-primary:hover {
    background-color: #001e36;
    color: var(--white-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.btn-secondary:hover {
    background-color: #e56c0a;
    color: var(--white-color);
}

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

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

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

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

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 45px;
    position: relative;
    display: inline-block;
    z-index: 1;
}

/* ========== Preloader ========== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader {
    position: relative;
}

.car {
    animation: pulse 1.5s infinite;
}

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

.car__wheel--left,
.car__wheel--right {
    animation: wheel 1s infinite linear;
    transform-origin: center;
    transform-box: fill-box;
}

@keyframes wheel {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.car__line--top,
.car__line--middle,
.car__line--bottom {
    animation: moving-line 1.5s infinite ease-in-out;
    transform-origin: center left;
}

.car__line--top {
    animation-delay: 0s;
}

.car__line--middle {
    animation-delay: 0.2s;
}

.car__line--bottom {
    animation-delay: 0.4s;
}

@keyframes moving-line {
    0% { transform: scaleX(0); opacity: 0; }
    20% { transform: scaleX(1); opacity: 1; }
    80% { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(0); opacity: 0; }
}

/* ========== Header ========== */
.site-header {
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.position-fixed {
    position: fixed;
}

.site-header.sticky {
    background-color: var(--white-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 991.98px) {
    .site-header {
        position: relative;
        background-color: var(--white-color);
    }
    
    .site-header.sticky {
        position: relative;
    }
    
    .hero-section {
        padding-top: 0;
    }
}

.top-bar {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 10px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-link, .email-link {
    color: var(--white-color);
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-link:hover, .email-link:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-link {
    color: var(--white-color);
    font-size: 16px;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.main-header {
    padding: 15px 0;
    background-color: var(--white-color);
    transition: var(--transition);
}

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

.logo {
    flex: 0 0 180px;
}

.logo-img {
    max-height: 60px;
    width: auto;
    transition: var(--transition);
}

.main-navigation {
    flex: 1;
    padding: 0 30px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-right: 25px;
    position: relative;
}

.nav-item:last-child {
    margin-right: 0;
}

.nav-link {
    color: var(--color-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 30px 0;
    display: block;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-item.active .nav-link {
    color: var(--color-primary);
}

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

.nav-link:hover:after, .nav-item.active .nav-link:after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    position: relative;
    padding-right: 18px;
}

.dropdown-toggle:after {
    display: none;
}

.nav-item:hover .nav-link, 
.nav-item.active .nav-link {
    color: var(--primary-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 200px;
    padding: 10px 0;
    background-color: var(--white-color);
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: block !important;
    margin-top: 0 !important;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 8px 20px;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: rgba(47, 95, 130, 0.05);
    color: var(--primary-color);
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.mobile-dropdown-toggle i {
    display: none;
}

.mobile-nav-item.dropdown.active .mobile-dropdown-toggle i {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    display: none;
    padding-left: 15px;
    margin-top: 5px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-item.dropdown.active .mobile-dropdown-menu {
    display: block;
}

.mobile-dropdown-item {
    display: block;
    padding: 10px 15px;
    color: var(--color-light);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
    opacity: 0.8;
    position: relative;
}

.mobile-dropdown-item:hover, .mobile-dropdown-item.active {
    opacity: 1;
    color: var(--color-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.callback-btn {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: underline;
    transition: var(--transition);
}

.callback-btn:hover {
    color: var(--secondary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background-color: var(--white-color);
    z-index: 1000;
    padding: 20px;
    transition: var(--transition);
    overflow-y: auto;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
}

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

.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.mobile-menu-backdrop.active {
    display: block;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 20px;
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: var(--text-color);
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.mobile-nav-link {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    display: block;
    padding: 8px 0;
}

.mobile-nav-link:hover, .mobile-nav-item.active .mobile-nav-link {
    color: var(--primary-color);
}

.mobile-menu-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.mobile-contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.mobile-phone, .mobile-email {
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
}

.mobile-social {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.mobile-social-link {
    color: var(--primary-color);
    font-size: 18px;
}

.mobile-calc-btn {
    width: 100%;
}

/* ========== Hero Section ========== */
.hero-section {
    padding: 140px 0 100px;
    position: relative;
    background-color: #f8f9fa;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230046ad' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2V6h4V4H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, rgba(248,249,250,1) 0%, rgba(248,249,250,0.9) 50%, rgba(248,249,250,0.5) 80%, rgba(248,249,250,0) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    position: relative;
}

.hero-left {
    width: 60%;
    padding-right: 30px;
    position: relative;
    z-index: 3;
}

.hero-right {
    position: absolute;
    top: -70px;
    right: -150px;
    width: 70%;
    height: calc(100% + 140px);
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: none;
}

.hero-title {
    color: var(--primary-color);
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
    text-transform: uppercase;
    text-align: left;
}

.hero-description {
    color: #333333;
    font-size: 18px;
    margin: 0 0 45px;
    line-height: 1.6;
    text-align: left;
}

.hero-cta {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-bottom: 50px;
}

.advantages-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 50px;
    width: 100%;
    max-width: 100%;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 90px;
}

.advantage-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    min-width: 35px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4966 100%);
    border-radius: 50%;
    margin-right: 12px;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(47, 95, 130, 0.3);
    transition: var(--transition);
}

.advantage-icon i {
    font-size: 13px;
}

.advantage-item:hover .advantage-icon {
    background: linear-gradient(135deg, var(--secondary-color), #c0392b);
    transform: translateY(-2px);
}

.advantage-text h4 {
    font-size: 14px;
    margin-bottom: 4px;
    font-weight: 600;
}

.advantage-text p {
    font-size: 12px;
    margin-bottom: 0;
    color: var(--gray-color);
    line-height: 1.4;
}

@media (max-width: 1200px) {
    .hero-right {
        right: -80px;
        width: 65%;
    }
    
    .hero-left {
        width: 65%;
    }
}

@media (max-width: 991.98px) {
    .hero-content {
        flex-direction: column;
    }
    
    .hero-left {
        width: 100%;
        padding-right: 0;
    }
    
    .hero-right {
        position: relative;
        top: 0;
        right: 0;
        width: 100%;
        height: 350px;
        margin-top: 20px;
        order: -1;
    }
    
    .hero-image img {
        max-height: 350px;
        object-fit: contain;
    }
    
    .hero-title {
        font-size: 36px;
        text-align: center;
        margin-top: 30px;
    }
    
    .hero-description {
        font-size: 16px;
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .advantages-list {
        align-items: center;
    }
    
    .advantage-item {
        height: auto;
        min-height: 90px;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 80px 0 60px;
    }
    
    .hero-title {
        font-size: 30px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .advantages-list {
        width: 100%;
    }
    
    .advantage-item {
        padding: 12px;
        height: auto;
        min-height: 80px;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 60px 0 40px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .advantage-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    
    .advantage-text h4 {
        font-size: 15px;
    }
    
    .advantage-text p {
        font-size: 13px;
    }
}

/* ========== Catalog Section ========== */
.catalog-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

.catalog-filter {
    margin-bottom: 40px;
    background-color: var(--white-color);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 15px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(47, 95, 130, 0.1);
}

.btn-search {
    background-color: var(--primary-color);
    color: var(--white-color);
    height: 50px;
    margin-top: 25px;
}

.catalog-cars {
    margin-bottom: 40px;
}

.car-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(47, 95, 130, 0.12);
}

.car-card-image {
    position: relative;
    padding-top: 65%;
    overflow: hidden;
    background-color: #f5f5f5;
    border-radius: 8px 8px 0 0;
}

.car-img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.car-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    z-index: 1;
}

.car-favorite {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--white-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.car-favorite:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.car-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.car-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.car-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.car-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.car-feature {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: var(--gray-color);
}

.feature-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.feature-value {
    color: var(--gray-color);
}

@media (max-width: 767px) {
    .car-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 575px) {
    .car-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

.car-feature i {
    color: var(--primary-color);
}

.car-actions {
    margin-top: 20px;
}

.catalog-more {
    text-align: center;
    margin-top: 40px;
}

/* ========== Services Section ========== */
.services-section {
    padding: 100px 0;
    background-color: var(--white-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--light-color);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.service-card:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover:before {
    height: 100%;
}

.service-card:hover .service-title,
.service-card:hover .service-desc {
    color: var(--white-color);
}

.service-card:hover .service-link {
    color: var(--white-color);
}

.service-icon {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    min-height: 70px !important;
    max-width: 70px !important;
    max-height: 70px !important;
    margin: 0 auto 25px !important;
}

.service-card:hover .service-icon {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    transition: var(--transition);
}

.service-desc {
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-link {
    font-weight: 600;
    text-decoration: underline;
    color: var(--primary-color);
    transition: var(--transition);
}

/* ========== Process Section ========== */
.process-section {
    padding: 100px 0;
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.workflow-container {
    margin-top: 60px;
}

.workflow-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative;
    padding-left: 15px;
}

.workflow-list:before {
    content: '';
    position: absolute;
    top: 0;
    left: 22px;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--primary-color) 10%, var(--primary-color) 90%, transparent);
    z-index: 1;
}

.workflow-item {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 60px;
    transition: transform 0.3s ease;
}

.workflow-item:hover {
    transform: translateX(5px);
}

.workflow-number {
    position: absolute;
    top: 0;
    left: 0;
    width: 45px;
    height: 45px;
    background-color: var(--white-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Unbounded', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    z-index: 2;
    box-shadow: 0 0 15px rgba(47, 95, 130, 0.15);
    transition: all 0.3s ease;
}

.workflow-item:hover .workflow-number {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: scale(1.1);
}

.workflow-content {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 20px 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
    width: 100%;
}

.workflow-item:hover .workflow-content {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.workflow-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.workflow-desc {
    font-size: 15px;
    color: var(--gray-color);
    margin-bottom: 0;
}

.team-image-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 15px;
}

.team-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.team-image img {
    display: block;
    width: 100%;
    height: auto;
}

.team-image-caption {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 15px 20px;
    margin-top: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 90%;
}

.team-image-caption span {
    font-size: 15px;
    font-style: italic;
    color: var(--gray-color);
}

@media (max-width: 991.98px) {
    .workflow-container {
        margin-top: 40px;
    }
    
    .team-image-container {
        margin-top: 50px;
        padding: 0;
    }
    
    .team-image {
        max-width: 80%;
        margin: 0 auto;
    }
}

@media (max-width: 767.98px) {
    .process-section {
        padding: 70px 0;
    }
    
    .workflow-list {
        gap: 20px;
    }
    
    .workflow-item {
        padding-left: 50px;
    }
    
    .workflow-content {
        padding: 15px 20px;
    }
    
    .workflow-title {
        font-size: 16px;
    }
    
    .workflow-desc {
        font-size: 14px;
    }
    
    .team-image {
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .workflow-number {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .workflow-list:before {
        left: 20px;
    }
    
    .team-image-caption {
        max-width: 100%;
    }
}

/* ========== Testimonials Section ========== */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--white-color);
}

.testimonials-slider {
    margin: 0 -15px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.testimonial-item {
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.testimonial-item:hover {
    box-shadow: var(--box-shadow);
    transform: translateY(-5px);
}

.testimonial-author {
    flex: 0 0 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    border: 3px solid #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    width: 100%;
    text-align: center;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.author-car {
    font-size: 14px;
    color: #e31e24;
    font-weight: 500;
    margin-bottom: 0;
}

.testimonial-content {
    flex-grow: 1;
    position: relative;
    padding-top: 10px;
    display: flex;
    align-items: center;
}

.testimonial-text {
    color: var(--text-color);
    font-size: 22px;
    line-height: 1.6;
    position: relative;
    padding-left: 30px;
}

.testimonial-text:before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 0;
    left: 0;
    color: #e31e24;
    font-size: 20px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 767.98px) {
    .testimonial-item {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .testimonial-author {
        flex: 0 0 auto;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .testimonial-content {
        width: 100%;
    }
    
    .testimonial-text {
        font-size: 18px;
    }
}

/* ========== Calculator Section ========== */
.calculator-section {
    padding: 100px 0;
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.calculator-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.05) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
    opacity: 0.1;
}

.calculator-wrapper {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 50px;
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 2;
}

.calculator-section .section-title {
    margin-bottom: 20px;
}

.calculator-form .form-group {
    margin-bottom: 20px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-check-label {
    font-size: 14px;
    color: var(--gray-color);
}

/* ========== Footer ========== */
.site-footer {
    background-color: var(--dark-color);
    color: var(--light-gray);
    padding-top: 60px;
}

.footer-top {
    padding: 80px 0 50px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-logo {
    margin-bottom: 25px;
}

.footer-logo-img {
    max-height: 50px;
}

.footer-description {
    margin-bottom: 25px;
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social-link:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
    transform: translateY(-5px);
}

.footer-widget-title {
    color: var(--white-color);
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-left: 15px;
}

.footer-widget-title:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background-color: var(--secondary-color);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--light-gray);
    transition: var(--transition);
    display: block;
    position: relative;
    padding-left: 15px;
}

.footer-links a:before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--secondary-color);
    opacity: 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white-color);
    padding-left: 20px;
}

.footer-links a:hover:before {
    opacity: 1;
}

.footer-contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-contact-item i {
    color: var(--secondary-color);
    font-size: 18px;
    margin-top: 3px;
}

.footer-contact-item a {
    color: var(--light-gray);
}

.footer-contact-item a:hover {
    color: var(--white-color);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    opacity: 0.7;
    font-size: 14px;
}

.footer-links-bottom {
    font-size: 14px;
}

.footer-links-bottom a {
    color: var(--light-gray);
    opacity: 0.7;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links-bottom a:hover {
    opacity: 1;
}

.footer-links-divider {
    margin: 0 10px;
    color: var(--light-gray);
    opacity: 0.5;
}

/* ========== Back to Top ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
    transform: translateY(-5px);
}

/* ========== Modal ========== */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.modal-header {
    background: #2f5f82;
}
.modal-header .modal-title, .modal-header h5 {
    color: #fff !important;
}

.modal .form-check-input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1.5px solid #bfc9d1;
    background: #fff;
    margin-right: 8px;
    margin-top: 3px;
    cursor: pointer;
    vertical-align: middle;
    /* НЕ трогаем appearance! */
}

.form-check-label {
    font-size: 14px;
    color: var(--gray-color);
}

/* ========== Responsive Styles ========== */
@media (max-width: 1199.98px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.4rem;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 991.98px) {
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-actions .btn {
        display: none;
    }
    
    .hero-section {
        padding: 150px 0 100px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .car-3d-container {
        height: 350px;
        margin-top: 40px;
        margin-bottom: 30px;
    }
    
    .process-item {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .calculator-wrapper {
        padding: 30px;
    }
    
    .contacts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .contact-card {
        margin-bottom: 20px;
    }
    
    .map-container {
        margin-top: 20px;
    }
    
    .contact-form {
        margin-top: 30px;
    }
    
    .contact-info-block {
        margin-bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        max-width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .filter-group {
        flex: 0 0 100%;
    }
    
    .testimonial-item {
        flex-direction: column;
    }
    
    .process-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .contacts-map {
        height: 300px;
    }
    
    .contact-form-section .section-title {
        font-size: 22px;
    }
    
    .section-padding {
        padding-top: 30px;
        padding-bottom: 30px;
    }
    
    .map-section, .contact-form-section {
        padding: 40px 0;
    }
    
    .contact-info-item {
        margin-bottom: 15px;
    }
}

@media (max-width: 575.98px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-section {
        padding: 130px 0 80px;
    }
    
    .calculator-wrapper {
        padding: 20px;
    }
    
    .contact-flag {
        margin-bottom: 15px;
    }
    
    .country-name {
        font-size: 16px;
    }
    
    .contact-item {
        margin-bottom: 10px;
    }
    
    .contact-item span, 
    .contact-item a {
        font-size: 14px;
    }
    
    .contact-form .form-control {
        margin-bottom: 15px;
        padding: 10px;
    }
    
    .contact-info-text h4 {
        font-size: 15px;
    }
    
    .contact-info-text p,
    .contact-info-text a {
        font-size: 14px;
    }
}

.contact-info a {
    margin-right: 20px;
    color: var(--color-light);
    font-size: 14px;
    transition: all 0.3s;
}

.contact-info a:last-child {
    margin-right: 0;
}

.contact-info a i {
    margin-right: 5px;
}

.contact-info .tracking-link i {
    color: var(--color-primary);
}

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

.nav-menu .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(10px);
    border: none;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    padding: 10px 0;
    margin-top: 0;
}

.nav-menu .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav-menu .mobile-dropdown-menu {
    display: none;
    transition: all 0.3s ease;
}

.mobile-nav-item.dropdown.active .mobile-dropdown-menu {
    display: block;
}

.nav-item:hover .nav-link, 
.nav-item.active .nav-link {
    color: var(--primary-color);
}

.dropdown-item:hover {
    background-color: rgba(47, 95, 130, 0.05);
    color: var(--primary-color);
}

.nav-item.hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item.active .nav-link {
    color: var(--secondary-color);
    font-weight: 700;
}

.dropdown-item.active {
    background-color: rgba(47, 95, 130, 0.05);
    color: var(--primary-color);
}

.nav-menu .dropdown-menu {
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.nav-menu .dropdown-menu:before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
    z-index: 2;
}

.car-img-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f0f0f0 25%, #e6e6e6 25%, #e6e6e6 50%, #f0f0f0 50%, #f0f0f0 75%, #e6e6e6 75%, #e6e6e6 100%);
    background-size: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.car-img-placeholder::after {
    content: '\f1b9';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 50px;
    color: rgba(47, 95, 130, 0.2);
}

.text-logo {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--primary-color);
    text-transform: uppercase;
    transition: var(--transition);
}

.logo-img {
    max-height: 60px;
    width: auto;
    transition: var(--transition);
}

.mobile-menu .logo-img {
    max-height: 50px;
}

.dropdown-menu {
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 8px;
    padding: 12px 0;
    transform: translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: none;
    margin-top: 5px;
    z-index: 1000;
    display: block;
}

.dropdown-item {
    padding: 8px 20px;
    color: var(--dark-color);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: rgba(var(--primary-rgb), 0.05);
    color: var(--primary-color);
}

.nav-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: none;
    pointer-events: none;
}

.nav-menu .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: auto;
}

.nav-menu .dropdown {
    position: relative;
}

.mobile-dropdown-menu {
    background-color: rgba(255, 255, 255, 0.03);
    padding-left: 15px;
    margin-top: 5px;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-dropdown-item {
    padding: 10px 15px;
    color: var(--text-color);
    font-size: 14px;
    transition: var(--transition);
}

.timeline-process {
    position: relative;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0;
}

.timeline-process::before {
    content: '';
    position: absolute;
    width: 6px;
    background: linear-gradient(180deg, #3498db 0%, #2c3e50 100%);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    z-index: 1;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.4);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    clear: both;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 30px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.timeline-content:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

.timeline-number {
    position: absolute;
    width: 70px;
    height: 70px;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    font-weight: 800;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.5);
    border: 4px solid white;
}

.timeline-title {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 24px;
}

.timeline-desc {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
    margin-right: 60px;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
    margin-left: 60px;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    border-width: 15px;
    border-style: solid;
    border-color: transparent transparent transparent white;
    top: 35px;
    right: -30px;
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    border-width: 15px;
    border-style: solid;
    border-color: transparent white transparent transparent;
    top: 35px;
    left: -30px;
}

@media screen and (max-width: 768px) {
    .timeline-process::before {
        left: 40px;
    }
    
    .timeline-number {
        left: 40px;
        transform: translateX(-50%);
    }
    
    .timeline-item {
        justify-content: flex-start;
    }
    
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
    }
    
    .timeline-content {
        width: calc(100% - 100px);
        margin-left: 80px !important;
        text-align: left !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-content {
        margin-right: 0;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 80px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::after {
        right: auto;
        left: -30px;
        border-color: transparent white transparent transparent;
    }
}

.about-section {
    padding: 80px 0;
}

.about-lead {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
}

.about-feature {
    display: flex;
    margin-bottom: 40px;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.about-feature-content {
    flex: 1;
}

.about-feature-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark-color);
    font-weight: 600;
}

.country-advantages {
    margin-top: 50px;
}

.country-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.country-flag {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.country-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.country-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--dark-color);
    font-weight: 700;
}

.country-features {
    margin-bottom: 20px;
}

.related-services {
    padding: 80px 0;
    background-color: #f9f9f9;
}

@media (max-width: 992px) {
    .about-feature {
        flex-direction: column;
    }
    
    .about-feature .service-feature-icon {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .country-image {
        height: 250px;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .about-lead {
        font-size: 16px;
    }
    
    .about-feature {
        padding: 20px;
    }
    
    .country-card {
        padding: 20px;
    }
    
    .country-title {
        font-size: 24px;
    }
}

.icon-base,
.service-feature-icon,
.service-box-icon,
.service-icon,
.advantage-icon,
.service-card-icon,
.service-advantage-icon,
.service-option-icon,
.delivery-method-icon,
.country-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    max-width: 60px;
    max-height: 60px;
    flex-shrink: 0;
    flex-grow: 0;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    border-radius: 50%;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    padding: 0;
    aspect-ratio: 1/1;
    box-sizing: border-box;
    overflow: hidden;
}

.icon-base i,
.service-feature-icon i,
.service-box-icon i,
.service-icon i,
.advantage-icon i,
.service-card-icon i,
.service-advantage-icon i,
.service-option-icon i,
.delivery-method-icon i,
.country-icon i {
    font-size: 24px;
    color: #fff;
    line-height: 1;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-base:hover,
.service-box:hover .icon-base,
.service-card:hover .icon-base,
.service-option:hover .icon-base,
.service-advantage:hover .icon-base,
.delivery-method:hover .icon-base,
.about-feature:hover .icon-base,
.advantage-card:hover .icon-base,
.service-icon:hover,
.service-card:hover .service-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4);
}

.about-feature .service-feature-icon {
    margin-right: 20px;
}

.service-advantage-icon {
    margin-right: 15px;
}

.service-option-icon {
    margin-right: 15px;
}

.delivery-method-icon {
    margin-right: 20px;
}

.service-option-icon,
.service-advantage-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    max-width: 50px;
    max-height: 50px;
}

.service-card-icon,
.service-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    min-height: 70px;
    max-width: 70px;
    max-height: 70px;
    margin-bottom: 20px;
}

.advantage-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    max-width: 80px;
    max-height: 80px;
    margin: 0 auto 20px;
}

.customs-country-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px 20px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

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

.customs-country-flag {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 20px;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.customs-country-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.customs-country-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.customs-country-info {
    flex-grow: 1;
}

.customs-country-info p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 0;
}

.customs-info-note {
    padding: 15px;
    background-color: rgba(47, 95, 130, 0.05);
    border-radius: 10px;
    font-style: italic;
}

.about-note {
    margin-top: 30px;
    padding: 15px;
    background-color: rgba(47, 95, 130, 0.05);
    border-radius: 10px;
    font-style: italic;
}

@media (max-width: 992px) {
    .customs-country-card {
        margin-bottom: 20px;
    }
    
    .customs-country-flag {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 767px) {
    .customs-country-card {
        padding: 20px 15px;
    }
    
    .customs-country-name {
        font-size: 18px;
    }
    
    .customs-country-info p {
        font-size: 14px;
    }
}

.service-box {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    padding: 25px;
    height: 100%;
    transition: all 0.3s ease;
}

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

.service-box-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    border-radius: 50%;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.service-box-icon i {
    font-size: 28px;
    color: #fff;
}

.service-box-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.service-box-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.service-box-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    color: #555;
}

.service-box-list li:before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #e74c3c;
    font-size: 14px;
}

.parts-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.parts-content p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

.parts-image img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.advantage-card {
    text-align: center;
    background-color: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
}

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

.advantage-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.advantage-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .parts-content {
        margin-bottom: 40px;
    }
}

@media (max-width: 767.98px) {
    .advantage-card {
        margin-bottom: 30px;
    }
}

.delivery-country-block {
    margin-bottom: 60px;
    padding: 30px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.delivery-country-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.delivery-country-image {
    position: relative;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.delivery-country-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.delivery-country-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.delivery-country-desc {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

.delivery-method {
    display: flex;
    margin-bottom: 20px;
}

.delivery-method-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.delivery-method-content p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

@media (max-width: 991.98px) {
    .delivery-country-block {
        padding: 20px;
    }
    
    .delivery-country-image {
        margin-bottom: 20px;
    }
    
    .delivery-method {
        margin-bottom: 15px;
    }
}

@media (max-width: 767.98px) {
    .delivery-country-block {
        margin-bottom: 40px;
    }
    
    .delivery-method-icon {
        width: 50px;
        height: 50px;
    }
    
    .delivery-method-icon i {
        font-size: 20px;
    }
}

.delivery-country-image .country-flag {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
    border: none;
    overflow: hidden;
}

.delivery-country-image .country-flag img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.delivery-method-icon {
    flex-shrink: 0;
    margin-right: 20px;
}

.about-feature .service-feature-icon {
    flex: 0 0 60px;
    margin-right: 20px;
}

@media (max-width: 991.98px) {
    .delivery-method-icon {
        width: 50px;
        height: 50px;
    }
    
    .delivery-method-icon i {
        font-size: 20px;
    }
}

.contacts-section {
    padding: 50px 0;
}

.page-header-contacts {
    padding-bottom: 20px;
    padding-top: 30px;
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 10px;
}

.section-padding {
    padding-top: 40px;
    padding-bottom: 40px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.contact-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--light-gray);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.contact-flag {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.flag-icon {
    width: 30px;
    height: 30px;
    max-width: 30px;
    max-height: 30px;
    min-width: 30px;
    min-height: 30px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--light-gray);
    flex-shrink: 0;
}

.country-name {
    font-size: 18px;
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
}

.contact-info {
    flex: 1;
}

.contact-item {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 18px;
    margin-right: 15px;
    margin-top: 3px;
}

.contact-item span,
.contact-item a {
    font-size: 16px;
    color: var(--text-color);
    text-decoration: none;
    line-height: 1.5;
}

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

.map-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    margin-bottom: 0;
}

.map-container {
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contacts-map {
    width: 100%;
    height: 400px;
    background-color: #ebebeb;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #888;
    text-align: center;
    padding: 20px;
}

.contact-form-section {
    padding: 60px 0 70px;
    background-color: var(--primary-color);
    color: #fff;
    margin-top: 0;
    margin-bottom: 0;
}

.contact-form-section .section-title {
    color: #fff;
    margin-bottom: 20px;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-form .form-control {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    margin-bottom: 20px;
    padding: 12px 15px;
}

.contact-form .form-check-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.contact-form .form-check-label a {
    color: #fff;
    text-decoration: underline;
}

.contact-form .btn-primary {
    background-color: #fff;
    color: var(--primary-color);
    border: none;
    width: 100%;
    padding: 12px;
    font-weight: 600;
}

.contact-form .btn-primary:hover {
    background-color: #f0f0f0;
}

.page-title {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 0;
}

.contact-info-block {
    margin-top: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-info-item i {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.9);
    margin-right: 15px;
    margin-top: 3px;
}

.contact-info-text h4 {
    color: #fff;
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
}

.contact-info-text p,
.contact-info-text a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
    text-decoration: none;
}

.contact-info-text a:hover {
    color: #fff;
    text-decoration: underline;
} 

.country-flag-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #f0f0f0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.country-flag {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-info {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    width: 100%;
}

.contact-icon {
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--primary-color);
    font-size: 18px;
    transition: color 0.3s ease;
}

.contact-item:hover .contact-icon i {
    color: var(--secondary-color);
}

.contact-text {
    flex: 1;
}

.contact-text span,
.contact-text a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 15px;
    line-height: 1.5;
    display: block;
}

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

.country-box {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #eaeaea;
}

.country-box:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.country-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
}

.country-contacts {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.country-address, 
.country-phone, 
.country-email, 
.country-hours {
    flex: 1 0 auto;
    min-width: 100px;
    font-size: 15px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 10px;
    padding-right: 10px;
}

.country-contacts a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.country-contacts a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

@media (max-width: 991px) {
    .country-contacts {
        flex-direction: column;
    }
    
    .country-address, 
    .country-phone, 
    .country-email, 
    .country-hours {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 767px) {
    .country-box {
        padding: 20px;
    }
    
    .country-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
}

.car-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.car-features-grid .feature-box {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    display: flex;
    align-items: center;
    min-height: 80px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.car-features-grid .feature-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.car-features-grid .feature-icon {
    background-color: #2c6ba9;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.car-features-grid .feature-text {
    font-size: 14px;
    line-height: 1.3;
}

@media (max-width: 991px) {
    .car-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .car-features-grid {
        grid-template-columns: 1fr;
    }
}

.car-features .feature-box {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 80px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.car-features .feature-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.car-features .feature-icon {
    background-color: #2c6ba9;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.car-features .feature-text {
    font-size: 14px;
    line-height: 1.3;
}

@media (max-width: 767px) {
    .car-features .col-md-6 {
        margin-bottom: 15px;
    }
}

.car-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.nav-link.dropdown-toggle {
    cursor: pointer;
    position: relative;
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    padding: 1.5rem 1rem;
    color: #343a40;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link.dropdown-toggle:hover, 
.nav-item.active .nav-link.dropdown-toggle {
    color: #2c6ba9;
}

.nav-link.dropdown-toggle:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 1.2rem;
    left: 1rem;
    background-color: #2c6ba9;
    transition: all 0.3s ease;
}

.nav-link.dropdown-toggle:hover:after, 
.nav-item.active .nav-link.dropdown-toggle:after {
    width: calc(100% - 2rem);
}

.mobile-nav-link.mobile-dropdown-toggle {
    cursor: pointer;
    display: block;
    padding: 12px 15px;
    font-size: 16px;
    color: #343a40;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav-link:hover, 
.mobile-nav-item.active .mobile-nav-link {
    color: #2c6ba9;
    background-color: rgba(44, 107, 169, 0.05);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.advantage-item {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.advantage-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #2f5f82; /* Синий цвет для фона иконок */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: #fff;
    font-size: 24px;
    transition: all 0.3s ease;
}

.advantage-item:hover .advantage-icon {
    background: linear-gradient(135deg, var(--secondary-color), #c0392b);
    transform: translateY(-2px);
}

.advantage-text h4 {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.advantage-text p {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 0;
}

/* Стили для секции О компании ТЕРРИТОРИЯ АВТО */
.benefits-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.benefit-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefit-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(47, 95, 130, 0.1); /* Светло-синий фон */
    color: #2f5f82; /* Синий цвет для иконок */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 32px;
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    background-color: #2f5f82; /* Синий цвет при наведении */
    color: #fff;
    transform: scale(1.1);
}

.benefit-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.benefit-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Стили для секции с преимуществами-перечислением */
.features-list-section {
    padding: 80px 0;
    background-color: #fff;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-list-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-list-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-left: 3px solid var(--primary-color);
}

.feature-list-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    margin-right: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4966 100%);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(47, 95, 130, 0.2);
    transition: all 0.3s ease;
}

.feature-list-item:hover .feature-list-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--secondary-color) 0%, #c0392b 100%);
}

.feature-list-icon i {
    font-size: 24px;
    color: #fff;
}

.feature-list-text {
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.5;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.process-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

@media (max-width: 991.98px) {
    .feature-list-item {
        padding: 15px;
    }
    
    .feature-list-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        margin-right: 15px;
    }
    
    .feature-list-icon i {
        font-size: 20px;
    }
    
    .feature-list-text {
        font-size: 15px;
    }
}

@media (max-width: 767.98px) {
    .process-section {
        padding: 70px 0;
    }
    
    .features-list {
        gap: 15px;
    }
}

/* Медиа-запросы для адаптивности */
@media (max-width: 991.98px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-list-item {
        padding: 15px;
    }
}

@media (max-width: 767.98px) {
    .benefits-section {
        padding: 60px 0;
    }
    
    .benefit-card {
        margin-bottom: 20px;
    }
    
    .feature-list-text {
        font-size: 15px;
    }
}

@media (max-width: 575.98px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .advantage-item {
        padding: 15px;
    }
    
    .advantage-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .advantage-text h4 {
        font-size: 16px;
    }
    
    .advantage-text p {
        font-size: 13px;
    }
    
    .features-list-item {
        flex-direction: column;
    }
    
    .feature-list-icon {
        margin-bottom: 10px;
    }
}

@media (max-width: 991.98px) {
    .mobile-nav-link {
        cursor: pointer;
    }
    
    .mobile-nav-link.mobile-dropdown-toggle::after,
    .mobile-nav-link::after,
    .mobile-nav-link.mobile-dropdown-toggle[data-mobile-href]:after {
        content: none !important;
    }
    
    .mobile-dropdown-toggle-hint {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .mobile-nav-link {
        cursor: pointer;
        display: block;
        padding: 12px 15px;
        font-size: 16px;
        color: #333;
        transition: all 0.3s ease;
        width: 100%;
        text-align: left;
        user-select: none;
        -webkit-tap-highlight-color: transparent; 
    }
    
    .mobile-nav-link.mobile-dropdown-toggle::after,
    .mobile-nav-link::after,
    .mobile-nav-link.mobile-dropdown-toggle[data-mobile-href]:after {
        content: none !important;
    }
    
    .mobile-dropdown-toggle-hint {
        display: none;
    }
    
    .mobile-dropdown-menu {
        display: none;
        padding-left: 15px;
        background-color: #f5f5f5;
        border-radius: 5px;
        margin: 0 10px;
        transition: all 0.3s ease;
        max-height: 0;
        overflow: hidden;
    }
    
    .mobile-nav-item.active .mobile-dropdown-menu {
        display: block;
        max-height: 1000px;
        padding-top: 5px;
        padding-bottom: 5px;
    }
    
    .mobile-dropdown-item {
        display: block;
        padding: 10px 15px;
        color: #333;
        font-size: 14px;
        transition: all 0.3s ease;
    }
    
    .mobile-dropdown-item:hover,
    .mobile-dropdown-item.active {
        color: var(--primary-color);
        background-color: rgba(44, 107, 169, 0.05);
    }
    
    .mobile-nav-menu {
        margin: 0;
        padding: 0;
    }
    
    .mobile-nav-item {
        list-style: none;
        margin-bottom: 5px;
        overflow: hidden;
    }
    
    .mobile-nav-item.active > .mobile-nav-link {
        color: var(--primary-color);
        font-weight: 500;
    }
}

/* ========== Catalog Page Styles ========== */
.page-header {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

@media (max-width: 991.98px) {
    .page-header {
        padding: 40px 0;
        margin-top: 0; 
    }
}

@media (max-width: 767.98px) {
    .page-header {
        padding: 30px 0;
        margin-top: 0; 
    }
}

.page-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.05) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
    opacity: 0.1;
}

.page-title {
    color: var(--white-color);
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item, .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 1);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.catalog-section {
    padding: 60px 0;
    background-color: var(--light-color);
}

.filter-sidebar {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 100px;
}

.filter-title {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--dark-color);
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 15px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.filter-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.filter-buttons .btn {
    flex: 1;
    margin: 0 5px;
    padding: 8px 15px; /* Уменьшаем высоту кнопок */
    height: auto;
}

.filter-buttons .btn:first-child {
    margin-left: 0;
}

.filter-buttons .btn:last-child {
    margin-right: 0;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.catalog-results {
    font-size: 16px;
}

.catalog-sort {
    display: flex;
    align-items: center;
}

.catalog-sort label {
    margin-right: 10px;
    margin-bottom: 0;
    font-weight: 500;
    font-size: 14px;
}

.catalog-sort .form-select {
    width: auto;
    min-width: 200px;
}

.catalog-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination .page-link {
    color: var(--primary-color);
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}

.pagination .page-link:hover {
    background-color: #e9ecef;
    color: var(--primary-color);
}

.no-results {
    padding: 30px;
    text-align: center;
}

@media (max-width: 991.98px) {
    .filter-sidebar {
        margin-bottom: 30px;
        position: static;
    }
    
    .catalog-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .catalog-sort {
        margin-top: 15px;
        width: 100%;
    }
    
    .catalog-sort .form-select {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .page-header {
        padding: 40px 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .filter-buttons .btn {
        margin: 5px 0;
    }
}

/* ========== Car Details Styles ========== */
.car-details-section {
    padding: 60px 0;
    background-color: var(--light-color);
}

.car-gallery {
    margin-bottom: 30px;
}

.car-main-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: var(--box-shadow);
}

.car-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.car-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.car-thumbnail {
    width: calc(25% - 8px);
    cursor: pointer;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: var(--transition);
}

.car-thumbnail.active {
    border-color: var(--primary-color);
    opacity: 1;
}

.car-thumbnail:hover {
    opacity: 1;
}

.car-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.car-info-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
}

.car-price-block {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.car-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.car-origin {
    font-size: 14px;
    color: var(--gray-color);
}

.car-specs {
    margin-top: 20px;
}

.car-spec-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.car-spec-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.spec-name {
    color: var(--gray-color);
    font-size: 14px;
}

.spec-value {
    font-weight: 500;
    font-size: 14px;
}

.car-description-block, 
.car-features-block, 
.similar-cars-block {
    margin-top: 60px;
}

.car-description {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.car-description p:last-child {
    margin-bottom: 0;
}

.section-desc {
    margin-bottom: 25px;
    color: var(--gray-color);
}

@media (max-width: 991.98px) {
    .car-main-image {
        margin-bottom: 10px;
    }
    
    .car-thumbnail {
        width: calc(20% - 8px);
    }
    
    .car-info-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    .car-thumbnail {
        width: calc(25% - 8px);
    }
    
    .car-price {
        font-size: 1.8rem;
    }
    
    .car-description-block, 
    .car-features-block, 
    .similar-cars-block {
        margin-top: 40px;
    }
}

/* ========== Car Detail Page Styles ========== */
.car-title-block {
    margin-bottom: 20px;
}

.car-detail-title {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--dark-color);
    font-weight: 600;
}

.add-to-compare-btn {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 15px;
    text-decoration: none;
}

.add-to-compare-btn i {
    margin-right: 5px;
}

.add-to-compare-btn:hover {
    color: var(--primary-color-dark);
    text-decoration: underline;
}

.car-prices {
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.car-price-main, .car-price-market {
    text-align: center;
}

.car-price-label {
    font-size: 14px;
    color: var(--gray-color);
    margin-bottom: 5px;
}

.car-price-main .car-price-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.car-price-market .car-price-value {
    font-size: 1.4rem;
    color: var(--dark-color);
    text-decoration: line-through;
    opacity: 0.7;
}

.car-social-share {
    display: flex;
    align-items: center;
    margin: 20px 0;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
}

.car-social-share span {
    color: var(--gray-color);
    margin-right: 15px;
    font-size: 14px;
}

.social-share-link {
    margin-right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.social-share-link:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.car-order-note {
    margin-top: 10px;
    color: var(--gray-color);
}

.car-details-tabs {
    margin-top: 40px;
}

.nav-tabs {
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 25px;
}

.nav-tabs .nav-link {
    color: var(--gray-color);
    border: none;
    padding: 15px 20px;
    font-weight: 500;
    background: transparent;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.nav-tabs .nav-link:hover, 
.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
}

.delivery-info {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
}

.delivery-info h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.delivery-info p {
    margin-bottom: 15px;
}

.delivery-info ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.delivery-info ul li {
    margin-bottom: 8px;
}

@media (max-width: 767.98px) {
    .car-prices {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .car-price-market {
        border-top: 1px dashed var(--light-gray);
        padding-top: 10px;
    }
    
    .nav-tabs .nav-link {
        padding: 10px 15px;
        font-size: 14px;
    }
}

.modal.fade {
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
    margin: 1.75rem auto;
    max-width: 500px;
    width: calc(100% - 2rem);
}

.modal-content {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 8px;
    animation: none !important; 
    transition: none !important; 
    transform: none !important; 
    will-change: auto; 
}

.modal {
    z-index: 1060;
    display: none;
    padding-right: 0 !important; 
    overflow-y: auto;
    overflow-x: hidden;
    background-color: rgba(0, 0, 0, 0.5); 
    will-change: auto; 
}

.modal.show {
    display: block;
    opacity: 1;
    visibility: visible;
}

.fade {
    transition: none !important;
}

.modal.fade .modal-dialog {
    transform: none !important; 
    transition: none !important; 
}

.modal-open {
    overflow: hidden;
    padding-right: 0 !important; 
}

.modal-body form {
    margin-bottom: 0;
}

.btn-close {
    opacity: 0.7;
    box-shadow: none !important;
}

.btn-close:hover {
    opacity: 1;
}

[data-bs-toggle="modal"] {
    cursor: pointer;
}

.modal-backdrop {
    z-index: 1050;
    background-color: #000;
    opacity: 0.5 !important; 
    transition: none !important; 
}

.section-title:after, 
.service-detail-title:after, 
.stats-number:after, 
h1:after, h2:after, h3:after, h4:after, h5:after, h6:after,
.section-title::after, 
.service-detail-title::after, 
.stats-number::after, 
h1::after, h2::after, h3::after, h4::after, h5::after, h6::after {
    display: none;
    content: none;
    width: 0;
    height: 0;
    background: transparent;
    opacity: 0;
    visibility: hidden;
}

/* Адаптация для мобильных */
@media (max-width: 767.98px) {
    .features-list-section .row {
        flex-direction: column;
    }
    
    .features-list-section .col-md-6:first-child {
        margin-bottom: 0;
    }
    
    .features-list-section .col-md-6 {
        padding-left: 15px;
        padding-right: 15px;
    }
}

.advantages-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
}

.advantage-text-only {
    margin-bottom: 10px;
}

.advantage-text-only h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.advantage-text-only p {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-color);
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .advantage-text-only h4 {
        text-align: center;
    }
    
    .advantage-text-only p {
        text-align: center;
    }
}

/* Стили для отзывов */
.testimonials-items {
    display: block;
    width: 100%;
    margin: 0 auto;
}

.testimonial-item {
    display: block;
    width: 100%;
    max-width: 700px;
    margin: 0 auto 32px auto;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 768px) {
    .testimonials-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .testimonials-items {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.testimonials-section .testimonials-items {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.testimonials-section .testimonial-item {
    display: flex;
    align-items: center;
    max-width: 100%;
    padding: 32px 40px;
    margin: 0 auto 32px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.testimonials-section .testimonial-author {
    flex: 0 0 220px;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-right: 40px;
}

.testimonials-section .testimonial-content {
    flex: 1 1 0%;
    text-align: left;
    display: flex;
    align-items: center;
    min-width: 0;
}

@media (max-width: 991.98px) {
    .testimonials-section .testimonial-item {
        padding: 24px 16px;
    }
    .testimonials-section .testimonial-author {
        margin-right: 20px;
        max-width: 120px;
        flex-basis: 120px;
    }
}

@media (max-width: 767.98px) {
    .testimonials-section .testimonial-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 8px;
    }
    .testimonials-section .testimonial-author {
        flex: none;
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 16px;
        align-items: flex-start;
        text-align: left;
    }
    .testimonials-section .testimonial-content {
        align-items: flex-start;
    }
}

/* lead-modal: чекбокс только для простых форм */
.lead-modal .form-check-input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border-radius: 0 !important;
  border: 2px solid #bfc9d1;
  background: #fff;
  margin-right: 8px;
  margin-top: 0 !important;
  cursor: pointer;
  vertical-align: middle;
  box-shadow: none !important;
  appearance: checkbox !important;
}
.lead-modal .form-check-input[type="checkbox"]:checked {
  background-color: #2f5f82;
  border-color: #2f5f82;
}

/* Удаляю точечные селекторы для #orderModal */
.circle-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  max-width: 48px;
  max-height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
  box-sizing: border-box;
  overflow: hidden;
}
.circle-icon i {
  font-size: 22px;
  color: #fff;
}

.modal-checkbox-block {
  display: flex;
  align-items: center;
}
.modal-checkbox-block input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: middle;
  accent-color: #2f5f82;
}
.modal-checkbox-block label {
  font-size: 14px;
  color: #6c757d;
  cursor: pointer;
  margin-bottom: 0;
}

/* --- FIX: одинаковая высота карточек и кнопка внизу --- */
.catalog-cars .row {
  align-items: stretch;
}

.car-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.car-card-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.car-actions {
  margin-top: auto;
  display: flex;
  justify-content: flex-start;
}
/* --- END FIX --- */