.sp-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem;
}

.sp-header__inner {
    background: var(--sp-color-light);
    border-radius: 15px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    max-width: var(--sp-container);
    margin: 0 auto;
    padding: 0.75rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.sp-header__brand img {
    max-height: 50px;
    width: auto;
    display: block;
}

.sp-site-title {
    font-family: var(--sp-font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--sp-color-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.sp-site-title:hover {
    color: var(--sp-color-primary);
}

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

.sp-nav a {
    color: #000000;
    font-family: var(--sp-font-heading);
    font-weight: 400;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
}

.sp-nav a:hover {
    color: #175190;
}

.sp-nav > li:first-child > a {
    color: #175190;
}

.sp-header__toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.sp-header__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--sp-color-primary);
    transition: transform var(--sp-transition);
    border-radius: 2px;
}

.sp-mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    margin-top: 0.5rem;
    background: var(--sp-color-light);
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    padding: 0.5rem 1.5rem;
}

.sp-mobile-nav:not([hidden]) {
    display: block;
}

.sp-mobile-nav__menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-mobile-nav__menu li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sp-mobile-nav__menu li:last-child {
    border-bottom: 0;
}

.sp-mobile-nav__menu a {
    color: #000000;
    font-family: var(--sp-font-heading);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 1.1rem;
    font-weight: 400;
    display: block;
}

@media (max-width: 900px) {
    .sp-header__nav {
        display: none;
    }
    .sp-header__toggle {
        display: flex;
    }
}

@media (max-width: 700px) {
    .sp-header {
        padding: 0;
    }
    .sp-header__inner {
        border-radius: 0 0 15px 15px;
        padding: 0.75rem 1rem;
        max-width: none;
    }
    .sp-header__brand img {
        max-height: 40px;
    }
}

@media (min-width: 901px) and (max-width: 1399px) {
    .sp-header__inner {
        max-width: clamp(58rem, 4.5vw + 38rem, 58rem);
    }
}

@media (min-width: 1441px) {
    .sp-header {
        padding: 1.5rem;
    }
    .sp-header__inner {
        max-width: 78rem;
        padding: 1rem 2.5rem;
    }
    .sp-nav {
        gap: 2.5rem;
    }
    .sp-nav a {
        font-size: clamp(18px, 1.25vw, 24px);
    }
}

@media (min-width: 1921px) {
    .sp-header {
        padding: 2rem;
    }
}
