:root {
    --bg: #fcf7f3;
    --bg-strong: #f5ede8;
    --panel: rgba(255, 251, 248, 0.82);
    --panel-strong: rgba(255, 255, 255, 0.9);
    --text: #223037;
    --muted: #5d6970;
    --line: rgba(103, 121, 124, 0.18);
    --accent: #c0935f;
    --accent-dark: #24484b;
    --accent-rose: #d9a6ae;
    --accent-fresh: #93aa93;
    --danger: #a34f43;
    --warning: #a57b3a;
    --success: #466a5d;
    --shadow: 0 30px 70px rgba(83, 62, 73, 0.12);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-pill: 999px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 14% 12%, rgba(235, 189, 199, 0.34), transparent 26%),
        radial-gradient(circle at 84% 16%, rgba(244, 218, 173, 0.38), transparent 24%),
        radial-gradient(circle at 52% 82%, rgba(170, 196, 180, 0.2), transparent 27%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(252, 247, 243, 0.98) 48%, rgba(247, 240, 236, 1) 100%),
        url("background-pattern.svg");
    background-color: var(--bg);
    background-size: auto, auto, auto, auto, cover;
    background-position: center, center, center, center, center top;
    color: var(--text);
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.site-shell {
    position: relative;
    overflow: hidden;
}

.site-shell::before,
.site-shell::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.site-shell::before {
    top: 4rem;
    right: -8rem;
    width: 28rem;
    height: 28rem;
    background: radial-gradient(circle, rgba(217, 166, 174, 0.22), rgba(217, 166, 174, 0));
    filter: blur(14px);
}

.site-shell::after {
    left: -10rem;
    bottom: -5rem;
    width: 32rem;
    height: 32rem;
    background: radial-gradient(circle, rgba(147, 170, 147, 0.18), rgba(147, 170, 147, 0));
    filter: blur(16px);
}

.ornament {
    position: fixed;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    opacity: 0.4;
    filter: blur(20px);
    pointer-events: none;
}

.ornament--left {
    top: -8rem;
    left: -9rem;
    background: radial-gradient(circle, rgba(217, 166, 174, 0.44), rgba(217, 166, 174, 0));
}

.ornament--right {
    right: -10rem;
    bottom: 10vh;
    background: radial-gradient(circle, rgba(192, 147, 95, 0.28), rgba(192, 147, 95, 0));
}

.page {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 72px;
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 28px;
    margin-bottom: 28px;
    animation: fadeUp 0.7s ease both;
}

.hero-copy,
.menu-showcase__frame,
.panel {
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 250, 246, 0.72));
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.hero-copy {
    position: relative;
    overflow: hidden;
    padding: 42px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 88% 16%, rgba(217, 166, 174, 0.16), transparent 24%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 243, 0.76));
}

.hero-copy > * {
    position: relative;
    z-index: 1;
}

.hero-copy::after {
    content: "";
    position: absolute;
    right: -5rem;
    bottom: -7rem;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(192, 147, 95, 0.2), rgba(192, 147, 95, 0));
    filter: blur(8px);
}

.eyebrow {
    margin: 0 0 14px;
    font-family: "Segoe UI", Tahoma, sans-serif;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.74rem;
    color: var(--accent-dark);
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
}

.hero-date {
    margin: 16px 0 22px;
    font-size: 1.1rem;
    color: #6c6c78;
}

.hero-text {
    max-width: 46rem;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #40525c;
}

.menu-showcase__frame {
    position: relative;
    overflow: hidden;
    height: 100%;
    padding: 30px;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.82), rgba(246, 252, 249, 0.74));
}

.menu-showcase__frame::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-rose), var(--accent), var(--accent-fresh));
    opacity: 0.8;
}

.menu-showcase__frame h2 {
    margin: 0 0 20px;
    font-size: 1.8rem;
    position: relative;
    z-index: 1;
}

.menu-showcase__course + .menu-showcase__course {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.menu-showcase__course h3 {
    margin: 0 0 12px;
    font-size: 1.25rem;
    color: var(--accent-dark);
}

.menu-showcase__option + .menu-showcase__option {
    margin-top: 12px;
}

.menu-showcase__option strong,
.menu-showcase__course p {
    display: block;
    margin-bottom: 4px;
}

.menu-showcase__course p {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.6;
    color: var(--muted);
}

.panel {
    border-radius: var(--radius-xl);
    padding: 30px;
    margin-bottom: 24px;
    animation: fadeUp 0.7s ease both;
}

.panel--compact {
    max-width: 560px;
    margin: 0 auto 24px;
}

.panel--result {
    max-width: 720px;
}

.panel-intro h2 {
    margin: 0 0 8px;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.panel-intro p:last-child {
    margin-bottom: 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.admin-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    color: var(--accent-dark);
}

.admin-subtitle {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.admin-actions {
    display: flex;
    justify-content: flex-end;
}

.page-toolbar {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 18px;
}

.page-toolbar__form {
    display: flex;
    justify-content: flex-end;
}

.result-card {
    display: grid;
    gap: 14px;
    text-align: center;
    padding: 10px 4px 4px;
}

.result-card h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--accent-dark);
}

.result-card__text {
    max-width: 40rem;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--muted);
}

