:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface2: rgba(0, 0, 0, 0.02);
  --text: #0e1525;
  --muted: rgba(14, 21, 37, 0.74);
  --muted2: rgba(14, 21, 37, 0.6);
  --stroke: rgba(14, 21, 37, 0.12);
  --stroke2: rgba(14, 21, 37, 0.18);
  --accent: #e3020f;  /* красный */
  --accent2: #008037; /* зелёный */
  --success: #008037;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: #ffffff;
  color: var(--text);
}

.fw-800 {
  font-weight: 800;
}
.link-muted {
  color: var(--muted2);
  text-decoration: none;
}
.link-muted:hover {
  color: var(--text);
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 0.75rem;
  background: rgba(14, 21, 37, 0.92);
  color: #fff;
  border-radius: 0.75rem;
  z-index: 9999;
}

.nav-glass {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stroke);
}
.navbar .nav-link {
  color: rgba(14, 21, 37, 0.82);
}
.navbar .nav-link:hover {
  color: var(--text);
}
.navbar .navbar-brand {
  color: rgba(14, 21, 37, 0.92);
}
.navbar .navbar-brand:hover {
  color: rgba(14, 21, 37, 1);
}
.navbar .navbar-toggler {
  border-color: rgba(14, 21, 37, 0.18);
}
.navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(227, 2, 15, 0.16);
}
.navbar .navbar-toggler-icon {
  filter: none;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(227, 2, 15, 0.95), rgba(0, 128, 55, 0.85));
  box-shadow: 0 10px 24px rgba(227, 2, 15, 0.18);
}

.btn-accent {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: linear-gradient(135deg, var(--accent), var(--accent2));
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: linear-gradient(135deg, rgba(227, 2, 15, 0.92), rgba(0, 128, 55, 0.88));
  --bs-btn-hover-border-color: transparent;
  --bs-btn-focus-shadow-rgb: 227, 2, 15;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: linear-gradient(135deg, rgba(227, 2, 15, 0.86), rgba(0, 128, 55, 0.82));
  font-weight: 800;
}
.btn-outline-light {
  border-color: rgba(14, 21, 37, 0.22) !important;
  color: rgba(14, 21, 37, 0.92) !important;
}
.btn-outline-light:hover {
  border-color: rgba(14, 21, 37, 0.32) !important;
  background: rgba(14, 21, 37, 0.05) !important;
}

.section {
  padding: 72px 0;
}
.section-alt {
  background: var(--surface2);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}
.section-head {
  max-width: 60ch;
}

.hero-section {
  padding: 72px 0 32px;
}
@media (min-width: 992px) {
  .hero-section {
    padding: 92px 0 52px;
  }
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(14, 21, 37, 0.03);
  color: rgba(14, 21, 37, 0.92);
  font-weight: 700;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(0, 128, 55, 0.12);
}

.hero-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.stat {
  padding: 0.75rem 0.9rem;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(14, 21, 37, 0.02);
}
.stat-number {
  font-weight: 800;
  font-size: 1.05rem;
}
.stat-label {
  color: var(--muted2);
  font-size: 0.82rem;
}

.hero-card {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}
.hero-card__media {
  height: 260px;
  background: linear-gradient(135deg, rgba(227, 2, 15, 0.08), rgba(0, 128, 55, 0.08));
}
.hero-card__content {
  padding: 16px 16px 18px;
}
.hero-logo-col {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-logo {
  width: 100%;
  text-align: center;
}
.hero-logo__img {
  display: inline-block;
  max-width: min(70%, 320px);
  width: auto;
  height: auto;
}

.logo-place {
  border-radius: 24px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.logo-place__inner {
  width: min(420px, 100%);
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  border: 2px dashed rgba(14, 21, 37, 0.18);
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}
.logo-place__title {
  font-weight: 800;
}
.logo-place__hint {
  color: var(--muted2);
  font-size: 0.92rem;
}
.pill {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(14, 21, 37, 0.14);
  background: rgba(14, 21, 37, 0.03);
  font-weight: 800;
  font-size: 0.78rem;
}
.pill--accent {
  border-color: rgba(227, 2, 15, 0.28);
  background: rgba(227, 2, 15, 0.06);
}
.tag {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(14, 21, 37, 0.02);
  font-size: 0.82rem;
  color: rgba(14, 21, 37, 0.86);
}

.glass-panel {
  border-radius: 24px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.92);
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}
.feature {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: rgba(14, 21, 37, 0.02);
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 21, 37, 0.04);
}
.checkline {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(14, 21, 37, 0.88);
}
.checkdot {
  width: 10px;
  height: 10px;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  flex: 0 0 10px;
}
.signup-card {
  border-radius: 20px;
  border: 1px solid var(--stroke2);
  background: rgba(14, 21, 37, 0.02);
  padding: 14px;
}

