:root {
    --header-height: 170px;
}

header {
    position: relative;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    height: var(--header-height);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-brand {
    flex: 1;
    min-width: 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fdb145;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.logo:hover {
    transform: translateY(-1px);
    color: #e89d20;
}

.logo span {
    color: #302f2f;
    font-weight: 700;
}

.logo::before {
    content: '🍃';
    font-size: 1.5rem;
}

.header-slogan {
    font-size: 0.9rem;
    color: #757575;
    margin-top: 4px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.2;
    display: block;
}

.header-socials {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex: 2;
    padding: 0 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f8f4e8;
    color: #302f2f;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    background-color: #fdb145;
    color: white;
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 12px rgba(253, 177, 69, 0.3);
}

.social-link i {
    position: relative;
    z-index: 1;
}

.social-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #302f2f;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1001;
}

.social-tooltip::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid #302f2f;
}

.social-link:hover .social-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.header-contacts {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.contact-phone {
    font-weight: 700;
    font-size: 1.1rem;
    color: #302f2f;
}

.contact-email {
    font-size: 0.9rem;
    color: #757575;
}

.contact-phone a,
.contact-email a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: inherit;
    font-family: 'Montserrat', sans-serif;
}

.contact-phone a:hover,
.contact-email a:hover {
    background-color: rgba(253, 177, 69, 0.15);
    color: #fdb145;
    transform: translateX(-2px);
}

.contact-phone i,
.contact-email i {
    font-size: 0.9rem;
    color: #fdb145;
    width: 16px;
    text-align: center;
}

.header-bottom {
    padding: 15px 0;
}

.desktop-menu ul {
    display: flex;
    justify-content: center;
    gap: 35px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.desktop-menu ul li {
    position: relative;
    flex-shrink: 1;
    min-width: 0;
}

.desktop-menu ul li a {
    position: relative;
    padding: 10px 5px;
    font-weight: 600;
    color: #302f2f;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    display: block;
    white-space: nowrap;
}

.desktop-menu ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #fdb145, #e89d20);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.desktop-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, rgba(253, 177, 69, 0.1), rgba(232, 157, 32, 0.1));
    border-radius: 1px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.desktop-menu ul li a:hover {
    color: #fdb145;
}

.desktop-menu ul li a:hover::before {
    width: 100%;
}

.desktop-menu ul li a:hover::after {
    opacity: 1;
}

.desktop-menu ul li a.active {
    color: #fdb145;
}

.desktop-menu ul li a.active::before {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
    width: 40px;
    height: 40px;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #302f2f;
    margin: 5px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: #fdb145;
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: #fdb145;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 90%;
    max-width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    padding: 80px 25px 30px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    display: flex;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #fdb145 #f8f4e8;
}

.mobile-menu::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: #f8f4e8;
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: #fdb145;
    border-radius: 3px;
}

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

.mobile-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    background: linear-gradient(135deg, #f8f4e8, #fff6e6);
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(253, 177, 69, 0.2);
}

.mobile-phone a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: #302f2f;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-phone a:hover {
    color: #fdb145;
    transform: scale(1.02);
}

.mobile-phone i {
    font-size: 1.4rem;
    color: #fdb145;
}

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

.mobile-menu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-menu li a {
    display: flex;
    align-items: center;
    padding: 18px 15px;
    font-weight: 500;
    color: #302f2f;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.mobile-menu li a:hover {
    background-color: rgba(253, 177, 69, 0.1);
    color: #fdb145;
    padding-left: 20px;
}

.mobile-menu li a i {
    margin-right: 15px;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    color: #fdb145;
}

.mobile-menu li a.active {
    color: #fdb145;
    background-color: rgba(253, 177, 69, 0.05);
    font-weight: 600;
}

.mobile-socials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.mobile-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background-color: #f8f4e8;
    color: #302f2f;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-family: 'Montserrat', sans-serif;
}

.mobile-socials a:hover {
    background-color: #fdb145;
    color: white;
    border-color: #fdb145;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 177, 69, 0.3);
}

.mobile-socials .fab,
.mobile-socials .fas {
    font-size: 1.3rem;
}

.mobile-email {
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-email a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    color: #757575;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.mobile-email a:hover {
    color: #fdb145;
}

