.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-color: var(--dark-brown);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    height: 70px;
    box-shadow: var(--shadow-md);
}

.header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cream);
    letter-spacing: 0.5px;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header__nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

.header__nav-link {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--cream);
    position: relative;
    padding: 8px 0;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-green);
    transition: width 0.3s ease;
}

.header__nav-link:hover::after,
.header__nav-link:focus::after {
    width: 100%;
}

.header__nav-link:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 4px;
}

.header__cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header__phone {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: var(--cream);
    display: flex;
    align-items: center;
    gap: 8px;
}

.header__phone svg {
    width: 18px;
    height: 18px;
    fill: var(--cream);
}

.header__menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.header__menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--cream);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--dark-brown);
    z-index: 1001;
    padding: 80px 24px 24px;
    transition: right 0.4s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu__close span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--cream);
}

.mobile-menu__close span:first-child {
    transform: rotate(45deg) translateY(1px);
}

.mobile-menu__close span:last-child {
    transform: rotate(-45deg) translateY(-1px);
}

.mobile-menu__nav {
    list-style: none;
    margin-bottom: 32px;
}

.mobile-menu__nav-item {
    border-bottom: 1px solid rgba(240, 234, 214, 0.2);
}

.mobile-menu__nav-link {
    display: block;
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--cream);
    padding: 16px 0;
}

.mobile-menu__cta {
    margin-top: 24px;
}

.mobile-menu__phone {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-primary);
    color: var(--cream);
    margin-top: 24px;
    padding: 16px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1023px) {
    .header__nav-links {
        display: none;
    }
    
    .header__phone {
        display: none;
    }
    
    .header__menu-btn {
        display: block;
    }
}

@media (max-width: 767px) {
    .header {
        height: 68px;
    }
    
    .header.scrolled {
        height: 60px;
    }
    
    .header__logo {
        font-size: 1.25rem;
    }
    
    .header__cta .btn-primary {
        display: none;
    }
    
    .header__menu-btn {
        padding: 8px;
    }
    
    .header__menu-btn span {
        width: 20px;
    }
}

.footer {
    background-color: var(--dark-brown);
    color: var(--cream);
    padding: 60px 0 24px;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

.footer__logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 16px;
}

.footer__info p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.footer__info a {
    color: var(--cream);
    transition: color 0.3s ease;
}

.footer__info a:hover {
    color: var(--primary-green);
}

.footer__title {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--cream);
}

.footer__links {
    list-style: none;
}

.footer__links li {
    margin-bottom: 12px;
}

.footer__links a {
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer__links a:hover {
    color: var(--primary-green);
}

.footer__social {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.footer__social a:hover {
    background-color: var(--primary-green);
    transform: translateY(-3px);
}

.footer__social svg {
    width: 20px;
    height: 20px;
    fill: var(--cream);
}

.footer__bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(240, 234, 214, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer__copyright {
    font-size: 0.875rem;
    opacity: 0.8;
}

.footer__legal {
    display: flex;
    gap: 24px;
}

.footer__legal a {
    font-size: 0.875rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer__legal a:hover {
    opacity: 1;
}

@media (max-width: 1023px) {
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .footer {
        padding: 48px 0 20px;
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer__legal {
        justify-content: center;
    }
}
