:root {
    --green: #053e35;
    --green-dark: #053e35;
    --lime: #2ef258;
    --lime-soft: #7eff73;
    --lime-logo: #7eff73;
    --bg: #f8f8f2;
    --white: #fff;
    --muted: #3d5c55;
    --line: #d5ddd6;
    --danger: #b42318;
    --radius: 18px;
    --font: "Host Grotesk", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--green);
    line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.site-header { position: sticky; top: 0; z-index: 30; padding: 22px 18px 0; }
.staff-flag {
    max-width: 1280px;
    margin: 14px auto 0;
    padding: 12px 18px;
    background: #fff3cd;
    color: var(--green);
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.staff-flag a { color: var(--green); text-underline-offset: 2px; }
.preview-flag {
    margin: 0 0 22px;
    padding: 12px 16px;
    background: #fff3cd;
    color: var(--green);
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.preview-flag a { text-underline-offset: 2px; }
.nav-bar {
    max-width: 1280px;
    margin: 0 auto;
    background: var(--green);
    color: #fff;
    border-radius: var(--radius);
    min-height: 72px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}
.logo img { width: 138px; height: auto; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a { text-decoration: none; font-weight: 500; }
.nav-links a[aria-current="page"] { color: var(--lime-soft); }
.btn-nav { display: none; border: 0; background: none; color: #fff; font-weight: 600; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    border-radius: 999px;
    padding: 11px 20px;
    font-weight: 600;
}
.btn-light { background: #fff; color: var(--green); }
.btn-primary { background: var(--lime); color: var(--green); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--green); }

.jobs-section, .welcome { max-width: 1280px; margin: 0 auto; padding: 48px 24px 24px; }
.welcome {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
    gap: 40px 48px;
    align-items: start;
    padding-bottom: 56px;
}
.welcome-intro {
    max-width: 38rem;
}
.welcome h1 {
    font-size: clamp(1.85rem, 3.2vw, 2.6rem);
    font-weight: 500;
    line-height: 1.15;
    margin: 0 0 16px;
}
.welcome h1 u { text-decoration: none; color: var(--lime); }
.welcome-lead {
    margin: 0 0 14px;
    font-size: 1.12rem;
    line-height: 1.55;
    color: var(--green);
}
.welcome-body p {
    margin: 0 0 1em;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--muted);
}
.welcome-body p:last-child { margin-bottom: 0; }
.values-frame {
    margin: 0;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(5, 62, 53, 0.1);
}
.values-frame img {
    width: 100%;
    height: auto;
}
.maintenance {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 24px 96px;
}
.maintenance h1 {
    font-size: clamp(2.3rem, 6vw, 5rem);
    font-weight: 400;
    line-height: 1.05;
    max-width: 10ch;
    margin: 0 0 20px;
}
.maintenance h1 u { text-decoration: none; color: var(--lime); }
.maintenance p {
    max-width: 32rem;
    margin: 0 0 28px;
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--muted);
}
.section-head h2 { font-size: 2rem; font-weight: 500; margin: 0 0 20px; }

.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}
.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 18px;
}
.job-tile, .talent-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 22px;
    min-height: 188px;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 12px 32px rgba(5, 62, 53, 0.14);
}
.job-tile:hover {
    border-color: var(--green);
    box-shadow: 0 16px 40px rgba(5, 62, 53, 0.2);
}
.job-tile:focus-visible, .talent-tile:focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: 2px;
}
.talent-tile {
    min-height: 0;
    padding: 28px;
    background: var(--green);
    color: #fff;
    border-color: rgba(248, 248, 242, 0.28);
    box-shadow: none;
}
.talent-tile:hover { border-color: var(--lime); }
.tile-cat {
    margin: 0 0 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}
