:root {
    --paper: #e7e2df;
    --paper-soft: #f3efec;
    --ink: #544c53;
    --ink-strong: #342f34;
    --accent: #ef5947;
    --accent-dark: #c93e31;
    --line: rgba(84, 76, 83, 0.15);
    --white: #ffffff;
    --success: #d9f3df;
    --danger: #ffe0dd;
    --shadow: 0 22px 50px rgba(57, 48, 48, 0.14);
    --container: 1380px;
    --radius: 8px;
    --font-body: "Glacial Indifference", "Glacial Indiference", "Manrope", "Segoe UI", Arial, sans-serif;
    --font-display: "HeadingNow 6168", "HeadingNow 61-68", "Heading Now 61-68", Impact, "Arial Black", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.content-wrap {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}

.hero {
    padding: 36px 0 0;
    background: linear-gradient(180deg, var(--paper-soft) 0%, var(--paper) 100%);
}

.hero__inner {
    width: min(calc(100% - 32px), 1580px);
    margin: 0 auto;
    text-align: center;
}

.hero__kicker,
.hero__subtitle {
    margin: 0;
    color: var(--accent);
    font-size: clamp(1rem, 1.8vw, 1.5rem);
    line-height: 1.25;
    text-transform: uppercase;
}

.hero__title {
    margin: 4px 0 8px;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: clamp(4.5rem, 16vw, 13.5rem);
    line-height: 0.8;
    text-transform: uppercase;
    letter-spacing: 0;
    text-shadow: 0 18px 28px rgba(74, 67, 67, 0.18);
}

.hero__subtitle em {
    font-style: italic;
}

.hero__image {
    margin-top: 28px;
    overflow: hidden;
    background: var(--paper);
}

.hero__image img {
    width: 100%;
    height: auto;
}

.program-section,
.reservation-section {
    padding: 74px 0;
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading span {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;
    color: var(--ink-strong);
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1;
}

.program-list {
    display: grid;
    gap: 38px;
    width: min(100%, 1120px);
}

.program-item {
    padding-left: 0;
}

.program-item h3 {
    margin: 0 0 6px;
    color: var(--accent);
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.12;
}

.program-item p {
    margin: 0;
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    line-height: 1.35;
}

.program-item__subtitle {
    font-weight: 700;
    font-style: italic;
}

.program-item a,
.program-item span {
    display: inline-flex;
    margin-top: 6px;
    color: var(--accent);
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    text-decoration: none;
}

.program-item a:hover {
    text-decoration: underline;
}

.reservation-section {
    background: var(--paper-soft);
}

.reservation-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
    gap: 42px;
    align-items: start;
}

.reservation-copy p {
    margin: 0;
    max-width: 620px;
    font-size: 1.12rem;
    line-height: 1.7;
}

.reservation-logos {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 36px;
}

.reservation-logos img {
    max-height: 76px;
    width: auto;
    object-fit: contain;
}

.reservation-logos img:first-child {
    max-height: 92px;
}

.form-card,
.stat-card,
.table-card,
.login-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-card {
    padding: 30px;
}

.alert {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-size: 0.96rem;
    line-height: 1.5;
}

.alert--success {
    color: #173d22;
    background: var(--success);
    border-color: rgba(23, 61, 34, 0.16);
}

.alert--error {
    color: #6a1b12;
    background: var(--danger);
    border-color: rgba(106, 27, 18, 0.16);
}

.alert ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.form-grid {
    display: grid;
    gap: 16px;
}

.form-grid + .form-grid,
.form-grid + .field,
.field + .field {
    margin-top: 16px;
}

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

.field {
    display: grid;
    gap: 8px;
}

.field label {
    color: var(--ink-strong);
    font-size: 0.92rem;
    font-weight: 700;
}

.field input,
.field select {
    width: 100%;
    min-height: 50px;
    padding: 13px 14px;
    border: 1px solid rgba(84, 76, 83, 0.2);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.78);
    color: var(--ink-strong);
    font: inherit;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input:focus,
.field select:focus,
.calendar__day:focus-visible,
.times__button:focus-visible,
.button:focus-visible {
    outline: none;
    border-color: rgba(239, 89, 71, 0.85);
    box-shadow: 0 0 0 4px rgba(239, 89, 71, 0.16);
}

.field-note {
    font-size: 0.84rem;
    color: rgba(84, 76, 83, 0.72);
}

.form-submit {
    margin-top: 20px;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 24px;
    border: 0;
    border-radius: var(--radius);
    font: inherit;
    font-weight: 800;
    color: var(--white);
    background: var(--accent);
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease;
}

.button:hover {
    transform: translateY(-1px);
    background: var(--accent-dark);
}

.button--ghost {
    color: var(--ink-strong);
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid var(--line);
}

.button--ghost:hover {
    background: var(--white);
}

.button--danger {
    background: #9f2d22;
}

.button--small {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.9rem;
}

.selector {
    display: grid;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(231, 226, 223, 0.56);
}

.selector__header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline;
}

