:root {
    --bg: #fbfaf7;
    --text: #1f2933;
    --muted: #667085;
    --card: #ffffff;
    --border: #e7e2d8;
    --accent: #2f6f5e;
    --accent-dark: #24574a;
    --soft: #eef5f1;
}

* {
    box-sizing: border-box;
}

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

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

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

.site-header {
    background: rgba(255,255,255,0.92);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

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

.logo {
    font-weight: 800;
    font-size: 1.1rem;
}

.top-nav {
    display: flex;
    gap: 18px;
    font-size: 0.95rem;
    color: var(--muted);
}

.hero {
    padding: 72px 0 44px;
    background:
        radial-gradient(circle at top left, #e2f0ea 0, transparent 34%),
        linear-gradient(180deg, #fffdf7 0%, var(--bg) 100%);
}

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

h1 {
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 0.95;
    margin: 10px 0 18px;
    max-width: 900px;
}

.hero-text {
    color: var(--muted);
    max-width: 680px;
    font-size: 1.15rem;
    line-height: 1.6;
}

.search-panel {
    margin-top: 34px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 18px 45px rgba(31, 41, 51, 0.08);
    border-radius: 24px;
    padding: 18px;
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 7px;
    color: var(--muted);
}

input,
select {
    width: 100%;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0 12px;
    font: inherit;
    background: #fff;
    color: var(--text);
}

.search-button {
    height: 46px;
    border: 0;
    border-radius: 14px;
    padding: 0 18px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

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

.results-section {
    padding: 42px 0 72px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.section-heading h2 {
    font-size: 2rem;
    margin: 0;
}

.section-heading p {
    color: var(--muted);
    margin: 0;
    max-width: 520px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.result-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 10px 28px rgba(31, 41, 51, 0.05);
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.card-tags span {
    background: var(--soft);
    color: var(--accent-dark);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 800;
}

.result-card h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.meta {
    color: var(--muted);
    font-weight: 700;
}

.result-card p {
    line-height: 1.55;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    color: var(--muted);
    background: #fff;
}

@media (max-width: 980px) {
    .search-panel {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-button {
        grid-column: 1 / -1;
    }

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

    .section-heading {
        display: block;
    }
}

@media (max-width: 640px) {
    .top-nav {
        display: none;
    }

    .search-panel {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 48px;
    }
}