.talent-tile .tile-cat { color: var(--lime-soft); margin-bottom: 12px; }
.job-tile h3 { margin: 0 0 10px; font-size: 1.3rem; }
.talent-tile h3 {
    margin: 0 0 12px;
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.25;
}
.tile-meta { margin: 0; color: var(--muted); }
.job-tile .tile-facts {
    display: grid;
    gap: 4px;
    line-height: 1.4;
}
.job-tile .tile-facts span { display: block; }
.talent-tile .tile-meta {
    color: #fff;
    font-size: 1.02rem;
    line-height: 1.55;
    margin-bottom: 22px;
}
.talent-go {
    margin-top: auto;
    background: var(--lime);
    color: var(--green);
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
}
.empty-note { color: var(--muted); grid-column: 1 / -1; }
.info-tile {
    margin-top: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 32px 32px;
}
.info-tile-home { margin-top: 28px; }
.info-tile > h2 {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin: 0 0 22px;
}
.info-tile h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 22px 0 8px;
}
.info-tile h3:first-of-type { margin-top: 0; }
.info-tile p {
    margin: 0 0 12px;
    max-width: 48rem;
    color: var(--muted);
    line-height: 1.65;
}
.info-tile p:last-child { margin-bottom: 0; }
.job-page .info-tile {
    margin: 8px 0 28px;
    padding: 22px 24px;
}

.job-page { max-width: 760px; margin: 0 auto; padding: 36px 24px 48px; }
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 600;
    text-decoration: none;
}
.back-link:hover { text-decoration: underline; }
.job-page h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 18px;
}
.job-page h2 { font-size: 1.35rem; font-weight: 600; margin: 28px 0 12px; }
.lead-copy { color: var(--muted); font-size: 1.1rem; max-width: 40rem; }
.benefit-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: grid;
    gap: 14px;
    max-width: 40rem;
}
.benefit-list li {
    display: grid;
    grid-template-columns: 1.5rem 1fr;
    gap: 12px;
    align-items: start;
    font-size: 1.08rem;
    line-height: 1.45;
}
.benefit-list li::before {
    content: "✓";
    display: grid;
    place-items: center;
    width: 1.4rem;
    height: 1.4rem;
    margin-top: 0.1em;
    border-radius: 50%;
    background: var(--green);
    color: var(--lime);
    font-size: 0.78rem;
    font-weight: 700;
}
.job-facts {
    list-style: none;
    margin: 0 0 28px;
    padding: 18px 20px;
    background: #fff;
    border-radius: var(--radius);
    display: grid;
    gap: 10px;
}
.job-facts li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 12px; }
.job-facts span { font-weight: 700; color: var(--muted); }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.job-page .form-error, .job-page .form-ok { margin-top: 14px; }

.modal[hidden] { display: none; }
.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(5, 62, 53, .55);
    display: grid;
    place-items: center;
    padding: 18px;
}
.modal-card {
    width: min(720px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 22px;
    padding: 28px;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--bg);
    cursor: pointer;
    font-size: 22px;
}
.job-copy p { margin: 0 0 12px; }
.stack-form { display: grid; gap: 12px; }
.stack-form label { display: grid; gap: 6px; font-weight: 600; }
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
}
.hp { position: absolute; left: -9999px; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; }
.check input { width: auto; margin-top: 4px; }
.field-hint { display: block; font-weight: 500; color: var(--muted); font-size: 0.88rem; margin-top: 4px; }
.word-count { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.word-count.is-over { color: var(--danger); font-weight: 700; }
.form-error { color: var(--danger); font-weight: 600; }
.form-ok { color: var(--green); font-weight: 600; }
.form-thanks {
    margin-top: 8px;
    padding: 28px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}
.form-thanks h2 {
    margin: 0 0 10px;
    font-size: 1.8rem;
    font-weight: 400;
}
.form-thanks p {
    margin: 0 0 22px;
    max-width: 36rem;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.55;
}
.form-thanks[hidden] { display: none; }

.site-footer {
    max-width: 1280px;
    margin: 48px auto 0;
    background: var(--green);
    color: #fff;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 36px 24px 24px;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }
.site-footer a { color: #fff; }
.footer-address { margin: 12px 0 0; line-height: 1.6; }
.footer-bottom {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.15);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 800px) {
    .btn-nav { display: inline-flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        background: var(--green);
        border-radius: 16px;
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-links.is-open { display: flex; }
    .footer-grid { grid-template-columns: 1fr; }
    .job-facts li { grid-template-columns: 1fr; gap: 2px; }
    .welcome {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 40px;
    }
    .welcome h1 { max-width: none; }
    .cta-grid { grid-template-columns: 1fr; }
    .values-frame { max-width: 520px; justify-self: center; }
}
