:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --ink: #1b1f24;
  --muted: #6b7280;
  --line: #eceff3;
  --brand: #7a8cff;
  --brand-2: #ffb2c8;
  --glow: #c7d6ff;
  --shadow: 0 10px 30px rgba(30, 50, 80, 0.1);
}
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  
}
body.al-body {
  margin: 0;
  font: 500 16px/1.55 "Inter Tight", ui-sans-serif, system-ui, -apple-system,
    Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(
      900px 600px at 110% -10%,
      #f5f8ff 0%,
      transparent 60%
    ),
    radial-gradient(900px 600px at -10% 110%, #fff4f8 0%, transparent 60%),
    var(--bg);
}
a {
  color: black;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

.al-max {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  padding: 40px 0;
}
.narrow {
  max-width: 860px;
}

.eyebrow {
  color: var(--muted);
  font-weight: 700;
  margin: 0.2rem 0 0.3rem;
}
.h1 {
  font: 900 48px/1.05 "Bebas Neue", sans-serif;
  letter-spacing: 0.5px;
  margin: 0.2rem 0 0.5rem;
}
.h2 {
  font: 900 30px/1.1 "Bebas Neue", sans-serif;
  letter-spacing: 0.5px;
  margin: 0;
}
.muted {
  color: var(--muted);
  font-weight: 600;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1.5px solid #cfd6e3;
  background: #fff;
  box-shadow: 0 8px 24px rgba(120, 150, 255, 0.12);
  font-weight: 800;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(120, 150, 255, 0.18);
}
.btn:active {
  transform: none;
}
.btn-primary {
  background: linear-gradient(180deg, var(--brand), #5e74ff);
  color: #fff;
  border-color: #4a5dff;
  box-shadow: 0 12px 28px rgba(90, 110, 255, 0.35);
}
.btn-ghost {
  background: #fff;
}

.al-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.hdr-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
}
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 900;
  text-decoration: none;
}
.logo .core {
  font: 900 20px/1 "Bebas Neue";
  letter-spacing: 1px;
  color: #111;
}
.logo .sub {
  font: 900 18px/1 "Bebas Neue";
  letter-spacing: 0.8px;
  color: #5e74ff;
}
.nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.nav a {
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 800;
  border: 1px solid transparent;
}
.nav a[aria-current="page"] {
  border-color: var(--line);
  background: #fff;
}

.menu-btn {
  display: none;
}
@media (max-width: 860px) {
  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
  }
  .nav {
    position: fixed;
    inset: auto 0 0 0;
    top: 64px;
    background: #fffffff2;
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    display: none;
    border-top: 1px solid var(--line);
  }
  .nav.open {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .nav a {
    border: 1px solid var(--line);
    background: #fff;
  }
}

.hero {
  position: relative;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.slider {
  position: relative;
  overflow: hidden;
}
.slides {
  position: relative;
  height: min(70vh, 680px);
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  background: center/cover no-repeat var(--img);
  transform: scale(1.02);
}
.slide.active {
  opacity: 1;
  transform: scale(1);
}
.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    1200px 80% at 50% 60%,
    transparent 40%,
    rgba(0, 10, 30, 0.45)
  );
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  padding: 16px;
}
.hero-box {
  display: grid;
  gap: 10px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.06)
  );
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 16px 18px;
  backdrop-filter: blur(6px);
}
.hero-title {
  font: 900 54px/1.02 "Bebas Neue";
  letter-spacing: 1px;
  margin: 0;
}
.hero-lead {
  margin: 0 0 6px;
  font-weight: 700;
}
.hero-cta {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.prog {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  display: flex;
  gap: 8px;
}
.prog .seg {
  position: relative;
  width: 28px;
  height: 6px;
  border-radius: 999px;
  background: #ffffff50;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.prog .bar {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fff, #cfe3ff);
  transform-origin: left;
  transform: scaleX(0);
}
.prog .seg.on .bar {
  animation: fill 5s linear forwards;
}
@keyframes fill {
  to {
    transform: scaleX(1);
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 900px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 14px;
}

.al-footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 28px;
}
.fgrid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
}
@media (max-width: 900px) {
  .fgrid {
    grid-template-columns: 1fr;
  }
}
.f-logo {
  font: 900 20px/1 "Bebas Neue";
  letter-spacing: 1px;
}
.ftitle {
  font-weight: 900;
  margin: 0 0 0.4rem;
}
.flinks {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.2rem;
}
.legal {
  margin-top: 8px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.copy {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

.float-up {
  animation: floatUp 0.9s ease both;
}
@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.float-up {
  animation: al-float-up 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes al-float-up {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.sec-head .h2 {
  margin: 0;
}
.sec-head .btn {
  height: 44px;
}

.spotlight {
  position: relative;
  overflow: hidden;
  will-change: transform;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.spotlight:hover {
  transform: translateY(-2px);
  filter: saturate(1.02);
}
.spotlight img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin: 6px 0 8px;
}
.spotlight .shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.7;
  background: radial-gradient(
    260px 160px at 50% 50%,
    rgba(255, 255, 255, 0.35),
    transparent 60%
  );
  transition: opacity 0.2s ease;
}
.spotlight:hover .shine {
  opacity: 0.9;
}

.section figure.card {
  border-radius: 16px;
  overflow: hidden;
}
.section figure.card img[aria-hidden="true"] {
  transform: translateY(var(--py, 0)) scale(1.02);
  will-change: transform;
}

#promoTimer {
  font-weight: 700;
  letter-spacing: 0.02em;
}
#promoBar {
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  border-radius: 999px;
}

.rev-rail {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rev-rail::-webkit-scrollbar {
  display: none;
}
.rev-rail .card {
  min-height: 140px;
  display: grid;
  gap: 0.35rem;
}
.rev-rail .muted {
  opacity: 0.8;
}

.ticker .track {
  animation-duration: 26s;
}

.hero-cta .btn {
  min-width: 140px;
}

@media (max-width: 1100px) {
  .rev-rail {
    grid-auto-columns: min(360px, 86%);
  }
}
@media (max-width: 900px) {
  .sec-head {
    flex-wrap: wrap;
  }
  .sec-head .btn {
    order: 2;
  }
  .rev-rail {
    grid-auto-columns: 86%;
  }
}
@media (max-width: 600px) {
  .spotlight img {
    border-radius: 10px;
  }
  .hero-cta .btn {
    width: 100%;
  }
}

.about-xl {
  position: relative;
  isolation: isolate;
  padding: 36px 0 56px;
  background: radial-gradient(
      900px 420px at 110% -10%,
      #f7fbff 0%,
      transparent 60%
    ),
    radial-gradient(900px 420px at -10% 110%, #fff7fb 0%, transparent 60%);
  border-bottom: 1.5px solid rgba(10, 20, 40, 0.08);
}
.about-head {
  margin-bottom: 12px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 14px;
  align-items: start;
}
@media (max-width: 980px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.ab-prose {
  background: #fff;
  border: 1.5px solid rgba(10, 20, 40, 0.08);
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(10, 40, 80, 0.06);
  padding: 16px;
  backdrop-filter: blur(4px);
  animation: al-fade-in 0.5s ease both;
}
.ab-prose .lede {
  font-weight: 700;
  color: #405066;
  margin: 0 0 0.6rem;
  letter-spacing: 0.01em;
}
.ab-prose .underline {
  display: inline-block;
  background: linear-gradient(180deg, transparent 70%, #eef3ff 0) no-repeat;
  padding-bottom: 2px;
}
.ab-prose p {
  margin: 0 0 0.6rem;
}
.ab-list {
  margin: 0.35rem 0 0.8rem;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.25rem;
  color: #4a5c74;
  font-weight: 600;
}

.pull {
  margin: 0.8rem 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1.5px dashed rgba(10, 20, 40, 0.1);
  font-weight: 800;
  color: #2a3a52;
}
.pull cite {
  display: block;
  margin-top: 0.25rem;
  font-weight: 600;
  color: #6a7a90;
}

.ab-aside {
  display: grid;
  gap: 14px;
}
.ab-card {
  background: #fff;
  border: 1.5px solid rgba(10, 20, 40, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(10, 40, 80, 0.05);
  padding: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ab-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(10, 40, 80, 0.07);
}
.ab-card.soft {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}
.ab-card.tint {
  background: linear-gradient(180deg, #ffffff, #fff7fb);
}

.ab-points {
  margin: 0.3rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.22rem;
  font-weight: 700;
  color: #455971;
}

.ab-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 560px) {
  .ab-stats {
    grid-template-columns: 1fr;
  }
}
.ab-stats .stat {
  background: #fff;
  border: 1.5px solid rgba(10, 20, 40, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(10, 40, 80, 0.05);
  padding: 14px;
  text-align: center;
}
.ab-stats .num {
  font: 900 28px/1 "Bebas Neue", system-ui, sans-serif;
  letter-spacing: 0.02em;
  color: #2a3a52;
  margin: 4px 0 2px;
}
.ab-stats .cap {
  color: #6a7a90;
  font-weight: 700;
}

.ab-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #2a3a52;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 12px;
  transition: transform 0.18s ease, background 0.18s ease;
  background: #f6f9ff;
}
.ab-card.tint .ab-link {
  background: #fff2f8;
}
.ab-link:hover {
  transform: translateY(-1px);
}

.ribbon {
  margin: 18px auto 0;
  max-width: 1200px;
  padding: 8px 0;
  font: 900 12px/1 "Inter Tight", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #5a6b82;
  border-top: 1.5px dashed rgba(10, 20, 40, 0.08);
  border-bottom: 1.5px dashed rgba(10, 20, 40, 0.08);
  text-align: center;
  opacity: 0.9;
  
}

.halo {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.6;
}
html, body {
  overflow-x: hidden; /* подстраховка */
}
.halo.h1 {
  width: 320px;
  height: 320px;
  right: -80px;
  top: -60px;
  background: radial-gradient(
    closest-side,
    rgba(140, 180, 255, 0.18),
    transparent 70%
  );
  animation: al-drift 12s ease-in-out infinite alternate;
}
.halo.h2 {
  width: 260px;
  height: 260px;
  left: -60px;
  bottom: -40px;
  background: radial-gradient(
    closest-side,
    rgba(255, 160, 210, 0.18),
    transparent 70%
  );
  animation: al-drift 14s ease-in-out infinite alternate;
}

@keyframes al-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes al-drift {
  from {
    transform: translateY(0) translateX(0);
  }
  to {
    transform: translateY(8px) translateX(6px);
  }
}

.faq-xl .faq-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
@media (max-width: 720px) {
  .faq-xl .faq-controls {
    grid-template-columns: 1fr;
  }
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  appearance: none;
  border: 1.5px solid rgba(10, 20, 40, 0.12);
  background: #fff;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease,
    border-color 0.18s ease;
}
.chip:hover {
  transform: translateY(-1px);
}
.chip.active {
  background: linear-gradient(180deg, #eef3ff, #ffffff);
  border-color: rgba(10, 20, 40, 0.22);
}
.tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn.tiny {
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-weight: 800;
  border: 1.5px solid rgba(10, 20, 40, 0.14);
  background: #fff;
}

.faq-list {
  display: grid;
  gap: 10px;
}
.faq.card {
  overflow: hidden;
  padding: 0;
}
.faq summary {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 14px;
  cursor: pointer;
  user-select: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq .q {
  font-weight: 900;
}
.faq .chev {
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.6;
}
.faq[open] .chev {
  transform: rotate(180deg);
  opacity: 1;
}

.faq .answer {
  padding: 0 14px 14px;
  display: grid;
  gap: 0.5rem;
  height: 0;
  overflow: clip;
  opacity: 0;
  transform: translateY(-4px);
  transition: height 0.28s ease, opacity 0.28s ease, transform 0.28s ease;
}
.faq[open] .answer {
  height: auto;
  opacity: 1;
  transform: translateY(0);
}
.faq .actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.faq .copy,
.faq .help {
  appearance: none;
  border: 1.5px solid rgba(10, 20, 40, 0.14);
  background: #fff;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
}
.faq .count {
  font-weight: 900;
  color: #5a6b82;
}

.contact-xl {
  position: relative;
  isolation: isolate;
  background: radial-gradient(
      900px 420px at 110% -10%,
      #f6f9ff 0%,
      transparent 60%
    ),
    radial-gradient(900px 420px at -10% 110%, #fff3fa 0%, transparent 60%);
  border-top: 1px solid rgba(10, 20, 40, 0.06);
  padding: 28px 0 40px;
}
.contact-head {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 12px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.c-card {
  background: #fff;
  border: 1.5px solid rgba(10, 20, 40, 0.08);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(20, 40, 80, 0.06);
}
.c-card h3 {
  margin: 0.1rem 0 0.2rem;
  font-weight: 900;
}
.c-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 900;
  background: linear-gradient(180deg, #eef3ff, #ffffff);
  border: 1px solid rgba(10, 20, 40, 0.12);
}
.badge.soft {
  background: #fff;
}
.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #78b2ff;
  box-shadow: 0 0 0 6px rgba(120, 178, 255, 0.18);
}
.c-card.hours {
  grid-column: span 2;
}
@media (max-width: 1100px) {
  .c-card.hours {
    grid-column: span 2;
  }
}
@media (max-width: 560px) {
  .c-card.hours {
    grid-column: span 1;
  }
}
.hours-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(10, 20, 40, 0.08);
  border-radius: 12px;
  overflow: hidden;
}
.hours-table td {
  padding: 10px;
  border-bottom: 1px dashed rgba(10, 20, 40, 0.08);
}
.hours-table tr:last-child td {
  border-bottom: none;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0.5rem 0 0;
  padding: 0;
}
.chips .chip {
  list-style: none;
  height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 800;
  background: #fff;
  border: 1.5px solid rgba(10, 20, 40, 0.08);
}

.cta-banner {
  position: relative;
  margin-top: 16px;
  border-radius: 18px;
  padding: 16px;
  border: 1.5px solid rgba(10, 20, 40, 0.08);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  overflow: hidden;
}
@media (max-width: 760px) {
  .cta-banner {
    grid-template-columns: 1fr;
  }
}
.cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.glow {
  animation: btnGlow 2.2s ease-in-out infinite;
}
@keyframes btnGlow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(90, 140, 255, 0), 0 6px 14px rgba(20, 40, 80, 0.08);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(120, 178, 255, 0.12),
      0 12px 22px rgba(20, 40, 80, 0.12);
  }
}
.beam {
  position: relative;
  overflow: hidden;
}
.beam::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  left: -80px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.7),
    transparent
  );
  transform: skewX(-18deg);
  animation: shine 2.8s linear infinite;
}
@keyframes shine {
  0% {
    left: -80px;
  }
  100% {
    left: 120%;
  }
}

.spark {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(120, 178, 255, 0.18);
}
.s1 {
  right: 10%;
  top: 18%;
  animation: float 6s ease-in-out infinite;
}
.s2 {
  right: 4%;
  bottom: 18%;
  animation: float 7s ease-in-out 1.2s infinite;
}
.s3 {
  left: 6%;
  top: 30%;
  animation: float 5.6s ease-in-out 0.6s infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}


/* ===== Секция игр ===== */
#gamesGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Планшеты */
@media (max-width: 1024px) {
  #gamesGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Мобильные */
@media (max-width: 600px) {
  #gamesGrid {
    grid-template-columns: 1fr;
  }
}

/* ===== Заголовки и текст ===== */
.h2 {
  font-size: clamp(18px, 2vw, 28px);
}

.card h3 {
  font-size: clamp(16px, 1.8vw, 22px);
}

.muted {
  font-size: clamp(12px, 1.2vw, 16px);
}

/* ===== Кнопки ===== */
.btn {
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
}

@media (max-width: 600px) {
  .btn {
    width: 100%;
    font-size: 16px;
  }
}

/* ===== Заголовок секции ===== */
.sec-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

@media (max-width: 600px) {
  .sec-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 8px;
  }
}

/* ===== Модальное окно ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  display: none; /* показываем через JS */
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  overflow-y: auto; /* скролл на маленьких экранах */
  padding: 10px; /* немного отступа, чтобы не упиралось в края */
}

.modal {
  position: relative;
  width: min(95%, 1100px);
  max-width: 1100px;
  height: min(90%, 700px);
  max-height: 90vh;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  margin: auto; /* центрирование при overflow-y */
}

#gameFrame {
  flex: 1;
  border: 0;
  background: #000;
  width: 100%;
}

