/* static/css/style.css */
:root {
    --bg-primary: #0a0b14;
    --bg-secondary: #111827;
    --bg-card: rgba(255, 255, 255, 0.03);
    --primary: #7c3aed;
    --primary-glow: #8b5cf6;
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --text-white: #f8fafc;
    --text-dim: #94a3b8;
    --text-light: #cbd5e1;
    --border: rgba(255, 255, 255, 0.08);
    --success: #10b981;
    --error: #ef4444;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-glow: linear-gradient(135deg, #8b5cf6, #06b6d4);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-glass: linear-gradient(135deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05));
    --glass: rgba(255, 255, 255, 0.05);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 30px 90px rgba(124, 58, 237, 0.15);
    --shadow-primary: 0 10px 40px rgba(124, 58, 237, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Улучшаем контейнер для частиц */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 10% 20%, rgba(103, 58, 183, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(33, 150, 243, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(233, 30, 99, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, #0a0b14 0%, #131428 100%);
}

/* Добавляем дополнительный слой свечения */
.particles-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    animation: particle-glow 20s ease-in-out infinite alternate;
}

@keyframes particle-glow {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* Дополнительные плавающие элементы */
.floating-particle {
    position: fixed;
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
    filter: blur(1px);
}

.floating-particle.shape-1 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15), transparent 70%);
    animation: float-shape-1 25s linear infinite;
}

.floating-particle.shape-2 {
    width: 100px;
    height: 100px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15), transparent 70%);
    animation: float-shape-2 30s linear infinite;
}

.floating-particle.shape-3 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1), transparent 70%);
    animation: float-shape-3 35s linear infinite;
}

@keyframes float-shape-1 {
    0% {
        transform: translate(10vw, 10vh) rotate(0deg);
    }
    25% {
        transform: translate(80vw, 30vh) rotate(90deg);
    }
    50% {
        transform: translate(60vw, 70vh) rotate(180deg);
    }
    75% {
        transform: translate(20vw, 50vh) rotate(270deg);
    }
    100% {
        transform: translate(10vw, 10vh) rotate(360deg);
    }
}

@keyframes float-shape-2 {
    0% {
        transform: translate(80vw, 80vh) rotate(0deg);
    }
    25% {
        transform: translate(20vw, 20vh) rotate(90deg);
    }
    50% {
        transform: translate(70vw, 40vh) rotate(180deg);
    }
    75% {
        transform: translate(40vw, 70vh) rotate(270deg);
    }
    100% {
        transform: translate(80vw, 80vh) rotate(360deg);
    }
}

@keyframes float-shape-3 {
    0% {
        transform: translate(50vw, 90vh) rotate(0deg);
    }
    25% {
        transform: translate(90vw, 50vh) rotate(90deg);
    }
    50% {
        transform: translate(30vw, 20vh) rotate(180deg);
    }
    75% {
        transform: translate(70vw, 80vh) rotate(270deg);
    }
    100% {
        transform: translate(50vw, 90vh) rotate(360deg);
    }
}

/* Базовые стили для плавающих эмодзи */
.floating-emoji {
    position: fixed;
    font-size: 20px;
    z-index: -1;
    opacity: 0.2;
    animation: floatEmoji 20s linear infinite;
    pointer-events: none;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.15));
    transition: opacity 0.5s;
    user-select: none;
    animation-play-state: running;
}

@keyframes floatEmoji {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.15;
    }
    25% {
        transform: translate(30px, -35px) rotate(15deg) scale(1.2);
        opacity: 0.25;
    }
    50% {
        transform: translate(-20px, -25px) rotate(-10deg) scale(0.85);
        opacity: 0.2;
    }
    75% {
        transform: translate(35px, -15px) rotate(8deg) scale(1.15);
        opacity: 0.3;
    }
    100% {
        transform: translate(-25px, -30px) rotate(-7deg) scale(0.9);
        opacity: 0.22;
    }
}

/* Хедер */
.header {
    padding: 24px 0;
    margin-bottom: 30px;
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 10px; /* Добавляем внутренние отступы */
}

/* Логотип с отступом слева */
.logo {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px; /* Увеличиваем отступ между иконкой и текстом */
    flex-shrink: 0;
    padding: 5px 0;
    margin-left: 5px; /* Добавляем отступ слева */
}

.logo-icon {
    font-size: 28px; /* Немного увеличиваем */
    animation: bounce 2s infinite;
    display: inline-block;
}

/* Навигационные ссылки с отступами */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 5px 0;
}

.header-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s;
    padding: 10px 18px; /* Увеличиваем отступы */
    border-radius: 10px;
    position: relative;
    white-space: nowrap;
    margin: 2px 0;
}

/* Кнопки с отступами */
.btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Увеличиваем отступ между иконкой и текстом */
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    margin: 2px 5px; /* Добавляем внешние отступы */
}

.btn-sm {
    padding: 10px 20px; /* Увеличиваем немного */
    font-size: 14px;
    gap: 8px;
}

/* Кнопки */
.btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(124, 58, 237, 0.1);
}

