@font-face {
  font-family: "Anton";
  src: url("../fonts/anton-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #140206;
  --bg-2: #3a0710;
  --red: #e10600;
  --red-dark: #8d0612;
  --gold: #f0c14b;
  --gold-2: #c9962c;
  --white: #fffaf6;
  --ink: #1c0c0e;
  --muted: #5c4a4d;
  --card: #fffdfb;
  --line: rgba(255, 255, 255, 0.16);
  --ok: #0f7a3a;
  --danger: #a10d16;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.45;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 55% at 50% -10%, rgba(225, 6, 0, 0.45), transparent 58%),
    repeating-conic-gradient(from 0deg at 50% -5%, rgba(255, 214, 140, 0.09) 0deg 7deg, transparent 7deg 16deg),
    linear-gradient(180deg, #4a0a14 0%, #1a0408 42%, #0c0204 100%);
  background-attachment: fixed;
}

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

a {
  color: var(--gold);
}

a:hover {
  color: white;
}

.wrap {
  width: min(1080px, calc(100% - 28px));
  margin: 0 auto;
}

.hero {
  position: relative;
  padding: 0 0 8px;
  overflow: hidden;
}

.bunting {
  display: flex;
  width: 100%;
  height: 28px;
  margin: 0 0 8px;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.25));
}

