:root {
  --black: #060608;
  --ink: #11141a;
  --panel: #151923;
  --panel-2: #202631;
  --white: #fffdf7;
  --muted: #c8d0d8;
  --cyan: #28d9ff;
  --pink: #ff4d9a;
  --yellow: #ffd23f;
  --green: #70f060;
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at top left, rgba(40, 217, 255, .18), transparent 28rem),
    radial-gradient(circle at 80% 10%, rgba(255, 77, 154, .18), transparent 32rem),
    var(--black);
  font-family: "Nunito", Arial, sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem clamp(1rem, 3vw, 2.5rem);
  background: rgba(6, 6, 8, .72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: "Baloo 2", cursive;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(40, 217, 255, .5));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: .45rem .8rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, .1);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--pink);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 3px;
  margin: 5px 0;
  border-radius: 99px;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 43vw);
  align-items: center;
  gap: clamp(1rem, 5vw, 4rem);
  padding: 7.8rem clamp(1rem, 5vw, 5.5rem) 4.5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 6, 8, .92), rgba(6, 6, 8, .6) 48%, rgba(6, 6, 8, .88)),
    url("Webes elemek/cat-background.jpg") center/cover;
  opacity: .9;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
}

.paint-mark {
  position: absolute;
  width: 18rem;
  height: 18rem;
  border-radius: 42% 58% 55% 45%;
  filter: blur(4px);
  opacity: .22;
}

.paint-cyan {
  right: 29%;
  top: 18%;
  background: var(--cyan);
}

.paint-pink {
  right: 6%;
  bottom: 10%;
  background: var(--pink);
}

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

.eyebrow {
  margin: 0 0 .75rem;
  color: var(--yellow);
  font-family: "Baloo 2", cursive;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Baloo 2", cursive;
  line-height: .98;
  letter-spacing: 0;
}

h1 {
  max-width: 880px;
  font-size: clamp(4rem, 12vw, 9.4rem);
  text-shadow:
    5px 5px 0 var(--pink),
    -4px -4px 0 rgba(40, 217, 255, .82),
    0 18px 42px rgba(0, 0, 0, .55);
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

.lead {
  max-width: 620px;
  margin: 1.5rem 0 0;
  color: #f1f6fb;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 800;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.15rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 0 rgba(0, 0, 0, .34);
  transform: rotate(-1deg);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px) rotate(1deg);
  outline: none;
}

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

.btn-secondary {
  color: var(--white);
  background: rgba(255, 77, 154, .14);
  border-color: rgba(255, 255, 255, .26);
}

.hero-cat {
  align-self: end;
  justify-self: center;
}

.hero-cat img {
  max-height: min(78vh, 880px);
  width: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 0 25px rgba(40, 217, 255, .42))
    drop-shadow(0 0 32px rgba(255, 77, 154, .34));
  animation: floatCat 4.5s ease-in-out infinite;
}

.hero-ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.1rem;
  display: flex;
  justify-content: center;
  gap: clamp(.4rem, 2vw, 1rem);
  padding: 0 1rem;
  flex-wrap: wrap;
}

.hero-ticker span,
.pill-row span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: .35rem .85rem;
  border: 2px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(6, 6, 8, .66);
  color: var(--white);
  font-family: "Baloo 2", cursive;
  font-weight: 800;
}

.quick-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1180px;
  margin: -2rem auto 0;
  padding: 0 clamp(1rem, 4vw, 2rem);
  position: relative;
  z-index: 3;
}

.quick-cards article,
.program-card {
  min-height: 100%;
  border: 2px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04));
  box-shadow: var(--shadow);
}

.quick-cards article {
  padding: 1.2rem;
}

.quick-cards strong {
  display: block;
  color: var(--yellow);
  font-family: "Baloo 2", cursive;
  font-size: 1.5rem;
  line-height: 1;
}

.quick-cards span {
  display: block;
  margin-top: .45rem;
  color: var(--muted);
  font-weight: 700;
}

.section,
.kid-zone,
.contact {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 2rem);
}

.about,
.kid-zone,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.section-copy p:not(.eyebrow),
.kid-copy p,
.contact p,
.program-card p,
.timeline-list li {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 700;
}

.sticker-board,
.comic-panel {
  position: relative;
  min-height: 430px;
  border: 3px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 77, 154, .28), transparent 16rem),
    radial-gradient(circle at 70% 65%, rgba(40, 217, 255, .25), transparent 18rem),
    var(--panel);
  box-shadow: var(--shadow);
}

.sticker-logo {
  width: min(78%, 430px);
  margin: 3rem auto 0;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, .28));
}

.sticker-note {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .55rem 1rem;
  border: 3px solid var(--black);
  border-radius: 8px;
  color: var(--black);
  font-family: "Baloo 2", cursive;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 7px 7px 0 rgba(0, 0, 0, .35);
}

.note-one {
  top: 1.4rem;
  left: 1.4rem;
  background: var(--yellow);
  transform: rotate(-7deg);
}

.note-two {
  right: 1rem;
  top: 40%;
  background: var(--cyan);
  transform: rotate(6deg);
}

