@import url('./fonts.css');

:root {
  --fun-color-1: #F1EDE3;
  --fun-color-2: #C8C0B2;
  --fun-color-3: #A58A52;
  --fun-color-4: #454A60;
  --fun-color-5: #11110F;

  --fun-bg: var(--fun-color-1);
  --fun-surface: rgba(69, 74, 96, 0.88); /* color-4 z przezroczystością */
  --fun-surface-strong: rgba(69, 74, 96, 0.96);
  --fun-border: rgba(200, 192, 178, 0.22); /* color-2 z przezroczystością */
  --fun-text: var(--fun-color-5);
  --fun-text-hover: var(--fun-color-3);
  --fun-muted: rgba(200, 192, 178, 0.75); /* color-2 z przezroczystością */
  --fun-accent: var(--fun-color-3);
  --fun-accent-2: var(--fun-color-2);
  --fun-glow: rgba(165, 138, 82, 0.35); /* color-3 z przezroczystością */

  --font-body: 'DM Mono', sans-serif;
  --font-heading: 'DM Mono', serif;
}

* {
  font-family: var(--font-body);
}

h1, h2, h3 {
  font-family: var(--font-heading);
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body.fun-body {
  min-height: 100%;
  margin: 0;
  color: var(--fun-text);
  background:
    radial-gradient(circle at top left, rgba(165, 138, 82, 0.15), transparent 24%),
    radial-gradient(circle at top right, rgba(69, 74, 96, 0.3), transparent 28%),
    linear-gradient(180deg, #11110F 0%, #080807 100%);
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- HEADER & NAVBAR --- */

.fun-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(18px);
  background: var(--fun-color-1);
}

.fun-navbar {
  padding: 1rem 1.25rem;
}

.fun-nav-container {
  width: 100%;
  padding-inline: 2rem;
  gap: 1rem;
}

.fun-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--fun-text);
  text-decoration: none;
}

.fun-brand:hover {
  color: var(--fun-text);
}

.fun-brand-mark {
  width: 15rem;
  height: 5rem;
  display: block;
  object-fit: contain;
}

.fun-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.fun-brand-name {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fun-brand-tag {
  margin-top: 0.25rem;
  color: var(--fun-muted);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.fun-toggler {
  border-color: rgba(165, 138, 82, 0.35);
}

.fun-toggler .navbar-toggler-icon {
  filter: invert(1) brightness(1.4);
}

.fun-collapse {
  width: 100%;
}

.fun-nav {
  gap: 0.35rem;
}

.fun-nav-link {
  font-family: var(--font-heading);
  color: var(--fun-text);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.88rem;
  padding: 0.65rem 0.95rem;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.fun-nav-link:hover,
.fun-nav-link:focus {
  color: var(--fun-text-hover);
  text-decoration: underline;
  transform: translateY(-1px);
}

.fun-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-left: auto;
}

.fun-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(165, 138, 82, 0.42);
  color: var(--fun-text);
  background: rgba(69, 74, 96, 0.5);
  padding: 0.7rem 0.95rem;
}

.fun-lang-btn:hover,
.fun-lang-btn:focus {
  color: var(--fun-text);
  border-color: rgba(165, 138, 82, 0.68);
  box-shadow: 0 0 0 1px rgba(165, 138, 82, 0.18);
}

.fun-lang-btn::after {
  margin-left: 0.1rem;
}

.fun-lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.12rem 0.45rem;
  background: rgba(241, 237, 227, 0.09);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.fun-lang-menu {
  background: var(--fun-surface-strong);
  border: 1px solid rgba(165, 138, 82, 0.25);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.fun-lang-menu .dropdown-item {
  color: var(--fun-text);
}

.fun-lang-menu .dropdown-item:hover,
.fun-lang-menu .dropdown-item.active {
  background: rgba(165, 138, 82, 0.2);
  color: var(--fun-text);
}

.fun-lang-link {
  font-family: var(--font-heading);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--fun-text);
}

.active {
  color: var(--fun-text-hover);
}

.fun-join-btn {
  border: 1px solid rgba(165, 138, 82, 0.75);
  color: var(--fun-text);
  background: linear-gradient(135deg, rgba(69, 74, 96, 0.92), rgba(17, 17, 15, 0.92));
  padding: 0.9rem 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  box-shadow: 0 0 0 1px rgba(165, 138, 82, 0.2), 0 0 28px rgba(165, 138, 82, 0.18);
}

.fun-join-btn:hover,
.fun-join-btn:focus {
  color: var(--fun-text);
  border-color: rgba(165, 138, 82, 1);
  box-shadow: 0 0 0 1px rgba(165, 138, 82, 0.35), 0 0 38px rgba(165, 138, 82, 0.28);
}

.fun-main {
  flex: 1 0 auto;
}

.container-fun {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

/* --- HERO SECTION --- */

.fun-hero-section {
  position: relative;
  display: flex;
  align-items: center;
  padding: 4rem 2rem;
  overflow: hidden;
}

.fun-hero-bg {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 140%; /* Zapobiega obcinaniu tła podczas ruchu */
  
  background-image: url('/images/Baner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  
  z-index: 0;
  will-change: transform;
  pointer-events: none;
}

.fun-hero::before,
.fun-hero::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.fun-hero::before {
  inset: 0;
  z-index: 0;
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  transform: scaleX(-1);
  opacity: 0.92;
}

.fun-hero::after {
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  bottom: -8rem;
  left: -8rem;
  background: radial-gradient(circle, rgba(69, 74, 96, 0.22) 0%, rgba(69, 74, 96, 0) 70%);
}

.fun-hero-grid {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 2rem;
  align-items: center;
}

.fun-hero-content {
  max-width: 650px;
  display: flex;
  flex-direction: column;
  justify-content: start;
}

.fun-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(165, 138, 82, 0.3);
  background: rgba(69, 74, 96, 0.4);
  color: var(--fun-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

.fun-kicker-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--fun-accent);
  box-shadow: 0 0 16px var(--fun-accent);
}

.fun-hero-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 2px;
  color: var(--fun-color-3);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.fun-hero-title .accent {
  display: block;
  color: var(--fun-accent);
}

.fun-hero-copy {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--fun-color-3);
  margin-bottom: 2.5rem;
  text-align: justify;
}

.fun-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.fun-hero-actions .fun-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 300px;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--fun-color-3);
    background: transparent;
    color: var(--fun-color-3);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.fun-hero-actions .fun-secondary-btn .btn-arrow {
    font-size: 1.2rem;
    line-height: 1;
    margin-left: 1rem;
    transition: transform 0.3s ease;
}

/* Efekt najechania (Hover) */
.fun-hero-actions .fun-secondary-btn:hover {
    border-color: var(--fun-color-1);
    color: var(--fun-color-1);
    background: rgba(203, 166, 96, 0.1);
}

.fun-hero-actions .fun-secondary-btn:hover .btn-arrow {
    transform: translateX(6px);
}

.btn-arrow {
  display: inline-block;
  transform: translateY(2px);
}

.fun-primary-btn,
.fun-secondary-btn {
  font-family: var(--font-heading);
  padding: 1.1rem 2rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.95rem;
}

.fun-primary-btn {
  background-color: var(--fun-accent);
  color: var(--fun-color-5);
  border: 0;
  box-shadow: 0 0 0 1px rgba(241, 237, 227, 0.1), 0 22px 38px rgba(165, 138, 82, 0.25);
}

.fun-primary-btn:hover,
.fun-primary-btn:focus {
  color: var(--fun-color-5);
  background-color: var(--fun-accent);
}

.fun-secondary-btn {
  border-color: var(--fun-accent);
  color: var(--fun-accent);
}

.fun-secondary-btn:hover,
.fun-secondary-btn:focus {
  border-color: var(--fun-accent-2);
  color: var(--fun-accent-2);
}

.fun-hero-panel {
  padding: 1.2rem;
  border-radius: 1.8rem;
  border: 1px solid rgba(165, 138, 82, 0.25);
  background: linear-gradient(180deg, rgba(69, 74, 96, 0.6), rgba(17, 17, 15, 0.85));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}

