/* ============================================
   CSS Variables - Gaming Theme (DMarket inspired)
   ============================================ */
:root {
    /* Цветовая палитра - Gaming Theme */
    --primary-color: #00d4ff; /* Бирюзовый акцент */
    --primary-hover: #00b8e6;
    --primary-dark: #0099cc;
    --secondary-color: #7b2cbf; /* Фиолетовый */
    --secondary-hover: #6a1b9a;
    --accent-color: #00ff88; /* Зеленый акцент */
    --accent-hover: #00cc6a;
    
    /* Фоны - темно-синий/фиолетовый градиент */
    --bg-dark: #0a0e1a;
    --bg-darker: #050810;
    --bg-gradient: linear-gradient(135deg, #0a0e1a 0%, #1a1f2e 50%, #2d1b3d 100%);
    --bg-gradient-alt: linear-gradient(135deg, #1a1f2e 0%, #2d1b3d 50%, #3d2b4d 100%);
    --bg-glass: rgba(123, 44, 191, 0.1);
    --bg-glass-hover: rgba(123, 44, 191, 0.2);
    --bg-card: rgba(26, 31, 46, 0.8);
    --bg-card-hover: rgba(26, 31, 46, 0.95);
    
    /* Текст */
    --text-color: #ffffff;
    --text-light: #b8bcc8;
    --text-muted: #6b7280;
    --text-accent: #00d4ff;
    
    /* Границы и эффекты */
    --border-color: rgba(0, 212, 255, 0.2);
    --border-glow: 0 0 20px rgba(0, 212, 255, 0.3);
    --border-glow-strong: 0 0 30px rgba(0, 212, 255, 0.5);
    
    /* Тени и эффекты */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.4);
    --shadow-glow-strong: 0 0 40px rgba(0, 212, 255, 0.6);
    
    /* Скругления */
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
    
    /* Анимации */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.5s ease;
    
    /* Шрифты */
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-gaming: 'Orbitron', 'Rajdhani', 'Exo 2', sans-serif;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: rgba(0, 212, 255, 0.2);
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background: var(--bg-gradient);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    position: relative;
}

/* Анимированный фон с частицами */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(123, 44, 191, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 255, 136, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 60% 40%, rgba(255, 0, 150, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: backgroundPulse 25s ease-in-out infinite;
    overflow: hidden;
    clip-path: inset(0);
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 70% 30%, rgba(0, 212, 255, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 30% 70%, rgba(123, 44, 191, 0.06) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
    animation: backgroundPulse 20s ease-in-out infinite;
    opacity: 0.5;
    overflow: hidden;
    clip-path: inset(0);
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.15);
    }
}


/* Контент поверх анимированного фона */
body {
    position: relative;
}

body > * {
    position: relative;
    z-index: 1;
}

/* Контейнер для игровых элементов должен быть внутри body */
.gaming-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Header
   ============================================ */
.header {
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

.header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 15px;
    position: relative;
}

@media screen and (max-width: 1024px) {
    .header__inner {
        grid-template-columns: auto 1fr;
        gap: 15px;
    }
}

.header__logo {
    flex-shrink: 0;
}


.header__logo img {
    height: 45px;
    width: auto;
    display: block;
    transition: var(--transition);
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
}

.header__logo:hover img {
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.6));
    transform: scale(1.05);
}

.header__nav {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    padding: 0 15px;
    white-space: nowrap;
}

@media screen and (max-width: 1024px) {
    .header__nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(20px);
        padding: 20px;
        flex-direction: column;
        gap: 10px;
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .header__nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}

/* Правая часть header */
.header__right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.header__lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.header__lang-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(10px);
    min-width: 50px;
    text-align: center;
    letter-spacing: 0.5px;
}

.header__lang-link:hover {
    color: var(--primary-color);
    background: rgba(0, 212, 255, 0.15);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.header__lang-link.active {
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(123, 44, 191, 0.2) 100%);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3), inset 0 0 10px rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.4);
}


@media screen and (max-width: 768px) {
    .header__right {
        gap: 12px;
    }
    
    .header__lang-link {
        padding: 6px 10px;
        min-width: 45px;
        font-size: 12px;
    }
}

.header__nav-link {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    padding: 8px 10px;
    border-radius: var(--border-radius);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}

.header__nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.header__nav-link:hover {
    color: var(--primary-color);
}

.header__nav-link:hover::before {
    width: 80%;
}