.result-card__meta {
    margin: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-size: 0.94rem;
    color: #66737b;
}

.result-actions {
    display: flex;
    justify-content: center;
    margin-top: 6px;
}

.result-card--success .eyebrow {
    color: var(--success);
}

.result-card--warning .eyebrow {
    color: var(--warning);
}

.result-card--error .eyebrow {
    color: var(--danger);
}

.alert {
    display: grid;
    gap: 6px;
    border-radius: var(--radius-md);
    padding: 16px 18px;
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-size: 0.96rem;
    line-height: 1.6;
}

.alert--error {
    background: rgba(163, 79, 67, 0.1);
    border: 1px solid rgba(163, 79, 67, 0.24);
    color: #6f2b21;
}

.alert--warning {
    background: rgba(138, 105, 49, 0.1);
    border: 1px solid rgba(138, 105, 49, 0.26);
    color: #705321;
}

.alert--success {
    background: rgba(72, 99, 80, 0.1);
    border: 1px solid rgba(72, 99, 80, 0.24);
    color: #31483b;
}

.alert-list {
    margin: 0;
    padding-left: 20px;
}

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

.summary-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 249, 0.9));
    padding: 22px;
    display: grid;
    gap: 18px;
}

.summary-card__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
}

.summary-card__header h3 {
    margin: 0;
    color: var(--accent-dark);
    font-size: 1.4rem;
}

.summary-card__meta {
    color: var(--muted);
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-size: 0.88rem;
    white-space: nowrap;
}

.summary-list {
    display: grid;
    gap: 12px;
}

.summary-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(103, 121, 124, 0.12);
}

.summary-row--skip {
    background: rgba(247, 247, 246, 0.84);
}

.summary-row__content {
    display: grid;
    gap: 4px;
}

.summary-row__content strong {
    color: #2b404a;
}

.summary-row__content span {
    color: var(--muted);
    line-height: 1.5;
}

.summary-count {
    min-width: 56px;
    padding: 10px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(36, 72, 75, 0.92), rgba(192, 147, 95, 0.88));
    color: #fffdf9;
    text-align: center;
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-weight: 700;
}

.booking-list {
    display: grid;
    gap: 20px;
}

.booking-card {
    border: 1px solid var(--line);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(249, 247, 245, 0.92));
    padding: 24px;
    display: grid;
    gap: 22px;
}

.booking-card__header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.booking-card__eyebrow {
    margin: 0 0 8px;
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-dark);
}

.booking-card__header h3 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--accent-dark);
}

.booking-card__meta,
.booking-card__dates span {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.booking-card__dates {
    text-align: right;
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-size: 0.92rem;
}

.booking-guests {
    display: grid;
    gap: 16px;
}

.booking-guest {
    border: 1px solid rgba(103, 121, 124, 0.14);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    display: grid;
    gap: 16px;
}

.booking-guest__header h4 {
    margin: 0;
    font-size: 1.35rem;
    color: #294046;
}

.booking-choice-list {
    display: grid;
    gap: 12px;
}

.booking-choice {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid rgba(103, 121, 124, 0.1);
}

.booking-choice:first-child {
    border-top: none;
    padding-top: 0;
}

.booking-choice__course {
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--accent-dark);
}

.booking-choice__selection {
    display: grid;
    gap: 4px;
}

.booking-choice__selection span {
    color: var(--muted);
    line-height: 1.55;
}

.booking-allergies {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(243, 240, 236, 0.8);
}

.booking-allergies strong {
    color: #2d4047;
}

.booking-allergies span {
    color: var(--muted);
    line-height: 1.6;
}

.unlock-form,
.rsvp-form {
    display: grid;
    gap: 24px;
}

.unlock-form--inline {
    max-width: 31rem;
    margin-top: 28px;
}

.unlock-form__actions {
    display: flex;
    justify-content: flex-start;
}

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

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

.field__label {
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: #4d5d67;
}