.fun-hero-panel-frame {
  min-height: 24rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(200, 192, 178, 0.15);
  background:
    linear-gradient(180deg, rgba(17, 17, 15, 0.2), rgba(17, 17, 15, 0.72)),
    radial-gradient(circle at top, rgba(165, 138, 82, 0.25), transparent 45%),
    linear-gradient(135deg, rgba(69, 74, 96, 0.5), rgba(17, 17, 15, 0.92));
  position: relative;
  overflow: hidden;
}

.fun-hero-panel-frame--image {
  background-color: #11110F;
  background-image: url('/images/Baner.jpg');
  background-size: auto, auto, cover;
  background-position: center, top right, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
}

.fun-hero-panel-frame::before {
  content: "";
  position: absolute;
  inset: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(241, 237, 227, 0.1);
  background:
    linear-gradient(135deg, rgba(241, 237, 227, 0.05), transparent 36%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
}

.fun-hero-panel-overlay {
  position: absolute;
  inset: auto 1rem 1rem;
  z-index: 1;
  display: grid;
  gap: 0.55rem;
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  border: 1px solid rgba(200, 192, 178, 0.15);
  background: rgba(17, 17, 15, 0.82);
  backdrop-filter: blur(12px);
}

.fun-hero-panel-badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(165, 138, 82, 0.18);
  color: var(--fun-accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  font-weight: 800;
}

.fun-hero-panel-title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fun-hero-panel-copy {
  margin: 0;
  color: var(--fun-muted);
  line-height: 1.65;
}

/* --- STATS & CARDS --- */

.fun-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.fun-stat {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(69, 74, 96, 0.25);
  border: 1px solid rgba(200, 192, 178, 0.12);
}

.fun-event-partners .fun-stat {
  padding: 0.1rem 0.1rem;
  border-radius: 1rem;
  background: rgba(69, 74, 96, 0.25);
  border: 1px solid rgba(200, 192, 178, 0.12);
}

.fun-stat-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--fun-accent);
}

.fun-stat-label {
  display: block;
  margin-top: 0.15rem;
  padding: 0rem 0.5rem 0rem 0.5rem;
  color: var(--fun-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}


.fun-section {
  padding: 2rem 5rem 4rem 5rem;
}

.fun-section * {
  font-family: var(--font-heading);
}

.fun-section#events {
  background: var(--fun-color-2);
}

.fun-section-title {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fun-accent);
}

.fun-section-heading {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  text-transform: uppercase;
}

.fun-games-heading-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: clamp(5rem, 7vw, 5.75rem);
  object-fit: contain;
}

.fun-section-copy {
  margin: 1rem 0 0;
  max-width: 48rem;
  color: var(--fun-muted);
  line-height: 1.8;
}

.upcoming-events-grid {
  background: var(--fun-color-2);
}

.fun-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5rem;
  margin-top: 2rem;
}

#events .fun-section-title{
  color: var(--fun-color-5);
}

.fun-section#partners {
    background-color: var(--fun-color-5);
    text-align: right;
}

#partners .fun-section-title {
    color: var(--fun-color-1);
}
/* ========================================== */
/* GALERIA STYLE                              */
/* ========================================== */

#gallery .fun-section-title {
    color: var(--fun-color-5);
    text-align: left;
}

.fun-gallery-grid {
    background-color: var(--fun-color-1, #121318);
    padding: 3rem 0;
}

.fun-gallery-carousel {
    position: relative;
    padding-bottom: 2.5rem;
}

.fun-gallery-carousel-inner {
    max-width: 95%;
    margin: 0 auto;
}

.fun-gallery-row {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
}

/* Kafelka ze zdjęciem i interaktywnym efektem */
.fun-gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fun-gallery-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(239, 233, 220, 0.2);
}

.fun-gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

.fun-gallery-item:hover .fun-gallery-image {
    transform: scale(1.08);
}

/* Nakładka z ikonką lupy przy najechaniu */
.fun-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 19, 24, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--fun-color-5, #efe9dc);
    font-size: 1.8rem;
}

.fun-gallery-item:hover .fun-gallery-overlay {
    opacity: 1;
}

.fun-gallery-carousel,
.fun-gallery-carousel-inner {
    touch-action: pan-y pinch-zoom; /* Pozwala na przewijanie strony w pionie i slajdów w poziomie */
}

/* Czarne strzałki nawigacji w karuzeli */
.fun-gallery-control .carousel-control-prev-icon,
.fun-gallery-control .carousel-control-next-icon {
    filter: brightness(0);
}

/* --- URZĄDZENIA DESKTOP (>= 768px) --- */
@media (min-width: 768px) {
    .fun-gallery-row .fun-gallery-item {
        width: calc(33.333% - 0.85rem);
        height: 18rem;
    }
}

/* --- URZĄDZENIA MOBILNE (< 768px) --- */
@media (max-width: 767.98px) {
    .fun-gallery-carousel-inner {
        max-width: 100%;
    }

    .fun-gallery-row .fun-gallery-item {
        width: 100%;
        height: 16rem;
    }

    /* Ukrycie bocznych strzałek w karuzeli głównej */
    .fun-gallery-control {
        display: none !important;
    }

    .fun-gallery-overlay {
        pointer-events: none;
        display: none !important;
    }
}

/* Kropki / Wskaźniki karuzeli */
.fun-gallery-indicators {
    position: static;
    margin-top: 20px;
    margin-bottom: 0;
    justify-content: center;
}

.fun-gallery-indicators [data-bs-target] {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    margin: 0 0.3rem;
    border: none;
    background-color: var(--fun-color-2, #8c857b);
    opacity: 0.5;
    transition: opacity 0.2s, background-color 0.2s;
}

.fun-gallery-indicators .active {
    background-color: var(--fun-color-5, #efe9dc);
    opacity: 1;
}

.fun-gallery-control {
    width: 7%;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.fun-gallery-control:hover {
    opacity: 1;
}

/* ========================================== */
/* LIGHTBOX (MODAL PEŁNOEKRANOWY)              */
/* ========================================== */

.fun-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(10, 10, 14, 0.92);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fun-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.fun-lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    position: relative;
}

.fun-lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 0.4rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

/* Przyciski nawigacji w Lightboxie */
.fun-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: #efe9dc;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
}

.fun-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #efe9dc;
    font-size: 2rem;
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    border-radius: 0.3rem;
    transition: background 0.2s;
    z-index: 10001;
}

.fun-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.fun-lightbox-prev { left: 1.5rem; }
.fun-lightbox-next { right: 1.5rem; }

@media (max-width: 576px) {
    .fun-lightbox-nav {
        padding: 0.5rem 0.8rem;
        font-size: 1.5rem;
    }
    .fun-lightbox-prev { left: 0.5rem; }
    .fun-lightbox-next { right: 0.5rem; }
}

/* --- MARQUEE & PARTNERS --- */

.fun-about-events-marquee {
  margin-top: 1rem;
  overflow: hidden;
  position: relative;
}

.fun-about-events-track {
  display: flex;
  align-items: stretch;
  width: max-content;
  gap: 1rem;
  animation: fun-about-events-scroll 28s linear infinite;
  will-change: transform;
}

.fun-about-events-marquee:hover .fun-about-events-track,
.fun-about-events-marquee:focus-within .fun-about-events-track {
  animation-play-state: paused;
}

.fun-about-events-group {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  flex-shrink: 0;
}

