/* ========================================
   Element Classic — Основной CSS
   Дизайн 2026 года (Светлая тема)
   ======================================== */

/* Переменные */
:root {
    --primary: #0dbd8b;
    --primary-dark: #0aa07a;
    --primary-light: #1ddda3;
    --primary-glow: rgba(13, 189, 139, 0.3);
    --secondary: #f5f7fa;
    --accent: #00f5a0;
    --text: #1a1a2e;
    --text-muted: #5a5a7a;
    --bg-dark: #ffffff;
    --bg-card: rgba(13, 189, 139, 0.05);
    --bg-glass: rgba(13, 189, 139, 0.08);
    --border: rgba(13, 189, 139, 0.15);
    --gradient-1: linear-gradient(135deg, #0dbd8b 0%, #00f5a0 100%);
    --gradient-2: linear-gradient(135deg, #e8f5f0 0%, #f0fdf7 100%);
    --shadow-glow: 0 0 40px var(--primary-glow);
    --shadow-card: 0 4px 20px rgba(13, 189, 139, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Сброс и базовые стили */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Анимации */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(5deg); }
    66% { transform: translateY(-10px) rotate(-5deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

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

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

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

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px var(--primary-glow); }
    50% { box-shadow: 0 0 40px var(--primary-glow), 0 0 60px var(--primary-glow); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Навигация */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    box-shadow: 0 2px 20px rgba(13, 189, 139, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(13, 189, 139, 0.15);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-image {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(13, 189, 139, 0.3));
}

.navbar .logo-image {
    height: 50px;
}

.footer .logo-image {
    height: 55px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

/* Hero секция */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f0fdf7 0%, #e8f5f0 50%, #ffffff 100%);
}

.hero-bg-animation {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #0dbd8b 0%, #1ddda3 100%);
    top: -150px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #00f5a0 0%, #0dbd8b 100%);
    bottom: -100px;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #1ddda3 0%, #00f5a0 100%);
    top: 40%;
    left: 30%;
    animation-delay: -14s;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--primary);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(13, 189, 139, 0.2);
    animation: pulse 2s infinite;
}

.badge-icon {
    font-size: 1.2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text);
}

.strikethrough-wrapper {
    position: relative;
    display: inline-block;
}

.strikethrough-text {
    text-decoration: line-through;
    text-decoration-color: var(--primary);
    text-decoration-thickness: 3px;
    color: var(--text-muted);
}

.highlight-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: glow 3s infinite;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-1);
    color: #ffffff;
    box-shadow: 0 10px 40px var(--primary-glow);
}

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

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary);
    border: 2px solid var(--primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-icon {
    font-size: 1.2rem;
}

.hero-features {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.7);
    padding: 10px 18px;
    border-radius: 30px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(13, 189, 139, 0.1);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(13, 189, 139, 0.2);
}

.feature-icon {
    font-size: 1.5rem;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 13px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

/* Анимации появления */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.animate-slide-up {
    opacity: 0;
    animation: slideUp 0.8s ease forwards;
}

.animate-slide-up-delay {
    opacity: 0;
    animation: slideUp 0.8s ease 0.2s forwards;
}

.animate-slide-up-delay-2 {
    opacity: 0;
    animation: slideUp 0.8s ease 0.4s forwards;
}

.animate-fade-in-delay {
    opacity: 0;
    animation: fadeIn 0.8s ease 0.6s forwards;
}

/* Секции */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    background: var(--bg-glass);
    border: 2px solid var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(13, 189, 139, 0.15);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text);
}

/* О мессенджере */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background: #ffffff;
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: var(--transition);
}

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

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

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: float 3s infinite ease-in-out;
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text);
}

.about-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Видео секция */
.video-section {
    background: var(--gradient-2);
    position: relative;
    overflow: hidden;
}

