/* ============================================
   BASE — базовые стили страницы
   ============================================ */

body {
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: var(--lh-normal);
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
    position: relative;
}

/* Фон — фиксированный слой: красные свечения + полоса градиента
   position: fixed — работает на мобильных (iOS, Android) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        /* Красные свечения сверху и снизу */
        radial-gradient(ellipse at top,    rgba(139, 0, 0, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at bottom, rgba(139, 0, 0, 0.08) 0%, transparent 60%),
        /* Полоса: чёрный → фон → чёрный */
        linear-gradient(
            90deg,
            #000000 0%,
            #0a0808 10%,
            var(--color-bg) 30%,
            var(--color-bg) 70%,
            #0a0808 90%,
            #000000 100%
        );
    z-index: -1;
    pointer-events: none;
}

/* Кастомный скроллбар */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb {
    background: var(--color-border-dim);
    border-radius: var(--radius-sm);
    transition: background var(--duration-normal);
}
::-webkit-scrollbar-thumb:hover { background: var(--color-accent); }

::selection {
    background: var(--color-accent);
    color: var(--color-text-white);
}

/* ---------- СЕКЦИИ ---------- */
.section {
    padding: var(--section-padding-y) var(--section-padding-x);
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    background: transparent;
    z-index: 20;                  /* ← выше, чем ::after (10) */
}

.section__title {
    font-family: var(--font-sans);
    font-size: var(--fs-h2);
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--color-text-white);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    font-weight: bold;
    position: relative;
}

.section__title::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: var(--color-accent);
    margin: var(--space-sm) auto 0;
    transition: width var(--duration-slow) var(--ease-smooth);
}

.section:hover .section__title::after {
    width: 120px;
}

/* ---------- ССЫЛКИ ---------- */
.link {
    color: var(--color-accent-hot);
    transition: color var(--duration-normal);
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
}
.link:hover {
    color: var(--color-text-white);
    border-bottom-color: var(--color-accent-hot);
}

/* ---------- УВЕДОМЛЕНИЯ ---------- */
.notification {
    position: fixed;
    top: var(--space-md);
    right: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-accent);
    color: var(--color-text-white);
    border-radius: var(--radius-sm);
    z-index: var(--z-notif);
    box-shadow: var(--shadow-md);
    animation: slideInRight var(--duration-normal) var(--ease-smooth);
    font-size: var(--fs-small);
    letter-spacing: var(--ls-tight);
    max-width: 320px;
}

@keyframes slideInRight {
    from { transform: translateX(400px); opacity: 0; }
    to   { transform: translateX(0);     opacity: 1; }
}

/* ---------- ПЛАВАЮЩАЯ КНОПКА ---------- */
.tg-float {
    position: fixed;
    bottom: var(--space-md);
    right: var(--space-md);
    width: 56px;
    height: 56px;
    background: var(--color-accent);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-white);
    box-shadow: var(--shadow-glow);
    z-index: var(--z-float);
    transition: transform var(--duration-normal) var(--ease-smooth),
                background var(--duration-normal);
    animation: floatPulse 3s infinite;
}

.tg-float:hover {
    background: var(--color-accent-hot);
    transform: scale(1.1) translateY(-3px);
}

@keyframes floatPulse {
    0%, 100% { box-shadow: 0 10px 30px var(--color-accent-glow); }
    50%      { box-shadow: 0 10px 40px rgba(255, 68, 68, 0.6); }
}

/* ---------- УТИЛИТЫ ---------- */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent-hot); }
.text-dim    { color: var(--color-text-dim); }
.hidden { display: none !important; }