/* =================================================================
   БАМ! — Colorful Toy Store Template (Bilingual UA/EN)
   Style: Rainbow chaos · cartoon clouds · bubbly buttons · chaotic grid
   ================================================================= */

:root {
  --yellow: #ffd93d;
  --yellow-deep: #ffb627;
  --pink: #ff6b9d;
  --pink-deep: #ff4785;
  --purple: #a06cd5;
  --purple-deep: #7c3aed;
  --blue: #4ecdc4;
  --blue-deep: #2bb3aa;
  --sky: #6ec6ff;
  --green: #95e1a3;
  --green-deep: #4caf50;
  --orange: #ff9a3c;
  --red: #ff5252;
  --cream: #fff9e6;
  --white: #ffffff;
  --text: #2d1b4e;
  --text-soft: #5a4a8a;
  --shadow-bubble: 0 8px 0 rgba(0,0,0,0.12), 0 12px 24px rgba(45, 27, 78, 0.18);
  --shadow-pop: 0 6px 0 rgba(0,0,0,0.15), 0 10px 20px rgba(45, 27, 78, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  background: var(--cream);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ============ ANIMATED BACKGROUND ============ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 217, 61, 0.25), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(255, 107, 157, 0.25), transparent 35%),
    radial-gradient(circle at 90% 80%, rgba(78, 205, 196, 0.25), transparent 30%),
    radial-gradient(circle at 30% 90%, rgba(160, 108, 213, 0.25), transparent 35%),
    radial-gradient(circle at 50% 50%, rgba(149, 225, 163, 0.2), transparent 40%),
    var(--cream);
}

/* Floating cartoon clouds */
.cloud {
  position: fixed;
  z-index: -1;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 100px;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(45, 27, 78, 0.06);
}

.cloud::before, .cloud::after {
  content: '';
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.cloud.c1 {
  width: 100px; height: 36px;
  top: 12%; left: -120px;
  animation: float-cloud 45s linear infinite;
}
.cloud.c1::before { width: 50px; height: 50px; top: -22px; left: 12px; }
.cloud.c1::after { width: 38px; height: 38px; top: -16px; right: 14px; }

.cloud.c2 {
  width: 140px; height: 44px;
  top: 35%; left: -160px;
  animation: float-cloud 60s linear infinite -20s;
}
.cloud.c2::before { width: 64px; height: 64px; top: -28px; left: 20px; }
.cloud.c2::after { width: 48px; height: 48px; top: -22px; right: 22px; }

.cloud.c3 {
  width: 80px; height: 30px;
  top: 70%; left: -100px;
  animation: float-cloud 38s linear infinite -10s;
}
.cloud.c3::before { width: 40px; height: 40px; top: -18px; left: 10px; }
.cloud.c3::after { width: 32px; height: 32px; top: -14px; right: 12px; }

@keyframes float-cloud {
  from { transform: translateX(0); }
  to { transform: translateX(calc(100vw + 200px)); }
}

/* Floating sparkles */
.sparkle {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  font-size: 24px;
  animation: sparkle-float 8s ease-in-out infinite;
}
.sparkle.s1 { top: 20%; right: 8%; color: var(--yellow-deep); animation-delay: 0s; }
.sparkle.s2 { top: 55%; left: 5%; color: var(--pink); animation-delay: -2s; }
.sparkle.s3 { top: 80%; right: 15%; color: var(--purple); animation-delay: -4s; font-size: 32px; }
.sparkle.s4 { top: 40%; right: 30%; color: var(--blue-deep); animation-delay: -6s; font-size: 18px; }

@keyframes sparkle-float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.5; }
  50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

/* ============ TOP STRIP ============ */
.top-strip {
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  color: var(--white);
  padding: 10px 0;
  font-family: 'Baloo 2', cursive;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  letter-spacing: 0.5px;
  overflow: hidden;
  position: relative;
}

