:root {
    color-scheme: light;
    --bg: #f4f5f1;
    --surface: #ffffff;
    --ink: #161817;
    --muted: #5c635f;
    --line: #d9ded7;
    --brand: #ccff00;
    --accent: #1f6f5f;
    --warning: #f4b942;
    --shadow: 0 18px 50px rgba(22, 24, 23, .09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--bg);
}

a {
    color: inherit;
}

.site-header,
main,
.site-footer {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo span,
.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--brand);
    color: #111;
    font-weight: 900;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.primary-link,
nav a,
.secondary-link {
    display: inline-grid;
    place-items: center;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    background: rgba(255, 255, 255, .7);
}

.primary-link {
    min-height: 50px;
    padding: 13px 18px;
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
    font-weight: 800;
}

.hero {
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    gap: 24px;
    align-items: stretch;
    padding: 34px 0 28px;
}

.hero__content,
.hero-panel,
.section,
.source-box {
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.hero__content {
    position: relative;
    overflow: hidden;
    min-height: 470px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 6vw, 64px);
    border-radius: 8px;
}

.hero__content::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -130px;
    width: 430px;
    height: 260px;
    border: 2px solid rgba(31, 111, 95, .35);
    border-radius: 120px 120px 32px 32px;
    background: linear-gradient(135deg, rgba(204, 255, 0, .4), rgba(31, 111, 95, .16));
    transform: rotate(-8deg);
}

.hero__content::before {
    content: "";
    position: absolute;
    right: 48px;
    bottom: 28px;
    width: 230px;
    height: 38px;
    border-radius: 999px;
    background: radial-gradient(circle at 28px 50%, #151716 0 18px, transparent 19px), radial-gradient(circle at 198px 50%, #151716 0 18px, transparent 19px), #dfe6dc;
    opacity: .55;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    position: relative;
    z-index: 1;
}

h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(42px, 8vw, 82px);
    line-height: .97;
}

h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.05;
}

h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.15;
}

.lead {
    max-width: 720px;
    margin: 22px 0 0;
    color: #303532;
    font-size: 20px;
    line-height: 1.5;
}

.hero__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.notice {
    max-width: 640px;
    margin: 22px 0 0;
    color: var(--muted);
}

.hero-panel {
    display: grid;
    gap: 1px;
    border-radius: 8px;
    overflow: hidden;
}

.hero-panel div {
    display: grid;
    align-content: center;
    min-height: 150px;
    padding: 28px;
    background: #fbfcf9;
}

.hero-panel span {
    font-size: 42px;
    font-weight: 900;
}

.hero-panel p {
    margin: 4px 0 0;
    color: var(--muted);
}

.section {
    margin: 24px 0;
    padding: clamp(22px, 4vw, 42px);
    border-radius: 8px;
}

.section__head {
    display: grid;
    gap: 10px;
    max-width: 790px;
    margin-bottom: 24px;
}

.section__head p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.45;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

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

.offer-card {
    display: flex;
    flex-direction: column;
    min-height: 430px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcf9;
}

.offer-card--featured {
    border-color: rgba(31, 111, 95, .45);
    background: linear-gradient(180deg, rgba(204, 255, 0, .22), #fbfcf9 38%);
}

.offer-card__top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.offer-card__brand {
    margin: 0 0 5px;
    color: var(--muted);
    font-size: 14px;
}

.offer-card__code-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    margin: 18px 0;
    padding: 7px;
    border: 1px dashed #aeb8ae;
    border-radius: 8px;
    background: #fff;
}

code {
    overflow-wrap: anywhere;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 18px;
    font-weight: 800;
}

button,
.offer-card__link {
    min-height: 42px;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.copy-button {
    padding: 10px 12px;
    background: var(--ink);
    color: #fff;
}

.copy-button--large {
    min-height: 50px;
    padding: 13px 18px;
    background: var(--accent);
}

.copy-button.is-copied {
    background: #2b7a35;
}

.offer-card__facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 0 14px;
}

.offer-card__facts div {
    padding: 10px;
    border-radius: 7px;
    background: #eef2ec;
}

dt {
    color: var(--muted);
    font-size: 12px;
}

dd {
    margin: 3px 0 0;
    font-weight: 800;
}

.offer-card p {
    margin: 0 0 12px;
    color: #343936;
    line-height: 1.45;
}

.offer-card__terms {
    color: var(--muted) !important;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
}

.tags span {
    padding: 7px 9px;
    border-radius: 999px;
    background: #e8eee5;
    color: #38413b;
    font-size: 13px;
    font-weight: 700;
}

.offer-card__footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.offer-card__link {
    display: grid;
    place-items: center;
    margin-top: 14px;
    text-decoration: none;
    background: var(--brand);
    color: #111;
}

.terms-card {
    overflow-x: auto;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.info-grid p,
.reason-list li {
    margin: 0;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcf9;
    color: #343936;
    line-height: 1.45;
}

table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    background: #fbfcf9;
}

th,
td {
    padding: 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

.guide {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 28px;
}

.guide__text p:last-child {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.5;
}

.steps {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps li {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: start;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcf9;
}

.steps span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 900;
}

.steps p {
    margin: 0;
    line-height: 1.45;
}

.reason-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.reason-list li {
    position: relative;
    padding-left: 42px;
}

.reason-list li::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 21px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--warning);
}

.faq-list {
    display: grid;
    gap: 10px;
}

details {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcf9;
}

summary {
    cursor: pointer;
    padding: 17px 18px;
    font-weight: 850;
}

details p {
    margin: 0;
    padding: 0 18px 18px;
    color: var(--muted);
    line-height: 1.5;
}

.source-box {
    margin: 24px 0;
    padding: 22px;
    border-radius: 8px;
    color: var(--muted);
}

.source-box p {
    margin: 0;
    line-height: 1.45;
}

.source-box p + p {
    margin-top: 10px;
}

.site-footer {
    padding: 24px 0 42px;
    color: var(--muted);
}

@media (max-width: 960px) {
    .hero,
    .guide {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .offers-grid,
    .offers-grid--primary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 660px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 0;
    }

    nav {
        justify-content: flex-start;
    }

    .hero__content {
        min-height: 440px;
    }

    .offers-grid,
    .offers-grid--primary {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .offer-card__code-row {
        grid-template-columns: 1fr;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .secondary-link {
        text-align: center;
    }
}
