/* =======================================================
   ШАПКА (HEADER)
   ======================================================= */
/* =======================================================
   ШАПКА (HEADER)
   ======================================================= */
   .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(244, 241, 235, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(59, 13, 27, 0.08);
    padding: 12px 0;
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--text-wine);
    text-decoration: none;
}

/* Бейдж локации */
.header-location {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(59, 13, 27, 0.08);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-wine);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.location-sub {
    color: var(--text-light);
    font-weight: 500;
}
.dot-live {
    width: 7px;
    height: 7px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}


/* Telegram-кнопка (Airplane) */
.tg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(42, 171, 238, 0.1);
    color: #2AABEE;
    text-decoration: none;
    height: 40px;
    padding: 0 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    transition: 0.3s;
    border: 1px solid rgba(42, 171, 238, 0.25);
}

.tg-icon-svg {
    width: 16px;
    height: 16px;
}

.tg-btn:hover {
    background: #2AABEE;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(42, 171, 238, 0.25);
}


.header-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.header-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

.header-nav a:hover {
    color: var(--text-wine);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-btn {
    font-size: 14px;
    width: auto;
    padding: 0 20px;
    border-radius: 100px;
}

/* --- Контакты в шапке --- */
.header-contacts {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phone-link {
    text-decoration: none;
    color: var(--text-wine);
    font-weight: 700;
    font-size: 13px;
    transition: 0.3s;
}

.phone-link:hover {
    opacity: 0.7;
}

.tg-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(42, 171, 238, 0.1);
    color: #2AABEE;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    transition: 0.3s;
    border: 1px solid rgba(42, 171, 238, 0.2);
}

.tg-btn:hover {
    background: #2AABEE;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 171, 238, 0.3);
}

/* --- Иконки шапки (Корзина, Профиль) --- */
.btn-icon {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(59, 13, 27, 0.12);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: var(--text-wine);
}

.nav-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease, stroke 0.3s ease;
}

.btn-icon:hover {
    background: var(--text-wine);
    color: var(--bg-milk);
    border-color: var(--text-wine);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 13, 27, 0.15);
}

.btn-icon:hover .nav-icon {
    transform: scale(1.08);
}

.cart-badge-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 7px;
    height: 7px;
    background-color: var(--accent-red);
    border-radius: 50%;
    border: 1.5px solid var(--bg-milk);
}

/* =======================================================
   ВЫПАДАЮЩЕЕ МЕНЮ (DROPDOWN)
   ======================================================= */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: 0.3s;
}

.nav-dropdown:hover .dropdown-trigger {
    color: var(--text-wine);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(59, 13, 27, 0.08);
    border-radius: 20px;
    padding: 12px;
    min-width: 200px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark) !important;
    text-decoration: none;
    transition: 0.2s;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: var(--bg-milk);
    color: var(--text-wine) !important;
}

/* =======================================================
   МОБИЛЬНОЕ МЕНЮ (PREMIUM DRAWER)
   ======================================================= */
   .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(244, 241, 235, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu-inner {
    padding: 20px 20px 40px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.mobile-menu-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(59, 13, 27, 0.08);
}

.menu-close-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(59, 13, 27, 0.12);
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-wine);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Навигация карточками */
.mobile-nav-list {
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    padding: 14px 16px;
    border-radius: 18px;
    text-decoration: none;
    border: 1px solid rgba(59, 13, 27, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease;
}

.mobile-nav-item:active {
    transform: scale(0.98);
}

.item-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(59, 13, 27, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-wine);
    flex-shrink: 0;
}

.item-icon-wrap svg {
    width: 20px;
    height: 20px;
}

.item-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.item-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-wine);
}

.item-subtitle {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

.item-arrow {
    font-size: 18px;
    color: var(--text-light);
    opacity: 0.6;
}

.mobile-nav-divider {
    height: 1px;
    background: rgba(59, 13, 27, 0.06);
    margin: 8px 0;
}

/* Второстепенные ссылки */
.mobile-sublinks {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sublink-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 10px;
}

.sublink-item svg {
    width: 14px;
    height: 14px;
    opacity: 0.4;
}

/* Карточка пользователя */
.mobile-user-card {
    margin-top: auto;
    padding-top: 16px;
}

.user-card-link, .user-card-auth {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(59, 13, 27, 0.08);
    padding: 12px 16px;
    border-radius: 16px;
    text-decoration: none;
    cursor: pointer;
}

.user-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--text-wine);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-card-icon.gold {
    background: linear-gradient(135deg, #D4AF37 0%, #AA820A 100%);
}

.user-card-icon svg {
    width: 18px;
    height: 18px;
}

.user-card-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.user-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-wine);
}

.user-card-phone {
    font-size: 12px;
    color: var(--text-light);
}

/* Консьерж карточка Telegram */
.mobile-menu-footer {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-concierge-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
    color: #fff;
    padding: 14px 18px;
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(42, 171, 238, 0.25);
}

.concierge-icon svg {
    width: 22px;
    height: 22px;
}

.concierge-text {
    display: flex;
    flex-direction: column;
}

.concierge-text strong {
    font-size: 14px;
    font-weight: 700;
}

.concierge-text small {
    font-size: 11px;
    opacity: 0.9;
}

.mobile-phone-wrap {
    text-align: center;
    padding: 6px 0;
}

.mobile-phone-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-wine);
    text-decoration: none;
    opacity: 0.8;
}
/* =======================================================
   КНОПКА БУРГЕРА (ФИКС ОТОБРАЖЕНИЯ)
   ======================================================= */
   .burger-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(59, 13, 27, 0.15);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Полоски бургера */
.burger-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background-color: #3B0D1B; /* Фиксированный винный цвет (на случай сбоя переменной) */
    background-color: var(--text-wine, #3B0D1B);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    transform-origin: center;
}

/* Анимация крестика при открытом меню */
.burger-btn.active span:nth-child(1) {
    transform: translateY(3.5px) rotate(45deg);
}

.burger-btn.active span:nth-child(2) {
    transform: translateY(-3.5px) rotate(-45deg);
}
/* Адаптив для маленьких экранов */
@media (max-width: 768px) {
    .header-location .location-sub {
        display: none; /* На ультра-узких экранах прячем хвост, оставляем "Зиларт" */
    }

    .tg-btn {
        width: 38px;
        height: 38px;
        padding: 0;
    }
}
/* =======================================================
   ФУТЕР (FOOTER)
   ======================================================= */
.footer {
    background: var(--text-wine);
    color: var(--bg-milk);
    padding: 60px 0 40px;
    margin-top: 100px;
    text-align: center;
    border-radius: 40px 40px 0 0;
    position: relative;
    z-index: 10;
}

.footer p {
    margin-bottom: 12px;
    font-size: 14px;
    opacity: 0.8;
}

.footer a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: 0.3s;
}

.footer a:hover {
    opacity: 1;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* =======================================================
   АДАПТИВНОСТЬ ДЛЯ ШАПКИ И ФУТЕРА
   ======================================================= */
.mobile-only { display: none !important; }

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }

    .header { padding: 12px 0; }
    .logo { font-size: 24px; }

    .footer {
        padding: 40px 20px 30px;
        border-radius: 32px 32px 0 0;
        margin-top: 60px;
    }
    .footer .serif-text { font-size: 20px !important; }
}