.video-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(13, 189, 139, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.video-wrapper {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-glow);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Вертикальное видео (574x1024) */
.video-container.vertical-video {
    padding-bottom: 177.7%; /* 16:9 aspect ratio for vertical video */
    max-width: 500px;
    margin: 0 auto;
}

.video-description {
    text-align: center;
    margin-top: 30px;
    color: var(--text-muted);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 9/16;
    background: #ffffff;
    border: 2px solid var(--border);
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.zoom-icon {
    font-size: 2rem;
}

.gallery-number {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
}

/* Загрузка */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.download-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: var(--transition);
}

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

.download-card:hover::before {
    opacity: 0.05;
}

.download-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border-radius: 15px;
    font-size: 1.8rem;
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.download-icon svg {
    width: 35px;
    height: 35px;
}

.download-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.download-title {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
}

.download-subtitle {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.download-arrow {
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.download-card:hover .download-arrow {
    transform: translateX(5px);
}

/* PC скриншоты */
.pc-screenshots {
    margin-top: 60px;
}

.screenshots-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.pc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.pc-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/9;
    background: #ffffff;
    border: 2px solid var(--border);
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}

.pc-item:hover {
    transform: scale(1.03);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.pc-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Секция сервера */
.server-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.server-card {
    background: #ffffff;
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.server-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.15;
    animation: rotate 20s linear infinite;
}

.server-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.server-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.server-description {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.server-note {
    display: flex;
    gap: 15px;
    background: rgba(13, 189, 139, 0.1);
    border: 1px solid var(--primary);
    border-radius: 15px;
    padding: 20px;
}

.note-icon {
    font-size: 1.5rem;
}

.server-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.server-comparison {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.server-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    border-radius: 15px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    min-width: 280px;
    transition: var(--transition);
}

.server-option.wrong {
    border-color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
}

.server-option.correct {
    border-color: var(--primary);
    background: rgba(13, 189, 139, 0.1);
    box-shadow: var(--shadow-glow);
}

.server-status {
    font-size: 1.5rem;
    font-weight: 700;
}

.server-option.wrong .server-status {
    color: #ff4757;
}

.server-option.correct .server-status {
    color: var(--primary);
}

.server-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.server-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.server-arrow {
    font-size: 2rem;
    color: var(--primary);
    animation: bounce 2s infinite;
}

/* Telegram секция */
.telegram {
    background: var(--gradient-2);
}

.telegram-content {
    max-width: 800px;
    margin: 0 auto;
}

.telegram-intro {
    text-align: center;
    margin-bottom: 50px;
}

.telegram-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.telegram-intro h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.telegram-intro p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-item {
    display: flex;
    gap: 20px;
    background: #ffffff;
    border: 2px solid var(--border);
    border-radius: 15px;
    padding: 25px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.step-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-1);
    transform: scaleY(0);
    transition: var(--transition);
}

.step-item:hover {
    transform: translateX(10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.step-item:hover::before {
    transform: scaleY(1);
}

.step-number {
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    color: var(--bg-dark);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.3rem;
}

.step-content h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.step-content code {
    background: rgba(13, 189, 139, 0.2);
    color: var(--primary);
    padding: 3px 8px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.telegram-note {
    display: flex;
    gap: 15px;
    background: rgba(13, 189, 139, 0.1);
    border: 1px solid var(--primary);
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
}

.telegram-note p {
    color: var(--text-muted);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #f0fdf7 0%, #e8f5f0 100%);
    border-top: 2px solid var(--border);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 15px;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 50px;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 0 60px rgba(13, 189, 139, 0.3);
    border: 3px solid var(--primary);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50%;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: var(--primary-dark);
    transform: rotate(90deg);
    box-shadow: 0 0 30px var(--primary-glow);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50%;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 30px var(--primary-glow);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(13, 189, 139, 0.3);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 75px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        border-bottom: 2px solid var(--border);
        box-shadow: 0 10px 30px rgba(13, 189, 139, 0.15);
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-features {
        gap: 15px;
    }

    .feature-item {
        font-size: 0.85rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .pc-grid {
        grid-template-columns: 1fr;
    }

    .server-content {
        grid-template-columns: 1fr;
    }

    .server-visual {
        order: -1;
    }

    .server-comparison {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .server-arrow {
        width: 100%;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

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

    .step-item {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin: 0 auto;
    }

    .step-item:hover {
        transform: translateY(-5px);
    }

    .telegram-note,
    .server-note {
        flex-direction: column;
    }
}

/* Декоративные элементы */
.decorative-dots {
    position: absolute;
    display: grid;
    grid-template-columns: repeat(3, 8px);
    gap: 10px;
    z-index: 0;
    opacity: 0.5;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }
.dot:nth-child(4) { animation-delay: 0.6s; }
.dot:nth-child(5) { animation-delay: 0.8s; }
.dot:nth-child(6) { animation-delay: 1s; }
.dot:nth-child(7) { animation-delay: 1.2s; }
.dot:nth-child(8) { animation-delay: 1.4s; }
.dot:nth-child(9) { animation-delay: 1.6s; }

.about, .gallery {
    position: relative;
}

/* Градиентные разделители секций */
.section-divider {
    height: 3px;
    background: var(--gradient-1);
    border: none;
    margin: 0;
}

/* Эффект свечения для заголовков */
.section-title {
    position: relative;
    display: inline-block;
}

.section-header .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

/* Дополнительные анимации */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.shimmer-effect {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(13, 189, 139, 0.1) 50%,
        transparent 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 3s infinite;
}

/* Зеленые акценты */
.green-accent {
    position: relative;
}

.green-accent::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-1);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.green-accent:hover::before {
    opacity: 0.5;
}
