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

:root {
    --qz-forest: #22513a;
    --qz-leaf: #3c8159;
    --qz-sand: #d9b779;
    --qz-sand-soft: #f0e2c6;
    --qz-ink: #1d2b23;
    --qz-mute: #5c6b62;
    --qz-line: #ddd6c4;
    --qz-paper: #f8f6f0;
    --qz-panel: #ffffff;
    --qz-deep: #14261c;
    --qz-sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --qz-serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
    --qz-r-sm: 10px;
    --qz-r-md: 18px;
    --qz-r-lg: 26px;
    --qz-sh-1: 0 6px 18px rgba(29, 43, 35, .06);
    --qz-sh-2: 0 14px 36px rgba(29, 43, 35, .10);
    --qz-sh-3: 0 24px 58px rgba(29, 43, 35, .16);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--qz-serif);
    background:
        radial-gradient(circle at 88% 2%, rgba(217, 183, 121, .24), transparent 38%),
        radial-gradient(circle at 6% 12%, rgba(60, 129, 89, .12), transparent 34%),
        linear-gradient(180deg, #f8f6f0 0%, #eff0e7 100%);
    color: var(--qz-ink);
    line-height: 1.72;
    font-size: 16px;
}

a {
    color: var(--qz-forest);
    text-decoration: none;
    transition: color .2s ease;
}
a:hover { color: var(--qz-leaf); }

/* ---------- header ---------- */
.qz-header {
    padding: 18px 20px;
    background: rgba(248, 246, 240, .92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(34, 81, 58, .16);
}
.qz-header__inner {
    max-width: 1160px;
    margin: 0 auto;
    text-align: center;
}
.qz-header__brand {
    font-family: var(--qz-sans);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--qz-forest);
}

/* ---------- hero intro ---------- */
.qz-intro {
    max-width: 1080px;
    margin: 34px auto 0;
    padding: 46px 40px 42px;
    border: 1px solid rgba(34, 81, 58, .14);
    border-radius: var(--qz-r-lg);
    background:
        linear-gradient(135deg, rgba(217, 183, 121, .22), rgba(255, 255, 255, .96) 58%),
        var(--qz-panel);
    box-shadow: var(--qz-sh-2);
    text-align: center;
}
.qz-intro__tag {
    display: inline-block;
    padding: 6px 16px;
    margin-bottom: 16px;
    border-radius: 999px;
    border: 1px solid rgba(34, 81, 58, .24);
    background: rgba(255, 255, 255, .8);
    font-family: var(--qz-sans);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--qz-leaf);
}
.qz-intro__title {
    max-width: 800px;
    margin: 0 auto 14px;
    font-size: clamp(28px, 4.4vw, 46px);
    line-height: 1.14;
    color: var(--qz-forest);
}
.qz-intro__lead {
    max-width: 660px;
    margin: 0 auto;
    color: var(--qz-mute);
    font-size: 17px;
}
.qz-intro__meta {
    display: inline-block;
    margin-top: 20px;
    padding: 7px 18px;
    border-radius: var(--qz-r-sm);
    background: rgba(60, 129, 89, .1);
    font-family: var(--qz-sans);
    font-size: 13px;
    font-weight: 700;
    color: var(--qz-forest);
}

/* ---------- numbered card grid ---------- */
.qz-doc {
    max-width: 1080px;
    margin: 0 auto;
    padding: 30px 20px 70px;
}
.qz-doc__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

.qz-card {
    position: relative;
    overflow: hidden;
    padding: 30px 30px 26px;
    border: 1px solid rgba(34, 81, 58, .13);
    border-radius: var(--qz-r-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(250, 249, 243, .99));
    box-shadow: var(--qz-sh-1);
    transition: box-shadow .25s ease, transform .25s ease;
}
.qz-card:hover {
    box-shadow: var(--qz-sh-2);
    transform: translateY(-2px);
}
.qz-card--wide { grid-column: 1 / -1; }
.qz-card--accent {
    background: linear-gradient(150deg, rgba(217, 183, 121, .3), rgba(255, 255, 255, .97) 62%);
    border-color: rgba(217, 183, 121, .55);
}

.qz-card__num {
    position: absolute;
    top: 6px;
    right: 16px;
    font-family: var(--qz-sans);
    font-size: 72px;
    font-weight: 900;
    line-height: 1;
    color: rgba(34, 81, 58, .1);
    pointer-events: none;
    user-select: none;
}
.qz-card--accent .qz-card__num { color: rgba(34, 81, 58, .16); }

