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

body {
    font-family: 'Inter', sans-serif;
}

.site-header {
  background: #fff;
  padding: 20px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 10;
}


.header-container {
    width: 1445px;
    margin: 0 auto;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.logo img {
    display: block;
    width: 117px;
    height: 72px;
}

.header-nav .menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.menu-link {
    text-decoration: none;
    color: #222222;
    font-weight: 400;
    position: relative;
    padding: 5px 10px;
    font-size: 16px;
}

.menu-link.active {
    background: #fb842f;
    color: #fff;
    border-radius: 30px;
    font-weight: 500;
}

.calc-btn {
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calc-btn img {
    width: 24px;
    height: 24px;
}

.header-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    line-height: 1.3;
    color: #000;
}

.location-icon {
    width: 20px;
    height: 20px;
}

.header-phone {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    padding: 8px 16px;
    border-radius: 30px;
    text-decoration: none;
    color: #000;
    font-weight: 500;
    gap: 8px;
}

.phone-icon {
    width: 18px;
    height: 18px;
}




@media (max-width: 768px) {
    .header-container {
        width: 100%;
        padding: 0 16px;
    }

    .header-inner {
        justify-content: space-between;
    }

    .header-nav,
    .header-location,
    .header-phone {
        display: none;
    }

    .logo {
        margin: 0 auto;
        order: 2;
    }

    .burger-toggle {
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        display: none;
        align-items: center;
        justify-content: center;
    }


    .burger-toggle span {
        display: block;
        height: 3px;
        background: #222;
        border-radius: 2px;
    }

    .calc-btn {
        order: 3;
        z-index: 12;
    }

    /* Меню */
    .mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 320px;
    max-width: 80%;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    padding: 80px 20px 20px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    }

    /* Открытое состояние */
    .mobile-menu.open {
    transform: translateX(0);
    }

    /* Подложка */
    .menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    }

    /* Показ подложки */
    .menu-overlay.active {
    opacity: 1;
    pointer-events: all;
    }

    /* Крестик */
    .menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    }

    .mobile-menu-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .mobile-menu-list a {
        text-decoration: none;
        font-size: 18px;
        font-weight: 500;
        color: #222;
    }

    .mobile-extra {
        margin-top: 30px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
}
/* Показываем только на мобилке */
    @media (max-width: 768px) {
        .mobile-menu,
        .menu-overlay {
            display: block;
        }
}
.burger-toggle {
    display: none;
}


@media (max-width: 768px) {
    .burger-toggle,
    .calc-btn {
        display: flex;
    }
}
@media (min-width: 769px) {
    .mobile-menu,
    .menu-overlay,
    .menu-close {
        display: none !important;
    }
}



/* Модальное окно */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #fff;
    max-width: 400px;
    width: 100%;
    padding: 30px 24px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #333;
}

.modal-content h2 {
    font-size: 22px;
    margin-bottom: 16px;
}

/* Contact Form 7 */
.wpcf7-form .form-input {
    width: 100%;
    height: 48px;
    margin-bottom: 16px;
    padding: 0 14px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

.wpcf7-form .form-submit {
    width: 350px;
    height: 48px;
    background: #fb842f;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.wpcf7-form .form-submit:hover {
    background: #e6731d;
}
