/* Базовые стили с тёмной темой */
:root {
  --black: #0a0a0a;
  --red: #ff2e4d;
  --gray: #1a1a1a;
  --gold: #d4af37;
  --ai-color: rgba(106, 13, 173, 0.8);     /* Глубокий фиолетовый */
  --space-color: rgba(10, 24, 61, 0.8);    /* Тёмный космический синий */
  --eco-color: rgba(20, 83, 45, 0.8);      /* Болотный зелёный */
  --urban-color: rgba(140, 110, 70, 0.8);  /* Бронзовый урбан */
  --vintage-color: rgba(110, 60, 40, 0.8); /* Сепия */
  --celeb-color: rgba(166, 0, 0, 0.8);     /* Тёмно-красный */
  --fashion-color: rgba(181, 114, 29, 0.8);/* Золотисто-коричневый */
  --music-color: rgba(50, 30, 70, 0.8);    /* Тёмный пурпур */
  --tech-color: linear-gradient(135deg, rgba(0, 150, 255, 0.1) 0%, rgba(0, 200, 255, 0.05) 100%);
  --celeb-color-2024: linear-gradient(135deg, rgba(198, 40, 40, 0.1) 0%, rgba(166, 0, 0, 0.05) 100%);
  
  /* Трендовые цвета для бейджей */
    --neon-purple: #9D4EDD;     /* Трендовый неоновый фиолетовый */
    --cyber-blue: #00D4FF;      /* Кибер-синий */
    --electric-pink: #FF10F0;   /* Электрический розовый */
    --holographic: linear-gradient(45deg, #00D4FF, #9D4EDD, #FF10F0); /* Голографический эффект */
    --glitch-green: #00FF9D;    /* Глитч-зеленый */
    --cyberpunk-yellow: #FFE800; /* Киберпанк желтый */
    --matrix-green: #00FF41;    /* Матричный зеленый */
    --synthwave-orange: #FF6B35; /* Синтвейв оранжевый */
    --deep-space: #6D28D9;      /* Глубокий космический */
    --ai-blue: #3B82F6;         /* ИИ-синий */
}

/* Базовые стили */
body {
  background: var(--black);
  color: white;
  font-family: 'Roboto', sans-serif;
  margin: 0;
  overflow-x: hidden;
}

header {
  background: #000;
  color: #fff;
  padding: 1rem;
  text-align: center;
}

/* === ПРОМО-БАР === */
.promo-bar {
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, 
        rgba(10, 10, 10, 0.98) 0%,
        rgba(26, 26, 26, 0.98) 50%,
        rgba(10, 10, 10, 0.98) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease;
    animation: promoSlideDown 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Анимация появления */
@keyframes promoSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Скрытый промо-бар */
.promo-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.promo-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: space-between;
    min-width: 0; 
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    flex-wrap: nowrap;
}

/* Контейнер для бейджа */
.promo-badge-container {
    position: relative;
    align-items: center;
    flex-shrink: 0;
    margin-right: 0.5rem;
    min-width: 150px;
    
    display: flex;
    white-space: nowrap;
}

/* Бейдж Premium */
.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.2) 0%,
        rgba(212, 175, 55, 0.4) 100%);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--gold-light);
    position: relative;
    z-index: 10;
    animation: badgePulse 2s infinite;
    white-space: nowrap;
    flex-shrink: 0;
}

.badge-text {
    display: inline-block;
}

/* Анимация пульсации бейджа */
@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3),
                    inset 0 0 10px rgba(212, 175, 55, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.5),
                    inset 0 0 15px rgba(212, 175, 55, 0.2);
    }
}

/* Свечение вокруг бейджа */
.badge-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    background: radial-gradient(circle, 
        rgba(212, 175, 55, 0.3) 0%,
        rgba(212, 175, 55, 0) 70%);
    border-radius: 60px;
    z-index: 0;
    animation: glowPulse 3s infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.promo-badge i {
    font-size: 1rem;
    color: var(--gold-light);
}

/* Контейнер для текста */
.promo-text-container {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-align: center;
    flex: 1;
    min-width: 0; 
    overflow: hidden;
}

.promo-text {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    line-height: 1.3;
}

.promo-highlight {
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
}

.promo-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--gold) 50%,
        transparent 100%);
    animation: highlightShimmer 3s infinite;
}

.text-divider {
    white-space: nowrap;
}

@keyframes highlightShimmer {
    0%, 100% {
        background-position: -200% 0;
    }
    50% {
        background-position: 200% 0;
    }
}

.promo-price {
    color: var(--red);
    font-weight: 800;
    background: linear-gradient(135deg, 
        rgba(255, 46, 77, 0.1) 0%,
        rgba(255, 46, 77, 0.2) 100%);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    margin: 0 0.3rem;
    position: relative;
    animation: priceGlow 2s infinite;
    white-space: nowrap;
    flex-shrink: 0;
}

@keyframes priceGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 46, 77, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 46, 77, 0.5);
    }
}

.promo-subtext {
    font-size: 0.8rem;
    color: #aaa;
    font-weight: 400;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Ссылка "Подробнее" */
.promo-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, 
        var(--red) 0%,
        var(--red-dark) 100%);
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(255, 46, 77, 0.3);
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.promo-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 46, 77, 0.4);
    gap: 12px;
}

.promo-link i {
    transition: transform 0.3s ease;
}

.promo-link:hover i {
    transform: translateX(5px);
}

.link-text {
    display: inline-block;
}

/* Эффект при наведении на ссылку */
.link-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.2) 0%,
        transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.promo-link:hover .link-hover {
    width: 200px;
    height: 200px;
}

/* Кнопка закрытия */
.promo-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #aaa;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.promo-close:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold);
    border-color: rgba(212, 175, 55, 0.4);
    transform: rotate(90deg);
}

.close-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, 
        rgba(212, 175, 55, 0.2) 0%,
        transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.promo-close:hover .close-hover {
    width: 100px;
    height: 100px;
}

/* Декоративные элементы */
.promo-decor {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    opacity: 0.3;
}

.decor-1 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, 
        rgba(212, 175, 55, 0.3) 0%,
        transparent 70%);
    top: -50px;
    left: 10%;
    animation: float 20s infinite linear;
}

.decor-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, 
        rgba(255, 46, 77, 0.2) 0%,
        transparent 70%);
    bottom: -75px;
    right: 15%;
    animation: float 25s infinite linear reverse;
}

