/* ITMO DS foundations. Sources: https://ds.itmo.ru/{fonts,tokens,colors,grid}.
   Original webfonts are the files linked by the official DS stylesheet.
   Full provenance and checksums: /brand/fonts/SOURCES.md. */
@font-face {
  font-family: 'ALS Gorizont';
  src: url('/brand/fonts/ALSGorizont-RegularExpanded.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'ALS Gorizont';
  src: url('/brand/fonts/ALSGorizont-MediumExpanded.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'ALS Gorizont';
  src: url('/brand/fonts/ALSGorizont-BoldExpanded.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Golos';
  src: url('/brand/fonts/Golos_Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Golos';
  src: url('/brand/fonts/GolosText-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Golos';
  src: url('/brand/fonts/GolosText-DemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Golos';
  src: url('/brand/fonts/Golos_Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ds-font-body: 'Golos', Arial, sans-serif;
  --ds-font-heading: 'ALS Gorizont', 'Golos', Arial, sans-serif;

  --ds-primary-blue-default: #0b68fe;
  --ds-primary-blue-hover: #428aff;
  --ds-primary-blue-active: #2e61b4;
  --ds-primary-black-default: #000;
  --ds-primary-black-hover: #43444e;
  --ds-primary-black-active: #2e314a;
  --ds-primary-red-default: #f93f37;
  --ds-primary-red-hover: #ff5f58;
  --ds-primary-red-active: #d2342d;
  --ds-primary-cyan-default: #3cadc9;
  --ds-primary-cyan-hover: #1e8ca8;
  --ds-primary-cyan-active: #2c7c90;
  --ds-primary-orange-default: #f68300;
  --ds-primary-orange-hover: #ffa135;
  --ds-primary-orange-active: #d2620c;
  --ds-primary-yellow-default: #eddc00;
  --ds-primary-yellow-hover: #e3d200;
  --ds-primary-yellow-active: #ccb800;
  --ds-primary-green-default: #8fb904;
  --ds-primary-green-hover: #a4d404;
  --ds-primary-green-active: #7c9f03;
  --ds-primary-pink-default: #f84efa;
  --ds-primary-pink-hover: #f16ff2;
  --ds-primary-pink-active: #cc25cd;
  --ds-primary-violet-default: #7f00ff;
  --ds-primary-violet-hover: #9635f6;
  --ds-primary-violet-active: #5d00bb;
  --ds-primary: var(--ds-primary-blue-default);
  --ds-primary-hover: var(--ds-primary-blue-hover);
  --ds-primary-active: var(--ds-primary-blue-active);

  --ds-link: #254ddd;
  --ds-link-hover: #4065ee;
  --ds-link-active: #163bbf;
  --ds-link-visited: #254ddd;
  --ds-text: #000;
  --ds-text-secondary: #37394b;
  --ds-text-body: rgba(27, 31, 59, .8);
  --ds-text-muted: rgba(27, 31, 59, .6);
  --ds-text-disabled: rgba(27, 31, 59, .4);
  --ds-text-inverse: #fff;
  --ds-surface: #fff;
  --ds-surface-subtle: #f6f6f6;
  --ds-surface-muted: #ededed;
  --ds-border: #d7d7d7;
  --ds-border-strong: #b0b0b0;
  --ds-border-subtle: #ededed;
  --ds-border-button: rgba(0, 0, 0, .4);
  --ds-border-button-hover: rgba(67, 68, 78, .4);
  --ds-border-button-active: #000;
  --ds-transparent: rgba(0, 0, 0, .04);
  --ds-transparent-hover: rgba(0, 0, 0, .08);
  --ds-transparent-active: rgba(0, 0, 0, .1);
  --ds-status-positive: #3aa981;
  --ds-status-negative: #dd4c1e;
  --ds-status-warning: #edbb3a;
  --ds-status-info: #526ed3;

  /* Brand illustration colour, never the selected Primary UI colour. */
  --brand-illustration-lime: #d0ff14;

  --ds-height-l: 48px;
  --ds-height-m: 40px;
  --ds-height-s: 32px;
  --ds-height-xs: 24px;
  --ds-height-xxs: 16px;
  --ds-height-xxxs: 12px;
  --ds-radius-0: 0;
  --ds-radius-xs: 4px;
  --ds-radius-s: 8px;
  --ds-radius-m: 16px;
  --ds-radius-l: 24px;
  --ds-radius-xl: 32px;
  --ds-radius-5: 40px;
  --ds-radius-6: 48px;
  --ds-radius-7: 56px;
  --ds-radius-8: 64px;
  --ds-radius-9: 72px;
  --ds-radius-10: 80px;
  --ds-radius-round: 99999999px;
  --ds-border-width-none: 0;
  --ds-border-width-thin: 1px;
  --ds-border-width-bold: 2px;

  --ds-space-0: 0;
  --ds-space-025: 2px;
  --ds-space-05: 4px;
  --ds-margin-075: 6px;
  --ds-space-1: 8px;
  --ds-space-15: 12px;
  --ds-space-2: 16px;
  --ds-space-25: 20px;
  --ds-space-3: 24px;
  --ds-space-35: 28px;
  --ds-space-4: 32px;
  --ds-space-45: 36px;
  --ds-space-5: 40px;
  --ds-space-55: 44px;
  --ds-space-6: 48px;
  --ds-space-65: 52px;
  --ds-space-7: 56px;
  --ds-space-75: 60px;
  --ds-space-8: 64px;
  --ds-space-85: 68px;
  --ds-space-9: 72px;
  --ds-space-95: 76px;
  --ds-space-10: 80px;

  --ds-font-size-12: 12px;
  --ds-font-size-14: 14px;
  --ds-font-size-16: 16px;
  --ds-font-size-18: 18px;
  --ds-font-size-20: 20px;
  --ds-font-size-22: 22px;
  --ds-font-size-24: 24px;
  --ds-font-size-26: 26px;
  --ds-font-size-28: 28px;
  --ds-font-size-30: 30px;
  --ds-font-size-36: 36px;
  --ds-font-size-40: 40px;
  --ds-font-size-44: 44px;
  --ds-font-size-50: 50px;
  --ds-line-height-16: 16px;
  --ds-line-height-20: 20px;
  --ds-line-height-22: 22px;
  --ds-line-height-24: 24px;
  --ds-line-height-26: 26px;
  --ds-line-height-28: 28px;
  --ds-line-height-32: 32px;
  --ds-line-height-36: 36px;
  --ds-line-height-38: 38px;
  --ds-line-height-40: 40px;
  --ds-line-height-46: 46px;
  --ds-line-height-48: 48px;
  --ds-line-height-50: 50px;
  --ds-line-height-56: 56px;
  --ds-line-height-60: 60px;
  --ds-body-size: 16px;
  --ds-body-line-height: 24px;
  --ds-body-weight: 400;
  --ds-h1-size: 30px;
  --ds-h1-line-height: 40px;
  --ds-h1-weight: 700;
  --ds-h2-size: 26px;
  --ds-h2-line-height: 36px;
  --ds-h2-weight: 500;
  --ds-h3-size: 22px;
  --ds-h3-line-height: 32px;
  --ds-h3-weight: 500;
  --ds-heading-letter-spacing: 0;

  --ds-grid-gutter: 24px;
  --ds-grid-padding: 12px;
  --ds-grid-columns: 2;
  --ds-grid-xs-reference-container: 320px;
  --ds-container-width: 100%;
}

@media (min-width: 576px) {
  :root {
    --ds-grid-columns: 12;
    --ds-container-width: 540px;
    --ds-h1-size: 36px;
    --ds-h1-line-height: 46px;
    --ds-h1-weight: 700;
    --ds-h2-size: 28px;
    --ds-h2-line-height: 38px;
    --ds-h2-weight: 500;
    --ds-h3-size: 22px;
    --ds-h3-line-height: 32px;
    --ds-h3-weight: 500;
  }
}
@media (min-width: 768px) {
  :root { --ds-container-width: 720px; }
}
@media (min-width: 992px) {
  :root { --ds-container-width: 960px; }
}
@media (min-width: 1200px) {
  :root {
    --ds-container-width: 1140px;
    --ds-h1-size: 50px;
    --ds-h1-line-height: 60px;
    --ds-h1-weight: 400;
    --ds-h2-size: 40px;
    --ds-h2-line-height: 50px;
    --ds-h2-weight: 400;
    --ds-h3-size: 28px;
    --ds-h3-line-height: 38px;
    --ds-h3-weight: 400;
  }
}
@media (min-width: 1400px) {
  :root { --ds-container-width: 1320px; }
}
