/* Delikatnie tęczowy, ale spokojny motyw dla Rodzinnej Akademii Zabawy */

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

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2933;
  background:
    radial-gradient(circle at top left, rgba(254, 243, 199, 0.9) 0, transparent 55%),
    radial-gradient(circle at bottom right, rgba(191, 219, 254, 0.9) 0, transparent 60%),
    radial-gradient(circle at top right, rgba(244, 219, 255, 0.7) 0, transparent 60%);
  background-color: #f4f5fb;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Baloo 2", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Layout */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-narrow {
  max-width: 760px;
}

.section {
  padding: 3.5rem 0;
}

.section-light {
  padding: 3.5rem 0;
}

.section-soft {
  padding: 3.5rem 0;
  background-color: rgba(255, 255, 255, 0.9);
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(6px);
}

.section-intro {
  max-width: 720px;
  margin-bottom: 2rem;
  color: #4b5563;
}

/* Header & navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #e2e8f0;
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 0.25rem;
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background-color: #4b5563;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.menu-toggle span + span {
  margin-top: 4px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}


.logo a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #111827;
}

.logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb7185, #f97316);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Baloo 2", sans-serif;
  font-size: 0.9rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  line-height: 1.2;
}

.logo-text span:last-child {
  color: #2563eb;
  font-size: 0.9rem;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-size: 0.93rem;
  align-items: center;
}

.main-nav > a,
.nav-link {
  color: #4b5563;
  padding: 0.3rem 0;
  background: none;
  font: inherit;
}


.main-nav > a.active,
.main-nav > a:hover,
.nav-link:hover {
  color: #111827;
}


.nav-item {
  position: relative;
}

.nav-link {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link::after {
  content: "▾";
  font-size: 0.7rem;
  color: #6b7280;
}

.nav-dropdown {
  position: absolute;
  top: 120%;
  left: 0;
  min-width: 260px;
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.18);
  padding: 0.9rem 1rem;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.nav-dropdown-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.nav-dropdown-col {
  font-size: 0.86rem;
}

.nav-dropdown-title {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin-bottom: 0.4rem;
}

.nav-dropdown a {
  display: block;
  padding: 0.25rem 0;
  color: #374151;
}

.nav-dropdown a:hover {
  color: #111827;
  text-decoration: none;
}

.nav-item.nav-has-dropdown:hover .nav-dropdown,
.nav-item.nav-has-dropdown.nav-open .nav-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Hero */

.hero {
  padding: 3.5rem 0 2.8rem;
  position: relative;
}

.hero-bg {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.5;
  z-index: -1;
}

.hero-bg-1 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, #fee2e2, #fecaca);
  top: -60px;
  left: -40px;
}

.hero-bg-2 {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, #bfdbfe, #93c5fd);
  bottom: -40px;
  right: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1rem;
  color: #374151;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-meta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.83rem;
  color: #6b7280;
}

.hero-meta span {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background-color: rgba(249, 250, 251, 0.9);
}

.card-hero {
  background: linear-gradient(135deg, #ffffff, #fef3c7);
  position: relative;
  overflow: hidden;
}

.hero-avatars {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fee2e2;
  font-size: 1.3rem;
}

.avatar-child {
  background-color: #dbeafe;
}

.card-hero h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
}

.card-hero p {
  font-size: 0.94rem;
  color: #4b5563;
}

.card-hero ul {
  margin-top: 0.6rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: #4b5563;
}

/* Grid */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.categories-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

/* Cards */

