:root {
    --bg: #050505;
    --text: #ffffff;
    --secondary: #666666;
    --border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(15, 15, 15, 0.8);
    --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Фон */
.ambient-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    background-image: 
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 100px 100px;
}

.ambient-glow {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 20%, #151515 0%, transparent 70%);
}

section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-snap-align: start;
    padding: 0 24px;
    position: relative;
}

/* Topbar */
header {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 60px);
    max-width: 1100px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 100px;
    z-index: 1000;
}

.logo {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    line-height: 1;
}

.btn-started {
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--border);
    height: 38px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 100px;
    transition: 0.2s ease;
}

.btn-started:hover { background: #fff; color: #000; }

/* Логика центрирования заголовка */
.hero-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 60px; /* Отступ под хедер */
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    text-align: center;
    background: linear-gradient(180deg, #fff 40%, #555 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 10px;
}

.hero-sub {
    font-family: var(--mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--secondary);
    display: flex;
    gap: 15px;
}

/* Блоки внизу первой секции */
.hero-bottom {
    width: 100%;
    max-width: 1100px;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
    margin-bottom: 30px;
}

.feature-card {
    padding: 24px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.01);
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}
.feature-card:hover { border-color: #fff; transform: translateY(-5px); }
.feature-title { font-family: var(--mono); font-size: 0.8rem; font-weight: 700; margin-bottom: 10px; text-transform: uppercase; }
.feature-desc { font-size: 0.75rem; color: var(--secondary); }

/* Стрелка */
.scroll-arrow {
    cursor: pointer;
    animation: bounce 2s infinite;
}
.scroll-arrow svg { width: 50px; height: 50px; stroke: var(--secondary); transition: 0.3s; }
.scroll-arrow:hover svg { stroke: #fff; }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-12px); }
    60% { transform: translateY(-6px); }
}

/* Новости */
#news-section {
    background: rgba(0,0,0,0.3);
    justify-content: flex-start;
    padding-top: 140px;
}

.news-container {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.news-item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.news-image {
    flex: 0 0 340px;
    aspect-ratio: 16 / 9;
    background: #111;
    border: 1px solid var(--border);
}

/* Панель категорий */
.category-bar {
    width: 100%;
    max-width: 1100px;
    height: 50px; /* Невысокий блок */
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 20px; /* Отступ до сетки блоков */
}

.category-label {
    padding: 0 25px;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-right: 1px solid var(--border);
    height: 100%;
    display: flex;
    align-items: center;
}

.category-links {
    display: flex;
    height: 100%;
    flex: 1;
}

.category-links a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
    transition: 0.3s;
    border-right: 1px solid var(--border); /* Вертикальные черты */
}

.category-links a:last-child {
    border-right: none; /* Убираем черту у последней кнопки */
}

.category-links a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* Небольшая правка hero-bottom чтобы всё влезло */
.hero-bottom {
    width: 100%;
    max-width: 1100px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.news-image img { width: 100%; height: 100%; object-fit: cover; }
.news-content { flex: 1; }
.news-label { font-family: var(--mono); color: var(--secondary); font-size: 0.7rem; margin-bottom: 8px; }
.news-h { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; }
.news-p { font-size: 0.95rem; color: var(--secondary); line-height: 1.6; }