:root {
  --bg: #eef3f1;
  --panel: #ffffff;
  --panel-soft: #dfe8e4;
  --text: #12211d;
  --muted: #51605c;
  --line: rgba(18, 33, 29, 0.12);
  --brand: #009ee2;
  --brand-2: #70f03f;
  --accent: #081d2c;
  --shadow: 0 24px 80px rgba(6, 24, 37, 0.12);
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --surface-hover: rgba(0, 158, 226, 0.08);
  --surface-hover-strong: rgba(0, 158, 226, 0.16);
}

:root[data-theme="dark"] {
  --bg: #0a1520;
  --panel: #101e2d;
  --panel-soft: #16283a;
  --text: #edf5f7;
  --muted: #a9bfca;
  --line: rgba(173, 198, 210, 0.16);
  --accent: #06111b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --surface-hover: rgba(0, 158, 226, 0.12);
  --surface-hover-strong: rgba(0, 158, 226, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(0, 158, 226, 0.18), transparent 30%),
    linear-gradient(180deg, #f7fbfa 0%, var(--bg) 100%);
  color: var(--text);
  overflow-x: hidden;
  transition: background 0.25s ease, color 0.25s ease;
}

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

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

.container {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(247, 251, 250, 0.82);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 700;
  min-width: 0;
}

.brand-mark {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
}

.language-switcher {
  display: flex;
  gap: 8px;
}

.language-switcher a,
.theme-toggle {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.language-switcher a:hover,
.theme-toggle:hover {
  transform: scale(1.04);
  background: var(--surface-hover);
  border-color: rgba(0, 158, 226, 0.28);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font: inherit;
}

.theme-toggle-dark {
  opacity: 0.56;
}

:root[data-theme="dark"] .theme-toggle-light {
  opacity: 0.56;
}

:root[data-theme="dark"] .theme-toggle-dark {
  opacity: 1;
}

:root[data-theme="dark"] .theme-toggle-light,
:root[data-theme="light"] .theme-toggle-light,
:root[data-theme="light"] .theme-toggle-dark {
  transition: opacity 0.18s ease;
}

.language-switcher a.active {
  background: var(--accent);
  color: white;
}

.hero {
  padding: 32px 0 12px;
}

.hero-heading {
  margin-bottom: 18px;
}

.hero-heading h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.96;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.hero-shell {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 190px;
  gap: 18px;
  min-height: 700px;
}

.hero-side,
.hero-main,
.feature-card,
.bonus-card,
.step-card,
.game-card,
.review-card,
.faq-item,
.article-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition:
    transform 0.18s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}

.hero-side {
  padding: 18px 16px;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.hero-side-top {
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
}

.hero-side-top a {
  display: inline-flex;
  padding: 6px 8px;
  border-radius: var(--radius-xs);
  transition: transform 0.18s ease, background 0.18s ease;
}

.hero-side-top a:hover {
  transform: scale(1.04);
  background: var(--surface-hover);
}

.promo-box {
  padding: 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 158, 226, 0.14), rgba(112, 240, 63, 0.18));
  box-shadow: inset 0 0 0 1px rgba(0, 158, 226, 0.08);
}

.promo-label {
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
}

.hero-side-links {
  display: grid;
  gap: 12px;
}

.hero-side-links a,
.hero-side-links span {
  display: block;
  padding: 14px 14px 16px;
  font-size: 20px;
  line-height: 1.15;
  border-radius: var(--radius-md);
  overflow-wrap: anywhere;
}

.hero-side-links a {
  background: linear-gradient(135deg, var(--surface-hover), rgba(112, 240, 63, 0.08));
  border: 1px solid transparent;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.hero-side-links a:hover {
  transform: scale(1.03);
  background: linear-gradient(135deg, var(--surface-hover-strong), rgba(112, 240, 63, 0.14));
  border-color: rgba(0, 158, 226, 0.26);
  box-shadow: 0 16px 32px rgba(6, 24, 37, 0.14);
}

.hero-main {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  aspect-ratio: 16 / 9;
  color: white;
  background-color: #0f2235;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
}

.hero-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(8, 29, 44, 0.42) 0%, rgba(8, 29, 44, 0.2) 38%, rgba(8, 29, 44, 0.06) 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(8, 29, 44, 0.12) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  height: 100%;
  width: min(100%, 620px);
  padding: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  backdrop-filter: blur(10px);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
  touch-action: manipulation;
}

