:root {
    --bg: #fff8f1;
    --surface: #fffdf9;
    --surface-soft: #f7ede2;
    --mint: #d9efe5;
    --mint-dark: #5f8f7b;
    --rose: #f7d8d0;
    --peach: #f5c9a8;
    --lavender: #e7ddf4;
    --text: #2f2a25;
    --muted: #6f665e;
    --accent: #d77a61;
    --accent-dark: #a94f3c;
    --shadow: 0 24px 80px rgba(76, 54, 41, 0.14);
    --radius-lg: 34px;
    --radius-md: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 10%, rgba(247, 216, 208, 0.75), transparent 32rem),
        radial-gradient(circle at 88% 2%, rgba(217, 239, 229, 0.9), transparent 30rem),
        var(--bg);
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.hero,
.section,
.photo-break,
.footer {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    padding: 24px 0 44px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 56px;
}

.logo,
.nav__link {
    text-decoration: none;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.logo__mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    color: var(--accent-dark);
    background: var(--rose);
    font-size: 28px;
}

.nav__link {
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(255, 253, 249, 0.72);
    color: var(--muted);
    font-weight: 700;
}

.hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 32px;
    align-items: stretch;
}

.hero__text,
.event-card,
.section {
    border: 1px solid rgba(95, 143, 123, 0.18);
    background: rgba(255, 253, 249, 0.74);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero__text {
    padding: clamp(36px, 7vw, 82px);
    border-radius: var(--radius-lg);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 780px;
    margin-bottom: 24px;
    font-size: clamp(2.5rem, 6vw, 5.7rem);
    line-height: 0.95;
    letter-spacing: -0.065em;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

p {
    color: var(--muted);
    line-height: 1.7;
}

.hero__lead {
    max-width: 660px;
    margin-bottom: 32px;
    font-size: 1.18rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 24px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button--primary {
    color: #fffdf9;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    box-shadow: 0 16px 34px rgba(169, 79, 60, 0.26);
}

.button--ghost {
    color: var(--mint-dark);
    background: var(--mint);
}

.button--wide {
    display: flex;
    width: min(360px, 100%);
    margin: 36px auto 0;
}

.event-card {
    display: grid;
    gap: 16px;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, rgba(217, 239, 229, 0.84), rgba(255, 253, 249, 0.88));
}

.event-card__item {
    padding: 22px;
    border-radius: var(--radius-md);
    background: rgba(255, 253, 249, 0.68);
}

.event-card__item span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.event-card__item strong {
    display: block;
    font-size: 1.2rem;
    line-height: 1.45;
}

.section {
    margin-top: 28px;
    padding: clamp(30px, 5vw, 64px);
    border-radius: var(--radius-lg);
}

.section--soft {
    background: linear-gradient(145deg, rgba(247, 237, 226, 0.92), rgba(255, 253, 249, 0.82));
}

.section__intro {
    max-width: 780px;
    margin-bottom: 30px;
}

.program-grid,
.injury-list,
.instructor-grid,
.price-grid {
    display: grid;
    gap: 18px;
}

.program-grid {
    grid-template-columns: repeat(4, 1fr);
}

.program-card,
.injury-list article,
.instructor-card,
.price-card {
    border: 1px solid rgba(47, 42, 37, 0.06);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.program-card {
    padding: 24px;
}

.program-card__number {
    display: inline-flex;
    margin-bottom: 28px;
    color: var(--mint-dark);
    font-weight: 800;
}

.injury-list {
    grid-template-columns: repeat(2, 1fr);
}

.injury-list article {
    padding: 28px;
    background: linear-gradient(150deg, var(--surface), var(--lavender));
}

.legal {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 28px;
    background: linear-gradient(145deg, rgba(217, 239, 229, 0.88), rgba(255, 253, 249, 0.9));
}

.legal__content p {
    margin-bottom: 0;
}

.legal__list {
    align-self: center;
    margin: 0;
    padding: 26px 26px 26px 48px;
    border-radius: var(--radius-md);
    background: rgba(255, 253, 249, 0.72);
    color: var(--muted);
    line-height: 1.8;
}

.photo-break {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    margin-top: 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.photo-break img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
}

.photo-break::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(47, 42, 37, 0.62), rgba(47, 42, 37, 0.04));
}

.photo-break__caption {
    position: absolute;
    left: clamp(24px, 5vw, 54px);
    bottom: clamp(24px, 5vw, 54px);
    z-index: 1;
    max-width: 520px;
    color: #fff;
}

.photo-break__caption span {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 800;
}

.photo-break__caption strong {
    display: block;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.instructor-grid,
.price-grid {
    grid-template-columns: repeat(3, 1fr);
}

.instructor-card,
.price-card {
    padding: 28px;
}

.instructor-card__avatar {
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 22px;
    color: var(--accent-dark);
    background: var(--rose);
    font-weight: 800;
}

.price-card {
    position: relative;
    background: linear-gradient(160deg, var(--surface), var(--surface-soft));
}

.price-card--featured {
    background: linear-gradient(160deg, var(--mint), var(--surface));
    transform: translateY(-10px);
}

.badge {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--accent-dark);
    background: var(--rose);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.price-card__price {
    margin-bottom: 14px;
    color: var(--text);
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 30px 0 44px;
    color: var(--muted);
}

.footer p {
    margin: 0;
}

.footer a {
    font-weight: 800;
    color: var(--accent-dark);
}

.admin-page {
    min-height: 100vh;
    display: grid;
    align-items: center;
    padding: 30px 0;
}

.admin {
    width: min(1040px, calc(100% - 32px));
}

.admin h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.admin-form {
    display: grid;
    max-width: 440px;
    gap: 16px;
}

.admin-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
}

.admin-form input {
    padding: 15px 16px;
    border: 1px solid rgba(95, 143, 123, 0.24);
    border-radius: 16px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
    background: var(--surface);
}

.applications-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.applications-table th,
.applications-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(47, 42, 37, 0.08);
    text-align: left;
}