.top-strip .scroll {
  display: inline-flex;
  gap: 48px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.top-strip span { display: inline-flex; align-items: center; gap: 8px; }
.top-strip .icon { font-size: 18px; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ HEADER ============ */
header {
  background: var(--white);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(45, 27, 78, 0.08);
  border-bottom: 4px solid var(--yellow);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}

.logo {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 36px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -1px;
  transition: transform 0.3s ease;
}

.logo:hover { transform: scale(1.05) rotate(-2deg); }

.logo .bang {
  background: var(--yellow);
  color: var(--text);
  padding: 2px 10px;
  border-radius: 12px;
  transform: rotate(-5deg);
  display: inline-block;
  box-shadow: 0 4px 0 var(--yellow-deep);
}

.logo .star { color: var(--pink); font-size: 32px; }

.search-wrap {
  display: flex;
  background: var(--cream);
  border: 3px solid var(--text);
  border-radius: 100px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.search-wrap:focus-within { transform: scale(1.02); }

.search-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 22px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  outline: none;
}

.search-wrap input::placeholder { color: var(--text-soft); opacity: 0.7; }

.search-btn {
  background: var(--pink);
  color: var(--white);
  border: none;
  padding: 0 20px;
  cursor: pointer;
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.3s ease;
}

.search-btn:hover { background: var(--pink-deep); }

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

/* Language switcher with flags */
.lang-toggle {
  display: flex;
  background: var(--cream);
  border: 3px solid var(--text);
  border-radius: 100px;
  overflow: hidden;
  padding: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 6px 14px;
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.lang-btn .flag {
  font-size: 18px;
  line-height: 1;
}

.lang-btn.active {
  background: var(--text);
  color: var(--white);
}

.icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--text);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  position: relative;
}

.icon-btn:hover {
  transform: translateY(-3px) rotate(-5deg);
  background: var(--yellow);
}

.icon-btn .count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--pink);
  color: var(--white);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  font-family: 'Baloo 2', cursive;
}

/* ============ HERO ============ */
.hero {
  max-width: 1320px;
  margin: 48px auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

.hero-content { position: relative; z-index: 2; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--text);
  padding: 8px 18px;
  border-radius: 100px;
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: 14px;
  border: 3px solid var(--text);
  box-shadow: 0 4px 0 var(--yellow-deep);
  margin-bottom: 20px;
  transform: rotate(-2deg);
}

.hero-title {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 88px;
  line-height: 0.95;
  letter-spacing: -2px;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-title .word1 { color: var(--pink); display: inline-block; transform: rotate(-3deg); }
.hero-title .word2 { color: var(--purple); display: inline-block; transform: rotate(2deg); }
.hero-title .word3 { color: var(--blue-deep); display: inline-block; transform: rotate(-1deg); }

.hero-title .en {
  display: block;
  font-size: 24px;
  color: var(--text-soft);
  font-weight: 600;
  font-style: italic;
  margin-top: 12px;
  transform: rotate(0deg);
}

.hero-desc {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: 24px;
  max-width: 480px;
}

.hero-desc .en {
  display: block;
  color: var(--text-soft);
  opacity: 0.8;
  font-style: italic;
  font-size: 14px;
  margin-top: 6px;
}

.hero-cta { display: flex; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }

.btn {
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: 18px;
  padding: 18px 32px;
  border-radius: 100px;
  text-decoration: none;
  border: 4px solid var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--pink);
  color: var(--white);
  box-shadow: 0 6px 0 var(--pink-deep), 0 12px 20px rgba(255, 71, 133, 0.3);
}

.btn-primary:hover {
  transform: translateY(3px);
  box-shadow: 0 3px 0 var(--pink-deep), 0 6px 12px rgba(255, 71, 133, 0.4);
}

.btn-secondary {
  background: var(--yellow);
  color: var(--text);
  box-shadow: 0 6px 0 var(--yellow-deep), 0 12px 20px rgba(255, 182, 39, 0.3);
}