.decor-3 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, 
        rgba(0, 153, 255, 0.2) 0%,
        transparent 70%);
    top: 50%;
    left: 80%;
    animation: float 30s infinite linear;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -20px) rotate(90deg);
    }
    50% {
        transform: translate(0, -40px) rotate(180deg);
    }
    75% {
        transform: translate(-20px, -20px) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* === ОСНОВНАЯ ШАПКА === */
.main-header {
    position: relative;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* === ЛОГОТИП === */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translateY(-1px);
}

.logo-icon {
    position: relative;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-primary {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #FFFFFF 0%, #E8E8E8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-secondary {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.1rem;
}

.brutal-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  margin: 0;
  letter-spacing: -3px;
  text-transform: uppercase;
}

/* === ДЕСКТОПНАЯ НАВИГАЦИЯ === */
.desktop-nav {
    display: flex;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.2rem;
    color: #ddd;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(255, 46, 77, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-link:hover {
    color: white;
    transform: translateY(-1px);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(255, 46, 77, 0.1) 100%);
    color: white;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.nav-icon {
    font-size: 1rem;
    color: var(--gold);
}

.nav-arrow {
    font-size: 0.7rem;
    color: #777;
    transition: transform 0.3s ease;
}

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

/* Premium кнопка */
.nav-link.premium {
    background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
    color: #0a0a0a;
    font-weight: 700;
    padding: 0.8rem 1.5rem;
    border: none;
}

.nav-link.premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

/* Выпадающее меню */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 0.8rem;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1002;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

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

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: inherit;
    border-left: 1px solid rgba(212, 175, 55, 0.2);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    transform: rotate(45deg);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    color: #ccc;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: white;
    transform: translateX(5px);
}

.dropdown-item i {
    color: var(--gold);
    width: 16px;
    text-align: center;
}

/* === ПОИСК === */
.search-wrapper {
    position: relative;
}

.search-toggle {
    background: none;
    border: none;
    color: #ddd;
    font-size: 1.1rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.search-box {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 400px;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 100;
    min-width: 200px;
}

.search-wrapper:hover .search-box {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.search-box::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: inherit;
    border-left: 1px solid rgba(212, 175, 55, 0.2);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    transform: rotate(45deg);
}

.search-form {
    display: flex;
    margin-bottom: 1rem;
}

.search-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px 0 0 8px;
    padding: 0.8rem 1rem;
    color: white;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

.search-form input:focus {
    outline: none;
    border-color: var(--gold);
}

.search-btn {
    background: linear-gradient(135deg, var(--red) 0%, #ff1a3d 100%);
    border: none;
    border-radius: 0 8px 8px 0;
    color: white;
    padding: 0 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #ff1a3d 0%, #ff3d5c 100%);
}

.search-suggestions {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.8rem;
}

.suggestion-title {
    color: #777;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.suggestion-item {
    display: block;
    padding: 0.5rem;
    color: #ccc;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.suggestion-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: white;
    padding-left: 0.8rem;
}

/* === ДЕЙСТВИЯ ПОЛЬЗОВАТЕЛЯ === */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ddd;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-1px);
}

.upload-btn {
    background: linear-gradient(135deg, var(--red) 0%, #ff1a3d 100%);
    color: white;
    border: none;
}

.upload-btn:hover {
    background: linear-gradient(135deg, #ff1a3d 0%, #ff3d5c 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 46, 77, 0.3);
}

/* Меню пользователя */
.user-menu {
    position: relative;
}

.user-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2d3436 0%, #1a1a1a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.1rem;
    border: 2px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.user-toggle:hover .user-avatar {
    border-color: var(--gold);
    transform: scale(1.05);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 0.8rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

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

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: inherit;
    border-left: 1px solid rgba(212, 175, 55, 0.2);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    transform: rotate(45deg);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

.dropdown-item.logout {
    color: #ff6b6b;
}

.dropdown-item.logout:hover {
    background: rgba(255, 107, 107, 0.1);
}

/* === МОБИЛЬНОЕ МЕНЮ === */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    flex-direction: column;
    gap: 0.3rem;
    z-index: 1002;
}

.toggle-line {
    width: 24px;
    height: 2px;
    background: #ddd;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-toggle:hover .toggle-line {
    background: white;
}

.mobile-toggle.active .toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active .toggle-line:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav {
    display: none;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 1rem;
}

.mobile-menu {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.8rem;
    color: #ddd;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    background: rgba(212, 175, 55, 0.1);
    color: white;
}

.mobile-nav-item i {
    font-size: 1.2rem;
    color: var(--gold);
}

.mobile-nav-item.premium {
    background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
    color: #0a0a0a;
    font-weight: 700;
}

main.gallery-container {
  padding-left: 2rem;
  padding-right: 2rem;
  box-sizing: border-box;
}

/* Промо-баннер */
.promo-banner {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d3436 100%);
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.promo-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    color: var(--gold);
}

.promo-text {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--red);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.promo-btn:hover {
    background: #ff1a3d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 46, 77, 0.3);
}

.promo-badge {
    position: absolute;
    top: 0.3rem;
    right: 0.5rem;
    background: var(--red);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* ===== ГЕРОЙ-СЛАЙДЕР ===== */
.hero-slider {
    position: relative;
    margin: 1.5rem auto;
    max-width: 1200px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    height: 400px; /* Фиксированная высота */
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
    list-style: none;
    padding: 0;
    z-index: 1;
}

/* Трек слайдов */
.slider-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.6s ease;
    position: relative;
    z-index: 1;
    box-sizing: content-box;
}

/* Отдельный слайд */
.slide {
    flex: 0 0 calc(50% - 10px); /* Занимает половину минус половина отступа */
    min-width: 0;
    position: relative;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
}

.slide.active {
     opacity: 1;
}

.slide-image {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    border-radius: 12px;
    overflow: hidden;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Сохраняет пропорции, заполняя контейнер */
    transition: transform 0.5s ease;
    object-position: center top;    
    display:block;
}

.slide.active .slide-image img {
    transform: scale(1.05);
}

.slide:hover {
     opacity: 1;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(10, 10, 10, 0.95) 0%,
        rgba(10, 10, 10, 0.7) 30%,
        rgba(10, 10, 10, 0.3) 60%,
        transparent 100%
    );
    z-index: 2;
}

/* Контент слайда */
.slide-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
    color: white;
    padding: 3rem;
    margin-left: 5%;
    transform: translateX(-30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.slide.active .slide-content {
    transform: translateX(0);
    opacity: 1;
}

.slide-content::before {
    content: '';
    flex: 0 0 10%; /* Пустое пространство сверху */
}

/* Важно: для рекламного контейнера */
#yandex_rtb_R-A-458425-4 {
    width: 100% !important;
    height: 100% !important;
}

/* Контент по умолчанию скрыт для неактивных слайдов */
.slide:not(.active) .slide-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

/* При наведении на неактивный слайд */
.slide:not(.active):hover .slide-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Оверлей не должен перекрывать рекламу полностью */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(10, 10, 10, 0.7) 0%,
        rgba(10, 10, 10, 0.3) 40%,
        transparent 70%
    );
    z-index: 2;
    pointer-events: none; /* Важно: оверлей не должен блокировать клики по рекламе */
}

.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.3) 0%,
        rgba(255, 46, 77, 0.2) 100%);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 20px;
    padding: 0.5rem 1.2rem;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    backdrop-filter: blur(10px);
}

