body {
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
    color: #333;
    background-color: #fff;
}

/* Шапка без фонового изображения, с линией */
.site-header {
    background: #ffffff;
    padding: 15px 0;
    margin: 0 0 30px 0;
    border-bottom: 3px solid #ffcd05;
    position: relative;
    z-index: 10;
}

.site-title {
    font-size: 28px;
    font-weight: 700;
    color: #424045;
    margin: 0;
    line-height: 1.2;
}

.site-description {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.contact-label {
    font-size: 14px;
    color: #424045;
    margin-bottom: 5px;
}

.phone-link {
    font-size: 24px;
    font-weight: 600;
    color: #424045;
    text-decoration: none;
    transition: color 0.2s;
}

.phone-link:hover {
    color: #ffcd05;
}

/* Соцсети удалены, но стили остаются на случай, если они появятся */
.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: transparent;
    color: #424045;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-left: 5px;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: transparent;
    color: #ffcd05;
}

@media (max-width: 767px) {
    .site-header .col-md-6 {
        text-align: center;
        margin: 0 0 0 0;
    }
    .site-header .text-md-end {
        text-align: center !important;
        margin-top: 15px;
    }
    .contact-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .phone-link {
        font-size: 20px;
        margin-bottom: 10px;
    }
    .social-icons {
        margin-left: 0 !important;
    }
}

/* Единый стиль для всех кнопок */
.btn-custom {
    background-color: #ffcd05;
    border-color: #ffcd05;
    color: #424045;
    padding: 12px 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-custom:hover {
    background-color: #dbb20e;
    border-color: #dbb20e;
    color: #fff;
}

/* Заголовки секций */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1d3557;
    text-align: center;
}

/* Преимущества */
.features {
    padding: 60px 0;
    background: transparent;
}

.feature-item {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: 100%;
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 3rem;
    color: #e63946;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-item p {
    color: #666;
}

/* Галерея авто */
.cars-gallery {
    padding: 60px 0;
    background: transparent;
}

.car-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: transform 0.3s;
}

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

.car-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #ddd;
}

.car-card .card-body {
    padding: 20px;
}

.car-card h4 {
    font-size: 1.4rem;
    font-weight: 600;
}

.car-card p {
    margin-bottom: 5px;
    color: #555;
}

.car-card .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e63946;
    margin-top: 10px;
}

/* Категории */
.categories {
    background: transparent;
    padding: 60px 0;
}

.category-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
    transition: transform 0.3s;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-item i {
    font-size: 2.8rem;
    color: #e63946;
    margin-bottom: 15px;
}

.category-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.category-item p {
    color: #666;
    margin-bottom: 0;
}

/* Форма */
.form-section {
    padding: 60px 0;
    background: white;
}

.form-card {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-label {
    font-weight: 600;
    color: #1d3557;
}

.form-control,
.form-select {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px;
    transition: border 0.2s;
}

.form-control:focus,
.form-select:focus {
    border-color: #e63946;
    box-shadow: none;
}

/* Контакты */
.contact-info {
    background: #424045;
    color: #fff;
    padding: 40px 0;
    border-top: 3px solid #ffcd05;
}

.contact-info a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-info a:hover {
    color: #ffcd05;
}

.contact-info i {
    margin-right: 10px;
    color: #ffcd05;
}

#map {
    width: 100%;
    height: 300px;
    border-radius: 15px;
    border: 2px solid #ffcd05;
    overflow: hidden;
    margin-top: 20px;
}

#map iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
    display: block;
}

/* Footer */
footer {
    background: #424045;
    color: #fff;
    padding: 30px 0 20px;
    text-align: center;
}

footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: #ffcd05;
}