.qz-card__title {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    padding-right: 56px;
    font-family: var(--qz-sans);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--qz-forest);
}
.qz-card__sub {
    font-family: var(--qz-sans);
    font-size: 15px;
    font-weight: 700;
    color: var(--qz-ink);
    margin: 18px 0 8px;
}
.qz-card p {
    position: relative;
    z-index: 1;
    color: var(--qz-mute);
    margin-bottom: 12px;
}
.qz-card p:last-child { margin-bottom: 0; }
.qz-card strong { color: var(--qz-ink); }

.qz-card__list {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    color: var(--qz-mute);
}
.qz-card__list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
}
.qz-card__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .72em;
    width: 8px;
    height: 8px;
    border-radius: 3px;
    background: var(--qz-sand);
    border: 1px solid rgba(34, 81, 58, .35);
}
.qz-card__list li:last-child { margin-bottom: 0; }

.qz-card__steps {
    position: relative;
    z-index: 1;
    counter-reset: qzstep;
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--qz-mute);
}
.qz-card__steps li {
    counter-increment: qzstep;
    position: relative;
    padding: 0 0 0 42px;
    margin-bottom: 14px;
}
.qz-card__steps li::before {
    content: counter(qzstep);
    position: absolute;
    left: 0;
    top: 2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--qz-sans);
    font-size: 13px;
    font-weight: 800;
    color: #fdfbf5;
    background: linear-gradient(135deg, var(--qz-leaf), var(--qz-forest));
}
.qz-card__steps li:last-child { margin-bottom: 0; }

.qz-card__pair {
    position: relative;
    z-index: 1;
    width: 100%;
    border-collapse: collapse;
    margin: 6px 0 4px;
    font-size: 15px;
}
.qz-card__pair th {
    text-align: left;
    padding: 10px 12px;
    background: linear-gradient(135deg, var(--qz-forest), var(--qz-leaf));
    color: #fdfbf5;
    font-family: var(--qz-sans);
    font-size: 13px;
    letter-spacing: .02em;
}
.qz-card__pair th:first-child { border-radius: var(--qz-r-sm) 0 0 0; }
.qz-card__pair th:last-child { border-radius: 0 var(--qz-r-sm) 0 0; }
.qz-card__pair td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(34, 81, 58, .1);
    color: var(--qz-mute);
    vertical-align: top;
}
.qz-card__pair tr:nth-child(even) td { background: rgba(240, 226, 198, .28); }
.qz-card__pair tr:last-child td { border-bottom: none; }

.qz-card__flag {
    position: relative;
    z-index: 1;
    margin: 14px 0 0;
    padding: 16px 18px;
    border-left: 4px solid var(--qz-sand);
    border-radius: 0 var(--qz-r-sm) var(--qz-r-sm) 0;
    background: rgba(240, 226, 198, .42);
    color: var(--qz-ink);
    font-size: 15px;
}

/* ---------- footer ---------- */
.qz-footer {
    margin-top: 10px;
    padding: 22px 20px 18px;
    background: #eef0e8;
    border-top: 1px solid #dcdfd0;
    font-family: var(--qz-sans);
    text-align: center;
}
.qz-footer__inner {
    max-width: 900px;
    margin: 0 auto;
}
.qz-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 20px;
    margin-bottom: 12px;
}
.qz-footer__nav a {
    font-size: 11px;
    color: #6e7c72;
    text-decoration: none;
}
.qz-footer__nav a:hover { color: var(--qz-forest); }
.qz-footer__copy {
    font-size: 11px;
    color: #7d8a80;
    margin-bottom: 8px;
}
.qz-footer__note {
    font-size: 11px;
    line-height: 1.75;
    color: #808d83;
}

/* ---------- adaptive ---------- */
@media (max-width: 860px) {
    .qz-doc__grid { grid-template-columns: minmax(0, 1fr); }
    .qz-card--wide { grid-column: auto; }
    .qz-intro {
        margin-top: 22px;
        padding: 34px 22px 30px;
        border-radius: 22px;
    }
    .qz-card { padding: 26px 22px 22px; }
    .qz-card__num { font-size: 58px; right: 12px; }
    .qz-card__title { padding-right: 44px; }
}
@media (max-width: 480px) {
    .qz-intro { margin: 16px 12px 0; }
    .qz-doc { padding: 22px 12px 54px; }
    .qz-card__pair { font-size: 14px; }
}