.slide-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.8rem 0;
    line-height: 1.2;
    background: linear-gradient(135deg, #FFFFFF 0%, #E8E8E8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: white;
}

.slide-description {
    font-size: 1rem;
    color: #ddd;
    margin-bottom: 1.8rem;
    max-width: 500px;
    line-height: 1.6;
}

.slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--red) 0%, #ff1a3d 100%);
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.8rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 46, 77, 0.3);
}

.slide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 46, 77, 0.4);
    gap: 1rem;
}

.slide-btn i {
    transition: transform 0.3s ease;
}

.slide-btn:hover i {
    transform: translateX(3px);
}

/* Навигация */
.slider-nav {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0 2rem;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    font-size: 0.8rem;
}

.nav-btn:hover {
    background: var(--gold);
    color: var(--black);
    transform: scale(1.1);
    border-color: var(--gold);
}

.dots-container {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dot.active {
    background: var(--gold);
    transform: scale(1.2);
}

.dot:hover {
    background: white;
    transform: scale(1.1);
}

/* Прогресс бар */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 4;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold) 0%, var(--red) 100%);
    width: 20%; /* 100% / 5 слайдов = 20% на слайд */
    transition: transform 0.3s ease;
    transform-origin: left;
}

/* Автопрокрутка индикатор */
.auto-play-indicator {
    position: absolute;
    bottom: 10px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.auto-play-indicator:hover {
    background: rgba(0, 0, 0, 0.9);
}

.auto-play-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.auto-play-toggle:hover {
    transform: scale(1.1);
}

.auto-play-indicator.paused {
    opacity: 0.6;
}

.auto-play-indicator.paused .auto-play-toggle {
    color: rgba(255, 255, 255, 0.7);
}

/* Пауза анимации для прогресс-бара при остановке автопрокрутки */
.progress-fill {
    transition: width 0.3s ease;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translate(-20px, -50%);
    }
    to {
        opacity: 1;
        transform: translate(0, -50%);
    }
}


/* Анимации */
.slide-content > * {
    animation: slideIn 0.6s ease forwards;
}

.slide-content .slide-badge {
    animation-delay: 0.2s;
}

.slide-content .slide-title {
    animation-delay: 0.4s;
}

.slide-content .slide-description {
    animation-delay: 0.6s;
}

.slide-content .slide-btn {
    animation-delay: 0.8s;
}

/* Переопределение анимации */
.slide-content {
    animation: none !important; /* Убираем старую анимацию */
}

.slide.active .slide-content {
    animation: slideInFromLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
    .hero-slider {
        height: 350px;
        margin: 1.5rem 1rem;
    }
    
    .slider-container {
        height: 100%;
    }
    
    .slider-track {
        gap: 10px;
        padding: 0 5px;
    }
    
    .slide {
        flex: 0 0 calc(50% - 5px);
        border-radius: 10px;
        margin: 0;
        opacity: 0.5;
        display: block; /* Всегда показываем, но с разной opacity */
    }
    
    .slide.active {
        display: block;
        opacity: 1;
    }
    
    .slide-image {
        width: 100%;
        height: 100%;
        
    }
    
    .slide-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .slide-content {
        position: relative;
        display: flex;
        left: 0;
        top: 0;
        z-index: 3;
        height: 100%;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 1.5rem;
        padding-bottom: 5rem;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        text-align: left; /* На планшетах оставляем выравнивание по левому краю */
        transform: translateX(-15px);
        opacity: 0;
        transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        box-sizing: border-box;
    }
    
    .slide-badge {
        margin: 0 0 1rem 2rem;
        display: inline-flex;
        background: rgba(255, 46, 77, 0.6);
        align-items: center;
        gap: 0.5rem;
        border: 1px solid rgba(212, 175, 55, 0.5);
        border-radius: 20px;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--gold);
        backdrop-filter: blur(10px);
    }
    
    .slide-title {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
        max-width: 100%;
        text-align: left;
    }
    
    .slide-description {
        font-size: 0.85rem;
        max-width: 90%;
        margin-bottom: 1rem;
        margin-left: 0;
        margin-right: auto;
        text-align: left;
        line-height: 1.4;
    }
    
    .slide-btn {
        margin: 0 0 1rem 2rem;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        text-decoration: none;
        padding: 0.8rem 1.8rem;
        border-radius: 25px;
    
    }
    
    .slider-nav {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        bottom: 1rem;
        right: 15px;
        gap: 0.8rem;
        position: absolute;
        align-items: center;
        justify-content: center;
        
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .dots-container {
        padding: 0.6rem 1rem;
    }
}

/* Адаптивность для средних экранов */
@media (max-width: 768px) {
    .hero-slider {
        height: 350px;
        margin: 1rem;
        border-radius: 12px;
    }
    
    .slider-container {
        position: relative;
        height: 100%;
        overflow: hidden;
    }
    
    .slider-track {
        gap: 0;
        padding: 0;
        width: 100%;
        height: 100%;
    }
    
    .slide {
        flex: 0 0 100%;
        width: 100%;
        height: 100%;
        min-width: 100%;
        opacity: 1;
        border-radius: 12px;
        margin: 0;
        overflow: hidden;
        position: relative;
    }
    
    .slide.active {
        opacity: 1;
    }
    
    .image-overlay {
        background: linear-gradient(
            to top,
            rgba(10, 10, 10, 0.95) 0%,
            rgba(10, 10, 10, 0.7) 40%,
            rgba(10, 10, 10, 0.4) 70%,
            transparent 90%
        );
    }
    
    .slide-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        overflow: hidden;
        border-radius: 12px;
    }
    
    .slide-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        background: #000;
        display: flex;
    }
    
    .slide-content {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-start; /* Выравнивание по левому краю */
        max-width: 100%;
        min-height: 100%;
        box-sizing: border-box;
        transform: translateY(0);
        opacity: 1;
        margin: 0;
        padding-bottom: 5rem;
        backdrop-filter: blur(10px);
        border-radius: 0;
        z-index: 3;
        text-align: left !important;
    }
    
    .slide-badge {
        margin: 0 0 0.8rem 1.4rem;
        font-size: 0.75rem;
        padding: 0.4rem 0.9rem;
        backdrop-filter: blur(5px);
    }
    
    .slide-title {
        font-size: 1.4rem;
        margin: 0 0 0.6rem 1.4rem;
        line-height: 1.3;
        max-width: 100%;
    }
    
    .slide-description {
        font-size: 0.9rem;
        left: 0;
        margin: 0 0 1rem 1.4rem;
        max-width: 100%;
        line-height: 1.4;
        display: block; /* Меняем с -webkit-box на block */
        overflow: visible;
        text-overflow: clip;
        text-align: left !important; /* Выравнивание по левому краю */
        align-self: flex-start;
    }
    
    .slide-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: linear-gradient(135deg, var(--red) 0%, #ff2e4d 100%);
        color: white;
        text-decoration: none;
        padding: 0.8rem 1.5rem;
        border-radius: 25px;
        font-weight: 600;
        font-size: 0.85rem;
        transition: all 0.3s ease;
        border: none;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(255, 46, 77, 0.3);
        margin: 1.5rem 0 1rem 1.4rem;
    }
    
    .slider-nav {
        display: flex;
        position: absolute;
        bottom: 1rem;
        left: 0;
        right: 0;
        align-items: center;
        justify-content: center;
        gap: 0.8rem;
        z-index: 10;
        padding: 0 1rem;
        transform: translateY(0); /* Убираем трансформации */
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        border: none;
        padding: 0;
        transition: all 0.3s ease;
    }
    
    .nav-btn {
        width: 32px;
        height: 32px;
    }
    
    .auto-play-indicator {
        padding: 4px;
        width: 26px;
        height: 26px;
        justify-content: center;
        bottom: 15px;
        right: 15px;
    }
    
    .auto-play-indicator span {
        display: none;
    }
    
    .auto-play-toggle {
        width: 100%;
        height: 100%;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 250px;
        margin: 0.5rem;
        border-radius: 10px;
    }
    
    .slider-container {
        height: 100%;
    }
    
    .slider-track {
        width: 100%;
    }
    
    .slide {
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;
    }
    
    .slide-image {
        height: 100%;
    }
    
    .slide-image img {
        object-fit: cover;
        object-position: center 10%;
    }
    
    .slide-content {
        padding: 1rem;
        padding-bottom: 2rem;
        backdrop-filter: blur(8px);
        min-height: 45%;
    }
    
    .slide-title {
        font-size: 1.2rem;
    }
    
    .slide-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .slide-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }
    
    .slide-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        border-radius: 22px;
        margin: 0 0 2rem 1.4rem;
        box-shadow: 0 3px 10px rgba(255, 46, 77, 0.25);
        min-width: 140px;
    }
}