.card {
  background-color: rgba(255, 255, 255, 0.96);
  border-radius: 1.4rem;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
  position: relative;
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.category-photo-frame {
  border-radius: 1.2rem;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
  background-color: #ffffff;
  aspect-ratio: 4 / 3;
}

.category-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-body h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.category-body p {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 0.93rem;
  color: #374151;
}

/* Pastel tła dla kategorii – delikatne przejścia */

.category-card-emocje {
  background: linear-gradient(145deg, rgba(254, 249, 195, 0.9), rgba(254, 226, 226, 0.9));
}

.category-card-logiczne {
  background: linear-gradient(145deg, rgba(219, 234, 254, 0.95), rgba(191, 219, 254, 0.95));
}

.category-card-wiez {
  background: linear-gradient(145deg, rgba(254, 226, 226, 0.95), rgba(254, 249, 195, 0.9));
}

.category-card-ruch {
  background: linear-gradient(145deg, rgba(220, 252, 231, 0.95), rgba(191, 219, 254, 0.9));
}

.category-card-kreatywnosc {
  background: linear-gradient(145deg, rgba(250, 232, 255, 0.95), rgba(219, 234, 254, 0.9));
}

.category-card-koncentracja {
  background: linear-gradient(145deg, rgba(219, 234, 254, 0.95), rgba(248, 250, 252, 0.95));
}

.category-card-spoleczne {
  background: linear-gradient(145deg, rgba(254, 243, 199, 0.95), rgba(254, 249, 195, 0.95));
}

.category-card-matematyka {
  background: linear-gradient(145deg, rgba(221, 214, 254, 0.95), rgba(219, 234, 254, 0.9));
}

.product-card h3 {
  margin-top: 0.4rem;
  margin-bottom: 0.3rem;
}

.product-card p {
  margin-top: 0;
  font-size: 0.95rem;
}

.product-card .price {
  font-weight: 700;
  margin-top: 0.7rem;
  margin-bottom: 0.8rem;
  color: #111827;
}

/* Pills */

.product-pill {
  display: inline-flex;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background-color: #eff6ff;
  color: #1d4ed8;
}

.product-pill-warm {
  background-color: #fee2e2;
  color: #b91c1c;
}

.product-pill-cool {
  background-color: #e0f2fe;
  color: #0369a1;
}

.product-pill-soft {
  background-color: #fef3c7;
  color: #92400e;
}

/* Post cards */

.post-card .post-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background-color: #eff6ff;
  color: #1d4ed8;
  margin-bottom: 0.4rem;
}

.post-tag-relacja {
  background-color: #fee2e2;
  color: #b91c1c;
}

.post-tag-zabawa {
  background-color: #dcfce7;
  color: #166534;
}

.post-card h3,
.post-card h2 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.post-card p {
  font-size: 0.95rem;
  color: #4b5563;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  font-family: "Nunito", sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #6d28d9);
  text-decoration: none;
}

.btn-ghost {
  background-color: #ffffff;
  color: #111827;
  border: 1px solid #e5e7eb;
}

.btn-ghost:hover {
  background-color: #f9fafb;
  text-decoration: none;
}

.btn-small {
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
}

.btn-large {
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
}

.btn.disabled {
  opacity: 0.6;
  cursor: default;
}

/* Links */

.link-inline {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Newsletter */

/* Cała sekcja newslettera w jednej kolumnie:
   najpierw tekst + checklista, POD spodem kafelek z formularzem */
.newsletter-inner {
  display: block;
}

/* Odstęp między checklistą a formularzem MailerLite */
.newsletter-inner .ml-form-embedContainer {
  margin-top: 1.75rem;
}

/* Kafelek formularza – jak w demie */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 360px;
  background-color: #ffffff;
  padding: 1.1rem 1.2rem;
  border-radius: 1.1rem;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
}

.newsletter-form input[type="email"] {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  font-size: 0.95rem;
}

/* Mała szara notatka pod sekcją (opcjonalna) */
.newsletter-note {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.75rem;
}

