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

:root {
  --c-ink: #1a1432;
  --c-paper: #fff8ec;
  --c-pink: #ff5fa2;
  --c-yellow: #ffd23f;
  --c-mint: #5fe1b3;
  --c-sky: #6cc4ff;
  --c-purple: #b56bff;
  --c-orange: #ff8a3d;
  --c-cream: #fff3d6;
  --shadow-hard: 6px 6px 0 var(--c-ink);
  --shadow-soft: 4px 4px 0 var(--c-ink);
}

body {
  background:
    radial-gradient(circle at 10% 10%, #ffd23f55 0 60px, transparent 61px),
    radial-gradient(circle at 90% 30%, #ff5fa255 0 80px, transparent 81px),
    radial-gradient(circle at 20% 90%, #6cc4ff55 0 90px, transparent 91px),
    radial-gradient(circle at 80% 80%, #5fe1b355 0 70px, transparent 71px),
    linear-gradient(160deg, #fff3d6, #ffe9f3 60%, #e7f4ff);
  background-attachment: fixed;
  min-height: 100vh;
  font-family: 'Fredoka', 'Baloo 2', 'Lato', sans-serif;
  color: var(--c-ink);
  font-size: 17px;
  line-height: 1.7;
}

h1, h2, h3, .site-logo {
  font-family: 'Fredoka', 'Baloo 2', 'Lora', serif;
  color: var(--c-ink);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

h1 { font-size: 3.2rem; margin-bottom: 22px; text-shadow: 3px 3px 0 var(--c-yellow); }
h2 { font-size: 2.1rem; margin-bottom: 22px; }
h3 { font-size: 1.3rem; margin-bottom: 10px; }

p { margin-bottom: 14px; }

a { color: #c2185b; text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline wavy; text-decoration-thickness: 2px; }

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

/* Header */
.site-header {
  padding: 18px 0;
  background: var(--c-yellow);
  border-bottom: 4px solid var(--c-ink);
  position: relative;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.site-logo {
  font-size: 1.6rem;
  background: var(--c-ink);
  color: var(--c-yellow);
  padding: 6px 16px;
  border-radius: 999px;
  border: 3px solid var(--c-ink);
  transform: rotate(-2deg);
  display: inline-block;
}
.site-logo:hover { text-decoration: none; transform: rotate(2deg) scale(1.05); }
.site-nav { display: flex; gap: 14px; flex-wrap: wrap; }
.site-nav a {
  color: var(--c-ink);
  font-weight: 700;
  background: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  border: 3px solid var(--c-ink);
  transition: transform 0.15s, box-shadow 0.15s;
}
.site-nav a:hover {
  text-decoration: none;
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-soft);
  background: var(--c-pink);
  color: #fff;
}

/* Sections */
section { padding: 80px 0; position: relative; }

/* Hero */
.hero {
  text-align: center;
  background:
    repeating-linear-gradient(45deg, transparent 0 28px, #ffd23f33 28px 30px),
    var(--c-cream);
  border-bottom: 4px solid var(--c-ink);
  padding: 100px 0;
}
.hero-inner { max-width: 820px; margin: 0 auto; }
.hero h1 { font-size: 3.6rem; }
.hero p {
  font-size: 1.15rem;
  background: #fff;
  display: inline-block;
  padding: 14px 22px;
  border: 3px solid var(--c-ink);
  border-radius: 16px;
  box-shadow: var(--shadow-hard);
}

/* About */
.about-inner {
  max-width: 820px;
  margin: 0 auto;
  background: var(--c-mint);
  padding: 36px;
  border: 4px solid var(--c-ink);
  border-radius: 24px;
  box-shadow: var(--shadow-hard);
}

/* Card */
.card {
  background: #fff;
  border: 4px solid var(--c-ink);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow-hard);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--c-ink);
}

/* Catalog */
.catalog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 32px;
}
.game-card { display: flex; flex-direction: column; background: #fff; }
.game-card:nth-child(4n+1) { background: #fff3d6; }
.game-card:nth-child(4n+2) { background: #e7f4ff; }
.game-card:nth-child(4n+3) { background: #ffe1f0; }
.game-card:nth-child(4n+4) { background: #e0fbef; }
.game-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.game-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--c-ink);
  box-shadow: 3px 3px 0 var(--c-ink);
}
.game-title { font-size: 1.25rem; margin-bottom: 4px; }
.developer { font-size: 13px; color: #6a5e7f; font-weight: 600; }
.badge {
  display: inline-block;
  background: var(--c-pink);
  color: #fff;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  border: 2.5px solid var(--c-ink);
  transform: rotate(-2deg);
}
.game-desc { font-size: 15px; margin-bottom: 14px; }
.screenshots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.screenshots img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
  border: 3px solid var(--c-ink);
  box-shadow: 2px 2px 0 var(--c-ink);
}

/* Button */
.btn {
  display: inline-block;
  background: var(--c-pink);
  color: #fff;
  border-radius: 999px;
  padding: 14px 28px;
  border: 3px solid var(--c-ink);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  margin-top: auto;
}
.btn:hover {
  text-decoration: none;
  color: #fff;
  background: var(--c-purple);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--c-ink);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--c-ink);
}
.btn-block { width: 100%; display: block; }

/* Form */
.form-wrap { max-width: 580px; margin: 0 auto; }
.form-card {
  padding: 36px;
  background: var(--c-sky);
}
.form-card h2 { margin-bottom: 8px; }
.form-group { margin-bottom: 16px; }
label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--c-ink); font-weight: 700; }
input[type="text"], input[type="tel"], input[type="email"], textarea {
  width: 100%;
  padding: 12px 16px;
  border: 3px solid var(--c-ink);
  border-radius: 14px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  background: #fff;
  transition: box-shadow 0.15s, transform 0.15s;
}
input:focus, textarea:focus {
  box-shadow: var(--shadow-soft);
  transform: translate(-2px, -2px);
}

/* Checkbox */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  background: #fff;
  padding: 12px 14px;
  border: 3px solid var(--c-ink);
  border-radius: 14px;
}
.form-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: 3px solid var(--c-ink);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  position: relative;
  margin-top: 2px;
  transition: background 0.15s;
}
.form-check input[type="checkbox"]:checked {
  background: var(--c-mint);
}
.form-check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 0px;
  width: 8px;
  height: 14px;
  border: solid var(--c-ink);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.form-check label {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  cursor: pointer;
}
.form-check.error {
  background: #ffe1e1;
  animation: shake 0.4s;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
.success-msg {
  display: none;
  margin-top: 16px;
  padding: 14px;
  background: var(--c-mint);
  border: 3px solid var(--c-ink);
  border-radius: 14px;
  color: var(--c-ink);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}
.success-msg.show { display: block; }

/* Footer */
.site-footer {
  text-align: center;
  color: #fff;
  padding: 40px 0;
  font-size: 14px;
  background: var(--c-ink);
  border-top: 4px solid var(--c-ink);
}
.site-footer a {
  color: var(--c-yellow);
  margin: 0 10px;
  font-weight: 700;
}
.site-footer .muted { color: #b6acce; }

/* Cookie banner */
.cookie-banner {
  background: var(--c-yellow);
  border-bottom: 4px solid var(--c-ink);
  padding: 14px 0;
  font-size: 14px;
  font-weight: 600;
}
.cookie-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner a { color: var(--c-ink); text-decoration: underline; }
.cookie-banner button {
  background: var(--c-ink);
  color: var(--c-yellow);
  border: 3px solid var(--c-ink);
  border-radius: 999px;
  padding: 8px 22px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
}
.cookie-banner button:hover { background: var(--c-pink); color: #fff; }
.cookie-banner.hidden { display: none; }

/* Legal pages */
.page-content { max-width: 800px; margin: 0 auto; background: #fff; padding: 36px; border: 4px solid var(--c-ink); border-radius: 22px; box-shadow: var(--shadow-hard); }
.page-content h2 { margin-top: 28px; }
.page-content ul { margin: 0 0 16px 22px; }
.page-content li { margin-bottom: 6px; }

/* Learning grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 32px;
}
.article-icon {
  width: 48px;
  height: 48px;
  background: var(--c-ink);
  color: var(--c-yellow);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 3px solid var(--c-ink);
  box-shadow: 3px 3px 0 var(--c-pink);
}
.article-icon svg { width: 28px; height: 28px; }
.articles-grid .card:nth-child(6n+1) { background: #fff3d6; }
.articles-grid .card:nth-child(6n+2) { background: #e7f4ff; }
.articles-grid .card:nth-child(6n+3) { background: #ffe1f0; }
.articles-grid .card:nth-child(6n+4) { background: #e0fbef; }
.articles-grid .card:nth-child(6n+5) { background: #f0e1ff; }
.articles-grid .card:nth-child(6n+6) { background: #ffe1d6; }

.muted { color: #6a5e7f; font-size: 14px; }
.section-intro { max-width: 720px; margin: 0 auto 24px; text-align: center; }
.section-intro p { color: #6a5e7f; font-size: 1.05rem; }

.section-title {
  text-align: center;
  margin-bottom: 12px;
}
.section-kicker {
  display: inline-block;
  background: var(--c-purple);
  color: #fff;
  padding: 4px 16px;
  border-radius: 999px;
  border: 3px solid var(--c-ink);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  transform: rotate(-2deg);
}

/* How we choose - steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 32px;
}
.step-card {
  background: #fff;
  border: 4px solid var(--c-ink);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow-hard);
  text-align: center;
  position: relative;
}
.step-card:nth-child(1) { background: var(--c-pink); color: #fff; }
.step-card:nth-child(1) h3 { color: #fff; }
.step-card:nth-child(2) { background: var(--c-yellow); }
.step-card:nth-child(3) { background: var(--c-mint); }
.step-num {
  width: 56px;
  height: 56px;
  background: var(--c-ink);
  color: var(--c-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 auto 14px;
  border: 4px solid var(--c-ink);
  box-shadow: 3px 3px 0 #ffffff80;
}
.step-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  display: block;
}
.step-icon svg { width: 100%; height: 100%; }

/* Categories */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.cat-chip {
  background: #fff;
  border: 4px solid var(--c-ink);
  border-radius: 22px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.cat-chip:hover {
  transform: translate(-3px, -3px) rotate(-1deg);
  box-shadow: 7px 7px 0 var(--c-ink);
}
.cat-chip:nth-child(4n+1) { background: var(--c-sky); }
.cat-chip:nth-child(4n+2) { background: var(--c-pink); color: #fff; }
.cat-chip:nth-child(4n+3) { background: var(--c-yellow); }
.cat-chip:nth-child(4n+4) { background: var(--c-mint); }
.cat-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  display: block;
}
.cat-icon svg { width: 100%; height: 100%; }
.cat-name { font-weight: 700; font-size: 1.05rem; font-family: 'Fredoka', sans-serif; margin-bottom: 4px; }
.cat-count { font-size: 13px; opacity: 0.85; font-weight: 600; }

/* Stats */
.stats-band {
  background: var(--c-ink);
  border-top: 4px solid var(--c-ink);
  border-bottom: 4px solid var(--c-ink);
  padding: 60px 0;
}
.stats-band h2 { color: var(--c-yellow); text-align: center; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.stat {
  background: var(--c-yellow);
  border: 4px solid var(--c-yellow);
  border-radius: 22px;
  padding: 26px 14px;
  text-align: center;
  box-shadow: 6px 6px 0 var(--c-pink);
}
.stat:nth-child(2) { background: var(--c-mint); border-color: var(--c-mint); box-shadow: 6px 6px 0 var(--c-sky); }
.stat:nth-child(3) { background: var(--c-pink); border-color: var(--c-pink); box-shadow: 6px 6px 0 var(--c-yellow); color: #fff; }
.stat:nth-child(4) { background: var(--c-sky); border-color: var(--c-sky); box-shadow: 6px 6px 0 var(--c-mint); }
.stat-num { font-size: 2.8rem; font-weight: 700; font-family: 'Fredoka', sans-serif; line-height: 1; margin-bottom: 6px; color: var(--c-ink); }
.stat-label { font-weight: 700; font-size: 14px; color: var(--c-ink); }

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 32px;
}
.testi {
  background: #fff;
  border: 4px solid var(--c-ink);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow-hard);
  position: relative;
}
.testi:nth-child(2) { background: var(--c-cream); transform: rotate(-1deg); }
.testi:nth-child(1) { transform: rotate(1deg); }
.testi:nth-child(3) { background: #e7f4ff; transform: rotate(-0.5deg); }
.testi-quote { font-size: 15px; margin-bottom: 16px; font-style: italic; }
.testi-quote::before { content: "“"; font-size: 3rem; line-height: 0.6; color: var(--c-pink); margin-right: 4px; vertical-align: -10px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-yellow);
  border: 3px solid var(--c-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
}
.testi-name { font-weight: 700; font-size: 15px; }
.testi-loc { font-size: 13px; color: #6a5e7f; }

/* FAQ */
.faq-list { max-width: 820px; margin: 32px auto 0; display: grid; gap: 16px; }
.faq-item {
  background: #fff;
  border: 4px solid var(--c-ink);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.8rem;
  line-height: 1;
  background: var(--c-yellow);
  color: var(--c-ink);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 3px solid var(--c-ink);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: "−"; background: var(--c-pink); color: #fff; transform: rotate(180deg); }
.faq-item[open] summary { background: var(--c-cream); border-bottom: 4px solid var(--c-ink); }
.faq-answer { padding: 18px 22px; font-size: 15px; }

/* Features list */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.feature {
  background: #fff;
  border: 4px solid var(--c-ink);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow-hard);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--c-yellow);
  border: 3px solid var(--c-ink);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 3px 3px 0 var(--c-ink);
  color: var(--c-ink);
}
.feature-icon svg { width: 32px; height: 32px; }
.feature:nth-child(2) .feature-icon { background: var(--c-pink); color: #fff; }
.feature:nth-child(3) .feature-icon { background: var(--c-mint); }
.feature:nth-child(4) .feature-icon { background: var(--c-sky); }
.feature:nth-child(5) .feature-icon { background: var(--c-purple); color: #fff; }
.feature:nth-child(6) .feature-icon { background: var(--c-orange); color: #fff; }
.feature h3 { margin-bottom: 6px; font-size: 1.1rem; }
.feature p { font-size: 14px; margin-bottom: 0; color: #4a3f63; }

/* Mobile */
@media (max-width: 900px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .cats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  .hero h1 { font-size: 2.4rem; }
  h2 { font-size: 1.6rem; }
  section { padding: 56px 0; }
  .hero { padding: 64px 0; }
  .form-card { padding: 24px; }
  .site-nav { gap: 8px; }
  .site-nav a { padding: 5px 10px; font-size: 14px; }
  .site-header .container { justify-content: center; text-align: center; }
  .about-inner { padding: 24px; }
  .stat-num { font-size: 2rem; }
}
