/* ============================================================
   RAJZTERMINÁTOR — Pedro karikaturista
   Képregény design-rendszer. Készítette: DevFlow, 2026.
   ============================================================ */

@layer reset, tokens, base, layout, components, utilities;

/* Skip link – akadálymentesítés */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--ink);
  color: var(--yellow);
  padding: 0.6rem 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 12px 0;
}
.skip-link:focus {
  left: 0;
}

:root {
  --yellow: #ffd23f;
  --yellow-deep: #ffc31e;
  --ink: #141210;
  --white: #fffdf7;
  --red: #e6332a;
  --blue: #2364d2;
  --font-display: "Bangers", "Impact", sans-serif;
  --font-body: "Baloo 2", "Segoe UI", system-ui, sans-serif;
  --wobble: 255px 18px 225px 18px/18px 225px 18px 255px;
  --wobble2: 18px 225px 18px 255px/255px 18px 225px 18px;
  --container: 66rem;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--yellow);
  background-image: radial-gradient(
    rgba(20, 18, 16, 0.13) 1.6px,
    transparent 1.6px
  );
  background-size: 16px 16px;
  line-height: 1.6;
  font-size: 1.05rem;
}
img {
  max-width: 100%;
  display: block;
}
a:focus-visible,
button:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 3px;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Tipográfia ---------- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 0.98;
}
h1 {
  font-size: clamp(2.8rem, 10vw, 5.6rem);
}
h2 {
  font-size: clamp(2rem, 6vw, 3.4rem);
}
h3 {
  font-size: clamp(1.5rem, 4vw, 2rem);
}
.outline-text {
  color: var(--yellow);
  -webkit-text-stroke: 2.5px var(--ink);
  text-shadow: 5px 5px 0 var(--ink);
}
.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  font-weight: 600;
}
.kicker {
  display: inline-block;
  font-weight: 700;
  background: var(--ink);
  color: var(--yellow);
  padding: 0.25rem 1rem;
  border-radius: var(--wobble2);
  transform: rotate(-2deg);
  margin-bottom: 1rem;
}

