/* ==========================================================================
   1. Базовые сбросы и глобальные стили
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: #e07b00;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #b86500;
}

/* ==========================================================================
   2. Шапка сайта (Header) & Крупный Логотип
   ========================================================================== */
.site-header {
    background: #1e242d;
    padding: 15px 0;
    border-bottom: 3px solid #e07b00;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.site-logo-img {
    height: 80px; /* Увеличенная высота для четкости и крупного шрифта */
    width: auto;
    display: block;
    object-fit: contain;
}

.header-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.header-phone-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-phone {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.header-phone:hover {
    color: #e07b00;
}

.header-messengers {
    display: flex;
    gap: 6px;
}

.msg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
}

.msg-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.msg-btn.tg {
    background: #0088cc;
}

.msg-btn.max {
    background: #6c5ce7;
}

.header-address {
    font-size: 0.85rem;
    color: #ff9800;
    text-decoration: none;
    margin-top: 3px;
}

.header-address:hover {
    text-decoration: underline;
}

/* ==========================================================================
   3. Навигация (Navigation)
   ========================================================================== */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
    flex-wrap: wrap;
}

.main-nav a {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 5px 0;
}

.main-nav a:hover {
    color: #e07b00;
}

/* ==========================================================================
   4. Главные секции, Hero & Кнопки
   ========================================================================== */
.hero {
    background: #2b323d;
    color: #ffffff;
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #d1d5db;
}

.btn {
    display: inline-block;
    background: #e07b00;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.btn:hover {
    background: #b86500;
    color: #ffffff;
}

.btn-messenger {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: background 0.2s;
}

.btn-tg {
    background: #0088cc;
}
.btn-tg:hover {
    background: #0077b5;
}

.btn-max {
    background: #6c5ce7;
}
.btn-max:hover {
    background: #5a4bcf;
}

/* ==========================================================================
   5. Карточки услуг и формы
   ========================================================================== */
.services {
    padding: 50px 0;
}

.services h2 {
    text-align: center;
    margin-bottom: 30px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #e07b00;
}

.service-card h3 {
    margin-bottom: 12px;
}

.service-card p {
    margin-bottom: 15px;
    color: #555;
    font-size: 0.95rem;
}

.page-content {
    padding: 40px 0;
    background: #ffffff;
}

.page-content h1 {
    margin-bottom: 15px;
}

.page-content h2 {
    margin: 25px 0 15px;
}

.page-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-content li {
    margin-bottom: 8px;
}

.lead {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 20px;
}

.cta-box {
    margin: 30px 0;
    text-align: center;
}

.booking-section {
    padding: 50px 0;
    background: #eef2f5;
    text-align: center;
}

.booking-section h2 {
    margin-bottom: 10px;
}

.booking-section p {
    margin-bottom: 25px;
    color: #666;
}

.form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form input,
.form select {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
}

/* ==========================================================================
   6. Галереи изображений и фото автосервиса
   ========================================================================== */
.img-responsive {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.service-gallery {
    margin: 25px 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.our-workshop {
    padding: 50px 0;
    background: #ffffff;
    text-align: center;
}

.our-workshop h2 {
    margin-bottom: 25px;
}

/* ==========================================================================
   7. Страница Контакты
   ========================================================================== */
.contacts-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.contacts-info p {
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.phone-link {
    font-weight: bold;
    font-size: 1.1rem;
}

/* ==========================================================================
   8. Футер (Footer) & Плавающие кнопки (FAB)
   ========================================================================== */
.site-footer {
    background: #191e24;
    color: #a0aab8;
    padding: 40px 0 20px;
    border-top: 1px solid #2d3540;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info h3 {
    color: #ffffff;
    margin-bottom: 15px;
}

.footer-info p {
    margin-bottom: 8px;
}

.footer-info a {
    color: #ffffff;
}

.footer-copy {
    width: 100%;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #2b323d;
    text-align: center;
    font-size: 0.85rem;
}

/* Плавающие кнопки быстрой связи (Telegram / MAX) */
.floating-messengers {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.fab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 25px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.fab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
    color: #ffffff;
}

.fab-tg {
    background: #0088cc;
}

.fab-max {
    background: #6c5ce7;
}

/* ==========================================================================
   9. Адаптивность для мобильных устройств
   ========================================================================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .site-logo-img {
        height: 60px; /* Умеренная высота для мобильных экранов */
        margin: 0 auto;
    }

    .header-contacts {
        align-items: center;
    }

    .header-phone {
        font-size: 1.25rem;
    }

    .header-address {
        font-size: 0.9rem;
    }

    .main-nav ul {
        justify-content: center;
    }

    .hero h1 {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .floating-messengers {
        bottom: 15px;
        right: 15px;
    }

    .fab-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}