:root {
    color-scheme: light;
    --ink: #10244b;
    --muted: #425771;
    --rule: #d8e4ef;
    --canvas: #f0f5fa;
    --navy: #071c41;
    --blue: #075e9e;
    --volga-accent: #48dcc7;
    --red: #b61232;
    --green: #1f624a;
    font-family: "Segoe UI", system-ui, sans-serif;
    line-height: 1.5;
    color: var(--ink);
    background: var(--canvas);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
main { display: block; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; }
h1 { font-size: clamp(2rem, 3.7vw, 3rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.38rem, 2.5vw, 1.9rem); letter-spacing: -.025em; }
h3 { font-size: 1.12rem; }
a { color: var(--blue); }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; }

:where(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid #0077c7;
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    z-index: 20;
    top: .5rem;
    left: .5rem;
    transform: translateY(-200%);
    padding: .75rem 1rem;
    color: #fff;
    background: var(--navy);
    border-radius: .4rem;
}

.skip-link:focus { transform: translateY(0); }
.container { width: min(82.5rem, 100% - 3rem); margin-inline: auto; }
.page-content { padding-block: clamp(1.25rem, 3vw, 2rem) 3.5rem; }
.site-header { background: #fff; border-bottom: 1px solid var(--rule); }

.site-bar {
    min-height: 4.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .6rem 1.5rem;
    padding-block: .6rem;
    flex-wrap: wrap;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: var(--navy);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-decoration: none;
}

.wordmark::before {
    content: "";
    width: 1.12rem;
    height: 1.12rem;
    border: 3px solid var(--blue);
    border-top-color: var(--red);
    transform: rotate(30deg);
    border-radius: 50%;
}

.support-link { gap: .5rem; color: #12543d; background: #f0faf5; border: 1px solid #d5eadf; }
.support-link svg, .event-heading p svg { width: 1.05rem; height: 1.05rem; flex: none; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .5rem; }
.site-nav form { margin: 0; }
.site-nav a[aria-current="page"] { color: var(--blue); background: #e6f1fa; }

.support-link, .site-nav a, .nav-action {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: .35rem .75rem;
    border-radius: .45rem;
    text-decoration: none;
    font-weight: 650;
    font-size: .9rem;
}

.nav-action { color: var(--ink); background: transparent; border: 1px solid var(--rule); cursor: pointer; }
.muted { color: var(--muted); }
.stack { display: grid; gap: 1rem; }
.stack > * { min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 1rem; }
.form-grid-region { grid-template-columns: minmax(0, 1fr) minmax(7rem, 9rem); }
.field { min-width: 0; }
.field label { display: block; font-size: .92rem; font-weight: 700; }
.field label { margin-bottom: .35rem; }
.field label span { color: var(--red); }

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea {
    display: block;
    width: 100%;
    min-height: 2.75rem;
    padding: .57rem .75rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid #a8bcd1;
    border-radius: .4rem;
}

textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #51667e; opacity: 1; }
select {
    appearance: none;
    padding-right: 2rem;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='none' stroke='%23425771' stroke-width='1.8'%3E%3Cpath d='m5 7 5 5 5-5'/%3E%3C/svg%3E") right .65rem center / 1rem no-repeat,
        #fff;
}

input[type="checkbox"], input[type="radio"] { accent-color: var(--blue); }

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 2.75rem;
    padding: .5rem .85rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid transparent;
    border-radius: .45rem;
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary { color: #fff; background: var(--blue); }
.btn-primary:hover { background: #054f87; }
.btn-secondary { color: #174472; border-color: #a8bed2; }
.btn-secondary:hover { background: #eff6fc; }
.btn-danger { color: #9e1533; border-color: #dfb8c3; }
.btn-danger:hover { background: #fff1f3; }
.btn:disabled { opacity: .58; cursor: not-allowed; }
.action-row { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
.text-link { font-weight: 650; text-underline-offset: .15em; }

.panel {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: .9rem;
    box-shadow: 0 1rem 2.5rem #092a500c;
}

.notice {
    margin-block: .9rem;
    padding: .7rem .85rem;
    border: 1px solid #c6dcea;
    border-radius: .45rem;
    color: #244c74;
    background: #ebf5fc;
}

.notice-error { border-color: #e9bdc8; color: #8e1830; background: #fff1f4; }
.notice-success { border-color: #b9dec9; color: var(--green); background: #edf8f1; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: .75rem; text-align: left; border-bottom: 1px solid var(--rule); }
.data-table th { background: #f3f7fc; font-weight: 700; }
.badge { display: inline-block; border-radius: .4rem; padding: .16rem .5rem; color: #284b69; background: #eef3f7; font-weight: 650; }
.badge-success { color: var(--green); background: #e5f4eb; }
.badge-pending { color: #6b4e15; background: #fff2d4; }

.event-heading {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: clamp(9rem, 15vw, 11rem);
    overflow: hidden;
    margin-bottom: 1.35rem;
    padding: clamp(1.15rem, 3vw, 2.65rem);
    color: #fff;
    background: var(--navy);
    border-radius: .95rem;
}

.event-heading::before {
    content: "";
    position: absolute;
    inset: 0 0 0 40%;
    z-index: -1;
    background: linear-gradient(90deg, #071c41, #071c4175 58%, #071c4126), url("volga-cascata.jpg") center 46% / cover;
}

.event-heading h1, .access-visual h1 { max-width: 43rem; margin-bottom: 0; }
.event-heading p, .access-visual p { margin: .6rem 0 0; color: #e0eefa; }
.event-heading-copy { position: relative; }
.event-heading-room {
    min-height: clamp(11rem, 18vw, 14.5rem);
    margin-bottom: 1.55rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--rule);
}
.event-heading-room::before {
    inset: 0 0 0 50%;
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
    background: linear-gradient(112deg, #04397055, #00345508 65%, #041c4955), url("volga-cascata.jpg") center 48% / cover;
}
.event-heading-room h1 { max-width: min(34rem, 53%); line-height: 1.04; }
.event-heading-room h1 span { color: var(--red); }
.event-heading-room p {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.2rem;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 650;
}

.access-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr);
    min-height: clamp(28rem, 52vw, 41.5rem);
    max-width: 72.5rem;
    margin: clamp(.25rem, 2vw, 1.8rem) auto 0;
    overflow: hidden;
}

.access-visual {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(1.35rem, 4vw, 3rem);
    color: #fff;
    background:
        linear-gradient(0deg, #05234bf8 9%, #07295db8 38%, #0c508524 85%),
        url("volga-cascata.jpg") 49% center / auto 110%;
}

.access-visual h1 { max-width: 31rem; font-size: clamp(2.4rem, 4.2vw, 3.45rem); line-height: 1.04; }

.access-visual h1::before {
    content: "";
    display: block;
    width: 2.75rem;
    height: .25rem;
    margin-bottom: 1rem;
    border-radius: .3rem;
    background: var(--volga-accent);
}

.access-form {
    align-self: center;
    padding: clamp(1.35rem, 5vw, 4rem);
}

.access-form h2 { margin-bottom: .65rem; font-size: clamp(1.7rem, 3vw, 2.25rem); }
.access-form h3 { margin-bottom: .8rem; }
.access-form p { margin-bottom: 1.35rem; }
.access-form input { min-height: 3.1rem; }
.access-signup { margin-top: 1.35rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.access-signup .btn { width: 100%; }
.access-signup p { margin: .65rem 0 0; color: var(--muted); font-size: .85rem; }
.access-support { margin-top: 1.4rem; }

.feature-icon {
    display: grid;
    place-items: center;
    width: 2.7rem;
    height: 2.7rem;
    margin-bottom: .9rem;
    color: #005d9e;
    background: #e6f2fa;
    border-radius: .625rem;
}
.feature-icon svg { width: 1.4rem; height: 1.4rem; }
.feature-icon-clock { width: 3rem; height: 3rem; color: #8a5411; background: #fff3df; }
.feature-icon-clock svg { width: 1.55rem; height: 1.55rem; }

.crm-layout { width: min(72.5rem, 100%); margin-inline: auto; }
.crm-layout .event-heading h1 { max-width: 34rem; font-size: clamp(1.85rem, 3.5vw, 2.45rem); }
.crm-layout .event-heading h1::before {
    content: "";
    display: block;
    width: 2.7rem;
    height: .25rem;
    margin-bottom: .9rem;
    background: var(--volga-accent);
    border-radius: .25rem;
}
.crm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; align-items: start; }
.registration, .status-panel, .crm-state { padding: clamp(1.2rem, 3vw, 2.1rem); }
.registration { width: 100%; }
.registration h2, .questions-panel h2 { margin-bottom: .45rem; }
.registration > p, .questions-panel > p { margin-bottom: 1.25rem; }
.registration .stack { gap: .75rem; }
.registration .form-grid { gap: .75rem; }
.registration .form-grid-region { grid-template-columns: minmax(0, 1fr) minmax(6.3rem, 7.65rem); }
.crm-state { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 30rem; }
.crm-state h2 { margin-bottom: .5rem; }
.crm-state > p { margin-bottom: 0; }
.crm-note {
    align-self: stretch;
    padding: .9rem 1rem;
    margin: 1.35rem 0 1.15rem;
    color: var(--muted);
    background: #eff7fe;
    border: 1px solid #d4e7f8;
    border-radius: .5rem;
    font-size: .9rem;
}
.crm-note strong { display: block; margin-bottom: .2rem; color: #164878; }
.crm-note p { margin: 0; }
.status-panel { width: min(43rem, 100%); margin-inline: auto; }
.status-panel.crm-state { min-height: 22rem; }
.status-panel h1, .status-panel h2 { margin-bottom: .8rem; }
.status-panel > :last-child { margin-bottom: 0; }
.status-panel [data-access-update]:empty, .stage [data-question-status]:empty { display: none; }

.registration-legal { font-size: .875rem; }

.registration-consent {
    display: grid;
    gap: .5rem;
    padding: 1rem;
    border: 1px solid var(--rule);
    border-radius: .65rem;
    background: var(--canvas);
}

.registration-consent h3 { margin: 0; font-size: 1rem; }
.registration-consent h3 span { color: var(--red); }
.registration-consent p { margin: 0; color: var(--muted); font-size: .875rem; }
.registration-consent a { font-weight: 600; text-decoration: underline; }
.consent-choice {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-height: 2.75rem;
    padding: .45rem .65rem;
    border: 1px solid var(--rule);
    border-radius: .45rem;
    background: #fff;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
}
.consent-choice input { flex: 0 0 1.15rem; width: 1.15rem; height: 1.15rem; margin: 0; }
.room-grid { display: grid; grid-template-columns: minmax(0, 2.35fr) minmax(16rem, 1fr); gap: 1.6rem; align-items: start; }
.room-player { overflow: hidden; aspect-ratio: 16 / 9; background: var(--navy); border-radius: .85rem; }
.room-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.player-placeholder {
    display: grid;
    height: 100%;
    padding: 1rem;
    place-content: center;
    justify-items: center;
    text-align: center;
    color: #fff;
    background: linear-gradient(105deg, #051835f5, #05294ac9 55%, #09284ab8), url("volga-cascata.jpg") center / cover;
}
.placeholder-play {
    display: grid;
    place-items: center;
    width: clamp(2.2rem, 5vw, 4.1rem);
    aspect-ratio: 1;
    margin-bottom: .9rem;
    border: 1px solid #ffffff7a;
    border-radius: 50%;
    background: #ffffff14;
}
.placeholder-play svg { width: 50%; height: 50%; }
.player-placeholder h2 { margin-bottom: .5rem; }
.player-placeholder p { margin: 0; }
.questions-panel { padding: clamp(1.2rem, 2.6vw, 1.65rem); }
.questions-panel h2 { font-size: clamp(1.3rem, 2.2vw, 1.55rem); }
.questions-panel > .muted { margin-bottom: 1.5rem; }
.questions-panel .session-note {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin: .8rem 0 0;
    color: var(--muted);
    font-size: .8rem;
}
.session-note svg { flex: none; width: .85rem; height: .85rem; }
.stage { min-height: 66vh; padding: clamp(1.2rem, 3vw, 2.6rem); color: #fff; background: var(--navy); border-radius: .95rem; }
.stage-list { display: grid; gap: 1rem; padding: 0; margin: 0; list-style: none; }
.stage-list li {
    border: 1px solid #49638c;
    border-radius: .65rem;
    padding: clamp(1rem, 2.5vw, 1.6rem);
    background: #143562;
    font-size: clamp(1.3rem, 3vw, 2.15rem);
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.stage-list .stage-question-author:not([hidden]) {
    display: block;
    margin-bottom: .3em;
    color: #c6e5fb;
    font-size: .67em;
    line-height: 1.25;
}
.stage-list .stage-question-content { margin: 0; }
.stage-empty { color: #dae8f7; margin: 1rem 0 0; }

@media (max-width: 50rem) {
    .container { width: calc(100% - 2rem); }
    .access-layout, .room-grid, .crm-grid { grid-template-columns: minmax(0, 1fr); }
    .access-layout { min-height: 0; }
    .access-visual { min-height: 13rem; }
    .event-heading::before { inset-inline-start: 15%; }
    .event-heading-room::before { inset-inline-start: 53%; }
    .event-heading-room h1 { max-width: 57%; font-size: clamp(1.75rem, 5vw, 2.55rem); }
    .crm-state { min-height: 0; }
    .room-player { min-width: 0; }
}

@media (max-width: 32rem) {
    .form-grid:not(.form-grid-region) { grid-template-columns: minmax(0, 1fr); }
    .form-grid-region { grid-template-columns: minmax(0, 1fr) minmax(6.4rem, 7.2rem); }
    .site-nav { width: 100%; }
    .site-nav a, .nav-action { padding-inline: .5rem; }
    .event-heading-room::before { opacity: .23; inset-inline-start: 35%; }
    .event-heading-room h1 { max-width: 100%; }
    .registration .form-grid-region { grid-template-columns: minmax(0, 1fr) minmax(6.4rem, 7.2rem); }
}