@media screen and (max-width: 1024px) {
    .header__nav-link {
        width: 100%;
        padding: 15px 20px;
        border: 1px solid var(--border-color);
        text-align: left;
    }
}

.header__social {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
    padding: 4px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.header__social-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: calc(var(--border-radius) - 2px);
    transition: var(--transition);
    background: rgba(0, 212, 255, 0.05);
}

.header__social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transition: width 0.3s, height 0.3s;
    pointer-events: none;
    z-index: 0;
}

.header__social-link:hover::before {
    width: 50px;
    height: 50px;
}

.header__social-link:hover {
    transform: scale(1.1);
    background: rgba(0, 212, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.header__social-link img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.3));
    position: relative;
    z-index: 1;
}

.header__social-link:hover img {
    filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.8));
    transform: scale(1.1);
}

@media screen and (max-width: 768px) {
    .header__social {
        gap: 8px;
        padding: 3px;
    }
    
    .header__social-link {
        width: 32px;
        height: 32px;
    }
    
    .header__social-link img {
        width: 20px;
        height: 20px;
    }
}

/* Мобильное меню */
.header__menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--border-radius);
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
    transition: var(--transition);
}

.header__menu-toggle:hover {
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.header__menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition-fast);
    box-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

.header__menu-toggle[aria-expanded="true"] {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.4);
}

.header__menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.header__menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.header__menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media screen and (max-width: 1024px) {
    .header__menu-toggle {
        display: flex;
        grid-column: 2;
        justify-self: end;
    }
    
    .header__right {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-end;
        margin-top: 10px;
    }
}

@media screen and (max-width: 768px) {
    .header__inner {
        grid-template-columns: 1fr auto;
    }
    
    .header__logo {
        grid-column: 1;
    }
    
    .header__menu-toggle {
        grid-column: 2;
    }
    
    .header__right {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: space-between;
        margin-top: 0;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
    }
}

/* ============================================
   Main Content
   ============================================ */
.main {
    min-height: calc(100vh - 200px);
    padding: 0;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: 60px 0 80px;
    background: transparent;
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero__title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-color) 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    animation: gradientShift 3s ease infinite;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    position: relative;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

.hero__text {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero__image-wrapper {
    position: relative;
}

.hero__image-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
    pointer-events: none;
}

.hero__image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.3));
    transition: var(--transition);
    animation: float 6s ease-in-out infinite;
}

/* ============================================
   Search Section
   ============================================ */
.search-section {
    padding: 60px 0;
    background: var(--bg-gradient-alt);
    position: relative;
    overflow: hidden;
}

.search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(123, 44, 191, 0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: backgroundPulse 15s ease-in-out infinite;
}

.search-section .container {
    position: relative;
    z-index: 1;
}

.search-wrapper {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 14px 24px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    color: var(--text-color);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    background: rgba(26, 31, 46, 0.95);
}

.search-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.search-button {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-color);
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.search-button:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.5);
}

/* ============================================
   Description Section
   ============================================ */
.description-section {
    padding: 40px 0;
    position: relative;
}

.description-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 35px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.description-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    opacity: 0.8;
}

.description-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

.description-card__icon {
    text-align: center;
    margin-bottom: 20px;
}

.description-card__icon svg {
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.3));
    opacity: 0.7;
}

.description-card__title {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.description-card__text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.description-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.description-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.description-feature:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateX(3px);
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.2);
}

.description-feature__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: var(--primary-color);
    color: var(--primary-color);
    opacity: 0.8;
    transition: var(--transition);
}

.description-feature:hover .description-feature__icon {
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.6));
}

.description-feature__text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-light);
    flex: 1;
}

.description-card__cta {
    text-align: center;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(123, 44, 191, 0.08));
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 212, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.description-card__cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    animation: scan 3s ease-in-out infinite;
}

.description-card__cta-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.description-card__cta-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .description-card {
        padding: 30px 20px;
    }
    
    .description-card__title {
        font-size: 26px;
    }
    
    .description-card__text {
        font-size: 16px;
    }
    
    .description-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .description-feature {
        padding: 15px;
    }
    
    .description-feature__text {
        font-size: 15px;
    }
    
    .description-card__cta {
        padding: 20px 15px;
    }
    
    .description-card__cta-text {
        font-size: 15px;
    }
}

/* ============================================
   Catalog Section
   ============================================ */
.catalog {
    padding: 60px 0;
}

.catalog__title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    position: relative;
}

.catalog__title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-color);
}

.catalog__category {
    margin-bottom: 60px;
}

