﻿/* ==========================================================================
   DESIGN SYSTEM вЂ” РњР¤Р¦ В«РњРѕРё РґРѕРєСѓРјРµРЅС‚С‹В»
   tokens.css вЂ” РµРґРёРЅСЃС‚РІРµРЅРЅС‹Р№ РёСЃС‚РѕС‡РЅРёРє Р·РЅР°С‡РµРЅРёР№.
   РќРёРєР°РєРёРµ С†РІРµС‚Р°, С€СЂРёС„С‚С‹, РѕС‚СЃС‚СѓРїС‹ Рё СЂР°РґРёСѓСЃС‹ РЅРµ Р·Р°РґР°СЋС‚СЃСЏ РІ РєРѕРјРїРѕРЅРµРЅС‚Р°С… РЅР°РїСЂСЏРјСѓСЋ.
   ========================================================================== */

/* ---------- РЁСЂРёС„С‚С‹ ------------------------------------------------------- */

/* PT Sans вЂ” СЃРІРѕР±РѕРґРЅС‹Р№ (OFL), С„Р°Р№Р»С‹ Р»РµР¶Р°С‚ РІ ../fonts/ */
@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/pt-sans-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/pt-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/pt-sans-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/pt-sans-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

/* Open Sans вЂ” СЃРІРѕР±РѕРґРЅС‹Р№ (OFL), СЂРµРєРѕРјРµРЅРґРѕРІР°РЅ Р±СЂРµРЅРґР±СѓРєРѕРј РґР»СЏ СЌРєСЂР°РЅРѕРІ.
   РСЃРїРѕР»СЊР·СѓРµС‚СЃСЏ С‚РѕР»СЊРєРѕ РµСЃР»Рё РІРµСЃСЊ СЌРєСЂР°РЅ РїРµСЂРµРІРµРґС‘РЅ РЅР° РЅРµРіРѕ (СЃРј. DESIGN.md В§5.1). */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/open-sans-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/open-sans-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/open-sans-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/open-sans-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

/* Circe вЂ” РџР РћРџР РР•РўРђР РќР«Р™ С€СЂРёС„С‚. Р¤Р°Р№Р»С‹ РЅРµ РІС…РѕРґСЏС‚ РІ РїРѕСЃС‚Р°РІРєСѓ.
   1) РџРѕР»СѓС‡РёС‚Рµ circe-bold.woff2 Рё circe-extrabold.woff2 РІ С„РёСЂРјРµРЅРЅРѕР№ Р±РёР±Р»РёРѕС‚РµРєРµ.
   2) РџРѕР»РѕР¶РёС‚Рµ РёС… РІ ../fonts/.
   3) Р”РѕР±Р°РІСЊС‚Рµ РІ src РїРѕСЃР»Рµ local(...) СЃС‚СЂРѕРєСѓ:
      url("../fonts/circe-bold.woff2") format("woff2")
   РџРѕРєР° С„Р°Р№Р»РѕРІ РЅРµС‚ вЂ” РёСЃРїРѕР»СЊР·СѓРµС‚СЃСЏ PT Sans 700, РІС‘СЂСЃС‚РєР° РЅРµ Р»РѕРјР°РµС‚СЃСЏ. */
@font-face {
  font-family: "Circe";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("Circe Bold"), local("Circe-Bold");
}
@font-face {
  font-family: "Circe";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: local("Circe ExtraBold"), local("Circe-ExtraBold");
}

/* ---------- РўРѕРєРµРЅС‹ ------------------------------------------------------- */

:root {
  color-scheme: light;

  /* Р¤РёСЂРјРµРЅРЅС‹Рµ Рё РїСЂРѕРёР·РІРѕРґРЅС‹Рµ С†РІРµС‚Р° */
  --color-brand: #e04e39;
  --color-brand-tint: #fbeae6;
  --color-action: #b23a2a;
  --color-action-hover: #992f22;
  --color-action-press: #7f271c;
  --color-on-action: #ffffff;

  --color-brown: #623b2a;
  --color-brown-deep: #4d3e33;

  --color-bg: #faf6f2;
  --color-header: #f6f1ec;
  --color-surface: #ffffff;
  --color-beige: #f3eae2;
  --color-beige-deep: #e7d3c2;
  --color-beige-line: #c59368;
  --color-line: #e7ddd5;
  --color-line-soft: #f0e8e1;

  /* РўРµРєСЃС‚ */
  --color-text: #3d2e27;
  --color-text-secondary: #6e5a50;
  --color-text-muted: #9a8b82;

  /* РЎРµРјР°РЅС‚РёРєР° */
  --color-info: #0d4cd3;
  --color-info-tint: #e8eefb;
  --color-success: #67a71d;
  --color-success-tint: #edf5e3;
  --color-warning: #b26a00;
  --color-warning-tint: #fff4e0;
  --color-danger: #a61b12;
  --color-danger-tint: #fcebe8;

  /* РЎС‚Р°С‚СѓСЃС‹ (С‚РµРєСЃС‚ РЅР° С‚РѕРЅР°Р»СЊРЅРѕРј С„РѕРЅРµ) */
  --color-success-text: #4c7a15;
  --color-warning-text: #8a5200;

  /* РЁСЂРёС„С‚С‹ */
  --font-display: "Circe", "PT Sans", "Segoe UI", sans-serif;
  --font-body: "PT Sans", "Open Sans", "Segoe UI", Arial, sans-serif;
  --font-screen: "Open Sans", "PT Sans", "Segoe UI", Arial, sans-serif;

  /* РљРµРіР»СЊ */
  --text-xs: 13px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 21px;
  --text-2xl: 26px;
  --text-h1: 34px;
  --text-display: clamp(34px, 3.2vw, 42px);

  /* РћС‚СЃС‚СѓРїС‹: С€Р°Рі 4, СЂР°Р±РѕС‡РёР№ 8 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Р Р°РґРёСѓСЃС‹ */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* РўРµРЅРё вЂ” С‚С‘РїР»С‹Рµ, Р±РµР· С‡С‘СЂРЅРѕРіРѕ */
  --shadow-card: 0 10px 30px rgba(81, 57, 46, 0.06);
  --shadow-hover: 0 16px 40px rgba(81, 57, 46, 0.1);
  --shadow-modal: 0 24px 64px rgba(61, 46, 39, 0.24);
  --shadow-sticky: 0 1px 0 var(--color-line), 0 8px 24px rgba(81, 57, 46, 0.06);

  /* РЎРµС‚РєР° */
  --container: 1200px;
  --gutter: 16px;
  --header-top: 40px;
  --header-main: 72px;
  --sidebar-w: 248px;

  /* РџР»РѕС‚РЅРѕСЃС‚СЊ */
  --row-comfort: 52px;
  --row-compact: 40px;

  /* Р”РІРёР¶РµРЅРёРµ */
  --dur-fast: 120ms;
  --dur: 180ms;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);

  /* Р¤РѕРєСѓСЃ */
  --focus-ring: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-action);

  /* РЎР»РѕРё */
  --z-header: 40;
  --z-drawer: 80;
  --z-modal: 90;
  --z-toast: 100;
}
