@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Open+Sans:wght@400;600&display=swap');

/* ===== УБРАТЬ ПУСТОЕ МЕСТО БЕЗ СКРЫТИЯ МЕНЮ ===== */
html, body {
    margin: 0 !important;
    padding: 0 !important;
}

#all, #back, #shadow {
    margin: 0 !important;
    padding: 0 !important;
    margin-top: 0 !important;
}

#header {
    margin: 0 !important;
    padding: 0 !important;
}

header {
    margin-top: 0 !important;
}

/* ===== СКРЫТЬ КНОПКИ РАЗМЕРА ШРИФТА ===== */
#fontsize {
    display: none !important;
}

#line {
    display: none !important;
}

.fontsize,
.font-size-controls,
.font-resizer,
a.fontsize {
    display: none !important;
}

/* ===== ОСНОВНЫЕ СТИЛИ ===== */
* {
    font-family: 'Open Sans', sans-serif !important;
}

body {
    font-family: 'Open Sans', sans-serif !important;
    color: #333333 !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    background-color: #ffffff !important;
}

p {
    font-family: 'Open Sans', sans-serif !important;
    color: #333333 !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
    margin-bottom: 15px !important;
}

/* ===== ЗАГОЛОВКИ ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 700 !important;
    color: #1a3a52 !important;
    letter-spacing: 0.5px !important;
}

h1 {
    font-size: 36px !important;
    margin-bottom: 25px !important;
    margin-top: 0 !important;
    line-height: 1.3 !important;
}

h2 {
    font-size: 28px !important;
    margin-bottom: 20px !important;
    margin-top: 40px !important;
    padding-top: 20px !important;
    border-bottom: 3px solid #d32f2f !important;
    padding-bottom: 10px !important;
}

h3 {
    font-size: 22px !important;
    margin-bottom: 15px !important;
    margin-top: 20px !important;
    color: #1a3a52 !important;
}

h4 {
    font-size: 18px !important;
    color: #1a3a52 !important;
}

h5, h6 {
    font-size: 16px !important;
    color: #1a3a52 !important;
}

/* ===== ССЫЛКИ ===== */
a {
    color: #1a3a52 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.3s ease !important;
}

a:hover {
    color: #d32f2f !important;
    text-decoration: underline !important;
}

a:visited {
    color: #1a3a52 !important;
}

/* ===== КНОПКИ ===== */
.btn, button, input[type="submit"], input[type="button"], .call-to-action {
    font-family: 'Roboto', sans-serif !important;
    background-color: #d32f2f !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 5px !important;
    padding: 15px 35px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-size: 16px !important;
    display: inline-block !important;
    margin: 20px 0 !important;
}

.btn:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover, .call-to-action:hover {
    background-color: #b71c1c !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 18px rgba(211, 47, 47, 0.4) !important;
}

/* ===== ЗАГОЛОВОК САЙТА (ШАПКА) ===== */
.logoheader {
    background: linear-gradient(135deg, #1a3a52 0%, #2c5aa0 100%) !important;
    text-align: center !important;
    padding: 50px 40px !important;
    box-shadow: 0 4px 12px rgba(26, 58, 82, 0.3) !important;
    border-bottom: 4px solid #d32f2f !important;
}

.logoheader h1 {
    font-family: 'Roboto', sans-serif !important;
    color: #ffffff !important;
    font-size: 36px !important;
    margin: 0 !important;
    font-weight: 700 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.logoheader h1 img {
    max-width: 100px !important;
    height: auto !important;
    margin-bottom: 15px !important;
}

.header1 {
    font-family: 'Open Sans', sans-serif !important;
    color: #e8e8e8 !important;
    font-size: 16px !important;
    display: block !important;
    margin-top: 10px !important;
    font-weight: 300 !important;
    letter-spacing: 0.5px !important;
}

/* ===== НАВИГАЦИЯ ===== */
#nav, nav, .nav {
    background-color: #ffffff !important;
    border-top: 1px solid #e0e0e0 !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

nav a, .nav a, #nav a, #nav ul li a {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 600 !important;
    color: #1a3a52 !important;
    padding: 12px 18px !important;
    display: inline-block !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
}

nav a:hover, .nav a:hover, #nav a:hover, #nav ul li a:hover {
    color: #d32f2f !important;
    background-color: #f5f5f5 !important;
    border-bottom: 3px solid #d32f2f !important;
}

