:root {
  --blue: #0057ff;
  --blue-dark: #0038a8;
  --yellow: #ffd500;
  --ink: #10131a;
  --paper: #f7f8fc;
  --white: #fff;
  --muted: #5d6575;
  --line: #cdd3df;
  --amber: #f2a900;
  --red: #d32626;
  --green: #147a4c;
  --shadow: 8px 8px 0 #10131a;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "IBM Plex Sans", "Arial Nova", Arial, sans-serif; line-height: 1.6; overflow-wrap: anywhere; }
img, svg, video, iframe { max-width: 100%; height: auto; }
a { color: var(--blue-dark); text-underline-offset: .16em; }
a:hover { color: var(--blue); }
:focus-visible { outline: 4px solid var(--yellow); outline-offset: 3px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 1000; padding: .8rem 1rem; color: #fff; background: var(--ink); }
.skip-link:focus { top: 1rem; }
.container { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }

.site-header { background: var(--ink); color: #fff; border-bottom: 5px solid var(--yellow); }
.header-grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; padding: 1rem 0; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.brand svg { width: 38px; flex: 0 0 38px; }
.primary-nav { display: flex; flex-wrap: wrap; gap: .4rem .9rem; justify-content: center; }
.primary-nav a { color: #fff; font-weight: 700; text-decoration: none; font-size: .9rem; }
.primary-nav a:hover { color: var(--yellow); }
.commercial-cta { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: .7rem 1rem; background: var(--yellow); color: var(--ink); border: 2px solid var(--yellow); font-weight: 900; text-decoration: none; box-shadow: 4px 4px 0 var(--blue); }
.commercial-cta:hover { color: var(--ink); background: #ffe34f; transform: translate(-1px,-1px); }
.licence-ticker { background: var(--blue); color: #fff; border-bottom: 1px solid #6f9cff; }
.ticker-inner { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; padding: .55rem 0; font-size: .82rem; font-weight: 800; letter-spacing: .025em; }
.ticker-inner span::before { content: "◆"; color: var(--yellow); margin-right: .45rem; }

main { min-height: 58vh; }
.hero { position: relative; isolation: isolate; padding: clamp(3.4rem, 9vw, 7rem) 0 4rem; background: var(--white); overflow: hidden; }
.hero::after { content: ""; position: absolute; z-index: -1; width: 420px; aspect-ratio: 1; right: -90px; top: -120px; background: conic-gradient(from 35deg, var(--yellow) 0 22%, transparent 22% 36%, var(--blue) 36% 61%, transparent 61%); border-radius: 50%; opacity: .94; }
.eyebrow { display: inline-flex; gap: .5rem; align-items: center; margin: 0 0 1rem; padding: .35rem .65rem; background: var(--yellow); border: 2px solid var(--ink); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
h1, h2, h3 { line-height: 1.1; text-wrap: balance; }
h1 { max-width: 860px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.45rem, 7vw, 5.9rem); letter-spacing: -.045em; }
h2 { margin: 0 0 1rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.8rem, 4vw, 3.15rem); }
h3 { font-size: 1.25rem; }
.lead { max-width: 780px; margin: 1.35rem 0; color: #343a46; font-size: clamp(1.08rem, 2vw, 1.35rem); }
.hero-actions, .section-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.5rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: .72rem 1rem; border: 2px solid var(--ink); background: var(--ink); color: #fff; font-weight: 900; text-decoration: none; box-shadow: 5px 5px 0 var(--yellow); }
.button:hover { color: #fff; background: var(--blue); }
.button.alt { background: #fff; color: var(--ink); box-shadow: 5px 5px 0 var(--blue); }
.button.alt:hover { color: var(--ink); background: var(--yellow); }
.date-line { margin-top: 2rem; color: var(--muted); font-weight: 800; }

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.blue { background: var(--blue); color: #fff; }
.section.ink { background: var(--ink); color: #fff; }
.section.yellow { background: var(--yellow); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); gap: 2rem; align-items: end; margin-bottom: 2rem; }
.section-head p { margin: 0; }

.legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.legend-item { padding: 1.25rem; border: 2px solid var(--ink); background: #fff; box-shadow: 5px 5px 0 var(--ink); }
.legend-item::before { content: ""; display: block; width: 54px; height: 12px; margin-bottom: .8rem; background: var(--signal); clip-path: polygon(0 0,100% 0,86% 50%,100% 100%,0 100%,14% 50%); }
.legend-item.green { --signal: var(--green); }
.legend-item.amber { --signal: var(--amber); }
.legend-item.red { --signal: var(--red); }
.legend-item h3 { margin: 0 0 .45rem; }
.legend-item p { margin: 0; color: var(--muted); }

.brand-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; }
.brand-card { position: relative; display: grid; grid-template-rows: auto 1fr auto; min-width: 0; padding: 1.2rem; background: #fff; border: 2px solid var(--ink); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; overflow: hidden; }
.brand-card::after { content: ""; position: absolute; width: 46px; height: 46px; right: -23px; top: -23px; transform: rotate(45deg); background: var(--card-signal, var(--amber)); }
.brand-card[data-signal="red"] { --card-signal: var(--red); }
.brand-card[data-signal="green"] { --card-signal: var(--green); }
.brand-card:hover { color: var(--ink); transform: translate(-2px,-2px); box-shadow: 11px 11px 0 var(--blue); }
.card-top { display: flex; gap: 1rem; align-items: center; }
.brand-logo { width: 64px; height: 64px; flex: 0 0 64px; object-fit: contain; padding: .35rem; background: #f0f2f7; border: 1px solid var(--line); border-radius: 14px; }
.brand-card h3 { margin: 0; font-size: 1.35rem; }
.domain { color: var(--muted); font: 700 .86rem/1.4 "IBM Plex Mono", Consolas, monospace; overflow-wrap: anywhere; }
.card-verdict { margin: 1rem 0; color: #343a46; }
.signal-pill { display: inline-flex; width: fit-content; gap: .5rem; align-items: center; padding: .35rem .58rem; border: 2px solid currentColor; font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.signal-pill::before { content: ""; width: .7rem; height: .7rem; background: currentColor; border-radius: 50%; }
.signal-pill.amber { color: #8a5900; }
.signal-pill.red { color: var(--red); }
.signal-pill.green { color: var(--green); }

.ai-disclosure { position: relative; padding: clamp(1.5rem, 4vw, 2.8rem); border: 3px solid var(--ink); background: #fff; box-shadow: 10px 10px 0 var(--yellow); }
.ai-disclosure::before { content: "AI + правила"; position: absolute; top: -1rem; left: 1.2rem; padding: .25rem .7rem; color: #fff; background: var(--blue); font-weight: 900; }
.ai-disclosure p:last-child { margin-bottom: 0; }

.page-hero { padding: 3.5rem 0 2.5rem; background: #fff; border-bottom: 2px solid var(--ink); }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; font-size: .88rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; align-items: start; }
.prose { max-width: 820px; }
.prose p, .prose li { font-size: 1.04rem; }
.prose h2 { margin-top: 2.7rem; }
.prose h3 { margin-top: 1.8rem; }
.callout { padding: 1.25rem; border-left: 8px solid var(--blue); background: #fff; box-shadow: 4px 4px 0 var(--ink); }
.callout.warn { border-color: var(--amber); }
.callout.danger { border-color: var(--red); }
.rail { position: sticky; top: 1rem; display: grid; gap: 1rem; }
.rail-card { padding: 1.15rem; background: #fff; border: 2px solid var(--ink); }
.rail-card h2, .rail-card h3 { margin-top: 0; font-size: 1.25rem; }
.checklist { padding-left: 1.3rem; }
.checklist li { margin-bottom: .6rem; }

.dossier { padding: 2.5rem 0 5rem; }
.dossier-head { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 1.35rem; align-items: center; }
.dossier-head .brand-logo { width: 110px; height: 110px; }
.dossier-head h1 { font-size: clamp(2.3rem, 6vw, 4.8rem); }
.verdict-block { margin: 2rem 0; padding: 1.3rem; border: 3px solid var(--ink); background: #fff; box-shadow: 8px 8px 0 var(--amber); }
.verdict-block[data-signal="red"] { box-shadow-color: var(--red); }
.verdict-block[data-signal="green"] { box-shadow-color: var(--green); }
.verdict-block h2 { font-size: 1.55rem; }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; margin: 1.5rem 0; }
.fact { padding: 1rem; border: 1px solid var(--line); background: #fff; min-width: 0; }
.fact dt { color: var(--muted); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.fact dd { margin: .35rem 0 0; font-weight: 800; overflow-wrap: anywhere; }
.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.evidence-card { margin: 0; padding: .75rem; border: 2px solid var(--ink); background: #fff; min-width: 0; }
.evidence-card img { display: block; width: 100%; aspect-ratio: 1.44; object-fit: cover; object-position: top; border: 1px solid var(--line); }
.evidence-card figcaption { margin-top: .75rem; color: var(--muted); font-size: .86rem; }
.decision-cta { margin: 2rem 0; padding: 1.5rem; color: #fff; background: var(--blue); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--yellow); }
.decision-cta h2 { font-size: 1.7rem; }
.decision-cta .commercial-cta { margin-top: .5rem; }

.directory-tools { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: end; margin-bottom: 1.5rem; }
.field { display: grid; gap: .35rem; }
label { font-weight: 900; }
input, select, textarea { width: 100%; min-height: 48px; padding: .7rem .8rem; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 0; font: inherit; }
textarea { min-height: 160px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
button { min-height: 48px; padding: .75rem 1.1rem; color: #fff; background: var(--ink); border: 2px solid var(--ink); font: 900 1rem/1 inherit; cursor: pointer; }
button:hover { background: var(--blue); }

.action-map { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; counter-reset: steps; }
.action-step { counter-increment: steps; padding: 1.2rem; border: 2px solid var(--ink); background: #fff; box-shadow: 5px 5px 0 var(--blue); }
.action-step::before { content: counter(steps, decimal-leading-zero); display: block; color: var(--blue); font: 900 2rem/1 Georgia,serif; }
.action-step h3 { margin: .5rem 0; }
.bounded-table { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; border: 2px solid var(--ink); }
table { width: 100%; max-width: 100%; border-collapse: collapse; font-size: .92rem; table-layout: fixed; }
th, td { padding: .75rem; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
th { background: var(--ink); color: #fff; text-align: left; }

.sitemap-list { columns: 2 280px; column-gap: 2.5rem; }
.sitemap-list li { break-inside: avoid; margin: .55rem 0; }
.policy-slot { min-height: 220px; padding: 1.4rem; border: 2px dashed var(--blue); background: #fff; }
.policy-slot::before { content: "Перевірений текст політики буде вставлено наступним ізольованим проходом."; display: block; margin-bottom: 1rem; color: var(--muted); font-size: .85rem; font-weight: 800; }

.site-footer { color: #fff; background: var(--ink); border-top: 5px solid var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; padding: 3rem 0; }
.footer-nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .7rem 1.4rem; }
.footer-nav a { color: #fff; }
.footer-note { padding: 1rem 0 1.5rem; border-top: 1px solid #434957; color: #c9ced7; font-size: .85rem; }

@media (max-width: 900px) {
  .header-grid { grid-template-columns: 1fr auto; }
  .primary-nav { grid-column: 1 / -1; justify-content: flex-start; }
  .brand-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .section-head, .content-grid { grid-template-columns: 1fr; }
  .rail { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .action-map { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 620px) {
  .container { width: min(100% - 1.1rem, 1180px); }
  .header-grid { gap: .7rem; }
  .brand span { max-width: 160px; white-space: normal; line-height: 1.15; }
  .primary-nav { gap: .55rem 1rem; }
  .primary-nav a { font-size: .84rem; }
  .header-grid > .commercial-cta { padding: .55rem .65rem; font-size: .82rem; }
  .hero { padding-top: 3rem; }
  .hero::after { width: 260px; opacity: .45; }
  .brand-grid, .legend, .fact-grid, .evidence-grid, .form-grid, .action-map, .footer-grid, .footer-nav { grid-template-columns: 1fr; }
  .rail { grid-template-columns: 1fr; }
  .dossier-head { grid-template-columns: 76px minmax(0,1fr); }
  .dossier-head .brand-logo { width: 76px; height: 76px; }
  .directory-tools { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  table { table-layout: fixed; font-size: .8rem; }
  th, td { padding: .55rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
