:root {
    --green-dark: #11291e;
    --green: #28543b;
    --green-light: #e7efe9;
    --gold: #c79743;
    --cream: #f7f2e8;
    --white: #ffffff;
    --text: #26312a;
    --muted: #68736c;
    --border: rgba(25, 60, 40, 0.14);
    --shadow: 0 24px 60px rgba(15, 43, 28, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--white);
    font-family: "Manrope", sans-serif;
    line-height: 1.7;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(calc(100% - 36px), 1180px);
    margin: auto;
}

.section {
    padding: 100px 0;
}

.muted {
    background: var(--cream);
}

.dark {
    color: var(--white);
    background: var(--green-dark);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--gold);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 32px;
    height: 1px;
    content: "";
    background: currentColor;
}

h1,
h2,
h3 {
    margin-top: 0;
    font-family: "Cormorant Garamond", serif;
    line-height: 1.05;
}

h1 {
    max-width: 850px;
    margin-bottom: 24px;
    font-size: clamp(4rem, 8vw, 7.6rem);
}

h1 em {
    display: block;
    color: var(--gold);
    font-style: normal;
}

h2 {
    margin-bottom: 22px;
    font-size: clamp(3rem, 5vw, 5rem);
}

h3 {
    font-size: 1.7rem;
}

p {
    margin-top: 0;
}

.header {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;
    color: var(--white);
    transition: 0.25s ease;
}

.header.scrolled {
    color: var(--green-dark);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(10, 35, 20, 0.09);
    backdrop-filter: blur(12px);
}

.nav {
    display: flex;
    min-height: 80px;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo > i {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--white);
    border-radius: 50%;
    background: var(--gold);
}

.logo strong,
.logo small {
    display: block;
}

.logo strong {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.45rem;
    line-height: 1;
}

.logo small {
    font-size: 0.62rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.menu {
    display: flex;
    align-items: center;
    gap: 23px;
}

.menu a {
    font-size: 0.8rem;
    font-weight: 600;
}

.menu-contact {
    padding: 9px 17px;
    color: var(--white);
    border-radius: 999px;
    background: var(--gold);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    color: inherit;
    background: transparent;
}

.menu-button span {
    display: block;
    width: 27px;
    height: 2px;
    margin: 6px auto;
    background: currentColor;
}

.hero {
    position: relative;
    display: flex;
    min-height: 100vh;
    align-items: center;
    color: var(--white);
    background:
        url("https://images.unsplash.com/photo-1553284965-83fd3e82fa5a?auto=format&fit=crop&w=2000&q=85")
        center / cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(6, 29, 17, 0.86),
        rgba(6, 29, 17, 0.43),
        rgba(6, 29, 17, 0.08)
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 100px;
}

.hero-content > p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.08rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.primary {
    color: var(--white);
    background: var(--gold);
}

.light {
    color: var(--green-dark);
    background: var(--white);
}

.outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.35);
}

.full {
    width: 100%;
}

.stats {
    display: flex;
    gap: 45px;
    margin-top: 65px;
}

.stats div {
    display: flex;
    flex-direction: column;
}

.stats strong {
    color: var(--gold);
    font-family: "Cormorant Garamond", serif;
    font-size: 2.4rem;
    line-height: 1;
}

.stats span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.7rem;
    text-transform: uppercase;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.history-image {
    min-height: 600px;
    border-radius: 30px;
    background:
        url("https://images.unsplash.com/photo-1547581849-38ba650ad0de?auto=format&fit=crop&w=1100&q=85")
        center / cover;
    box-shadow: var(--shadow);
}

.lead {
    color: var(--green);
    font-size: 1.15rem;
    font-weight: 600;
}

.values {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 28px;
    color: var(--green);
    font-weight: 700;
}

.values i {
    color: var(--gold);
}

.section-header {
    max-width: 720px;
    margin: 0 auto 52px;
    text-align: center;
}

.cards {
    display: grid;
    gap: 22px;
}

.cards.three {
    grid-template-columns: repeat(3, 1fr);
}

.card,
.price-card {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 14px 35px rgba(20, 50, 30, 0.06);
}

.card-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 24px;
    place-items: center;
    color: var(--gold);
    border-radius: 18px;
    background: var(--green-light);
    font-size: 1.6rem;
}

.card p,
.price-card p {
    color: var(--muted);
}

.event-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--white);
}

.event-date {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 19px 28px;
    color: var(--white);
    background: var(--green);
}

.event-date strong {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.5rem;
}

.event-body {
    padding: 28px;
}

.event-body small,
.calendar small {
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 38px;
}

.filter {
    padding: 9px 16px;
    color: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}

.filter.active,
.filter:hover {
    color: var(--green-dark);
    border-color: var(--gold);
    background: var(--gold);
}

.calendar {
    display: grid;
    gap: 13px;
}

.calendar-item {
    display: grid;
    grid-template-columns: 110px 1fr 210px;
    align-items: center;
    gap: 28px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.calendar-item[hidden] {
    display: none;
}

.calendar-date {
    display: flex;
    flex-direction: column;
}

.calendar-date strong {
    color: var(--gold);
    font-family: "Cormorant Garamond", serif;
    font-size: 2.1rem;
}

.calendar-item p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.62);
}

