/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #f0b429;
  --gold-dark: #b8860b;
  --red: #e53e3e;
  --bg: #f5f5f5;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-muted: #666666;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --radius: 8px;
  --max-width: 1100px;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
html { scroll-behavior: smooth; }

/* ── INLINE ANCHOR TEXT (SEO content only) ── */
.seo-block a:not(.btn),
.faq__item a,
.login-register a,
div[style*="max-width:420px"] a:not([class]) {
  color: var(--gold-dark);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}
.seo-block a:not(.btn):hover,
.faq__item a:hover {
  color: var(--gold);
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
  border: 2px solid transparent;
}
.btn--primary { background: var(--gold); color: #000; border-color: var(--gold); }
.btn--primary:hover { opacity: 0.88; }
.btn--outline { background: transparent; color: var(--gold-dark); border-color: var(--gold); }
.btn--outline:hover { background: var(--gold); color: #000; }
.btn--red { background: var(--red); color: #fff; border-color: var(--red); }
.btn--red:hover { opacity: 0.88; }
.btn--lg { padding: 12px 32px; font-size: 1rem; }

/* ── NAVBAR ── */
.navbar {
  background: #FFD700;
  border-bottom: 2px solid #e6c200;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.navbar__logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.navbar__links {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #000;
}
.navbar__links a:hover { color: var(--gold-dark); }

.navbar__actions { display: flex; gap: 8px; }
.navbar__actions .btn--outline { background: #fff; color: #000; border-color: #fff; }
.navbar__actions .btn--outline:hover { background: #f0f0f0; border-color: #f0f0f0; }

.navbar__burger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gold-dark);
  cursor: pointer;
}

@media (max-width: 768px) {
  .navbar__links { display: none; }
  .navbar__burger { display: block; }
  .navbar__actions .btn--outline { display: none; }
}

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-bottom: 2px solid var(--border);
  padding: 8px 20px 16px;
  gap: 12px;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 99;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-menu__links a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  display: block;
}

.mobile-menu__links a:last-child { border-bottom: none; }
.mobile-menu__links a:hover { color: var(--gold-dark); }

.mobile-menu__actions {
  display: flex;
  gap: 10px;
  padding-top: 4px;
}

.mobile-menu__actions .btn {
  flex: 1;
  text-align: center;
}

/* ── HERO ── */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 32px;
  text-align: center;
}

.hero__title {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.25;
}

.hero__subtitle {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 24px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── CAROUSEL ── */
.carousel-section { background: var(--bg); padding: 0; }

.carousel {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  aspect-ratio: 894 / 446;
}

@media (max-width: 768px) { .carousel { aspect-ratio: 894 / 446; } }

.carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}

.carousel__slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel__placeholder {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-style: italic;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s;
}
.carousel__btn:hover { background: rgba(0,0,0,0.6); }
.carousel__btn--prev { left: 10px; }
.carousel__btn--next { right: 10px; }

.carousel__dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.carousel__dot.active { background: #fff; }

/* ── PROMO STRIP ── */
.promo-strip {
  background: #fff8e1;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  padding: 14px 0;
}

.promo-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.promo-strip__text strong {
  display: block;
  color: var(--gold-dark);
  font-size: 1rem;
  font-weight: 800;
}

.promo-strip__text span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── TRUST BADGES ── */
.badges {
  padding: 24px 0 16px;
  background: transparent;
}

.badges__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 640px) { .badges__grid { grid-template-columns: repeat(2, 1fr); } }

.badge {
  text-align: center;
  padding: 20px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.badge__icon { font-size: 1.8rem; display: block; margin-bottom: 6px; }
.badge strong { display: block; font-size: 0.95rem; color: var(--text); margin-bottom: 2px; }
.badge span { font-size: 0.78rem; color: var(--text-muted); }

/* ── SEO SECTIONS ── */
.seo-sections { background: var(--bg); padding: 16px 0 48px; }

.seo-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.seo-block h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold-dark);
  margin-bottom: 16px;
  border-left: 4px solid var(--gold);
  padding-left: 12px;
}

.seo-block p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.75;
  margin-bottom: 12px;
}

.seo-list, .seo-steps {
  padding-left: 20px;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.75;
}

.seo-list li, .seo-steps li { margin-bottom: 8px; }
.seo-list li strong, .seo-steps li strong { color: var(--text); }

/* ── FAQ ── */
.faq { display: grid; gap: 16px; }

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  background: var(--bg);
}

.faq__item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.faq__item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── SECTION TITLE ── */
.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-dark);
  text-align: center;
  margin-bottom: 32px;
}

/* ── TESTIMONIALS ── */
.testimonials {
  background: var(--white);
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) { .testimonials__grid { grid-template-columns: 1fr; } }

.testimonial {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.testimonial__stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 10px; }
.testimonial p { font-size: 0.9rem; color: #444; line-height: 1.65; margin-bottom: 12px; font-style: italic; }
.testimonial strong { font-size: 0.85rem; color: var(--text-muted); }

/* ── NEWS ── */
.news { background: var(--bg); padding: 48px 0; }

.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) { .news__grid { grid-template-columns: 1fr; } }

.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.news-card:hover { transform: translateY(-3px); }

.news-card__img {
  height: 140px;
  width: 100%;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #f0e8c0, #f0b42940);
}

.news-card__body { padding: 16px; }

.news-card__tag {
  display: inline-block;
  background: var(--gold);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.news-card__body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}
