/* === HEADER === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;

    background: transparent;
    transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid #E8E2D9;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

.site-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

/* Логотип */
.site-header__logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.site-header__logo svg {
    fill: #766B5D;
    transition: color 0.3s;
}

.site-header__logo-text {
    line-height: 1.2;
}

.site-header__logo-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.025em;
    transition: color 0.3s;
}

.site-header__logo-sub {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    opacity: 0.65;
    transition: color 0.3s;
}

/* Навигация */
.site-header__nav {
    display: none;
    gap: 1.5rem;
}

.site-header__nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.site-header__nav-link:hover {
    color: #766B5D;
}

/* Кнопки действий */
.site-header__actions {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

.site-header__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.site-header__btn--address {
    color: inherit;
}

.site-header__btn--call {
    background: #766B5D;
    color: #fff;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
}

.site-header__btn--call:hover {
    background: #3D3128;
}

/* Мобильные кнопки */
.site-header__mobile-actions {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.site-header__mobile-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.site-header__mobile-btn:hover {
    background: rgba(255,255,255,0.25);
}

/* Бургер-иконка */
/*.burger-icon {
    display: block;
    width: 18px;
    height: 14px;
    position: relative;
}

.burger-icon span,
.burger-icon span::before,
.burger-icon span::after {
    display: block;
    height: 2px;
    background: currentColor;
    transition: 0.3s;
}

.burger-icon span::before,
.burger-icon span::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
}

.burger-icon span::before { top: -6px; }
.burger-icon span::after  { top: 6px; }*/


.burger-icon {
    display: block;
    width: 20px;          /* ширина иконки */
    height: 16px;         /* общая высота */
    position: relative;
}

.burger-icon span,
.burger-icon span::before,
.burger-icon span::after {
    display: block;
    height: 2px;
    background: currentColor;
    position: absolute;
    left: 0;
    right: 0;
}

.burger-icon span {
    top: 50%;
    transform: translateY(-50%);
}

.burger-icon span::before {
    content: '';
    top: -7px;
}

.burger-icon span::after {
    content: '';
    top: 7px;
}

/* Мобильное меню */
.site-header__mobile-menu {
    display: none;
    background: #fff;
    border-top: 1px solid #E8E2D9;
    box-shadow: 0 10px 15px -5px rgba(0,0,0,0.05);
}

.site-header__mobile-menu.active {
    display: block;
}

.site-header__mobile-link {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #3D3128;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}

.site-header__mobile-link:last-child {
    border-bottom: none;
}

/* Цвета для прозрачного состояния (top) */
.site-header:not(.scrolled) .site-header__logo-name,
.site-header:not(.scrolled) .site-header__logo-sub,
.site-header:not(.scrolled) .site-header__nav-link,
.site-header:not(.scrolled) .site-header__btn--address {
    color: #fff;
}

.site-header:not(.scrolled) .site-header__logo svg {
    fill: #fff;
}

.site-header:not(.scrolled) .site-header__btn--call {
    background: #fff;
    color: #3D3128;
}

.site-header:not(.scrolled) .site-header__mobile-btn,
.site-header.scrolled .site-header__mobile-btn {
    background: #83796F;
    color: #fff;
}

/*.site-header.scrolled .site-header__mobile-btn {
    background: #83796F;
    color: #fff;
}*/

/* Модалка адресов */
.header-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
}

.header-modal.active {
    display: flex;
}

.header-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.header-modal__container {
    position: relative;
    background: #fff;
    border-radius: 1.5rem;
    max-width: 42rem;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.header-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #E8E2D9;
}

.header-modal__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.125rem;
    color: #3D3128;
}

.header-modal__close {
    background: none;
    border: none;
    color: #6B6259;
    cursor: pointer;
}

.header-modal__body {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.header-location-card {
    border: 1px solid #E8E2D9;
    border-radius: 1rem;
    overflow: hidden;
}

.header-location-card__note {
    display: flex;
    margin: 0 0 0.75rem;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 3px;

    color: #3D3128;
    font-size: 0.85rem;
    line-height: 1.5;
}

.header-location-card__info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem;
}

.header-location-card__note-icon,
.contacts__card-note-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;

    color: #D4C7AF;
    color: #766B5D;
}

.header-location-card__icon {
    width: 28px;
    height: 28px;
    background: #766B5D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-location-card__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #3D3128;
}

.header-location-card__address,
.header-location-card__phone {
    font-size: 0.875rem;
    margin-left: 2.75rem;
    margin-bottom: 0.25rem;
}

.header-location-card__phone {
    color: #766B5D;
    font-weight: 500;
    text-decoration: none;
}

.header-location-card__hours {
    font-size: 0.75rem;
    color: #6B6259;
    margin-left: 2.75rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 1024px) {
    .site-header__nav,
    .site-header__actions {
        display: flex;
    }

    .site-header__mobile-actions {
        display: none;
    }
}