/* =============================================================================
   Benarit — main.css
   @font-face · Reset · Типографика · Секции · Скроллбар
   Подключать ВТОРЫМ, после tokens.css
   ============================================================================= */

/* — @FONT-FACE ------------------------------------------------------------- */
@font-face {
  font-family: "GraphikLCG";
  src: url("../fonts/GraphikLCG-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GraphikLCG";
  src: url("../fonts/GraphikLCG-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GraphikLCG";
  src: url("../fonts/GraphikLCG-Semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* — RESET ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "GraphikLCG", Arial, sans-serif;
  font-size: var(--font-base);
  font-weight: 400;
  line-height: var(--lh-para);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 500; color: var(--color-white); }
p  { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a  { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; padding: 0; }
input, textarea, select { font: inherit; }
fieldset { border: none; margin: 0; padding: 0; }

/* — ТИПОГРАФИКА ------------------------------------------------------------ */
h1, .h1 {
  font-size: var(--font-h1);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-dense);
}
h2, .h2 {
  font-size: var(--font-h2);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-dense);
}
h3, .h3 {
  font-size: var(--font-h3);
  font-weight: 500;
  line-height: var(--lh-text);
}
h4, .h4 {
  font-size: var(--font-h4);
  font-weight: 500;
  line-height: var(--lh-card);
}

.text-xs    { font-size: var(--font-xs); }
.text-small { font-size: var(--font-small); }
.text-base  { font-size: var(--font-base); }
.text-ui    { font-size: var(--font-ui); font-weight: 500; }

/* Акцентные цифры */
.num-accent {
  font-size: var(--font-accent);
  font-weight: 500;
  color: var(--color-white);
  line-height: 1;
  letter-spacing: var(--ls-dense);
}

/* Метки-теги (мелкие uppercase) */
.label {
  font-size: var(--font-xs);
  font-weight: 500;
  letter-spacing: var(--ls-accent);
  text-transform: uppercase;
  line-height: 1;
}

/* — СЕКЦИИ — ВЕРТИКАЛЬНЫЕ ОТСТУПЫ ------------------------------------------ */
.section     { padding-block: 100px; }
.section--sm { padding-block: 64px; }
.section--lg { padding-block: 140px; }

/* Тёмный фон для чередующихся секций */
.section--dark { background: var(--color-dark); }

/* — СКРОЛЛБАР -------------------------------------------------------------- */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: rgba(68, 56, 235, 0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-accent); }

/* — ВЫДЕЛЕНИЕ ТЕКСТА ------------------------------------------------------- */
::selection {
  background: rgba(68, 56, 235, 0.35);
  color: var(--color-white);
}
