:root {
    --primary: #2f5d50;
    --primary-dark: #203f36;
    --primary-soft: #e8f0ed;
    --accent: #d5a84b;
    --background: #f5f7f6;
    --surface: #fff;
    --text: #1f2933;
    --muted: #667085;
    --border: #d8e2dd;
    --shadow: 0 16px 38px rgba(31, 41, 51, 0.1);
    --radius: 16px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
}

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

button,
input,
select {
    font: inherit;
}

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

.navbar {
    width: min(100% - 2rem, var(--max-width));
    min-height: 74px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.brand {
    margin-right: auto;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.nav-links,
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links a {
    padding-bottom: 0.2rem;
    font-weight: 600;
    white-space: nowrap;
}

.nav-actions form {
    margin: 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 9px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: #fff;
    background: var(--primary);
}

.button-primary:hover {
    color: #fff;
    background: var(--primary-dark);
}

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

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

main {
    width: min(100% - 2rem, var(--max-width));
    margin: 0 auto;
}

.hero {
    min-height: 570px;
    padding: 5rem 0;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    gap: 4rem;
}

.eyebrow {
    margin: 0 0 0.6rem;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(3rem, 7vw, 5.6rem);
    line-height: 1;
    color: var(--primary-dark);
}

.hero-description {
    max-width: 690px;
    margin: 1.5rem 0 0;
    font-size: 1.15rem;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.hero-panel {
    padding: 1.2rem;
    border-radius: var(--radius);
    color: #fff;
    background: linear-gradient(
        145deg,
        var(--primary-dark),
        var(--primary)
    );
    box-shadow: var(--shadow);
}

.hero-stat {
    padding: 1.4rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stat:last-child {
    border-bottom: 0;
}

.hero-stat strong {
    color: var(--accent);
    font-size: 1.5rem;
}

.search-section,
.content-section,
.steps-section,
.split-section {
    margin-bottom: 5rem;
}

.search-section {
    padding: 2rem;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.search-section h2,
.section-heading h2,
.feature-panel h2 {
    margin: 0;
    color: var(--primary-dark);
}

.search-form {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    align-items: end;
    gap: 1rem;
}

.search-form label {
    display: grid;
    gap: 0.45rem;
    color: var(--muted);
    font-weight: 700;
}

.search-form input,
.search-form select {
    width: 100%;
    min-height: 46px;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.section-heading {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.section-heading > a {
    font-weight: 700;
}

.card-grid,
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.tournament-card,
.steps-grid article,
.feature-panel {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 6px 18px rgba(31, 41, 51, 0.06);
}

.card-topline {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.badge {
    display: inline-flex;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    color: var(--primary-dark);
    background: var(--primary-soft);
    font-weight: 800;
}

.tournament-card h3 {
    margin: 1rem 0 0.35rem;
    color: var(--primary-dark);
}

.location {
    margin-top: 0;
    color: var(--muted);
}

.tournament-card dl {
    margin: 1.2rem 0;
}

.tournament-card dl div {
    padding: 0.65rem 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
}

.tournament-card dt {
    color: var(--muted);
}

.tournament-card dd {
    margin: 0;
    text-align: right;
    font-weight: 700;
}

.card-link {
    font-weight: 800;
}

.empty-state {
    padding: 2rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    text-align: center;
    background: var(--surface);
}

.steps-grid article span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: var(--primary);
    font-weight: 800;
}

.steps-grid article h3 {
    margin-bottom: 0.4rem;
    color: var(--primary-dark);
}

.steps-grid article p {
    margin: 0;
    color: var(--muted);
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.feature-panel {
    padding: 2rem;
}

.feature-panel p:not(.eyebrow) {
    color: var(--muted);
}

.site-footer {
    padding: 2.5rem max(
        1rem,
        calc((100% - var(--max-width)) / 2)
    );
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 2rem;
    color: #dbe8e3;
    background: var(--primary-dark);
}

.footer-brand {
    display: inline-block;
    margin-bottom: 0.4rem;
    color: #fff;
}

.site-footer div p,
.site-footer > p {
    margin: 0;
}

.site-footer nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-footer a {
    color: #fff;
}

.site-footer a:hover {
    color: var(--accent);
}

@media (max-width: 1100px) {
    .navbar {
        padding: 1rem 0;
        flex-wrap: wrap;
    }

    .brand {
        width: 100%;
    }

    .nav-links,
    .nav-actions {
        flex-wrap: wrap;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

    .site-footer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    main {
        width: min(100% - 1rem, var(--max-width));
    }

    .hero {
        min-height: auto;
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .nav-links,
    .nav-actions,
    .hero-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .search-form,
    .card-grid,
    .steps-grid,
    .split-section {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }
}