.bunting span {
  flex: 1 1 0;
  height: 28px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.bunting span:nth-child(6n + 1) { background: #ffd23f; }
.bunting span:nth-child(6n + 2) { background: #fff; }
.bunting span:nth-child(6n + 3) { background: #e10600; }
.bunting span:nth-child(6n + 4) { background: #2f6bff; }
.bunting span:nth-child(6n + 5) { background: #22a34a; }
.bunting span:nth-child(6n + 6) { background: #ff7a18; }

.confetti {
  position: absolute;
  inset: 70px 0 auto;
  height: 420px;
  pointer-events: none;
  overflow: hidden;
}

.confetti i {
  position: absolute;
  width: 8px;
  height: 12px;
  border-radius: 1px;
  opacity: 0.9;
  animation: drift 7s linear infinite;
}

.confetti i:nth-child(1) { left: 8%; top: 20px; background: #ffd23f; transform: rotate(20deg); }
.confetti i:nth-child(2) { left: 18%; top: 90px; background: #e10600; transform: rotate(-18deg); animation-delay: -1s; }
.confetti i:nth-child(3) { left: 78%; top: 30px; background: #fff; transform: rotate(30deg); animation-delay: -2s; }
.confetti i:nth-child(4) { left: 88%; top: 120px; background: #2f6bff; transform: rotate(-24deg); animation-delay: -3s; }
.confetti i:nth-child(5) { left: 6%; top: 180px; background: #22a34a; transform: rotate(12deg); animation-delay: -4s; }
.confetti i:nth-child(6) { left: 92%; top: 210px; background: #ff7a18; transform: rotate(-12deg); animation-delay: -1.5s; }
.confetti i:nth-child(7) { left: 24%; top: 240px; background: #fff; width: 6px; height: 6px; animation-delay: -2.4s; }
.confetti i:nth-child(8) { left: 70%; top: 70px; background: #ffd23f; width: 7px; height: 7px; animation-delay: -3.2s; }

@keyframes drift {
  50% { transform: translateY(10px) rotate(20deg); }
}

.lockup {
  position: relative;
  text-align: center;
  padding: 4px 0 0;
}

.flag {
  width: min(340px, 86vw);
  height: auto;
  margin: 0 auto 2px;
  filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.28));
}

.wordmark {
  margin: 0;
  font-family: "Anton", Impact, "Arial Black", sans-serif;
  font-size: clamp(4rem, 18vw, 7.4rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.01em;
  line-height: 0.78;
  text-transform: uppercase;
  color: white;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
}

.year {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 6px 0 0;
  font-family: "Anton", Impact, "Arial Black", sans-serif;
  font-style: italic;
  font-size: clamp(2.3rem, 10vw, 4.1rem);
  letter-spacing: 0.14em;
  line-height: 1;
  text-indent: 0.14em;
}

.year::before,
.year::after {
  content: "";
  width: clamp(36px, 10vw, 72px);
  height: 7px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, #fff 30%, #fff 70%, transparent);
}

.lead {
  text-align: center;
  margin: 16px auto 0;
  max-width: 36rem;
  font-size: 1.05rem;
}

.banner-clip {
  overflow: hidden;
  margin: 18px 0 8px;
}

.date-banner {
  margin: 0;
  background: linear-gradient(#ff2418, var(--red) 45%, #b10610);
  color: white;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 13px 16px;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.25);
}

.hours {
  margin: 14px 0 0;
  text-align: center;
  font-family: "Anton", Impact, "Arial Black", sans-serif;
  font-size: clamp(2.4rem, 10vw, 4rem);
  letter-spacing: 0.04em;
  line-height: 0.95;
}

.place {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  margin: 14px auto 0;
  max-width: 34rem;
}

.pin {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin-top: 2px;
}

.place strong {
  display: block;
  font-size: 1.08rem;
}

.place p {
  margin: 0;
}

.maps-link {
  display: inline-block;
  margin-top: 6px;
  font-weight: 800;
  color: var(--gold);
  text-underline-offset: 3px;
}

.layout {
  display: grid;
  gap: 18px;
  padding: 8px 0 28px;
}

.perks {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.perks li span:last-child {
  min-width: 0;
}

.perks li {
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
}

.perks li.prize {
  background: linear-gradient(90deg, rgba(240, 193, 75, 0.2), rgba(0, 0, 0, 0.28));
  border-color: rgba(240, 193, 75, 0.7);
  color: var(--gold);
}

.perk-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--red);
  color: white;
}

.perk-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.card {
  background: var(--card);
  color: var(--ink);
  color-scheme: light;
  border-radius: var(--radius);
  padding: 20px 16px 18px;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--gold);
}

.card h2 {
  margin: 0 0 6px;
  font-family: "Anton", Impact, sans-serif;
  font-size: clamp(1.8rem, 7vw, 2.3rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--red-dark);
}

.card .hint {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.98rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.field label {
  font-weight: 800;
  font-size: 0.95rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%;
  min-height: 52px;
  border-radius: 12px;
  border: 2px solid #e4d7d4;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  padding: 10px 12px;
}

.field input:focus {
  border-color: var(--red);
  outline: 3px solid rgba(225, 6, 0, 0.2);
}

.field input.invalid {
  border-color: var(--danger);
  background: #fff5f5;
}

.field-error {
  min-height: 0;
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 700;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 8px;
  font-size: 0.95rem;
}

.consent input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--red);
}

.privacy {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button,
.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(#ff3b2e, #d00000 55%, #a30610);
  color: white;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 0 #6a0610;
}

button:hover,
.button:hover {
  color: white;
  filter: brightness(1.05);
}

button:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #6a0610;
}

button:disabled {
  opacity: 0.7;
  cursor: progress;
}

.form-status {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
}

.form-status:empty {
  display: none;
}

.form-status.error {
  background: #ffe8e8;
  color: var(--danger);
}

.success-box {
  display: none;
  background: #eefbf3;
  color: #0d5c2e;
  border: 2px solid #b7ebc9;
  border-radius: 14px;
  padding: 16px;
}

.success-box.show {
  display: block;
}

.success-box strong {
  display: block;
  font-family: "Anton", Impact, sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.site-footer {
  background: #070203;
  padding: 28px 0 18px;
  text-align: center;
  border-top: 8px solid var(--red);
}

.brand-logo {
  width: min(420px, 86vw);
  margin: 0 auto 10px;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer .fine {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}

.page-result {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 24px 0 40px;
}

.page-result .card {
  max-width: 560px;
  margin: 0 auto;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.admin-body {
  background: #120306;
  background-image: none;
}

.admin-top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.admin-top h1 {
  margin: 0;
  font-family: "Anton", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.03em;
  font-size: 2rem;
}

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

.admin-actions form,
.admin-actions a,
.admin-actions button {
  width: auto;
}

.admin-actions button,
.admin-actions .button {
  width: auto;
  min-height: 44px;
  padding: 0 16px;
  box-shadow: none;
}

.ghost {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

.table-wrap {
  overflow: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #1c070c;
  margin-bottom: 28px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
}

th {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.login-card {
  max-width: 440px;
  margin: 12vh auto;
}

.note {
  background: rgba(240, 193, 75, 0.12);
  border: 1px solid rgba(240, 193, 75, 0.5);
  color: var(--gold);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 16px;
}

@media (min-width: 860px) {
  .wrap {
    width: min(1080px, calc(100% - 48px));
  }

  .bunting {
    height: 36px;
  }

  .bunting span {
    height: 36px;
  }

  .date-banner {
    transform: skewX(-8deg);
  }

  .date-banner span {
    display: inline-block;
    transform: skewX(8deg);
  }

  .layout {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
    padding-top: 12px;
  }

  .card {
    padding: 26px 24px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
