@font-face {
    font-family: GilmerHeavy;
    src: url("../fonts/GilmerHeavy.woff") format("woff"),
         url("../fonts/GilmerHeavy.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --purple: #39246a;
    --navy: #2c315d;
    --muted: #696a87;
    --label: #2c315d;
    --input-border: #ececf2;
    --input-focus: #0a66c2;
    --white: #ffffff;
    --btn: #1c8f7a;
    --btn-hover: #167866;
    --card-pad-x: 70px;
    --card-pad-y: 48px;
    --radius-card: 20px;
    --radius-input: 5px;
    --radius-btn: 50px;
    --font: "Noto Sans Armenian", "Barlow", sans-serif;
    --font-latin: "Barlow", "Noto Sans Armenian", sans-serif;
    --font-display: GilmerHeavy, "Barlow", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--navy);
    background: #0b1a2e;
    position: relative;
}

.page-bg,
.page-stars,
.page-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.page-bg {
    background:
        linear-gradient(180deg, rgba(8, 40, 42, 0.15) 0%, rgba(8, 14, 28, 0.35) 45%, rgba(5, 8, 18, 0.55) 100%),
        url("../img/bg.png") center top / cover no-repeat,
        linear-gradient(135deg, #0d3d3a 0%, #0a1a3a 42%, #071018 100%);
    z-index: 0;
}

.page-stars {
    z-index: 1;
    opacity: 0.55;
    background-image:
        radial-gradient(1.2px 1.2px at 12% 18%, rgba(255, 255, 255, 0.9) 50%, transparent 51%),
        radial-gradient(1.6px 1.6px at 28% 8%, rgba(255, 255, 255, 0.7) 50%, transparent 51%),
        radial-gradient(1px 1px at 46% 22%, rgba(255, 255, 255, 0.85) 50%, transparent 51%),
        radial-gradient(1.4px 1.4px at 63% 12%, rgba(255, 255, 255, 0.55) 50%, transparent 51%),
        radial-gradient(1px 1px at 81% 26%, rgba(255, 255, 255, 0.8) 50%, transparent 51%),
        radial-gradient(1.8px 1.8px at 92% 9%, rgba(255, 255, 255, 0.45) 50%, transparent 51%),
        radial-gradient(1px 1px at 8% 48%, rgba(255, 255, 255, 0.7) 50%, transparent 51%),
        radial-gradient(1.3px 1.3px at 33% 62%, rgba(255, 255, 255, 0.5) 50%, transparent 51%),
        radial-gradient(1px 1px at 58% 44%, rgba(255, 255, 255, 0.75) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 74% 71%, rgba(255, 255, 255, 0.4) 50%, transparent 51%),
        radial-gradient(1px 1px at 88% 52%, rgba(255, 255, 255, 0.65) 50%, transparent 51%),
        radial-gradient(1.2px 1.2px at 17% 82%, rgba(255, 255, 255, 0.5) 50%, transparent 51%);
}

.page-grid {
    z-index: 1;
    opacity: 0.07;
    background: url("../img/grid.svg") center top / 1171px 112px repeat;
}

.page {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
    padding: 36px 20px 56px;
}

.brand-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: nowrap;
    margin-bottom: 36px;
    width: 100%;
}

.brand-bar__item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.logo-lly {
    height: 52px;
    width: auto;
    display: block;
}

.logo-bold {
    height: 108px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.28));
}

.brand-bar__divider {
    width: 1px;
    height: 88px;
    background: rgba(255, 255, 255, 0.28);
}

.hero {
    text-align: center;
    color: var(--white);
    margin-bottom: 32px;
}

.hero__event {
    font-family: var(--font-display);
    font-size: clamp(18px, 2.4vw, 24px);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero__meta {
    margin-top: 14px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
}

.hero__dot {
    margin: 0 8px;
    opacity: 0.6;
}

.card {
    background: var(--white);
    border-radius: var(--radius-card);
    padding: var(--card-pad-y) var(--card-pad-x);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.card__header {
    text-align: center;
    margin-bottom: 32px;
}

.card__title {
    font-family: var(--font);
    font-size: clamp(28px, 3.4vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
    margin: 0 auto 12px;
    text-align: center;
}

.card__intro {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 560px;
    text-align: center;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 24px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field--full {
    grid-column: 1 / -1;
}

.field label {
    color: var(--label);
    font-weight: 700;
    font-size: 15px;
}

.req {
    color: #e10600;
}

.field input {
    height: 52px;
    width: 100%;
    border: 1px solid var(--input-border);
    border-radius: var(--radius-input);
    padding: 13px 21px;
    font-family: inherit;
    font-size: 16px;
    color: var(--navy);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder {
    color: #a3a6b8;
}

.field input:hover {
    border-color: #d8dae6;
}

.field input:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.12);
}

.form-alert {
    background: #fdecee;
    color: #9b1c2e;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 22px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
}

.captcha {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.captcha-hint {
    color: #9b1c2e;
    font-size: 14px;
    font-weight: 600;
}

.coupon-link-wrap {
    margin-top: 14px;
    text-align: center;
}

.coupon-link {
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: #b0b2c2;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.coupon-link:hover {
    color: var(--muted);
}

.coupon-applied {
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
}

.modal[hidden] {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 14, 28, 0.72);
    backdrop-filter: blur(6px);
}

.modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: var(--white);
    border-radius: 20px;
    padding: 36px 32px 32px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    text-align: center;
    animation: modalIn 0.22s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.modal__close:hover {
    color: var(--navy);
}

.modal__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.modal__text {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 22px;
}

.modal__input {
    height: 52px;
    width: 100%;
    border: 1px solid var(--input-border);
    border-radius: var(--radius-input);
    padding: 13px 21px;
    font-family: inherit;
    font-size: 16px;
    color: var(--navy);
    background: var(--white);
    outline: none;
    text-align: center;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.modal__input:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.12);
}

.modal__btn {
    appearance: none;
    border: 0;
    background: var(--btn);
    color: var(--white);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    height: 52px;
    width: 100%;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: background 0.2s ease;
}

.modal__btn:hover {
    background: var(--btn-hover);
}

body.modal-open {
    overflow: hidden;
}

.checkout {
    margin-top: 32px;
    padding: 14px 14px 14px 28px;
    background: #f5f4fa;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 84px;
}

.checkout__info {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 56px;
}

.checkout__label {
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.checkout__price {
    font-family: var(--font-latin);
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.checkout__price span {
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    color: var(--muted);
}

.btn-reserve {
    appearance: none;
    border: 0;
    background: var(--btn);
    color: var(--white);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 700;
    height: 56px;
    min-width: 210px;
    padding: 0 48px;
    border-radius: var(--radius-btn);
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-reserve:hover {
    background: var(--btn-hover);
    box-shadow: 0 8px 20px rgba(28, 143, 122, 0.32);
}

.btn-reserve:active {
    transform: translateY(1px);
}

.page-footer {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
}

.page-footer a {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
}

.page-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 760px) {
    .page {
        padding: 24px 16px 40px;
    }

    .card {
        --card-pad-x: 22px;
        --card-pad-y: 28px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .brand-bar {
        gap: 14px;
        justify-content: center;
    }

    .logo-lly {
        height: 36px;
    }

    .logo-bold {
        height: 64px;
    }

    .brand-bar__divider {
        display: block;
        height: 56px;
        flex-shrink: 0;
    }

    .checkout {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 20px 18px;
        min-height: 0;
    }

    .checkout__info {
        justify-content: center;
        min-height: 0;
    }

    .btn-reserve {
        width: 100%;
    }
}
