:root {
  --font-heading: "Avalda Helvetica Neue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-ui: "Raleway", Arial, sans-serif;
  --font-system: "SF Pro", "SF Pro Text", "SF Pro Display", Arial, sans-serif;

  /* Figma variables (file ugVLER1mtIau2R8j6tVeyx): орендж / авалда основа */
  --color-figma-orange: #ff6c00;
  --color-figma-text-base: #e9e6e6;

  --color-accent: var(--color-figma-orange);
  --color-accent-dark: #c75100;
  --color-bg: #111111;
  --color-bg-strong: #0b0c0c;
  --color-surface: #1d1d1d;
  --color-surface-soft: #262626;
  --color-surface-card: #2a2a2a;
  --color-text: #ffffff;
  --color-text-figma: var(--color-figma-text-base);
  --color-text-soft: #f1f1f1;
  --color-text-muted: #cbd2d9;
  --color-text-dim: #878787;
  --color-line: rgba(255, 255, 255, 0.14);
  --color-line-strong: rgba(255, 255, 255, 0.25);
  --color-input: #ececec;
  --color-input-text: #313131;
  --color-overlay: rgba(9, 9, 9, 0.84);
  --color-white-panel: #fbfbfb;
  --color-white-panel-soft: #f2f0f0;
  --color-success: #3aac60;
  --color-success-soft: rgba(58, 172, 96, 0.14);
  --color-error: #ff5b4a;
  --color-error-soft: rgba(255, 91, 74, 0.12);
  --color-warning: #ffb340;
  --color-warning-soft: rgba(255, 179, 64, 0.14);

  --radius-sm: 0.3125rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.9375rem;
  --radius-xl: 2.25rem;

  --shadow-soft: 0 0.25rem 1rem rgba(0, 0, 0, 0.2);
  --shadow-panel: 0 1rem 2.5rem rgba(0, 0, 0, 0.28);
  --shadow-orange: 0 0.75rem 2rem rgba(255, 108, 0, 0.22);
  --blur-overlay: blur(1.25rem);

  --page-max: 120rem;
  --container-max: 116.25rem;
  --container-page-max: 86.25rem;
  --container-gutter: clamp(0.9375rem, 1.2vw, 1.875rem);
  --container: min(var(--container-max), calc(100% - (var(--container-gutter) * 2)));
  --container-page: min(var(--container-page-max), calc(100% - (var(--container-gutter) * 2)));
  --container-mobile: calc(100% - 1.875rem);
  --mobile-fluid-scale: calc(var(--container-mobile) / 22.5rem);
  --desktop-canvas: 120rem;
  --desktop-viewport-scale: 1;

  /* Desktop layout module (60px) — grid guides in Figma home/articles and similar frames */
  --layout-grid-step: 3.75rem;

  --breakpoint-xl: 80rem;
  --breakpoint-lg: 64rem;
  --breakpoint-md: 48rem;
  --breakpoint-sm: 24.375rem;

  --section-space-xxl: clamp(5rem, 8vw, 8rem);
  --section-space-xl: clamp(4rem, 4.167vw, 5rem); /* 80px at 1920px per Figma */
  --section-space-lg: clamp(2.5rem, 4vw, 4rem);
  --section-space-md: clamp(1.5rem, 2vw, 2rem);
  --section-space-sm: 1rem;
  --card-gap: 1rem;

  --text-display: clamp(3rem, 4.6vw, 5.25rem);
  --text-hero: clamp(2.75rem, 4vw, 4.125rem);
  --text-h1: clamp(2rem, 3vw, 3.875rem);
  --text-h2: clamp(2.75rem, 3.25vw, 3.875rem);
  --text-h3: clamp(1.5rem, 1.8vw, 2rem);
  --text-h4: 1.625rem;
  --text-body-lg: 1.375rem;
  --text-body: 1.125rem;
  --text-body-sm: 1rem;
  --text-ui: 1rem;
  --text-caption: 0.875rem;
  --text-micro: 0.6875rem;

  --heading-font-family: var(--font-heading);
  --heading-desktop-size: 62px;
  --heading-desktop-line: 63.24px;
  --heading-desktop-tracking: -1.24px;
  --heading-mobile-size: 30px;
  --heading-mobile-line: 29.64px;
  --heading-mobile-tracking: -1.2px;
  --section-heading-gap: 1.875rem;
  --section-heading-padding-bottom: 2.75rem;
  --section-heading-mobile-gap: 1.5625rem;
  --section-heading-mobile-padding-bottom: 2rem;
  --section-tag-font-family: var(--font-ui);
  --section-tag-color: #818991;
  --section-tag-border-color: #cbd2d9;
  --section-tag-min-width: 10.0625rem;
  --section-tag-height: 3.125rem;
  --section-tag-padding-y: 0.6875rem;
  --section-tag-padding-x: 1.75rem;
  --section-tag-radius: 2.25rem;
  --section-tag-size: 1rem;
  --section-tag-line: normal;
  --section-tag-tracking: 0;
  --section-tag-mobile-font-family: var(--font-ui);
  --section-tag-mobile-color: #cbd2d9;
  --section-tag-mobile-min-width: 0;
  --section-tag-mobile-height: 2.3125rem;
  --section-tag-mobile-padding-y: 0.875rem;
  --section-tag-mobile-padding-x: 1.25rem;
  --section-tag-mobile-radius: 6.25rem;
  --section-tag-mobile-size: 0.75rem;
  --section-tag-mobile-line: normal;
  --section-tag-mobile-tracking: 0;

  --line-display: 0.94;
  --line-heading: 1;
  --line-copy: 1.38;
  --line-ui: 1.2;

  --transition-fast: 160ms ease;
  --transition-base: 240ms ease;
}

@media (min-width: 64rem) {
  :root {
    --text-body-lg: 1.125rem;
    --text-body: 1rem;
  }
}

@media (min-width: 64.001rem) {
  :root {
    --desktop-viewport-scale: clamp(0.5333333333, calc(100vw / var(--desktop-canvas)), 1);
    --container-gutter: calc(1.875rem * var(--desktop-viewport-scale));
    --container: min(var(--container-max), calc(100% - (var(--container-gutter) * 2)));
    --container-page: min(var(--container-page-max), calc(100% - (var(--container-gutter) * 2)));
  }
}
