/* =========================================================
   SPRAVKA.CO.UA — main stylesheet
   1. Fonts
   2. Design tokens (CSS variables)
   3. Base & typography
   4. Layout helpers
   5. Header & mobile menu
   6. Hero
   7. Stats strip
   8. Section head
   9. Directions
   10. Categories
   11. Journey
   12. Tools
   13. About
   14. Footer
   15. Utilities
   ========================================================= */

/* ---------- 1. Fonts (local, see assets/fonts) ---------- */
@import url("fonts.css");

/* ---------- 2. Design tokens ---------- */
:root {
  /* colors */
  --background: oklch(0.994 0.004 95);
  --foreground: oklch(0.22 0.03 258);
  --surface: oklch(1 0 0);
  --surface-2: oklch(0.972 0.008 250);
  --brand: oklch(0.49 0.15 254);
  --brand-soft: oklch(0.95 0.03 250);
  --brand-foreground: oklch(0.99 0.005 250);
  --sun: oklch(0.82 0.15 84);
  --sun-soft: oklch(0.96 0.05 92);
  --sun-ink: oklch(0.45 0.11 75);
  --secondary: oklch(0.96 0.012 250);
  --muted-foreground: oklch(0.53 0.028 258);
  --border: oklch(0.915 0.012 252);

  /* radii */
  --radius: 0.875rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.125rem;
  --radius-2xl: 1.375rem;
  --radius-3xl: 1.625rem;
  --radius-pill: 999px;

  /* shadows */
  --shadow-card: 0 1px 2px oklch(0.22 0.03 258 / 0.05), 0 12px 32px -18px oklch(0.22 0.03 258 / 0.28);
  --shadow-lift: 0 2px 6px oklch(0.22 0.03 258 / 0.06), 0 28px 60px -28px oklch(0.22 0.03 258 / 0.35);

  /* gradients */
  --gradient-hero:
    radial-gradient(120% 100% at 85% 0%, oklch(0.96 0.05 92 / 0.7) 0%, transparent 55%),
    radial-gradient(90% 90% at 0% 10%, oklch(0.93 0.045 250 / 0.85) 0%, transparent 60%);

  /* type */
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: "Onest", "Manrope", ui-sans-serif, system-ui, sans-serif;

  /* metrics */
  --container: 1240px;
  --gutter: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 3. Base & typography ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 16px; height: 16px; stroke-width: 2; }
.icon--md { width: 22px; height: 22px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  background: var(--brand);
  color: var(--brand-foreground);
  font-weight: 700;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- 4. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 56px; }

.section--tinted {
  border-block: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface-2) 50%, transparent);
}

.surface-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-card);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s ease;
}

.hover-lift:hover,
.hover-lift:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: color-mix(in oklab, var(--brand) 28%, transparent);
}
.hover-lift:active { transform: translateY(-1px); }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-2xl);
  transition: transform 0.25s var(--ease), background-color 0.2s ease, border-color 0.2s ease;
}
.btn--primary {
  padding: 14px 24px;
  background: var(--brand);
  color: var(--brand-foreground);
  box-shadow: var(--shadow-card);
}
.btn--primary:hover { transform: translateY(-2px); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--foreground);
  font-weight: 600;
  border-radius: var(--radius-xl);
}
.btn--ghost:hover { border-color: color-mix(in oklab, var(--brand) 40%, transparent); background: var(--brand-soft); }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  background: color-mix(in oklab, var(--background) 85%, transparent);
  backdrop-filter: blur(18px);
}