.selector__title {
    margin: 0;
    color: var(--ink-strong);
    font-weight: 800;
}

.selector__meta {
    font-size: 0.84rem;
    color: rgba(84, 76, 83, 0.72);
}

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

.calendar {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.62);
}

.calendar__title {
    margin: 0 0 12px;
    color: var(--ink-strong);
    font-size: 1rem;
}

.calendar__weekdays,
.calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.calendar__weekdays span {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    color: rgba(84, 76, 83, 0.56);
}

.calendar__empty {
    min-height: 40px;
}

.calendar__day {
    min-height: 40px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 6px;
    font: inherit;
    font-weight: 800;
    color: var(--ink-strong);
    background: rgba(84, 76, 83, 0.06);
    cursor: pointer;
}

.calendar__day.is-disabled {
    cursor: not-allowed;
    color: rgba(84, 76, 83, 0.25);
    background: rgba(84, 76, 83, 0.035);
}

.calendar__day.is-available {
    color: var(--accent-dark);
    border-color: rgba(239, 89, 71, 0.24);
    background: rgba(239, 89, 71, 0.09);
}

.calendar__day.is-selected {
    color: var(--white);
    border-color: var(--accent);
    background: var(--accent);
}

.times {
    display: grid;
    gap: 12px;
}

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

.times__button {
    min-width: 94px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.62);
    color: var(--ink-strong);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.times__button.is-selected {
    color: var(--white);
    border-color: var(--accent);
    background: var(--accent);
}

.times__summary {
    min-height: 22px;
    color: var(--ink-strong);
    font-size: 0.92rem;
}

.slot-select-fallback {
    margin-top: 4px;
}

.js-enhanced .slot-select-fallback {
    display: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.site-footer {
    padding: 24px 0 42px;
    color: rgba(84, 76, 83, 0.75);
}

.site-footer .content-wrap {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.site-footer a {
    text-decoration: none;
}

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

.admin-shell {
    width: min(calc(100% - 32px), 1280px);
    margin: 0 auto;
    padding: 32px 0 44px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.admin-title,
.login-card h1 {
    margin: 0;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.85;
    text-transform: uppercase;
}

.admin-subtitle {
    margin: 8px 0 0;
}

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

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card {
    padding: 22px;
}

.stat-card__label {
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    color: rgba(84, 76, 83, 0.66);
}

.stat-card__value {
    display: block;
    margin-top: 10px;
    color: var(--ink-strong);
    font-size: clamp(2rem, 4vw, 3rem);
}

.table-card {
    overflow: hidden;
}

.table-card__header {
    padding: 22px 24px;
    border-bottom: 1px solid var(--line);
}

.table-card__header h2 {
    margin: 0 0 8px;
    color: var(--ink-strong);
    font-size: 2rem;
}

.table-card__header p {
    margin: 0;
}

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

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

th,
td {
    padding: 15px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    color: rgba(84, 76, 83, 0.66);
    background: rgba(255, 255, 255, 0.36);
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.28);
}

.pill {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 6px;
    background: rgba(239, 89, 71, 0.11);
    color: var(--accent-dark);
    font-size: 0.84rem;
    font-weight: 800;
}

.login-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
}

.login-card {
    width: min(100%, 480px);
    padding: 30px;
}

.login-card p {
    margin: 12px 0 22px;
    line-height: 1.6;
}

@media (max-width: 980px) {
    .reservation-layout,
    .selector__months,
    .stats {
        grid-template-columns: 1fr;
    }

    .reservation-layout {
        gap: 30px;
    }
}

@media (max-width: 680px) {
    .content-wrap,
    .hero__inner {
        width: min(calc(100% - 24px), var(--container));
    }

    .hero {
        padding-top: 26px;
    }

    .hero__image {
        margin-top: 20px;
    }

    .program-section,
    .reservation-section {
        padding: 48px 0;
    }

    .program-list {
        gap: 30px;
    }

    .form-card,
    .login-card,
    .table-card__header,
    .stat-card {
        padding: 20px;
    }

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

    .selector__header,
    .admin-header,
    .site-footer .content-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    th,
    td {
        padding: 13px 11px;
    }
}
