@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700&display=swap');

/* === Общие стили === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rubik', sans-serif;
    line-height: 1.6;
    color: #2c1a1a;
    background: linear-gradient(to bottom right, #5e0b19, #ffec99);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

main {
    padding-top: 60px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 15px 0;
    border-bottom: 1px solid #c89f9f;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Первая строка шапки */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #5e0b19;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.phone {
    font-size: 16px;
    color: #d88f00;
    text-decoration: none;
    font-weight: bold;
}

/* Кнопка бургера */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.burger span {
    display: block;
    height: 2px;
    background-color: #5e0b19;
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* Навигация */
.nav {
    display: flex;
    gap: 30px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.nav a {
    text-decoration: none;
    color: #5e0b19;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #d88f00;
}

/* === Моб. версия === */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .header-top {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .phone {
        font-size: 14px;
    }

    .nav {
        display: none;
        flex-direction: column;
        background-color: #fff;
        padding: 15px 0;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        z-index: 998;
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        padding: 10px 20px;
        border-bottom: 1px solid #eee;
    }

    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.4);
        z-index: 997;
    }

    .nav.active + .overlay {
        display: block;
    }
}

/* === Hero секция === */
.hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(to bottom, #ffeccc, #fff7e8);
}

.hero h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #5e0b19;
}

.hero p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #7a4b4b;
}

.hero img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.caption {
    margin-top: 10px;
    font-style: italic;
    color: #777;
}

/* === О компании === */
.about {
    padding: 40px 20px;
    background: #fff;
}

.about h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.about ul {
    list-style: none;
    padding-left: 0;
}

.about li {
    margin-bottom: 10px;
}

/* === Услуги === */
.services {
    padding: 40px 20px;
    background: #f9f9f9;
}

.services h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.slide {
    background: #fff5e1;
    border: 1px solid #f3d8b6;
    padding: 20px;
    border-radius: 8px;
}

/* === Галерея === */
.gallery-section {
    padding: 20px;
    text-align: center;
    color: #5e0b19;
}

.gallery-swiper {
    width: 100%;
    max-width: 300px;
    margin: auto;
}

.swiper-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid #b2473c;
}

/* Модалка */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

@media (max-width: 600px) {
    .swiper-slide img {
        height: 250px;
    }
}

/* === Контакты === */
.contacts {
    padding: 40px 20px;
    background: #f9f9f9;
}

.contacts h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.contact-info {
    list-style: none;
    padding-left: 0;
    color: #b2473c;
}

.contact-info li {
    margin-bottom: 10px;
}

.contact-info a {
    color: #007bff;
    text-decoration: none;
}

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

/* === Наш автопарк === */
.autopark {
    padding: 40px 20px;
    background-color: #fff;
    text-align: center;
}

.grid-autopark {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.autopark h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.autopark-slider {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: stretch;
}

.autopark-slide {
    text-align: center;
    background: #fff5e1;
    border: 1px solid #f3d8b6;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px;
}

.autopark-slide img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.autopark-slide h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #b2473c;
}

.autopark-slide ul {
    list-style: none;
    padding-left: 0;
    text-align: left;
}

.autopark-slide ul li {
    margin-bottom: 5px;
}

/* Адаптивность на мобильных */
@media (max-width: 768px) {
    .autopark-slider {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .autopark-slide {
        min-height: 200px;
    }

    .autopark-slide img {
        height: 200px;
    }
}
/* === Плавающая кнопка связи === */
.floating-contact {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.whatsapp-btn,
.phone-btn {
    width: 50px;
    height: 50px;
    background-color: #25d366; /* Цвет WhatsApp */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.phone-btn {
    background-color: #007bff; /* Синий цвет для телефона */
}

.whatsapp-btn:hover {
    background-color: #128c7e;
}

.phone-btn:hover {
    background-color: #0056b3;
}

.whatsapp-btn i,
.phone-btn i {
    font-size: 24px;
}