.mobile-email i {
    font-size: 1.1rem;
    color: #fdb145;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

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

@media (min-width: 1280px) and (max-width: 1366px) {
    .desktop-menu ul {
        gap: clamp(20px, 2.5vw, 28px);
    }

    .desktop-menu ul li a {
        padding: 8px clamp(4px, 0.6vw, 6px);
        font-size: clamp(0.95rem, 1.3vw, 1.02rem);
        letter-spacing: 0.25px;
    }
}

@media (min-width: 1180px) and (max-width: 1279px) {
    .desktop-menu ul {
        gap: clamp(15px, 2vw, 22px);
    }

    .desktop-menu ul li a {
        padding: 7px clamp(3px, 0.5vw, 5px);
        font-size: clamp(0.92rem, 1.25vw, 0.98rem);
        letter-spacing: 0.2px;
    }
}

@media (min-width: 1100px) and (max-width: 1179px) {
    .desktop-menu ul {
        gap: clamp(12px, 1.8vw, 18px);
    }

    .desktop-menu ul li a {
        padding: 7px clamp(2px, 0.4vw, 4px);
        font-size: clamp(0.9rem, 1.2vw, 0.95rem);
        letter-spacing: 0.15px;
    }
}

@media (min-width: 1000px) and (max-width: 1099px) {
    .desktop-menu ul {
        gap: clamp(8px, 1.5vw, 14px);
    }

    .desktop-menu ul li a {
        padding: 6px clamp(2px, 0.3vw, 3px);
        font-size: clamp(0.88rem, 1.1vw, 0.92rem);
        letter-spacing: 0.1px;
    }
}

@media (min-width: 993px) and (max-width: 999px) {
    .desktop-menu ul {
        gap: clamp(4px, 1vw, 8px);
    }

    .desktop-menu ul li a {
        padding: 6px 2px;
        font-size: clamp(0.82rem, 1vw, 0.88rem);
        letter-spacing: 0.05px;
    }
}

@media (min-width: 1000px) and (max-width: 1140px) {
    .header-container {
        max-width: 100%;
        padding: 0 15px;
    }
}

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

@media (max-width: 992px) {
    :root {
        --header-height: 80px;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 80px;
        padding: 0 15px;
    }

    .header-bottom,
    .desktop-menu {
        display: none;
    }

    .header-top {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 !important;
        border-bottom: none !important;
        width: 100%;
    }

    .header-brand {
        position: static;
        pointer-events: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        text-align: left;
        gap: 2px;
        margin-right: auto;
    }

    .logo {
        font-size: 1.4rem;
        margin: 0;
        justify-content: flex-start;
    }

    .logo::before {
        font-size: 1.2rem;
    }

    .header-slogan {
        font-size: 0.8rem;
        max-width: 180px;
        display: block !important;
    }

    .header-contacts {
        display: none;
    }

    .header-socials {
        display: none;
    }

    .menu-toggle {
        display: block;
        position: relative;
        right: 0;
        margin-left: auto;
    }

    .menu-toggle {
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 1001;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .header-brand {
        gap: 0;
    }

    .logo {
        font-size: 1.3rem;
    }

    .header-slogan {
        font-size: 0.75rem;
        max-width: 150px;
        margin-top: 2px;
    }

    .menu-toggle {
        width: 36px;
        height: 36px;
    }

    .mobile-menu {
        width: 100%;
        max-width: 320px;
        padding: 70px 20px 20px;
    }

    .mobile-menu li a {
        padding: 16px 15px;
        font-size: 1rem;
    }

    .mobile-socials {
        grid-template-columns: 1fr;
    }

    .mobile-phone a {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .logo {
        font-size: 1.2rem;
    }

    .header-slogan {
        font-size: 0.7rem;
        max-width: 130px;
    }

    .mobile-menu {
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 10px;
        height: 70px;
    }

    .header-brand {
        max-width: 60%;
    }

    .logo {
        font-size: 1.15rem;
    }

    .header-slogan {
        font-size: 0.65rem;
        max-width: 120px;
    }

    .menu-toggle {
        width: 32px;
        height: 32px;
    }

    .mobile-menu {
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    .mobile-menu li a {
        padding: 14px 15px;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.mobile-menu.active li {
    animation: slideInRight 0.3s ease forwards;
    opacity: 0;
}

.mobile-menu.active li:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu.active li:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu.active li:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu.active li:nth-child(4) { animation-delay: 0.25s; }
.mobile-menu.active li:nth-child(5) { animation-delay: 0.3s; }
.mobile-menu.active li:nth-child(6) { animation-delay: 0.35s; }
.mobile-menu.active li:nth-child(7) { animation-delay: 0.4s; }
.mobile-menu.active li:nth-child(8) { animation-delay: 0.45s; }

header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
}

body {
    padding-top: 0 !important;
}

.page-banner {
    margin-top: 0 !important;
}

.hero {
    margin-top: 0 !important;
    padding-top: 0 !important;
}