.applications-table th {
    color: var(--accent-dark);
    background: var(--rose);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.applications-table tr:last-child td {
    border-bottom: 0;
}

.admin__back {
    display: inline-flex;
    margin-top: 24px;
    color: var(--accent-dark);
    font-weight: 800;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: none;
    place-items: center;
    padding: 20px;
}

.modal.is-open {
    display: grid;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(47, 42, 37, 0.46);
    backdrop-filter: blur(8px);
}

.modal__dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    padding: 34px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    color: var(--accent-dark);
    background: var(--rose);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.signup-form {
    display: grid;
    gap: 16px;
}

.signup-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
}

.signup-form input {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid rgba(95, 143, 123, 0.24);
    border-radius: 16px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

.signup-form input:focus {
    outline: 3px solid rgba(215, 122, 97, 0.2);
    border-color: var(--accent);
}

.form-message {
    min-height: 24px;
    margin: 0;
    font-weight: 800;
}

.form-message.is-success {
    color: var(--mint-dark);
}

.form-message.is-error {
    color: var(--accent-dark);
}

@media (max-width: 940px) {
    .hero__content,
    .legal {
        grid-template-columns: 1fr;
    }

    .program-grid,
    .instructor-grid,
    .price-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .price-card--featured {
        transform: none;
    }
}

@media (max-width: 680px) {
    .hero,
    .section,
    .photo-break,
    .footer {
        width: min(100% - 20px, 1180px);
    }

    .hero {
        padding-top: 14px;
    }

    .nav,
    .footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero__text,
    .event-card,
    .section,
    .modal__dialog {
        border-radius: 24px;
    }

    .hero__actions,
    .button {
        width: 100%;
    }

    .program-grid,
    .injury-list,
    .instructor-grid,
    .price-grid {
        grid-template-columns: 1fr;
    }

    .photo-break,
    .photo-break img {
        min-height: 360px;
    }
}
