:root {
    --bg-color: #050505;
    --text-main: #ffffff;
    --text-dim: #888;
    --accent: #00ff88;
    --card-bg: #101010;
    --card-border: rgba(255, 255, 255, 0.08);
    --hover-bg: #181818;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

body {
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    text-transform: lowercase;
    overflow: hidden;
    height: 100vh;
}

/* ФОН */
body::before {
    content: "";
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2;
    background-image:
        linear-gradient(rgba(205, 205, 205, 0.065) 1px, transparent 1px),
        linear-gradient(90deg, rgba(205, 205, 205, 0.065) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
    mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
    animation: fog-move 10s infinite alternate ease-in-out;
}
@keyframes fog-move {
    0% { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
    50% { -webkit-mask-size: 120% 120%; mask-size: 120% 120%; }
    100% { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
}

/* НАВИГАЦИЯ */
.navbar {
    position: fixed; top: 0; width: 100%; padding: 30px 0;
    display: flex; justify-content: center; z-index: 100;
}
.nav-links {
    background: rgba(20, 20, 20, 0.5);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    padding: 5px; border-radius: 50px;
    display: flex; gap: 5px; border: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-links a {
    color: var(--text-dim); text-decoration: none;
    padding: 8px 24px; border-radius: 25px;
    transition: all 0.3s ease; font-size: 14px; font-weight: 500;
}
.nav-links a.active { background-color: rgba(255, 255, 255, 0.1); color: #fff; }
.nav-links a:hover { background-color: rgba(255, 255, 255, 0.05); color: #fff; }

/* VIEWS */
.view {
    height: 100vh; overflow-y: auto;
    scroll-snap-type: y mandatory; scroll-behavior: smooth;
    transition: opacity 0.2s ease-in-out;
}
#view-tools, #view-info { display: none; opacity: 0; }

/* SECTIONS */
.snap-section {
    width: 100%; height: 100dvh;
    scroll-snap-align: start;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    position: relative;
}

/* HERO */
.welcome-text {
    font-size: clamp(30px, 6vw, 64px);
    font-weight: 700; letter-spacing: -1px; text-align: center; line-height: 1.1;
}
.mobile-break { display: none; }
@media (max-width: 600px) { .mobile-break { display: block; } }

.salad-glow { color: var(--accent); text-shadow: 0 0 20px rgba(0, 255, 136, 0.2); }
.scroll-indicator {
    position: absolute; bottom: 100px; color: #444;
    animation: bounce 2s infinite ease-in-out; transition: opacity 0.3s;
}
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* CONTENT SECTION (HOME) */
.content-section {
    height: auto;
    min-height: 100dvh;
    padding-top: 100px;
    padding-bottom: 50px;
    box-sizing: border-box;
    justify-content: center;
}
.content-wrapper {
    width: 100%; max-width: 600px;
    padding: 0 20px; box-sizing: border-box;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    margin-left: auto; margin-right: auto;
}

/* INFO BLOCK (HOME) */
.info-block { text-align: center; margin-bottom: 40px; width: 100%; }
.description-text { color: #888; line-height: 1.6; font-size: 15px; }
.desktop-break { display: block; }
@media (max-width: 600px) { .desktop-break { display: none; } }

.section-title {
    text-align: center; font-size: 24px;
    margin-bottom: 10px; font-weight: 600; color: #fff;
}
.salad-accent { color: var(--accent); font-weight: 700; }

/* STATUSES BLOCK (HOME) */
.status-block { width: 100%; }
.fetch-info {
    text-align: center; color: #888; font-size: 15px;
    margin-bottom: 20px;
}
.grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 15px; width: 100%;
}
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    height: 75px; border-radius: 12px;
    padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between;
    transition: background-color 0.2s, border-color 0.2s;
    cursor: default;
}
.card:hover,
.info-card:hover { background-color: var(--hover-bg); border-color: rgba(255, 255, 255, 0.15); }
.card-left { display: flex; align-items: center; }
.status-indicator { width: 8px; height: 8px; border-radius: 50%; margin-right: 15px; }
.online { background-color: var(--accent); box-shadow: 0 0 8px var(--accent); }
.offline { background-color: #333; }
.server-details { display: flex; flex-direction: column; justify-content: center; }
.server-name { margin: 0; font-size: 14px; font-weight: 500; color: #eee; }
.uptime-text { font-size: 11px; color: #555; margin-top: 3px; }
.status-text { font-size: 12px; font-weight: 600; color: #444; }

/* TOOLS SECTION */
.tools-section {
    height: 100vh; display: flex; flex-direction: column;
    justify-content: center; align-items: center;
}
.construction-msg { font-size: 24px; font-weight: 600; text-align: center; }

/* СТИЛИ INFO PAGE */
.info-page-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 50px;
    box-sizing: border-box;
}
.info-container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 50px; /* Расстояние между блоками contacts и information */
}
.info-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Расстояние между плашками */
}
.info-group .section-title {
    margin-bottom: 0; /* - лишний отступ у заголовка */
}
.info-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s, border-color 0.2s; /* transition */
}
.info-label {
    color: var(--text-dim);
    font-size: 14px;
}
.info-value {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
}
.info-value.link {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}
.info-value.link:hover {
    opacity: 0.8;
}

/* МОБИЛЬНАЯ АДАПТАЦИЯ */
@media (max-width: 600px) {
    /* HOME */
    .content-section { padding-top: 80px; }
    .content-wrapper { justify-content: flex-start; padding-bottom: 20px; }
    .info-block { margin-bottom: 20px; }
    .status-block { margin-bottom: 10px; }
    .fetch-info { margin-bottom: 15px; font-size: 13px; }
    .card { height: 60px; }
    .status-indicator { margin-right: 10px; }
    .section-title { font-size: 20px; margin-bottom: 5px; }
    .description-text { font-size: 13px; }
    .grid { gap: 10px; }

    /* INFO */
    .info-container { gap: 40px; }
    .info-group .section-title { font-size: 20px; }
    .info-card { padding: 15px; }
    .info-label, .info-value { font-size: 13px; }
}