/* Адаптивность для очень маленьких экранов */
@media (max-width: 360px) {
    .hero-slider {
        height: 250px;
    }
    
    .slide-title {
        font-size: 1.1rem;
    }
    
    .slide-description {
        font-size: 0.8rem;
    }
}

/* Анимированные табы */
.grid-wrapper {
  padding: 0 2rem;
  margin: 0 auto;
  max-width: 1400px;
}

.category-tabs-wrapper {
    display: flex;
    justify-content: center;
    padding: 0;
    position: relative;
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0;
    margin: 0 auto;
    max-width: 1400px;
    flex-wrap: wrap;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    color: #ccc;
    padding: 0.7rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.tab-btn.active {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

.tab-btn i {
    font-size: 0.9em;
}

/* Скрываем scrollbar для WebKit */
.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tabs button {
  background: none;
  color: white;
  border: 2px solid var(--gold);
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0; /* Предотвращает сжатие кнопок */
  border-radius: 20px;
}

.category-tabs button.active {
  background: var(--gold);
  color: var(--black);
}

.category-tabs button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: 0.5s;
}

.category-tabs button:hover::before {
  left: 100%;
}

/* Сетка фото с hover-эффектами */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 2rem 0;
    border-radius: 12px;
    grid-auto-flow: dense; 
    align-items: stretch;
}

.photo-card {
    position: relative;
    background: var(--gray);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; 
    min-height: 450px; 
    transition: none;
}

.photo-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.photo-link {
    display: block;
    text-decoration: none !important; /* Отключаем подчеркивание */
    color: inherit; /* Наследуем цвет */
    flex-shrink: 0;
}

.photo-figure {
    margin: 0;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    height: 250px; /* ФИКСИРОВАННАЯ высота изображения */
    width: 100%;
    flex-shrink: 0; /* Не сжимается */
}

.photo-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.photo-card:hover .photo-figure img {
    transform: scale(1.05);
}

/*
.photo-card[data-type="portrait"] .photo-figure {
    aspect-ratio: 3/4;
}

.photo-card[data-type="landscape"] .photo-figure {
    aspect-ratio: 16/9;
}

.photo-card[data-type="square"] .photo-figure {
    aspect-ratio: 1/1;
}
*/

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.photo-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.photo-info {
    padding: 1.5rem;
    background: rgba(26, 26, 26, 0.95);
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}
    
    

.photo-card:hover .photo-info {
    transform: translateY(0);
}

/*
.photo-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}
*/

.photo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--red));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 2;
}

.photo-card:hover::before {
    transform: scaleX(1);
}

.photo-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    pointer-events: none;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Тень для выделения */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Обводка */
    backdrop-filter: blur(5px); /* Размытый фон */
}

/* Индикатор новинки */
.photo-card .photo-badge .new-indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 10px;
    height: 10px;
    background: #FF4757;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.badge-trending {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    border-color: rgba(157, 78, 221, 0.5);
}

.badge-premium {
    background: linear-gradient(135deg, 
        var(--gold) 0%, 
        #FFD700 25%, 
        #FFEC8B 50%, 
        #FFD700 75%, 
        var(--gold) 100%);
    color: var(--black);
    border-color: rgba(212, 175, 55, 0.5);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
    animation: goldShimmer 3s infinite;
}

.badge-tech {
    background: var(--tech-color);
    color: white;
}

.badge-editor {
    background: var(--red);
    color: white;
}

/* EDITOR'S CHOICE - Кибер-синий с эффектом glitch */
.badge-editors {
    background: linear-gradient(135deg, 
        var(--cyber-blue) 0%, 
        #0099FF 50%, 
        var(--cyber-blue) 100%);
    color: white;
    border-color: rgba(0, 212, 255, 0.5);
    position: relative;
    animation: glitch 5s infinite;
}

.badge-space {
    background: var(--deep-space);
    color: white;
}

.badge-urban {
    background: var(--urban-color);
    color: white;
}

@keyframes glitch {
    0%, 100% { transform: translateX(0); }
    95% { transform: translateX(0); }
    96% { transform: translateX(-1px); }
    97% { transform: translateX(1px); }
    98% { transform: translateX(-1px); }
    99% { transform: translateX(1px); }
}