/* Photo grid */
.photo-tile {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: rgba(14, 21, 37, 0.02);
  min-height: 190px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.10);
  cursor: pointer;
}
.photo-tile:focus {
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(227, 2, 15, 0.16), 0 18px 55px rgba(0, 0, 0, 0.10);
}
.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}
.photo-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.photo-tile--cover {
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.photo-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 10px;
}
.photo-caption .title {
  font-weight: 800;
}
.photo-caption .meta {
  color: var(--muted2);
  font-size: 0.82rem;
}

/* Quiz flip cards */
.flip-wrap {
  perspective: 1200px;
}
.flip-card {
  position: relative;
  border-radius: 22px;
  min-height: 220px;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.flip-wrap.is-flipped .flip-card {
  transform: rotateY(180deg);
}
.flip-face {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.10);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
}
.flip-front {
  background: radial-gradient(700px 420px at 20% 0%, rgba(227, 2, 15, 0.09), transparent 55%),
    radial-gradient(650px 420px at 95% 10%, rgba(0, 128, 55, 0.09), transparent 55%),
    rgba(255, 255, 255, 0.92);
}
.flip-back {
  transform: rotateY(180deg);
  background: radial-gradient(700px 420px at 15% 15%, rgba(0, 128, 55, 0.10), transparent 55%),
    radial-gradient(650px 420px at 95% 10%, rgba(227, 2, 15, 0.08), transparent 55%),
    rgba(255, 255, 255, 0.92);
}
.q-label {
  color: var(--muted2);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
}
.q-text {
  font-weight: 800;
  font-size: 1.05rem;
}
.a-text {
  color: rgba(14, 21, 37, 0.9);
}
.flip-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-ghost {
  border: 1px solid rgba(14, 21, 37, 0.16);
  background: rgba(14, 21, 37, 0.03);
  color: rgba(14, 21, 37, 0.92);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  font-weight: 800;
  font-size: 0.85rem;
}
.btn-ghost:hover {
  background: rgba(14, 21, 37, 0.06);
}

/* Simple schedule list */
.schedule-simple {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.schedule-item {
  border-radius: 22px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.08);
  padding: 14px;
}
.schedule-row {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}
.schedule-main {
  min-width: 240px;
  flex: 1 1 360px;
}
.schedule-side {
  flex: 0 1 260px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.schedule-title {
  font-weight: 800;
  font-size: 1.02rem;
}
.schedule-meta {
  color: var(--muted2);
  margin-top: 2px;
}
.schedule-notes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.schedule-price {
  font-weight: 800;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(227, 2, 15, 0.26);
  background: rgba(227, 2, 15, 0.06);
}
@media (max-width: 575.98px) {
  .schedule-side {
    align-items: flex-start;
    width: 100%;
  }
}

.game-card {
  border-radius: 22px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.92);
  padding: 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.10);
}
.game-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.game-title {
  font-weight: 800;
  margin: 0;
}
.game-meta {
  color: var(--muted2);
  font-size: 0.9rem;
}
.game-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.badge-mini {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(14, 21, 37, 0.14);
  background: rgba(14, 21, 37, 0.03);
  font-size: 0.82rem;
  color: rgba(14, 21, 37, 0.9);
}
.badge-mini--accent {
  border-color: rgba(227, 2, 15, 0.26);
  background: rgba(227, 2, 15, 0.06);
}

/* Modal */
.modal-glass {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(14, 21, 37, 0.14);
  color: var(--text);
  border-radius: 22px;
}
.modal-card {
  border-radius: 18px;
  border: 1px solid rgba(14, 21, 37, 0.12);
  background: rgba(14, 21, 37, 0.02);
  padding: 14px;
  height: 100%;
}
.qa-block {
  border-radius: 18px;
  border: 1px solid rgba(14, 21, 37, 0.12);
  background: rgba(14, 21, 37, 0.02);
  padding: 14px;
}
.contact-line {
  border-radius: 16px;
  border: 1px solid rgba(14, 21, 37, 0.12);
  background: rgba(14, 21, 37, 0.02);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.footer {
  padding: 46px 0 40px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .flip-card {
    transition: none;
  }
}
