/* ============================================
   POWERSTART — Design System
   Based on Omnis template visual language
   ============================================ */

/* --- Fonts: Geologica (display) + Commissioner (body) via Google Fonts --- */

:root {
  /* ── PowerStart Orange Brand Palette ── */
  --navy-900: #1A1D23;
  --navy-800: #252830;
  --navy-700: #2C3039;
  --navy-600: #3D4152;
  --teal: #F27A1A;
  --teal-bright: #FF922B;
  --teal-light: #FFB366;
  --teal-pale: #FFD6A5;
  --teal-text: #B55400; /* WCAG AA compliant orange on white (4.96:1) */

  /* Neutrals (warm grays) */
  --gray-900: #1A1D23;
  --gray-800: #3D4152;
  --gray-700: #4B5060;
  --gray-600: #6B7280;
  --gray-500: #9CA3AF;
  --gray-400: #B0B7C0;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50: #F9FAFB;

  /* Accent */
  --accent: #F27A1A;
  --accent-orange: #D4650F;
  --accent-red: #DC2626;

  /* Functional */
  --bg-dark: #1A1D23;
  --bg-body: #F5F5F0;
  --bg-white: #ffffff;
  --bg-card: rgba(255,255,255,0.04);
  --bg-glass: rgba(26,29,35,0.85);

  --text-white: #ffffff;
  --text-light: #A0A4AE;
  --text-muted: #6B7280;
  --text-dark: #1A1D23;
  --text-body: #3D4152;

  --border-light: rgba(255,255,255,0.08);
  --border-dark: #E5E7EB;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(26,29,35,0.05);
  --shadow-md: 0 4px 6px -1px rgba(26,29,35,0.08), 0 2px 4px -2px rgba(26,29,35,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(26,29,35,0.10), 0 4px 6px -4px rgba(26,29,35,0.05);

  /* Gradients */
  --grad-hero: linear-gradient(170deg, rgba(26,29,35,0.92) 8%, rgba(26,29,35,0.7) 50%, rgba(26,29,35,0.92) 92%);
  --grad-hero-radial: radial-gradient(87.9% 174.6% at 11.9% 15.1%, rgb(26,29,35) 26.3%, rgb(60,50,40) 100%);
  --grad-dark: linear-gradient(180deg, #1A1D23 0%, #252830 100%);
  --grad-teal-btn: linear-gradient(135deg, #B55400 0%, #903F00 100%);  /* WCAG AA: white text 4.96:1+ */
  --grad-footer: linear-gradient(330deg, #252830 25%, #1A1D23 76%);
  --grad-card-overlay: linear-gradient(180deg, rgba(26,29,35,0) 0%, rgba(26,29,35,0.8) 100%);
  --grad-image-top: linear-gradient(180deg, rgba(26,29,35,0.8) 0%, rgba(26,29,35,0.25) 33%, rgba(26,29,35,0.25) 56%, rgba(26,29,35,1) 100%);

  /* Typography */
  --font-display: 'Geologica', system-ui, -apple-system, sans-serif;
  --font-body: 'Commissioner', system-ui, sans-serif;

  /* Animation (Omnis easing) */
  --ease: cubic-bezier(0.7, 0, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.3s;
  --duration-slow: 0.6s;

  /* Layout */
  --container: 1200px;
  --container-wide: 1400px;
  --gutter: 48px;
  --section-pad: 90px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--bg-body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--duration) var(--ease); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* Mobile tap optimization: убирает 300ms задержку на старых iOS/Android Safari */
a, button, [role="button"], input[type="submit"], input[type="button"] {
  touch-action: manipulation;
}

/* ── Typography (Omnis scale) ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text-dark);
  line-height: 1.1;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(36px, 6vw, 72px); font-weight: 300; }
h2 { font-size: clamp(28px, 4.5vw, 50px); font-weight: 400; }
h3 { font-size: clamp(22px, 2.8vw, 36px); }
h4 { font-size: clamp(17px, 2vw, 26px); }
h5 { font-size: clamp(15px, 1.5vw, 21px); }

/* On dark backgrounds */
.dark h1, .dark h2, .dark h3, .dark h4, .dark h5 { color: var(--text-white); }
.dark p, .dark li { color: var(--text-light); }

/* ── Utility classes ── */

/* Visually hidden but available to screen readers (WCAG-safe sr-only) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: 880px; }

/* Section — generous spacing like Omnis (120-160px) */
.section {
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}
.section--dark {
  background: var(--bg-dark);
  color: var(--text-white);
}
.section--dark h1, .section--dark h2, .section--dark h3,
.section--dark h4, .section--dark h5 { color: var(--text-white); }
.section--dark p { color: var(--text-light); }
.section--gray { background: var(--gray-50); }
.section--teal { background: var(--navy-700); color: var(--text-white); }

/* Tag/Label — Omnis style: uppercase, small, bold */
.tag {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal-text);
  display: inline-block;
}
.tag--light { color: var(--teal-light); } /* used on dark bg, OK contrast */
.tag--accent { color: var(--teal-text); }

/* Separator line (Omnis uses hairlines extensively) */
.sep {
  width: 100%;
  height: 1px;
  background: var(--gray-200);
}
.sep--light { background: var(--border-light); }

/* Ambient glow blobs (Omnis signature effect) */
.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.glow--teal {
  background: rgba(242,122,26,0.3);
  filter: blur(150px);
}
.glow--gold {
  background: rgba(255,146,43,0.2);
  filter: blur(170px);
}

/* ── Skip Link (accessibility) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 4px 4px;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 0;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Selection */
::selection { background: var(--teal); color: white; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy-900); }
::-webkit-scrollbar-thumb { background: var(--navy-600); border-radius: 3px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  :root {
    --gutter: 32px;
    --section-pad: 72px;
  }
}
@media (max-width: 768px) {
  :root {
    --gutter: 20px;
    --section-pad: 56px;
  }
}
@media (max-width: 480px) {
  :root {
    --gutter: 16px;
    --section-pad: 44px;
  }
}
