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

:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-accent: #f0fdf4;
  --bg-light: #f1f5f9;
  --accent: #16a34a;
  --accent-hover: #15803d;
  --accent-light: #dcfce7;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --white: #ffffff;
  --dark: #0f172a;
  --border: #e2e8f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-hover: 0 12px 32px rgba(0,0,0,0.1);
  --transition: 0.3s ease;
  --header-h: 72px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

ul {
  list-style: none;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  line-height: 1.4;
  gap: 8px;
}

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

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.header__logo {
  text-decoration: none;
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.logo-accent {
  color: var(--accent);
}

.header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.header__cta {
  flex-shrink: 0;
}

/* Burger */
.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1100;
}

.header__burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--dark);
  transition: all var(--transition);
  border-radius: 2px;
}

.header__burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
}

.header__burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===== HERO - SPLIT LAYOUT ===== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 50%, #ecfdf5 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--dark);
}

.text-accent {
  color: var(--accent);
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
}

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

.hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.hero__card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  color: var(--accent);
  transition: transform var(--transition), box-shadow var(--transition);
}

.hero__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.hero__card span {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.hero__card--1 { transform: translateX(0); }
.hero__card--2 { transform: translateX(30px); }
.hero__card--3 { transform: translateX(10px); }
.hero__card--1:hover { transform: translateX(0) translateY(-2px); }
.hero__card--2:hover { transform: translateX(30px) translateY(-2px); }
.hero__card--3:hover { transform: translateX(10px) translateY(-2px); }

/* ===== STATS BAR ===== */
.stats {
  padding: 0;
  margin-top: -40px;
  position: relative;
  z-index: 10;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
}

.stats__item {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stats__item:last-child {
  border-right: none;
}

.stats__number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.stats__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== SECTIONS ===== */
.section {
  padding: 90px 0;
}

.section--accent {
  background: var(--bg-accent);
}

.section--light {
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.section__title--left {
  text-align: left;
}

.section__subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ===== GAMES - ASYMMETRIC ===== */
.games-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.game-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.game-card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #f0fdf4, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.game-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.game-card__img::after {
  content: attr(data-placeholder);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  padding: 10px;
  position: absolute;
}

.game-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  z-index: 2;
}

.game-card--featured {
  grid-row: 1 / -1;
}

.game-card--featured .game-card__img {
  aspect-ratio: auto;
  flex: 1;
  min-height: 200px;
}

.game-card--featured .game-card__info {
  padding: 24px;
}

.game-card--featured h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.game-card__info {
  padding: 16px;
}

.game-card__info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--dark);
}

.game-card__desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.game-card__provider {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.games-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.game-card--compact {
  display: grid;
  grid-template-columns: 140px 1fr;
}

.game-card--compact .game-card__img {
  aspect-ratio: 1;
  min-height: 0;
}

/* ===== ABOUT - TWO COLUMN ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 16px;
  margin-top: 16px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 12px;
}

.feature-card__text h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.feature-card__text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ===== REVIEWS - ASYMMETRIC ===== */
.reviews-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}

.review-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.review-card--featured {
  padding: 36px;
  background: var(--dark);
  border-color: var(--dark);
}

.review-card--featured .review-card__text {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
}

.review-card--featured .review-card__author strong {
  color: var(--white);
}

.review-card--featured .review-card__author span {
  color: rgba(255,255,255,0.5);
}

.review-card__stars {
  color: #f59e0b;
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}

.review-card__text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.7;
  border: none;
  padding: 0;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.review-card--featured .review-card__avatar {
  background: rgba(22, 163, 74, 0.2);
}

.review-card__author strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.95rem;
}

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

.reviews-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== FAQ - TWO COLUMN ===== */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.faq-intro p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 16px 0 24px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item__question {
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  margin-left: 16px;
  width: 24px;
  text-align: center;
}

.faq-item[open] .faq-item__question::after {
  content: '\2212';
}

.faq-item__answer {
  padding: 0 0 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== CONTACT - SPLIT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-info p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 16px 0 28px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: color var(--transition);
}

.contact-detail:hover {
  color: var(--accent);
}

.contact-detail svg {
  color: var(--accent);
  flex-shrink: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  align-self: flex-start;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 30px;
}

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

.footer__brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
}

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

.footer__col h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--white);
  font-weight: 600;
}

.footer__col ul li {
  margin-bottom: 10px;
}

.footer__col ul a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer__col ul a:hover {
  color: var(--accent);
}

.footer__bottom {
  border-top: 1px solid #334155;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer__age {
  color: var(--accent) !important;
  font-weight: 600;
}

/* ===== LEGAL PAGES ===== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.legal-content > p:first-of-type {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--dark);
}

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.legal-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content ul li {
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-size: 0.95rem;
  list-style: disc;
}

/* ===== COOKIE MODAL ===== */
.cookie-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  border-top: 1px solid var(--border);
  z-index: 2000;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.1);
}

.cookie-modal.active {
  transform: translateY(0);
}

.cookie-modal__content {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-modal__content h3 {
  display: none;
}

.cookie-modal__content p {
  flex: 1;
  color: var(--text-secondary);
  font-size: 0.9rem;
  min-width: 200px;
}

.cookie-modal__content p a {
  text-decoration: underline;
}

.cookie-modal__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__visual {
    padding: 0;
  }

  .hero__card--2 { transform: translateX(0); }
  .hero__card--3 { transform: translateX(0); }
  .hero__card--2:hover { transform: translateY(-2px); }
  .hero__card--3:hover { transform: translateY(-2px); }

  .games-layout {
    grid-template-columns: 1fr;
  }

  .game-card--featured {
    grid-row: auto;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .reviews-layout {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .header__burger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--white);
    border-left: 1px solid var(--border);
    padding: 100px 30px 40px;
    transition: right var(--transition);
    z-index: 1050;
    justify-content: flex-start;
  }

  .header__nav.active {
    right: 0;
  }

  .header__cta {
    display: none;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    display: block;
    padding: 14px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-link::after {
    display: none;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero__visual {
    display: none;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats__item:nth-child(2) {
    border-right: none;
  }

  .stats__item:nth-child(3),
  .stats__item:nth-child(4) {
    border-top: 1px solid var(--border);
  }

  .game-card--compact {
    grid-template-columns: 100px 1fr;
  }

  .section {
    padding: 60px 0;
  }

  .footer__links {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .contact-form {
    padding: 24px;
  }

  .contact-form .btn {
    width: 100%;
  }

  .cookie-modal__content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-modal__actions {
    width: 100%;
    flex-direction: column;
  }

  .cookie-modal__actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.8rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .section__title {
    font-size: 1.5rem;
  }

  .stats {
    margin-top: -20px;
  }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
  }

  .game-card--compact {
    grid-template-columns: 1fr;
  }

  .game-card--compact .game-card__img {
    aspect-ratio: 16 / 10;
  }
}