.badge-exclusive {
    background: linear-gradient(135deg, #9D50BB 0%, #6E48AA 100%);
    color: white;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.badge-eco {
    background: linear-gradient(135deg, #2ECC71 0%, #27AE60 100%);
    color: white;
}

.badge-vintage {
    background: linear-gradient(135deg, #D35400 0%, #E67E22 100%);
    color: white;
}

.badge-glitch {
    background: linear-gradient(135deg, 
        #9B59B6 0%, 
        #8E44AD 25%, 
        #3498DB 50%, 
        #8E44AD 75%, 
        #9B59B6 100%);
    color: white;
    animation: glitchEffect 2s infinite;
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
}

@keyframes glitchEffect {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-1px); }
    40% { transform: translateX(1px); }
    60% { transform: translateX(-1px); }
    80% { transform: translateX(1px); }
}

.photo-title {
    font-size: 1.2rem;
    margin: 0 0 0.8rem 0;
    color: white;
    line-height: 1.3;
    
}

.photo-description {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    flex-grow: 1; 
    min-height: 40px;
}

.photo-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #aaa;
}

.stat-item i {
    color: var(--gold);
}

/* Кнопка загрузки */
.load-more-container {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 0;
}

.load-more-btn {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    padding: 1rem 2.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.load-more-btn:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-2px);
}

/* Специфичные стили для трендовых карточек */
.photo-card .photo-info {
  background: rgba(26, 26, 26, 0.9);
}

/* Тематические стили */
.photo-card[data-trend="ai"] .photo-info {
  background: var(--ai-color);
  border-left-color: #6a0dad;
}

.photo-card[data-trend="celeb"] .photo-info {
  background: var(--celeb-color);
  border-left-color: #a60000;
}

.photo-card[data-trend="tech"] .photo-info {
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.1) 0%, rgba(0, 200, 255, 0.05) 100%);
    border-left-color: #0096FF;
}

.photo-card[data-trend="space"] .photo-info {
  background: var(--space-color);
  border-left-color: #0a183d;
}

.photo-card[data-trend="urban"] .photo-info {
  background: var(--urban-color);
  border-left-color: #8c6e46;
}

.photo-card[data-trend="eco"] .photo-info {
  background: var(--eco-color);
  border-left-color: #14532d;
}

.photo-card[data-trend="glitch"] .photo-info {
    background: linear-gradient(
        135deg,
        rgba(155, 89, 182, 0.05) 0%,    /* фиолетовый */
        rgba(52, 152, 219, 0.05) 50%,   /* синий */
        rgba(142, 68, 173, 0.05) 100%   /* фиолетовый */
    );
    border-top: 1px solid rgba(155, 89, 182, 0.2);
    position: relative;
    overflow: hidden;
}


.photo-card[data-trend="vintage"] .photo-info {
  background: var(--vintage-color);
  border-left-color: #6e3c28;
}

.photo-card[data-trend="fashion"] .photo-info {
  background: var(--fashion-color);
  border-left-color: #b5721d;
}

.photo-card[data-trend="music"] .photo-info {
  background: var(--music-color);
  border-left-color: #321e46;
}

.photo-card[data-trend="tech"] .photo-info {
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.1) 0%, rgba(0, 200, 255, 0.05) 100%);
    border-left-color: #0096FF;
}

.photo-card[data-trend="tech"] .badge {
    background: #0096FF;
    color: white;
}

/* Контейнер для кнопки поделиться */
.photo-share-wrapper {
    position: relative;
    display: inline-block;
}

.photo-meta-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Кнопка "Подробнее" */
.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--gold) 0%, #FFD700 100%);
    color: var(--black);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
    align-self: flex-start;
}

.view-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    gap: 0.8rem;
}

.view-more-btn i {
    transition: transform 0.3s ease;
}

.view-more-btn:hover i {
    transform: translateX(3px);
}

/* Кнопка поделиться */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.share-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-1px);
}

.share-btn i {
    font-size: 0.9rem;
}

/* Всплывающее окно */
.share-popup {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Заголовок попапа */
.share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
}

.close-popup {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-popup:hover {
    color: white;
}

/* Кнопки соцсетей */
.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-social {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.share-social:hover {
    transform: translateX(3px);
    text-decoration: none;
}

/* Цвета соцсетей */
.share-social.vk {
    background: rgba(76, 117, 163, 0.2);
    border: 1px solid rgba(76, 117, 163, 0.4);
}
.share-social.vk:hover {
    background: rgba(76, 117, 163, 0.3);
}

.share-social.telegram {
    background: rgba(0, 136, 204, 0.2);
    border: 1px solid rgba(0, 136, 204, 0.4);
}
.share-social.telegram:hover {
    background: rgba(0, 136, 204, 0.3);
}

.share-social.twitter {
    background: rgba(29, 161, 242, 0.2);
    border: 1px solid rgba(29, 161, 242, 0.4);
}
.share-social.twitter:hover {
    background: rgba(29, 161, 242, 0.3);
}

.share-social.facebook {
    background: rgba(66, 103, 178, 0.2);
    border: 1px solid rgba(66, 103, 178, 0.4);
}
.share-social.facebook:hover {
    background: rgba(66, 103, 178, 0.3);
}

/* Кнопка копирования ссылки */
.copy-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    width: 100%;
}

.copy-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

.copy-link.copied {
    background: rgba(46, 204, 113, 0.2);
    border-color: rgba(46, 204, 113, 0.4);
    color: #2ecc71;
}

.copy-link.copied i::before {
    content: "\f00c"; /* Иконка галочки */
}


@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .photo-info {
        padding: 1rem;
    }
    
    .photo-title {
        font-size: 1rem;
    }
    
    .photo-description {
        font-size: 0.8rem;
    }
    
    .share-popup {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        min-width: auto;
    }
    
    .share-popup.show {
        transform: translateY(0);
    }
    
    .share-btn .share-text {
        display: none;
    }
    
    .share-btn {
        padding: 5px 10px;
    }
}

/* Блок рекомендаций */
.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1400px;
  margin: 0 auto;
}

.recommendation-card {
  padding: 1.5rem;
  border-radius: 8px;
  background: rgba(30, 30, 30, 0.6);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.recommendation-card:hover {
  transform: translateY(-5px);
  background: rgba(212, 175, 55, 0.1);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.3);
}

.recommendations {
  padding: 4rem 2rem;
  border-top: 1px solid var(--gray);
  border-bottom: 1px solid var(--red);
  margin-top: 3rem;
  background: rgba(10, 10, 10, 0.8);
  margin: 3rem 0;
}

.recommendations h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  color: var(--gold);
}

.recommendations h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--red);
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  padding: 1.5rem 0;
  background: rgba(30, 30, 30, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 0 0 20px 20px;
  margin: 0 auto;
  max-width: 90%;
}

.categories a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  background: #333;
  border-radius: 20px;
}

.rec-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.rec-content {
  padding: 1.5rem;
}

.rec-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: white;
}

.rec-content p {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.rec-meta {
  display: block;
  font-size: 0.8rem;
  color: var(--gold);
  margin-top: 0.8rem;
}

/* Галерея */
.featured {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* Кнопка "Загрузить еще" */
#load-more {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
}

/* === NEWSLETTER SECTION === */
.newsletter-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.newsletter-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Декорации */
.newsletter-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    filter: blur(20px);
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(255, 46, 77, 0.15) 0%, transparent 70%);
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: 50px;
    left: -50px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 30%;
    left: 10%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

.decoration-flash {
    position: absolute;
    top: 20%;
    right: 15%;
    color: var(--gold);
    font-size: 2rem;
    opacity: 0.3;
    animation: flash 3s infinite;
}

@keyframes flash {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Контент */
.newsletter-content {
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    z-index: 2;
}

/* Хедер */
.newsletter-header {
    text-align: center;
    margin-bottom: 3rem;
}

.newsletter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(255, 46, 77, 0.15) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    margin-bottom: 1.5rem;
}