.fun-about-event-item {
  width: 16rem;
  min-width: 16rem;
  min-height: 8.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(200, 192, 178, 0.12);
  background: rgba(69, 74, 96, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.fun-about-event-item img {
  max-width: 100%;
  max-height: 6rem;
  object-fit: contain;
  display: block;
}

.fun-partner-logo-small {
  max-width: 200px ;
  max-height: 80px;
  margin: 0rem 1rem 0rem 1rem;
  display: block;
}

.a .fun-stat-label{
  text-decoration: none;
}

@keyframes fun-about-events-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* --- GAMES & EVENTS --- */

.fun-game-name-link {
  color: var(--fun-text);
  text-decoration: none;
}

.fun-game-name-link:hover,
.fun-game-name-link:focus {
  color: var(--fun-accent);
}

.fun-event-summary-image-link {
  display: block;
  flex: 0 0 auto;
}

.fun-game-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.fun-card {
  display: flex;
  flex-direction: column;
  background: var(--fun-surface);
  border: 1px solid var(--fun-border);
  color: var(--fun-color-1);
  height: 100%;
  padding: 0;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.fun-game-card-link:hover .fun-card,
.fun-game-card-link:focus .fun-card {
  transform: translateY(-4px);
  background: var(--fun-surface-strong);
  border-color: var(--fun-accent);
  box-shadow: 0 8px 20px var(--fun-glow);
}

/* Obrazek na górze */
.fun-event-image-wrapper {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.fun-event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Zawartość dolnej części karty */
.fun-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.fun-card-meta,
.fun-card-submeta {
  font-size: 0.85rem;
  color: var(--fun-color-1);
  letter-spacing: 0.12em;
}

.fun-card-meta {
  margin-bottom: 1.25rem;
  display: block;
}

.fun-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fun-color-1);
  line-height: 1.3;
}

.fun-game-card-link:hover .fun-card h3 {
  color: var(--fun-text-hover);
}

.fun-card-submeta {
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.fun-card-arrow {
  margin-top: auto;
  font-size: 1.25rem;
  color: var(--fun-color-1);
  transition: transform 160ms ease, color 160ms ease;
}

.fun-game-card-link:hover .fun-card-arrow {
  color: var(--fun-accent);
  transform: translateX(4px);
}

.fun-event-hero {
  padding-top: 5rem;
  padding-bottom: 1.5rem;
}

.fun-event-hero--image {
  background-color: #11110F;
  background-image: url('/images/Baner.jpg');
  background-size: cover, auto, auto;
  background-position: center center, top right, top left;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-clip: padding-box;
}

.fun-event-hero--empty {
  background:
    radial-gradient(circle at top right, rgba(17, 17, 15, 0.96), rgba(17, 17, 15, 0.88)),
    linear-gradient(180deg, rgba(165, 138, 82, 0.14), transparent 32%);
}

.fun-event-hero-copy {
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0.25rem 0;
}

.fun-event-title {
  text-shadow: 0 6px 18px rgba(0,0,0,0.8), 0 2px 6px rgba(0,0,0,0.6);
  display: inline-block;
  padding: 1.0rem 0.6rem 1.1rem 0.6rem;
  border-radius: 0.35rem;
  font-size: clamp(1.5rem, 4vw, 3rem);
  line-height: 1.05;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  text-wrap: balance;
}

.fun-event-lead {
  max-width: none;
}

.fun-event-pill-row {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.fun-event-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 192, 178, 0.2);
  background: rgba(69, 74, 96, 0.2);
  color: var(--fun-muted);
}

.fun-event-pill strong {
  color: var(--fun-text);
}

.fun-event-action-row {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.fun-event-action-note {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.55rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid rgba(200, 192, 178, 0.18);
  background: rgba(69, 74, 96, 0.25);
  color: var(--fun-muted);
  font-weight: 700;
}

.fun-event-map-btn {
  border-color: rgba(165, 138, 82, 0.45);
  background: rgba(165, 138, 82, 0.12);
}

.fun-event-hero-media {
  height: 100%;
  min-height: 20rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(200, 192, 178, 0.15);
  padding: 0.75rem;
  background:
    linear-gradient(180deg, rgba(165, 138, 82, 0.18), transparent 40% ),
    radial-gradient(circle at top right, rgba(69, 74, 96, 0.8), rgba(17, 17, 15, 0.8));
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.35);
}

.fun-event-hero-media--image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.fun-event-hero-media--empty {
  background:
    linear-gradient(180deg, rgba(165, 138, 82, 0.18), transparent 40%),
    radial-gradient(circle at top right, rgba(69, 74, 96, 0.8), rgba(17, 17, 15, 0.8));
}

.fun-event-hero-image {
  width: 100%;
  height: 100%;
  min-height: 18.5rem;
  object-fit: cover;
  border-radius: 1rem;
}

.fun-event-image-placeholder {
  height: 100%;
  min-height: 18.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  border: 1px dashed rgba(200, 192, 178, 0.3);
  color: var(--fun-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
}

.fun-event-info-image {
  width: 100%;
  max-width: 280px;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.fun-event-content {
  padding-top: 1rem;
}

.fun-event-main-card {
  min-height: 100%;
}

.fun-event-partners {
  min-height: auto;
  padding: 1rem 1.15rem 0.95rem;
}

.fun-event-partners .fun-event-card-title {
  margin-bottom: 0.8rem;
}

.fun-event-card-title {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fun-accent);
}

.fun-event-description > *:first-child {
  margin-top: 1rem;
}

.fun-event-description p,
.fun-event-description li,
.fun-event-description span {
  color: var(--fun-muted);
  line-height: 1.8;
}

.fun-event-description a {
  color: var(--fun-accent);
}

.fun-event-side-grid {
  display: grid;
  gap: 1rem;
}

.fun-event-info-line {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.fun-event-info-line + .fun-event-info-line {
  margin-top: 0.95rem;
}

.fun-event-info-line span {
  color: var(--fun-muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.fet-stat-prize {
  font-size: 1rem !important;
}

.fun-event-info-line strong {
  color: var(--fun-text);
  font-weight: 700;
  line-height: 1.5;
}

.fun-event-map-link {
  color: var(--fun-accent);
  text-decoration: none;
}

.fun-event-map-link:hover,
.fun-event-map-link:focus {
  color: #C8C0B2;
}

.fun-event-list {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.fun-game-tile-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.fun-game-tile {
  border-radius: 1.35rem;
  background: linear-gradient(180deg, rgba(69, 74, 96, 0.4), rgba(17, 17, 15, 0.88));
  border: 1px solid rgba(200, 192, 178, 0.12);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.fun-game-tile:hover,
.fun-game-tile:focus-within {
  transform: translateY(-2px);
  border-color: rgba(165, 138, 82, 0.5);
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(165, 138, 82, 0.25);
}

.fun-game-tile .fun-game-card-link {
  height: 100%;
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
}

.fun-game-tile-image {
  height: clamp(8rem, 14vw, 9.5rem);
}

.fun-game-tile-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fun-text);
}

.fun-event-item {
  border-radius: 1.35rem;
  background: var(--fun-event-card-bg, linear-gradient(180deg, rgba(69, 74, 96, 0.4), rgba(17, 17, 15, 0.88)));
  background-size: auto, cover;
  background-position: center, center;
  background-repeat: no-repeat;
  border: 1px solid rgba(200, 192, 178, 0.12);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.fun-event-summary {
  list-style: none;
  min-height: clamp(9rem, 16vw, 11rem);
}

.fun-event-summary-link {
  display: grid;
  grid-template-columns: clamp(10rem, 22vw, 13rem) minmax(0, 1fr);
  align-items: stretch;
  gap: 1rem;
  min-height: clamp(9rem, 16vw, 11rem);
  padding: 1.25rem;
  color: inherit;
  text-decoration: none;
}

.fun-event-summary::-webkit-details-marker {
  display: none;
}

.fun-event-summary-main h3 {
  margin: 0;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fun-event-summary-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.fun-event-summary-meta {
  margin: 0.8rem 0 0;
  color: var(--fun-muted);
  line-height: 1.7;
}

.fun-event-summary-separator {
  margin: 0 0.45rem;
  color: rgba(200, 192, 178, 0.35);
}

.fun-game-event-image {
  width: clamp(11rem, 22vw, 15rem);
  height: clamp(8rem, 16vw, 10.5rem);
  object-fit: contain;
}

.fun-event-item[open] .fun-event-summary {
  border-bottom: 1px solid rgba(200, 192, 178, 0.12);
}

.fun-event-item[open] {
  border-color: rgba(165, 138, 82, 0.5);
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(165, 138, 82, 0.25);
}

.fun-event-body {
  padding: 1.05rem 1.25rem 1.25rem;
}

.fun-event-body p {
  margin: 0;
  color: var(--fun-muted);
  line-height: 1.75;
}

.fun-event-body .fun-join-btn {
  margin-top: 1rem;
}

.fun-event-free {
  margin-top: 1rem !important;
}

.fun-event-details-link-wrap {
  margin-top: 1rem !important;
}

.fun-event-details-link-wrap a {
  color: var(--fun-accent);
  text-decoration: none;
  font-weight: 700;
}

.fun-event-details-link-wrap a:hover,
.fun-event-details-link-wrap a:focus {
  color: #C8C0B2;
}

.fun-coming-soon-card {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(165, 138, 82, 0.12), rgba(69, 74, 96, 0.25));
  border: 1px solid rgba(165, 138, 82, 0.3);
  min-height: 18rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fun-coming-soon-content {
  max-width: 500px;
}

.fun-coming-soon-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: block;
}

.fun-coming-soon-title {
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  background: linear-gradient(90deg, #A58A52, #C8C0B2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fun-coming-soon-text {
  color: var(--fun-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.fun-partner-inline-row {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.fun-partner-list {
  background: var(--fun-color-5);
}

.fun-partner-marquee {
  margin-top: 1rem;
  overflow: hidden;
  position: relative;
}

.fun-partner-marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: scroll-marquee 30s linear infinite;
  will-change: transform;
}

.fun-partner-marquee-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-right: 0.85rem;
  flex-shrink: 0;
}

.fun-partner-marquee:hover .fun-partner-marquee-track,
.fun-partner-marquee:focus-within .fun-partner-marquee-track {
  animation-play-state: paused;
}

@keyframes scroll-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.fun-partner-marquee-item {
  width: 28rem;
  height: 16.5rem;
  border-radius: 0.9rem;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.35rem;
}

.fun-partner-marquee-item:hover,
.fun-partner-marquee-item:focus {
  background: rgba(165, 138, 82, 0.12);
  box-shadow: inset 0 0 0 1px rgba(165, 138, 82, 0.4), 0 0 0 1px rgba(165, 138, 82, 0.12), 0 14px 30px rgba(0, 0, 0, 0.3);
}

.fun-partner-marquee-item:hover img,
.fun-partner-marquee-item:focus img {
  filter: saturate(1.1) brightness(1.08);
  transform: scale(1.04);
}

.fun-partner-marquee-item img {
  max-width: 80%;
  max-height: 70%;
  object-fit: contain;
}

.fun-partner-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.fun-partner-card {
  min-height: 14rem;
  padding: 1.2rem;
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(69, 74, 96, 0.4), rgba(17, 17, 15, 0.88));
  border: 1px solid rgba(200, 192, 178, 0.12);
}

.fun-partner-logo {
  display: block;
  width: 100%;
  height: 4rem;
  object-fit: contain;
  margin-bottom: 0.9rem;
}

.fun-partner-card h3 {
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fun-partner-card p {
  margin: 0.7rem 0 0;
  color: var(--fun-muted);
  line-height: 1.65;
}

.fun-partner-link {
  display: inline-flex;
  margin-top: 0.85rem;
  color: var(--fun-accent);
  font-weight: 700;
  text-decoration: none;
}

.fun-partner-link:hover,
.fun-partner-link:focus {
  color: #C8C0B2;
}
/* --- FOOTER --- */

.fun-footer {
  flex-shrink: 0;
  padding: 3rem 1.5rem 2.5rem;
  background-color: var(--fun-color-5);
}

.fun-footer * {
  font-family: var(--font-heading);
}

.fun-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}

/* Nagłówki sekcji (Złoty/Żółty akcent) */
.fun-footer-title {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fun-color-3);
}

/* Lista linków i e-mail */
.fun-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fun-footer-links a,
.fun-footer-mail,
.fun-footer-mail:visited {
  color: var(--fun-color-2) !important;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;  
  transition: color 0.2s ease;
  word-break: break-word;
}

.fun-footer-links a:hover,
.fun-footer-mail:hover {
  color: var(--fun-color-3);
}

/* Prawa kolumna (Social Media) */
.fun-footer-social {
  text-align: right;
}

.fun-social-row {
  display: flex;
  justify-content: flex-end;
  gap: 1.2rem;
  margin-top: 0.8rem;
}

.fun-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  text-decoration: none;
  transition: transform 160ms ease;
}

.fun-social-link .fa-brands {
  color: var(--fun-color-2);
  transition: color 160ms ease;
}

.fun-social-link:hover .fa-brands {
  color: var(--fun-color-3);
}

.fun-social-link:hover {
  transform: translateY(-2px);
}

/* Responsywność na ekranach mobilnych */
@media (max-width: 768px) {
  .fun-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .fun-footer-social {
    text-align: left;
  }

  .fun-social-row {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   SEKCJA HERO (O NAS)
   ========================================================================== */
.about-us-hero {
    position: relative;
    background-color: var(--fun-color-5);
    display: flex;
    align-items: center;
    overflow: hidden; 
    padding: 3.5rem 0;
}

.about-us-hero-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    background-image: url('/images/Baner.jpg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    z-index: 0;
    will-change: transform;
    pointer-events: none;
}

.about-us-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #0c0d10 25%, rgba(12, 13, 16, 0.75) 55%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.about-us-hero .container {
    position: relative;
    z-index: 2;
}

.about-us-hero-title {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 800;
    color: var(--fun-color-3);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1;
    margin-bottom: 1.25rem;
}

.about-us-hero-subtitle {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--fun-color-1);
    letter-spacing: 0.05em;
    margin: 0;
}

/* Responsywność dla urządzeń mobilnych */
@media (max-width: 768px) {
    .about-us-hero {
        background-position: center;
        padding: 2.5rem 0;
    }
    
    .about-us-hero-overlay {
        background: rgba(12, 13, 16, 0.85);
    }
}
/* ==========================================================================
   SEKCJA MISJA (JASNE TŁO + CZCIONKA MASZYNOWA)
   ========================================================================== */
.about-us-misja-section {
    background-color: var(--fun-color-1);
    padding: 5rem 0;
    color: var(--fun-color-5);
}

.about-us-misja-icon {
    max-width: 220px;
    width: 100%;
    height: auto;
    display: inline-block;
}

.about-us-misja-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--fun-color-5);
    margin-bottom: 2rem;
}

.about-us-misja-text {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--fun-color-5);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

/* Responsywność */
@media (max-width: 991.98px) {
    .about-us-misja-section {
        padding: 3rem 0;
    }
    
    .about-us-misja-icon {
        max-width: 150px;
        margin-bottom: 1.5rem;
    }

    .about-us-misja-title {
        text-align: center;
    }
}

/* --- SEKCJA 2: O FUNDACJI (CIEMNONEBIESKIE TŁO) --- */
.about-us-section-fundacja {
    background-color: #434858;
    color: #efe9dc;
    padding: 4rem 0;
}

.about-us-section-title-light {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #efe9dc;
    margin-bottom: 1.5rem;
}

.about-us-text-light {
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.about-us-icon-fundacja {
    stroke: #cbb06d;
    max-width: 180px;
    height: auto;
}

/* ==========================================================================
   SEKCJA O FUNDACJI (CIEMNE TŁO)
   ========================================================================== */
.about-us-fundacja-section {
    background-color: var(--fun-color-4);
    padding: 5rem 0;
    color: var(--fun-color-1);
}

.about-us-fundacja-icon {
    max-width: 200px;
    width: 100%;
    height: auto;
    display: inline-block;
}

.about-us-fundacja-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--fun-color-1);
    margin-bottom: 2rem;
}

.about-us-fundacja-text {
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--fun-color-1);
    letter-spacing: 0.02em;
}

/* Responsywność */
@media (max-width: 991.98px) {
    .about-us-fundacja-section {
        padding: 3rem 0;
    }
    
    .about-us-fundacja-icon {
        max-width: 140px;
        margin-bottom: 1.5rem;
    }

    .about-us-fundacja-title {
        text-align: center;
    }
}

/* ==========================================================================
   SEKCJA CZŁONKOWIE / FOUNDERS (ZŁOTE TŁO)
   ========================================================================== */
.about-us-czlonkowie-section {
    background-color: var(--fun-color-3);
    padding: 5rem 0;
    color: var(--fun-color-5);
}

.about-us-czlonkowie-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--fun-color-5);
    margin-bottom: 2.5rem;
}

