:root {
    --bg: #f3f7f4;
    --surface: #ffffff;
    --surface-soft: #edf6ef;
    --text: #17251c;
    --muted: #607064;
    --primary: #176b3a;
    --primary-dark: #0f4e2a;
    --accent: #d9f25c;
    --border: #dce8df;
    --danger: #a52a2a;
    --shadow: 0 18px 45px rgba(22, 70, 39, .10);
    --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--primary); }

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

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

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

.header-inner { min-height: 72px; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 850;
    text-decoration: none;
}

.brand-ball { font-size: 1.5rem; }

.main-nav,
.footer-links {
    display: flex;
    gap: 18px;
}

.main-nav a,
.footer-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 650;
}

.hero {
    padding: 72px 0 48px;
    background:
        radial-gradient(circle at 90% 10%, rgba(217,242,92,.4), transparent 26%),
        linear-gradient(135deg, #123f25, #1c7a43);
    color: white;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 44px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.13);
    font-size: .88rem;
    font-weight: 750;
}

h1, h2, h3 {
    line-height: 1.15;
    margin-top: 0;
}

h1 {
    font-size: clamp(2.35rem, 6vw, 4.7rem);
    letter-spacing: -.045em;
    margin: 18px 0;
}

.hero p {
    max-width: 700px;
    font-size: 1.15rem;
    color: rgba(255,255,255,.86);
}

.hero-card {
    background: white;
    color: var(--text);
    padding: 28px;
    border-radius: 28px;
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}

.hero-card ul {
    margin: 0;
    padding-left: 22px;
}

.section { padding: 56px 0; }

.section-header {
    margin-bottom: 26px;
    max-width: 720px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.tool-card,
.panel,
.result-box,
.info-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.tool-card {
    padding: 24px;
    text-decoration: none;
    color: var(--text);
    transition: transform .18s ease, box-shadow .18s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 55px rgba(22,70,39,.16);
}

.tool-icon { font-size: 2rem; }

.tool-card h2 {
    margin: 14px 0 8px;
    font-size: 1.3rem;
}

.tool-card p {
    color: var(--muted);
    margin-bottom: 0;
}

.tool-hero {
    padding: 42px 0 22px;
}

.tool-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}

.panel { padding: 26px; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-field { margin-bottom: 18px; }

label {
    display: block;
    font-weight: 750;
    margin-bottom: 7px;
}

input,
select,
textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #bfd1c4;
    border-radius: 11px;
    font: inherit;
    background: white;
    color: var(--text);
}

textarea {
    min-height: 210px;
    resize: vertical;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 11px;
    padding: 13px 18px;
    background: var(--primary);
    color: white;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}

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

.button.secondary {
    background: var(--surface-soft);
    color: var(--primary-dark);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.result-box {
    padding: 24px;
    margin-top: 24px;
}

.result-box h2 { margin-bottom: 18px; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
}

.team {
    background: var(--surface-soft);
    border-radius: 14px;
    padding: 18px;
}

.team ol,
.team ul { margin-bottom: 0; }

.info-box {
    padding: 22px;
    position: sticky;
    top: 96px;
}

.info-box h2 { font-size: 1.1rem; }

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

.error {
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--danger);
    background: #fff0f0;
    border: 1px solid #f2caca;
    margin-bottom: 18px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 11px 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

th {
    background: var(--surface-soft);
    font-size: .92rem;
}

.table-wrap { overflow-x: auto; }

.site-footer {
    margin-top: 60px;
    background: #10271a;
    color: white;
    padding: 34px 0;
}

.site-footer p {
    color: rgba(255,255,255,.68);
    margin: 4px 0 0;
}

.site-footer a { color: white; }

.ad-placeholder {
    display: grid;
    place-items: center;
    min-height: 110px;
    border: 1px dashed #9eb0a3;
    border-radius: 12px;
    color: var(--muted);
    background: rgba(255,255,255,.55);
    margin-top: 20px;
    text-align: center;
    padding: 16px;
}

@media (max-width: 840px) {
    .hero-grid,
    .tool-layout {
        grid-template-columns: 1fr;
    }

    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .info-box { position: static; }
}

@media (max-width: 580px) {
    .header-inner,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 0;
    }

    .hero { padding-top: 48px; }

    .grid,
    .form-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    h1 { font-size: 2.55rem; }
}
