/* Общий слой [ OTH-S ]: сброс, дизайн-токены, каркас страницы.
   Подключается и хабом, и каждым инструментом в assets/tools/. */

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

:root {
    color-scheme: dark;
    --bg: #111111;
    --card: #1a1a1a;
    --card-hover: #1f1f1f;
    --card-secondary: #161616;
    --border: #2a2a2a;
    --border-strong: #3d3d3d;
    --text: #e5e5e5;
    --text-bright: #f0f0f0;
    --text-dim: #555555;
    --text-mute: #6b6b6b;
    --accent: #3e9e6b;
    --primary-bg: linear-gradient(180deg, #1c201e, #1a1a1a);
    --primary-bg-hover: linear-gradient(180deg, #232824, #202020);
    --icon-bg: #252525;
    --logo-1: #cfcecd;
    --logo-2: #4b4646;
    --logo-3: #f1ecec;
    --logo-4: #cfcecd;
    --logo-5: #211e1e;

    /* общие метрики интерфейса */
    --r-lg: clamp(10px, 2.5vw, 14px);
    --r-sm: clamp(8px, 2vw, 12px);
    --r-xs: clamp(5px, 1.4vw, 8px);
    --gap: clamp(8px, 1.1vw, 10px);
    --grid-gap: clamp(12px, 1.7vw, 18px);
    --lift: 0 10px 20px -16px rgba(0, 0, 0, 0.7);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* картинки нельзя перетащить, выделить или «искать в Google» из контекстного меню */
img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

#snow {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.shell {
    position: relative;
    z-index: 1;
}
