:root {
    --bg: #faf8f3;
    --paper: rgba(255, 255, 255, 0.68);
    --text: #1f2a25;
    --muted: #6d756f;
    --green: #143d2c;
    --green-light: #2e7a55;
    --line: rgba(20, 61, 44, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.8), transparent 36%),
        linear-gradient(135deg, rgba(20, 61, 44, 0.025) 25%, transparent 25%) 0 0 / 18px 18px,
        var(--bg);
    line-height: 1.75;
}

a {
    color: inherit;
    text-decoration: none;
}

.site {
    min-height: 100vh;
}

.header {
    position: absolute;
    top: 32px;
    left: 48px;
    z-index: 5;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--green);
    letter-spacing: -0.04em;
}

.logo-sub {
    margin-top: 2px;
    font-size: 15px;
    color: var(--muted);
}

.hero {
    position: relative;
    min-height: 100vh;
    padding: 120px 32px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: "КАК ПЕРЕСТАТЬ БЫТЬ РАЗВАЛИНОЙ";
    position: absolute;
    top: 11%;
    left: 50%;
    transform: translateX(-50%) rotate(2deg);
    width: 100%;
    text-align: center;
    font-weight: 900;
    font-size: clamp(64px, 11vw, 180px);
    line-height: .95;
    color: rgba(31, 42, 37, 0.055);
    letter-spacing: -0.06em;
    pointer-events: none;
}

.hero-illustration {
    position: absolute;
    inset: auto 0 0 0;
    width: 100%;
    height: 58%;
    background: url("../img/cover.png") center bottom / contain no-repeat;
    opacity: .22;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    text-align: center;
    padding-top: 80px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(54px, 8vw, 96px);
    line-height: 1;
    color: var(--green);
    letter-spacing: -0.07em;
}

.divider {
    width: 88px;
    height: 4px;
    background: var(--green-light);
    margin: 34px auto 30px;
    border-radius: 999px;
}

.hero h2 {
    margin: 0 0 16px;
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 620px;
    margin: 0 auto 34px;
    font-size: 21px;
    color: #35413b;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 260px;
    padding: 18px 30px;
    border-radius: 14px;
    background: linear-gradient(135deg, #17442f, #0f3022);
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    box-shadow: 0 18px 40px rgba(20, 61, 44, .18);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 72px;
    margin-top: 66px;
    color: var(--muted);
}

.stat strong {
    display: block;
    color: var(--text);
    font-size: 20px;
}

.book-page {
    max-width: 1040px;
    margin: 0 auto;
    padding: 56px 28px 80px;
}

.book-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 54px;
    color: var(--muted);
    font-size: 15px;
}

.book-top a {
    border-bottom: 1px solid var(--line);
}

.chapter {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 34px;
    padding: clamp(28px, 5vw, 72px);
    box-shadow: 0 24px 80px rgba(20, 61, 44, .06);
}

.chapter-kicker {
    color: var(--green-light);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 13px;
}

.chapter h1 {
    margin: 10px 0 28px;
    color: var(--green);
    font-size: clamp(42px, 6vw, 60px);
    line-height: 1.02;
    letter-spacing: -0.07em;
}

.chapter-image {
    width: 100%;
    max-height: 460px;
    object-fit: contain;
    margin: 6px 0 44px;
    opacity: .92;
}

.chapter p {
    max-width: 780px;
    font-size: 22px;
    margin: 0 auto 24px;
}

.chapter h2 {
    max-width: 780px;
    margin: 54px auto 18px;
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -0.05em;
    color: var(--green);
}

.task {
    max-width: 780px;
    margin: 58px auto 0;
    padding: 30px;
    border-radius: 24px;
    background: rgba(20, 61, 44, .06);
    border: 1px solid var(--line);
}

.task-title {
    font-weight: 900;
    color: var(--green);
    margin-bottom: 8px;
}

.nav-bottom {
    max-width: 1040px;
    margin: 34px auto 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 18px;
    align-items: stretch;
}

.nav-card {
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255,255,255,.5);
    color: var(--muted);
}

.nav-card strong {
    display: block;
    color: var(--green);
    font-size: 20px;
}

.nav-card.next {
    text-align: right;
}

.contents {
    max-width: 760px;
    margin: 44px auto 0;
    display: grid;
    gap: 12px;
}

.contents a {
    display: flex;
    justify-content: space-between;
    padding: 18px 22px;
    border-radius: 18px;
    background: rgba(255,255,255,.54);
    border: 1px solid var(--line);
}

@media (max-width: 760px) {
    body {
        line-height: 1.65;
    }

    .header {
        position: relative;
        top: auto;
        left: auto;
        padding: 22px 20px 0;
    }

    .logo {
        font-size: 24px;
    }

    .logo-sub {
        font-size: 14px;
    }

    .hero {
        min-height: auto;
        padding: 48px 18px 44px;
        display: block;
    }

    .hero::before {
        top: 120px;
        font-size: 56px;
        line-height: 1;
        width: 120%;
        opacity: .85;
    }

    .hero-illustration {
        height: 42%;
        background-size: cover;
        opacity: .13;
    }

    .hero-content {
        padding-top: 80px;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 52px;
    }

    .hero h2 {
        font-size: 25px;
    }

    .hero p {
        font-size: 18px;
        margin-bottom: 26px;
    }

    .button {
        min-width: 0;
        width: 100%;
        max-width: 320px;
        font-size: 18px;
        padding: 16px 24px;
    }

    .stats {
        margin-top: 42px;
        gap: 18px;
        flex-direction: column;
    }

    .contents {
        margin-top: 34px;
    }

    .contents a {
        padding: 15px 16px;
        font-size: 15px;
    }

    .book-page {
        padding: 22px 14px 48px;
    }

    .book-top {
        margin-bottom: 22px;
        font-size: 14px;
    }

    .chapter {
        border-radius: 24px;
        padding: 24px 18px 30px;
    }

    .chapter-kicker {
        font-size: 12px;
    }

    .chapter h1 {
        font-size: 36px;
        line-height: 1.08;
        letter-spacing: -0.035em;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .chapter-image {
        margin: 0 0 30px;
        max-height: 260px;
    }

    .chapter p {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .chapter h2 {
        font-size: 28px;
        margin-top: 38px;
    }

    .task {
        margin-top: 38px;
        padding: 22px;
        border-radius: 20px;
    }

    .nav-bottom {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 20px;
    }

    .nav-card,
    .nav-card.next {
        text-align: left;
        padding: 18px;
    }

    .nav-card strong {
        font-size: 18px;
    }
}