@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Variable.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Italic-Variable.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --black-1: #0d0d0d;
  --lime-1: #ceff8b;
  --lime-hover: #9cca5d;
  --magenta-1: #d26def;
  --blue-glow: #2850be;
  --text-secondary: #cfcfcf;
  --text-muted: #9a9a9a;
  --hairline-1: #2b2b2b;
  --card-border: #2d2a63;
  --surface-glass-1: #151515;
  --surface-glass-3: #191919;
  --shape-bevel: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--black-1); }
body {
  color: #fff;
  font: 400 16px/1.5 'Inter', sans-serif;
  overflow-x: hidden;
}
img { display: block; }
a { color: var(--lime-1); text-decoration: none; transition: color .2s ease-in-out; }
a:hover { color: var(--lime-hover); }
::selection { background: var(--lime-1); color: #000; }

/* --- Кнопки --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 16px 32px;
  font: 500 16px/1 'Inter', sans-serif;
  cursor: pointer;
  transition: background-color .2s ease-in-out, color .2s ease-in-out, border-color .2s ease-in-out;
}
.btn:active { opacity: .9; }
.btn--primary { background: var(--lime-1); color: #000; }
.btn--primary:hover { background: var(--lime-hover); color: #000; }
.btn--outline { background: transparent; color: var(--lime-1); border-color: var(--lime-1); }
.btn--outline:hover { color: #91b75d; border-color: #91b75d; }
.btn--ghost { background: rgba(0,0,0,.2); color: #fff; border-color: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--sm { padding: 11px 22px; font-size: 14px; }
.btn--bevel { border-radius: 0; clip-path: var(--shape-bevel); }

/* --- Форма --- */
.field { display: grid; gap: 8px; }
.field__label {
  font: 500 13px/1 'Inter', sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field__input {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface-glass-1);
  border: 1px solid var(--hairline-1);
  border-radius: 999px;
  color: #fff;
  font: 400 16px/1.2 'Inter', sans-serif;
  transition: border-color .2s ease-in-out;
}
.field__input::placeholder { color: #6f6f6f; }
.field__input:focus { outline: none; border-color: var(--lime-1); }
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font: 400 14px/1.4 'Inter', sans-serif;
  color: var(--text-secondary);
  cursor: pointer;
}
.consent input { accent-color: var(--lime-1); width: 18px; height: 18px; margin: 0; flex: none; }

/* --- Модальное окно --- */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(3,0,47,.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal__box {
  width: min(100%, 520px);
  max-height: 90vh;
  overflow: auto;
  background: #131313;
  border: 1px solid var(--card-border);
  border-radius: 15px;
  padding: clamp(24px, 3vw, 40px);
  display: grid;
  gap: 20px;
}

/* --- Появление секций при скролле --- */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 1s cubic-bezier(.19,1,.22,1), transform 1s cubic-bezier(.19,1,.22,1);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
