@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600&display=swap');

:root {
  --bg-dark: #050109;
  --bg-panel: rgba(15, 5, 25, 0.92);
  --bg-panel-alt: rgba(28, 6, 44, 0.9);
  --neon-pink: #ff3f9f;
  --neon-pink-soft: #ff78c4;
  --electric-purple: #b24bff;
  --text-light: #f4dfff;
  --text-muted: #c2b0d4;
  --border-glow: rgba(255, 63, 159, 0.35);
  --shadow-strong: 0 20px 50px rgba(14, 0, 26, 0.55);
  --shadow-soft: 0 10px 30px rgba(255, 63, 159, 0.2);
  --container-width: min(1100px, 100%);
}

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

body {
  margin: 0;
  font-family: 'Space Grotesk', 'Segoe UI', Tahoma, sans-serif;
  background: radial-gradient(circle at top, rgba(255, 63, 159, 0.12), transparent 60%), var(--bg-dark);
  color: var(--text-light);
  line-height: 1.7;
  min-height: 100vh;
}

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

a {
  color: var(--neon-pink-soft);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--neon-pink);
  opacity: 0.85;
}

main {
  padding: 60px 20px 80px;
}

.page-wrapper {
  width: var(--container-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.content-section {
  background: linear-gradient(135deg, var(--bg-panel), var(--bg-panel-alt));
  border: 1px solid var(--border-glow);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(12px);
}

.content-section h1,
.content-section h2 {
  margin-top: 0;
  color: var(--text-light);
  text-shadow: 0 0 10px rgba(255, 63, 159, 0.5);
}

.content-section ul {
  padding-left: 20px;
  margin: 16px 0;
}

.content-section li {
  margin-bottom: 8px;
}

.hero-banner,
.banner-block {
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  border: 1px solid var(--border-glow);
}

.hero-banner {
  width: 100%;
  margin: 0;
  border-radius: 0;
}

.hero-link {
  display: block;
}

.hero-link img,
.hero-banner img {
  width: 100%;
  display: block;
}

.banner-block {
  border-radius: 32px;
}

.banner-block img {
  width: 100%;
  display: block;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid rgba(255, 63, 159, 0.25);
  border-radius: 18px;
  background: rgba(8, 1, 15, 0.7);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--text-light);
  transition: transform 0.2s ease;
}

.faq-icon::before {
  width: 14px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 14px;
}

.faq-item.active .faq-icon::after {
  transform: scaleY(0);
}

.faq-answer {
  padding: 0 22px 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-answer[hidden] {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 1, 9, 0.9);
  border-bottom: 1px solid var(--border-glow);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.header-inner,
.footer-inner {
  width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 63, 159, 0.45));
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.btn-registration {
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  background: linear-gradient(135deg, var(--neon-pink), var(--electric-purple));
  color: #050109;
  border: none;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-block;
}

.btn-registration:hover,
.btn-registration:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(255, 63, 159, 0.4);
  color: #050109;
  opacity: 1;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  align-items: flex-end;
  min-height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle span {
  width: 28px;
  height: 2px;
  background: var(--text-light);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-footer {
  padding: 40px 20px 60px;
  background: rgba(5, 1, 9, 0.95);
  border-top: 1px solid var(--border-glow);
}

body.promo-visible .site-footer {
  padding-bottom: 120px;
}

.footer-inner {
  flex-wrap: wrap;
}

.footer-meta {
  max-width: 500px;
}

.footer-meta p {
  margin: 6px 0;
  color: var(--text-muted);
}

.footer-meta .disclaimer {
  font-size: 0.85rem;
}

.error-layout {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 80px;
}

.error-card {
  background: linear-gradient(135deg, rgba(41, 7, 60, 0.95), rgba(14, 0, 34, 0.95));
  border: 1px solid var(--border-glow);
  border-radius: 32px;
  padding: 48px;
  max-width: 560px;
  text-align: center;
  box-shadow: var(--shadow-strong);
}

.error-kicker {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.error-actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.error-offer-mount {
  display: flex;
  align-items: center;
}

.error-offer-mount .btn-ghost {
  white-space: nowrap;
}

.btn-primary,
.btn-ghost {
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-pink), var(--electric-purple));
  color: #050109;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(255, 63, 159, 0.4);
}

.btn-ghost {
  border-color: var(--neon-pink);
  color: var(--text-light);
  background: transparent;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(255, 63, 159, 0.1);
}

.scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 26px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border-glow);
  background: linear-gradient(135deg, rgba(255, 63, 159, 0.9), rgba(178, 75, 255, 0.9));
  color: #050109;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 15px 40px rgba(255, 63, 159, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1100;
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scroll-top-btn span {
  margin-top: -2px;
}

