:root {
  --bg: #070b14;
  --bg-soft: #0f1729;
  --panel: rgba(10, 17, 28, 0.9);
  --panel-strong: #101a2b;
  --card: #121d2e;
  --primary: #7c5cff;
  --primary-2: #4ad7ff;
  --gold: #f6c76a;
  --text: #edf3ff;
  --muted: #a5b4cf;
  --line: rgba(255, 255, 255, 0.1);
  --success: #5ee6a9;
  --shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    linear-gradient(180deg, rgba(4, 9, 18, 0.78), rgba(7, 17, 29, 0.82)),
    url("../img/logo.jpg") center center / cover no-repeat fixed;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 55% 45% 60% 40% / 52% 48% 52% 48%;
  filter: blur(12px);
  opacity: 0.7;
}

body::before {
  top: -5%;
  left: -8%;
  width: 900px;
  height: 700px;
  background: radial-gradient(circle at 30% 30%, rgba(120, 88, 255, 0.9), rgba(77, 129, 255, 0.25) 25%, rgba(8, 13, 21, 0) 68%);
  transform: rotate(-18deg);
  animation: dragonSwimOne 18s ease-in-out infinite alternate;
}

body::after {
  right: -10%;
  top: 12%;
  width: 980px;
  height: 760px;
  background: radial-gradient(circle at 60% 40%, rgba(74, 215, 255, 0.8), rgba(0, 175, 255, 0.22) 24%, rgba(8, 13, 21, 0) 68%);
  transform: rotate(16deg);
  animation: dragonSwimTwo 20s ease-in-out infinite alternate;
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 12, 20, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 86px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  font-family: "Cinzel", serif;
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(124, 92, 255, 0.5);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: "Cinzel", serif;
  font-size: 1.2rem;
  color: #fff;
}

.brand small {
  font-size: 0.65rem;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  transition: 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transform: scaleX(0);
  transform-origin: center;
  transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: white;
  box-shadow: 0 17px 30px rgba(124, 92, 255, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.large {
  padding: 1.1rem 2.1rem;
}

.hero {
  position: relative;
  padding: 120px 0 80px;
  background:
    linear-gradient(90deg, rgba(8, 12, 20, 0.82), rgba(8, 12, 20, 0.45)),
    radial-gradient(circle at 30% 30%, rgba(124, 92, 255, 0.25), transparent 22%),
    radial-gradient(circle at 70% 20%, rgba(74, 215, 255, 0.2), transparent 25%);
  overflow: hidden;
}

.hero::before,
.hero::after,
.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto auto 10% -10%;
  width: 780px;
  height: 420px;
  border-radius: 52% 48% 57% 43% / 62% 40% 60% 38%;
  background: linear-gradient(135deg, rgba(143, 110, 255, 0.22), rgba(67, 145, 255, 0.06), rgba(18, 31, 45, 0));
  border: 1px solid rgba(120, 160, 255, 0.25);
  box-shadow: 0 0 80px rgba(120, 88, 255, 0.26);
  filter: blur(8px);
  transform-origin: center;
  animation: dragonSwimOne 16s ease-in-out infinite alternate;
}

.hero::after,
.page-hero::after {
  inset: 8% -8% auto auto;
  width: 820px;
  height: 360px;
  background: linear-gradient(120deg, rgba(81, 198, 255, 0.18), rgba(77, 101, 255, 0.08), rgba(10, 17, 28, 0));
  border-radius: 48% 52% 44% 56% / 36% 60% 40% 64%;
  animation: dragonSwimTwo 18s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 15, 25, 0.15), rgba(7, 11, 20, 0.75));
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
}

.eyebrow.accent {
  color: var(--primary-2);
}

.hero-copy h1,
.page-hero h1,
.section h2 {
  margin: 0 0 18px;
  font-family: "Cinzel", serif;
  line-height: 1.15;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 5vw, 5rem);
  max-width: 620px;
}

.lead {
  max-width: 600px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0;
}

.hero-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  padding: 0;
  margin: 0;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stats strong {
  font-size: 1.9rem;
  font-family: "Cinzel", serif;
}

.hero-stats span {
  color: var(--muted);
}

.hero-card {
  position: relative;
  background: linear-gradient(180deg, rgba(17, 28, 43, 0.9), rgba(13, 20, 33, 0.9));
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.floating-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(94, 230, 169, 0.35);
  background: rgba(94, 230, 169, 0.08);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--success);
  font-weight: 600;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 18px rgba(94, 230, 169, 0.8);
}

.class-showcase {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
  padding: 20px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.9), rgba(74, 215, 255, 0.8));
  position: relative;
  overflow: hidden;
}

.avatar::before {
  content: "";
  position: absolute;
  inset: 18px 28px 20px 28px;
  border-radius: 50% 50% 40% 40%;
  background: rgba(17, 20, 29, 0.7);
}