/* Главная страница */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 40px 0 100px;
    position: relative;
}

.hero-content {
    flex: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-dim);
    margin-bottom: 40px;
    max-width: 90%;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.stat i {
    color: var(--primary);
    font-size: 16px;
}

/* Превью презентации */
.presentation-preview {
    position: relative;
    perspective: 1000px;
}

.screen {
    background: var(--gradient-glass);
    border-radius: 24px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.screen:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow:
        0 30px 80px rgba(124, 58, 237, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.screen-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.slide-content {
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-badge {
    display: inline-block;
    background: var(--gradient-2);
    color: white;
    padding: 7px 15px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 22px;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 20px rgba(245, 87, 108, 0.25);
}

.slide-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 28px;
    color: white;
}

.slide-title .highlight {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-top: 5px;
}

.slide-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.slide-features span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 0;
}

.slide-features i {
    color: var(--success);
    font-size: 13px;
    width: 18px;
    text-align: center;
}

.slide-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.slide-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(6, 182, 212, 0.15));
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    transition: all 0.3s;
}

.screen:hover .slide-tag {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.2));
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.1);
}

/* Каталог на главной */
.catalog {
    padding: 60px 0 100px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--text-dim);
    font-size: 16px;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter {
    padding: 10px 24px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}

.filter.active, .filter:hover {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-primary);
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.product-preview {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: white;
    font-weight: 600;
}

.product-card:hover .preview-overlay {
    opacity: 1;
}

.slide-count {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.product-meta {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 15px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.price {
    font-size: 22px;
    font-weight: 800;
    color: white;
}

.btn-view {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-view:hover {
    transform: rotate(90deg);
    background: var(--secondary);
}

/* Преимущества */
.features {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    text-align: center;
}

.feature:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
    display: inline-block;
}

.feature h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature p {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.5;
}

/* Контакты на главной */
.contacts {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 30px;
    margin: 40px 0;
}

.contacts-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.contact-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    text-align: center;
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.contact-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: white;
}

.contact-icon.phone {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.contact-icon.telegram {
    background: linear-gradient(135deg, #0088cc, #34aadc);
}

.contact-icon.email {
    background: linear-gradient(135deg, #ea4335, #fbbc05);
}

.contact-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-white);
}

.contact-link {
    display: block;
    color: var(--primary);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    margin: 15px 0;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--secondary);
}

.contact-note {
    color: var(--text-dim);
    font-size: 14px;
    margin-top: 10px;
}

.contact-info {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--border);
    margin-top: 40px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info p {
    color: var(--text-dim);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.contact-info i {
    color: var(--primary);
    font-size: 16px;
}

/* Мини элементы контактов (общие) */
.contact-mini-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s;
}

.contact-mini-item:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.contact-mini-item i {
    font-size: 18px;
    color: var(--primary);
}

.contact-mini-item span {
    font-size: 14px;
    font-weight: 500;
}

/* Форматы (общие) */
.format-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.format-icon.windows {
    color: #00a4ef;
}

.format-icon.android {
    color: #3ddc84;
}

.format-icon.iphone {
    color: #000000;
}

.format-icon.mac {
    color: #000000;
}

.format-icon.web {
    color: #4285f4;
}

/* Футер */
.footer {
    margin-top: 80px;
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand h3 {
    font-size: 24px;
    margin-bottom: 5px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-copyright {
    text-align: center;
    color: var(--text-dim);
    font-size: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* Сообщения */
.messages-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
}

.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 10px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideInRight 0.3s ease-out;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(52, 211, 153, 0.9));
    color: white;
}

.alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(248, 113, 113, 0.9));
    color: white;
}

.alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(96, 165, 250, 0.9));
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(251, 191, 36, 0.9));
    color: white;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-alert {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    margin-left: 10px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.close-alert:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Адаптивность */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 20px 0 60px;
        text-align: center;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-stats {
        justify-content: center;
    }

    .presentation-preview {
        max-width: 500px;
        margin: 0 auto;
    }

    .products {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .floating-emoji {
        opacity: 0.15;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }

    .filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        scrollbar-width: none;
    }

    .filters::-webkit-scrollbar {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .screen {
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    }

    .floating-emoji {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }

    .products {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .header-actions {
        justify-content: center;
    }
}

.btn-home {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    margin: 0 5px;
}

.btn-home::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 ease;
}

.btn-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
    background: linear-gradient(135deg, #8b5cf6, #0ea5e9);
}

.btn-home:hover::before {
    left: 100%;
}

.btn-home i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.btn-home:hover i {
    transform: scale(1.2) rotate(10deg);
}

.btn-home-text {
    position: relative;
    z-index: 1;
}

/* Анимация пульсации для кнопки "На главную" */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(124, 58, 237, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
    }
}

/* Анимация только на главной странице для кнопки "Каталог" */
.home-page .header-actions .header-link[href*="catalog"] {
    animation: pulse-glow 2s infinite;
}

/* Стили для активной кнопки на главной странице */
.home-page .btn-home {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    animation: pulse-glow 2s infinite;
}