.header-icon {
		height: 48px;          /* регулируйте под свой логотип */
		width: auto;
		margin-right: 12px;
		transition: transform 0.2s ease;
}
.header-icon:hover {
		transform: scale(1.02);
}
.title-wrapper {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
}
/* мелкий адаптив: на очень узких экранах иконка сверху */
@media (max-width: 576px) {
		.title-wrapper {
				flex-direction: column;
				align-items: flex-start;
				gap: 8px;
		}
		.header-icon {
				margin-right: 0;
				margin-bottom: 6px;
		}
}

/* ------------------------- */

/* Hero секция — высота 500px на десктопе */
.hero {
    background-color: #ffffff;
    color: #424045;
    height: 600px;           /* фиксированная высота */
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow-x: clip;        /* скрываем горизонтальный скролл, но картинка вылетает */
}

.hero .container,
.hero .row {
    height: 100%;
}

/* Левая колонка с текстом */
.hero-text h1 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    margin-top: 0;           /* убираем лишний отступ */
}

.hero-text h3 {
    font-size: 1.5rem;
    margin: 1rem 0;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Правая колонка — обёртка картинки на всю высоту */
.hero .col-md-7 {
    height: 100%;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
    overflow: visible;
}

/* Картинка: прижата к левому верхнему углу, занимает всю высоту, вылетает вправо */
.hero-image {
    display: block;
    margin: 0;
    position: relative;
    left: 0;
    top: 0;
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: contain;      /* не обрезаем, картинка видна полностью */
    object-position: left top;
}

/* На десктопе (≥768px) картинка становится шире колонки и выходит за правый край окна */
@media (min-width: 768px) {
    .hero-image {
        min-width: 130%;      /* вылет за правую границу */
        width: auto;
    }
}

/* Мобильная версия: высота auto, картинка под текстом без вылета */
@media (max-width: 767px) {
    .hero {
        height: auto;
        min-height: auto;
    }
    .hero .container,
    .hero .row {
        height: auto;
    }
    .hero-text {
        text-align: center;
        margin-bottom: 2rem;
    }
    .hero-image {
        width: 100%;
        height: auto;
        min-width: auto;
        border-radius: 20px;
        object-fit: cover;
        max-height: 300px;
    }
    .hero .col-md-7 {
        height: auto;
    }
    .hero-image-wrapper {
        height: auto;
    }
}

/* Улучшение читаемости текста на экранах меньше 1200px */
@media (max-width: 1199px) {
    .hero-text h1 {
        font-size: 2rem;         /* был 2.5rem */
        margin-bottom: 0.75rem;
    }
    .hero-text h3 {
        font-size: 1.25rem;      /* был 1.5rem */
        margin: 0.75rem 0;
    }
    .hero-text p {
        font-size: 1rem;         /* был 1.25rem */
        margin-bottom: 1.5rem;
    }
    .btn-custom {
        padding: 10px 30px;      /* чуть меньше кнопка */
        font-size: 0.9rem;
    }
}

/* Для экранов от 768px до 991px (планшеты) – дополнительно уменьшаем отступы */
@media (max-width: 991px) {
    .hero {
        height: auto;
        min-height: 500px;       /* сохраняем минимальную высоту, но не фиксированную */
    }
    .hero-text {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    .hero-text h1 {
        font-size: 1.8rem;
    }
    .hero-text h3 {
        font-size: 1.1rem;
    }
}

/* На маленьких экранах (до 767px) – как было, но корректируем шрифты для единообразия */
@media (max-width: 767px) {
    .hero {
        height: auto;
        min-height: auto;
    }
    .hero-text h1 {
        font-size: 1.8rem;
    }
    .hero-text h3 {
        font-size: 1.2rem;
    }
    .hero-text p {
        font-size: 1rem;
    }
}

/* Центрирование title-wrapper на мобильных, но сохраняем строку иконка+текст */
@media (max-width: 767px) {
    .title-wrapper {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 12px;
        text-align: left;
    }
    .title-wrapper .header-icon {
        margin-right: 0;
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .title-wrapper {
        gap: 8px;
        flex-wrap: wrap;     /* при очень малой ширине текст может уйти на новую строку */
        justify-content: center;
    }
}