.catalog__category-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color)) 1;
    color: var(--text-color);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.catalog__category-title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.catalog__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.catalog__item {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(10px);
}

.catalog__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(123, 44, 191, 0.05) 100%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.catalog__item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--primary-color);
}

.catalog__item:hover .catalog__item-image-wrapper {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(123, 44, 191, 0.15));
}

.catalog__item:hover::before {
    opacity: 1;
}

.catalog__item-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 220px;
    min-height: 220px;
    max-height: 220px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(123, 44, 191, 0.1));
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 10px;
    transition: var(--transition);
}

/* Placeholder для отсутствующих изображений */
.catalog__item-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(123, 44, 191, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.catalog__item-image-wrapper:has(img[src=""])::before,
.catalog__item-image-wrapper:not(:has(img))::before {
    opacity: 1;
}

.catalog__item-image {
    width: auto;
    height: auto;
    max-width: calc(100% - 20px);
    max-height: 200px;
    display: block;
    object-fit: contain;
    object-position: center;
    transition: var(--transition);
    border-radius: calc(var(--border-radius) - 2px);
}

.catalog__item-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.catalog__item-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
}

.catalog__item-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.catalog__item-title a:hover {
    color: var(--primary-color);
}

.catalog__item-price {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.catalog__item-btn {
    margin-top: auto;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 700;
    transition: var(--transition);
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    z-index: 3;
    pointer-events: auto;
    min-height: 44px;
    min-width: 44px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 212, 255, 0.3);
    overflow: hidden;
}

.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: left 0.5s;
}

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

.btn:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.5), var(--shadow-glow);
}

.btn-secondary {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5), var(--shadow-glow);
    border-color: var(--primary-hover);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    margin-top: 60px;
    background: rgba(18, 22, 34, 0.95);
    backdrop-filter: blur(20px);
}

.footer__notice {
    background-color: #a4b4c5;
    padding: 15px 0;
    text-align: center;
}

.footer__notice a {
    color: inherit;
    text-decoration: none;
}

.footer__notice a:hover {
    text-decoration: underline;
}

.footer__main {
    background: rgba(18, 22, 34, 0.95);
    backdrop-filter: blur(20px);
    padding: 120px 0 15px;
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.footer__wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer__col {
    flex: 1 1 auto;
}

.footer__col-left {
    min-width: 250px;
    max-width: 350px;
}

.footer__col-center {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    flex: 1 1 auto;
    justify-content: center;
}

.footer__col-right {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.footer__contact-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(123, 44, 191, 0.2) 100%);
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: var(--border-radius);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    backdrop-filter: blur(10px);
}

.footer__contact-btn:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3) 0%, rgba(123, 44, 191, 0.3) 100%);
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
    color: var(--primary-color);
}