.header-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding-block: 14px;
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: none;
  border-radius: var(--radius-xl);
  background: var(--brand);
  color: var(--brand-foreground);
  box-shadow: var(--shadow-card);
}
.brand__mark .icon { width: 20px; height: 20px; stroke-width: 2; }
.brand__text { min-width: 0; line-height: 1.15; }
.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__name span { color: var(--brand); }
.brand__tagline { display: none; font-size: 11px; font-weight: 500; color: var(--muted-foreground); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.main-nav { display: none; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.main-nav a:hover { background: var(--secondary); color: var(--foreground); }
.main-nav a:active { background: var(--brand-soft); }

.search-field {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--muted-foreground);
  font-size: 14px;
  transition: border-color 0.2s ease;
}
.search-field:focus-within { border-color: var(--brand); }
.search-field input {
  width: 160px;
  border: 0;
  background: transparent;
  color: var(--foreground);
  outline: none;
}
.search-field input::placeholder { color: var(--muted-foreground); }
.search-field kbd {
  display: none;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
}

.lang-switch {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.lang-switch .icon { width: 14px; height: 14px; color: var(--muted-foreground); }

.burger {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  cursor: pointer;
}
.burger:hover { background: var(--brand-soft); }
.burger .icon-close { display: none; }
.burger[aria-expanded="true"] .icon-close { display: block; }
.burger[aria-expanded="true"] .icon-open { display: none; }

/* mobile menu */
.mobile-menu {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 16px var(--gutter);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu .search-field {
  display: flex;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: var(--background);
}
.mobile-menu .search-field input { width: 100%; }
.mobile-menu__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mobile-menu__nav a {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--background);
  font-size: 14px;
  font-weight: 600;
}
.mobile-menu__nav a:hover { background: var(--brand-soft); }

/* search demo results (JS) */
.search-results {
  position: relative;
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  overflow: hidden;
}
.search-results[hidden] { display: none; }
.search-results li + li { border-top: 1px solid var(--border); }
.search-results a { display: block; padding: 10px 14px; font-size: 14px; }
.search-results a:hover { background: var(--brand-soft); }
.search-results__empty { padding: 10px 14px; font-size: 13px; color: var(--muted-foreground); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background-image: var(--gradient-hero);
}
.hero__grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  pointer-events: none;
  background-image:
    linear-gradient(to right, oklch(0.22 0.03 258 / 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.22 0.03 258 / 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero__inner {
  position: relative;
  display: grid;
  gap: 40px;
  padding-block: 48px;
}
.hero__copy { min-width: 0; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: color-mix(in oklab, var(--surface) 80%, transparent);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-foreground);
}
.pill .icon { width: 14px; height: 14px; color: var(--brand); }

.hero h1 {
  margin-top: 20px;
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.06;
}
.hero__underlined { position: relative; display: inline-block; }
.hero__underlined::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 10px;
  border-radius: var(--radius-pill);
  background: color-mix(in oklab, var(--sun) 60%, transparent);
}
.hero__lead {
  margin-top: 24px;
  max-width: 36rem;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.situation-form { margin-top: 32px; padding: 12px; }
.situation-form textarea {
  width: 100%;
  resize: none;
  padding: 16px;
  border: 0;
  border-radius: var(--radius-2xl);
  background: color-mix(in oklab, var(--surface-2) 70%, transparent);
  font-size: 16px;
  line-height: 1.6;
  outline: none;
  transition: background-color 0.2s ease;
}
.situation-form textarea:focus { background: var(--surface-2); }
.situation-form textarea::placeholder { color: var(--muted-foreground); }
.situation-form__row {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.situation-form__note {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 12px;
  color: var(--muted-foreground);
}
.situation-form__note .icon { width: 16px; height: 16px; color: var(--brand); }
.situation-form .btn--primary { width: 100%; }

.form-feedback {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-xl);
  background: var(--brand-soft);
  font-size: 13px;
  font-weight: 600;
}
.form-feedback[hidden] { display: none; }

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}
.quick-tags__label {
  margin-right: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
}
.tag {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}
.tag:hover { border-color: color-mix(in oklab, var(--brand) 40%, transparent); background: var(--brand-soft); }
.tag:active { transform: translateY(1px); }
.tag[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-foreground); }

.hero__media { position: relative; min-width: 0; }
.hero__figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 2rem;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}
.hero__figure img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.hero__figure::after {
  content: "";
  position: absolute;
  inset-inline: 0; bottom: 0;
  height: 160px;
  pointer-events: none;
  background: linear-gradient(to top, oklch(0.22 0.03 258 / 0.55), transparent);
}
.hero__caption {
  position: absolute;
  inset-inline: 16px;
  bottom: 16px;
  z-index: 1;
  padding: 16px;
  border: 1px solid oklch(1 0 0 / 0.25);
  border-radius: var(--radius-2xl);
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
}
.hero__caption p:first-child { font-size: 14px; font-weight: 600; }
.hero__caption p:last-child { margin-top: 4px; font-size: 12px; color: var(--muted-foreground); }
.hero__accent { display: none; }

/* ---------- 7. Stats strip ---------- */
.stats {
  border-block: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface-2) 70%, transparent);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding-block: 24px;
}
.stats__item { display: flex; align-items: center; gap: 12px; padding: 12px 4px; }
.stats__icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--brand);
}
.stats__value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}
.stats__label { font-size: 12px; font-weight: 600; color: var(--muted-foreground); }
.stats__value + .stats__label { margin-top: 4px; }

/* ---------- 8. Section head ---------- */
.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}
.section-head__copy { min-width: 0; max-width: 42rem; }
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand);
}
.section-head h2 {
  margin-top: 12px;
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
}
.section-head p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted-foreground);
}

/* ---------- 9. Directions ---------- */
.cards-grid { display: grid; gap: 16px; }

.direction-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
}
.direction-card__bar {
  position: absolute;
  inset-inline: 0; top: 0;
  height: 4px;
  opacity: 0.7;
}
.direction-card__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: var(--radius-2xl);
}
.direction-card__icon .icon { width: 24px; height: 24px; }
.direction-card h3 { margin-top: 20px; font-size: 18px; font-weight: 700; }
.direction-card p { margin-top: 8px; font-size: 14px; line-height: 1.65; color: var(--muted-foreground); }
.direction-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
}
.direction-card__link .icon { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.direction-card:hover .direction-card__link .icon { transform: translateX(4px); }

/* icon tones */
.tone-blue   { background: oklch(0.94 0.04 250); color: oklch(0.4 0.13 254); }
.tone-rose   { background: oklch(0.95 0.05 25);  color: oklch(0.47 0.15 25); }
.tone-green  { background: oklch(0.94 0.06 160); color: oklch(0.4 0.11 160); }
.tone-navy   { background: oklch(0.94 0.03 265); color: oklch(0.36 0.08 265); }
.tone-sun    { background: oklch(0.95 0.06 90);  color: oklch(0.45 0.11 75); }
.tone-violet { background: oklch(0.94 0.05 305); color: oklch(0.42 0.13 305); }

/* ---------- 10. Categories ---------- */
.categories-grid { display: grid; gap: 12px; }
.category-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
}
.category-card__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: var(--radius-xl);
  background: var(--brand-soft);
  color: var(--brand);
  box-shadow: inset 0 0 0 1px oklch(0.49 0.15 254 / 0.16);
}
.category-card__title { display: block; font-size: 14px; font-weight: 700; line-height: 1.35; }
.category-card__count { display: block; margin-top: 2px; font-size: 12px; color: var(--muted-foreground); }
.category-card.is-hidden { display: none; }

.categories-more { display: flex; justify-content: center; margin-top: 24px; }

/* ---------- 11. Journey ---------- */
.journey { position: relative; }
.journey__line { display: none; }
.journey__list { position: relative; display: grid; gap: 16px; }
.journey-step { padding: 20px; }
.journey-step__top { display: flex; align-items: center; gap: 12px; }
.journey-step__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: var(--radius-2xl);
  background: var(--brand);
  color: var(--brand-foreground);
}
.journey-step__num { font-family: var(--font-display); font-size: 14px; font-weight: 800; color: var(--muted-foreground); }
.journey-step h3 { margin-top: 16px; font-size: 16px; font-weight: 700; line-height: 1.35; }
.journey-step p { margin-top: 8px; font-size: 14px; line-height: 1.65; color: var(--muted-foreground); }