.btn-secondary:hover {
  transform: translateY(3px);
  box-shadow: 0 3px 0 var(--yellow-deep), 0 6px 12px rgba(255, 182, 39, 0.4);
}

.hero-stats {
  display: flex;
  gap: 24px;
}

.stat-pill {
  background: var(--white);
  border: 3px solid var(--text);
  border-radius: 100px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 0 rgba(0,0,0,0.12);
}

.stat-pill .emoji {
  font-size: 28px;
  line-height: 1;
}

.stat-pill .value {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
  line-height: 1;
}

.stat-pill .label {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 11px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============ HERO VISUAL ============ */
.hero-visual {
  position: relative;
  height: 480px;
}

.hero-visual-bg {
  position: absolute;
  inset: 20px;
  background: linear-gradient(135deg, var(--sky), var(--purple));
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  border: 4px solid var(--text);
  box-shadow: 0 12px 0 rgba(0,0,0,0.12), 0 20px 40px rgba(45, 27, 78, 0.2);
  overflow: hidden;
}

.hero-visual-bg::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 30px;
  right: 30px;
  height: 12px;
  background: var(--white);
  border-radius: 100px;
  opacity: 0.5;
}

.hero-toy {
  position: absolute;
  font-size: 180px;
  line-height: 1;
  z-index: 2;
  animation: bounce-toy 3s ease-in-out infinite;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2));
}

@keyframes bounce-toy {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
}

.hero-toy.toy1 { top: 30%; left: 50%; transform: translateX(-50%); }

/* Floating mini toys */
.mini-toy {
  position: absolute;
  font-size: 48px;
  z-index: 3;
  animation: float-mini 4s ease-in-out infinite;
}

.mini-toy.m1 { top: 10%; left: -10px; animation-delay: 0s; }
.mini-toy.m2 { top: 15%; right: 0; animation-delay: -1s; }
.mini-toy.m3 { bottom: 15%; left: -10px; animation-delay: -2s; }
.mini-toy.m4 { bottom: 5%; right: 10px; animation-delay: -3s; }

@keyframes float-mini {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(15deg); }
}

/* ============ SECTION HEAD ============ */
.section-title {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 56px;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.section-title .accent {
  color: var(--pink);
  display: inline-block;
  transform: rotate(-2deg);
}

.section-title .accent2 {
  color: var(--blue-deep);
  display: inline-block;
  transform: rotate(2deg);
}

.section-en {
  text-align: center;
  font-family: 'Baloo 2', cursive;
  font-weight: 600;
  font-style: italic;
  font-size: 20px;
  color: var(--text-soft);
  margin-bottom: 40px;
}

/* ============ CHAOTIC CATEGORY GRID ============ */
.categories {
  max-width: 1320px;
  margin: 80px auto;
  padding: 0 32px;
  position: relative;
}

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

.cat-card {
  border-radius: 24px;
  padding: 32px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--white);
  border: 4px solid var(--text);
  box-shadow: 0 8px 0 rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cat-card:nth-child(1) { background: var(--pink); transform: rotate(-2deg); }
.cat-card:nth-child(2) { background: var(--purple); transform: rotate(1deg); margin-top: 20px; }
.cat-card:nth-child(3) { background: var(--blue-deep); transform: rotate(-1deg); }
.cat-card:nth-child(4) { background: var(--orange); transform: rotate(2deg); margin-top: 20px; }
.cat-card:nth-child(5) { background: var(--green-deep); transform: rotate(1deg); }
.cat-card:nth-child(6) { background: var(--red); transform: rotate(-2deg); margin-top: 20px; }
.cat-card:nth-child(7) { background: var(--yellow-deep); color: var(--text); transform: rotate(-1deg); }
.cat-card:nth-child(8) { background: var(--sky); color: var(--text); transform: rotate(2deg); margin-top: 20px; }

.cat-card:hover {
  transform: translateY(-6px) rotate(0deg) scale(1.05);
  box-shadow: 0 14px 0 rgba(0,0,0,0.15), 0 20px 30px rgba(45, 27, 78, 0.2);
}

.cat-emoji {
  font-size: 60px;
  line-height: 1;
  margin-bottom: 12px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.cat-card:hover .cat-emoji { transform: scale(1.2) rotate(15deg); }

.cat-name {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 4px;
  line-height: 1;
}

.cat-en {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-style: italic;
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 8px;
}

.cat-count {
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: 13px;
  background: rgba(255,255,255,0.25);
  padding: 4px 12px;
  border-radius: 100px;
  display: inline-block;
}

/* ============ FEATURED TOYS ============ */
.toys {
  max-width: 1320px;
  margin: 60px auto;
  padding: 0 32px;
}

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

.toy-card {
  background: var(--white);
  border: 4px solid var(--text);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 8px 0 rgba(0,0,0,0.12);
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.toy-card:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 16px 0 rgba(0,0,0,0.12), 0 20px 30px rgba(45, 27, 78, 0.15);
}

.toy-badge {
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--pink);
  color: var(--white);
  padding: 6px 14px;
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 12px;
  border-radius: 100px;
  border: 3px solid var(--text);
  z-index: 2;
  transform: rotate(-5deg);
  letter-spacing: 0.5px;
}

.toy-badge.new { background: var(--green-deep); }
.toy-badge.hot { background: var(--red); }
.toy-badge.sale { background: var(--orange); }

.toy-image-wrap {
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, var(--cream), var(--yellow));
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
  position: relative;
  border: 3px solid var(--text);
}