/* Для меню в шапке */
#header nav, header nav {
    background-color: #ffffff !important;
}

#header nav a, header nav a {
    color: #1a3a52 !important;
}

#header nav a:hover, header nav a:hover {
    color: #d32f2f !important;
    border-bottom: 3px solid #d32f2f !important;
}

/* ===== КОНТЕНТ С БОКОВЫМИ ОТСТУПАМИ ===== */
#wrapper, #wrapper2, #contentarea, #contentarea2 {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
}

#main {
    padding: 0 !important;
    margin: 0 !important;
}

#contentarea, #contentarea2 {
    padding: 40px 50px !important;
}

/* ===== БЛОКИ И КОНТЕЙНЕРЫ ===== */
.item-page {
    padding: 30px !important;
    line-height: 1.8 !important;
    margin: 0 auto !important;
    max-width: 900px !important;
}

.item-page p {
    margin-bottom: 20px !important;
}

.article {
    padding: 0 40px !important;
    margin: 0 auto !important;
    max-width: 1000px !important;
}

/* ===== КОНТАКТНЫЕ БЛОКИ ===== */
.contact-box, .info-box, .service-box {
    background-color: #f5f5f5 !important;
    padding: 25px !important;
    border-left: 4px solid #d32f2f !important;
    margin: 20px 0 !important;
    border-radius: 5px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.contact-box h3, .info-box h3, .service-box h3 {
    margin-top: 0 !important;
    color: #1a3a52 !important;
    font-size: 20px !important;
}

/* ===== КОНТАКТНЫЕ ИКОНКИ В КРУЖОЧКАХ ===== */
.contact-icon, .whatsapp-icon, .telegram-icon {
    display: inline-block !important;
    width: 60px !important;
    height: 60px !important;
    background-color: #d32f2f !important;
    border-radius: 50% !important;
    text-align: center !important;
    line-height: 60px !important;
    font-size: 30px !important;
    color: white !important;
    margin: 15px 10px 15px 0 !important;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.contact-icon:hover, .whatsapp-icon:hover, .telegram-icon:hover {
    background-color: #1a3a52 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 16px rgba(26, 58, 82, 0.4) !important;
}

.contact-icon a, .whatsapp-icon a, .telegram-icon a {
    color: white !important;
    text-decoration: none !important;
    display: block !important;
}

/* ===== КОНТАКТНЫЕ КНОПКИ ===== */
.contact-button {
    display: inline-block !important;
    margin: 10px 10px 10px 0 !important;
    padding: 12px 20px !important;
    background-color: #1a3a52 !important;
    color: white !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    font-family: 'Roboto', sans-serif !important;
}

.contact-button:hover {
    background-color: #d32f2f !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 15px rgba(211, 47, 47, 0.3) !important;
}

/* ===== СПИСКИ В КОЛОНКИ ===== */
ul, ol {
    margin: 20px 0 !important;
    padding-left: 25px !important;
}

/* Список машин в 2-3 колонки */
.cars-list, .services-list {
    column-count: 2 !important;
    column-gap: 40px !important;
}

li {
    font-family: 'Open Sans', sans-serif !important;
    color: #333333 !important;
    margin-bottom: 10px !important;
    line-height: 1.7 !important;
}

li::marker {
    color: #d32f2f !important;
    font-weight: 700 !important;
}

/* ===== ТАБЛИЦЫ ===== */
table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 20px 0 !important;
}

table th {
    background-color: #1a3a52 !important;
    color: #ffffff !important;
    padding: 12px !important;
    text-align: left !important;
    font-weight: 700 !important;
}

table td {
    border: 1px solid #ddd !important;
    padding: 12px !important;
    color: #333333 !important;
}

table tr:hover {
    background-color: #f9f9f9 !important;
}

/* ===== ЦИТАТЫ ===== */
blockquote {
    border-left: 4px solid #d32f2f !important;
    padding-left: 20px !important;
    margin: 20px 0 !important;
    font-style: italic !important;
    color: #666666 !important;
}

/* ===== ФОРМЫ ===== */
input[type="text"],
input[type="email"],
input[type="phone"],
input[type="date"],
textarea,
select {
    font-family: 'Open Sans', sans-serif !important;
    width: 100% !important;
    padding: 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    margin-bottom: 15px !important;
    font-size: 14px !important;
    color: #333333 !important;
}

input:focus,
textarea:focus,
select:focus {
    outline: none !important;
    border-color: #d32f2f !important;
    box-shadow: 0 0 8px rgba(211, 47, 47, 0.2) !important;
}

/* ===== ПОДВАЛ (FOOTER) ===== */
footer, #footer-sub, #footer {
    background-color: #1a3a52 !important;
    color: #ffffff !important;
    padding: 40px 40px !important;
    border-top: 4px solid #d32f2f !important;
}

