/* ============================================================
   GALYONA GAMES — фирменный стиль «тёмный люкс»
   Палитра: глубокий сине-чёрный + золото + бирюза (по референсу),
   размытые золотые волны и боке на фоне
   ============================================================ */
:root {
  --bg: #0B1220;
  --bg-2: #0D1526;
  --panel: #16233A;
  --panel-deep: #101B2D;
  --gold: #D4AF37;
  --gold-light: #E8C766;
  --gold-pale: #F5D97B;
  --gold-dark: #8C6D1F;
  --cyan: #4FD1E0;
  --cyan-light: #9BE8F2;
  --white: #FFFFFF;
  --text-dim: #D9E1EC;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'PT Sans', 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main { flex: 1; position: relative; z-index: 1; }

/* ---------- Размытый фон (космос с волнами) ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg), var(--bg-2) 55%, var(--bg));
}
.bg-fx .bg-photo {
  position: absolute;
  inset: 0;
  background: url("../assets/bg-cosmos.jpg") center / cover no-repeat;
  filter: blur(14px) brightness(.62) saturate(1.05);
  transform: scale(1.12);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.blob-1 { width: 62vw; height: 36vh; left: -14vw; top: -10vh;  background: radial-gradient(closest-side, rgba(212,175,55,.48), transparent 72%); }
.blob-2 { width: 55vw; height: 30vh; right: -16vw; top: 20vh;  background: radial-gradient(closest-side, rgba(232,199,102,.30), transparent 72%); }
.blob-3 { width: 52vw; height: 30vh; left: -12vw; bottom: 4vh; background: radial-gradient(closest-side, rgba(79,209,224,.18), transparent 72%); }
.blob-4 { width: 66vw; height: 36vh; right: -20vw; bottom: -12vh; background: radial-gradient(closest-side, rgba(140,109,31,.40), transparent 72%); }
.blob-5 { width: 40vw; height: 22vh; left: 32vw; top: 52vh; background: radial-gradient(closest-side, rgba(212,175,55,.16), transparent 70%); }
.stars {
  position: absolute;
  inset: 0;
  opacity: .75;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(232,199,102,.9) 0 1.2px, transparent 2.4px),
    radial-gradient(circle at 28% 64%, rgba(255,255,255,.7)  0 1px,   transparent 2px),
    radial-gradient(circle at 41% 32%, rgba(232,199,102,.8)  0 1.6px, transparent 3px),
    radial-gradient(circle at 55% 78%, rgba(232,199,102,.6)  0 1px,   transparent 2px),
    radial-gradient(circle at 67% 22%, rgba(255,255,255,.6)  0 1.2px, transparent 2.4px),
    radial-gradient(circle at 74% 55%, rgba(232,199,102,.85) 0 1.4px, transparent 2.8px),
    radial-gradient(circle at 86% 36%, rgba(255,255,255,.5)  0 1px,   transparent 2px),
    radial-gradient(circle at 93% 72%, rgba(232,199,102,.7)  0 1.3px, transparent 2.6px),
    radial-gradient(circle at 7%  84%, rgba(255,255,255,.55) 0 1px,   transparent 2px),
    radial-gradient(circle at 48% 8%,  rgba(232,199,102,.75) 0 1.2px, transparent 2.4px);
}

h1, h2, h3, .serif {
  font-family: 'Forum', 'Playfair Display', Georgia, 'Times New Roman', serif;
}

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

a { color: inherit; text-decoration: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Шапка ---------- */
.site-header {
  background: rgba(11, 18, 32, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212,175,55,.55);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 24px;
  max-width: 1400px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--gold); }