.badge-icon {
    color: var(--gold);
    font-size: 0.9rem;
}

.badge-text {
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.newsletter-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    line-height: 1.1;
}

.title-line {
    display: block;
    background: linear-gradient(135deg, #FFFFFF 0%, #E8E8E8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-line.accent {
    background: linear-gradient(135deg, var(--gold) 0%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.newsletter-subtitle {
    color: #aaa;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Преимущества */
.newsletter-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(10, 10, 10, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .newsletter-benefits {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.benefit-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.2rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.benefit-content h4 {
    color: white;
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.benefit-content p {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Форма */
.newsletter-form {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.newsletter-form:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: white;
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.form-title i {
    color: var(--gold);
}

.form-subtitle {
    color: #777;
    font-size: 0.9rem;
    margin: 0;
}

/* Поля формы */
.form-body {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 1.2rem;
    color: #777;
    font-size: 1.1rem;
    z-index: 1;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.2rem 1rem 3rem;
    color: white;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-input::placeholder {
    color: #666;
}

.input-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #666;
}

.input-hint i {
    color: var(--gold);
}

/* Кнопка отправки */
.form-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.submit-btn {
    flex: 1;
    min-width: 200px;
    background: linear-gradient(135deg, var(--red) 0%, #ff1a3d 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 46, 77, 0.3);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Статистика */
.form-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    color: var(--gold);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.3rem;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
}

/* Футер формы */
.form-footer {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s ease;
}

.checkbox-container input:checked ~ .checkmark {
    background: var(--gold);
    border-color: var(--gold);
}

.checkbox-container input:checked ~ .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: black;
    font-size: 0.9rem;
    font-weight: bold;
}

.checkbox-text {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.5;
}

.privacy-link {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: #ffd700;
    text-decoration: underline;
}

/* Social proof */
.social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.avatars {
    display: flex;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #333;
    border: 2px solid var(--black);
    background-size: cover;
    background-position: center;
    margin-left: -8px;
}

.avatar:first-child {
    margin-left: 0;
}

.proof-text {
    color: #777;
    font-size: 0.85rem;
}

/* Сообщение об успехе */
.success-message {
    text-align: center;
    padding: 3rem;
    background: rgba(20, 83, 45, 0.1);
    border: 1px solid rgba(20, 83, 45, 0.3);
    border-radius: 20px;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1.5rem;
    animation: bounce 1s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}

.success-title {
    color: white;
    font-size: 2rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.success-text {
    color: #aaa;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.success-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    color: #aaa;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.success-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .newsletter-section {
        padding: 4rem 1rem;
    }
    
    .newsletter-content {
        padding: 2rem;
    }
    
    .newsletter-title {
        font-size: 2.2rem;
    }
    
    .newsletter-benefits {
        padding: 1.5rem;
    }
    
    .newsletter-form {
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .submit-btn {
        width: 100%;
    }
    
    .form-stats {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .newsletter-title {
        font-size: 1.8rem;
    }
    
    .newsletter-subtitle {
        font-size: 1rem;
    }
    
    .social-proof {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
}

/* Анимированный футер */
.animated-footer {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    border-top: 3px solid var(--red);
    position: relative;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.animated-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--red), var(--gold), transparent);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Верхняя часть подвала */
.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Бренд-блок */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-svg {
    flex-shrink: 0;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    letter-spacing: -1px;
}

.logo-tag {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-slogan {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    max-width: 300px;
}

/* Мини-форма подписки в подвале */
.footer-newsletter {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.footer-newsletter h4 {
    color: white;
    font-size: 1rem;
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.newsletter-form.compact {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form.compact input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: white;
    font-size: 0.9rem;
}

.newsletter-form.compact input::placeholder {
    color: #777;
}

.newsletter-form.compact button {
    background: var(--red);
    color: white;
    border: none;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form.compact button:hover {
    background: #ff1a3d;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-newsletter {
        position: relative;
    }
    
    .newsletter-form.compact {
        position: sticky;
        bottom: env(safe-area-inset-bottom, 0);
        background: var(--black);
        padding: 1rem;
        margin: 0 -1rem;
        z-index: 100;
    }
    
    .newsletter-form.compact input {
        font-size: 16px !important; /* Предотвращает зум в iOS */
    }
    
    /* Когда клавиатура открыта */
    body.keyboard-open .footer-newsletter {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--black);
        padding: 1rem;
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    }
    
    body.keyboard-open .footer-slogan {
        display: none; /* Скрываем слоган при открытой клавиатуре */
    }
    
    /* Предотвращаем сдвиг контента */
    .site-footer {
        padding-bottom: constant(safe-area-inset-bottom);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Сетка ссылок */
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 1200px) {
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: white;
    font-size: 1.1rem;
    margin: 0 0 1.5rem 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-heading i {
    color: var(--gold);
    font-size: 1rem;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-list li {
    margin: 0;
}

.footer-list a {
    color: #bbb;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-list a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.footer-list a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
    color: var(--gold);
}

.footer-list a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Разделитель */
.footer-divider {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 3rem 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(212, 175, 55, 0.3), 
        rgba(255, 46, 77, 0.3), 
        rgba(212, 175, 55, 0.3), 
        transparent
    );
}

.divider-icon {
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid var(--gold);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.2rem;
}

/* Нижняя часть подвала */
.footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 992px) {
    .footer-bottom {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
}

.footer-copyright {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-copyright p {
    margin: 0;
    color: #888;
    font-size: 0.9rem;
}

.brand-name {
    color: var(--gold);
    font-weight: 700;
}

.copyright-text a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright-text a:hover {
    color: var(--gold);
}

/* Юридические ссылки */
.footer-legal {
    display: flex;
    justify-content: center;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    align-items: center;
}

.legal-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.legal-links a:hover {
    color: var(--gold);
}

.separator {
    color: #555;
    font-size: 0.8rem;
    user-select: none;
}

/* Социальные сети */
.footer-social {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

@media (max-width: 992px) {
    .footer-social {
        align-items: center;
    }
}

.social-title {
    color: #aaa;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #ccc;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}


.social-icon:hover {
    background: var(--red);
    color: white;
    transform: translateY(-3px);
    border-color: var(--red);
    box-shadow: 0 5px 15px rgba(255, 46, 77, 0.3);
}

/* Кнопка наверх */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--red);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(255, 46, 77, 0.3);
}

.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: #ff1a3d;
    transform: translateY(-5px) scale(1.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    text-align: center;
}

@media (max-width: 768px) {
    .animated-footer {
        display: flex !important;
        flex-direction: column !important;
        min-height: 100vh !important;
        padding-top: 2rem !important;
        position: relative !important;
    }
    
    .footer-content {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .footer-top {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    /* Делаем форму подписки статичной внизу */
    .footer-newsletter {
        bottom: 0 !important;
        background: var(--black) !important;
        padding: 1rem !important;
        margin: 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        z-index: 100 !important;
        margin-top: auto !important; /* Прижимаем к низу */
    }
    
    /* Убираем все трансформации у divider */
    .footer-divider {
        transform: none !important;
        transition: none !important;
        margin: 2rem 0 !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    .divider-icon {
        position: relative !important;
        z-index: 2 !important;
        background: var(--black) !important;
        border: 2px solid var(--gold) !important;
    }
    
    /* Фиксируем кнопку наверх */
    .scroll-top-btn {
        position: fixed !important;
        bottom: calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
        right: 1rem !important;
        z-index: 1000 !important;
    }
}

/* Глитч эффект для подвала */
.animated-footer .glitch {
    display: inline-block;
    position: relative;
    color: var(--gold);
    font-weight: 700;
}

.animated-footer .glitch::before,
.animated-footer .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.animated-footer .glitch::before {
    color: var(--red);
    animation: glitch-effect 3s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.animated-footer .glitch::after {
    color: #00ffea;
    animation: glitch-effect 2s infinite linear alternate-reverse;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch-effect {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

/* Стили для рекламных блоков */
.ad-wrapper {
  padding: 0;
  margin: 1.5rem auto;
  max-width: 1200px;
  min-width: 250px;
  max-height: 250px;
}

.full-width {
  box-sizing: border-box;
}

.ad-block {
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ad-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px; /* Фиксированная минимальная высота */
  max-height: 250px; /* Максимальная высота */
  
}

.ad-block .ad-content {
   background: #1a1a1a;
}

.ad-content span {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: #aaa;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}

.ad-content img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: contain;
}


/* Типы рекламных блоков */
.horizontal-ad {
  grid-column: 1 / -1;
}

.vertical-ad {
  grid-row: span 1;
  max-height: 400px;
}

.square-ad {
  aspect-ratio: 1/1;
}

.full-width {
  width: 100%;
}

/* Адаптация рекламы */
@media (max-width: 768px) {
  .ad-wrapper {
    width: calc(100% - 0.5rem);
    padding: 0 1rem;
  }
  
  .vertical-ad {
    grid-row: span 1;
    width: 100%;
    max-height: 300px;
  }
  
  .ad-block .ad-content {
    padding-top: 0;
    height: auto;
    min-height: 120px;
    max-height: 180px;
  }
}

/* Виджет статистики */
.stats-widget {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px;
    border-radius: 12px;
    font-size: 13px;
    z-index: 10000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    font-family: 'Roboto', sans-serif;
    min-width: 160px;
    max-width: 200px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-widget.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.stats-widget.fully-hidden {
    display: none !important;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-title {
    color: #D4AF37;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.stats-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #aaa;
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: scale(1.1);
}

.stats-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.stats-label {
    color: #aaa;
    font-size: 12px;
    font-weight: 400;
}

.stats-value {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    min-width: 50px;
    text-align: right;
}

.stats-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11px;
    color: #888;
    text-align: center;
    font-style: italic;
}

.stats-export-btn {
    margin-top: 12px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #D4AF37;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.5px;
}

.stats-export-btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.2));
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-1px);
}

/* Стили для кнопки мобильной статистики */
.mobile-stats-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.9);
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-stats-toggle:hover {
    background: rgba(212, 175, 55, 1);
    transform: scale(1.1);
}

@media (max-width: 480px) {
    .mobile-stats-toggle {
        display: flex;
    }
}

/* Адаптация сетки */
@media (min-width: 1600px) {
  .photo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1200px) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1300px) and (min-width: 1024px) {
    .header-container {
        padding: 0.8rem 1.5rem;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .logo-wrapper {
        flex: 1;
        min-width: 0;
    }
    
    .desktop-nav {
        flex: 1;
        min-width: 0;
        margin-left: 1rem;
    }
    
    .nav-menu {
        gap: 0.3rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
    
    .nav-icon {
        font-size: 0.9rem;
    }
    
    .nav-label {
        font-size: 0.85rem;
    }
    
    /* Правая часть - начинаем компактить */
    .header-actions {
        flex-shrink: 0;
        gap: 1rem;
    }
    
    .user-actions {
        gap: 0.8rem;
    }
    
    .action-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

@media (max-width: 1024px) {
    .promo-content {
        gap: 1rem;
    }
    
    .promo-bar {
        padding: 0.7rem 1.2rem;
    }
    
    .promo-badge-wrapper {
        margin-left: 0.5rem;
        min-width: 80px;
    }
    
    .promo-text {
        font-size: 0.95rem;
        gap: 0.4rem;
    }
    
    .promo-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .promo-link {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .promo-link-wrapper {
        min-width: 110px;
    }
    
    .header-container {
        padding: 1rem 1.5rem;
        flex-wrap: wrap;
    }
    
    .logo-wrapper {
        gap: 1.5rem; /* Уменьшаем отступ */
    }
    
    .nav-link {
        padding: 0.7rem 1rem; /* Уменьшаем кнопки */
        font-size: 0.9rem;
    }
    
    .nav-menu {
        gap: 0.3rem; /* Уменьшаем отступы между пунктами */
    }
    
    /* Уменьшаем иконки навигации */
    .nav-icon {
        font-size: 0.9rem;
    }
    
    /* Скрываем текст навигации, оставляем только иконки */
    .nav-label {
        display: none; /* Прячем текст */
    }
    
    .nav-link {
        padding: 0.7rem; /* Делаем кнопки квадратными */
        justify-content: center;
    }
    
    .nav-link .nav-arrow {
        display: none; /* Скрываем стрелки */
    }
    
    /* Корректируем премиум кнопку */
    .nav-link.premium {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
    
    /* Уменьшаем поисковую строку */
    .search-box {
        width: 350px;
    }
    
    /* Уменьшаем кнопку загрузки */
    .upload-btn span {
        display: none; /* Прячем текст "Загрузить" */
    }
    
    .upload-btn {
        padding: 0.7rem;
    }
}

@media (max-width: 768px) {
  .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    .promo-bar {
        padding: 0.6rem 1rem;
        height: auto;
        min-height: 80px;
    }
    
    .promo-content {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .promo-badge-container {
        order: 1;
        min-width: auto;
        justify-content: center;
        margin: 0 3rem 1.5rem 0;
        display: flex !important;
        width: 200px !important;
        max-width: 220px !important;
    }
    
    .promo-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .promo-text-container {
        order: 2;
        width: 100%;
        margin-top: 1.5rem;
        flex: 1;
        min-width: 0;
    }
    
    .promo-link {
        order: 3;
        min-width: auto;
        justify-content: flex-end;
        margin-left: 5px;
    }
    
    .promo-close {
        right: 0.5rem;
        width: 30px;
        height: 30px;
        min-width: 30px;
    }
    
    .promo-text {
        font-size: 0.9rem;
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .promo-highlight {
        font-size: 0.9rem;
        display: block;
    }
    
    .text-divider,
    .promo-price {
        font-size: 0.85rem;
    }
    
    .promo-subtext {
        font-size: 0.75rem;
        white-space: normal;
        text-align: center;
        line-height: 1.2;
    }
    
    /* Скрываем разделитель на мобильных */
    .text-divider {
        display: none;
    }
    
    .promo-title {
        font-size: 1.8rem;
    }
    
    .logo-wrapper {
        flex: 1; /* Занимает доступное пространство */
        justify-content: space-between;
    }
    
    .desktop-nav {
        display: none; /* Прячем десктопную навигацию */
    }
    
    .logo {
        gap: 0.6rem;
    }
    
    .logo-primary {
        font-size: 1.5rem; /* Уменьшаем лого */
    }
    
    .logo-secondary {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
    
    .logo-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .logo-title {
        font-size: 1.5rem;
    }
    
    /* Показываем кнопку мобильного меню */
    .mobile-toggle {
        display: flex;
    }
    
    /* Корректируем поиск и пользовательские действия */
    .search-toggle {
        font-size: 1rem;
    }
    
    .search-wrapper {
        position: static; /* Убираем относительное позиционирование */
    }
    
    .search-box {
        position: fixed !important; /* Меняем на fixed */
        top: calc(100% - 1.5rem); /* Отступ от верха */
        left: 50% !important; /* Центрируем */
        right: auto !important;
        transform: translateX(-50%) !important;
        width: calc(100vw - 40px) !important; /* Ширина с отступами */
        max-width: 400px;
        min-width: 300px;
        z-index: 100 !important;
        
        /* Тень и граница для лучшей видимости */
        box-shadow: 
            0 10px 40px rgba(0, 0, 0, 0.6),
            0 0 0 100vmax rgba(0, 0, 0, 0.3) !important;
        border: 1px solid rgba(212, 175, 55, 0.3) !important;
    }
    
    .search-box::before {
        content: '';
        position: absolute;
        top: -6px;
        left: 28%;
        width: 12px;
        height: 12px;
        background: inherit;
        border-left: 1px solid rgba(212, 175, 55, 0.2);
        border-top: 1px solid rgba(212, 175, 55, 0.2);
        transform: rotate(45deg);
    
    }
    
    /* Уменьшаем аватар */
    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    /* Показываем мобильное меню при активации */
    .mobile-nav.active {
        display: block;
    }
    
    .header-actions {
        gap: 1rem;
    }
    
    .categories-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link span {
        display: none;
    }
    
    .nav-link i {
        margin-right: 0;
        font-size: 1.2rem;
    }
    
    .header-actions {
        gap: 1rem;
    }
    
    .action-btn span {
        display: none;
    }
    
    .action-btn {
        padding: 0.7rem;
    }
    
    /* Адаптируем мобильное меню */
    .mobile-menu {
        grid-template-columns: repeat(3, 1fr); /* 3 колонки */
        gap: 0.8rem;
    }
    
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }
    
    .photo-card[data-trend] .photo-info {
        border-left-width: 2px;
        opacity: 0.95; /* Увеличиваем читаемость на малых экранах */
    }
  
    .category-tabs {
        justify-content: flex-start;
        padding: 1rem 0.5rem;
        margin: 0 -0.5rem;
    }
  
    .category-tabs button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        border-width: 1px;
    }
  
    .recommendations {
        padding: 2rem 1rem;
    }
  
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
  
    .rec-image {
        height: 150px;
    }
  
    .animated-footer {
        padding: 3rem 1.5rem 1.5rem;
    }
    
    .footer-top {
        gap: 2rem;
    }
    
    .footer-links-grid {
        gap: 2rem;
    }
    
    .footer-heading {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-list a {
        font-size: 0.9rem;
    }
    
    .legal-links {
        gap: 0.5rem;
    }
    
    .legal-links a {
        font-size: 0.8rem;
    }
    
    .scroll-top-btn {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .logo-secondary {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
    
    .promo-bar {
        padding: 0.6rem 0.8rem;
        min-height: auto;
        justify-content: center;
    }
    
    .promo-content {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 16px;
        padding: 0 12px;
        box-sizing: border-box;
    }
    
    .promo-badge-container {
        justify-content: flex-end;
        margin: 0 4rem 1rem 0;
        display: flex;
    }
    
    .promo-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
        gap: 4px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1rem; /* Центрируем сам бейдж */
    }
    
    .promo-badge i {
        font-size: 0.8rem;
    }
    
    .promo-badge,
    .promo-link span {
        font-size: 0.7rem;
    }
    
    .promo-text-container {
        order: 2;
        width: 100%;
        text-align: center;
        position: relative;
        padding: 0 /* Отступы для кнопки закрыть */
    }
    
    .promo-text {
        font-size: 0.8rem;
        line-height: 1.4;
        padding: 0 10px;
    }
    
    .promo-highlight {
        font-size: 0.85rem;
        display: block;
        line-height: 1.2;
    }
    
    .text-divider,
    .promo-price {
        font-size: 0.8rem;
        display: inline;
    }

    .promo-price {
        font-size: 0.85rem;
        padding: 0.15rem 0.4rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
        margin-left: 3px;
    }
    
    .promo-close {
        order: 4;
        position: absolute;
        top: 50%;
        right: 0;
        transform: none;
        width: 28px;
        height: 28px;
        min-width: 28px;
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        border: none;
        cursor: pointer;
    }
    
    .promo-subtext {
        font-size: 0.7rem;
    }
    
    .promo-link {
        order: 3;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        width: 100px;
        justify-content: center;
        margin: 0.5rem auto 0; /* Центрирование */
        display: flex;
    }
    
    .header-container {
        padding: 0.6rem 0.8rem;
        flex-wrap: nowrap;
    }
    
    .logo-wrapper {
        flex: 1;
        min-width: 0; /* Позволяет сжиматься */
    }
    
    .logo {
        gap: 0.4rem;
        min-width: 0;
    }
    
    .logo-text {
        min-width: 0;
        overflow: hidden;
    }
    
    .logo-primary {
        font-size: 1.2rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .logo-secondary {
        font-size: 0.6rem;
        letter-spacing: 0.5px;
    }
    
    .logo-icon svg {
        width: 28px;
        height: 28px;
    }
    
    /* Поиск на весь экран */
    .search-box {
        position: absolute !important;
        max-width: 380px !important;
        min-width: 280px !important;
        margin: 0.1rem;
        width: calc(100% - 1rem) !important;
    }
    
    .photo-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 15px;
    }
  
    .promo-banner {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .tab-btn span {
        display: none;
    }
    
    .tab-btn {
        padding: 0.7rem;
    }
  
    .categories {
        gap: 10px;
        padding: 1rem 0;
    }
  
    .category-tabs {
        gap: 8px;
    }
  
    .category-tabs button {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
  
    .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
  .brutal-header h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 600px) {
  .featured {
    grid-template-columns: 1fr;
  }
}