footer h3 {
    color: #ffffff !important;
    font-size: 18px !important;
    margin-bottom: 15px !important;
}

footer a {
    color: #e8e8e8 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

footer a:hover {
    color: #d32f2f !important;
    text-decoration: underline !important;
}

footer p {
    color: #e8e8e8 !important;
    margin-bottom: 10px !important;
}

/* Footer информация в колонки */
.footer-info {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 30px !important;
}

.footer-section {
    margin-bottom: 20px !important;
}

.footer-section h4 {
    color: #ffffff !important;
    margin-bottom: 15px !important;
}

.footer-section p, .footer-section a {
    color: #e8e8e8 !important;
    font-size: 14px !important;
}

/* ===== СПЕЦИАЛЬНЫЕ БЛОКИ ===== */
.highlight {
    background-color: #fff3cd !important;
    padding: 15px !important;
    border-left: 4px solid #ffc107 !important;
    margin: 15px 0 !important;
}

.warning {
    background-color: #f8d7da !important;
    padding: 15px !important;
    border-left: 4px solid #dc3545 !important;
    margin: 15px 0 !important;
    color: #721c24 !important;
}

.success {
    background-color: #d4edda !important;
    padding: 15px !important;
    border-left: 4px solid #28a745 !important;
    margin: 15px 0 !important;
    color: #155724 !important;
}

/* ===== ОТСТУПЫ И ПРОСТРАНСТВО ===== */
.item {
    margin-bottom: 30px !important;
}

.content {
    line-height: 1.8 !important;
}

/* ===== ЭЛЕМЕНТЫ ТЕКСТА ===== */
strong, b {
    font-weight: 700 !important;
    color: #1a3a52 !important;
}

em, i {
    font-style: italic !important;
}

/* ===== ГОРИЗОНТАЛЬНАЯ ЛИНИЯ ===== */
hr {
    border: none !important;
    height: 2px !important;
    background: linear-gradient(to right, transparent, #d32f2f, transparent) !important;
    margin: 30px 0 !important;
}

/* ===== КОДЫ ===== */
code {
    background-color: #f5f5f5 !important;
    padding: 3px 6px !important;
    border-radius: 3px !important;
    font-family: 'Courier New', monospace !important;
    color: #d32f2f !important;
}

pre {
    background-color: #f5f5f5 !important;
    padding: 15px !important;
    border-radius: 4px !important;
    overflow-x: auto !important;
    margin: 20px 0 !important;
}

/* ===== ИЗОБРАЖЕНИЯ ===== */
img {
    max-width: 100% !important;
    height: auto !important;
    margin: 15px 0 !important;
}

.img-responsive {
    max-width: 100% !important;
    height: auto !important;
}

/* ===== МЕДИА ЗАПРОСЫ ДЛЯ МОБИЛЬНЫХ ===== */
@media (max-width: 1024px) {
    #wrapper, #wrapper2, #contentarea, #contentarea2 {
        padding: 0 30px !important;
    }

    #contentarea, #contentarea2 {
        padding: 30px 40px !important;
    }

    .article {
        padding: 0 30px !important;
    }

    .cars-list, .services-list {
        column-count: 1 !important;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 28px !important;
    }

    h2 {
        font-size: 22px !important;
    }

    h3 {
        font-size: 18px !important;
    }

    body {
        font-size: 14px !important;
    }

    .item-page {
        padding: 15px !important;
    }

    .logoheader {
        padding: 30px 15px !important;
    }

    .logoheader h1 {
        font-size: 24px !important;
    }

    .header1 {
        font-size: 13px !important;
    }

    nav a, .nav a, #nav a, #nav ul li a {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }

    #wrapper, #wrapper2, #contentarea, #contentarea2 {
        padding: 0 15px !important;
    }

    #contentarea, #contentarea2 {
        padding: 15px 20px !important;
    }

    .article {
        padding: 0 15px !important;
    }

    .cars-list, .services-list {
        column-count: 1 !important;
    }

    .footer-info {
        grid-template-columns: 1fr !important;
    }

    .contact-icon, .whatsapp-icon, .telegram-icon {
        width: 50px !important;
        height: 50px !important;
        line-height: 50px !important;
        font-size: 24px !important;
    }
}

