/* ==========================================================================
   Tegridy — стандарт категории, исполненный всерьёз.
   Планка: Proton VPN / Mullvad по сдержанности, Telegram / Apple по воздуху.
   Светлый нейтральный грунт, ОДИН акцент (фиолетовый бренда, тот же, что
   на монете). Без градиентных заливок, стекла и свечения.
   ========================================================================== */

@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/unbounded-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/unbounded-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/golos-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/golos-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/golos-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/golos-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --font-display: 'Unbounded', 'Golos Text', system-ui, sans-serif;
  --font: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Крупно и спокойно: планка Apple по читаемости */
  --t-display: clamp(2.05rem, 1.1rem + 4.6vw, 5rem);
  --t-h2: clamp(1.9rem, 1.35rem + 2.2vw, 2.9rem);
  --t-h3: clamp(1.2rem, 1.05rem + 0.65vw, 1.55rem);
  --t-lg: 1.25rem;
  --t-base: 1.0625rem;
  --t-sm: 0.9375rem;
  --t-xs: 0.8125rem;

  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --section-y: clamp(3.5rem, 2rem + 6vw, 7rem);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  --wrap: 1200px;
  --wrap-narrow: 720px;
  --gutter: clamp(1.25rem, 0.75rem + 2vw, 2rem);
  --gutter-wide: clamp(1.25rem, 0.5rem + 2.4vw, 3rem);

  --z-sticky: 50;
  --z-modal: 90;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-1: 0.15s;
  --dur-2: 0.3s;
}

/* --- Светлая тема: основная ------------------------------------------------ */
:root,
:root[data-theme='light'] {
  color-scheme: light;

  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --surface: #ffffff;

  --line: #e6e6ea;
  --line-strong: #d2d2d9;

  --ink: #17171c;
  --ink-2: #55555f;
  --ink-3: #6e6e79;

  --accent: #5b38e8;
  --accent-hover: #4a2ad0;
  --accent-soft: #f1edfe;
  --on-accent: #ffffff;

  --ok: #17794a;
  --warn: #8a5e05;
  --bad: #b3261e;

  --shadow-1: 0 1px 2px rgba(23, 23, 28, 0.06);
  --shadow-2: 0 4px 16px -4px rgba(23, 23, 28, 0.1);
}

/* --- Тёмная: по переключателю ---------------------------------------------- */
:root[data-theme='dark'] {
  color-scheme: dark;

  --bg: #111115;
  --bg-soft: #17171d;
  --surface: #1b1b22;

  --line: #2a2a33;
  --line-strong: #3a3a45;

  --ink: #f2f2f5;
  --ink-2: #b6b6c2;
  --ink-3: #9a9aa6;

  --accent: #8f6dff;
  --accent-hover: #a58bff;
  --accent-soft: #211c38;
  --on-accent: #12101c;

  --ok: #4cc38a;
  --warn: #e0a72e;
  --bad: #ef6a5f;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-2: 0 6px 20px -6px rgba(0, 0, 0, 0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;

    --bg: #111115;
    --bg-soft: #17171d;
    --surface: #1b1b22;

    --line: #2a2a33;
    --line-strong: #3a3a45;

    --ink: #f2f2f5;
    --ink-2: #b6b6c2;
    --ink-3: #9a9aa6;

    --accent: #8f6dff;
    --accent-hover: #a58bff;
    --accent-soft: #211c38;
    --on-accent: #12101c;

    --ok: #4cc38a;
    --warn: #e0a72e;
    --bad: #ef6a5f;

    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-2: 0 6px 20px -6px rgba(0, 0, 0, 0.6);
  }
}
