:root {
    --shared-bg-grad: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.shared-header {
    background: var(--shared-bg-grad);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.shared-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.shared-nav {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.shared-logo {
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
}

.shared-logo img {
    height: 72px;
    width: auto;
    max-width: 100%;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.shared-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.shared-nav-links a,
.shared-dropbtn {
    color: #fff;
    text-decoration: none;
    font: inherit;
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.shared-nav-links a:hover,
.shared-dropbtn:hover {
    opacity: 0.85;
}

.shared-dropdown {
    position: relative;
}

.shared-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    z-index: 1200;
}

.shared-dropdown-content a {
    color: #222;
    display: block;
    padding: 12px 18px;
    background: #fff;
}

.shared-dropdown-content a:hover {
    background: #f3f3f3;
    opacity: 1;
}

.shared-dropdown:hover .shared-dropdown-content,
.shared-dropdown:focus-within .shared-dropdown-content,
.shared-dropdown.open .shared-dropdown-content {
    display: block;
}

.shared-footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 2.2rem 0;
    margin-top: 2.5rem;
}

.shared-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}

.shared-footer a {
    color: #fff;
    text-decoration: none;
}

.shared-footer-copy {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: inline-flex;
    }

    .shared-nav-links {
        position: absolute;
        top: 100%;
        right: 20px;
        left: 20px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 18px 35px rgba(0, 0, 0, 0.2);
        overflow: hidden;
    }

    .shared-nav-links.open {
        display: flex;
    }

    .shared-nav-links li {
        width: 100%;
    }

    .shared-nav-links a,
    .shared-dropbtn {
        width: 100%;
        justify-content: space-between;
        color: #222;
        padding: 14px 16px;
    }

    .shared-dropdown {
        width: 100%;
    }

    .shared-dropdown-content {
        position: static;
        min-width: 100%;
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid #ececec;
    }

    .shared-dropdown-content a {
        padding-left: 24px;
    }

    .shared-nav {
        min-height: 74px;
    }

    .shared-logo img {
        height: 62px;
    }
}

@media (max-width: 540px) {
    .shared-container {
        padding: 0 14px;
    }

    .shared-nav-links {
        left: 14px;
        right: 14px;
    }

    .shared-logo img {
        height: 54px;
    }
}