.scroll-top-btn:focus-visible {
  outline: 2px solid var(--text-light);
  outline-offset: 3px;
}

.scroll-top-btn.with-promo {
  bottom: 124px;
}

.cta-float {
  position: fixed;
  left: 50%;
  bottom: -120px;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 32px));
  background: rgba(7, 1, 15, 0.92);
  border: 1px solid var(--border-glow);
  border-radius: 28px 28px 0 0;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 -10px 40px rgba(5, 0, 12, 0.6), 0 10px 30px rgba(255, 63, 159, 0.25);
  color: var(--text-light);
  opacity: 0;
  pointer-events: none;
  transition: bottom 0.4s ease, opacity 0.4s ease;
  z-index: 1050;
}

.cta-float p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.cta-float .cta-btn {
  white-space: nowrap;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--neon-pink), var(--electric-purple));
  color: #050109;
  box-shadow: var(--shadow-soft);
}

.cta-float.visible {
  bottom: 0;
  opacity: 1;
  pointer-events: auto;
}

body.promo-visible .site-footer {
  padding-bottom: 120px;
}

.error-card h1 {
  margin: 0 0 12px;
}

/* Breakpoints */
@media (max-width: 1024px) and (min-width: 769px) {
  :root {
    --container-width: min(960px, 100%);
  }
  .content-section {
    padding: 28px;
  }
}

@media (max-width: 768px) and (min-width: 426px) {
  :root {
    --container-width: min(680px, 100%);
  }
  .header-inner {
    padding: 14px;
  }
  .content-section {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    position: relative;
  }
  .nav-toggle {
    display: none;
  }
  .site-nav {
    display: none;
  }
  .btn-registration {
    margin-left: auto;
  }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
  }
  .site-footer .brand {
    margin: 0 auto;
  }
  .footer-meta {
    text-align: center;
  }
}

@media (max-width: 425px) and (min-width: 376px) {
  :root {
    --container-width: 100%;
  }
  .content-section {
    padding: 20px;
  }
  main {
    padding-top: 40px;
  }
  .scroll-top-btn {
    bottom: 24px;
    right: 18px;
    width: 48px;
    height: 48px;
  }
  .scroll-top-btn.with-promo {
    bottom: 164px;
  }
  .cta-float {
    width: calc(100% - 24px);
    padding: 18px;
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .cta-float .cta-btn {
    width: 100%;
    text-align: center;
  }
  body.promo-visible .site-footer {
    padding-bottom: 180px;
  }
}

@media (max-width: 375px) and (min-width: 321px) {
  .content-section,
  .error-card {
    padding: 18px;
  }
  .brand span {
    font-size: 0.85rem;
  }
  .btn-primary,
  .btn-ghost {
    width: 100%;
    text-align: center;
  }
  .scroll-top-btn {
    bottom: 22px;
    right: 16px;
    width: 46px;
    height: 46px;
  }
  .scroll-top-btn.with-promo {
    bottom: 164px;
  }
  .cta-float {
    width: calc(100% - 20px);
    padding: 18px 14px;
    flex-direction: column;
    align-items: center;
  }
  .cta-float .cta-btn {
    width: 100%;
  }
  body.promo-visible .site-footer {
    padding-bottom: 190px;
  }
}

@media (max-width: 320px) {
  body {
    font-size: 0.9rem;
  }
  .brand img {
    width: 36px;
    height: 36px;
  }
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }
  .nav-toggle {
    margin-left: 0;
    align-self: flex-start;
  }
  .content-section {
    padding: 16px;
  }
  .scroll-top-btn {
    bottom: 18px;
    right: 14px;
    width: 44px;
    height: 44px;
  }
  .scroll-top-btn.with-promo {
    bottom: 164px;
  }
  .cta-float {
    width: calc(100% - 18px);
    padding: 16px;
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .cta-float .cta-btn {
    width: 100%;
  }
  body.promo-visible .site-footer {
    padding-bottom: 200px;
  }
}

@media (min-width: 1025px) {
  .content-section {
    padding: 36px;
  }
  .site-nav a {
    font-size: 0.9rem;
  }
}