.avatar::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: 60px;
  height: 35px;
  border-radius: 12px 12px 25px 25px;
  background: rgba(17, 20, 29, 0.75);
}

.card-copy {
  flex: 1;
}

.label {
  margin: 0 0 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
}

.card-copy h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.feature-band {
  padding: 30px 0 20px;
}

.feature-grid,
.class-grid,
.news-grid,
.download-grid {
  display: grid;
  gap: 26px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-item,
.class-card,
.news-card,
.download-box,
.guide-card,
.register-card,
.bonus-box,
.download-card,
.info-panel {
  background: linear-gradient(180deg, rgba(18, 28, 45, 0.82), rgba(13, 18, 28, 0.88));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.feature-item {
  padding: 28px 24px;
}

.feature-item .icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(74, 215, 255, 0.2));
  font-size: 1.5rem;
}

.feature-item h3,
.class-card h3,
.news-card h3,
.download-box h3,
.bonus-box h3 {
  margin: 0 0 10px;
}

.feature-item p,
.news-card p,
.class-card p,
.download-box ul,
.guide-card p,
.guide-card li,
.bonus-box li {
  color: var(--muted);
}

.section {
  padding: 100px 0;
}

.section-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.info-panel {
  padding: 26px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.info-row:last-child {
  border-bottom: none;
}

.info-row span {
  color: var(--muted);
}

.section-head {
  margin-bottom: 36px;
}

.class-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.class-card {
  padding: 28px 22px;
}

.class-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  margin-bottom: 18px;
  font-size: 1.8rem;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.22), rgba(74, 215, 255, 0.18));
}

.news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-card {
  padding: 26px 22px;
}

.news-tag {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.14);
  color: var(--primary-2);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 60px;
  background: linear-gradient(180deg, rgba(17, 24, 37, 0.76), rgba(17, 24, 37, 0.9));
}

.small-hero {
  padding-top: 100px;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  margin-bottom: 0;
}

.content-page,
.download-page,
.register-page {
  padding-top: 60px;
}

.guide-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
}

.guide-sidebar {
  align-self: start;
  position: sticky;
  top: 110px;
  background: rgba(17, 24, 37, 0.85);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 20px;
}

.guide-sidebar h3 {
  margin-top: 0;
}

.guide-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.guide-sidebar a {
  color: var(--muted);
}

.guide-content {
  display: grid;
  gap: 22px;
}

.guide-card {
  padding: 28px 24px;
}

.guide-card h2 {
  margin-top: 0;
  font-size: 1.8rem;
  font-family: "Cinzel", serif;
}

.guide-card ul {
  padding-left: 20px;
}

.download-wrap {
  display: grid;
  gap: 28px;
}

.main-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 30px;
}

.download-card h2 {
  margin: 8px 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.download-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.download-box {
  padding: 26px 22px;
}

.download-box ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.register-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
}

.register-card {
  padding: 28px;
}

.register-form {
  display: grid;
  gap: 20px;
}

.field-row {
  display: grid;
  gap: 8px;
}

label {
  font-weight: 600;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  padding: 0.9rem 1rem;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.96rem;
}

.checkbox-row input {
  width: auto;
}

.full {
  width: 100%;
}

.bonus-box {
  padding: 26px 24px;
  align-self: start;
}

.bonus-box ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(8, 12, 20, 0.86);
  padding: 24px 0;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
}

.footer-wrap p {
  color: var(--muted);
  margin: 0;
}

@keyframes dragonSwimOne {
  0% {
    transform: translate3d(0, 0, 0) rotate(-12deg) scale(1);
  }
  50% {
    transform: translate3d(30px, 18px, 0) rotate(-18deg) scale(1.08);
  }
  100% {
    transform: translate3d(-20px, 26px, 0) rotate(-10deg) scale(1.04);
  }
}

@keyframes dragonSwimTwo {
  0% {
    transform: translate3d(0, 0, 0) rotate(12deg) scale(1);
  }
  50% {
    transform: translate3d(-26px, 18px, 0) rotate(18deg) scale(1.1);
  }
  100% {
    transform: translate3d(18px, -22px, 0) rotate(9deg) scale(1.06);
  }
}

@media (max-width: 900px) {
  .hero-content,
  .section-grid,
  .register-wrap,
  .guide-layout,
  .download-grid,
  .feature-grid,
  .class-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }

  .hero {
    padding-top: 90px;
  }

  .main-download {
    flex-direction: column;
    align-items: flex-start;
  }

  .guide-sidebar {
    position: static;
  }
}

@media (max-width: 560px) {
  .nav-wrap {
    min-height: 72px;
  }

  .hero-copy h1 {
    font-size: 2.4rem;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-stats {
    justify-content: space-between;
    gap: 20px;
  }
}