.about-us-czlonkowie-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.about-us-czlonkowie-card * {
  font-family: var(--font-heading);
}

.about-us-czlonkowie-avatar {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--fun-color-5);
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.about-us-czlonkowie-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-us-czlonkowie-name {
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--fun-color-5);
    margin-bottom: 0.25rem;
    letter-spacing: 0.02em;
}

.about-us-czlonkowie-role {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fun-color-4);
    margin-bottom: 0.85rem;
}

.about-us-czlonkowie-bio {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--fun-color-5);
    margin: 0;
}

/* Responsywność */
@media (max-width: 991.98px) {
    .about-us-czlonkowie-section {
        padding: 3rem 0;
    }
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 991.98px) {
    .about-us-hero {
        padding-top: 2rem;
    }
    .about-us-heading {
        font-size: 2.2rem;
    }
    .about-us-marquee-item {
        width: 12rem;
        min-width: 12rem;
        min-height: 7rem;
    }
}

.fun-newsletter-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.fun-newsletter-input {
  min-height: 3.3rem;
  border-radius: 999px;
  border: 1px solid rgba(165, 138, 82, 0.35);
  background: rgba(241, 237, 227, 0.03);
  color: var(--fun-text);
  padding-inline: 1rem;
}

.fun-newsletter-input::placeholder {
  color: rgba(200, 192, 178, 0.45);
}