/* Адаптация модалки для мобильных */
@media (max-width: 600px) {
  .modal {
    width: 95%;
    height: 80%;
  }
}
/* ====== Модальное окно на мобильных ====== */
@media (max-width: 600px) {
  .modal {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;       /* убираем скругления */
  }

  .modal > div:first-child {
    padding: 8px;           /* компактная шапка */
  }

  #gameFrame {
    flex: 1;
    width: 100%;
    height: 100%;
  }
}
.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 20px;
}

.footer-logos img {
  max-height: 60px;
  width: auto;
  display: inline-block;

  /* подложка */
  background: #020202;        /* белый фон */
  padding: 8px 12px;       /* отступ вокруг картинки */
  border-radius: 8px;      /* скруглённые углы */
  box-shadow: 0 2px 6px rgba(0,0,0,0.2); /* лёгкая тень */
}
/* Задний фон */
.age-modal {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Окно */
.age-modal-content {
  background: #fff;
  color: #333;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Заголовок */
.age-modal-content h2 {
  color: #d32f2f;
  margin-bottom: 15px;
}

/* Кнопки */
.age-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: space-around;
  gap: 15px;
}

.age-buttons button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

#age-accept {
  background: #4caf50;
  color: #fff;
}

#age-accept:hover {
  background: #388e3c;
}

#age-decline {
  background: #e0e0e0;
  color: #333;
}

#age-decline:hover {
  background: #bdbdbd;
}