.home-page .btn-home:hover {
    background: linear-gradient(135deg, #fbbf24, #f87171);
}

/* Адаптивность для кнопки */
@media (max-width: 768px) {
    .btn-home {
        padding: 8px 15px;
        font-size: 14px;
        gap: 8px;
    }

    .btn-home-text {
        display: none;
    }

    .btn-home i {
        font-size: 18px;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .btn-home {
        padding: 6px 12px;
        font-size: 13px;
    }

    .btn-home i {
        font-size: 16px;
    }
}

/* Универсальная кнопка "На главную" со стрелкой */
.glow-home-btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: linear-gradient(135deg,
        rgba(124, 58, 237, 0.15),
        rgba(6, 182, 212, 0.1));
    color: var(--primary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(124, 58, 237, 0.3);
    box-shadow:
        0 4px 15px rgba(124, 58, 237, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    min-width: 140px;
    height: 44px;
}

/* Стрелка слева */
.glow-home-btn-arrow .arrow-left {
    margin-right: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    opacity: 0.8;
}

/* Иконка дома */
.glow-home-btn-arrow i {
    font-size: 16px;
    color: var(--primary);
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.6));
}

/* Эффект свечения */
.glow-home-btn-arrow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
        #7c3aed, #06b6d4, #7c3aed);
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: glow-border 3s ease-in-out infinite;
}

.glow-home-btn-arrow:hover::before {
    opacity: 0.8;
}

/* Внутреннее свечение */
.glow-home-btn-arrow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(124, 58, 237, 0.2),
        rgba(6, 182, 212, 0.15));
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.glow-home-btn-arrow:hover::after {
    opacity: 1;
}

/* Контент кнопки */
.glow-home-btn-arrow .btn-content {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.glow-home-btn-arrow:hover .btn-content {
    transform: translateX(-5px);
}

.glow-home-btn-arrow:hover .arrow-left {
    transform: translateX(-3px);
    opacity: 1;
}

.glow-home-btn-arrow:hover i {
    color: white;
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(124, 58, 237, 0.8));
    animation: icon-pulse 2s infinite;
}

/* Текст */
.glow-home-btn-arrow .btn-text {
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.glow-home-btn-arrow:hover .btn-text {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Блестящий эффект */
.glow-home-btn-arrow .btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.8s ease;
    z-index: 2;
}

.glow-home-btn-arrow:hover .btn-shine {
    left: 100%;
}

/* Компактная версия для мобильных */
.glow-home-btn-arrow.compact {
    min-width: 50px;
    padding: 10px;
}

.glow-home-btn-arrow.compact .btn-text,
.glow-home-btn-arrow.compact .arrow-left {
    display: none;
}

.glow-home-btn-arrow.compact i {
    margin: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .glow-home-btn-arrow:not(.keep-text) {
        min-width: 50px;
        padding: 10px;
    }

    .glow-home-btn-arrow:not(.keep-text) .btn-text,
    .glow-home-btn-arrow:not(.keep-text) .arrow-left {
        display: none;
    }

    .glow-home-btn-arrow:not(.keep-text) i {
        margin: 0;
    }
}

/* Основной контент с отступами */
main {
    padding: 0 10px; /* Добавляем боковые отступы */
    position: relative;
}

/* Герой-секция с отступами */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 40px 0 100px;
    position: relative;
}

.hero-content {
    flex: 1;
    padding-right: 20px; /* Добавляем отступ справа */
}

/* Каталог с отступами */
.catalog {
    padding: 60px 10px 100px; /* Добавляем боковые отступы */
}

/* Карточки товаров с отступами */
.product-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
    position: relative;
    margin: 5px; /* Добавляем внешние отступы */
}

/* Особенно для страницы товара */
.product-detail-page {
    padding: 40px 15px 80px; /* Увеличиваем боковые отступы */
}

.product-info-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px 35px; /* Увеличиваем боковые отступы */
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(20px);
    margin-bottom: 30px;
}

/* Для страниц авторизации */
.auth-page .container {
    padding: 0 30px; /* Меньше отступы для auth страниц */
}

.auth-center-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 50px 40px; /* Увеличиваем боковые отступы */
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 90px rgba(124, 58, 237, 0.15);
    backdrop-filter: blur(20px);
    width: 100%;
    max-width: 480px;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
    margin: 0 auto;
}

/* Для профиля */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 25px; /* Увеличиваем боковые отступы */
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 25px 30px; /* Увеличиваем боковые отступы */
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

/* Футер с отступами */
.footer {
    margin-top: 80px;
    padding: 40px 10px; /* Добавляем боковые отступы */
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 30px;
    padding: 0 10px; /* Добавляем отступы */
}

/* Стили для партнёрской программы */
.referral-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #10b981, #3b82f6);
    color: white;
    padding: 20px 25px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.3);
    z-index: 1000;
    animation: slideInUp 0.5s ease-out;
    max-width: 350px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.balance-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.15));
    color: #f59e0b;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(245, 158, 11, 0.3);
    margin-left: 10px;
}

.balance-badge i {
    animation: coin-spin 3s linear infinite;
}

@keyframes coin-spin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}