.fun-newsletter-input:focus {
  background: rgba(241, 237, 227, 0.05);
  color: var(--fun-text);
  border-color: rgba(165, 138, 82, 0.8);
}

.fun-newsletter-btn {
  min-height: 3.4rem;
  border-radius: 999px;
  border: 0;
  color: #11110F;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #A58A52 0%, #C8C0B2 100%);
  box-shadow: 0 16px 30px rgba(165, 138, 82, 0.25);
}

.fun-newsletter-btn:hover,
.fun-newsletter-btn:focus {
  color: #11110F;
  background: linear-gradient(90deg, #947a46 0%, #b8b0a2 100%);
}

/* ==========================================================================
   SEKCJA KONTAKT
   ========================================================================== */

.contact-us-hero {
    position: relative;
    display: flex;
    align-items: center;
    padding: 5rem 2rem;
    overflow: hidden;
    background-color: var(--fun-color-5);
}

.contact-us-hero-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    background-image: url('/images/Baner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    will-change: transform;
    pointer-events: none;
    opacity: 0.85;
}

.contact-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
}

.contact-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 2px;
    color: var(--fun-color-3);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.contact-hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.25rem;
    line-height: 1.65;
    color: var(--fun-color-1);
    margin: 0;
}

.lets-talk-page {
    background-color: var(--fun-bg);
    padding: 4rem 2rem 6rem;
    color: var(--fun-text);
    font-family: var(--font-body);
}

.lets-talk-grid {
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
    align-items: start;
    max-width: 1400px;
}

@media (max-width: 991px) {
    .lets-talk-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.section-title {
    font-family: var(--font-heading);
    margin: 0 0 2rem 0;
    font-size: clamp(1.8rem, 2.8vw, 2.4rem);
    line-height: 1.1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--fun-text);
}

/* Lewa kolumna: Formularz */
.lets-talk-form-card {
    background: transparent;
    padding: 0;
}

.lets-talk-form {
    display: grid;
    gap: 1.5rem;
    max-width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.lets-talk-form .form-label {
    margin-bottom: 0.4rem;
    color: var(--fun-text);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.required {
    color: #a83232;
    margin-left: 3px;
}

.lets-talk-input {
    min-height: 3.2rem;
    border-radius: 0;
    border: 1px solid var(--fun-border);
    background: var(--fun-color-2);
    color: var(--fun-text);
    padding-inline: 1rem;
    font-family: var(--font-body);
    font-size: 1.05rem;
    width: 100%;
}

.lets-talk-input::placeholder {
    color: #7a7367;
}

.lets-talk-input:focus {
    background: #ffffff;
    color: var(--fun-text);
    border-color: var(--fun-accent);
    box-shadow: none;
    outline: none;
}

textarea.lets-talk-input {
    padding-top: 0.8rem;
    resize: vertical;
}

.lets-talk-send-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    min-height: 3.2rem;
    padding-inline: 1.25rem;
    border-radius: 0;
    border: 1px solid var(--fun-accent);
    color: var(--fun-accent);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lets-talk-send-btn:hover,
.lets-talk-send-btn:focus {
    color: var(--fun-color-5);
    background: var(--fun-accent);
}

.btn-arrow {
    font-size: 1.2rem;
    font-weight: 400;
    transition: transform 0.2s ease;
}

.lets-talk-send-btn:hover .btn-arrow {
    transform: translateX(4px);
}

.privacy-note {
    margin-top: 1.75rem;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #6e675c;
}

.privacy-note a {
    color: var(--fun-accent);
    text-decoration: underline;
}

.privacy-note a:hover {
    color: var(--fun-text);
}

/* Prawa kolumna: Dane kontaktowe */
.lets-talk-card-contact {
    background: transparent;
    padding: 0;
}

.contact-description {
    margin: 0 0 2rem 0;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--fun-text);
}

.foundation-details {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--fun-border);
}

.foundation-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin: 0 0 0.75rem 0;
    color: var(--fun-text);
}

.foundation-details p {
    margin: 0.35rem 0;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.contact-icons-list {
    display: grid;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 3px;
}

.contact-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contact-text p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.5;
}

.contact-text p + p {
    margin-top: 0.15rem;
}

