/* ============================================================
   AI Адаптація Україна — стилі / styles
   ============================================================ */

:root {
  --blue: #0057B8;
  --blue-dark: #00448F;
  --yellow: #FFD700;
  --green: #1E7A46;
  --ink: #0D1B2A;
  --muted: #4A5A6E;
  --bg: #F6F8FB;
  --soft: #EAF1FA;
  --border: #DCE6F2;
  /* Межа інтерактивних елементів. --border дає 1.26:1 на білому, а WCAG 1.4.11
     вимагає 3:1 для меж, які визначають межі компонента. #6E7F94 = 4.0:1.
     --border лишається для суто декоративних ліній. */
  --border-input: #6E7F94;
  --white: #FFFFFF;
  /* ---- Семантичні токени ----
     Усе, що має змінюватися в режимі високого контрасту, іменується тут.
     Раніше кольори темних поверхонь були вписані шістнадцятковими числами
     просто в правила, тому режим контрасту доводилося чинити точковими
     селекторами — і один із них (.footer__legal) зробив застереження
     чорним на темному тлі, тобто 1.21:1. Тепер режим перевизначає токени,
     а не окремі абзаци. */
  --surface: #FFFFFF;          /* основний фон */
  --surface-alt: #F6F8FB;      /* фон секцій */
  --surface-dark: #0D1B2A;     /* фон підвала і темних секцій */
  --text-on-dark: #C4D2E4;     /* текст на темних поверхнях */
  --text-on-dark-strong: #FFFFFF;
  --text-on-dark-quiet: #AEBED4;
  --link-on-dark: #BFD3F0;
  --link-on-dark-hover: #FFFFFF;
  --link-visited: #6B21A8;
  --status-err: #B91C1C;    /* 5.66:1 на #FDECEC; #DC2626 давав 4.23 */
  --status-err-bg: #FDECEC;
  --status-err-border: #F4C4C4;
  --status-ok-bg: #EAF7EF;
  --status-ok-border: #BFE6CE;
  --placeholder: #5E6E80;   /* 5.23:1 на білому; #6E7F94 давав 4.10 */
  --focus-ring: #FFD700;       /* контур фокуса */
  --focus-halo: rgba(16, 32, 51, 0.55);       /* ореол на світлому */
  --focus-halo-dark: rgba(255, 255, 255, 0.55); /* ореол на темному */

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 26px rgba(16, 32, 51, 0.07);
  --shadow-lg: 0 16px 44px rgba(16, 32, 51, 0.12);
  --maxw: 1160px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Ukrainian flag accents */
.flag-bar { height: 6px; background: linear-gradient(to bottom, #0057B8 0, #0057B8 50%, #FFD700 50%, #FFD700 100%); }
.ua-flag {
  display: inline-block; width: 24px; height: 15px; border-radius: 3px;
  vertical-align: -2px; margin-right: 9px;
  background: linear-gradient(to bottom, #0057B8 0, #0057B8 50%, #FFD700 50%, #FFD700 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}
.eyebrow--flag { display: inline-flex; align-items: center; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  /* rem, а не px: інакше кнопка A+ (html.fs-1..3 змінює кореневий розмір)
     не збільшує текст, який успадковує розмір від body. До 07.08.2026 було
     18px, і сім типів елементів — кроки «Як це працює», примітки, телефон
     у підвалі — не масштабувалися взагалі. */
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  line-height: 1.2; color: var(--ink); margin: 0 0 .5em;
  /* Довгі українські слова («використовувати», «повсякденне») при 140%
     кореневого шрифта не влазять у 296 px контейнера на екрані 320 px
     і виштовхують сторінку вбік. Дозволяємо перенос усередині слова —
     це краще, ніж горизонтальне прокручування або обрізаний текст. */
  /* hyphens: auto ТУТ БУВ і рвав слова всередині — «використову-вати».
     Прибрано. overflow-wrap: break-word спрацьовує лише тоді, коли слово
     інакше не влазить у рядок узагалі, і не ставить дефіса. */
  overflow-wrap: break-word;
  hyphens: none;
  /* Рівномірні рядки замість «хвоста» з одного слова. */
  text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
/* Те саме для довгих слів у звичайному тексті й посиланнях. */
p, li, td, th, dd, dt, figcaption, label, .btn { overflow-wrap: break-word; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

/* a11y */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: 8px; z-index: 200; transition: top .2s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }
::placeholder { color: var(--placeholder); opacity: 1; }
main a:visited:not(.btn) { color: var(--link-visited); }
.site-footer a:visited, .section--dark a:visited { color: var(--link-on-dark); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* buttons (min 44px tall) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2;
  min-height: 48px; padding: 13px 26px; border-radius: 12px;
  border: 2px solid transparent; cursor: pointer; text-align: center;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--blue-dark); }
.btn--outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--soft); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: #F2CB00; }
.btn--sm { min-height: 44px; padding: 9px 18px; font-size: .95rem; }
.btn--lg { min-height: 54px; padding: 15px 30px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
/* flex-wrap: шапка з шістьма пунктами меню, кнопкою пошуку, інструментами
   доступності й двома кнопками не влазить у 1280 px при 140% шрифта —
   виїжджала до 1400 px. Перенос на другий рядок кращий за прокрутку:
   нічого не зникає і нічого не обрізається. */
.header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; min-height: 70px; }
/* Логотипу дозволено стискатися, інакше на вузьких екранах шапка
   виштовхує вміст за межі viewport (було 490 px при 375 px). */
.logo { display: inline-flex; align-items: center; flex: 0 1 auto; min-width: 0; }
/* width:auto + height:auto + max-height зберігають пропорції SVG (300×72).
   Раніше height="44" без width давало 300×44 — і переповнення, і спотворення. */
.logo img { display: block; width: auto; height: auto; max-height: 44px; max-width: 100%; }
.logo:hover { text-decoration: none; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 12px 20px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--ink); font-weight: 600; font-size: .96rem; }
.main-nav a:hover { color: var(--blue); text-decoration: none; }
/* Інструменти доступності й бургер не стискаємо: вони мають лишатися
   не меншими за 44×44 px (WCAG 2.2 AA, Target Size). Стискається логотип. */
.header__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.lang-switch { display: inline-flex; align-items: center; gap: 6px; }
.lang-btn {
  background: none; border: none; font-family: inherit; font-weight: 700;
  font-size: .95rem; color: var(--muted); cursor: pointer;
  padding: 6px 8px; border-radius: 6px; min-height: 36px;
}
.lang-btn.is-active { color: var(--blue); }
.lang-sep { color: var(--border); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 46px; height: 46px; background: none; border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

.mobile-nav { border-top: 1px solid var(--border); background: #fff; }
.mobile-nav ul { list-style: none; margin: 0; padding: 12px 24px 20px; display: grid; gap: 4px; }
.mobile-nav a { display: block; padding: 13px 8px; color: var(--ink); font-weight: 600; border-radius: 8px; min-height: 44px; }
.mobile-nav a:hover { background: var(--bg); text-decoration: none; }

/* sections */
.section { padding: 72px 0; }
.section--alt { background: var(--bg); }
.section--dark { background: var(--surface-dark); color: var(--text-on-dark); }
.section--dark h2, .section--dark h3 { color: var(--text-on-dark-strong); }
.section--dark .prose p { color: var(--text-on-dark); }
.section--dark .checklist li { color: var(--text-on-dark); }
.section--dark .split__label { color: var(--text-on-dark-strong); }

.eyebrow {
  display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--blue); background: var(--soft);
  padding: 6px 14px; border-radius: 999px; margin: 0 0 18px;
}
.section__sub { font-size: 1.12rem; color: var(--muted); max-width: 820px; margin: -4px 0 30px; }
.prose { max-width: 820px; }
.prose p { color: var(--ink); }

.callout {
  background: #FFF8DB; border: 1px solid #F2DE8C; border-left: 5px solid var(--yellow);
  border-radius: var(--radius-sm); padding: 18px 22px; color: var(--ink);
  margin-top: 26px; font-size: .98rem;
}
.legal-note { font-size: .88rem; color: var(--muted); max-width: 720px; margin-top: 18px; }

/* hero */
.hero {
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(255,215,0,0.16), transparent 60%),
    radial-gradient(900px 600px at 0% 0%, rgba(0,87,184,0.10), transparent 55%);
  padding: 52px 0 64px;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.hero__lead { font-size: 1.2rem; color: var(--ink); font-weight: 500; }
.hero__desc { color: var(--muted); }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 26px; }
.badges { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.badges li {
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 16px; font-size: .92rem; font-weight: 600; box-shadow: var(--shadow);
}
.hero__media img { filter: drop-shadow(var(--shadow)); }

/* cards */
.cards { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 22px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--connect { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

.card--soft { background: var(--soft); border-color: transparent; box-shadow: none; display: flex; gap: 12px; align-items: flex-start; }
.card--soft p { color: var(--ink); }
.card--soft:hover { box-shadow: var(--shadow); transform: none; }
.card__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); flex-shrink: 0; margin-top: 7px; }

/* .card .card__num, а не .card__num: номер лежить у <p>, і правило
   `.card p` (0,1,1) перебивало одноклясовий селектор (0,1,0) — номер
   виходив сірим замість білого й без відступу. */
.card .card__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; background: var(--blue);
  color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 12px;
}
.cards--connect .card:nth-child(7) { grid-column: 2; }

.card--accent { border-top: 4px solid var(--blue); }
.cards--4 .card--accent:nth-child(2) { border-top-color: var(--yellow); }
.cards--4 .card--accent:nth-child(3) { border-top-color: var(--green); }
.cards--4 .card--accent:nth-child(4) { border-top-color: var(--ink); }

/* timeline */
/* minmax(0, 1fr) і тут: неявна доріжка grid теж має мінімум min-content
   і розсувається під найдовший вміст. Разом із min-width:0 на вкладеному
   блоці це прибирає останні 6 px переповнення при збільшеному шрифті. */
.timeline { list-style: none; margin: 38px 0 0; padding: 0; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.timeline__step > * { min-width: 0; }
.timeline__step {
  /* minmax(0, 1fr), а не 1fr: типове «1fr» дорівнює minmax(auto, 1fr), і його
     мінімум — це min-content вмісту. Через це доріжка розсувалася ширше
     за картку, і при збільшеному шрифті сторінка виїжджала вбік
     (326 px при екрані 320). */
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; align-items: start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.section--alt .timeline__step { background: #fff; }
.timeline__num {
  width: 56px; height: 56px; border-radius: 50%; background: var(--blue); color: #fff;
  font-weight: 800; font-size: 1.4rem; display: flex; align-items: center; justify-content: center;
}
.timeline__body p:last-child { margin: 0; color: var(--muted); }

/* checklist */
.checklist { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.checklist--2col { grid-template-columns: 1fr 1fr; gap: 10px 28px; margin-top: 26px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px;
  background: var(--green); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 13px; background-position: center; background-repeat: no-repeat;
}

/* split (business) */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; align-items: start; }
.split__label { font-weight: 700; margin-bottom: 10px; }
.split__aside { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.split__aside .btn { margin-top: 20px; width: 100%; }

/* chips */
.chips { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chips li { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: .96rem; box-shadow: var(--shadow); }

/* faq */
.faq { margin-top: 28px; display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq__item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 1.04rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.6rem; font-weight: 400; color: var(--blue); line-height: 1; flex-shrink: 0; }
.faq__item[open] summary::after { content: "–"; }
.faq__a { padding: 0 22px 20px; }
.faq__a p { margin: 0; color: var(--muted); }

/* form */
.form { margin-top: 30px; display: grid; gap: 18px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__row { display: grid; gap: 7px; }
.form__row label { font-weight: 600; font-size: .98rem; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"],
.form input[type="search"], .form input[type="password"], .form select, .form textarea {
  font-family: inherit; font-size: 1rem; padding: 13px 15px; min-height: 48px;
  border: 1.5px solid var(--border-input); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); width: 100%;
}
/* Чекбокси й радіо: 13×13 за замовчуванням — це нижче за 24×24 із WCAG 2.2 (2.5.8).
   Ціль ТЗ — 44×44, тому додаємо зону навколо через сам елемент. */
.form input[type="checkbox"], .form input[type="radio"],
.form__row--check input[type="checkbox"], .chk input[type="checkbox"] {
  width: 24px; height: 24px; min-width: 24px; margin: 10px;
  accent-color: var(--blue);
}
.form__row--check, .chk { align-items: center; }
.chk { display: flex; gap: 4px; min-height: 44px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); }
.form textarea { resize: vertical; min-height: 90px; }
.form__fieldset { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; }
.form__fieldset legend { font-weight: 600; font-size: .98rem; padding: 0 6px; }
.chk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 6px; }
.chk { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: .96rem; cursor: pointer; }
.chk input { width: 22px; height: 22px; }
.form__row--check { display: grid; grid-template-columns: 24px 1fr; align-items: start; gap: 12px; }
.form__row--check input { width: 24px; height: 24px; margin-top: 2px; }
.form__row--check label { font-weight: 400; font-size: .94rem; color: var(--muted); }
.form [aria-invalid="true"] { border-color: #DC2626; }
.form__status { font-weight: 600; margin: 0; }
.form__status.is-ok { color: var(--green); }
.form__status.is-err { color: var(--status-err); }
.form__warning { background: #FFF8DB; border: 1px solid #F2DE8C; border-radius: var(--radius-sm); padding: 12px 16px; margin: 0; font-size: .9rem; color: var(--ink); }

/* footer */
.site-footer { background: var(--surface-dark); color: var(--text-on-dark); padding: 56px 0 26px; }
.site-footer h2 { color: var(--text-on-dark-strong); font-size: 1.1rem; margin-bottom: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer__grid--2 { grid-template-columns: 1.8fr 1fr; }
.footer__about .logo { margin-bottom: 14px; }
.footer__about p { color: var(--text-on-dark-quiet); font-size: .96rem; }
.footer__legal { font-size: .85rem; color: #8497B3; }
.footer__contacts ul, .footer__links ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--link-on-dark); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 36px; padding-top: 20px; }
.footer__bottom p { margin: 0; font-size: .9rem; color: #8497B3; }
.lang-switch--footer .lang-btn { color: #AEBED4; }
.lang-switch--footer .lang-btn.is-active { color: #fff; }
.lang-switch--footer .lang-sep { color: rgba(255,255,255,0.3); }

/* ---------- resources page ---------- */
.res-toolbar { display: grid; gap: 16px; margin: 26px 0 28px; }
.res-search { display: flex; gap: 10px; }
.res-search input {
  flex: 1; font-family: inherit; font-size: 1rem; padding: 13px 16px; min-height: 50px;
  border: 1.5px solid var(--border); border-radius: 12px;
}
.res-search input:focus { border-color: var(--blue); }
.res-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  font-family: inherit; font-weight: 600; font-size: .92rem; cursor: pointer;
  background: #fff; border: 1.5px solid var(--border); color: var(--ink);
  padding: 8px 14px; border-radius: 999px; min-height: 44px;
}
.filter-btn.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.res-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.res-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px;
}
.res-card h3 { margin: 0; font-size: 1.08rem; }
.res-card .res-phone { font-weight: 800; color: var(--blue); font-size: 1.15rem; }
.res-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.res-card a { font-weight: 600; word-break: break-word; }
.res-tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; }
.res-tag { font-size: .76rem; font-weight: 600; color: var(--blue); background: var(--soft); padding: 3px 10px; border-radius: 999px; }
.res-empty { padding: 30px; text-align: center; color: var(--muted); }
.res-warning { background: #FFF8DB; border: 1px solid #F2DE8C; border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 24px; font-size: .95rem; }

/* two-column panels */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.panel--muted { background: var(--bg); box-shadow: none; }
.section--dark .panel { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); }
.section--dark .panel h3 { color: var(--text-on-dark-strong); }
/* .caption на темній поверхні: --muted (#4A5A6E) на #0D1B2A дає ~1.9:1.
   Пропущено при першій правці — знайдено axe вже на живому сайті. */
.section--dark .caption, .site-footer .caption { color: var(--text-on-dark); border-left-color: var(--focus-ring); }
.crosslist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.crosslist li { position: relative; padding-left: 30px; color: var(--muted); }
.crosslist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px;
  background: #C2410C; border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}
.tasks__head { margin: 44px 0 0; }
.caption { color: var(--muted); font-style: italic; border-left: 3px solid var(--yellow); padding-left: 16px; margin-top: 24px; }
.caption--center { border: none; text-align: center; font-style: normal; font-size: 1.08rem; max-width: 760px; margin: 34px auto 0; padding: 0; }
.timeline__step--green .timeline__num { background: var(--green); }

/* responsive */
@media (max-width: 1000px) {
  .cols-2 { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header__actions .btn { display: none; }
  .hero__grid, .split { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 560px; }
  .cards--3, .cards--4, .cards--connect { grid-template-columns: repeat(2, 1fr); }
  .cards--connect .card:nth-child(7) { grid-column: auto; }
  .res-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  body { font-size: 1.0625rem; }
  .section { padding: 52px 0; }
  .container { padding: 0 16px; }
  .logo img { max-height: 38px; }
  .cards--2, .cards--3, .cards--4, .cards--connect, .res-grid { grid-template-columns: 1fr; }
  .checklist--2col { grid-template-columns: 1fr; }
  .form__grid, .chk-grid { grid-template-columns: 1fr; }
  .timeline__step { grid-template-columns: 48px 1fr; gap: 14px; padding: 18px; }
  .timeline__num { width: 44px; height: 44px; font-size: 1.15rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__buttons .btn, .btn--lg { width: 100%; }
}

/* Найвужчі екрани (320–400 px). Області натискання лишаються 44×44,
   місце звільняє логотип і поля контейнера. */
@media (max-width: 400px) {
  .container { padding: 0 12px; }
  .header__inner { gap: 10px; }
  .logo img { max-height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .btn:hover, .card:hover { transform: none; }
}

/* ============================================================
   PRO POLISH — appended enhancements (additive, override-safe)
   ============================================================ */
:root {
  --maxw: 1180px;
  --shadow: 0 6px 22px rgba(16, 32, 51, 0.06);
  --shadow-lg: 0 22px 54px rgba(16, 32, 51, 0.13);
  --shadow-sm: 0 2px 8px rgba(16, 32, 51, 0.05);
}

/* fix: sticky-header anchor offset for click + keyboard navigation */
html { scroll-padding-top: 96px; }

/* fix: focus indicator with guaranteed contrast on light AND dark surfaces (WCAG 2.2) */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--focus-halo);
  border-radius: 6px;
}
.section--dark :focus-visible,
.site-footer :focus-visible { box-shadow: 0 0 0 5px var(--focus-halo-dark); }

/* refined typographic rhythm */
body { line-height: 1.62; letter-spacing: -0.002em; }
.section { padding: 84px 0; }
@media (max-width: 620px) { .section { padding: 56px 0; } }

/* consistent heading accent under every in-page section title */
main .section > .container > h2,
main .section > .container > .section__head > h2,
main .section .split__main > h2 { position: relative; padding-bottom: 14px; margin-bottom: .7em; }
main .section > .container > h2::after,
main .section > .container > .section__head > h2::after,
main .section .split__main > h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 52px; height: 4px; border-radius: 3px; background: var(--yellow);
}

/* eyebrow + badges polish */
.eyebrow { box-shadow: var(--shadow-sm); }
.badges li { transition: transform .15s ease, box-shadow .15s ease; }
.badges li:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* hero: calmer mesh + framed media */
.hero {
  background:
    radial-gradient(820px 440px at 92% -12%, rgba(255,215,0,0.13), transparent 62%),
    radial-gradient(900px 600px at -6% -4%, rgba(0,87,184,0.09), transparent 56%),
    linear-gradient(180deg, #FCFDFF, var(--white));
}
.hero__media {
  background: #fff; border: 1px solid var(--border); border-radius: 22px;
  padding: 18px; box-shadow: var(--shadow-lg);
}
.hero__media img { filter: none; }

/* buttons: press feedback + crisper primary */
.btn { transition: transform .14s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease; }
.btn:active { transform: translateY(0) scale(.99); }
.btn--primary { box-shadow: 0 8px 20px rgba(0, 87, 184, 0.22); }
.btn--primary:hover { box-shadow: 0 12px 26px rgba(0, 87, 184, 0.28); }
.btn--outline:hover { border-color: var(--blue-dark); }

/* cards: softer borders, clearer hover, accent rail on plain cards */
.card { border-color: #E4ECF6; }
.card:hover { border-color: #CFE0F4; }
.cards--3 > .card, .cards--connect > .card { position: relative; overflow: hidden; }
.cards--3 > .card::before, .cards--connect > .card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--blue), var(--green)); opacity: 0; transition: opacity .18s ease;
}
.cards--3 > .card:hover::before, .cards--connect > .card:hover::before { opacity: 1; }
.card--soft::before, .card--accent::before { display: none; }

/* chips hover */
.chips li { transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease; }
.chips li:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #CFE0F4; }

/* ethics / trust block */
.ethics-note {
  margin-top: 26px; background: #fff; border: 1px solid var(--border);
  border-left: 5px solid var(--blue); border-radius: var(--radius-sm);
  padding: 18px 22px; color: var(--ink); font-size: .98rem; box-shadow: var(--shadow-sm);
}
.ethics-note strong { color: var(--blue-dark); }

/* form: clearer focus + valid states.
   Тільки :focus (миша) — інакше це правило перебивало box-shadow глобального
   :focus-visible і клавіатурний фокус на полях втрачав темний ореол,
   лишаючись жовтим контуром 1.4:1 на білому. */
.form input:focus:not(:focus-visible),
.form select:focus:not(:focus-visible),
.form textarea:focus:not(:focus-visible) {
  box-shadow: 0 0 0 4px rgba(0, 87, 184, 0.12);
}
.form__status.is-ok { background: var(--status-ok-bg); border: 1px solid var(--status-ok-border); border-radius: 10px; padding: 12px 16px; }
.form__status.is-err { background: var(--status-err-bg); border: 1px solid var(--status-err-border); border-radius: 10px; padding: 12px 16px; }

/* footer link hover */
.site-footer a:hover { color: var(--link-on-dark-hover); }

/* ============================================================
   Виправлення за аудитом 07.08.2026
   ============================================================ */

/* Таблиці: розмітка <div class="table-wrap"> існувала в impact.php і pilot.php,
   але правила для неї в CSS НЕ БУЛО взагалі. Через це таблиця завширшки 973 px
   виштовхувала сторінку на вузькому екрані. Прокручування всередині контейнера,
   а не всієї сторінки; tabindex робить контейнер досяжним із клавіатури. */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.table-wrap:focus-visible { outline: 3px solid var(--focus-ring); }
.data-table { border-collapse: collapse; min-width: 100%; }

/* Банер сторінки: обмежуємо шириною контейнера, а не фіксованими пікселями. */
.page-banner {
  max-width: min(820px, 100%);
  height: auto;
  border-radius: var(--radius);
  margin: 10px 0 6px;
}

/* WCAG 1.4.1: посилання всередині тексту не можуть вирізнятися лише кольором.
   Кнопки, навігація, картки й підвал мають інші ознаки, тому їх виключаємо. */
main p > a:not(.btn),
main li > a:not(.btn),
.callout a, .caption a, .form__hint a, .ethics-note a,
.breadcrumbs a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
main p > a:not(.btn):hover,
main li > a:not(.btn):hover { text-decoration-thickness: 2px; }

/* ТЗ р.11: режим зменшення анімації. Медіазапиту не було взагалі,
   при цьому scroll-behavior: smooth стояв глобально. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover { transform: none; }
}

/* ============================================================
   Нова головна (ТЗ від 07.08.2026, §5 і §7)
   Усе на семантичних токенах — режим високого контрасту
   підхоплює це автоматично, без окремих правил.
   ============================================================ */

.eyebrow {
  font-size: .95rem; font-weight: 700; letter-spacing: .02em;
  color: var(--blue); margin: 0 0 14px; text-transform: none;
}

/* --- візуал першого екрана --- */
.hero-visual { margin: 0; }
.hero-visual__svg { width: 100%; height: auto; max-width: 480px; color: var(--blue); }
.hero-visual__dots circle { fill: var(--blue); opacity: .55; }
.hero-visual__dots circle:nth-child(odd) { fill: var(--green); opacity: .5; }
.hero-visual__core { fill: var(--soft); }
.hero-visual__ring { fill: none; stroke: var(--blue); stroke-width: 2.5; }
.hero-visual__label { fill: var(--ink); font-size: 15px; font-weight: 700; font-family: var(--font); }
.hero-visual__caption {
  font-size: .88rem; color: var(--muted); margin-top: 10px;
  max-width: 480px; font-style: italic;
}

/* --- ланцюжок роботи спільноти --- */
.chain { margin: 26px 0 30px; overflow-x: auto; }
.chain__svg { min-width: 760px; width: 100%; height: auto; color: var(--blue); }
.chain__node { fill: var(--soft); stroke: var(--blue); stroke-width: 2; }
.chain__num { fill: var(--ink); font-size: 17px; font-weight: 800; font-family: var(--font); }
.chain__label { fill: var(--muted); font-size: 14px; font-family: var(--font); }
.chain__caption { font-size: .88rem; color: var(--muted); margin-top: 8px; font-style: italic; }

/* --- картка матеріалу --- */
.blog-card__cover { width: 100%; height: auto; border-radius: var(--radius-sm); margin: -4px 0 14px; }
/* Смуга рубрики. Не обкладинка й не вдає її: несе одну інформацію —
   до якого напряму належить матеріал. */
/* Смуга — <span>, а не <p>. Спершу вона була абзацом, і її ловило
   правило .card p: у звичайному режимі текст ставав сірим на синьому
   (1.02:1), у високому контрасті — чорним на синьому (1.98:1).
   Підвищувати специфічність означало б воювати з кожним новим правилом
   для .card p, тому змінено сам тег. */
.blog-card__band {
  display: inline-block; margin: 0 0 12px; padding: 5px 12px;
  border-radius: 999px; font-size: .82rem; font-weight: 700;
  letter-spacing: .02em; color: var(--white); background: var(--blue);
}
.blog-card__band--shi    { background: var(--blue); }
.blog-card__band--adapt  { background: var(--green); }
.blog-card__band--dosvid { background: var(--blue-dark); }
.blog-card__band--gotove { background: var(--ink); }
/* У режимі високого контрасту --white лишається білим, а тло — токенами,
   тому окремих правил не потрібно. */
.blog-card__for { font-size: .93rem; color: var(--muted); margin: 0 0 6px; }
.blog-card__unchecked { color: var(--status-err); font-weight: 600; }

/* --- список ситуацій --- */
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; }
.tag-list a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 8px 16px; border: 1.5px solid var(--border-input);
  border-radius: 999px; color: var(--ink); font-size: .96rem;
}
.tag-list a:hover { background: var(--soft); text-decoration: none; border-color: var(--blue); }

.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section__sub { max-width: 760px; }

@media (max-width: 1000px) {
  .hero-visual { margin-top: 26px; }
  .hero-visual__svg { max-width: 380px; }
}

/* ТЗ P0-1: заголовки карток і плиток не розриваються всередині слова.
   Заголовку дозволено бути ширшим за колонку, а не ламатися. */
.card h3, .blog-card h3, .tile__title, .timeline__step h3 {
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
  width: auto;
}

/* Пошук компактною кнопкою в шапці (ТЗ §8): він більше не рівноправний
   пункт меню, але й не зникає. */
.search-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 8px 14px;
  border: 1.5px solid var(--border-input); border-radius: 10px;
  color: var(--ink); font-weight: 600; font-size: .95rem; flex-shrink: 0;
}
.search-btn:hover { background: var(--soft); border-color: var(--blue); text-decoration: none; }
.search-btn[aria-current] { border-color: var(--blue); background: var(--soft); }
@media (max-width: 1000px) { .search-btn__text { display: none; } }

/* ============================================================
   Плитки «Що вам потрібно» (ТЗ від 08.08.2026, §3 секція 3)
   ============================================================
   Вимоги ТЗ дослівно: вертикальна структура, width:auto для заголовка,
   hyphens:none, без вузької лівої колонки, 3/2/1 колонки, 44×44,
   видимий фокус, уся плитка з клавіатури.

   Клікабельна вся плитка, але посилання одне: ::after розтягує його
   на весь блок. Так у дереві доступності лишається одна ціль, а не
   картка з посиланням усередині. */
.tiles {
  list-style: none; margin: 26px 0 0; padding: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tile { position: relative; display: flex; }
.tile__link {
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
  width: 100%; min-height: 132px; padding: 22px 24px;
  border: 1.5px solid var(--border-input); border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
  transition: border-color .2s ease, background-color .2s ease, transform .15s ease;
}
.tile__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.tile__link:hover { border-color: var(--blue); background: var(--soft); text-decoration: none; transform: translateY(-2px); }
.tile__link:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; box-shadow: 0 0 0 5px var(--focus-halo); }

/* Заголовок плитки: width:auto і жодного переносу всередині слова. */
.tile__title {
  width: auto;
  font-size: 1.12rem; font-weight: 700; line-height: 1.25; color: var(--ink);
  hyphens: none; overflow-wrap: normal; word-break: normal;
}
.tile__desc { font-size: .95rem; color: var(--muted); line-height: 1.5; }

@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px)  { .tiles { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) { .tile__link:hover { transform: none; } }

/* Порядковий номер у картці. Селектор із .card — щоб перебити `.card p`
   (див. коментар вище): інакше номер сірий і без відступу. */
.card .card__num {
  width: 34px; height: 34px; margin: 0 0 10px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--soft); color: var(--blue);
  font-weight: 800; font-size: .95rem;
}
