﻿:root {
  --navy-950: #06142f;
  --navy-900: #0b1f47;
  --navy-700: #1f4f9b;
  --navy-100: #e8f0ff;
  --red-800: #7f1127;
  --red-700: #a31836;
  --red-500: #d43a58;
  --white: #ffffff;
  --slate-50: #f4f7fc;
  --slate-200: #d2dced;
  --slate-500: #7081a0;
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Trebuchet MS", Tahoma, sans-serif;
  color: var(--navy-950);
  background: var(--slate-50);
  padding: 1rem;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

body::before {
  width: 320px;
  height: 320px;
  top: -120px;
  right: -80px;
  background: rgba(31, 79, 155, 0.14);
}

body::after {
  width: 260px;
  height: 260px;
  left: -90px;
  bottom: -110px;
  background: rgba(163, 24, 54, 0.12);
}

.page {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 22px;
  box-shadow: 0 16px 32px rgba(6, 20, 47, 0.14);
  overflow: hidden;
  transform-origin: top center;
}

.hidden {
  display: none;
}

.screen-enter {
  animation: screen-enter 320ms ease;
}

.card-header {
  background: linear-gradient(120deg, var(--navy-950), var(--navy-900));
  color: var(--white);
  padding: 1.25rem 1.25rem 1.05rem;
  border-bottom: 4px solid var(--red-700);
}

.hero-header {
  --hero-orb-size: clamp(122px, 22vw, 212px);
  --hero-figure-size: clamp(96px, 16.5vw, 164px);
  --hero-orb-center-x: calc(100% - (var(--hero-orb-size) / 2) - 0.45rem);
  --hero-orb-center-y: calc(50% + 6px);
  position: relative;
  overflow: hidden;
  padding-right: clamp(8.8rem, 29vw, 15.2rem);
  min-height: 146px;
}

.hero-header > * {
  position: relative;
  z-index: 2;
}

.hero-header::before {
  content: "";
  position: absolute;
  left: calc(var(--hero-orb-center-x) - (var(--hero-orb-size) / 2));
  top: calc(var(--hero-orb-center-y) - (var(--hero-orb-size) / 2));
  width: var(--hero-orb-size);
  height: var(--hero-orb-size);
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(31, 79, 155, 0.55), rgba(31, 79, 155, 0));
  z-index: 0;
}

.hero-figure {
  position: absolute;
  left: var(--hero-orb-center-x);
  top: var(--hero-orb-center-y);
  width: var(--hero-figure-size);
  height: var(--hero-figure-size);
  transform: translate(-50%, -50%);
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 7px 12px rgba(6, 20, 47, 0.36));
}

.brand-title {
  margin: 0;
  font-size: clamp(1.12rem, 3.6vw, 2rem);
  letter-spacing: 0.04em;
  line-height: 1.1;
  font-weight: 900;
  text-wrap: balance;
}

.event-tag {
  margin: 0.45rem 0 0;
  color: #eaf2ff;
  font-weight: 600;
  font-size: clamp(0.88rem, 2.2vw, 1rem);
}

.subtitle {
  margin: 0.58rem 0 0;
  font-weight: 600;
  color: #d8e7ff;
}

.form {
  display: grid;
  gap: 0.74rem;
  padding: 1.15rem;
  background: var(--white);
}

label {
  font-weight: 700;
  color: var(--navy-900);
  font-size: 0.95rem;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  padding: 0.82rem 0.88rem;
  border: 1.5px solid #b7c7e4;
  border-radius: 13px;
  background: #fcfdff;
  color: var(--navy-950);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

input:hover,
select:hover {
  border-color: #8ea7d7;
}

input:focus,
select:focus,
button:focus {
  outline: none;
  border-color: var(--red-500);
  box-shadow: 0 0 0 4px rgba(212, 58, 88, 0.2);
}

.error-message {
  margin: 0.08rem 0 0;
  color: var(--red-700);
  font-weight: 700;
}

.info-message {
  margin: 0.1rem 0 0;
  color: var(--navy-700);
  font-weight: 600;
  line-height: 1.45;
}

button {
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease, background-color 160ms ease;
}

button::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -40%;
  width: 40%;
  height: 340%;
  background: rgba(255, 255, 255, 0.22);
  transform: rotate(18deg);
  transition: left 260ms ease;
}

button:hover::after {
  left: 115%;
}

button:active {
  transform: translateY(1px) scale(0.995);
}

button[type="submit"] {
  margin-top: 0.58rem;
  border: 0;
  border-radius: 13px;
  padding: 0.93rem;
  font-weight: 800;
  color: var(--white);
  background: var(--red-700);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(163, 24, 54, 0.22);
}

button[type="submit"]:hover,
.primary-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  box-shadow: none;
}

button:disabled::after {
  display: none;
}

.is-locked {
  opacity: 0.62;
  cursor: not-allowed;
  box-shadow: none;
  filter: saturate(0.65);
}

.is-locked::after {
  display: none;
}