/* ---------- Fejléc ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 4px solid var(--ink);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}
.brand span {
  color: var(--red);
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav a {
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
}
.nav a:hover {
  color: var(--red);
}
.nav a[aria-current="page"] {
  color: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}
.nav-toggle {
  display: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: var(--wobble);
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
}
@media (max-width: 780px) {
  .nav-toggle {
    display: inline-block;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 4px solid var(--ink);
    padding: 0.5rem 1.25rem 1.25rem;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 0.8rem 0;
    border-bottom: 2px dashed var(--ink);
    font-size: 1.15rem;
  }
  .nav a[aria-current="page"] {
    text-decoration: none;
  }
  .nav .btn {
    margin-top: 1rem;
    text-align: center;
  }
}

/* ---------- Gombok ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--wobble);
  padding: 0.55rem 1.5rem 0.65rem;
  box-shadow: 5px 5px 0 var(--ink);
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}
.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}
.btn-red {
  background: var(--red);
  color: var(--white);
}
.btn-blue {
  background: var(--blue);
  color: var(--white);
}

/* ---------- Hero ---------- */
.hero {
  padding: 3.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.hero h1 {
  transform: rotate(-1.5deg);
  margin-bottom: 1.2rem;
}
.hero .lead {
  max-width: 34rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-top: 2rem;
}
.hero-media {
  position: relative;
}

/* Panelkeret a képeknek */
.panel-frame {
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: var(--wobble);
  padding: 0.75rem;
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(2deg);
  position: relative;
}
.panel-frame.tilt-left {
  transform: rotate(-2deg);
}
.panel-frame img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Fotoról galéria átvezető thumbnail */
.fotorol-thumb {
  display: inline-block;
  max-width: 280px;
  width: 100%;
  margin: 1.4rem auto 0;
  transform: rotate(-2deg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.fotorol-thumb:hover,
.fotorol-thumb:focus-visible {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 10px 10px 0 var(--ink);
}

/* Szövegbuborék */
.bubble {
  position: relative;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 30px;
  padding: 0.8rem 1.2rem;
  font-weight: 700;
  display: inline-block;
  box-shadow: 4px 4px 0 var(--ink);
}
.bubble::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 14%;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 16px solid transparent;
  border-top: 18px solid var(--ink);
}
.bubble::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: calc(14% + 3px);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 12px solid transparent;
  border-top: 14px solid var(--white);
  z-index: 1;
}
.hero-bubble {
  position: absolute;
  top: -26px;
  right: 6%;
  transform: rotate(3deg);
  z-index: 2;
}

/* Csillagmatrica */
.burst {
  position: absolute;
  bottom: -22px;
  left: -18px;
  width: 118px;
  height: 118px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  clip-path: polygon(
    50% 0%,
    61% 12%,
    76% 5%,
    79% 21%,
    95% 22%,
    89% 37%,
    100% 50%,
    89% 63%,
    95% 78%,
    79% 79%,
    76% 95%,
    61% 88%,
    50% 100%,
    39% 88%,
    24% 95%,
    21% 79%,
    5% 78%,
    11% 63%,
    0% 50%,
    11% 37%,
    5% 22%,
    21% 21%,
    24% 5%,
    39% 12%
  );
  transform: rotate(-10deg);
  line-height: 1.05;
  padding: 1rem;
  z-index: 2;
}

/* ---------- Szekciók / képregénycsík ---------- */
.strip {
  padding: 3.5rem 0 4rem;
}
.strip-title {
  text-align: center;
  margin-bottom: 2.5rem;
  transform: rotate(-1deg);
}
.strip-title h1,
.strip-title h2 {
  display: inline-block;
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: var(--wobble2);
  padding: 0.5rem 2rem 0.7rem;
  box-shadow: 6px 6px 0 var(--ink);
  font-size: clamp(2rem, 6vw, 3.4rem);
}
.strip-intro {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.strip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 860px) {
  .strip-grid {
    grid-template-columns: 1fr;
  }
}

.comic-panel {
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: var(--wobble);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 1.4rem 1.4rem 1.8rem;
  position: relative;
}
.comic-panel:nth-child(odd) {
  transform: rotate(-1deg);
}
.comic-panel:nth-child(even) {
  transform: rotate(1deg);
}
.panel-no {
  position: absolute;
  top: -20px;
  left: -14px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  background: var(--blue);
  color: var(--white);
  border: 3px solid var(--ink);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-8deg);
}
.comic-panel img {
  width: 100%;
  height: auto;
  border: 3px solid var(--ink);
  border-radius: 14px;
  margin-bottom: 1.1rem;
}
.comic-panel h2,
.comic-panel h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
}
.comic-panel h2 em,
.comic-panel h3 em {
  font-style: normal;
  color: var(--red);
}
.comic-panel ul {
  list-style: none;
  margin-top: 0.6rem;
}
.comic-panel li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.comic-panel li::before {
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--red);
}
.comic-panel p {
  font-weight: 600;
}
.comic-panel .btn {
  margin-top: 1.1rem;
}
.panel-wide {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  transform: rotate(0) !important;
}
@media (max-width: 860px) {
  .panel-wide {
    grid-template-columns: 1fr;
  }
}

/* Címkék */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}
.tags span {
  font-weight: 700;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: var(--wobble2);
  padding: 0.25rem 1rem;
}
.tags span:nth-child(odd) {
  transform: rotate(-2deg);
}
.tags span:nth-child(even) {
  transform: rotate(2deg);
}

/* ---------- Utazó / országos jegyzet sáv ---------- */
.travel-note {
  padding: 3rem 0 1rem;
  text-align: center;
}
.travel-note .container {
  max-width: 48rem;
}
.travel-note-card {
  background: var(--yellow);
  border: 4px solid var(--ink);
  border-radius: var(--wobble2);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 1.8rem 1.6rem;
  transform: rotate(-1deg);
  font-weight: 600;
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  line-height: 1.5;
}
.travel-note-card p {
  margin: 0;
}
.travel-note-card .travel-icons {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.4rem;
}

