/* ============================================
           КАСТОМНЫЕ СТИЛИ ПРОЕКТА
           ============================================ */

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Фиксированный фон с клеткой - светлая тема */
.fixed-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    background-image:
            linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
            linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -2;
    pointer-events: none;
}

.fixed-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
            linear-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1px),
            linear-gradient(90deg, rgba(0, 0, 0, 0.08) 1px, transparent 1px);
    background-size: 100px 100px;
}

/* Тёмная тема фона */
.dark .fixed-grid {
    background-color: #0a0a0a;
    background-image:
            linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.dark .fixed-grid::before {
    background-image:
            linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
}

.thin-border {
    border-color: rgba(0,0,0,0.15);
}

.dark .thin-border {
    border-color: rgba(255,255,255,0.1);
}

.hover-line::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: black;
    transition: width .3s;
}

.dark .hover-line::after {
    background: white;
}

.hover-line:hover::after {
    width: 100%;
}

/* Карточки контента */
.content-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.dark .content-card {
    background: rgba(20, 20, 20, 0.92);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* Анимация переключения темы */
.theme-transition {
    transition: background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

/* Кастомный фокус для доступности */
button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.dark button:focus-visible,
.dark input:focus-visible,
.dark a:focus-visible {
    outline: 2px solid #fff;
}