@font-face {
  font-family: "Roboto Condensed Local";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/roboto-condensed-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Roboto Condensed Local";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/roboto-condensed-latin.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-bg: #080b0a;
  --color-bg-deep: #050706;
  --color-surface: #0d1512;
  --color-surface-2: #111b17;
  --color-surface-3: #17231e;
  --color-text: #f0eee8;
  --color-text-soft: #c4c4bb;
  --color-text-muted: #858b84;
  --color-accent: #ba7958;
  --color-accent-bright: #d39771;
  --color-line: rgba(228, 224, 211, 0.16);
  --color-line-strong: rgba(228, 224, 211, 0.29);
  --color-success: #9eb89d;

  --font-display: "Roboto Condensed Local", "Arial Narrow", "Aptos Narrow", sans-serif;
  --font-body: "Segoe UI", Inter, Arial, sans-serif;

  --container: 1760px;
  --gutter: clamp(20px, 3.3vw, 64px);
  --header-height: 84px;

  --space-2xs: 6px;
  --space-xs: 10px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 36px;
  --space-xl: 56px;
  --space-2xl: 88px;
  --space-3xl: 128px;

  --text-xs: 0.72rem;
  --text-sm: 0.86rem;
  --text-base: 1rem;
  --text-lg: clamp(1.05rem, 1.3vw, 1.28rem);
  --text-xl: clamp(1.4rem, 2vw, 2rem);
  --text-2xl: clamp(2.2rem, 4.8vw, 5.8rem);
  --text-hero: clamp(3.5rem, 7.6vw, 9.6rem);

  --transition-fast: 160ms ease;
  --transition-base: 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--color-bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button {
  border: 0;
}

h1,
h2,
h3,
p {
  margin-block-start: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--color-accent-bright);
  outline-offset: 4px;
}

::selection {
  background: var(--color-accent);
  color: var(--color-bg-deep);
}

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

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

.skip-link {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--color-text);
  color: var(--color-bg);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