.brand-name {
  font-family: 'Forum', 'Playfair Display', Georgia, serif;
  color: var(--gold-light);
  font-size: 20px;
  letter-spacing: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-name small {
  display: block;
  font-size: 11px;
  letter-spacing: 6px;
  color: var(--gold);
}
.main-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.main-nav a {
  color: var(--text-dim);
  font-size: 16px;
  letter-spacing: 1px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.main-nav a:hover { color: var(--gold-light); }
.main-nav a.active {
  color: var(--gold-pale);
  border-bottom-color: var(--gold);
}

/* ---------- Hero / заголовок раздела ---------- */
.hero {
  text-align: center;
  padding: 46px 24px 42px;
  border-bottom: 1px solid rgba(212,175,55,.45);
  position: relative;
}
.hero-landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: none;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #F7E27A 15%, #D4AF37 55%, #9A7418 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.6));
}
.hero .subtitle {
  margin-top: 14px;
  font-size: 20px;
  color: var(--cyan-light);
  letter-spacing: 1px;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.hero .logo-big {
  width: 180px; height: 180px;
  border-radius: 50%;
  margin: 0 auto 20px;
  border: 3px solid var(--gold);
  box-shadow: 0 0 60px rgba(212,175,55,.45), 0 0 120px rgba(79,209,224,.22);
}

/* ---------- Секции лендинга ---------- */
.section { padding: 84px 0; position: relative; }
.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 8px;
  text-shadow: 0 2px 6px rgba(0,0,0,.55);
}
.section-title::after {
  content: "";
  display: block;
  width: 120px; height: 2px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section-sub {
  text-align: center;
  color: var(--cyan-light);
  font-size: 18px;
  margin-bottom: 44px;
}

/* ---------- Карточки игр ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 34px;
}
.game-card {
  background: rgba(22, 35, 58, .82);
  border: 1px solid rgba(212,175,55,.65);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
}
.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 14px 40px rgba(0,0,0,.55), 0 0 28px rgba(212,175,55,.22);
}
.game-card .art { position: relative; aspect-ratio: 6 / 5; overflow: hidden; }
.game-card .art img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute;
  top: 12px; right: 12px;
  background: linear-gradient(180deg, var(--gold-pale), var(--gold));
  color: #2A1E00;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.45);
}
.game-card .body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.game-card h3 { color: var(--gold-light); font-size: 23px; letter-spacing: .04em; }
.game-card .desc { color: var(--text-dim); font-size: 15px; line-height: 1.5; flex: 1; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block;
  text-align: center;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 10px;
  cursor: pointer;
  transition: filter .2s, transform .1s, box-shadow .2s, background .2s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-pale), var(--gold) 60%, #B8860B);
  color: #2A1E00;
  border: 1px solid var(--gold-dark);
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
  padding: 13px 34px;
  font-size: 15px;
}
.btn-outline {
  background: rgba(79,209,224,.06);
  color: var(--cyan-light);
  border: 1.5px solid var(--cyan);
  padding: 12px 34px;
  font-size: 15px;
}
.btn-outline:hover { background: rgba(79,209,224,.16); box-shadow: 0 0 22px rgba(79,209,224,.25); }
.btn-block { display: block; width: 100%; }

/* ---------- CTA на главной ---------- */
.cta-row {
  display: flex;
  gap: 26px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 26px 24px 84px;
}
.cta-row .btn { min-width: 320px; padding: 18px 30px; font-size: 16px; }

/* ---------- Страница игры ---------- */
.game-page { display: grid; grid-template-columns: 2fr 1fr; gap: 36px; align-items: start; }
.game-intro { font-size: 17px; line-height: 1.65; color: var(--white); margin-bottom: 30px; }
.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 22px 24px;
}
.media-grid > .media-item { min-width: 0; }
.media-item.video-item { grid-column: 3; grid-row: 1 / 3; }
.media-item.video-item .video-placeholder { height: 100%; }
.media-item figure { margin: 0; }
.media-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(212,175,55,.65);
  border-radius: 10px;
}
.media-item figcaption { text-align: center; margin-top: 8px; font-size: 14px; color: var(--text-dim); }
.video-placeholder {
  min-width: 0;
  background: rgba(10, 16, 28, .9);
  border: 1px solid rgba(212,175,55,.65);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.play-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-pale), var(--gold));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 24px rgba(212,175,55,.5);
}
.play-circle::after {
  content: "";
  margin-left: 5px;
  border-left: 20px solid #2A1E00;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

/* ---------- Сайдбар особенностей ---------- */
.features-panel {
  background: rgba(16, 27, 45, .92);
  border: 1px solid rgba(212,175,55,.65);
  border-radius: 14px;
  padding: 28px 26px;
  position: sticky;
  top: 90px;
}
.features-panel h3 {
  color: var(--gold-light);
  font-size: 23px;
  letter-spacing: .04em;
  margin-bottom: 18px;
}
.features-panel ul { list-style: none; margin-bottom: 24px; }
.features-panel li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 12px;
  line-height: 1.45;
  color: var(--white);
}
.features-panel li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-pale), var(--gold));
}