.field__input,
.field__textarea {
    width: 100%;
    border: 1px solid rgba(103, 121, 124, 0.18);
    background: var(--panel-strong);
    border-radius: 16px;
    padding: 15px 16px;
    color: var(--text);
    font: inherit;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.field__input:focus,
.field__textarea:focus {
    outline: none;
    border-color: rgba(192, 147, 95, 0.52);
    box-shadow: 0 0 0 4px rgba(192, 147, 95, 0.12);
    transform: translateY(-1px);
}

.field__input:disabled,
.field__textarea:disabled {
    background: rgba(242, 238, 235, 0.9);
    color: #7b8288;
}

.guest-stack {
    display: grid;
    gap: 18px;
}

.guest-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 247, 244, 0.9));
    padding: 24px;
    display: grid;
    gap: 22px;
}

.guest-card--primary {
    background: linear-gradient(145deg, rgba(255, 249, 246, 0.98), rgba(244, 250, 247, 0.94));
}

.guest-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.guest-card__eyebrow {
    margin: 0 0 6px;
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.guest-card__title {
    margin: 0;
    font-size: 1.8rem;
    color: var(--accent-dark);
}

.guest-card__lead {
    margin: 8px 0 0;
    font-size: 1rem;
    color: var(--muted);
}

.guest-card__lead-label {
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-weight: 600;
}

.choice-group {
    display: grid;
    gap: 14px;
}

.choice-group__header h4 {
    margin: 0 0 4px;
    font-size: 1.3rem;
    color: #2f4450;
}

.choice-group__header p {
    margin: 0;
    color: var(--muted);
}

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

.option-card {
    position: relative;
    display: block;
    min-height: 100%;
    cursor: pointer;
}

.option-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.option-card__content {
    display: grid;
    gap: 8px;
    min-height: 100%;
    border-radius: 20px;
    padding: 18px;
    border: 1px solid rgba(103, 121, 124, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(252, 248, 245, 0.88));
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.option-card__title {
    font-size: 1.08rem;
    font-weight: 700;
}

.option-card__description {
    color: var(--muted);
    line-height: 1.55;
}

.option-card:hover .option-card__content {
    transform: translateY(-2px);
    border-color: rgba(147, 170, 147, 0.42);
}

.option-card input:checked + .option-card__content {
    border-color: rgba(36, 72, 75, 0.82);
    background: linear-gradient(180deg, rgba(245, 251, 248, 1), rgba(252, 241, 238, 0.96));
    box-shadow: 0 16px 30px rgba(53, 83, 80, 0.14);
}

.option-card input:disabled + .option-card__content {
    cursor: default;
    opacity: 0.8;
}

.option-card--skip .option-card__content {
    background: rgba(249, 247, 245, 0.92);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
    align-items: center;
}

.button {
    appearance: none;
    border: none;
    border-radius: var(--radius-pill);
    padding: 14px 22px;
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover:not(:disabled) {
    transform: translateY(-2px);
}

.button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.button--primary {
    background: linear-gradient(135deg, #24484b 0%, #667e73 55%, #c0935f 100%);
    color: #fffdf9;
    box-shadow: 0 20px 36px rgba(55, 82, 79, 0.24);
}

.button--secondary {
    background: rgba(255, 250, 247, 0.96);
    color: var(--accent-dark);
    border: 1px solid rgba(192, 147, 95, 0.26);
}

.button--ghost {
    background: transparent;
    color: var(--muted);
    padding: 10px 0;
}

.helper-text {
    margin: -10px 0 0;
    color: var(--muted);
}

.deadline-box {
    display: grid;
    gap: 6px;
    margin: 0 0 22px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: rgba(147, 170, 147, 0.1);
    border: 1px solid rgba(147, 170, 147, 0.22);
}

.deadline-box--expired {
    background: rgba(163, 79, 67, 0.08);
    border-color: rgba(163, 79, 67, 0.22);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 960px) {
    .hero-panel {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .option-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .page {
        width: min(100% - 20px, 1000px);
        padding-top: 20px;
    }

    body {
        background-size: auto, auto, auto, auto, 1800px auto;
        background-position: center, center, center, center, 56% 0;
    }

    .hero-copy,
    .menu-showcase__frame,
    .panel {
        padding: 22px;
    }

    .admin-header,
    .booking-card__header,
    .form-grid,
    .button-row,
    .guest-card__header {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .booking-card__dates {
        text-align: left;
    }

    .booking-choice {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .button-row .button {
        width: 100%;
    }

    .guest-card {
        padding: 18px;
    }

    .guest-card__title {
        font-size: 1.5rem;
    }
}
