/* ===== HEADER STYLES ===== */

/* ========== HEADER DEFAULT (ДО СКРОЛЛА) ========== */
.header-default {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    padding: 30px 32px 20px;
    z-index: 1000;
    max-width: 1650px;
}

.header-default .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-switcher img {
    width: 24px;
    height: 24px;
}

.lang-btn {
    color: #fff;
    font-weight: 500;
    font-size: 18px;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}

.lang-btn.active {
    color: rgba(234, 81, 131, 1);
}

.language-switcher span {
    color: #fff;
    font-weight: 700;
}

/* Logo */
.header-default .logo {
    position: absolute;
    left: 48%;
    transform: translateX(-50%);
}

.header-default .logo img {
    height: 80px;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.user-name {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.dropdown-arrow {
    transition: transform 0.3s;
}

.user-info.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    min-width: 250px;
    box-shadow: -1px 0px 2px 0px rgba(0, 0, 0, 0.1);
    opacity: 0;
    z-index: 1000;
    visibility: hidden;
    right: 0;
    left: auto;
    transform: translateY(-10px);
    transition: all 0.3s;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 10px;
    margin-top: 5px;
    color: #000;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 5px;
}

.dropdown-item:hover {
    background: rgba(234, 81, 131, 0.1);
}

.dropdown-item img {
    width: 20px;
    height: 20px;
}

.dropdown-item a {
    color: #000;
    text-decoration: none;
}

.item-bold {
    font-weight: 700;
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-wrapper {
    position: relative;
    cursor: pointer;
}

.icon-wrapper img {
    width: 24px;
    height: 24px;
}

.badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: rgba(234, 81, 131, 1);
    color: #fff;
    font-size: 10px;
    font-weight: 300;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navbar */
.header-default .navbar {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding-top: 20px;
}

.nav-link {
    color: #fff;
    font-weight: 400;
    font-size: 20px;
    position: relative;
    transition: all 0.3s;
    text-decoration: none;
}

.nav-link.active,
.nav-link:hover {
    color: rgba(234, 81, 131, 1);
}

.nav-link.active::after,
.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(234, 81, 131, 1);
}

/* Nav Dropdown (для header-common) */
.nav-item-dropdown {
    position: relative;
}

.nav-dropdown-arrow {
    display: inline-block;
    margin-left: 5px;
    transition: transform 0.3s;
}

.nav-item-dropdown:hover .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    border-radius: 10px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
}

.nav-item-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 8px 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 300;
    border-radius: 5px;
    transition: background 0.3s;
    text-decoration: none;
}

.nav-dropdown-menu a:hover {
    color: rgba(234, 81, 131, 1);
}

/* Burger Button */
.burger-btn {
    display: none;
    width: 30px;
    height: 25px;
    position: absolute;
    top: 55%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1001;
    cursor: pointer;
}

.burger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: rgba(234, 81, 131, 1);
    margin-bottom: 5px;
    transition: all 0.3s;
    border-radius: 2px;
}

.burger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-btn.active span:nth-child(2) {
    opacity: 0;
}

.burger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Menu Bottom */
.mobile-menu-bottom {
    display: none;
}

/* ========== HEADER SCROLLED (ПРИ СКРОЛЛЕ) ========== */
.header-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 15px 32px;
    z-index: 1000;
}

.header-scrolled-content {
    display: flex;
    align-items: center;
    gap: 35px;
    max-width: 1650px;
    margin: 0 auto;
    justify-content: space-evenly;
}

.header-scrolled .language-switcher {
    flex-shrink: 0;
}

.navbar-scrolled {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}

.navbar-scrolled .nav-link {
    font-size: 18px;
}

.header-scrolled .logo {
    flex-shrink: 0;
}

.header-scrolled .logo img {
    height: 60px;
}

