:root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --text: #182230;
    --muted: #667085;
    --accent: #0f6b5d;
    --accent-dark: #0b5147;
    --line: #dfe4ea;
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
}

.shell {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.header {
    background: #111827;
    color: #fff;
}

.header__inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand,
.chat-link,
.back-link {
    text-decoration: none;
}

.brand {
    color: #fff;
    font-weight: 800;
}

.chat-link {
    color: #d1d5db;
}

.main {
    padding: 56px 0;
}

.hero,
.module-page {
    max-width: 820px;
}

h1,
h2 {
    line-height: 1.15;
    letter-spacing: -0.025em;
}

h1 {
    margin: 0 0 14px;
    font-size: clamp(2.3rem, 6vw, 4.5rem);
}

h2 {
    margin: 0 0 10px;
}

p {
    color: var(--muted);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.module-card,
.success-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.module-card {
    padding: 24px;
}

.module-card__top {
    margin-bottom: 18px;
}

.badge {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #067647;
    font-size: 0.78rem;
    font-weight: 800;
}

.button {
    display: inline-flex;
    margin-top: 10px;
    padding: 11px 16px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-weight: 750;
    text-decoration: none;
}

.button:hover {
    background: var(--accent-dark);
}

.back-link {
    display: inline-block;
    margin-bottom: 28px;
    color: var(--muted);
}

.success-box {
    margin-top: 28px;
    padding: 20px;
    color: #05603a;
    background: #ecfdf3;
    border-color: #abefc6;
    font-weight: 750;
}

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