/* Общие стили */
:root {
    --primary-color: #A64200;
    --text-color: #333333;
    --background-color: #FFFFFF;
    /* Высота фиксированного хедера: отступы hero считаются от неё */
    --header-height: 72px;
}

/* Убираем зазор между viewport и хедером (примыкание к верху) */
html {
    margin: 0;
    padding: 0;
    background-color: #0A1B2B;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: #0A1B2B;
}

/* Общие контейнеры */
.container {
    max-width: 1840px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

/* Отступы между секциями на главной странице */
.about,
.offer,
.services,
.work-stages,
.price-section,
.consultation-result,
.testimonials,
.media,
.contact-form {
    padding: 60px 0;
}

/* Hero секция не должна иметь отступа сверху */
.hero {
    padding: 0;
}

/* Стили для фоновых изображений */
[class*="-section"] {
    width: 100%;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    .about,
    .offer,
    .services,
    .work-stages,
    .price-section,
    .consultation-result,
    .testimonials,
    .media,
    .contact-form {
        padding: 40px 0;
    }
}

/* Медиа-запрос для проблемного диапазона */
@media (max-width: 994px) and (min-width: 760px) {
    .container {
        padding: 0 20px;
    }

    /* Исправление фоновых изображений */
    [class*="-section"] {
        width: 100%;
        margin: 0 auto;
        padding: 40px 0;
        box-sizing: border-box;
    }

    /* Специальные стили для about и testimonials */
    .about,
    .testimonials {
        padding: 40px 0;
        box-sizing: border-box;
    }

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

    /* Исправление футера */
    .footer {
        width: 100%;
        margin: 0 auto;
    }
}

/* Общие стили для кнопок */
.button {
    display: inline-block;
    padding: 14px 28px;
    background-color: #A64200;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.button:hover {
    background-color: #8B3700;
}

/* Общие стили для модальных окон */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 40px;
    max-width: 500px;
    margin: 50px auto;
    border-radius: 8px;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    border: none;
    background: none;
    cursor: pointer;
    color: #999;
}

/* Общие стили для форм */
.form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form input,
.form textarea {
    /* padding: 12px; */
    border: none;
    border-radius: 4px;
    font-size: 14px;
}

.form textarea {
    min-height: 100px;
    resize: vertical;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

/* Размер и вид чекбоксов в формах (единый стиль) */
.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    accent-color: #A64200; /* цвет в поддерживаемых браузерах */
}

/* Общие стили для футера */
.footer {
    background-color: #000C17;
    color: white;
    padding: 60px 0;
    /* margin-top: 80px; */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin-bottom: 20px;
}

.footer-copyright {
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-policy a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-policy a:hover {
    opacity: 1;
}

.footer-developer {
    font-size: 12px;
    margin-top: 20px;
    opacity: 0.6;
}

.footer-services {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-services a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-services a:hover {
    color: var(--primary-color);
}

.footer-phone a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon img {
    width: 24px;
    height: 24px;
    transition: opacity 0.3s;
}

.social-icon:hover img {
    opacity: 0.8;
}

/* Медиа-запросы */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo img {
        margin: 0 auto 20px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .modal-content {
        margin: 20px;
        padding: 30px;
    }
} 