.footer__subtitle {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

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

.footer__logo {
    height: 45px;
    width: auto;
    display: block;
}

.footer__text {
    color: #ffffff;
    line-height: 1.6;
    font-size: 14px;
}

.footer__menu {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer__col-inner {
    min-width: 150px;
}

.footer__col-inner-small {
    min-width: 120px;
}

.footer__descr {
    color: #ffffff;
}

.footer__links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__links-list li {
    margin-bottom: 8px;
    list-style: none;
}

.footer__links-list li::before {
    content: "• ";
    margin-right: 5px;
}

.footer__links-list a {
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer__links-list a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer__socials {
    display: flex;
    align-items: center;
}

.footer__social-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer__social-item {
    list-style: none;
}

.footer__social-item a {
    display: block;
    transition: var(--transition);
}

.footer__social-item a:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.footer__social-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.footer__bottom {
    background: rgba(18, 22, 34, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
}

.footer__bottom p {
    margin-bottom: 15px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.8;
}

.footer__bottom a {
    color: #ffffff;
    text-decoration: none;
}

.footer__bottom a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsive Footer */
@media (max-width: 959px) {
    .footer__main {
        padding: 60px 0 15px;
    }
    
    .footer__wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer__col-left {
        max-width: 100%;
    }
    
    .footer__col-center {
        width: 100%;
        justify-content: flex-start;
    }
    
    .footer__col-right {
        width: 100%;
        justify-content: flex-start;
    }
    
    .footer__contact-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 639px) {
    .footer__menu {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer__col-inner {
        width: 100%;
    }
}

/* ============================================
   Responsive Design
   ============================================ */
/* Tablet */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero__content {
        grid-template-columns: 1fr;
    }
    
    .hero__image {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Mobile */
@media (max-width: 959px) {
    .header__menu-toggle {
        display: flex;
    }
    
    .header__nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-darker);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .header__nav.active {
        max-height: 500px;
    }
    
    .header__nav-link {
        width: 100%;
        padding: 15px 20px;
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .hero {
        padding: 40px 0 60px;
    }
    
    .hero__title {
        font-size: 32px;
    }
    
    .hero__text {
        font-size: 18px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .catalog__item-image-wrapper {
        height: 200px;
        min-height: 200px;
        max-height: 200px;
        padding: 10px;
    }
    
    .catalog__item-image {
        max-height: 180px;
    }
    
    .catalog__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .catalog__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .catalog__item-image-wrapper {
        height: 180px;
        min-height: 180px;
        max-height: 180px;
        padding: 8px;
    }
    
    .catalog__item-image {
        max-height: 160px;
    }
}

/* Mobile Small */
@media (max-width: 639px) {
    .container {
        padding: 0 15px;
    }
    
    .catalog__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .catalog__item-image-wrapper {
        height: 160px;
        min-height: 160px;
        max-height: 160px;
        padding: 8px;
    }
    
    .catalog__item-image {
        max-height: 140px;
    }
    
    .hero__title {
        font-size: 28px;
        line-height: 1.2;
        word-wrap: break-word;
    }
    
    .hero__text {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .search-wrapper {
        flex-direction: column;
    }
    
    .search-button {
        width: 100%;
        min-height: 48px;
    }
    
    .search-input {
        min-height: 48px;
        font-size: 16px; /* Предотвращает zoom на iOS */
    }
    
    /* Улучшение touch-элементов для маленьких экранов */
    .btn {
        min-height: 48px;
        padding: 12px 24px;
        font-size: 16px;
    }
    
    /* Оптимизация текста */
    h1, h2, h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Улучшение прокрутки */
    html {
        -webkit-overflow-scrolling: touch;
    }
}

/* Mobile Extra Small */
@media (max-width: 479px) {
    .container {
        padding: 0 12px;
    }
    
    .btn {
        min-height: 42px;
        padding: 10px 18px;
    }
}

/* ============================================
   Breadcrumbs
   ============================================ */
.breadcrumbs {
    padding: 20px 0;
    background: rgba(10, 14, 26, 0.5);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs__list {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
}

.breadcrumbs__separator {
    color: var(--text-muted);
    font-size: 14px;
}

.breadcrumbs__link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.breadcrumbs__link:hover {
    color: var(--primary-color);
}

.breadcrumbs__current {
    color: var(--text-muted);
    font-size: 14px;
}

/* ============================================
   Product Page Styles
   ============================================ */

/* Product Hero Section */
.product-hero {
    padding-top: 40px;
    padding-bottom: 40px;
}

.product-hero__title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-hero__video {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-wrapper {
    position: relative;
    width: 100%;
    background: var(--bg-darker);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
    opacity: 1;
}

.video-wrapper.playing .video-play-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.video-play-overlay:hover {
    background: rgba(0, 0, 0, 0.6);
}

.play-button {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: playPulse 2s ease-in-out infinite;
}

.play-icon {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 25px rgba(0, 212, 255, 0.6));
    transition: var(--transition);
}

.video-play-overlay:hover .play-button {
    transform: scale(1.15);
}

.video-play-overlay:hover .play-icon {
    filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.9));
}

@keyframes playPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Section Titles - Общие стили */
.section-title {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 15px;
    line-height: 1.3;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

/* Purchase Section */
.purchase-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.purchase-title {
    font-size: 24px;
    margin-bottom: 45px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.purchase-title::after {
    width: 100px;
    height: 3px;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
}

.purchase-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.purchase-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
    text-align: center;
    text-decoration: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 212, 255, 0.2);
}

.purchase-btn:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    background: var(--bg-card-hover);
}

.purchase-btn__period {
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-light);
}

.purchase-btn__price {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Requirements Section */
.requirements-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.requirements-section .section-title {
    margin-bottom: 40px;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.features-section .section-title {
    font-size: 22px;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.screenshots-section .section-title {
    font-size: 22px;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.description-section .section-title {
    font-size: 22px;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.requirements-list {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    line-height: 1.8;
    color: var(--text-light);
    font-size: 15px;
}

.requirements-list p {
    margin-bottom: 12px;
}

.requirements-list p:last-child {
    margin-bottom: 0;
}

.requirements-list em {
    font-style: italic;
    color: var(--primary-color);
    font-weight: 500;
}

.requirements-list small {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
    font-style: normal;
}

.requirements-list small a {
    color: #a0d4ff;
    text-decoration: underline;
    transition: var(--transition);
}

.requirements-list small a:hover {
    color: #c0e4ff;
    text-decoration: none;
}

/* Features Section */
.features-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-column {
    background: var(--bg-card);
    padding: 25px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.feature-column__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 25px;
    margin-top: 0;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-column h4.feature-column__title:not(:first-child) {
    margin-top: 30px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 8px 0;
    padding-left: 18px;
    position: relative;
    color: var(--text-light);
    line-height: 1.5;
    font-size: 14px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.features-note {
    margin-top: 30px;
    padding: 20px;
    background: rgba(123, 44, 191, 0.1);
    border-left: 3px solid var(--secondary-color);
    border-radius: var(--border-radius);
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
}

/* Screenshots Section */
.screenshots-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.screenshots-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.screenshot-item {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 15px;
}

.screenshot-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.screenshot-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    display: block;
    object-fit: contain;
    object-position: center;
    cursor: pointer;
    transition: var(--transition);
    border-radius: calc(var(--border-radius-lg) - 2px);
}

/* Video Gallery Section */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.video-gallery-item {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.video-gallery-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Description Section */
.description-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.description-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    line-height: 1.8;
    color: var(--text-light);
}

.description-content-wide {
    max-width: 1200px;
}

.description-content h4 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.description-content h5 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.description-content p em {
    font-style: italic;
    font-weight: 500;
    color: var(--text-light);
    font-size: 17px;
    display: block;
    margin-top: 20px;
    margin-bottom: 8px;
}

.description-content p {
    margin-bottom: 15px;
}

.description-intro {
    font-size: 18px;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Responsive for Product Page */
@media (max-width: 1024px) {
    .screenshots-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .screenshot-item {
        min-height: 280px;
    }
    
    .screenshot-image {
        max-height: 350px;
    }
    
    .video-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-hero__title {
        font-size: 24px;
    }
    
    .purchase-buttons {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshots-gallery {
        grid-template-columns: 1fr;
    }
    
    .screenshot-item {
        min-height: 250px;
        padding: 12px;
    }
    
    .screenshot-image {
        max-height: 300px;
    }
    
    .video-gallery {
        grid-template-columns: 1fr;
    }
    
    .description-content {
        padding: 25px;
    }
}

@media (max-width: 639px) {
    .screenshots-gallery {
        grid-template-columns: 1fr;
    }
    
    .screenshot-item {
        min-height: 220px;
        padding: 10px;
    }
    
    .screenshot-image {
        max-height: 280px;
    }
}

/* ============================================
   Lightbox Gallery
   ============================================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 16, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox__content {
    position: relative;
    z-index: 1000000;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox__image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-glow-strong);
    border: 2px solid var(--primary-color);
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox__counter {
    margin-top: 20px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: fixed;
    z-index: 1000001;
    background: rgba(26, 31, 46, 0.95);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5), 0 4px 12px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: scale(1.15);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.8), 0 6px 16px rgba(0, 0, 0, 0.9);
}

.lightbox__close {
    top: 80px;
    right: 20px;
    width: 55px;
    height: 55px;
    background: rgba(26, 31, 46, 0.98);
    border-width: 3px;
}

.lightbox__prev,
.lightbox__next {
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
}

.lightbox__prev {
    left: 20px;
}

.lightbox__next {
    right: 20px;
}

.lightbox__close svg,
.lightbox__prev svg,
.lightbox__next svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lightbox__close svg {
    width: 28px;
    height: 28px;
    stroke-width: 3.5;
}

.lightbox__prev svg,
.lightbox__next svg {
    width: 28px;
    height: 28px;
}

/* Адаптивность для lightbox */
@media (max-width: 768px) {
    .lightbox__close,
    .lightbox__prev,
    .lightbox__next {
        width: 50px;
        height: 50px;
    }
    
    .lightbox__prev,
    .lightbox__next {
        width: 55px;
        height: 55px;
    }
    
    .lightbox__close {
        top: 70px;
        right: 15px;
        width: 55px;
        height: 55px;
    }
    
    .lightbox__prev {
        left: 10px;
    }
    
    .lightbox__next {
        right: 10px;
    }
    
    .lightbox__image {
        max-height: 75vh;
    }
    
    .lightbox__counter {
        font-size: 12px;
        padding: 8px 16px;
    }
}

