@font-face { font-family: "Barlow"; font-weight: 400; src: url(fonts/barlow-latin-400-normal.woff2) format("woff2"); font-display: swap }
@font-face { font-family: "Barlow"; font-weight: 500; src: url(fonts/barlow-latin-500-normal.woff2) format("woff2"); font-display: swap }
@font-face { font-family: "Barlow"; font-weight: 600; src: url(fonts/barlow-latin-600-normal.woff2) format("woff2"); font-display: swap }
@font-face { font-family: "Barlow"; font-weight: 700; src: url(fonts/barlow-latin-700-normal.woff2) format("woff2"); font-display: swap }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; src: url(fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); font-display: swap }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; src: url(fonts/barlow-condensed-latin-800-normal.woff2) format("woff2"); font-display: swap }

:root { --red: #BA1126; --ink: #1d1d1f; --muted: #5d5d63; --line: #dcdce0; --soft: #f4f4f6; --ok: #1f8a4c; }
* { box-sizing: border-box }
body { margin: 0; font: 16px/1.45 Barlow, system-ui, sans-serif; color: var(--ink); background: #fff }
.top { border-top: 6px solid var(--red); padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; max-width: 920px; margin: 0 auto }
.top img { height: 30px }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden }
.lang button { border: 0; background: none; padding: 6px 12px; font: 600 14px Barlow; cursor: pointer; color: var(--muted) }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff }
main { max-width: 920px; margin: 0 auto; padding: 0 18px 60px }
h1 { font: 800 clamp(30px, 6vw, 44px)/1 "Barlow Condensed"; text-transform: uppercase; margin: 18px 0 8px }
.lead { color: var(--muted); margin: 0 0 6px }
.guide-link { font-weight: 600; color: var(--red) }
.event-tag { display: inline-block; background: var(--soft); border-radius: 999px; padding: 3px 12px; font-weight: 600; font-size: 14px; margin-top: 6px }
section { margin-top: 30px }
h2 { font: 700 21px "Barlow Condensed"; text-transform: uppercase; letter-spacing: .03em; display: flex; align-items: center; gap: 10px; margin: 0 0 14px }
h2 .n { background: var(--red); color: #fff; width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 16px; flex: none }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px }
label.f { display: block; font-weight: 600; font-size: 15px }
label.f input { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; font: 16px Barlow; border: 1.5px solid var(--line); border-radius: 8px; background: #fff }
label.f input:focus { outline: none; border-color: var(--ink) }
label.f.bad input { border-color: var(--red); background: #fff6f7 }
.hint { font-weight: 400; color: var(--muted); font-size: 13px }
.record { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px }
.record label { font-weight: 500; font-size: 13px; color: var(--muted) }
.record input { margin-top: 2px !important }
.guardian { display: none; margin-top: 14px; padding: 14px; background: #fff6f7; border-radius: 10px }
.guardian.show { display: block }
.guardian p { margin: 0 0 10px; font-weight: 600 }

.group-label { font: 700 16px "Barlow Condensed"; text-transform: uppercase; letter-spacing: .05em; color: var(--red); margin: 22px 0 8px }
.group-label span { color: var(--muted); text-transform: none; letter-spacing: 0; font: 500 14px Barlow }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px }
.slot { border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: border-color .2s }
.slot .pic { aspect-ratio: 3 / 4; background: #fff; display: grid; place-items: center; position: relative; overflow: hidden }
.slot .pic img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 6px 0 }
.slot .pic img.example { object-fit: contain; opacity: .9 }
.slot .pic img.mine { object-fit: contain; padding: 0; background: var(--soft) }
.slot .cap { font: 700 14px "Barlow Condensed"; text-transform: uppercase; letter-spacing: .04em; text-align: center; padding: 6px 4px 2px }
.slot .act { padding: 6px 8px 10px; text-align: center }
.slot .btn-pick { display: block; position: relative; width: 100%; padding: 9px 6px; border-radius: 8px; background: var(--ink); color: #fff; font: 600 14px Barlow; cursor: pointer }
.slot input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0 }
.slot .msg { font-size: 13px; line-height: 1.3; margin-top: 6px; min-height: 0 }
.slot .bar { height: 6px; background: var(--soft); border-radius: 3px; overflow: hidden; margin-top: 8px; display: none }
.slot .bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .15s }
.slot.uploading .bar { display: block }
.slot.ok { border-color: var(--ok) }
.slot .btn-pick + .btn-pick { margin-top: 6px }
.slot .btn-pick.cam { background: var(--red) }
.slot .btn-pick.light { background: var(--soft); color: var(--ink) }
.slot.ok .btn-pick { background: var(--soft); color: var(--ink) }
.slot.ok .msg { color: var(--ok); font-weight: 600 }
.slot.err { border-color: var(--red) }
.slot.err .msg { color: var(--red); font-weight: 600 }
.badge { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--ok); color: #fff; display: none; place-items: center; font-weight: 700 }
.slot.ok .badge { display: grid }

.consent { display: flex; gap: 12px; align-items: flex-start; background: var(--soft); padding: 14px; border-radius: 10px; font-size: 15px }
.consent input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--red) }
.consent.bad { outline: 2px solid var(--red) }
.submit { margin-top: 18px; width: 100%; padding: 16px; border: 0; border-radius: 10px; background: var(--red); color: #fff; font: 800 22px "Barlow Condensed"; text-transform: uppercase; letter-spacing: .04em; cursor: pointer }
.submit:disabled { background: #c9c9ce; cursor: not-allowed }
.missing { margin-top: 10px; color: var(--red); font-weight: 600; font-size: 14px }
.done { text-align: center; padding: 60px 10px }
.done .tick { width: 72px; height: 72px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 40px; display: grid; place-items: center; margin: 0 auto 16px }
.privacy { margin-top: 40px; font-size: 13px; color: var(--muted) }
