body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5e9;
    color: #3e2a1d;
}

/* Шапка */
.header {
    background: linear-gradient(to right, #b3e5fc, #ffe082);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    border-bottom: 2px solid #e2d8b4;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    max-width: 90px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.header-title {
    font-size: 2rem;
    color: #3e2a1d;
    font-weight: bold;
    text-transform: uppercase;
}

.contacts {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.9rem;
    color: #3e2a1d;
}

.contact-link {
    color: #3e2a1d;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #a78e5b;
}

.contact-link i {
    font-size: 1rem;
}

/* Основной контент */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    margin: 30px auto;
    padding: 30px;
    background-color: #f9f4df;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    width: 100%;
}

/* Заголовки */
h2 {
    text-align: center;
    color: #3e2a1d;
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 500;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #a78e5b;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Услуги */
.services-section {
    background: linear-gradient(to bottom, #f9f4df, #e2d8b4);
}

.services {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.service {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin: 10px;
    max-width: 350px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2d8b4;
}

.service:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2rem;
    color: #a78e5b;
    margin-bottom: 15px;
}

.service img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.service h3 {
    font-size: 1.2rem;
    color: #3e2a1d;
    margin-bottom: 10px;
    font-weight: 500;
}

.service p {
    color: #3e2a1d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Видео */
.video {
    text-align: center;
    padding: 20px;
    background-color: #f9f4df;
    border-radius: 12px;
    width: 100%;
    margin: 20px auto;
}

.video p {
    color: #3e2a1d;
    font-size: 1rem;
    font-style: italic;
}

.video video {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Работы */
.slider, .slider-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    border-radius: 12px;
    margin: 0 auto;
    max-width: 100%;
}

.slider {
    height: 350px;
}

.slider-track {
    display: flex;
    transition: transform 0.6s ease;
    will-change: transform;
}

.slide {
    min-width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
}

/* Карта */
.map {
    text-align: center;
    padding: 20px;
    background-color: #f9f4df;
    border-radius: 12px;
    width: 100%;
    margin: 20px auto;
}

.map-address {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #3e2a1d;
}

.map-address i {
    color: #a78e5b;
    font-size: 1.2rem;
}

.map iframe {
    width: 100%;
    height: 320px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Кнопки */
.button-link {
    margin-top: 15px;
    padding: 12px 16px;
    width: 100%;
    border: none;
    background-color: #a78e5b;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease;
}

.button-link:hover {
    background-color: #8b9766;
    transform: translateY(-2px);
}

/* Адаптивность */
@media (min-width: 768px) {
    .service {
        width: 45%;
    }

    .map iframe {
        height: 400px;
    }

    h2 {
        font-size: 2.2rem;
    }

    .slider {
        height: 400px;
    }
}

@media (min-width: 1024px) {
    .service {
        width: 30%;
    }

    .map iframe {
        height: 450px;
    }

    h2 {
        font-size: 2.5rem;
    }

    .slider {
        height: 450px;
    }
}

@media (max-width: 768px) {
    /* Шапка */
    .header {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .logo-container {
        flex-direction: row; /* Оставляем логотип и текст в ряд для лучшей компактности */
        gap: 10px;
        align-items: center;
        justify-content: center;
    }

    .logo {
        max-width: 60px; /* Уменьшаем логотип */
    }

    .header-title {
        font-size: 1.4rem; /* Уменьшаем текст */
    }

    .contacts {
        margin-top: 10px;
        font-size: 0.8rem; /* Уменьшаем шрифт контактов */
        flex-direction: row; /* Размещаем контакты в ряд */
        gap: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .contact-link {
        gap: 5px;
    }

    .contact-link i {
        font-size: 0.9rem;
    }

    /* Контент */
    .section {
        margin: 20px auto;
        padding: 15px;
    }

    h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    h2::after {
        width: 40px;
        height: 2px;
    }

    .services {
        gap: 15px;
    }

    .service {
        width: 90%;
        padding: 15px;
        max-width: none; /* Убираем ограничение по ширине */
    }

    .service-icon {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .service img {
        height: 150px;
    }

    .service h3 {
        font-size: 1rem;
    }

    .service p {
        font-size: 0.85rem;
    }

    .button-link {
        font-size: 14px;
        padding: 10px;
    }

    /* Видео */
    .video {
        padding: 15px;
    }

    .video p {
        font-size: 0.9rem;
    }

    .video video {
        height: 200px;
    }

    /* Работы */
    .slider {
        height: 250px;
    }

    .slide img {
        height: 250px;
    }

    .slide-caption {
        font-size: 0.8rem;
        padding: 5px 10px;
        bottom: 10px;
        left: 10px;
    }

    /* Карта */
    .map {
        padding: 15px;
    }

    .map-address {
        font-size: 0.9rem;
        gap: 8px;
    }

    .map-address i {
        font-size: 1rem;
    }

    .map iframe {
        height: 250px;
    }
}

@media (max-width: 480px) {
    /* Шапка */
    .header {
        padding: 10px;
    }

    .logo {
        max-width: 50px; /* Ещё уменьшаем логотип */
    }

    .header-title {
        font-size: 1.2rem;
    }

    .contacts {
        font-size: 0.75rem;
        gap: 10px;
    }

    .contact-link i {
        font-size: 0.8rem;
    }

    /* Контент */
    .section {
        margin: 15px auto;
        padding: 10px;
    }

    h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    h2::after {
        width: 30px;
    }

    .service {
        padding: 10px;
    }

    .service img {
        height: 120px;
    }

    .service h3 {
        font-size: 0.9rem;
    }

    .service p {
        font-size: 0.8rem;
    }

    .button-link {
        font-size: 12px;
        padding: 8px;
    }

    /* Видео */
    .video video {
        height: 180px;
    }

    /* Работы */
    .slider {
        height: 200px;
    }

    .slide img {
        height: 200px;
    }

    .slide-caption {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    /* Карта */
    .map iframe {
        height: 200px;
    }
}