.toy-image-wrap.b1 { background: linear-gradient(135deg, #ffe1ec, var(--pink)); }
.toy-image-wrap.b2 { background: linear-gradient(135deg, #e1f5fe, var(--sky)); }
.toy-image-wrap.b3 { background: linear-gradient(135deg, #f3e5ff, var(--purple)); }
.toy-image-wrap.b4 { background: linear-gradient(135deg, #e8f5e9, var(--green)); }
.toy-image-wrap.b5 { background: linear-gradient(135deg, #fff3e0, var(--orange)); }
.toy-image-wrap.b6 { background: linear-gradient(135deg, #e0f7fa, var(--blue)); }
.toy-image-wrap.b7 { background: linear-gradient(135deg, #fffde7, var(--yellow)); }
.toy-image-wrap.b8 { background: linear-gradient(135deg, #fce4ec, var(--pink-deep)); }

.toy-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.toy-card:hover .toy-image { transform: scale(1.1) rotate(5deg); }

.toy-age {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: var(--text);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 100px;
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: 11px;
  z-index: 2;
}

.toy-info { padding: 4px 4px 0; }

.toy-cat {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 11px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.toy-name {
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 4px;
}

.toy-name-en {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-style: italic;
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.toy-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  color: var(--text-soft);
}

.stars {
  color: var(--yellow-deep);
  letter-spacing: 1px;
}

.toy-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toy-price {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 24px;
  color: var(--text);
  line-height: 1;
}

.toy-price .cur {
  font-size: 14px;
  color: var(--text-soft);
  margin-right: 2px;
}

.add-btn {
  background: var(--green-deep);
  color: var(--white);
  border: 3px solid var(--text);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  font-weight: 800;
  font-family: 'Baloo 2', cursive;
  box-shadow: 0 4px 0 #2e7d32;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-btn:hover {
  transform: translateY(2px) rotate(90deg);
  box-shadow: 0 2px 0 #2e7d32;
}

/* ============ BIG PROMO BANNER ============ */
.promo {
  max-width: 1320px;
  margin: 80px auto;
  padding: 0 32px;
}

.promo-frame {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border: 5px solid var(--text);
  border-radius: 40px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 0 rgba(0,0,0,0.15), 0 20px 40px rgba(45, 27, 78, 0.2);
}

.promo-frame::before {
  content: '★';
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 80px;
  color: var(--yellow);
  opacity: 0.4;
  animation: spin-slow 12s linear infinite;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.promo-content { position: relative; z-index: 2; }

.promo-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--text);
  padding: 8px 18px;
  border-radius: 100px;
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 14px;
  border: 3px solid var(--text);
  margin-bottom: 20px;
  transform: rotate(-3deg);
}

.promo-title {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 56px;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.promo-title .accent { color: var(--yellow); display: inline-block; transform: rotate(-3deg); }

.promo-en {
  font-family: 'Baloo 2', cursive;
  font-weight: 600;
  font-style: italic;
  font-size: 20px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
}

.promo-desc {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  margin-bottom: 24px;
  max-width: 420px;
}

.promo-visual {
  position: relative;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-toy {
  font-size: 200px;
  line-height: 1;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3));
  animation: bounce-toy 3s ease-in-out infinite;
}

/* ============ AGE GROUPS ============ */
.ages {
  max-width: 1320px;
  margin: 80px auto;
  padding: 0 32px;
}

.age-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.age-card {
  background: var(--white);
  border: 4px solid var(--text);
  border-radius: 24px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 8px 0 rgba(0,0,0,0.12);
  transition: all 0.3s ease;
  cursor: pointer;
}

.age-card:nth-child(1) { transform: rotate(-2deg); }
.age-card:nth-child(2) { transform: rotate(1deg); margin-top: 20px; }
.age-card:nth-child(3) { transform: rotate(-1deg); }
.age-card:nth-child(4) { transform: rotate(2deg); margin-top: 20px; }

.age-card:hover {
  transform: translateY(-6px) rotate(0deg);
}

.age-emoji {
  font-size: 56px;
  margin-bottom: 12px;
  line-height: 1;
}

.age-range {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 26px;
  color: var(--pink);
  line-height: 1;
  margin-bottom: 6px;
}

.age-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

.age-en {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-style: italic;
  font-size: 12px;
  color: var(--text-soft);
}

/* ============ FEATURES ============ */
.features {
  max-width: 1320px;
  margin: 80px auto;
  padding: 0 32px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.feature-card {
  background: var(--white);
  border: 4px solid var(--text);
  border-radius: 24px;
  padding: 32px 24px;
  box-shadow: 0 8px 0 rgba(0,0,0,0.12);
  transition: all 0.3s ease;
  text-align: center;
}

.feature-card:nth-child(1) { background: linear-gradient(135deg, #fff9c4, var(--yellow)); }
.feature-card:nth-child(2) { background: linear-gradient(135deg, #b2dfdb, var(--blue)); }
.feature-card:nth-child(3) { background: linear-gradient(135deg, #f8bbd0, var(--pink)); }

.feature-card:hover {
  transform: translateY(-6px) rotate(-1deg);
}

.feature-icon {
  font-size: 56px;
  margin-bottom: 12px;
  line-height: 1;
}

.feature-title {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1;
}

.feature-en {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-style: italic;
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.feature-desc {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

/* ============ NEWSLETTER ============ */
.newsletter {
  max-width: 1320px;
  margin: 80px auto;
  padding: 0 32px;
}

.newsletter-frame {
  background: linear-gradient(135deg, var(--yellow), var(--orange), var(--pink));
  border: 5px solid var(--text);
  border-radius: 40px;
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 0 rgba(0,0,0,0.15), 0 20px 40px rgba(45, 27, 78, 0.2);
}

.newsletter-frame::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: var(--white);
  opacity: 0.15;
  border-radius: 50%;
}

.newsletter-frame::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: var(--white);
  opacity: 0.15;
  border-radius: 50%;
}

.newsletter-content { position: relative; z-index: 1; max-width: 580px; margin: 0 auto; }

.newsletter-emoji {
  font-size: 60px;
  margin-bottom: 12px;
  line-height: 1;
  animation: bounce-toy 2s ease-in-out infinite;
}

.newsletter h3 {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 44px;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1;
  letter-spacing: -1px;
}

.newsletter h3 .accent { color: var(--text); display: inline-block; transform: rotate(-3deg); }

.newsletter .h3-en {
  font-family: 'Baloo 2', cursive;
  font-weight: 600;
  font-style: italic;
  font-size: 18px;
  color: rgba(255,255,255,0.95);
  margin-bottom: 16px;
}

.newsletter p {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--white);
  margin-bottom: 28px;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  padding: 6px;
  border-radius: 100px;
  border: 4px solid var(--text);
  box-shadow: 0 6px 0 rgba(0,0,0,0.2);
}

.newsletter-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 22px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  outline: none;
}

.newsletter-form input::placeholder { color: var(--text-soft); }

.newsletter-form button {
  background: var(--pink);
  color: var(--white);
  border: none;
  padding: 14px 24px;
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.newsletter-form button:hover { background: var(--pink-deep); }

/* ============ FOOTER ============ */
footer {
  background: var(--text);
  color: var(--white);
  padding: 60px 0 32px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow), var(--green-deep), var(--blue-deep), var(--purple), var(--pink));
  background-size: 200% 100%;
  animation: rainbow 8s linear infinite;
}

@keyframes rainbow {
  from { background-position: 0% 0%; }
  to { background-position: 200% 0%; }
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 2px dashed rgba(255,255,255,0.2);
}

.footer-brand .logo { color: var(--white); margin-bottom: 16px; }
.footer-brand .logo .bang { background: var(--yellow); color: var(--text); }
.footer-brand .logo .star { color: var(--pink); }

.footer-brand p {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  max-width: 320px;
}

.footer-col h4 {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 20px;
  color: var(--yellow);
  margin-bottom: 14px;
  line-height: 1;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-col a:hover { color: var(--pink); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.footer-socials { display: flex; gap: 12px; }

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  background: var(--pink);
  transform: translateY(-3px) rotate(-10deg);
}

/* ============ ANIMATIONS ============ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content > * { animation: fadeIn 0.6s ease backwards; }
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.hero-content > *:nth-child(5) { animation-delay: 0.5s; }
.hero-content > *:nth-child(6) { animation-delay: 0.6s; }

.cat-card, .toy-card, .age-card, .feature-card {
  animation: fadeIn 0.5s ease backwards;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-title { font-size: 64px; }
  .hero-visual { height: 380px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .toy-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-frame { grid-template-columns: 1fr; padding: 40px; }
  .promo-visual { height: 200px; }
  .promo-toy { font-size: 140px; }
  .age-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .top-strip .scroll { font-size: 12px; }
  .header-inner { grid-template-columns: auto 1fr; gap: 12px; padding: 0 20px; }
  .search-wrap { display: none; }
  .logo { font-size: 28px; }
  .lang-btn { padding: 4px 10px; font-size: 11px; }
  .lang-btn .flag { font-size: 14px; }
  .icon-btn { width: 40px; height: 40px; font-size: 18px; }
  .hero { padding: 0 20px; margin: 32px auto; }
  .hero-title { font-size: 44px; }
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .hero-stats { flex-wrap: wrap; gap: 12px; }
  .section-title { font-size: 36px; }
  .section-en { font-size: 16px; margin-bottom: 24px; }
  .categories, .toys, .ages, .features, .newsletter, .promo { padding: 0 20px; }
  .cat-grid, .toy-grid, .age-grid { grid-template-columns: 1fr; }
  .promo-frame { padding: 28px 20px; }
  .promo-title { font-size: 36px; }
  .newsletter-frame { padding: 40px 24px; }
  .newsletter h3 { font-size: 30px; }
  .newsletter-form { flex-direction: column; gap: 8px; }
  .footer-inner { padding: 0 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}
