/* ==========================================================================
   Design tokens — extracted from Figma "Сайт Avatar"
   (node 621-6905 "Дизайн элементы" / node 566-11648 "Главная (обновленный)")
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800&family=Archivo+Expanded:wght@700;800&display=swap');

:root {
  /* ---- Colors ---- */
  --color-bg: #071013;
  --color-surface: #1F272A;
  --color-surface-hover: #394042;
  --color-border: rgba(255, 255, 255, 0.2);
  --color-input-bg: rgba(255, 255, 255, 0.1);
  --color-header-bg: rgba(7, 16, 19, 0.4);

  --color-text: #FFFFFF;
  --color-text-on-accent: #071013;
  --color-text-muted-80: rgba(255, 255, 255, 0.8);
  --color-text-muted-50: rgba(255, 255, 255, 0.5);
  --color-text-muted-30: rgba(255, 255, 255, 0.3);

  --color-accent: #FF7E00;
  --color-accent-hover: #FF9D3C;
  --color-gray: #838789;

  /* ---- Typography ---- */
  --font-heading: 'Archivo Expanded', 'Archivo', sans-serif;
  --font-body: 'Montserrat', sans-serif;

  /* Desktop */
  --fs-h2: 40px;
  --lh-h2: 1em;
  --fs-h3: 32px;
  --lh-h3: 1.1em;
  --fs-h4: 26px;
  --lh-h4: 1.1em;
  --fs-h5: 20px;
  --lh-h5: 1.1em;
  --fs-body-l: 20px;
  --lh-body-l: 1.3em;
  --fs-body-m: 14px;
  --lh-body-m: 1.3em;
  --fs-body-s: 12px;
  --lh-body-s: 1.3em;
  --fs-label-m: 14px;
  --lh-label-m: 1em;
  --fs-label-s: 12px;
  --lh-label-s: 1em;
  --fs-button: 14px;
  --lh-button: 1em;

  /* Tablet */
  --fs-h2-tablet: 32px;
  --fs-h3-tablet: 26px;

  /* Mobile */
  --fs-h2-mobile: 26px;
  --fs-h3-mobile: 20px;
  --fs-h4-mobile: 15px;
  --fs-body-m-mobile: 13px;
  --fs-body-s-mobile: 11px;
  --fs-label-m-mobile: 13px;
  --fs-label-s-mobile: 11px;

  /* ---- Spacing scale ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-15: 60px;

  /* ---- Layout ---- */
  --container-desktop: 1440px;
  --container-tablet: 768px;
  --container-mobile: 360px;
  --gutter-desktop: 60px;
  --gutter-tablet: 24px;
  --gutter-mobile: 16px;

  /* ---- Effects ---- */
  --blur-header: blur(10px);
  --radius-pill: 100px;
}

/* ---- Reset / base ---- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ---- Typography utility classes (matches Figma text styles) ---- */
.h2, .h3, .h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
}
.h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: -0.02em; }
.h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: -0.02em; }
.h4 { font-size: var(--fs-h4); line-height: var(--lh-h4); letter-spacing: -0.01em; }

.h5 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-h5);
  line-height: var(--lh-h5);
  letter-spacing: -0.01em;
}

.body-l { font-size: var(--fs-body-l); line-height: var(--lh-body-l); letter-spacing: -0.01em; }
.body-m { font-size: var(--fs-body-m); line-height: var(--lh-body-m); letter-spacing: -0.01em; }
.body-s { font-size: var(--fs-body-s); line-height: var(--lh-body-s); }
.label-m { font-size: var(--fs-label-m); line-height: var(--lh-label-m); letter-spacing: -0.02em; }
.label-s { font-size: var(--fs-label-s); line-height: var(--lh-label-s); }
.btn-text { font-weight: 600; font-size: var(--fs-button); line-height: var(--lh-button); letter-spacing: -0.02em; }

@media (max-width: 768px) {
  .h2 { font-size: var(--fs-h2-tablet); }
  .h3 { font-size: var(--fs-h3-tablet); }
}

@media (max-width: 480px) {
  .h2 { font-size: var(--fs-h2-mobile); }
  .h3 { font-size: var(--fs-h3-mobile); }
  .h4 { font-size: var(--fs-h4-mobile); }
  .body-m { font-size: var(--fs-body-m-mobile); }
  .body-s { font-size: var(--fs-body-s-mobile); }
  .label-m { font-size: var(--fs-label-m-mobile); }
  .label-s { font-size: var(--fs-label-s-mobile); }
}

/* ---- Demo page shell (used only by the component preview .html files) ---- */
.demo-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--space-10) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}
.demo-block h6 {
  margin: 0 0 var(--space-4);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted-50);
}
.demo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}