/* Lista z zielonymi checkboxami pod tekstem */
.newsletter-list {
  list-style: none;
  padding-left: 0;
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.newsletter-list li + li {
  margin-top: 0.2rem;
}

/* Forms */

.contact-form .form-row {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 0.9rem;
  border: 1px solid #cbd5e1;
  font-size: 0.95rem;
  font-family: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

/* Shop navigation */

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 2rem;
}

.category-nav a {
  font-size: 0.85rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background-color: rgba(229, 231, 235, 0.9);
  color: #374151;
}

.category-nav a:hover {
  background-color: #d1d5db;
  text-decoration: none;
}

.shop-section {
  margin-top: 2.5rem;
}

.shop-section h2 {
  margin-bottom: 1rem;
}

/* Product page extras */

.price-large {
  font-size: 1.4rem;
  margin-top: 0.6rem;
  font-weight: 700;
}

/* Back to categories */

.back-categories {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background-color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  color: #4b5563;
  margin-bottom: 1.1rem;
}

.back-categories:hover {
  text-decoration: none;
  background-color: #f9fafb;
}

.back-categories-icon {
  display: grid;
  grid-template-columns: repeat(2, 6px);
  grid-template-rows: repeat(2, 6px);
  gap: 3px;
}

.back-categories-icon span {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background-color: #9ca3af;
}

/* Typography */

h1 {
  font-size: 1.9rem;
}

h2 {
  font-size: 1.35rem;
  margin-top: 1.8rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.05rem;
  margin-top: 1.4rem;
  margin-bottom: 0.4rem;
}

.lead {
  font-size: 1rem;
  color: #4b5563;
}

blockquote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid #fbbf24;
  color: #4b5563;
  font-style: italic;
}

.post-meta {
  font-size: 0.85rem;
  color: #6b7280;
}

/* Footer */

.site-footer {
  border-top: 1px solid #e2e8f0;
  padding: 1.5rem 0;
  background-color: rgba(255, 255, 255, 0.96);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: #4b5563;
}

/* Helpers */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .site-header .container {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.75rem 1.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.18);
    margin-top: 0;
    z-index: 30;
  }

  .main-nav.main-nav-open {
    display: flex;
  }

  .main-nav > a,
  .nav-link {
    padding: 0.25rem 0;
    border-bottom-width: 0;
  }

  .nav-item.nav-has-dropdown .nav-dropdown {
    position: static;
    margin-top: 0.25rem;
    box-shadow: none;
    padding-left: 0;
  }

  .nav-dropdown-inner {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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


/* Tęczowe podkreślenie w menu i podmenu */
.main-nav > a,
.nav-link,
.nav-dropdown a {
  position: relative;
  text-decoration: none;
}

.main-nav > a::after,
.nav-link::after,
.nav-dropdown a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #a5b4fc, #fbcfe8);
  transition: width 0.25s ease-out;
}

.main-nav > a:hover::after,
.nav-link:hover::after,
.nav-dropdown a:hover::after,
.main-nav > a.active::after {
  width: 100%;
}



/* Ustawienie layoutu formularza newslettera */

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Pole e-mail – wygląd jak w oryginale */
.newsletter-form input[type="email"] {
  width: 100%;
  padding: 14px 18px;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 16px;
  font-family: inherit;
  color: #111827;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

/* Placeholder */
.newsletter-form input[type="email"]::placeholder {
  color: #9ca3af;
}

/* Focus */
.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

/* Przycisk – gradientowy „żelek” jak na makiecie */
.newsletter-btn {
  width: 100%;
  padding: 14px 24px;
  border-radius: 9999px;
  border: none;
  background-image: linear-gradient(90deg, #2563eb, #7c3aed);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.45);
  transition: transform 0.1s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

/* Hover/active – lekkie „życie” jak w nowoczesnych CTA */
.newsletter-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 18px 48px rgba(37, 99, 235, 0.55);
}

.newsletter-btn:active {
  transform: translateY(0);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}

/* Wyrównujemy szerokości dwóch kolumn w sekcji newslettera:
   lewa = tekst, prawa = formularz */
.newsletter-inner > div {
  flex: 1 1 0;
}

/* Tekst informacyjny pod spodem – na całą szerokość */
.newsletter-note {
  font-size: 0.8rem;
  color: #6b7280;
  flex-basis: 100%;
  margin-top: 0.75rem;
}