/*
Theme Name: Gaming Final Theme
Theme URI: https://example.com
Author: Custom Theme
Author URI: https://example.com
Description: Многостраничная WordPress тема по структуре: Главная, История, Слоты, Слот 1, Слот 2, Слот 3, Где играть.
Version: 1.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: gaming-final-theme
*/

:root {
  --bg: #070b19;
  --bg-2: #0d1430;
  --card: #111b3d;
  --card-2: #162554;
  --accent: #05f2c7;
  --accent-2: #2db7ff;
  --orange: #ffb545;
  --text: #ffffff;
  --muted: #a9b5d0;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 15% 5%, rgba(5, 242, 199, 0.18), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(45, 183, 255, 0.18), transparent 34%),
    linear-gradient(180deg, #070b19 0%, #0b1126 45%, #070b19 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 17px;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(7, 11, 25, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 38px rgba(5, 242, 199, 0.3);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 12px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04101f;
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(5, 242, 199, 0.22);
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(5, 242, 199, 0.32);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

/* HERO */

.hero {
  padding: 96px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.eyebrow::before,
.section-label::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 24px rgba(5, 242, 199, 0.85);
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 24px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.92;
  letter-spacing: -3px;
  color: var(--text);
}

.hero p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-visual {
  min-height: 520px;
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent),
    linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -55px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(5, 242, 199, 0.18);
  filter: blur(4px);
}

.hero-card-big {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 520px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 181, 69, 0.34), transparent 32%),
    radial-gradient(circle at 20% 70%, rgba(5, 242, 199, 0.28), transparent 32%),
    linear-gradient(180deg, #1c2b66, #0e1737);
}

.hero-card span {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-card h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 12px;
  font-size: 28px;
}

.hero-card p {
  position: relative;
  z-index: 2;
  font-size: 16px;
}

.hero-card a {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 900;
}

/* MINI GAMES */

.games-strip {
  padding: 28px 0 54px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mini-game {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 118px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  transition: 0.2s ease;
}

.mini-game:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.11);
}

.mini-game-img {
  flex: 0 0 78px;
  width: 78px;
  height: 78px;
  border-radius: 20px;
}

.mini-game span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 14px;
}

.mini-game strong {
  display: block;
  font-size: 20px;
}

.bg-1 {
  background:
    radial-gradient(circle at 30% 25%, #fff6a8, transparent 18%),
    linear-gradient(135deg, #ff8a3d, #7c2cff);
}

.bg-2 {
  background:
    radial-gradient(circle at 70% 30%, #ffffff, transparent 16%),
    linear-gradient(135deg, #27e3ff, #2444ff);
}

.bg-3 {
  background:
    radial-gradient(circle at 45% 35%, #f7ff9a, transparent 18%),
    linear-gradient(135deg, #00d084, #0e7345);
}

/* SECTIONS */

.section {
  padding: 78px 0;
}

.section h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -1.6px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 34px;
}

.link {
  color: var(--accent);
  font-weight: 900;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stat {
  min-height: 170px;
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.stat strong {
  display: block;
  margin-bottom: 8px;
  font-size: 38px;
  color: var(--accent);
}

.stat span {
  color: var(--muted);
  font-weight: 700;
}

.product-grid,
.news-grid,
.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card,
.product-card,
.news-card {
  min-height: 310px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.25);
}

.product-card-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 30px;
}

.card h3,
.product-card h3,
.news-card h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 25px;
}

.product-card a,
.slot-card a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--accent);
  font-weight: 900;
}

.dark-section {
  background:
    radial-gradient(circle at 20% 0%, rgba(45, 183, 255, 0.14), transparent 28%),
    rgba(255, 255, 255, 0.03);
}

.slot-card {
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.slot-card-image {
  min-height: 230px;
}

.slot-card-body {
  padding: 24px;
}

.slot-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.news-card span {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-weight: 900;
  font-size: 14px;
}

/* CTA */

.cta {
  padding: 50px 0 100px;
}

.cta-box {
  padding: 54px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(5, 242, 199, 0.18), rgba(45, 183, 255, 0.08)),
    linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
}

.cta-box h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 54px);
}

.cta-box p {
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 18px;
}

/* INNER PAGES */

.page-hero {
  padding: 80px 0 38px;
}

.breadcrumbs {
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
}

.breadcrumbs a {
  color: var(--accent);
}

.page-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.95;
  letter-spacing: -2.4px;
}

.page-hero p {
  max-width: 820px;
  font-size: 19px;
}

.inner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.slot-banner {
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  padding: 34px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 181, 69, 0.3), transparent 24%),
    linear-gradient(135deg, rgba(5, 242, 199, 0.26), rgba(45, 183, 255, 0.08)),
    linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.info-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.info-item {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* FOOTER */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.age {
  color: var(--accent);
  font-weight: 900;
}

/* ADAPTIVE */

@media (max-width: 980px) {
  .header-inner {
    flex-direction: column;
    padding: 18px 0;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-grid,
  .about-grid,
  .games-grid,
  .product-grid,
  .slot-grid,
  .news-grid,
  .stats,
  .inner-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 64px;
  }

  .hero-visual {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-card-big {
    min-height: 360px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-box {
    padding: 34px 22px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    letter-spacing: -1.6px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .mini-game {
    align-items: flex-start;
  }
}