.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    z-index: 1000;
    padding: clamp(0.5rem, 0.625vw, 0.625rem) 0;
    box-shadow: 0 clamp(0.125rem, 0.156vw, 0.125rem) clamp(0.625rem, 0.781vw, 0.625rem) rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: min(1425px, 95%);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 2.5vw, 2.5rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(1.5rem, 3.75vw, 3.75rem);
    height: 100%;
    flex-wrap: nowrap;
    position: relative;
}

.header-logo {
    padding: clamp(0.5rem, 0.625vw, 0.625rem) 0;
    margin: 0;
    line-height: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.header-logo img {
    height: clamp(2rem, 2.813vw, 2.813rem);
    width: auto;
    display: block;
    vertical-align: top;
}

.header-nav {
    display: flex;
    gap: clamp(1rem, 1.875vw, 1.875rem);
    align-items: center;
    flex: 1;
    justify-content: center;
    padding: 0 clamp(1.25rem, 2.5vw, 2.5rem) 0 clamp(2rem, 4.375vw, 4.375rem);
    height: 100%;
    margin-top: clamp(0.25rem, 0.438vw, 0.438rem);
    flex-wrap: nowrap;
}

/* Гамбургер меню - скрыт по умолчанию, показывается только на узких экранах */
.header-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: clamp(1.5rem, 2vw, 2rem);
    height: clamp(1.5rem, 2vw, 2rem);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    margin-left: auto;
    order: 3;
    min-width: clamp(1.5rem, 2vw, 2rem);
    gap: clamp(0.25rem, 0.313vw, 0.313rem);
}

/* Навигация - видна по умолчанию */
.header-nav {
    display: flex;
    min-width: min(100%, 600px);
}

/* Контактная информация - видна по умолчанию */
.header-contact {
    display: flex;
    min-width: min(100%, 300px);
}

.header-menu-toggle span {
    width: 100%;
    height: clamp(2px, 0.25vw, 2px);
    background-color: var(--color-black);
    border-radius: clamp(1px, 0.125vw, 1px);
    transition: all 0.3s ease;
    display: block;
    position: absolute;
    left: 0;
}

.header-menu-toggle span:nth-child(1) {
    top: clamp(0.25rem, 0.313vw, 0.313rem);
}

.header-menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.header-menu-toggle span:nth-child(3) {
    bottom: clamp(0.25rem, 0.313vw, 0.313rem);
}

.header-menu-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.header-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateY(-50%);
}

.header-menu-toggle.active span:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* Мобильное меню */
.header-mobile-menu {
    display: none;
    position: fixed;
    top: clamp(3.5rem, 4.5vw, 4.5rem);
    left: 0;
    right: 0;
    background-color: var(--color-white);
    box-shadow: 0 clamp(0.25rem, 0.313vw, 0.313rem) clamp(0.625rem, 0.781vw, 0.625rem) rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: clamp(1rem, 1.25vw, 1.25rem) 0;
    max-height: calc(100vh - clamp(3.5rem, 4.5vw, 4.5rem));
    overflow-y: auto;
}

.header-mobile-menu.active {
    display: block;
}

.header-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 1.25vw, 1.25rem);
    padding: 0 clamp(1.25rem, 2.5vw, 2.5rem);
}

.header-mobile-nav a {
    color: rgb(16, 16, 16);
    font-family: Commissioner, sans-serif;
    font-size: clamp(1rem, 1.25vw, 1.25rem);
    font-weight: 500;
    text-decoration: none;
    padding: clamp(0.75rem, 1vw, 1rem) 0;
    border-bottom: clamp(1px, 0.11vw, 1.7px) solid rgba(217, 202, 171, 0.2);
    transition: color 0.3s ease;
}

.header-mobile-nav a:last-child {
    border-bottom: none;
}

.header-mobile-nav a:hover {
    color: var(--color-beige);
}

.header-mobile-contact {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 1.25vw, 1.25rem);
    padding: clamp(1rem, 1.25vw, 1.25rem) clamp(1.25rem, 2.5vw, 2.5rem);
    border-top: clamp(1px, 0.11vw, 1.7px) solid rgba(217, 202, 171, 0.2);
    margin-top: clamp(1rem, 1.25vw, 1.25rem);
}

.header-mobile-social {
    display: flex;
    gap: clamp(1rem, 1.25vw, 1.25rem);
    justify-content: center;
}


.header-nav a {
    color: rgb(16, 16, 16);
    font-family: Commissioner, sans-serif;
    font-size: clamp(0.875rem, 1vw, 1rem);
    font-style: normal;
    font-weight: 500;
    height: clamp(1.25rem, 1.563vw, 1.563rem);
    hyphens: none;
    letter-spacing: normal;
    line-height: clamp(1.25rem, 1.6vw, 1.6rem);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.header-nav a:hover {
    color: var(--color-beige);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 1.563vw, 1.563rem);
    margin-left: clamp(0.75rem, 1.25vw, 1.25rem);
    height: 100%;
    margin-top: clamp(0.25rem, 0.438vw, 0.438rem);
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.header-social {
    display: flex;
    gap: clamp(0.75rem, 1.25vw, 1.25rem);
}

.social-icon {
    width: clamp(1.5rem, 2vw, 2rem);
    height: clamp(1.5rem, 2vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon img {
    width: clamp(1.5rem, 2vw, 2rem);
    height: clamp(1.5rem, 2vw, 2rem);
}

.social-icon:hover {
    transform: scale(1.1);
    opacity: 0.7;
}

.header-phone {
    background-color: var(--color-beige);
    color: var(--color-white);
    padding: clamp(0.375rem, 0.469vw, 0.469rem) clamp(1.5rem, 2.188vw, 2.188rem);
    border-radius: clamp(0.5rem, 0.75vw, 0.75rem);
    border: none;
    font-size: clamp(0.875rem, 1.125vw, 1.125rem);
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-phone:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