.secondary-btn {
  border: 1.5px solid var(--navy-700);
  border-radius: 13px;
  padding: 0.9rem;
  font-weight: 700;
  color: var(--navy-900);
  background: var(--white);
  cursor: pointer;
}

.secondary-btn:hover {
  background: var(--navy-100);
}

.primary-btn {
  border: 0;
  border-radius: 13px;
  padding: 1rem;
  font-weight: 800;
  color: var(--white);
  background: var(--red-700);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(163, 24, 54, 0.22);
}

.mode-row {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 0.68rem;
  margin-top: 0.42rem;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.62rem;
  margin-top: 0.58rem;
}

.action-row button[type="submit"] {
  margin-top: 0;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 20, 47, 0.62);
  display: grid;
  place-items: center;
  padding: 1rem;
  animation: modal-backdrop 180ms ease;
}

.modal.hidden {
  display: none;
}

.modal-content {
  width: min(100%, 470px);
  background: var(--white);
  border: 2px solid var(--navy-700);
  border-radius: 18px;
  padding: 1.2rem;
  text-align: center;
  box-shadow: 0 16px 36px rgba(6, 20, 47, 0.3);
  animation: modal-in 220ms ease;
}

.modal-content.modal-error {
  border-color: var(--red-700);
}

.modal-content h2 {
  margin-top: 0;
  color: var(--navy-900);
}

#modal-message {
  color: var(--navy-900);
  line-height: 1.45;
}

#close-modal-btn {
  border: 0;
  border-radius: 11px;
  padding: 0.72rem 1rem;
  color: var(--white);
  background: var(--navy-900);
  font-weight: 700;
  cursor: pointer;
}

@keyframes screen-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.994);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modal-backdrop {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 900px) {
  body {
    padding: 1.6rem 1.2rem;
  }

  .card-header {
    padding: 1.6rem 1.8rem 1.2rem;
  }

  .form {
    padding: 1.4rem 1.8rem 1.6rem;
  }
}

@media (max-width: 900px) {
  .filters-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  body {
    padding: 0.7rem;
  }

  .card {
    border-radius: 18px;
  }

  .card-header {
    padding: 1rem 1rem 0.9rem;
  }

  .form {
    padding: 1rem;
  }

  .mode-row,
  .action-row {
    grid-template-columns: 1fr;
  }

  input,
  select,
  button[type="submit"],
  .primary-btn,
  .secondary-btn {
    min-height: 46px;
  }

  .hero-header {
    --hero-orb-size: 124px;
    --hero-figure-size: 96px;
    --hero-orb-center-x: calc(100% - 62px);
    --hero-orb-center-y: calc(100% - 62px);
    min-height: 170px;
    padding-right: 1rem;
    padding-bottom: 4.55rem;
  }

  .hero-header::before {
    left: calc(var(--hero-orb-center-x) - (var(--hero-orb-size) / 2));
    top: calc(var(--hero-orb-center-y) - (var(--hero-orb-size) / 2));
    width: var(--hero-orb-size);
    height: var(--hero-orb-size);
    opacity: 0.78;
  }

  .hero-figure {
    left: var(--hero-orb-center-x);
    top: var(--hero-orb-center-y);
    width: var(--hero-figure-size);
    height: var(--hero-figure-size);
    transform: translate(-50%, -50%);
  }
}

.countdown-card {
  max-width: 860px;
  margin: 0.95rem auto 0;
  border: 1px solid rgba(11, 31, 71, 0.16);
  border-radius: 20px;
  padding: 0.95rem 1rem 1rem;
  background: var(--white);
  box-shadow: 0 18px 36px rgba(6, 20, 47, 0.17);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.countdown-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: var(--red-700);
}

.countdown-label {
  margin: 0;
  color: var(--navy-900);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.countdown-note {
  margin: 0.3rem 0 0.62rem;
  color: var(--red-700);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.58rem;
}

.countdown-unit {
  border: 1px solid rgba(11, 31, 71, 0.2);
  border-radius: 14px;
  background: var(--navy-950);
  padding: 0.52rem 0.4rem 0.48rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 16px rgba(6, 20, 47, 0.2);
}

.countdown-number {
  display: block;
  color: var(--white);
  font-size: clamp(1.28rem, 5.1vw, 2.1rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.countdown-unit-label {
  display: block;
  margin-top: 0.22rem;
  color: #d6e4ff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.countdown-target {
  margin: 0.62rem 0 0;
  color: var(--slate-500);
  font-size: 0.78rem;
  font-weight: 700;
}

#countdown-seconds {
  animation: countdown-pulse 1s ease-in-out infinite;
}

@media (max-width: 640px) {
  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@keyframes countdown-pulse {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(1px);
    opacity: 0.82;
  }
}
.page-footer {
  max-width: 860px;
  margin: 0.85rem auto 0;
  padding: 0 0.35rem;
  text-align: center;
  font-size: 0.66rem;
  line-height: 1.35;
  color: var(--slate-500);
  opacity: 0.92;
}


