/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/manrope-cyrillic-447c49583b1b.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/manrope-latin-ext-2f7335119075.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/manrope-latin-8c2def024c1b.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;
}

/* cyrillic */
@font-face {
  font-family: 'Tenor Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/tenorsans-cyrillic-92ff6c3b9be4.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin-ext */
@font-face {
  font-family: 'Tenor Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/tenorsans-latin-ext-0b9cc751a6c3.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Tenor Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/tenorsans-latin-f0519cf59735.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;
}

:root {
    --color-page: #f9f6ef;
    --color-surface: #ffffff;
    --color-surface-secondary: #f4efe3;
    --color-text: #202a36;
    --color-text-muted: #4e5662;
    --color-brand: #6b5939;
    --color-link: #365c97;
    --color-primary: #365c97;
    --color-primary-hover: #2c4d81;
    --color-primary-active: #254171;
    --color-on-primary: #ffffff;
    --color-success: #24643e;
    --color-error: #a32629;
    --color-warning: #8c520f;
    --color-divider: #ded5c5;
    --color-control-border: #777a80;
    --color-focus: var(--color-link);
    --color-destructive: #a32629;
    --color-on-destructive: #ffffff;
    --color-chart-revenue: #7b6035;
    --color-chart-profit: #365c97;
    --color-chart-expense: #a32629;
    --color-chart-forecast: #6d4dc0;
    --color-chart-success: #24643e;

    --font-interface: "Manrope", system-ui, sans-serif;
    --font-brand: "Tenor Sans", sans-serif;
    --text-hero: clamp(2rem, 1.55rem + 2vw, 3.25rem);
    --text-h1: 1.75rem;
    --text-h2: 1.375rem;
    --text-h3: 1.125rem;
    --text-body: 1rem;
    --text-interface: .875rem;
    --text-input: .9375rem;
    --text-caption: .8125rem;
    --text-kpi: 1.875rem;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-body: var(--weight-medium);
    --weight-section-heading: 800;
    --weight-label: var(--weight-semibold);
    --weight-action: var(--weight-bold);
    --weight-chart-label: var(--weight-medium);
    --leading-hero: 1.1;
    --leading-heading: 1.25;
    --leading-interface: 1.4;
    --leading-body: 1.5;

    --space-4: .25rem;
    --space-8: .5rem;
    --space-12: .75rem;
    --space-16: 1rem;
    --space-24: 1.5rem;
    --space-32: 2rem;
    --space-48: 3rem;
    --space-64: 4rem;
    --radius-small: .375rem;
    --radius-control: .625rem;
    --radius-card: .875rem;
    --radius-section: 1.125rem;
    --radius-dialog: 1.25rem;
    --radius-badge: 999px;
    --field-gap: 1.25rem;
    --control-padding: 1rem;
    --control-padding-large: 1.25rem;
    --control-height: 2.75rem;
    --control-height-large: 3rem;
    --control-height-compact: 2.25rem;
    --table-row-height: 3rem;
    --layout-max-width: 85rem;
    --layout-gutter: var(--space-16);
    --motion-control: 140ms;
    --icon-family: "Material Symbols Rounded";
    --icon-size-small: 1rem;
    --icon-size-medium: 1.25rem;
    --icon-size-large: 1.5rem;
}

:root:is([data-public-theme="dark"], [data-zerkalo-theme="dark"], [data-theme="dark"]) {
    --color-page: #090806;
    --color-surface: #11100e;
    --color-surface-secondary: #1c1812;
    --color-text: #f4ead6;
    --color-text-muted: #d0c0a2;
    --color-brand: #d0b379;
    --color-link: #e5bd83;
    --color-primary: #c99d63;
    --color-primary-hover: #dfb77e;
    --color-primary-active: #b68a52;
    --color-on-primary: #1b1309;
    --color-success: #87cca0;
    --color-error: #ffa9ad;
    --color-warning: #f5c07f;
    --color-divider: #3b3022;
    --color-control-border: #987e57;
}

@media (min-width: 768px) {
    :root { --layout-gutter: var(--space-24); }
}

@media (min-width: 1024px) {
    :root { --layout-gutter: var(--space-32); }
}

@media (prefers-reduced-motion: reduce) {
    :root { --motion-control: 0ms; }
}