/* ===== СОВРЕМЕННАЯ ШАПКА ===== */

#header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 20px 0 !important;
    margin: 0 !important;
}

.logoheader {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px !important;
    max-width: 100%;
    margin: 0 auto !important;
}

.logoheader h1,
.logoheader .sitetitle {
    color: #ffffff;
    font-size: 28px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 0 !important;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.logoheader p,
.logoheader .sitedescription {
    color: #c8d9e8;
    font-size: 14px !important;
    margin: 5px 0 0 0 !important;
    padding: 0 !important;
}

.logoheader img {
    max-width: 60px;
    height: auto;
    margin: 0 15px 0 0;
    filter: brightness(1.1);
}

/* Навигация */
#nav,
nav,
.nav {
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 !important;
    margin: 15px 0 0 0 !important;
    display: flex;
    justify-content: center;
}

#nav ul,
nav ul,
.nav ul {
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

#nav ul li,
nav ul li,
.nav ul li {
    margin: 0 !important;
    padding: 0 !important;
    border-right: 1px solid #e0e0e0;
}

#nav ul li:last-child,
nav ul li:last-child,
.nav ul li:last-child {
    border-right: none;
}

#nav a,
nav a,
.nav a,
#nav ul li a,
nav ul li a,
.nav ul li a {
    display: block;
    padding: 15px 20px !important;
    color: #2c3e50 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    font-family: 'Roboto', sans-serif !important;
}

#nav a:hover,
nav a:hover,
.nav a:hover,
#nav ul li a:hover,
nav ul li a:hover,
.nav ul li a:hover {
    background: #f5f5f5;
    color: #1e3c72 !important;
}

#nav a.active,
nav a.active,
.nav a.active,
#nav ul li a.active,
nav ul li a.active,
.nav ul li a.active {
    border-bottom: 3px solid #2a5298;
    color: #2a5298 !important;
}

/* Симметричность контейнеров */
#all,
#back,
#shadow {
    max-width: 100% !important;
    margin: 0 auto !important;
}

}
}
}
}
}
}
}
}
}
}
}
}
}


/* ===== ДОПОЛНИТЕЛЬНЫЕ УЛУЧШЕНИЯ ШАПКИ ===== */

.skip-to-content {
    display: none !important;
}

.skiplinks {
    display: none !important;
}

/* Стили для header в целом */
#back {
    background: #ffffff;
    padding-top: 0 !important;
}

/* Убрать лишние отступы */
#header {
    position: relative;
    z-index: 100;
}

/* Стили для структуры модулей в шапке */
.moduletable {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Оформление для модулей в шапке */
.moduletable h3 {
    display: none !important;
}

/* Улучшение визуального разделения */
#skiplinks {
    padding: 0 !important;
    margin: 0 !important;
}

/* Фиксированные стили для навигации */
nav li,
#nav li,
.nav li {
    display: inline-block !important;
    margin: 0 !important;
}

/* Убрать подчеркивание у ссылок */
#nav a,
nav a,
.nav a,
#nav li a,
nav li a,
.nav li a {
    border: none !important;
    padding: 15px 18px !important;
}

/* Стиль для активного пункта меню */
.nav li a.active,
#nav li a.active,
nav li a.active {
    background: linear-gradient(to bottom, #f5f5f5 0%, #ffffff 100%);
    border-bottom: 3px solid #2a5298 !important;
    color: #2a5298 !important;
}

/* Улучшение общего размера и расположения */
html body #all,
html body #back {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

/* Главный контейнер */
#wrapper {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* Исправление отступов для контента */
#contentarea,
#contentwrapper {
    width: 100% !important;
}

}
}
}
}
}
}
}
}
}
}
}
}
}