.ranking {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 26px;
}

.horse {
    display: grid;
    grid-template-columns: 55px 65px 1fr 110px;
    align-items: center;
    gap: 20px;
    padding: 20px 26px;
    border-bottom: 1px solid var(--border);
}

.horse:last-child {
    border-bottom: 0;
}

.position {
    color: var(--gold);
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}

.horse-avatar {
    display: grid;
    width: 60px;
    height: 60px;
    place-items: center;
    color: var(--white);
    border-radius: 50%;
    background: var(--green);
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
}

.horse h3,
.horse p {
    margin-bottom: 3px;
}

.horse p,
.horse small {
    color: var(--muted);
}

.competition {
    color: var(--white);
    background:
        linear-gradient(
            rgba(17, 48, 33, 0.93),
            rgba(17, 48, 33, 0.93)
        ),
        url("https://images.unsplash.com/photo-1534773728080-33d31da27ae5?auto=format&fit=crop&w=1900&q=80")
        center / cover;
}

.competition-card {
    display: flex;
    min-height: 410px;
    flex-direction: column;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.07);
}

.competition-card > i {
    color: var(--gold);
    font-size: 2rem;
}

.competition-card > p {
    color: rgba(255, 255, 255, 0.65);
}

.prize {
    display: flex;
    flex-direction: column;
    margin: auto 0 20px;
    padding: 17px;
    border-left: 3px solid var(--gold);
    background: rgba(255, 255, 255, 0.05);
}

.prize small {
    color: var(--gold);
}

.price-card {
    display: flex;
    min-height: 330px;
    flex-direction: column;
}

.price-card.featured {
    color: var(--white);
    background: var(--green);
    transform: translateY(-8px);
}

.price-card.featured p {
    color: rgba(255, 255, 255, 0.68);
}

.price {
    margin: auto 0 24px;
    color: var(--green);
    font-family: "Cormorant Garamond", serif;
    font-size: 3.2rem;
    font-weight: 700;
}

.price-card.featured .price {
    color: var(--gold);
}

.price small {
    color: var(--muted);
    font-family: "Manrope", sans-serif;
    font-size: 0.7rem;
}

.contact-list {
    display: grid;
    gap: 8px;
    margin-top: 30px;
    color: var(--green);
    font-weight: 700;
}

.contact-list i {
    width: 28px;
    color: var(--gold);
}

.contact-form {
    padding: 38px;
    border-radius: 28px;
    background: var(--cream);
    box-shadow: var(--shadow);
}

.contact-form label {
    display: block;
    margin-bottom: 17px;
    color: var(--green-dark);
    font-size: 0.8rem;
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-control {
    width: 100%;
    margin-top: 7px;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 11px;
    outline: none;
    background: var(--white);
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(199, 151, 67, 0.12);
}

.checkbox {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted) !important;
}

.form-check-input {
    margin-top: 4px;
}

.errorlist {
    margin: 5px 0;
    padding: 0;
    color: #b62f2f;
    font-size: 0.75rem;
    list-style: none;
}

.messages {
    position: fixed;
    z-index: 1200;
    top: 95px;
    right: 20px;
}

.message {
    padding: 15px 20px;
    border-left: 4px solid #3f9c62;
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow);
}

footer {
    padding: 65px 0 22px;
    color: rgba(255, 255, 255, 0.7);
    background: #0a1c13;
}

footer h3 {
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 50px;
}

.copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
}

@media (max-width: 1000px) {
    .menu-button {
        display: block;
    }

    .menu {
        position: fixed;
        top: 80px;
        right: 0;
        left: 0;
        height: calc(100vh - 80px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 25px;
        color: var(--green-dark);
        background: var(--white);
        transform: translateX(100%);
        transition: 0.25s ease;
    }

    .menu.open {
        transform: translateX(0);
    }

    .menu a {
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
        font-size: 1rem;
    }

    .menu-contact {
        margin-top: 20px;
        padding: 13px !important;
        text-align: center;
    }

    .cards.three {
        grid-template-columns: repeat(2, 1fr);
    }

    .calendar-item {
        grid-template-columns: 100px 1fr;
    }

    .calendar-item > div:last-child {
        grid-column: 2;
    }
}

@media (max-width: 720px) {
    .section {
        padding: 76px 0;
    }

    .hero {
        min-height: 850px;
    }

    .hero-overlay {
        background: rgba(6, 29, 17, 0.72);
    }

    .stats {
        flex-wrap: wrap;
        gap: 25px;
    }

    .split,
    .cards.three,
    .form-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .history-image {
        min-height: 430px;
    }

    .calendar-item {
        grid-template-columns: 1fr;
    }

    .calendar-item > div:last-child {
        grid-column: auto;
    }

    .horse {
        grid-template-columns: 40px 55px 1fr;
        gap: 12px;
        padding: 17px 13px;
    }

    .horse > strong {
        grid-column: 3;
    }

    .price-card.featured {
        transform: none;
    }

    .contact-form {
        padding: 25px 19px;
    }
}
