/* --- 1. Базові та скидаючі стилі --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0f172a;
    color: #f8fafc;
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 2. Компоненти: Кнопки --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 15px;
}
.btn-primary {
    background-color: #ff6b00;
    color: #fff;
    border: none;
}
.btn-primary:hover {
    background-color: #e05e00;
}
.btn-secondary {
    background-color: transparent;
    border: 2px solid #cbd5e1;
    color: #fff;
}
.btn-secondary:hover {
    background-color: #cbd5e1;
    color: #0f172a;
}

/* --- 3. Хедер (Мобільні стилі за замовчуванням) --- */
.site-header {
    background-color: #1e293b;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-accent {
    color: #ff6b00;
}

/* Мобільний бургер */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Приховування / випадання меню на мобільних (<991px) */
@media (max-width: 991px) {
    .main-nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #1e293b;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    .main-nav.active {
        max-height: 300px;
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        list-style: none;
        padding: 10px 0;
    }

    .main-nav li { text-align: center; }

    .main-nav a {
        display: block;
        padding: 15px 0;
        color: #f8fafc;
        text-decoration: none;
        font-size: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .main-nav li:last-child a { border-bottom: none; }

    .header-contacts { display: none; }
}

/* --- 4. Головний екран Hero (Мобільна версія) --- */
.hero-section {
    padding: 40px 0;
}
.hero-box {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hero-content h1 {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #fff;
}
.hero-content p {
    color: #94a3b8;
    margin-bottom: 25px;
    font-size: 16px;
}
.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
}

/* --- 5. Адаптивність для ДЕСКТОПІВ (Від 992px) --- */
@media (min-width: 992px) {
    .header-box {
        height: 85px;
    }
    
    .menu-toggle {
        display: none !important; /* На десктопі бургер повністю зникає */
    }
    
    .main-nav {
        display: block !important;
        position: static;
        max-height: none;
        overflow: visible;
        background: none;
        box-shadow: none;
        width: auto;
    }
    
    .main-nav ul {
        display: flex !important;
        flex-direction: row;
        list-style: none; /* Забираємо точки списку */
        gap: 35px;
        padding: 0;
    }
    
    .main-nav a {
        padding: 0;
        color: #cbd5e1;
        font-size: 16px;
        font-weight: 500;
        text-decoration: none;
        border-bottom: none;
        transition: color 0.3s ease;
    }
    
    .main-nav a:hover {
        color: #ff6b00;
    }
    
    .header-contacts {
        display: block;
    }
    
    .phone-link {
        color: #fff;
        text-decoration: none;
        font-weight: 600;
        font-size: 18px;
    }

    .hero-section {
        padding: 80px 0;
    }
    .hero-box {
        flex-direction: row;
        align-items: center;
    }
    .hero-content {
        flex: 1;
        padding-right: 40px;
    }
    .hero-content h1 {
        font-size: 44px;
        margin-bottom: 20px;
    }
    .hero-actions {
        flex-direction: row;
    }
    .hero-image {
        flex: 1;
    }
}

/* --- 6. Блок Послуг та Цін (Mobile-First) --- */
.services-section {
    padding: 60px 0;
    background-color: #1e293b; /* Контрастне тло відносно body */
}

.section-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 10px;
    color: #fff;
}

.section-subtitle {
    font-size: 16px;
    text-align: center;
    color: #94a3b8;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Сітка для карток (за замовчуванням мобільна — 1 колонка) */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

/* Картка послуги */
.service-card {
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #ff6b00;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.card-header h3 {
    font-size: 20px;
    color: #fff;
    max-width: 70%;
}

.badge {
    background-color: #ff6b00;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.card-features {
    list-style: none;
    margin-bottom: 30px;
}

.card-features li {
    color: #cbd5e1;
    font-size: 15px;
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

/* Гарна помаранчева цятка перед кожним пунктом списку */
.card-features li::before {
    content: "•";
    color: #ff6b00;
    font-size: 20px;
    position: absolute;
    left: 0;
    top: -4px;
}

.card-footer {
    border-top: 1px solid #334155;
    padding-top: 20px;
}

.price {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 15px;
}

.price span {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

/* Кнопки всередині карток */
.btn-card {
    display: block;
    width: 100%;
    background-color: #ff6b00;
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.btn-card-secondary {
    display: block;
    width: 100%;
    background-color: transparent;
    border: 1px solid #334155;
    color: #cbd5e1;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-card-secondary:hover {
    border-color: #ff6b00;
    color: #fff;
}

/* --- Адаптація для ДЕСКТОПІВ (Вносимо зміни всередину медіа-запиту) --- */
@media (min-width: 992px) {
    .section-title {
        font-size: 36px;
    }
    
    /* Перебудовуємо сітку в 3 рівні колонки */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- 7. Блок Переваг (Mobile-First) --- */
.advantages-section {
    padding: 60px 0;
    background-color: #0f172a; /* Повертаємо основне темне тло */
}

.advantages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.advantage-card {
    text-align: center;
    padding: 20px;
    background-color: #1e293b;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.advantage-card:hover {
    border-color: rgba(255, 107, 0, 0.4);
    transform: translateY(-3px);
}

.advantage-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 107, 0, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.advantage-icon svg {
    width: 30px;
    height: 30px;
    color: #ff6b00; /* Фірмовий помаранчевий колір */
}

.advantage-card h3 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 12px;
}

.advantage-card p {
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.6;
}

/* --- Адаптація для ДЕСКТОПІВ (Додати всередину вже існуючого @media min-width: 992px) --- */
@media (min-width: 992px) {
    .advantages-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
    
    .advantage-card {
        padding: 40px 20px;
    }
}

/* --- 8. Блок Контактів та Форми (Mobile-First) --- */
.contacts-section {
    padding: 60px 0;
    background-color: #1e293b;
}

.contacts-box {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.info-icon {
    font-size: 24px;
    line-height: 1;
}

.info-item h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 4px;
}

.info-item p {
    color: #94a3b8;
    font-size: 15px;
}

.contacts-link {
    color: #ff6b00;
    text-decoration: none;
    font-weight: 600;
}

/* Форма */
.contacts-form-wrap {
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 30px 20px;
}

.callback-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
}

.form-group input {
    background-color: #1e293b;
    border: 1px solid #334155;
    color: #fff;
    padding: 14px;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #ff6b00;
}

.form-group input::placeholder {
    color: #64748b;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    cursor: pointer;
    font-size: 16px;
}

.form-privacy {
    font-size: 12px;
    color: #64748b;
    text-align: center;
    line-height: 1.4;
}

/* Підвал */
.site-footer {
    background-color: #0f172a;
    padding: 25px 0;
    border-top: 1px solid #1e293b;
    font-size: 14px;
    color: #64748b;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

/* --- Адаптація для ДЕСКТОПІВ (Додати всередину існуючого @media min-width: 992px) --- */
@media (min-width: 992px) {
    .contacts-box {
        flex-direction: row;
        align-items: center; /* Центруємо вміст по вертикалі */
    }
    
    .contacts-info, .contacts-form-wrap {
        flex: 1;
    }
    
    .contacts-form-wrap {
        padding: 40px;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}


/* Стилізація поля textarea під темне оформлення сайту */
.callback-form textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.05); /* Темне тло як у звичайних input */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #ffffff;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.callback-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.callback-form textarea:focus {
    outline: none;
    border-color: #ff6b00; /* Ваш акцентний помаранчевий колір */
    background-color: rgba(255, 255, 255, 0.08);
}

/* Форматування VIN-коду */
#select-vin {
    text-transform: uppercase;
}