/* ===== HOROS.UA — Base Styles ===== */

:root {
  /* Brand Colors */
  --color-blue: #1a3a6b;
  --color-blue-dark: #0f2347;
  --color-blue-mid: #1e4d8c;
  --color-yellow: #f5c300;
  --color-yellow-hover: #d9ac00;

  /* Surfaces */
  --color-bg: #f5f6f8;
  --color-surface: #ffffff;
  --color-surface-2: #eef0f4;
  --color-border: #d8dce6;
  --color-divider: #e4e7ef;

  /* Text */
  --color-text: #1a1f2e;
  --color-text-muted: #5a6278;
  --color-text-faint: #9aa0b4;
  --color-text-inverse: #ffffff;

  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-hero: clamp(2.5rem,   1.5rem  + 3.5vw,  4.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26,31,46,0.08);
  --shadow-md: 0 4px 16px rgba(26,31,46,0.1);
  --shadow-lg: 0 12px 40px rgba(26,31,46,0.14);

  /* Layout */
  --content-default: 1200px;
  --content-narrow: 800px;

  /* Fonts */
  --font-display: 'Montserrat', 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;

  /* Transitions */
  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}
body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4,h5,h6 { text-wrap: balance; line-height: 1.2; font-family: var(--font-display); }
p, li { text-wrap: pretty; }
ul { list-style: none; }

/* ===== Layout Utilities ===== */
.container {
  width: 100%;
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: clamp(var(--space-6), 5vw, var(--space-16));
}
.container--narrow {
  max-width: var(--content-narrow);
}

/* ===== Section ===== */
.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}
.section--alt {
  background: var(--color-surface);
}
.section__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-yellow);
  margin-bottom: var(--space-3);
}
.section__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.section__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 56ch;
  margin-bottom: var(--space-12);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--color-yellow);
  color: var(--color-blue-dark);
}
.btn--primary:hover {
  background: var(--color-yellow-hover);
  box-shadow: var(--shadow-md);
}
.btn--outline {
  border: 2px solid var(--color-yellow);
  color: var(--color-yellow);
}
.btn--outline:hover {
  background: var(--color-yellow);
  color: var(--color-blue-dark);
}
.btn--ghost {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn--ghost:hover { color: var(--color-text); }

/* ===== Cards ===== */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ===== Page Banner ===== */
.page-banner {
  background: linear-gradient(135deg, var(--color-blue-dark) 0%, var(--color-blue-mid) 100%);
  padding-block: clamp(var(--space-16), 8vw, var(--space-20));
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-banner__content {
  position: relative;
  z-index: 1;
}
.page-banner__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-4);
}
.page-banner__subtitle {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.75);
  max-width: 60ch;
}
.page-banner__accent {
  display: inline-block;
  width: 48px;
  height: 4px;
  background: var(--color-yellow);
  border-radius: 2px;
  margin-bottom: var(--space-4);
}

/* ===== Focus & Accessibility ===== */
:focus-visible {
  outline: 2px solid var(--color-yellow);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.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;
}

/* ===== Transitions ===== */
a, button, [role="button"] {
  transition: color var(--transition), background var(--transition),
    border-color var(--transition), box-shadow var(--transition);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
