/*базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #FFFBF0;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 65px, rgba(0, 150, 60, 0.03) 80px, rgba(0, 150, 60, 0.03) 80.1px, transparent 80.5px, transparent 160px), repeating-linear-gradient(-45deg, transparent, transparent 65px, rgba(0, 150, 60, 0.03) 80px, rgba(0, 150, 60, 0.03) 80.1px, transparent 80.5px, transparent 160px);
    background-attachment: fixed;
    font-family: 'Inter', Arial, sans-serif;
    color: #1a2a1a;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}
/*-------------------------------------------------------*/

/* шапка */

/* Большая шапка */
#main-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.75) 0%, rgba(0, 180, 70, 0.8) 100%);
    backdrop-filter: blur(12px);
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 150, 60, 0.25);
    z-index: 1000;
    transition: all 0.4s ease;
}

    #main-header.hidden {
        transform: translateX(-50%) translateY(-150%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

/* Навигация в шапке */
.nav-menu {
    display: flex;
    gap: 32px;
}

    .nav-menu a {
        color: white;
        font-weight: 500;
        transition: opacity 0.2s;
    }

        .nav-menu a:hover {
            opacity: 0.8;
        }

/* Логотип */
.logo {
    font-size: 28px;
    font-weight: 700;
    color: white;
    background: rgba(255,255,255,0.2);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(4px);
}

/* Компактная шапка */
#compact-header {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.85) 0%, rgba(0, 180, 70, 0.9) 100%);
    backdrop-filter: blur(12px);
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

    #compact-header.visible {
        opacity: 1;
        pointer-events: all;
    }

    #compact-header a {
        color: white;
        font-weight: 500;
    }
/*-------------------------------------------------------*/

/* основной контент */
.contact-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 140px 5% 80px;
}
/*-------------------------------------------------------*/

/* hero секция */
.contact-hero {
    text-align: center;
    margin-bottom: 80px;
}

.hero-badge {
    background: rgba(0, 180, 70, 0.15);
    color: #2e7d32;
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.contact-title {
    font-size: 72px;
    font-weight: 800;
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 16px;
}

.contact-subtitle {
    font-size: 20px;
    color: #3a5a3a;
}
/*-------------------------------------------------------*/

/* сетка контактов */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 80px;
}

.contact-card {
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.6);
}

    .contact-card:hover {
        transform: translateY(-8px);
        background: rgba(255,255,255,0.6);
    }

.contact-card-icon {
    width: 70px;
    height: 70px;
    background: rgba(0,150,60,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

    .contact-card-icon i {
        font-size: 32px;
        color: #2e7d32;
    }

.contact-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #1a3a1a;
}

.contact-card p {
    color: #3a5a3a;
    margin-bottom: 16px;
    font-size: 14px;
}

.contact-link {
    display: inline-block;
    color: #2e7d32;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s;
}

    .contact-link:hover {
        transform: translateX(5px);
        color: #1a5a1a;
    }
/*-------------------------------------------------------*/

/* информационный блок */
.info-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 80px;
}

.work-hours,
.response-time,
.location {
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(8px);
    border-radius: 32px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.5);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: rgba(0,150,60,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

    .info-icon i {
        font-size: 28px;
        color: #2e7d32;
    }

.work-hours h3,
.response-time h3,
.location h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #1a3a1a;
}

.work-hours p,
.response-time p,
.location p {
    color: #3a5a3a;
    margin-bottom: 8px;
}
/*-------------------------------------------------------*/

/* карта */
.map-block {
    margin-bottom: 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    background: rgba(0, 180, 70, 0.15);
    color: #2e7d32;
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: #1a3a1a;
}

.map-placeholder {
    max-width: 600px;
    margin: 0 auto;
    border-radius: 32px;
    overflow: hidden;
}

    .map-placeholder i {
        font-size: 64px;
        margin-bottom: 20px;
        display: block;
    }

    .map-placeholder span {
        font-size: 18px;
        display: block;
        margin-bottom: 12px;
    }

.map-note {
    font-size: 14px;
    color: #3a5a3a;
    margin-top: 12px;
}

/* Уменьшаем ширину карты */
.map-block iframe {
    max-width: 730px;
    width: 100%;
    display: block;
    margin: 0 auto;
}
/*-------------------------------------------------------*/

/* доп стили */
.submit-btn {
    width: 100%;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.form-note {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 20px;
}
/*-------------------------------------------------------*/

/* бургер меню */

/* Кнопка бургера */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1002;
}

    .burger span {
        width: 100%;
        height: 3px;
        background: white;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* Анимация бургера  */
    .burger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .burger.active span:nth-child(2) {
        opacity: 0;
    }

    .burger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

/* Мобильное меню  */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 180, 70, 0.98), rgba(0, 150, 60, 0.98));
    backdrop-filter: blur(20px);
    z-index: 1001;
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 30px rgba(0,0,0,0.2);
}

    .mobile-menu.active {
        right: 0;
    }

    .mobile-menu a {
        display: block;
        color: white;
        font-size: 18px;
        font-weight: 500;
        padding: 15px 0;
        text-decoration: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        transition: all 0.2s;
    }

        .mobile-menu a:hover {
            opacity: 0.8;
            padding-left: 10px;
        }

/* Затемнение фона при открытом меню */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}

    .mobile-overlay.active {
        display: block;
    }
/*-------------------------------------------------------*/

/* адаптив */
@media (max-width: 768px) {
    /* Показываем бургер */
    .burger {
        display: flex;
    }

    /* Скрываем обычную навигацию */
    .nav-menu,
    .nav-menu-small {
        display: none !important;
    }

    /* Шапка на мобилках */
    #main-header,
    #header {
        width: 95% !important;
        padding: 10px 16px !important;
        top: 10px !important;
        left: 2.5% !important;
        transform: none !important;
    }

        /* Логотип на мобилках */
        #main-header .logo,
        #header .logo {
            width: 36px !important;
            height: 36px !important;
            font-size: 18px !important;
        }

        /* Отключаем скрытие шапки на мобилках */
        #main-header.hidden,
        #header.hidden {
            transform: none !important;
            opacity: 1 !important;
            visibility: visible !important;
            pointer-events: all !important;
        }

    /* Скрываем маленькую шапку */
    #compact-header,
    #compactheader {
        display: none !important;
    }
}
/*-------------------------------------------------------*/
