:root {
    --text: #222222;
    --light-bg: #f0f0f0;
    --white: #ffffff;
    --link: #1e73be;
    --hero-bg: #201400;
    --accent: #13e29a;
    --card-bg: #dedede;
    --card-line: #000a33;
    --width: 960px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

p {
    margin: 0 0 1.4em;
}

.wrap {
    max-width: var(--width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
    background: var(--white);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.logo img {
    width: 250px;
    height: auto;
    display: block;
}

.main-nav a {
    color: var(--text);
    text-transform: uppercase;
    font-size: 16px;
    padding: 0 0 0 30px;
}

/* Current page in the menu: the <body> class names the page */
.main-nav a:hover,
.pg-home .nav-home,
.pg-about .nav-about {
    color: var(--link);
    text-decoration: none;
}

/* ---------- Content pages ---------- */
.page {
    padding-top: 40px;
    padding-bottom: 40px;
}

.page h1 {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 30px;
}

.page h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 2em 0 1em;
    line-height: 1.4;
}

.legal p {
    font-size: 17px;
}

.about p {
    margin-bottom: 1.2em;
}

.about figure {
    margin: 10px 0 30px;
}

/* Contact: two columns */
.two-col {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.two-col > * {
    flex: 1 1 300px;
}

.two-col figure {
    margin: 0;
    text-align: center;
}

/* ---------- Home: hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--hero-bg);
    color: var(--white);
}

.hero-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 50px 20px 110px;
}

.hero-photo {
    flex: 0 0 35%;
    text-align: center;
}

.hero-photo img {
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 50%;
}

.hero-name {
    font-size: 24px;
    margin: 10px 0 0;
}

.hero-text {
    flex: 0 0 65%;
    text-align: center;
}

.hero h1 {
    font-size: 36px;
    line-height: 46px;
    letter-spacing: -1px;
    font-weight: 500;
    margin: 0 20px 40px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 250px;
    height: 50px;
    border-radius: 5px;
    background: var(--accent);
    color: var(--text);
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-cta:hover,
.btn-cta:focus {
    text-decoration: none;
    filter: brightness(1.05);
}

.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    line-height: 0;
    color: var(--accent);
}

.hero-wave svg {
    width: 100%;
    height: 80px;
    fill: currentColor;
    display: block;
}

/* ---------- Home: three cards ---------- */
.benefits {
    background: var(--light-bg);
    padding: 40px 0;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    flex: 1 1 280px;
    max-width: 306px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--card-bg);
    border: 3px solid var(--card-line);
    border-radius: 5px;
    padding: 30px 10px 10px;
    text-align: center;
}

.card img {
    width: 125px;
    height: 125px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 20px;
    line-height: 1.3;
    margin: 0 0 20px;
}

.card p {
    font-size: 18px;
    line-height: 1.3;
}

/* ---------- 404 ---------- */
.oops {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.oops h1 {
    font-size: 42px;
    margin: 0 0 10px;
}

.oops p {
    font-size: 28px;
    line-height: 1.4;
    color: #575760;
}

.btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 60px;
    border-radius: 10px;
    background: var(--text);
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
}

.btn-dark:hover,
.btn-dark:focus {
    text-decoration: none;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #000;
    color: var(--white);
    text-align: center;
    font-size: 16px;
    text-transform: uppercase;
    padding: 20px;
}

.footer-nav a {
    color: var(--light-bg);
    margin: 0 8px;
}

.pg-privacy .nav-privacy,
.pg-terms .nav-terms,
.pg-disclaimer .nav-disclaimer,
.pg-affiliate .nav-affiliate,
.pg-contact .nav-contact {
    color: var(--link);
}

.site-footer p {
    margin: 8px 0 0;
}

/* ---------- Phones ---------- */
@media (max-width: 767px) {
    .hero-photo,
    .hero-text {
        flex-basis: 100%;
    }

    .hero-text {
        order: 1;
    }

    .hero-photo {
        order: 2;
        margin-top: 30px;
    }

    .hero h1 {
        margin: 0 10px 30px;
    }

    .btn-cta {
        height: 60px;
    }

    .card {
        max-width: 300px;
    }

    .main-nav a {
        padding-left: 20px;
    }

    .logo img {
        width: 200px;
    }

    .oops p {
        font-size: 22px;
    }
}