.button:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 28px rgba(6, 24, 37, 0.18);
}

.button-primary {
  background: white;
  color: var(--accent);
}

.button-secondary {
  background: #1a7dc0;
  border: 1px solid #1a7dc0;
  color: white;
  opacity: 1;
}

.section {
  padding: 36px 0;
}

.section-intro {
  padding-top: 20px;
}

.homepage-intro {
  padding: 30px 34px;
  border-radius: var(--radius-xl);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--muted);
  line-height: 1.75;
}

.homepage-intro > :first-child {
  margin-top: 0;
}

.homepage-intro > :last-child {
  margin-bottom: 0;
}

.homepage-intro h2,
.homepage-intro h3,
.homepage-intro h4 {
  color: var(--text);
}

.section-accent {
  background: linear-gradient(180deg, rgba(0, 158, 226, 0.08), rgba(112, 240, 63, 0.06));
}

.section-heading {
  display: flex;
  gap: 18px;
  align-items: baseline;
  margin-bottom: 22px;
}

.section-heading span {
  font-size: 14px;
  text-transform: uppercase;
  color: var(--muted);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 44px);
  overflow-wrap: anywhere;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid-advantages {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid-bonuses {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.games-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reviews-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.bonus-card,
.step-card,
.review-card {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.feature-card,
.bonus-card,
.step-card,
.game-copy,
.review-card,
.faq-item,
.article-card,
.homepage-intro {
  overflow-wrap: anywhere;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  object-fit: contain;
}

.bonus-card strong,
.step-number,
.review-rating {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
}

.card-link-wrapper {
  display: block;
}

.card-link-wrapper:hover .bonus-card,
.card-link-wrapper:hover .game-card {
  transform: translateY(-4px);
  border-color: rgba(0, 158, 226, 0.28);
  box-shadow: 0 22px 40px rgba(6, 24, 37, 0.18);
}

.card-link-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-hover);
  font-weight: 700;
  color: var(--brand);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.game-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.game-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.game-copy {
  padding: 22px;
}

.game-copy span {
  color: var(--muted);
  font-size: 14px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-item div {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  padding: 28px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: #0d1f2f;
  color: white;
}

.footer-brand {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 700;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  transition: transform 0.18s ease, background 0.18s ease;
}

.footer-links a:hover {
  transform: scale(1.03);
  background: rgba(255, 255, 255, 0.08);
}

.article-shell {
  max-width: 900px;
}

.article-card {
  padding: 42px;
  border-radius: var(--radius-xl);
}

.article-label {
  margin: 0 0 12px;
  text-transform: uppercase;
  color: var(--muted);
}

.article-card h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 54px);
}

.article-intro,
.article-content {
  color: var(--muted);
  line-height: 1.8;
}

.feature-card:hover,
.step-card:hover,
.review-card:hover,
.faq-item:hover,
.homepage-intro:hover {
  transform: translateY(-3px);
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(0, 158, 226, 0.24), transparent 30%),
    linear-gradient(180deg, #0d1822 0%, var(--bg) 100%);
}

:root[data-theme="dark"] .site-header {
  background: rgba(10, 21, 32, 0.82);
}

:root[data-theme="dark"] .hero-main {
  background-color: #09131d;
}

:root[data-theme="dark"] .footer-grid {
  background: #09131d;
}

:root[data-theme="dark"] .button-primary {
  background: #f1f6f8;
}

:root[data-theme="dark"] .button-secondary {
  background: #2f93db;
  border-color: #2f93db;
}

@media (max-width: 900px) {
  .container {
    width: min(1240px, calc(100% - 24px));
  }

  .hero {
    padding: 24px 0 8px;
  }

  .hero-heading {
    margin-bottom: 14px;
  }

  .hero-shell {
    gap: 14px;
  }

  .hero-side {
    padding: 16px 14px;
  }

  .hero-side-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-side-links a,
  .hero-side-links span {
    font-size: 17px;
    padding: 12px;
  }

  .hero-content {
    width: 100%;
    padding: 28px;
  }

  .hero-actions {
    width: 100%;
    margin-top: 0;
  }

  .button {
    min-height: 50px;
    padding: 0 18px;
  }

  .homepage-intro {
    padding: 24px;
  }

  .feature-card,
  .bonus-card,
  .step-card,
  .review-card {
    padding: 20px;
  }

  .game-copy {
    padding: 18px;
  }

  .game-card img {
    height: 200px;
  }

  .article-card {
    padding: 28px;
  }
}

@media (max-width: 1100px) {
  .hero-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-main {
    order: 1;
  }

  .hero-side-left {
    order: 2;
  }

  .hero-side-right {
    order: 3;
  }

  .hero-main {
    aspect-ratio: 16 / 10;
  }

  .hero-content {
    width: min(100%, 560px);
    padding: 36px;
  }

  .hero-side {
    justify-content: flex-start;
  }

  .card-grid-advantages,
  .card-grid-bonuses,
  .games-grid,
  .reviews-grid,
  .steps-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    width: min(1240px, calc(100% - 20px));
  }

  .header-inner,
  .header-actions {
    gap: 10px;
    flex-wrap: wrap;
  }

  .header-inner {
    align-items: stretch;
    padding: 12px 0;
  }

  .brand {
    width: 100%;
    justify-content: space-between;
  }

  .brand-copy {
    max-width: 180px;
    text-align: right;
    font-size: 14px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .theme-toggle,
  .language-switcher {
    flex: 1 1 auto;
  }

  .theme-toggle {
    justify-content: center;
    min-height: 46px;
  }

  .language-switcher {
    justify-content: flex-end;
  }

  .language-switcher a {
    min-height: 46px;
    min-width: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .card-grid-advantages,
  .card-grid-bonuses,
  .games-grid,
  .reviews-grid,
  .steps-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-main {
    aspect-ratio: 5 / 6;
  }

  .hero-content {
    width: 100%;
    padding: 18px;
    justify-content: flex-end;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 54px;
  }

  .hero-heading h1 {
    max-width: none;
    font-size: clamp(34px, 12vw, 42px);
  }

  .hero-side {
    gap: 14px;
  }

  .hero-side-links {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-side-links a,
  .hero-side-links span {
    font-size: 16px;
    padding: 12px;
  }

  .promo-box {
    padding: 16px;
  }

  .section {
    padding: 28px 0;
  }

  .section-intro {
    padding-top: 14px;
  }

  .homepage-intro {
    padding: 18px;
    line-height: 1.65;
  }

  .section-heading h2 {
    font-size: clamp(24px, 8vw, 32px);
  }

  .feature-card,
  .bonus-card,
  .step-card,
  .review-card {
    padding: 18px;
  }

  .feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
  }

  .game-card img {
    height: 180px;
  }

  .game-copy {
    padding: 16px;
  }

  .faq-item {
    padding: 16px 18px;
  }

  .footer-grid {
    padding: 20px;
  }

  .footer-links a {
    padding: 14px 12px;
  }

  .article-card {
    padding: 20px 18px;
  }

  .article-card h1 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .section-heading {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .brand {
    gap: 8px;
    align-items: flex-start;
  }

  .brand-mark {
    padding: 9px 12px;
  }

  .brand-copy {
    max-width: 140px;
    font-size: 13px;
  }

  .theme-toggle {
    font-size: 14px;
  }

  .hero-main {
    aspect-ratio: 9 / 11;
  }

  .hero-content {
    padding: 14px;
  }

  .button {
    padding: 0 14px;
  }

  .homepage-intro,
  .feature-card,
  .bonus-card,
  .step-card,
  .review-card,
  .faq-item,
  .article-card {
    padding-left: 16px;
    padding-right: 16px;
  }
}
