*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --qzlPrimary: #147a5e;
    --qzlPrimaryLift: #1f9d74;
    --qzlAccent: #d1495b;
    --qzlDeep: #0a3d2e;
    --qzlInk: #14231e;
    --qzlMuted: #4d6660;
    --qzlLine: #cfe6de;
    --qzlPaper: #f7fdfb;
    --qzlSurface: #ebf7f3;
    --qzlPanel: #ffffff;
    --qzlFontUi: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --qzlFontDisplay: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --qzlR1: 10px;
    --qzlR2: 16px;
    --qzlR3: 26px;
    --qzlSh1: 0 8px 20px rgba(10, 61, 46, .07);
    --qzlSh2: 0 16px 38px rgba(10, 61, 46, .12);
    --qzlSh3: 0 26px 58px rgba(10, 61, 46, .18);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--qzlFontUi);
    background:
        radial-gradient(circle at 12% 4%, rgba(209, 73, 91, .09), transparent 34%),
        linear-gradient(180deg, #f7fdfb 0%, #ebf7f3 100%);
    color: var(--qzlInk);
    line-height: 1.7;
    font-size: 16px;
}

a {
    color: var(--qzlPrimary);
    text-decoration: none;
    transition: color .2s ease;
}
a:hover { color: var(--qzlAccent); }

/* ---------- шапка ---------- */
.qzlTopBar {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 16px 20px;
    background: rgba(247, 253, 251, .92);
    backdrop-filter: blur(14px);
    border-bottom: 2px solid rgba(20, 122, 94, .16);
}
.qzlTopBarInner {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}
.qzlTopBarLogo {
    font-size: 20px;
    letter-spacing: .06em;
    font-weight: 800;
    color: var(--qzlDeep);
}
.qzlTopBarLogo::first-letter { color: var(--qzlAccent); }

/* ---------- вступний блок ---------- */
.qzlLead {
    max-width: 980px;
    margin: 0 auto;
    padding: 56px 20px 30px;
    text-align: left;
}
.qzlLeadTag {
    display: inline-block;
    padding: 5px 13px;
    border-radius: 6px;
    background: var(--qzlDeep);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #d8efe6;
    margin-bottom: 16px;
}
.qzlLeadTitle {
    max-width: 780px;
    margin: 0 0 14px;
    font-family: var(--qzlFontDisplay);
    font-size: clamp(28px, 4.6vw, 48px);
    line-height: 1.14;
    font-weight: 700;
    color: var(--qzlDeep);
}
.qzlLeadIntro {
    max-width: 660px;
    color: var(--qzlMuted);
    font-size: 17px;
    line-height: 1.75;
}
.qzlLeadStamp {
    display: inline-block;
    margin-top: 18px;
    padding: 7px 14px;
    border-left: 4px solid var(--qzlAccent);
    background: rgba(255, 255, 255, .8);
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: var(--qzlDeep);
    font-weight: 600;
}

/* ---------- каркас ---------- */
.qzlShell {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px 84px;
}
.qzlPanel {
    background: var(--qzlPanel);
    border: 1px solid var(--qzlLine);
    border-radius: var(--qzlR3);
    box-shadow: var(--qzlSh2);
    padding: 46px 52px;
}
@media (max-width: 740px) {
    .qzlPanel { padding: 28px 20px; border-radius: 18px; }
    .qzlLead { padding-top: 40px; }
}

.qzlPanel h2 {
    font-family: var(--qzlFontDisplay);
    font-size: clamp(21px, 3vw, 29px);
    line-height: 1.2;
    color: var(--qzlDeep);
    margin: 38px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--qzlSurface);
}
.qzlPanel h2:first-child { margin-top: 0; }
.qzlPanel h3 {
    font-size: 17px;
    line-height: 1.3;
    color: var(--qzlPrimary);
    margin: 22px 0 8px;
    font-weight: 800;
}
.qzlPanel p {
    color: var(--qzlMuted);
    margin-bottom: 14px;
}
.qzlPanel ul,
.qzlPanel ol {
    padding-left: 22px;
    margin: 0 0 16px;
    color: var(--qzlMuted);
}
.qzlPanel li { margin-bottom: 7px; }
.qzlPanel li::marker { color: var(--qzlPrimaryLift); }
.qzlPanel strong { color: var(--qzlInk); }