/* ---------- 12. Tools ---------- */
.tool-card { padding: 24px; }
.tool-card__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-2xl);
  background: var(--sun-soft);
  color: var(--sun-ink);
}
.tool-card h3 { margin-top: 16px; font-size: 16px; font-weight: 700; }
.tool-card p { margin-top: 8px; font-size: 14px; line-height: 1.65; color: var(--muted-foreground); }

.utility-grid { display: grid; gap: 16px; margin-top: 16px; }
.utility-card {
  padding: 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-3xl);
  background: color-mix(in oklab, var(--surface) 60%, transparent);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.utility-card:hover { border-color: color-mix(in oklab, var(--brand) 35%, transparent); background: var(--surface); }
.utility-card__icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-xl);
  background: var(--brand-soft);
  color: var(--brand);
}
.utility-card h3 { margin-top: 14px; font-size: 14px; font-weight: 700; }
.utility-card p { margin-top: 6px; font-size: 12px; line-height: 1.6; color: var(--muted-foreground); }

.utility-card__list { margin-top: 12px; display: grid; gap: 6px; }
.utility-card__list li { font-size: 12px; color: var(--muted-foreground); }
.utility-card__list a:hover { color: var(--brand); }
.utility-card__empty { font-size: 12px; color: var(--muted-foreground); }

/* ---------- 13. About ---------- */
.about-card { overflow: hidden; }
.about-card__inner { display: grid; gap: 32px; padding: 28px; }
.about-card h2 { margin-top: 12px; font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 800; line-height: 1.15; }
.about-card__lead { margin-top: 16px; font-size: 15px; line-height: 1.7; color: var(--muted-foreground); }
.about-list { display: grid; gap: 12px; margin-top: 28px; }
.about-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 500; }
.about-list .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--brand); }

.about-aside {
  padding: 24px;
  border-radius: var(--radius-3xl);
  background: color-mix(in oklab, var(--surface-2) 80%, transparent);
}
.about-aside__title { font-size: 14px; font-weight: 700; }
.about-aside p + p { margin-top: 8px; font-size: 14px; line-height: 1.65; color: var(--muted-foreground); }
.about-aside .btn { margin-top: 20px; padding: 12px 20px; }
.about-aside__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.about-aside__stats strong { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 800; }
.about-aside__stats span { font-size: 12px; color: var(--muted-foreground); }

/* ---------- 14. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.site-footer__inner { display: grid; gap: 40px; padding-block: 48px; }
.site-footer__about { min-width: 0; max-width: 24rem; }
.site-footer__about p { margin-top: 16px; font-size: 14px; line-height: 1.65; color: var(--muted-foreground); }
.site-footer__about .footer-disclaimer { margin-top: 20px; font-size: 12px; }
.footer-columns { display: grid; gap: 32px; }
.footer-columns h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.footer-columns ul { margin-top: 16px; display: grid; gap: 10px; }
.footer-columns a { font-size: 14px; color: var(--muted-foreground); transition: color 0.2s ease; }
.footer-columns a:hover { color: var(--brand); }

.footer-bottom {
  display: grid;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.footer-bottom p { font-size: 12px; color: var(--muted-foreground); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal a { font-size: 12px; font-weight: 600; color: var(--muted-foreground); }
.footer-legal a:hover { color: var(--brand); }

/* ---------- 15. Utilities ---------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}


/* =========================================================
   Iteration 5 — final visual integration
   ========================================================= */
.brand__mark {
  width: 42px;
  height: 48px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.brand__mark img { width: 100%; height: 100%; object-fit: contain; }

.hero__figure {
  overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--brand) 16%, var(--border));
}
.hero__figure img {
  aspect-ratio: 16 / 9;
  object-position: center;
}
.hero__figure::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(18,52,91,.2), transparent);
}
.hero__caption { z-index: 2; }

.direction-card { overflow: hidden; padding-top: 0; }
.direction-card__bar { z-index: 2; }
.direction-card__media {
  margin: 0 -20px 16px;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--surface-2);
}
.direction-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.direction-card:hover .direction-card__media img { transform: scale(1.035); }
.direction-card__icon { display: none; }

.category-card__icon {
  width: 64px;
  height: 64px;
  padding: 4px;
  overflow: hidden;
  background: #fff;
}
.category-card__icon img { width: 100%; height: 100%; object-fit: contain; }

.journey { overflow: hidden; }
.journey__route-art {
  display: none;
  position: absolute;
  z-index: 0;
  left: 2%;
  top: 12px;
  width: 96%;
  height: 90px;
  object-fit: fill;
  opacity: .42;
  pointer-events: none;
}
.journey-step { position: relative; z-index: 1; }
.journey-step__icon {
  width: 58px;
  height: 58px;
  padding: 5px;
  background: #fff;
}
.journey-step__icon img { width: 100%; height: 100%; object-fit: contain; }

.tool-card__icon {
  width: 88px; height: 88px; padding: 8px;
  border-radius: 22px;
}
.tool-card__icon img { width:100%;height:100%;object-fit:contain; }

.utility-card__icon {
  width: 64px; height: 64px; padding: 5px;
}
.utility-card__icon img { width:100%;height:100%;object-fit:contain; }

.linking-showcase {
  background:
    radial-gradient(circle at 92% 12%, rgba(255,200,61,.13), transparent 28%),
    radial-gradient(circle at 5% 90%, rgba(22,102,216,.10), transparent 31%);
}
.linking-showcase__grid {
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}
.linking-visual { padding:18px; }
.linking-visual img {
  width:100%;
  height:160px;
  object-fit:contain;
}
.linking-visual h3 { margin-top:12px; font-size:18px; }
.linking-visual p { margin-top:6px; color:var(--muted-foreground); font-size:14px; }

