/* ============================================================
   Базовый слой: сброс, токены, общие примитивы.
   Значения взяты из макета Figma «RUG-web», страница UA.
   ============================================================ */

:root {
  /* --- цвет ------------------------------------------------- */
  --bg: #000000;
  --white: #ffffff;
  --accent: #f30000;          /* красный: акценты, ховеры, ошибки */
  --ok: #57c777;              /* успешная отправка — цвет взят с rug.international */

  --grey-05: #f0f0f0;         /* крупные заголовки на тёмном */
  --grey-15: #d9d9d9;
  --grey-25: #c6c6c6;         /* текст кнопок */
  --grey-35: #adadad;         /* подзаголовки */
  --grey-50: #9e9e9e;
  --grey-70: #464646;         /* неактивные номера, служебное */
  --line: #2f2f2f;            /* декоративная сетка на фоне */

  --white-50: rgba(255, 255, 255, .5);
  --white-30: rgba(255, 255, 255, .3);

  /* --- типографика ------------------------------------------ */
  --font-display: 'Khartia', system-ui, sans-serif;
  --font-display-cond: 'Khartia Cond', 'Khartia', system-ui, sans-serif;
  --font-display-comp: 'Khartia Comp', 'Khartia', system-ui, sans-serif;
  --font-text: 'Inter', system-ui, -apple-system, sans-serif;

  /* Макет нарисован на 1440. Крупные кегли масштабируются вместе
     с шириной окна, поэтому пропорции держатся на любом экране. */
  --design-width: 1440;

  /* --- сетка ------------------------------------------------- */
  --page-max: 1440px;
  --gutter: 144px;            /* поля контента на десктопе */
  --gutter-mob: 20px;

  /* --- прочее ------------------------------------------------ */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .35s;
}

@media (max-width: 900px) {
  :root {
    --gutter: var(--gutter-mob);
  }
}

/* --- сброс -------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, blockquote {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 0;
  appearance: none;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Видимый фокус для клавиатуры — но не мешает мыши */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- утилиты ------------------------------------------------ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