.note-three {
  left: 2rem;
  bottom: 1.3rem;
  background: var(--pink);
  color: var(--white);
  transform: rotate(5deg);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.program-card {
  padding: 1.25rem;
  background: var(--panel);
}

.program-card:nth-child(2n) {
  background: var(--panel-2);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--black);
  font-family: "Baloo 2", cursive;
  font-size: 1.35rem;
  font-weight: 800;
  box-shadow: 5px 5px 0 var(--pink);
}

.kid-zone {
  max-width: none;
  padding-left: max(clamp(1rem, 4vw, 2rem), calc((100vw - 1180px) / 2 + 2rem));
  padding-right: max(clamp(1rem, 4vw, 2rem), calc((100vw - 1180px) / 2 + 2rem));
  background:
    linear-gradient(135deg, rgba(255, 210, 63, .13), rgba(40, 217, 255, .1)),
    #0c1017;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.4rem;
}

.pill-row span:nth-child(1) {
  background: var(--pink);
}

.pill-row span:nth-child(2) {
  background: var(--cyan);
  color: var(--black);
}

.pill-row span:nth-child(3) {
  background: var(--yellow);
  color: var(--black);
}

.pill-row span:nth-child(4) {
  background: var(--green);
  color: var(--black);
}

.comic-panel img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.gallery-section {
  padding-top: clamp(4rem, 7vw, 6rem);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 210px;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border: 3px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
  box-shadow: var(--shadow);
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .22s ease, filter .22s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.05);
  filter: saturate(1.18);
}

.gallery-item:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.gallery-item span {
  position: absolute;
  left: .8rem;
  bottom: .8rem;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: .35rem .8rem;
  border: 2px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: var(--white);
  background: rgba(6, 6, 8, .72);
  font-family: "Baloo 2", cursive;
  font-weight: 800;
}

.timeline-list {
  list-style: none;
  display: grid;
  gap: .9rem;
  margin: 0;
  padding: 0;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border-left: 6px solid var(--pink);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
}

.timeline-list span {
  color: var(--cyan);
  font-family: "Baloo 2", cursive;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.contact {
  margin-bottom: 2rem;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 77, 154, .28), rgba(40, 217, 255, .2)),
    var(--panel);
  box-shadow: var(--shadow);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 2rem 1rem 3rem;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.site-footer img {
  width: 38px;
  height: 38px;
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-left: .35rem;
  padding: .2rem .7rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: var(--yellow);
  background: rgba(255, 255, 255, .06);
}

.lightbox {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 4.5rem 1rem 1rem;
  background: rgba(0, 0, 0, .86);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 86vh;
  border: 3px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  object-fit: contain;
  box-shadow: var(--shadow);
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  color: var(--white);
  background: var(--pink);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-nav {
  top: 50%;
  width: 56px;
  height: 56px;
  background: rgba(40, 217, 255, .86);
  color: var(--black);
  font-size: 3rem;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.lightbox-counter {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: .35rem .85rem;
  border: 2px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: var(--white);
  background: rgba(6, 6, 8, .76);
  font-family: "Baloo 2", cursive;
  font-weight: 800;
  transform: translateX(-50%);
}

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

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 7rem;
    text-align: center;
  }

  .hero-content {
    justify-self: center;
  }

  .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-cat {
    margin-top: -2rem;
  }

  .hero-cat img {
    max-height: 56vh;
  }

  .quick-cards,
  .program-grid,
  .gallery-grid,
  .about,
  .kid-zone,
  .contact {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    inset: 69px 0 auto 0;
    display: grid;
    gap: .5rem;
    padding: 1rem;
    background: rgba(6, 6, 8, .95);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    transform: translateY(-130%);
    transition: transform .2s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav a {
    justify-content: center;
    background: rgba(255, 255, 255, .08);
  }

  .hero {
    min-height: auto;
    padding-bottom: 6.3rem;
  }

  h1 {
    font-size: clamp(3.3rem, 18vw, 5.4rem);
    text-shadow:
      3px 3px 0 var(--pink),
      -2px -2px 0 rgba(40, 217, 255, .82),
      0 14px 30px rgba(0, 0, 0, .55);
  }

  .hero-cat img {
    max-height: 500px;
  }

  .quick-cards,
  .program-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-auto-rows: 240px;
  }

  .gallery-item.tall,
  .gallery-item.wide {
    grid-column: auto;
    grid-row: auto;
  }

  .lightbox {
    padding-left: .75rem;
    padding-right: .75rem;
  }

  .lightbox-nav {
    top: auto;
    bottom: 1rem;
    width: 48px;
    height: 48px;
    font-size: 2.6rem;
    transform: none;
  }

  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    right: 1rem;
  }

  .sticker-board,
  .comic-panel,
  .comic-panel img {
    min-height: 340px;
  }

  .timeline-list li {
    grid-template-columns: 1fr;
    gap: .35rem;
  }

  .contact {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-cat img {
    animation: none;
  }

  .site-nav {
    transition: none;
  }
}