.site-footer {
  position:relative;
  overflow:hidden;
}
.site-footer__route {
  position:absolute;
  inset:auto 0 0;
  width:100%;
  height:150px;
  object-fit:cover;
  opacity:.18;
  pointer-events:none;
}
.site-footer > .container { position:relative; z-index:1; }


/* =========================================================
   SPRAVKA.CO.UA — responsive rules
   Breakpoints: 640px, 768px, 1024px, 1280px
   ========================================================= */

/* ---------- >= 640px (large phones / small tablets) ---------- */
@media (min-width: 640px) {
  .brand__tagline { display: block; }
  .brand__name { font-size: 16px; }

  .situation-form { padding: 16px; }
  .situation-form__row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .situation-form .btn--primary { width: auto; }

  .hero__lead { font-size: 18px; }

  .stats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .categories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .utility-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- >= 768px (tablets) ---------- */
@media (min-width: 768px) {
  .section { padding-block: 72px; }
  .hero__inner { padding-block: 64px; }

  .section-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .categories-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .about-card__inner { padding: 40px; }
  .about-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer-bottom {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

/* ---------- >= 1024px (small desktops) ---------- */
@media (min-width: 1024px) {
  :root { --gutter: 32px; }

  .section { padding-block: 88px; }
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 56px;
    padding-block: 80px;
  }
  .hero__figure img { aspect-ratio: 4 / 4.2; }
  .hero__accent {
    display: block;
    position: absolute;
    left: -12px;
    top: 32px;
    width: 6px;
    height: 64px;
    border-radius: var(--radius-pill);
    background: linear-gradient(to bottom, var(--brand), var(--sun));
  }

  .search-field { display: flex; }
  .lang-switch { display: flex; }

  .stats__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stats__item { padding-inline: 16px; }

  .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .categories-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* full catalog is always visible on desktop */
  .category-card.is-hidden { display: flex; }
  .categories-more { display: none; }

  .journey { position: relative; }
  .journey__line {
    display: block;
    position: absolute;
    left: 24px;
    right: 24px;
    top: 42px;
    height: 2px;
    background: linear-gradient(
      to right,
      transparent,
      color-mix(in oklab, var(--brand) 35%, transparent),
      color-mix(in oklab, var(--sun) 55%, transparent),
      transparent
    );
  }
  .journey__list { grid-template-columns: repeat(5, minmax(0, 1fr)); }

  .utility-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .about-card__inner { grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: start; }

  .site-footer__inner { grid-template-columns: 1.15fr 2.85fr; }
  .footer-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- >= 1280px (large desktops) ---------- */
@media (min-width: 1280px) {
  .main-nav { display: flex; }
  .search-field input { width: 190px; }
  .search-field kbd { display: block; }
  .burger { display: none; }
  .mobile-menu { display: none !important; }

  .footer-columns { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 640px) {
  .direction-card__media { margin-inline:-22px; }
  .linking-showcase__grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (min-width: 1024px) {
  .hero__figure img { aspect-ratio:16/9; }
  .journey__route-art { display:block; }
  .journey__line { display:none; }
  .linking-showcase__grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width: 639px) {
  .hero__figure img {
    aspect-ratio:4/5;
    object-position:center 78%;
  }
  .direction-card__media { aspect-ratio:16/9; }
  .category-card__icon { width:58px;height:58px; }
}


 :root{--e-blue:#1666d8;--e-dark:#12345b;--e-yellow:#ffc83d;--e-bg:#f5f8fc;--e-line:#dbe6f2;--e-muted:#64748b;--e-red:#d83a31}*{box-sizing:border-box}body{margin:0;background:var(--e-bg);color:var(--e-dark);font-family:Manrope,Arial,sans-serif}.engine-container{width:min(1180px,calc(100% - 32px));margin:auto}.skip-link{position:absolute;left:-9999px}.preview-ribbon{padding:8px 16px;text-align:center;background:var(--e-yellow);font-weight:800}.engine-header{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.96);border-bottom:1px solid var(--e-line)}.engine-header__inner{min-height:72px;display:flex;align-items:center;justify-content:space-between}.engine-brand{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none}.engine-brand__mark{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:var(--e-blue);color:#fff;font-size:24px;font-weight:900;box-shadow:inset 0 -8px 0 rgba(255,200,61,.35)}.engine-brand small{display:block;color:var(--e-muted)}.engine-header nav a{color:inherit;text-decoration:none;font-weight:700}.engine-page{padding-block:28px 64px}.engine-breadcrumbs{display:flex;gap:8px;flex-wrap:wrap;font-size:13px;margin-bottom:22px}.engine-breadcrumbs a{color:var(--e-muted);text-decoration:none}.engine-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:28px}.engine-article,.side-card,.route-group,.category-tile,.promise-grid article{background:#fff;border:1px solid var(--e-line);border-radius:22px;box-shadow:0 12px 35px rgba(18,52,91,.06)}.engine-article{padding:clamp(22px,4vw,52px)}.engine-article h1,.hub-hero h1{font-family:Onest,Arial,sans-serif;font-size:clamp(34px,5vw,62px);line-height:1.04;margin:12px 0 24px}.engine-kicker{display:flex;gap:10px;align-items:center;text-transform:uppercase;font-size:12px;font-weight:800}.risk{padding:5px 9px;border-radius:99px;background:#edf3fb}.risk--critical{background:#fff0ee;color:var(--e-red)}.risk--high{background:#fff7dd;color:#8a5c00}.engine-banner{margin:0 0 30px;overflow:hidden;border-radius:20px}.engine-banner img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}.engine-content{font-size:17px;line-height:1.72;color:#243b56}.engine-content h2{font:700 28px Onest,Arial;margin-top:38px}.engine-content a{color:var(--e-blue)}.engine-content table{display:block;max-width:100%;overflow:auto;border-collapse:collapse}.engine-content th,.engine-content td{padding:10px;border:1px solid var(--e-line)}.engine-sidebar{display:grid;align-content:start;gap:18px}.side-card{padding:22px}.side-card dl{display:grid;grid-template-columns:80px 1fr;gap:8px;font-size:13px}.side-card dt{color:var(--e-muted)}.side-card a{color:var(--e-dark)}.next-step{margin-top:38px;padding:24px;border-radius:20px;background:linear-gradient(135deg,#eaf3ff,#fff9df)}.engine-button{display:inline-flex;padding:13px 20px;border-radius:13px;background:var(--e-blue);color:#fff!important;text-decoration:none;font-weight:800}.route-groups{margin-top:34px}.route-groups__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.route-group{padding:20px}.route-group h3{text-transform:uppercase;font-size:12px;color:var(--e-blue)}.route-group a{display:flex;justify-content:space-between;gap:10px;padding:12px 0;border-top:1px solid var(--e-line);color:inherit;text-decoration:none}.hub-hero{display:grid;grid-template-columns:1.05fr .95fr;gap:30px;align-items:center;background:#fff;border:1px solid var(--e-line);border-radius:28px;padding:clamp(24px,4vw,54px)}.hub-hero img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:22px}.hub-content{max-width:850px;margin:40px auto}.engine-home-hero{padding:42px 0 58px;background:radial-gradient(circle at 90% 10%,rgba(255,200,61,.25),transparent 30%),linear-gradient(180deg,#fff,#edf5ff)}.engine-home-hero .engine-container{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}.engine-home-hero h1{font:800 clamp(42px,6vw,76px)/1 Onest,Arial;margin:12px 0 24px}.engine-home-hero p{font-size:19px;line-height:1.55;color:#445b74}.engine-home-hero img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:28px}.engine-eyebrow,.section-title span{color:var(--e-blue);font-weight:900;text-transform:uppercase;font-size:12px}.category-section{padding-block:70px}.section-title h2{font:700 clamp(32px,5vw,52px) Onest,Arial}.category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.category-tile{padding:24px;color:inherit;text-decoration:none;min-height:175px;display:flex;flex-direction:column}.category-tile h3{font:700 22px Onest,Arial;flex:1}.promise-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;padding-bottom:70px}.promise-grid article{padding:25px}.promise-grid b{display:block;font:800 42px Onest,Arial;color:var(--e-blue)}.engine-empty{min-height:60vh;display:grid;place-items:center;text-align:center}.engine-empty span{font:900 100px Onest;color:var(--e-yellow)}.engine-footer{background:var(--e-dark);color:#fff;padding:38px 0}@media(max-width:900px){.engine-layout{grid-template-columns:1fr}.engine-sidebar{grid-template-columns:repeat(2,1fr)}.hub-hero,.engine-home-hero .engine-container{grid-template-columns:1fr}.route-groups__grid,.category-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.engine-sidebar,.route-groups__grid,.category-grid,.promise-grid{grid-template-columns:1fr}.engine-article{padding:20px}.engine-home-hero h1{font-size:42px}.hub-hero{padding:20px}.engine-content{font-size:16px}}
.engine-desktop-nav{display:flex;gap:20px;align-items:center}.engine-desktop-nav button,.engine-mega__head button{border:0;background:none;color:inherit;font:inherit;font-weight:700;cursor:pointer}.engine-menu-button{display:none;width:44px;height:44px;border:1px solid var(--e-line);border-radius:12px;background:#fff;padding:11px}.engine-menu-button span{display:block;height:2px;background:var(--e-dark);margin:5px}.engine-mega{position:absolute;left:0;right:0;top:100%;background:#fff;border-top:1px solid var(--e-line);border-bottom:1px solid var(--e-line);box-shadow:0 24px 60px rgba(18,52,91,.15);padding:25px 0 32px}.engine-mega__head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.engine-mega__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.engine-mega__grid a{display:flex;justify-content:space-between;gap:10px;padding:13px 14px;border-radius:12px;color:inherit;text-decoration:none;background:#f5f8fc}.engine-mega__grid a:hover{background:#eaf3ff}.engine-footer__grid{display:grid;grid-template-columns:1fr 1fr;gap:40px}.spravka-lead{font-size:20px;line-height:1.55;color:#173e69}.spravka-note{margin:26px 0;padding:20px 22px;border-radius:16px;background:#eef7ff;border-left:5px solid var(--e-blue)}.spravka-note--success{background:#effaf4;border-left-color:#2c9a61}.spravka-sources{margin-top:40px;padding:24px;border-radius:18px;background:#f3f6fa;border:1px solid var(--e-line)}.spravka-sources h2{margin-top:0}.engine-content ol,.engine-content ul{padding-left:24px}.engine-content li+li{margin-top:8px}body.menu-open{overflow:hidden}
@media(max-width:900px){.engine-desktop-nav{display:none}.engine-menu-button{display:block}.engine-mega{position:fixed;top:72px;bottom:0;overflow:auto}.engine-mega__grid{grid-template-columns:1fr 1fr}.engine-footer__grid{grid-template-columns:1fr}}
@media(max-width:620px){.engine-mega__grid{grid-template-columns:1fr}.engine-brand small{font-size:10px}.spravka-lead{font-size:18px}}

.engine-site-header{z-index:80}.brand{display:flex;align-items:center;gap:.7rem;text-decoration:none;color:inherit}.brand span{display:grid}.brand small{font-size:.72rem;color:var(--text-muted,#667085)}.header-menu-toggle{display:none;border:1px solid var(--border,#d9e1eb);background:#fff;border-radius:.8rem;padding:.65rem .9rem;font-weight:800}.engine-nav{display:flex;align-items:center;gap:1rem}.engine-nav>a,.engine-nav summary{font-weight:800;text-decoration:none;color:inherit;cursor:pointer;list-style:none}.engine-nav details{position:relative}.engine-nav-grid{position:absolute;right:0;top:calc(100% + 1rem);width:min(720px,85vw);display:grid;grid-template-columns:repeat(3,1fr);gap:.25rem;background:#fff;border:1px solid var(--border,#d9e1eb);border-radius:1.2rem;padding:1rem;box-shadow:0 20px 60px rgba(24,48,82,.16)}.engine-nav-grid a{padding:.65rem;border-radius:.7rem;color:inherit;text-decoration:none}.engine-nav-grid a:hover{background:#eef5ff}.polished-home-hero{padding-top:clamp(2rem,5vw,5rem)}.hero-search{display:flex;gap:.6rem;margin:1.6rem 0}.hero-search input{min-width:0;flex:1;padding:1rem;border:1px solid #cbd7e6;border-radius:1rem;font:inherit}.hero-search button{border:0;border-radius:1rem;background:#1768db;color:#fff;padding:0 1.2rem;font-weight:900}.hero__trust{display:flex;gap:.6rem;flex-wrap:wrap}.hero__trust span{padding:.5rem .8rem;border-radius:999px;background:#eef5ff;font-size:.82rem;font-weight:800}.direction-card{color:inherit;text-decoration:none}.engine-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin:2rem 0 0;padding:0;list-style:none}.engine-steps li{display:flex;gap:1rem;padding:1.2rem;border-radius:1.2rem;background:#fff;border:1px solid #dce6f1}.engine-steps li>b{display:grid;place-items:center;flex:0 0 2.5rem;height:2.5rem;border-radius:.8rem;background:#1768db;color:#fff}.engine-steps span{display:grid;gap:.25rem}.engine-footer__grid{display:grid;grid-template-columns:1.5fr .7fr 1fr;gap:2rem}.engine-footer__grid>div{display:grid;align-content:start;gap:.6rem}.engine-footer__grid a{color:inherit;text-decoration:none}.brand--footer small{color:#c5d3e4}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:850px){.header-menu-toggle{display:block}.engine-nav{display:none;position:absolute;left:1rem;right:1rem;top:calc(100% + .4rem);background:#fff;border:1px solid #dce6f1;border-radius:1rem;padding:1rem;box-shadow:0 18px 45px rgba(24,48,82,.16)}.engine-nav.is-open{display:grid}.engine-nav-grid{position:static;width:auto;grid-template-columns:1fr 1fr;box-shadow:none;margin-top:.7rem}.engine-steps{grid-template-columns:1fr}.engine-footer__grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.hero-search{display:grid}.hero-search button{padding:1rem}.engine-nav-grid{grid-template-columns:1fr}.engine-footer__grid{grid-template-columns:1fr}.brand small{display:none}}

/* ===== Stage 09: authoritative site chrome and article polish ===== */
.sp-shell{width:min(1240px,calc(100% - 40px));margin-inline:auto}
.sp-header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.97);border-bottom:1px solid #dbe5f0;box-shadow:0 4px 24px rgba(18,52,91,.05);backdrop-filter:blur(16px)}
.sp-header__row{min-height:82px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:32px}
.sp-brand{display:inline-flex;align-items:center;gap:12px;min-width:0;color:#12345b;text-decoration:none}
.sp-brand img{display:block;flex:0 0 auto;width:48px;height:48px}
.sp-brand__copy{display:flex;flex-direction:column;min-width:0;line-height:1.15}
.sp-brand__copy strong{font:800 15px/1.2 Onest,Arial,sans-serif;letter-spacing:.01em;white-space:nowrap}
.sp-brand__copy small{margin-top:4px;color:#66798e;font-size:11px;white-space:nowrap}
.sp-nav{justify-self:end;display:flex;align-items:center;gap:8px}
.sp-nav__home,.sp-catalog-toggle{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:12px;color:#173b65;font-weight:800;font-size:14px;text-decoration:none}
.sp-nav__home:hover,.sp-catalog-toggle:hover{background:#eef5ff;color:#1264d8}
.sp-catalog-toggle{border:0;background:transparent;cursor:pointer;gap:10px;font-family:inherit}
.sp-catalog-toggle i{width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:.2s}
.sp-catalog-toggle[aria-expanded="true"] i{transform:rotate(225deg) translate(-2px,-1px)}
.sp-mobile-toggle{display:none;width:46px;height:46px;padding:10px;border:1px solid #d9e4f0;border-radius:13px;background:#fff;cursor:pointer}
.sp-mobile-toggle span{display:block;height:2px;margin:5px 0;border-radius:2px;background:#163b66}
.sp-catalog{position:absolute;left:0;right:0;top:100%;padding:30px 0 34px;background:#fff;border-top:1px solid #e4ebf3;border-bottom:1px solid #dbe5f0;box-shadow:0 28px 70px rgba(18,52,91,.17)}
.sp-catalog[hidden],.sp-mobile-menu[hidden]{display:none!important}
.sp-catalog__head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:20px}
.sp-catalog__head span{color:#1768db;font-size:11px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}
.sp-catalog__head h2{margin:5px 0 0;font:800 28px/1.15 Onest,Arial,sans-serif;color:#12345b}
.sp-catalog-close{border:0;background:#f2f6fb;border-radius:10px;padding:10px 13px;color:#445f7d;font:700 13px Manrope,Arial;cursor:pointer}
.sp-catalog__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.sp-catalog__grid>a{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:74px;padding:12px;border:1px solid #e2eaf3;border-radius:15px;background:#f9fbfd;color:#12345b;text-decoration:none;transition:.2s}
.sp-catalog__grid>a:hover{transform:translateY(-2px);border-color:#bad3f4;background:#eff6ff;box-shadow:0 10px 25px rgba(18,82,157,.08)}
.sp-catalog__icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#fff;border:1px solid #e4ebf2}
.sp-catalog__icon img{max-width:32px;max-height:32px}
.sp-catalog__grid strong{display:block;font-size:13px;line-height:1.25}
.sp-catalog__grid small{display:block;margin-top:4px;color:#74869a;font-size:11px}
.sp-catalog__grid i{color:#1768db;font-style:normal;font-weight:900}
.sp-mobile-menu{position:fixed;inset:82px 0 0;background:#fff;overflow:auto;border-top:1px solid #dbe5f0}
.sp-mobile-menu__inner{display:grid;width:min(680px,calc(100% - 32px));margin:auto;padding:20px 0 40px}
.sp-mobile-menu__inner>a{padding:13px 4px;border-bottom:1px solid #e8eef5;color:#173b65;text-decoration:none;font-weight:700}
.sp-mobile-menu__inner>strong{padding:20px 4px 8px;color:#1768db;font-size:11px;letter-spacing:.13em;text-transform:uppercase}
.sp-menu-open{overflow:hidden}

/* prevent obsolete header rules from leaking into the new chrome */
.sp-header .brand,.sp-header .engine-nav,.sp-header .header-menu-toggle{all:unset}

.sp-footer{margin-top:72px;background:#123b68;color:#fff}
.sp-footer__grid{display:grid;grid-template-columns:1.45fr .65fr 1fr;gap:64px;padding-block:54px}
.sp-brand--footer{color:#fff}.sp-brand--footer .sp-brand__copy small{color:#bfd0e3}
.sp-footer__about p,.sp-footer__col p{max-width:430px;margin:18px 0 0;color:#c8d7e7;font-size:14px;line-height:1.65}
.sp-footer__col{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.sp-footer__col>strong{margin-bottom:5px;color:#fff;font-size:12px;letter-spacing:.1em;text-transform:uppercase}
.sp-footer__col a{color:#dce8f4;text-decoration:none;font-size:14px}.sp-footer__col a:hover{color:#fff;text-decoration:underline}
.sp-footer__bottom{display:flex;justify-content:space-between;gap:20px;padding-block:20px;border-top:1px solid rgba(255,255,255,.14);color:#b9cce0;font-size:12px}

/* Article readability and action hierarchy */
.engine-page{width:min(1180px,calc(100% - 40px));padding-top:34px}
.engine-breadcrumbs{margin-bottom:20px;color:#718399}.engine-breadcrumbs a:hover{color:#1768db}
.engine-layout{grid-template-columns:minmax(0,820px) 290px;justify-content:center;gap:28px}
.engine-article{padding:clamp(28px,4vw,54px);overflow:hidden}
.engine-article h1,.hub-hero h1{max-width:15ch;letter-spacing:-.035em}
.engine-kicker{margin-bottom:14px}
.engine-kicker>span:first-child{color:#1768db}
.risk{font-size:11px;line-height:1;text-transform:none;letter-spacing:0}
.engine-banner{margin:24px 0 34px}
.engine-content{max-width:760px;margin-inline:auto;color:#29445f;font-size:17px;line-height:1.72}
.engine-content>p:first-child{font-size:19px;line-height:1.65;color:#173d68}
.engine-content h2{position:relative;margin:46px 0 18px;padding-top:3px;color:#12345b;font-size:28px;line-height:1.25;letter-spacing:-.02em}
.engine-content h2:before{content:"";position:absolute;left:-18px;top:6px;width:5px;height:28px;border-radius:6px;background:#ffc83d}
.engine-content h3{margin:32px 0 14px;color:#173b65;font-size:21px}
.engine-content ul,.engine-content ol{display:grid;gap:10px;margin:16px 0 24px;padding:0;list-style:none;counter-reset:item}
.engine-content li{position:relative;min-height:42px;padding:10px 14px 10px 46px;border:1px solid #e1e9f2;border-radius:12px;background:#f8fafc}
.engine-content ul>li:before{content:"✓";position:absolute;left:14px;top:10px;display:grid;place-items:center;width:23px;height:23px;border-radius:8px;background:#e8f2ff;color:#1768db;font-size:13px;font-weight:900}
.engine-content ol>li{counter-increment:item}
.engine-content ol>li:before{content:counter(item);position:absolute;left:13px;top:9px;display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:#1768db;color:#fff;font-size:12px;font-weight:900}
.engine-content .spravka-sources{margin-top:36px;padding:24px;border:1px solid #dce6f0;border-radius:18px;background:#f2f6fa}
.engine-content .spravka-sources h2:before{display:none}
.engine-content .spravka-sources ul{margin-bottom:14px}
.engine-content .spravka-sources li{background:#fff}
.side-card{padding:22px}.side-card> b{font:800 16px Onest,Arial;color:#12345b}
.side-card ul{display:grid;gap:10px;margin:14px 0 0;padding:0;list-style:none}.side-card li{margin:0!important}.side-card li a{display:block;padding:10px 0;border-top:1px solid #e3eaf2;text-decoration:none;line-height:1.35}.side-card li a:hover{color:#1768db}
.next-step{border:1px solid #cfe0f5}.next-step h2{font:800 25px/1.25 Onest,Arial;color:#12345b}
.route-groups{margin-top:48px}.route-groups>h2{font:800 32px/1.2 Onest,Arial;color:#12345b}
.route-group{box-shadow:none}.route-group h3{letter-spacing:.08em}
.hub-hero{grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);padding:clamp(30px,4vw,52px);box-shadow:0 18px 50px rgba(18,52,91,.07)}
.hub-hero>div>p{font-size:17px;line-height:1.65;color:#45617d}
.hub-next{width:min(820px,100%);margin:26px auto 0}
.hub-content{max-width:820px}

@media(max-width:980px){
 .sp-nav{display:none}.sp-mobile-toggle{display:block;justify-self:end}.sp-header__row{grid-template-columns:1fr auto;min-height:72px}.sp-mobile-menu{inset:72px 0 0}
 .sp-catalog__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .engine-layout{grid-template-columns:1fr}.engine-sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}
 .hub-hero{grid-template-columns:1fr}.hub-hero img{max-height:430px}
 .sp-footer__grid{grid-template-columns:1.2fr .8fr;gap:36px}.sp-footer__col:last-child{grid-column:1/-1}
}
@media(max-width:640px){
 .sp-shell,.engine-page{width:min(100% - 28px,1240px)}
 .sp-header__row{min-height:66px}.sp-brand img{width:42px;height:42px}.sp-brand__copy strong{font-size:14px}.sp-brand__copy small{display:none}.sp-mobile-menu{inset:66px 0 0}
 .sp-catalog__grid{grid-template-columns:1fr}
 .engine-article{padding:24px 19px}.engine-article h1,.hub-hero h1{max-width:none;font-size:clamp(34px,12vw,48px)}
 .engine-content{font-size:16px}.engine-content>p:first-child{font-size:17px}.engine-content h2{font-size:24px;margin-top:38px;padding-left:5px}.engine-content h2:before{left:-10px;height:24px}
 .engine-content li{padding-left:43px}
 .engine-sidebar{grid-template-columns:1fr}.route-groups__grid{grid-template-columns:1fr}
 .hub-hero{padding:22px}.hub-hero img{max-height:none}
 .sp-footer__grid{grid-template-columns:1fr;gap:30px;padding-block:42px}.sp-footer__col:last-child{grid-column:auto}.sp-footer__bottom{display:grid}
}

/* FINAL CLEAN OVERRIDES — single authoritative rendering layer */
html{scroll-behavior:smooth}body{min-width:320px}img,svg,video{max-width:100%;height:auto}main{display:block}.container{width:min(1180px,calc(100% - 40px));margin-inline:auto}.section{padding:clamp(56px,7vw,92px) 0}.section--tinted{background:#edf4fb}.surface-card{display:block;background:#fff;border:1px solid #dce6f0;border-radius:22px;box-shadow:0 14px 40px rgba(18,52,91,.07)}.hover-lift{transition:transform .2s ease,box-shadow .2s ease}.hover-lift:hover{transform:translateY(-4px);box-shadow:0 20px 50px rgba(18,52,91,.12)}
.polished-home-hero{padding:0;background:linear-gradient(120deg,#e6f3ff 0%,#fff8df 100%)}.polished-home-hero .hero__grid{display:grid;grid-template-columns:minmax(0,.92fr) minmax(420px,1.08fr);align-items:center;gap:48px;padding:clamp(48px,6vw,88px) 0}.polished-home-hero .hero__copy{padding:0}.polished-home-hero h1{margin:12px 0 24px;max-width:12ch;font:800 clamp(46px,5.5vw,78px)/.98 Onest,Arial,sans-serif;letter-spacing:-.045em;color:#12345b}.polished-home-hero .hero__lead{max-width:620px;margin:0;color:#4d647d;font-size:18px;line-height:1.65}.polished-home-hero .hero__visual{margin:0;overflow:hidden;border-radius:28px;box-shadow:0 24px 70px rgba(18,52,91,.16)}.polished-home-hero .hero__visual img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}.eyebrow{display:block;color:#1768db;font-size:11px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}.hero-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin:28px 0 18px}.hero-search input{min-width:0;padding:16px 18px;border:1px solid #cbd9e8;border-radius:14px;background:#fff;font:500 15px Manrope,Arial}.hero-search button{padding:0 22px;border:0;border-radius:14px;background:#1768db;color:#fff;font:800 14px Manrope,Arial}.hero__trust{display:flex;flex-wrap:wrap;gap:8px}.hero__trust span{padding:8px 11px;border:1px solid #d7e4f2;border-radius:999px;background:rgba(255,255,255,.78);color:#365573;font-size:12px;font-weight:800}.section-head{margin-bottom:28px}.section-head h2{margin:8px 0 10px;font:800 clamp(34px,4vw,52px)/1.05 Onest,Arial;color:#12345b}.section-head p{margin:0;color:#61758b;font-size:16px}.cards-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.direction-card{overflow:hidden;padding-bottom:22px;text-decoration:none;color:#12345b}.direction-card__media{margin:0 0 20px;overflow:hidden}.direction-card__media img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover}.direction-card h3,.direction-card p,.direction-card__link{margin-left:22px;margin-right:22px}.direction-card h3{margin-top:0;margin-bottom:8px;font:800 22px/1.2 Onest,Arial}.direction-card p{min-height:72px;color:#61758b;line-height:1.55}.direction-card__link{color:#1768db;font-weight:800}.categories-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.category-card{display:grid;grid-template-columns:64px 1fr;align-items:center;gap:14px;padding:16px;text-decoration:none;color:#12345b}.category-card__icon{display:grid;place-items:center;width:58px;height:58px;border:1px solid #e0e9f2;border-radius:16px;background:#f8fbff}.category-card__icon img{max-width:42px;max-height:42px}.category-card__title{display:block;font:800 16px/1.25 Onest,Arial}.category-card__count{display:block;margin-top:5px;color:#74869a;font-size:12px}.steps-panel{padding:clamp(28px,4vw,48px);border:1px solid #dce6f0;border-radius:26px;background:linear-gradient(135deg,#fff,#edf6ff)}
/* Internal pages */
.engine-page{margin-inline:auto}.hub-hero img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover}.engine-content img{display:block;max-width:100%;height:auto;border-radius:16px}.engine-content p,.engine-content li{overflow-wrap:anywhere}.risk--critical,.risk--Критичний\ ризик{background:#fff0ee;color:#c6332c}.risk--high,.risk--Підвищений\ ризик{background:#fff7dd;color:#805700}
@media(max-width:980px){.polished-home-hero .hero__grid{grid-template-columns:1fr;gap:30px}.polished-home-hero h1{max-width:14ch}.cards-grid,.categories-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.container{width:min(100% - 28px,1180px)}.polished-home-hero .hero__grid{padding:38px 0}.polished-home-hero h1{font-size:42px}.hero-search{grid-template-columns:1fr}.hero-search button{padding:15px}.cards-grid,.categories-grid{grid-template-columns:1fr}.section{padding:52px 0}.direction-card p{min-height:0}.sp-shell{width:min(100% - 28px,1240px)}}

/* Never hide essential content when JavaScript is delayed or unavailable. */
.reveal{opacity:1!important;transform:none!important;visibility:visible!important}