.contact-text a {
    color: var(--fun-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-text a:hover {
    color: var(--fun-accent);
    text-decoration: underline;
}

/* --- PARTNERS PAGE --- */

.partners-page {
  padding: 2.2rem 0 4.5rem;
}

.partners-hero {
  max-width: 92rem;
  margin: 0 auto;
}

.partners-title {
  margin: 0;
  text-align: center;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.partners-title span {
  color: var(--fun-accent);
}

.partners-hero p {
  margin: 1.35rem 0 0;
  color: #F1EDE3;
  font-size: clamp(1.05rem, 1.7vw, 1.95rem);
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.partners-logo-row {
  margin-top: 4rem;
}

.partners-logo-row .fun-partner-marquee-track {
  gap: 0;
}

.partners-logo-row .fun-partner-marquee-group {
  gap: 1.2rem;
}

.partners-logo-item {
  width: 21rem;
  min-width: 21rem;
  min-height: 8.5rem;
}

.partners-logo-item:hover,
.partners-logo-item:focus {
  transform: translateY(-2px);
  background: rgba(165, 138, 82, 0.12);
}

.partners-logo-item img {
  max-width: 90%;
  max-height: 5.6rem;
  object-fit: contain;
}

.partners-cta-card {
  margin: 4.2rem auto 0;
  max-width: 1300px;
  border-radius: 1.4rem;
  border: 2px solid rgba(165, 138, 82, 0.3);
  box-shadow: 0 0 0 1px rgba(165, 138, 82, 0.18), 0 0 28px rgba(165, 138, 82, 0.2);
  background: rgba(69, 74, 96, 0.6);
  display: grid;
  grid-template-columns: minmax(230px, 0.95fr) minmax(0, 1.45fr);
  overflow: hidden;
}

.partners-cta-left {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 1.5rem;
  border-right: 1px solid rgba(165, 138, 82, 0.25);
}

.partners-cta-button {
  width: 100%;
  max-width: 21rem;
  border-radius: 1rem;
  border: 2px solid rgba(165, 138, 82, 0.85);
  color: #F1EDE3;
  background: linear-gradient(90deg, rgba(69, 74, 96, 0.8), rgba(165, 138, 82, 0.4));
  padding: 1rem 1.45rem;
  font-size: clamp(1rem, 1.2vw, 1.45rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  box-shadow: 0 0 18px rgba(165, 138, 82, 0.25);
}

.partners-cta-button:hover,
.partners-cta-button:focus {
  color: #ffffff;
  border-color: rgba(165, 138, 82, 1);
  background: linear-gradient(90deg, rgba(69, 74, 96, 0.9), rgba(165, 138, 82, 0.6));
}

.partners-cta-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.9rem 2rem;
  border-left: 4px solid rgba(165, 138, 82, 0.95);
}

.partners-cta-right h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2.25rem);
  text-transform: none;
  color: #F1EDE3;
}

.partners-cta-right p {
  margin: 1.25rem 0 0;
  color: #C8C0B2;
  font-size: clamp(1rem, 1.2vw, 1.45rem);
  line-height: 1.45;
}

.partners-empty {
  margin-top: 2rem;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* --- ADMIN PANEL --- */

.admin-login-shell {
  padding: 4.5rem 0 3rem;
}

.admin-login-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 1.5rem;
  align-items: center;
}

.admin-login-copy {
  max-width: 42rem;
}

.admin-kicker {
  display: inline-flex;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(165, 138, 82, 0.35);
  color: var(--fun-accent);
  background: rgba(165, 138, 82, 0.12);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-title {
  margin: 1rem 0 0;
  max-width: 38rem;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.admin-copy {
  margin: 1rem 0 0;
  max-width: 44rem;
  color: var(--fun-muted);
  line-height: 1.75;
}

.admin-alert {
  margin-top: 1.5rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: rgba(165, 138, 82, 0.15);
  border: 1px solid rgba(165, 138, 82, 0.3);
  color: var(--fun-text);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.admin-stat {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(69, 74, 96, 0.2);
  border: 1px solid rgba(200, 192, 178, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.admin-stat span {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--fun-accent);
}

.admin-stat small {
  color: var(--fun-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.admin-dashboard {
  padding: 2rem 0 4rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.admin-panel {
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  border-radius: 1.4rem;
  background: linear-gradient(180deg, rgba(69, 74, 96, 0.5), rgba(17, 17, 15, 0.92));
  border: 1px solid rgba(200, 192, 178, 0.12);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45), inset 0 1px 0 rgba(241, 237, 227, 0.02);
}

.admin-panel-wide,
.admin-summary {
  grid-column: span 2;
}

.admin-panel-header h2 {
  margin: 0;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-panel-header p {
  margin: 0.4rem 0 0;
  color: var(--fun-muted);
}

.admin-form {
  margin-top: 1rem;
}

.admin-validation {
  margin-bottom: 1rem;
}

.admin-form .form-label {
  margin-bottom: 0.45rem;
  color: var(--fun-text);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.admin-input {
  min-height: 3rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(165, 138, 82, 0.3);
  background: rgba(241, 237, 227, 0.03);
  color: var(--fun-text);
}

.admin-input:focus {
  background: rgba(241, 237, 227, 0.05);
  color: var(--fun-text);
  border-color: rgba(165, 138, 82, 0.85);
}

.admin-input::placeholder {
  color: rgba(200, 192, 178, 0.45);
}

.admin-check {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.7rem;
  padding: 0.85rem 1rem;
  border-radius: 0.95rem;
  background: rgba(241, 237, 227, 0.03);
  border: 1px solid rgba(200, 192, 178, 0.1);
}

.admin-check .form-check-label {
  font-weight: 700;
}

.admin-check .form-check-input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0;
}

.admin-submit {
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #11110F;
  background: linear-gradient(90deg, #A58A52 0%, #C8C0B2 100%);
  box-shadow: 0 16px 30px rgba(165, 138, 82, 0.25);
}

.admin-submit:hover,
.admin-submit:focus {
  color: #11110F;
  box-shadow: 0 18px 34px rgba(165, 138, 82, 0.35);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-summary {
  margin-top: 0.25rem;
  position: sticky;
  top: 6.5rem;
  max-height: calc(100vh - 7.5rem);
  overflow: auto;
  scrollbar-gutter: stable;
}

.admin-list-section + .admin-list-section {
  margin-top: 1.2rem;
}

.admin-list-section h3 {
  margin: 0 0 0.8rem;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fun-accent);
}

.admin-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.admin-list-section {
  max-height: 100%;
}

.admin-list li {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: rgba(241, 237, 227, 0.03);
  border: 1px solid rgba(200, 192, 178, 0.1);
}

.admin-list a,
.admin-list button {
  margin-right: 0.85rem;
  margin-top: 0.45rem;
}

.admin-list strong,
.admin-list span {
  display: block;
}

.admin-list span,
.admin-empty {
  color: var(--fun-muted);
  margin-top: 0.35rem;
}

.admin-preview-image {
  display: block;
  width: 100%;
  max-width: 11rem;
  margin-top: 0.75rem;
  border-radius: 0.9rem;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(165, 138, 82, 0.3);
}

.admin-delete-link {
  color: #ff6b6b;
}

.admin-delete-link:hover {
  color: #ff5252;
  text-decoration: underline;
}

/* ==========================================
   SEKCJA PROJEKTÓW (Filtry, Sortowanie, Paginacja)
   ========================================== */

.projects-hero {
    position: relative;
    display: flex;
    align-items: center;
    padding: 5rem 2rem;
    overflow: hidden;
    background-color: var(--fun-color-5);
}

.projects-hero-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    background-image: url('/images/Baner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    will-change: transform;
    pointer-events: none;
    opacity: 0.85;
}

.projects-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.projects-hero-title {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 2px;
    color: var(--fun-color-3);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.projects-hero-description {
    font-family: var(--font-body, 'Sora', sans-serif);
    font-size: 1.25rem;
    line-height: 1.65;
    color: var(--fun-color-1);
    margin: 0;
    max-width: 600px;
}


/* ==========================================
   GŁÓWNA SEKCJA (Tło i Pasek narzędzi)
   ========================================== */
.projects-main-wrapper {
    background-color: var(--fun-color-1);
    color: var(--fun-color-5);
}

.projects-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 0 1rem;
}

.projects-filter-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.projects-filter-label {
    font-weight: bold;
    font-size: 0.85rem;
    color: var(--fun-color-5);
    margin-right: 0.5rem;
    letter-spacing: 0.5px;
}

/* Filtry (Przyciski) */
a.projects-btn {
    background-color: transparent;
    border: 1px solid var(--fun-color-3); 
    color: var(--fun-color-5); 
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    display: inline-block;
}

a.projects-btn.active, 
a.projects-btn:hover {
    background-color: var(--fun-color-3); 
    border-color: var(--fun-color-3); 
    color: var(--fun-color-5); 
    font-weight: bold;
}

.projects-sort-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Lista rozwijana (Sortowanie) */
.projects-sort-group .projects-select {
    background-color: transparent; 
    border: 1px solid var(--fun-color-3); 
    color: var(--fun-color-5);
    padding: 0.4rem 2rem 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 0;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311110F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
    cursor: pointer;
}

.projects-sort-group .projects-select option {
    background-color: var(--fun-color-1); 
    color: var(--fun-color-3);
    padding: 0.5rem;
}

.projects-sort-group .projects-select option:checked,
.projects-sort-group .projects-select option:hover,
.projects-sort-group .projects-select option:focus {
    background-color: var(--fun-color-3);
    color: var(--fun-color-5);
}


/* ==========================================
   KARTY PROJEKTÓW
   ========================================== */
.projects-main-wrapper .card.project-card {
    background-color: var(--fun-color-2); 
    border-radius: 0;
    border: none; 
    box-shadow: none;
}

.projects-main-wrapper .card.project-card .card-body {
    padding: 1.8rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.project-img-container,
.project-img-container-dark {
    position: relative;
    background: var(--fun-color-5); 
}

.projects-main-wrapper .card.project-card .project-img,
.projects-main-wrapper .card.project-card .project-img-placeholder {
    border-radius: 0;
    height: 280px; 
    object-fit: cover;
    width: 100%;
}

.projects-main-wrapper .card.project-card .project-img-placeholder {
    opacity: 0.9;
}

.projects-main-wrapper .card.project-card .project-date {
    color: var(--fun-color-3); 
    font-weight: bold;
    font-size: 0.75rem;
    letter-spacing: 1.5px; 
    margin-bottom: 0.75rem;
    display: block;
    text-transform: uppercase; 
}

.projects-main-wrapper .card.project-card .project-title {
    color: var(--fun-color-5);
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase; 
    letter-spacing: 1px;
}

.projects-main-wrapper .card.project-card .project-text {
    color: var(--fun-color-5);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.projects-main-wrapper .card.project-card .project-link-arrow {
    color: var(--fun-color-5);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1;
    transition: color 0.2s;
}

.projects-main-wrapper .card.project-card .project-link-arrow:hover {
    color: var(--fun-color-3);
}


/* ==========================================
   PAGINACJA
   ========================================== */
.projects-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
}

.projects-page-link {
    color: var(--fun-color-5);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    transition: opacity 0.2s;
}

.projects-page-link:hover {
    opacity: 0.7;
}

.projects-page-link.arrow {
    color: var(--fun-color-2); 
}

.projects-page-link.active {
    background-color: var(--fun-color-3);
    color: var(--fun-color-5); 
    padding: 0.25rem 0.75rem;
}


/* ==========================================
   SEKCJA CTA 
   ========================================== */
.cta-section {
    background-color: var(--fun-color-4);
    color: var(--fun-color-1);
    padding: 4rem 0;
}

.cta-section .cta-title {
    color: var(--fun-color-3); 
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.cta-section .cta-description {
    color: var(--fun-color-1);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.6;
}

.cta-section .cta-btn {
    background-color: transparent;
    border: 1px solid var(--fun-color-3); 
    color: var(--fun-color-3);
    padding: 0.6rem 2rem;
    font-weight: bold;
    font-size: 0.85rem;
    border-radius: 0;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease-in-out;
}

.cta-section .cta-btn:hover {
    background-color: var(--fun-color-2);
    color: var(--fun-color-4); 
}

.cta-section .cta-gamepad-img {
    max-width: 250px; 
    height: auto;
    opacity: 0.95;
}


/* ==========================================
   WERSJA MOBILNA (RWD - Max width 768px)
   ========================================== */
@media (max-width: 768px) {
    .projects-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 1.2rem;
        padding: 0 0.5rem;
    }

    .projects-filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    .projects-filter-label {
        margin-bottom: 0.3rem;
        margin-right: 0;
    }

    .projects-filter-group a.projects-btn {
        text-align: center;
        width: 100%;
        padding: 0.6rem;
    }

    .projects-sort-group {
        flex-direction: column;
        align-items: stretch;
    }

    .projects-sort-group .projects-select {
        width: 100%;
        padding: 0.6rem 2rem 0.6rem 0.8rem;
    }
    
    .cta-section .cta-gamepad-img {
        max-width: 150px;
        margin-top: 2rem;
    }
}

/* Podstrona projektu */

/* KONFIGURACJA KONTENERA I SIATKI GALERII */
.project-gallery-section {
    background-color: var(--fun-color-1, #e3dec3);
    border-top: 1px solid var(--fun-border, #d1cbba);
    position: relative;
}

.fun-gallery-carousel {
    position: relative;
    padding: 0 45px;
    margin: 0 auto;
}

/* Układ asymetryczny: Lewo 1 duże / Prawo 4 małe (2x2) */
.fun-gallery-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    height: 420px;
}

.fun-gallery-main {
    width: 100%;
    height: 100%;
}

.fun-gallery-main .fun-gallery-item {
    width: 100%;
    height: 100%;
}

.fun-gallery-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    height: 100%;
}

.fun-gallery-secondary .fun-gallery-item {
    width: 100%;
    height: 100%;
}

/* POSZCZEGÓLNE ZDJĘCIA */
.fun-gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background-color: #222;
    border-radius: 0;
}

.fun-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.fun-gallery-item:hover .fun-gallery-image {
    transform: scale(1.03);
}

.fun-gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    font-size: 1.5rem;
    transition: opacity 0.3s ease;
}

.fun-gallery-item:hover .fun-gallery-overlay {
    opacity: 1;
}

/* STRZAŁKI NAWIGACJI BAZUJĄCE NA WZORZE */
.fun-gallery-control {
    width: 30px;
    top: 0;
    bottom: 0;
    opacity: 0.8;
    background: transparent;
    border: none;
}

.fun-gallery-control:hover {
    opacity: 1;
}

.carousel-control-prev.fun-gallery-control {
    left: 0;
}

.carousel-control-next.fun-gallery-control {
    right: 0;
}

.fun-gallery-control .carousel-control-prev-icon,
.fun-gallery-control .carousel-control-next-icon {
    background-image: none;
    width: auto;
    height: auto;
    color: var(--fun-color-5, #11110f);
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fun-gallery-control .carousel-control-prev-icon::before {
    content: '‹';
}

.fun-gallery-control .carousel-control-next-icon::before {
    content: '›';
}

/* KROPKI NAWIGACJI POD SIATKĄ */
.fun-gallery-indicators {
    position: relative;
    margin-top: 25px;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.fun-gallery-indicators [data-bs-target] {
    background-color: var(--fun-color-5, #11110f);
    border: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0;
    opacity: 0.25;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fun-gallery-indicators .active {
    opacity: 1;
    transform: scale(1.1);
}

/* RYSOWANIE LIGHTBOXA */
.fun-lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.fun-lightbox.active {
    display: flex;
}
.fun-lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
}
.fun-lightbox-close {
    position: absolute;
    top: 20px; right: 30px;
    background: none; border: none;
    color: #fff; font-size: 2.5rem;
    cursor: pointer;
}
.fun-lightbox-nav {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none; color: #fff;
    font-size: 2rem; padding: 10px 20px;
    cursor: pointer; z-index: 10000;
}
.fun-lightbox-prev { left: 20px; }
.fun-lightbox-next { right: 20px; }

/* DOSTOSOWANIE DLA EKRANÓW MOBILNYCH */
@media (max-width: 767.98px) {
    .fun-gallery-carousel {
        padding: 0 35px;
    }
    .fun-gallery-mobile-wrapper {
        height: 260px;
    }
    .fun-gallery-mobile-wrapper .fun-gallery-item {
        height: 100%;
    }
}
.project-details-hero { background-color: var(--fun-color-4); color: var(--fun-color-1); }
.project-hero-left { background-color: var(--fun-color-4); min-height: 450px; color: var(--fun-color-1); }
.project-hero-right { min-height: 450px; background-color: var(--fun-color-5); }
.project-breadcrumbs { font-size: 0.75rem; letter-spacing: 1px; color: var(--fun-color-1); }
.project-breadcrumbs a { color: var(--fun-color-3); text-decoration: none; font-weight: bold; }
.project-category-tag { font-size: 0.75rem; letter-spacing: 1.5px; color: var(--fun-color-3); font-weight: bold; text-transform: uppercase; }
.project-main-title { font-family: var(--font-heading, 'Cormorant Garamond', serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; text-transform: uppercase; color: var(--fun-color-1); margin-bottom: 1rem; letter-spacing: 1px; }
.project-lead-text { font-size: 0.9rem; line-height: 1.6; color: var(--fun-color-1); }
.project-gallery-btn { color: var(--fun-color-1); text-decoration: none; font-size: 0.85rem; font-weight: bold; letter-spacing: 1px; border-bottom: 1px solid var(--fun-color-1); padding-bottom: 2px; display: inline-block; }

.project-content-section { background-color: var(--fun-color-2); color: var(--fun-color-5); }
.project-section-heading { font-size: 0.95rem; font-weight: bold; letter-spacing: 2px; text-transform: uppercase; color: var(--fun-color-5); }
.project-long-description p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.5rem; color: var(--fun-color-5); }
.project-info-box { border-left: 1px solid #A8A092; padding-left: 2rem; }
.project-info-row { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 0; border-bottom: 1px solid var(--fun-border); }
.project-info-icon { width: 20px; height: 20px; object-fit: contain; }
.project-info-label { font-size: 0.85rem; font-weight: bold; letter-spacing: 1px; color: var(--fun-color-5); }
.project-info-value { font-size: 0.85rem; color: var(--fun-color-5); }
.project-external-link { color: var(--fun-color-5); font-size: 1.2rem; text-decoration: none; }

.project-gallery-section { background-color: var(--fun-color-1);}
.gallery-item-large img { height: 320px; background-color: var(--fun-color-5); object-fit: cover; width: 100%; }
.gallery-item-small img { height: 150px; background-color: var(--fun-color-5); object-fit: cover; width: 100%; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: transparent; border: none; font-size: 1.5rem; font-weight: bold; color: var(--fun-color-5); cursor: pointer; z-index: 10; }
.gallery-prev { left: -30px; }
.gallery-next { right: -30px; }
.gallery-dots .dot { height: 8px; width: 8px; margin: 0 4px; background-color: rgba(17, 17, 15, 0.3); border-radius: 50%; display: inline-block; cursor: pointer; }
.gallery-dots .dot.active { background-color: var(--fun-color-5); }

/* OUR EXPERIENCE SECTION */
/* Sekcja 1: Statystyki */
  .section-stats {
      background-color: var(--fun-color-1);
      color: var(--fun-color-4);
  }
  .stat-icon-img {
      width: 48px;
      height: 48px;
      object-fit: contain;
  }
  .stat-text-color {
      color: var(--fun-color-4);
  }

  /* Sekcja 2: Roadmap (Nasza droga) */
  .section-roadmap {
      background-color: var(--fun-color-3);
      color: var(--fun-color-4);
  }
  .roadmap-title-color {
      color: var(--fun-color-4);
  }
  .roadmap-wrapper {
      position: relative;
      padding-top: 1.5rem;
      padding-bottom: 0.5rem;
  }
  .roadmap-line {
      position: absolute;
      top: 31px;
      left: 0;
      right: 0;
      height: 2px;
      background-color: var(--fun-color-5);
      z-index: 1;
  }
  .roadmap-row {
      position: relative;
      z-index: 2;
  }
  .roadmap-dot {
      width: 16px;
      height: 16px;
      border: 2px solid var(--fun-color-5);
      background-color: var(--fun-color-3);
      border-radius: 50%;
  }
  .roadmap-desc {
      color: var(--fun-color-5);
      opacity: 0.85;
  }

  /* Sekcja 4: Know more */
  .section-know-more {
      background-color: var(--fun-color-4);
      color: var(--fun-color-1);
  }
  .know-more-heading {
      color: var(--fun-color-3);
  }
  .know-more-description {
      color: var(--fun-color-2);
  }
  .know-more-btn {
      border: 1px solid var(--fun-color-3);
      color: var(--fun-color-3);
      text-decoration: none;
  }
  .know-more-btn:hover {
      border: 1px solid var(--fun-color-1);
      color: var(--fun-color-1);
  }
  .pillar-image {
      max-height: 300px;
      object-fit: contain;
  }

/* --- MEDIA QUERIES --- */

@media (max-width: 1199.98px) {
  .admin-grid,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-panel-wide,
  .admin-summary {
    grid-column: auto;
  }

  .admin-summary {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .fun-nav {
    gap: 0.15rem;
  }

  .fun-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fun-game-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fun-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .fun-partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lets-talk-grid {
    gap: 1.5rem;
  }

  .partners-logo-row {
    margin-top: 2.6rem;
  }

  .partners-cta-card {
    margin-top: 3rem;
  }

  .lets-talk-card {
    min-height: 30rem;
    padding: 2.4rem 2rem 2rem;
  }

  .lets-talk-person-name {
    font-size: 1.3rem;
  }

  .lets-talk-lead {
    font-size: 1.5rem;
  }

  .lets-talk-mail,
  .lets-talk-person span {
    font-size: 1rem;
  }
}

@media (max-width: 991.98px) {
  .admin-login-grid {
    grid-template-columns: 1fr;
  }

  .admin-login-copy {
    max-width: none;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .fun-collapse {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--fun-color-1);
    border: 1px solid rgba(165, 138, 82, 0.2);
  }

  .fun-nav {
    margin: 0.5rem 0 1rem;
  }

  .fun-actions {
    margin-left: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .fun-hero-grid {
    grid-template-columns: 1fr;
  }

  .fun-hero-panel-frame {
    min-height: 18rem;
  }

  .fun-event-hero {
    padding-top: 3.5rem;
  }

  .fun-event-hero-media,
  .fun-event-hero-image,
  .fun-event-image-placeholder {
    min-height: 14.5rem;
  }

  .fun-event-action-row .btn {
    width: 100%;
  }

  .lets-talk-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    margin-top: 2.4rem;
  }

  .partners-cta-card {
    grid-template-columns: 1fr;
  }

  .partners-cta-left {
    border-right: 0;
    border-bottom: 1px solid rgba(165, 138, 82, 0.25);
  }

  .partners-cta-right {
    border-left: 0;
    border-top: 4px solid rgba(165, 138, 82, 0.95);
  }

  .lets-talk-card {
    min-height: auto;
  }
}

@media (max-width: 767.98px) {
  .fun-about-event-item {
    width: 11rem;
    min-width: 11rem;
    min-height: 6rem;
    padding: 0.75rem;
  }

  .fun-about-events-track,
  .fun-about-events-group {
    gap: 0.75rem;
  }

  .fun-game-tile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .admin-login-shell {
    padding-top: 3rem;
  }

  .admin-panel {
    padding: 1rem;
  }

  .admin-grid {
    gap: 1rem;
  }

  .admin-form-grid {
    gap: 0.85rem;
  }

  .admin-title {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }

  .admin-submit {
    width: 100%;
  }

  .admin-list a,
  .admin-list button {
    display: inline-block;
    margin-right: 0.7rem;
  }

  .admin-check {
    align-items: flex-start;
  }

  .fun-navbar {
    padding-inline: 0.85rem;
  }

  .fun-brand-name {
    font-size: 1.1rem;
  }

  .fun-brand-tag {
    letter-spacing: 0.14em;
  }

  .fun-hero {
    padding-top: 3.5rem;
    padding-bottom: 2rem;
    min-height: auto;
  }

  .fun-hero-title {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    line-height: 1;
  }

  .fun-hero-copy {
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .fun-hero-actions {
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-direction: column;
  }

  .fun-primary-btn,
  .fun-secondary-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 0.88rem;
  }

  .fun-stat-grid {
    grid-template-columns: 1fr;
    margin-top: 1rem;
    gap: 0.75rem;
  }

  .fun-stat {
    padding: 0.75rem 0.9rem;
  }

  .fun-stat-value {
    font-size: 1.1rem;
  }

  .fun-stat-label {
    font-size: 0.7rem;
  }

  .fun-card-grid {
    grid-template-columns: 1fr;
  }

  #partners {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    min-height: auto;
    max-height: auto;
    width: 100%;
    overflow: hidden;
  }

  #partners h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    padding: 0 0.5rem;
  }

  #partners h4 {
    font-size: 0.65rem;
    line-height: 1.25;
    margin-top: auto;
    margin-left: 0;
    margin-right: 0;
    padding: 0 0.5rem;
    display: block;
    width: auto;
    max-width: calc(100% - 1rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
  }

  .fun-partner-marquee {
    margin-top: 0.75rem;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    width: calc(100% + 1.5rem);
  }

  .fun-card-full:not(#partners) {
    padding: 0.75rem;
    overflow: hidden;
  }

  .fun-card-full:not(#partners) h4 {
    font-size: 0.75rem;
    line-height: 1.3;
    padding: 0 0.5rem;
  }

  .fun-card-full:not(#partners) .fun-partner-marquee {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
  }

  .fun-partner-marquee-item {
    min-width: 7rem;
    min-height: 3.5rem;
  }

  .fun-footer-grid {
    grid-template-columns: 1fr;
  }

  .fun-partner-grid {
    grid-template-columns: 1fr;
  }

  .lets-talk-grid {
    margin-top: 2rem;
  }

  .lets-talk-kicker {
    font-size: 2rem;
  }

  .lets-talk-title {
    font-size: 1.5rem;
    line-height: 1.25;
  }

  .lets-talk-card {
    padding: 1.5rem 1.1rem;
  }

  .lets-talk-card h2 {
    font-size: 2rem;
  }

  .partners-page {
    padding-top: 1.8rem;
  }

  .partners-hero p {
    font-size: 1rem;
  }

  .partners-logo-row {
    margin-top: 2.1rem;
    will-change: transform;
    animation: fun-partner-marquee-ltr 16s linear infinite;
  }

  .partners-cta-card {
    margin-top: 3rem;
  }

  .partners-cta-left {
    padding: 1.1rem;
  }

  .partners-cta-button {
    max-width: none;
  }

  .partners-logo-item {
    width: 12rem;
    min-width: 12rem;
    min-height: 6rem;
  }

  @keyframes fun-partner-marquee-ltr {
    from {
      transform: translate3d(0, 0, 0);
    }
    to {
      transform: translate3d(-16.666667%, 0, 0);
    }
  }

  .partners-cta-left,
  .partners-cta-right {
    padding: 1.2rem;
  }

  .fun-event-summary {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .fun-game-event-image {
    width: clamp(8.5rem, 34vw, 10.5rem);
    height: clamp(6rem, 22vw, 7.2rem);
  }

  .fun-event-summary-separator {
    display: none;
  }
}