/* ---------- CTA sáv ---------- */
.cta-band {
  background: var(--ink);
  color: var(--white);
  padding: 4rem 0;
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  background-image: radial-gradient(
    rgba(255, 210, 63, 0.16) 1.6px,
    transparent 1.6px
  );
  background-size: 16px 16px;
  text-align: center;
}
.cta-band h2 {
  color: var(--yellow);
  transform: rotate(-1deg);
  margin-bottom: 1rem;
}
.cta-band p {
  max-width: 36rem;
  margin: 0 auto;
  font-weight: 600;
}
.cta-band .hero-actions {
  justify-content: center;
  margin-top: 2.2rem;
}

/* ---------- Kapcsolat ---------- */
.contact {
  padding: 4rem 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2.2rem;
}
@media (max-width: 760px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.contact-card {
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: var(--wobble);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 1.8rem;
  transform: rotate(-1deg);
}
.contact-card:last-child {
  transform: rotate(1deg);
}
.contact-card h2,
.contact-card h3 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
}
.contact-big {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  letter-spacing: 0.03em;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  border-bottom: 4px solid var(--red);
  word-break: break-word;
}
.contact-big:hover {
  color: var(--red);
}
.contact-card p.small {
  font-size: 0.95rem;
  margin-top: 0.6rem;
}

/* ---------- Social ---------- */
.socials {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}
.socials a {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--wobble2);
  padding: 0.3rem 1rem 0.4rem;
  box-shadow: 3px 3px 0 var(--ink);
}
.socials a:hover {
  background: var(--red);
  color: var(--white);
}

