/* CSS Reset and Base Styles */

/* Moderustic Font Family */
@font-face {
    font-family: 'Moderustic';
    src: url('../fonts/ttf/Moderustic-Light.ttf') format('truetype'),
         url('../fonts/otf/Moderustic-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Moderustic';
    src: url('../fonts/ttf/Moderustic-Regular.ttf') format('truetype'),
         url('../fonts/otf/Moderustic-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Moderustic';
    src: url('../fonts/ttf/Moderustic-Medium.ttf') format('truetype'),
         url('../fonts/otf/Moderustic-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Moderustic';
    src: url('../fonts/ttf/Moderustic-SemiBold.ttf') format('truetype'),
         url('../fonts/otf/Moderustic-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Moderustic';
    src: url('../fonts/ttf/Moderustic-Bold.ttf') format('truetype'),
         url('../fonts/otf/Moderustic-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Moderustic';
    src: url('../fonts/ttf/Moderustic-ExtraBold.ttf') format('truetype'),
         url('../fonts/otf/Moderustic-ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Colors */
    --color-primary: #0BA470;
    --color-primary-hover: #0A8B5F;
    --color-accent: #FFB000;
    --color-dark: #0F172A;
    --color-gray-100: #F8FAFC;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #CBD5E1;
    --color-gray-400: #94A3B8;
    --color-gray-500: #64748B;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1E293B;
    --color-gray-900: #0B1220;
    --color-white: #FFFFFF;
    
    /* Typography */
    --font-primary: 'Moderustic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-accent: 'Moderustic', Georgia, 'Times New Roman', serif;
    --font-heading: 'Moderustic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Moderustic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-button: 'Moderustic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-caption: 'Moderustic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Font Sizes */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.875rem;  /* 30px */
    --text-4xl: 2rem;      /* 32px */
    --text-5xl: 3rem;      /* 48px */
    --text-6xl: 3.5rem;    /* 56px */
    
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* Spacing */
    --space-1: 0.25rem;    /* 4px */
    --space-2: 0.5rem;     /* 8px */
    --space-3: 0.75rem;    /* 12px */
    --space-4: 1rem;       /* 16px */
    --space-5: 1.25rem;    /* 20px */
    --space-6: 1.5rem;     /* 24px */
    --space-8: 2rem;       /* 32px */
    --space-10: 2.5rem;    /* 40px */
    --space-12: 3rem;      /* 48px */
    --space-16: 4rem;      /* 64px */
    --space-20: 5rem;      /* 80px */
    --space-24: 6rem;      /* 96px */
    --space-32: 8rem;      /* 128px */
    
    /* Border Radius */
    --radius-sm: 0.25rem;   /* 4px */
    --radius-md: 0.5rem;    /* 8px */
    --radius-lg: 0.75rem;   /* 12px */
    --radius-xl: 1rem;      /* 16px */
    --radius-2xl: 1.5rem;   /* 24px */
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.08);
    
    /* Transitions */
    --transition-fast: 120ms cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-normal: 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-tooltip: 1060;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Additional reset */
html {
    height: 100%;
    font-size: 16px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;     /* Regular */
    font-size: 1rem;      /* 16px */
    line-height: 1.5;     /* 24px */
    color: var(--color-gray-800);
    background-color: var(--color-white);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: var(--leading-tight);
    color: var(--color-dark);
    margin-bottom: var(--space-4);
}

h1 {
    font-size: 3rem;      /* 48px */
    font-weight: 800;     /* ExtraBold */
    line-height: 1.167;   /* 56px */
}

h2 {
    font-size: 2rem;      /* 32px */
    font-weight: 700;     /* Bold */
    line-height: 1.25;    /* 40px */
}

h3 {
    font-size: 1.5rem;    /* 24px */
    font-weight: 700;     /* Bold */
    line-height: 1.333;   /* 32px */
}

h4 {
    font-size: var(--text-xl);
    font-weight: 600;     /* SemiBold */
    line-height: var(--leading-snug);
}

h5 {
    font-size: var(--text-lg);
    font-weight: 600;     /* SemiBold */
    line-height: var(--leading-snug);
}

h6 {
    font-size: var(--text-base);
    font-weight: 600;     /* SemiBold */
    line-height: var(--leading-normal);
}

p {
    font-family: var(--font-body);
    font-weight: 400;     /* Regular */
    margin-bottom: var(--space-4);
    line-height: var(--leading-relaxed);
}

/* Special Elements Typography */
.subtitle, .description, .caption, .label {
    font-family: var(--font-caption);
    font-weight: 300;     /* Light */
    line-height: var(--leading-relaxed);
}

.badge, .tag, .chip {
    font-family: var(--font-caption);
    font-weight: 500;     /* Medium */
    font-size: var(--text-sm);
    line-height: 1;
}

.small-text, .fine-print {
    font-family: var(--font-caption);
    font-weight: 300;     /* Light */
    font-size: var(--text-xs);
    line-height: var(--leading-normal);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

a:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Lists */
ul, ol {
    margin-bottom: var(--space-4);
    padding-left: var(--space-6);
}

li {
    margin-bottom: var(--space-2);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Form Elements */
input, textarea, select, button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

button:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.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;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --color-white: #0B1220;
        --color-gray-100: #1E293B;
        --color-gray-200: #334155;
        --color-gray-300: #475569;
        --color-gray-400: #64748B;
        --color-gray-500: #94A3B8;
        --color-gray-600: #CBD5E1;
        --color-gray-700: #E2E8F0;
        --color-gray-800: #F1F5F9;
        --color-gray-900: #FFFFFF;
        --color-dark: #F1F5F9;
    }
}

/* Additional base styles */
html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none !important; }
.visible { display: block !important; }

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--color-gray-300);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
/* ====== Тюнимые параметры ====== */
:root{
    --bg: #0b0f0b;               /* фон секции */
    --glow-main: #9eff74;         /* цвет нижнего свечения (лаймово-зелёный) */
    --glow-edge: #c8ffb0;         /* более светлый край купола */
    --top-glow: rgba(255,255,220,.75); /* верхний «прожектор» */
  }
  
  /* ====== Блок ====== */
  .hero-glow{
    position: relative;
    min-height: 80vh;             /* высота хиро-экрана */
    background: radial-gradient(120% 130% at 50% 110%,
                rgba(0,0,0,.55) 0%, rgba(0,0,0,.85) 60%, #000 100%), var(--bg);
    overflow: hidden;
    isolation: isolate;           /* корректная композиция слоёв */
  }
  
  /* Псевдоэлементы hero-glow убраны */
  
  /* (необязательно) тёмная виньетка по краям для глубины */
  @media (min-width: 640px){
    .hero-glow{
      background:
        radial-gradient(140% 160% at 50% 110%,
          rgba(0,0,0,.45) 0%, rgba(0,0,0,.85) 60%, #000 100%),
        radial-gradient(160% 120% at 50% 50%, rgba(0,0,0,.35), rgba(0,0,0,.85) 70%) ,
        var(--bg);
    }
  }
  
  /* (опционально) адаптивные подкрутки */
  @media (max-width: 480px){
    .hero-glow{ min-height: 70vh; }
  }
  