.auth-btn {
    background: rgba(234, 81, 131, 1);
    color: #fff;
    border: none;
    padding: 14px 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.auth-btn:hover {
    background: rgba(214, 61, 111, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(234, 81, 131, 0.3);
}

  /* ===== AUTH HEADER STYLES ===== */
  .header-auth {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 32px;
    z-index: 1000;
}

.header-top-auth {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1650px;
    margin: 0 auto;
}

.language-switcher-auth {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-switcher-auth img {
    width: 24px;
    height: 24px;
}

.lang-btn-auth {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}

.lang-btn-auth.active {
    color: rgba(234, 81, 131, 1);
}

.language-switcher-auth span {
    color: #fff;
    font-weight: 700;
}

.logo-auth {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo-auth img {
    height: 60px;
}

/* ===== MOBILE STYLES ===== */
@media screen and (max-width: 768px) {
    .header-default .navbar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 20px 30px;
        gap: 15px;
        transition: left 0.3s;
        z-index: 999;
    }
    
    .header-default .navbar.active {
        left: 0 !important;
        padding: 80px 20px 140px; /* Increased padding to accommodate all menu items */
    }

    .header-default .nav-link {
        font-size: 18px;
        text-align: left;
        padding: 5px 0;
        width: 100%;
    }
    
.header-default .nav-menu__logo {
        margin: 0 0 10px 0;
        display: flex;
        justify-content: center;
    }
    
    .header-default .nav-menu__logo img {
        height: 35px;
    }

    .header-default .mobile-menu-bottom {
        display: block;
        margin-top: auto;
        padding-top: 30px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        width: 100%;
    }

    .header-default .header-top {
        margin-bottom: 15px;
        justify-content: space-between;
    }

    .header-default .language-switcher {
        display: none;
    }

    .header-default .logo {
        position: static;
        left: 0;
        transform: none;
    }

    .header-default .logo img {
        height: 50px;
    }

    .header-default .user-info {
        display: none;
    }

    .header-default .user-dropdown {
        display: none;
    }

    .header-default .header-icons {
        display: none;
    }

    .header-default .user-menu {
        display: none;
    }

    .header-default .burger-btn {
        display: block;
    }

    .header-default .navbar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 20px 30px;
        gap: 20px;
        transition: left 0.3s;
        z-index: 999;
    }

    .header-default .navbar.active {
        left: 0 !important;
    }

    .header-default .nav-link {
        font-size: 18px;
        text-align: left;
        padding: 5px 0;
        width: 100%;
    }

    .header-default .mobile-menu-bottom {
        display: block;
        margin-top: auto;
        padding-top: 30px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        width: 100%;
    }

    .mobile-icons {
        display: flex;
        justify-content: space-around;
        margin-bottom: 30px;
    }

    .mobile-icons .icon-wrapper img {
        width: 24px;
        height: 24px;
    }

    .mobile-icons .badge {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }

    .mobile-socials {
        display: flex;
        justify-content: center;
        gap: 20px;
    }

    .mobile-socials img {
        width: 35px;
        height: 33px;
        cursor: pointer;
        transition: transform 0.3s;
    }

    .mobile-socials img:hover {
        transform: scale(1.1);
    }

    /* Scrolled header mobile */
    .header-scrolled {
        background-color: #000;
        border-bottom-left-radius: 50px;
        border-bottom-right-radius: 50px;
        padding: 15px 8px;
    }

    .header-scrolled-content {
        justify-content: space-between;
        align-items: center;
    }

    .header-scrolled .language-switcher {
        display: none;
    }

    .navbar-scrolled {
        display: none;
    }

    .header-scrolled .logo {
        margin: 0;
        position: static;
    }
    
    .header-scrolled .logo img {
        height: 50px;
    }

    .header-scrolled .auth-btn {
        display: none;
    }

    .header-scrolled .burger-btn {
        display: block;
    }
	
	.mob-but {
		display: none !important;
	}
}

@media screen and (max-width: 768px) {
    /* Navbar для scrolled header */
    .header-scrolled .navbar-scrolled {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 20px 30px;
        gap: 20px;
        transition: left 0.3s;
        z-index: 998;
        display: flex !important; /* Переопределяем display: none */
    }

    .header-scrolled .navbar-scrolled.active {
        left: 0;
    }

    .header-scrolled .navbar-scrolled .nav-link {
        font-size: 18px;
        text-align: left;
        width: 100%;
        padding: 5px 0;
    }

    /* Burger button для scrolled */
    .header-scrolled .burger-btn {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 999;
    }

    /* Nav dropdown в мобильном меню */
    .navbar-scrolled .nav-item-dropdown {
        width: 100%;
    }

    .navbar-scrolled .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        padding-left: 20px;
        margin-top: 10px;
        display: none; /* Скрываем по умолчанию */
    }

    .navbar-scrolled .nav-item-dropdown.active .nav-dropdown-menu {
        display: block;
    }

    /* User dropdown на мобилке */
    .user-dropdown {
        right: 0;
        left: auto;
        min-width: 220px;
    }

    /* Предотвращение скролла body когда меню открыто */
    body.menu-open {
        overflow: hidden;
    }
}

/* ===== FIX: Nav Dropdown стили ===== */
.nav-dropdown-menu {
    padding: 10px;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: #fff;
    font-size: 14px;
    font-weight: 300;
    border-radius: 5px;
    transition: all 0.3s;
    text-decoration: none;
}

.nav-dropdown-menu a:hover {
    color: rgba(234, 81, 131, 1);
}

@media screen and (max-width: 768px) {
    .navbar-scrolled .mobile-menu-bottom {
        display: block;
        margin-top: auto;
        padding-top: 30px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
}