/* ---------- О нас ---------- */
.mission-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.mission-text h2 {
  color: var(--gold-light);
  font-size: 30px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.mission-text p { font-size: 17px; line-height: 1.7; }
.banner-frame {
  border: 1px solid rgba(212,175,55,.65);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,.45), 0 0 30px rgba(212,175,55,.15);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.team-card {
  background: rgba(22, 35, 58, .82);
  border: 1px solid rgba(212,175,55,.6);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.team-card img {
  width: 108px; height: 108px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 0 18px rgba(212,175,55,.35);
  flex-shrink: 0;
}
.team-card h4 { color: var(--gold-light); font-size: 19px; margin-bottom: 4px; }
.team-card .role { color: var(--white); font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.team-card p { font-size: 14px; line-height: 1.5; color: var(--text-dim); }
.vacancies {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.vacancies .invite { color: var(--gold-light); font-size: 19px; }

/* ---------- Контакты ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 44px;
  align-items: start;
}
.contact-info h2, .contact-form h2 {
  color: var(--gold-light);
  font-size: 26px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 17px;
}
.contact-line .ico {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: rgba(11, 18, 32, .6);
}
.socials { display: flex; gap: 14px; margin-top: 26px; }
.socials a {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  background: rgba(11, 18, 32, .6);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.socials a:hover { background: rgba(212,175,55,.22); transform: translateY(-3px); box-shadow: 0 0 18px rgba(212,175,55,.35); }
.socials svg { width: 20px; height: 20px; fill: var(--gold-light); }
.contact-form {
  background: rgba(16, 27, 45, .92);
  border: 1px solid rgba(212,175,55,.65);
  border-radius: 14px;
  padding: 30px 28px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(10, 16, 28, .9);
  border: 1.5px solid rgba(212,175,55,.7);
  border-radius: 8px;
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
  padding: 13px 15px;
  margin-bottom: 16px;
  outline: none;
  transition: box-shadow .2s, border-color .2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #BDB3A0; }
.contact-form input:focus,
.contact-form textarea:focus { box-shadow: 0 0 0 3px rgba(212,175,55,.25); border-color: var(--gold); }
.contact-form textarea { min-height: 140px; resize: vertical; }

/* ---------- Подвал ---------- */
.site-footer {
  background: rgba(9, 14, 25, .92);
  border-top: 1px solid rgba(212,175,55,.55);
  margin-top: 40px;
  position: relative;
  z-index: 1;
}
.footer-panel {
  max-width: 1180px;
  margin: 40px auto 0;
  background: rgba(16, 27, 45, .92);
  border: 1px solid rgba(212,175,55,.6);
  border-radius: 14px;
  padding: 22px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-panel .mail {
  display: flex; align-items: center; gap: 10px;
  color: var(--gold-light);
}
.footer-panel .thanks { text-align: center; font-size: 15px; line-height: 1.5; }
.copyright {
  text-align: center;
  padding: 22px 24px 30px;
  font-size: 14px;
  color: var(--gold-light);
}

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
  .game-page, .mission-grid, .contact-grid { grid-template-columns: 1fr; }
  .features-panel { position: static; }
  .media-grid { grid-template-columns: 1fr 1fr; }
  .media-item.video-item { grid-column: 1 / -1; grid-row: auto; }
  .media-item.video-item .video-placeholder { height: auto; min-height: 260px; }
  .section { padding: 60px 0; }
}
@media (max-width: 640px) {
  .header-inner { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .team-card { flex-direction: column; align-items: center; text-align: center; }
  .footer-panel { justify-content: center; text-align: center; }
  .hero h1 { letter-spacing: .08em; }
}