/* ---------- Lábléc ---------- */
.site-footer {
  background: var(--white);
  border-top: 4px solid var(--ink);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer p {
  font-weight: 600;
}
.site-footer a {
  color: inherit;
}
.footer-nav {
  list-style: none;
}
.footer-nav li {
  margin-bottom: 0.4rem;
}
.footer-nav a {
  text-decoration: none;
  font-weight: 700;
}
.footer-nav a:hover {
  color: var(--red);
}
.footer-legal {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 2px dashed var(--ink);
  font-size: 0.9rem;
}

/* ---------- Belépő animáció ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity 0.45s ease,
      transform 0.45s ease;
  }
  .reveal.in {
    opacity: 1;
    transform: none;
  }
  .comic-panel.reveal.in:nth-child(odd) {
    transform: rotate(-1deg);
  }
  .comic-panel.reveal.in:nth-child(even) {
    transform: rotate(1deg);
  }
  .comic-panel.panel-wide.reveal.in {
    transform: rotate(0);
  }
  .panel-frame.reveal.in {
    transform: rotate(2deg);
  }
  .panel-frame.tilt-left.reveal.in {
    transform: rotate(-2deg);
  }
  .contact-card.reveal.in {
    transform: rotate(-1deg);
  }
  .contact-card.reveal.in:last-child {
    transform: rotate(1deg);
  }
}

/* ---------- Galéria ---------- */
.gallery {
  padding: 2.5rem 0 4rem;
}
.gallery-intro {
  max-width: 44rem;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-weight: 600;
}
.gallery-grid {
  columns: 3 260px;
  column-gap: 1.6rem;
}
@media (max-width: 640px) {
  .gallery-grid {
    column-gap: 1.1rem;
  }
}
.gallery-item {
  break-inside: avoid;
  margin: 0 0 1.6rem;
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: var(--wobble);
  padding: 0.55rem;
  box-shadow: 6px 6px 0 var(--ink);
  cursor: zoom-in;
  position: relative;
  display: block;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.gallery-item:nth-child(4n + 1) {
  transform: rotate(-1.4deg);
  border-radius: var(--wobble);
}
.gallery-item:nth-child(4n + 2) {
  transform: rotate(1.6deg);
  border-radius: var(--wobble2);
}
.gallery-item:nth-child(4n + 3) {
  transform: rotate(-0.8deg);
  border-radius: var(--wobble2);
}
.gallery-item:nth-child(4n) {
  transform: rotate(1.1deg);
  border-radius: var(--wobble);
}
.gallery-item:hover {
  transform: rotate(0) translate(-2px, -2px);
  box-shadow: 9px 9px 0 var(--ink);
  z-index: 3;
}
.gallery-item img {
  width: 100%;
  height: auto;
  border: 3px solid var(--ink);
  border-radius: 10px;
  display: block;
}
.gallery-item::after {
  content: "🔍";
  position: absolute;
  top: -14px;
  right: -14px;
  background: var(--red);
  color: var(--white);
  border: 3px solid var(--ink);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-8deg);
  opacity: 0;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  pointer-events: none;
}
.gallery-item:hover::after {
  opacity: 1;
  transform: rotate(4deg);
}

/* Staggered belépő a galériához */
@media (prefers-reduced-motion: no-preference) {
  .gallery-item.reveal {
    opacity: 0;
    transform: translateY(24px) rotate(0) scale(0.94);
  }
  .gallery-item.reveal.in {
    opacity: 1;
  }
  .gallery-item.reveal.in:nth-child(4n + 1) {
    transform: translateY(0) rotate(-1.4deg) scale(1);
  }
  .gallery-item.reveal.in:nth-child(4n + 2) {
    transform: translateY(0) rotate(1.6deg) scale(1);
  }
  .gallery-item.reveal.in:nth-child(4n + 3) {
    transform: translateY(0) rotate(-0.8deg) scale(1);
  }
  .gallery-item.reveal.in:nth-child(4n) {
    transform: translateY(0) rotate(1.1deg) scale(1);
  }
  .gallery-item.reveal {
    transition:
      opacity 0.55s ease,
      transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 18, 16, 0.92);
  background-image: radial-gradient(
    rgba(255, 210, 63, 0.18) 1.6px,
    transparent 1.6px
  );
  background-size: 16px 16px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}
.lightbox.open {
  display: flex;
  animation: lb-in 0.2s ease;
}
@keyframes lb-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.lightbox-frame {
  position: relative;
  max-width: min(92vw, 900px);
  max-height: 88vh;
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: var(--wobble);
  padding: 0.75rem;
  box-shadow: 10px 10px 0 var(--yellow);
  transform: rotate(-1deg);
  animation: lb-pop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes lb-pop {
  from {
    transform: rotate(-1deg) scale(0.85);
    opacity: 0;
  }
  to {
    transform: rotate(-1deg) scale(1);
    opacity: 1;
  }
}
.lightbox-frame img {
  max-width: 100%;
  max-height: calc(88vh - 1.5rem);
  height: auto;
  border-radius: 12px;
  display: block;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  font-family: var(--font-display);
  font-size: 1.6rem;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 0 var(--ink);
  line-height: 1;
  padding: 0;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}
.lightbox-close {
  top: -22px;
  right: -22px;
  background: var(--red);
  color: var(--white);
}
.lightbox-prev {
  top: 50%;
  left: -26px;
  transform: translateY(-50%) rotate(-4deg);
}
.lightbox-next {
  top: 50%;
  right: -26px;
  transform: translateY(-50%) rotate(4deg);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  box-shadow: 6px 6px 0 var(--ink);
}
.lightbox-prev:hover {
  transform: translateY(-50%) rotate(-4deg) translate(-2px, -2px);
}
.lightbox-next:hover {
  transform: translateY(-50%) rotate(4deg) translate(-2px, -2px);
}
.lightbox-counter {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 1.1rem;
  padding: 0.2rem 1rem;
  border: 3px solid var(--ink);
  border-radius: var(--wobble2);
  box-shadow: 3px 3px 0 var(--yellow);
  letter-spacing: 0.05em;
}
@media (max-width: 640px) {
  .lightbox {
    padding: 0.6rem;
  }
  .lightbox-close {
    top: -16px;
    right: -16px;
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
  .lightbox-prev {
    left: -8px;
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
  .lightbox-next {
    right: -8px;
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
}
body.lb-open {
  overflow: hidden;
}

/* ============================================================
   TOVÁBBI KOMPONENSEK — form, widget, popup, testimonials
   ============================================================ */

/* Netlify Form – ajánlatkérő */
.contact-form {
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: var(--wobble);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 1.8rem;
  max-width: 36rem;
  margin: 2rem auto 0;
  transform: rotate(-0.5deg);
}
.contact-form h2 {
  margin-bottom: 0.5rem;
}
.contact-form p {
  margin-bottom: 1.2rem;
  font-weight: 600;
}
.form-row {
  margin-bottom: 1rem;
}
.form-row label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.03);
  color: var(--ink);
}
.form-row textarea {
  min-height: 6rem;
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 500px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}
.form-hp {
  position: absolute;
  left: -5000px;
  visibility: hidden;
}
.form-consent {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.form-consent input {
  width: auto;
  margin-top: 0.25rem;
}
.form-consent a {
  color: var(--red);
  font-weight: 700;
}

/* Floating chat gombok (WhatsApp + Messenger) */
.chat-fab {
  position: fixed;
  right: 1.2rem;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
  font-family: var(--font-display);
  font-size: 1.7rem;
  text-decoration: none;
  color: var(--ink);
}
.chat-fab:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}
.chat-fab.wa {
  bottom: 1.2rem;
  background: #25d366;
}
.chat-fab.msg {
  bottom: 5.5rem;
  background: #0084ff;
  color: var(--white);
}
.chat-fab svg {
  width: 30px;
  height: 30px;
}
@media print {
  .chat-fab {
    display: none;
  }
}

/* Exit-intent popup */
.exit-popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 18, 16, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.exit-popup.open {
  display: flex;
  animation: lb-in 0.25s ease;
}
.exit-popup-card {
  max-width: 26rem;
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: var(--wobble);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 10px 10px 0 var(--red);
  transform: rotate(-1.5deg);
  animation: lb-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.exit-popup h2 {
  margin-bottom: 0.7rem;
  color: var(--red);
}
.exit-popup p {
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.exit-popup .hero-actions {
  justify-content: center;
}
.exit-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--yellow);
  border: 3px solid var(--ink);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}

/* Vélemény kártyák */
.testimonials {
  padding: 3rem 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
  margin-top: 2rem;
}
.testimonial {
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: var(--wobble);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 1.4rem;
  position: relative;
}
.testimonial:nth-child(odd) {
  transform: rotate(-1deg);
}
.testimonial:nth-child(even) {
  transform: rotate(1deg);
}
.testimonial::before {
  content: "„";
  position: absolute;
  top: -25px;
  left: -10px;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  background: var(--yellow);
  border: 3px solid var(--ink);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-8deg);
  color: var(--ink);
  padding-top: 0.6rem;
}
.testimonial p {
  font-weight: 600;
  font-style: italic;
  margin-bottom: 0.9rem;
}
.testimonial cite {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 1.1rem;
  color: var(--red);
}

/* Cookie banner (analytics-hez felkészítve) */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  background: var(--ink);
  color: var(--white);
  border: 3px solid var(--yellow);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: none;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-banner.open {
  display: flex;
}
.cookie-banner p {
  flex: 1;
  min-width: 220px;
  font-weight: 600;
  font-size: 0.95rem;
}
.cookie-banner p a {
  color: var(--yellow);
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 1rem;
  background: var(--yellow);
  border: 2px solid var(--yellow);
  border-radius: 10px;
  padding: 0.4rem 1rem;
  cursor: pointer;
  color: var(--ink);
}
.cookie-banner button.secondary {
  background: transparent;
  color: var(--yellow);
}

/* Alacsony sávszélesség / data-saving mód */
@media (prefers-reduced-data: reduce) {
  body {
    background-image: none;
  }
  .cta-band {
    background-image: none;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .burst {
    display: none;
  }
}

/* Print stylesheet */
@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .hero-bubble,
  .burst,
  .chat-fab,
  .exit-popup,
  .cookie-banner,
  .lightbox,
  .reveal.gallery-item::after {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .comic-panel,
  .contact-card,
  .panel-frame,
  .testimonial {
    box-shadow: none !important;
    border: 1px solid #000 !important;
    transform: none !important;
    page-break-inside: avoid;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
  h1,
  h2,
  h3 {
    page-break-after: avoid;
  }
}

/* ---------- Galéria kategória szűrő ---------- */
.gallery-filter{
  display:flex;flex-wrap:wrap;justify-content:center;gap:.7rem;
  margin:1.5rem auto 2.2rem;
}
.gallery-filter-btn{
  font-family:var(--font-display);font-size:1.05rem;letter-spacing:.04em;
  background:var(--white);color:var(--ink);
  border:3px solid var(--ink);border-radius:var(--wobble2);
  padding:.4rem 1.1rem .5rem;cursor:pointer;
  box-shadow:4px 4px 0 var(--ink);
  transition:transform .12s ease,box-shadow .12s ease,background .12s ease,color .12s ease;
}
.gallery-filter-btn:nth-child(2){transform:rotate(-1.5deg)}
.gallery-filter-btn:nth-child(3){transform:rotate(1.5deg)}
.gallery-filter-btn:nth-child(4){transform:rotate(-1deg)}
.gallery-filter-btn:hover{transform:translate(-2px,-2px) rotate(0);box-shadow:6px 6px 0 var(--ink)}
.gallery-filter-btn.active{
  background:var(--red);color:var(--white);
  box-shadow:4px 4px 0 var(--ink);transform:rotate(0);
}
.gallery-filter-btn.active:hover{background:var(--red);color:var(--white)}
.gallery-item.filter-hidden{display:none}

/* Klikkelheto kepek a fooldalon (galéria linkek) */
.panel-img-link{
  display:block;text-decoration:none;color:inherit;
  transition:transform .15s ease,filter .15s ease;
}
.panel-img-link:hover{transform:scale(1.02);filter:brightness(1.03)}
.panel-img-link:focus-visible{outline:4px solid var(--blue);outline-offset:3px}

/* ---------- Nyelvvalto (kis kor alaku zaszlok) ---------- */
.lang-switch{
  display:inline-flex;gap:.75rem;align-items:center;
  background:none;border:0;box-shadow:none;padding:0;margin-left:1rem;
}
.lang-flag{
  width:28px;height:28px;border-radius:50%;overflow:hidden;
  display:inline-flex;align-items:center;justify-content:center;
  box-shadow:0 1px 3px rgba(0,0,0,.18);
  outline:2px solid transparent;outline-offset:2px;
  transition:transform .2s ease, box-shadow .2s ease, outline-color .2s ease;
  text-decoration:none;
}
.lang-flag svg{width:100%;height:100%;display:block}
.lang-flag:hover{
  transform:scale(1.1);
  box-shadow:0 2px 6px rgba(0,0,0,.28);
}
.lang-flag.active{
  outline-color:var(--ink);
}
.lang-flag:focus-visible{
  outline-color:var(--blue);outline-offset:3px;
}
@media (max-width:780px){
  /* Nyelvvalto teljes szelesseben, kozepre, egymás mellett */
  .nav .lang-switch{
    display:flex;flex-direction:row;justify-content:center;align-items:center;
    gap:1rem;margin:1rem 0 .3rem;padding:1rem 0 0;
    border-top:2px dashed var(--ink);
  }
  /* A hamburger menu-be orokolt .nav a szabalyok NE alkalmazodjanak a zaszlokra */
  .nav .lang-switch .lang-flag{
    padding:0;border:0;border-bottom:0;text-decoration:none;
    width:36px;height:36px;font-size:0;
  }
  .nav .lang-switch .lang-flag:hover{transform:scale(1.1);color:inherit}
}