/* ---------- таблиця-перша розкладка ---------- */
.qzlFactBoard {
    margin: 0 0 34px;
    border: 2px solid var(--qzlLine);
    border-radius: var(--qzlR2);
    overflow: hidden;
}
.qzlFactBoardCap {
    padding: 12px 18px;
    background: var(--qzlSurface);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--qzlDeep);
}
.qzlFactTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}
.qzlFactTable th {
    width: 34%;
    text-align: left;
    vertical-align: top;
    padding: 13px 18px;
    background: rgba(235, 247, 243, .5);
    color: var(--qzlDeep);
    font-weight: 800;
    font-size: 14px;
    border-bottom: 1px solid var(--qzlLine);
    border-right: 1px solid var(--qzlLine);
}
.qzlFactTable td {
    padding: 13px 18px;
    color: var(--qzlMuted);
    border-bottom: 1px solid var(--qzlLine);
    vertical-align: top;
}
.qzlFactTable tr:last-child th,
.qzlFactTable tr:last-child td { border-bottom: none; }
@media (max-width: 620px) {
    .qzlFactTable th,
    .qzlFactTable td { display: block; width: 100%; border-right: none; }
    .qzlFactTable th { border-bottom: none; padding-bottom: 2px; }
}

/* ---------- звичайна таблиця в тексті ---------- */
.qzlGridTable {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 26px;
    font-size: 15px;
    border: 1px solid var(--qzlLine);
    border-radius: var(--qzlR1);
    overflow: hidden;
}
.qzlGridTable thead th {
    background: var(--qzlDeep);
    color: #e2f3ec;
    text-align: left;
    padding: 12px 16px;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.qzlGridTable td {
    padding: 12px 16px;
    border-top: 1px solid var(--qzlLine);
    color: var(--qzlMuted);
}
.qzlGridTable tbody tr:nth-child(even) td { background: rgba(235, 247, 243, .55); }

/* ---------- таймлайн ---------- */
.qzlTrack {
    position: relative;
    margin: 26px 0 30px;
    padding-left: 34px;
}
.qzlTrack::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--qzlPrimary), var(--qzlAccent));
}
.qzlTrackItem {
    position: relative;
    padding: 0 0 24px 6px;
}
.qzlTrackItem:last-child { padding-bottom: 0; }
.qzlTrackItem::before {
    content: "";
    position: absolute;
    left: -29px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--qzlPrimary);
}
.qzlTrackItem:last-child::before { border-color: var(--qzlAccent); }
.qzlTrackMark {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--qzlAccent);
    margin-bottom: 3px;
}
.qzlTrackTitle {
    font-size: 16px;
    font-weight: 800;
    color: var(--qzlDeep);
    margin-bottom: 4px;
}
.qzlTrackText {
    font-size: 15px;
    color: var(--qzlMuted);
    line-height: 1.68;
}

/* ---------- виноски ---------- */
.qzlCallout {
    margin: 24px 0;
    padding: 18px 20px;
    border-radius: var(--qzlR1);
    background: rgba(235, 247, 243, .85);
    border-left: 5px solid var(--qzlPrimary);
}
.qzlCallout p { margin: 0; color: var(--qzlInk); }
.qzlCalloutWarn {
    border-left-color: var(--qzlAccent);
    background: rgba(209, 73, 91, .08);
}

/* ---------- плитки ---------- */
.qzlTileGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 16px;
    margin: 24px 0 28px;
}
.qzlTile {
    background: var(--qzlPaper);
    border: 1px solid var(--qzlLine);
    border-radius: var(--qzlR1);
    padding: 20px 18px;
    box-shadow: var(--qzlSh1);
}
.qzlTileTitle {
    font-size: 15px;
    font-weight: 800;
    color: var(--qzlPrimary);
    margin-bottom: 6px;
}
.qzlTileBody {
    font-size: 14px;
    line-height: 1.65;
    color: var(--qzlMuted);
}

/* ---------- підвал ---------- */
.qzlFooter {
    margin-top: 40px;
    background: var(--qzlDeep);
    color: #9fc4b6;
    padding: 26px 20px 22px;
    text-align: center;
}
.qzlFooterInner {
    max-width: 900px;
    margin: 0 auto;
}
.qzlFooterNav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 20px;
    margin-bottom: 12px;
}
.qzlFooterNav a {
    color: #b9d8cc;
    font-size: 12px;
    text-decoration: none;
}
.qzlFooterNav a:hover { color: #ffffff; }
.qzlFooterCopy {
    font-size: 12px;
    color: #7fae9e;
}