.news-card__body h3 a:hover { color: var(--gold-dark); }
.news-card__body p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 10px; }
.news-card__date { font-size: 0.75rem; color: #aaa; }

/* ── FOOTER ── */
.footer {
  background: #FFD700;
  color: #000;
  padding: 48px 0 24px;
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (max-width: 768px) { .footer__top { grid-template-columns: 1fr; gap: 24px; } }

.footer__brand p { font-size: 0.85rem; color: #333; line-height: 1.6; max-width: 260px; }

.footer__links h4, .footer__contact h4 {
  color: #000;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.footer__links ul { list-style: none; }
.footer__links ul li { margin-bottom: 6px; }
.footer__links ul li a { font-size: 0.85rem; color: #333; }
.footer__links ul li a:hover { color: var(--gold-dark); }

.footer__contact p { font-size: 0.85rem; color: #333; margin-bottom: 4px; }

.footer__payments {
  border-top: 1px solid var(--gold-dark);
  border-bottom: 1px solid var(--gold-dark);
  padding: 16px 0;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #333;
}

.footer__pay-icons { display: flex; gap: 8px; flex-wrap: wrap; }

.pay-badge {
  background: var(--gold-dark);
  border: 1px solid #7a5c00;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.78rem;
  color: #fff;
}

.footer__bottom { text-align: center; font-size: 0.8rem; color: #333; }

/* ── MOBILE POLISH ── */
@media (max-width: 480px) {
  .hero { padding: 24px 0 20px; }
  .hero__title { font-size: 1.3rem; }
  .btn--lg { padding: 10px 20px; font-size: 0.9rem; }
  .seo-block { padding: 20px 16px; }
  .seo-block h2 { font-size: 1.1rem; }
  .footer__payments { flex-direction: column; align-items: flex-start; }
}

/* ── PROMOTIONS PAGE ── */
.promo-section { background: var(--bg); padding: 16px 0 48px; }
.promo-section .section-title { margin-bottom: 24px; }

.promo-grid {
  display: grid;
  gap: 20px;
}
.promo-grid--3 { grid-template-columns: repeat(3, 1fr); }
.promo-grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 768px) {
  .promo-grid--3,
  .promo-grid--2 { grid-template-columns: 1fr; }
}

.promo-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.promo-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }

.promo-card__banner {
  width: 100%;
  aspect-ratio: 894 / 446;
  object-fit: cover;
  display: block;
}
.promo-card__banner--gradient {
  aspect-ratio: 3 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.promo-card__body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.promo-card__amount {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold-dark);
  margin-bottom: 4px;
  line-height: 1;
}

.promo-card__name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.promo-card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.promo-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.promo-tag--new    { background: #e8f5e9; color: #2e7d32; }
.promo-tag--all    { background: #fff8e1; color: #b8860b; }
.promo-tag--vip    { background: #f3e5f5; color: #6a1b9a; }
.promo-tag--daily  { background: #e3f2fd; color: #1565c0; }
.promo-tag--weekly { background: #fce4ec; color: #c62828; }

.promo-card__desc {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 14px;
}

.promo-card__steps {
  list-style: decimal;
  padding-left: 18px;
  font-size: 0.85rem;
  color: #444;
  line-height: 1.75;
  margin-bottom: 14px;
}

.promo-card__tc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.promo-card__body .btn {
  margin-top: auto;
  text-align: center;
}

/* ── GAMES PAGE ── */

/* Category Grid */
.game-category-section {
  background: var(--bg);
  padding: 56px 0;
}
.game-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 600px) {
  .game-category-grid { grid-template-columns: 1fr; }
}
.game-category-card {
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.game-category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(240,180,41,0.18);
}
.game-category-card__icon {
  font-size: 2rem;
  line-height: 1;
}
.game-category-card__name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}
.game-category-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.game-category-card__cta {
  margin-top: 8px;
}

/* Popular Games Grid */
.game-grid-section {
  background: var(--white);
  padding: 56px 0;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .game-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 580px) {
  .game-grid { grid-template-columns: repeat(2, 1fr); }
}
.game-thumb {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--white);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.game-thumb:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.game-thumb__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.game-thumb__label {
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.game-thumb__overlay {
  position: absolute;
  inset: 0;
  background: rgba(240,180,41,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #000;
  opacity: 0;
  transition: opacity 0.2s;
}
.game-thumb:hover .game-thumb__overlay { opacity: 1; }

/* SEO Block */
.games-seo {
  background: var(--bg);
  padding: 56px 0;
}

/* FAQ */
.games-faq {
  background: var(--white);
  padding: 56px 0;
}
.games-faq .faq-item {
  border-bottom: 1px solid var(--border);
}
.games-faq .faq-item:last-child {
  border-bottom: none;
}
.games-faq details > summary {
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.games-faq summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--gold);
  flex-shrink: 0;
}
.games-faq details[open] summary::after { content: '−'; }
.games-faq details p {
  padding: 0 0 16px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── LOGIN PAGE ── */
.login-page {
  background: var(--bg);
  min-height: calc(100vh - 140px);
  padding: 56px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 36px 36px;
  width: 100%;
  max-width: 420px;
}
.login-card__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.login-card__title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-dark);
  text-align: center;
  margin-bottom: 6px;
}
.login-card__sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 28px;
}
.login-form .form-group {
  margin-bottom: 16px;
}
.login-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240,180,41,0.15);
}
.form-input-wrap {
  position: relative;
}
.form-input-wrap .form-input {
  padding-right: 44px;
}
.form-input-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-muted);
  padding: 0;
  line-height: 1;
}
.form-forgot {
  display: block;
  text-align: right;
  font-size: 0.82rem;
  color: var(--gold-dark);
  text-decoration: none;
  margin-top: -8px;
  margin-bottom: 20px;
}
.form-forgot:hover { text-decoration: underline; }
.login-form .btn {
  width: 100%;
  margin-top: 4px;
}
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.login-register {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.login-register a {
  color: var(--gold-dark);
  font-weight: 700;
  text-decoration: none;
}
.login-register a:hover { text-decoration: underline; }
