:root {
  --yellow: #ecd229;
  --yellow-deep: #d4bb18;
  --ink: #141414;
  --ink-soft: #3a3a3a;
  --paper: #f6f4ee;
  --paper-2: #eeebe3;
  --white: #fffcf7;
  --line: rgba(20, 20, 20, 0.1);
  --kolbudy: #5a9e1c;
  --przyjazn: #e85d04;
  --gdynia: #0a8494;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  --font: "Outfit", system-ui, sans-serif;
  --wrap: min(1120px, calc(100% - 2.4rem));
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

::selection {
  background: var(--ink);
  color: var(--yellow);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
}

h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--yellow);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--ink);
  color: var(--yellow);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(20, 20, 20, 0.22);
  color: var(--ink);
}

.section {
  padding: 5rem 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.2rem;
}

.section-head.light {
  color: var(--white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
}

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

.site-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:not(.btn):hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 10px 9px;
  cursor: pointer;
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 6px 0;
}

.hero {
  position: relative;
  background: var(--paper);
  padding: 3.4rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 0.75rem;
  opacity: 0.62;
}

.lede {
  font-size: 1.12rem;
  max-width: 34rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.4rem 0 1.8rem;
}

.hero-meta {
  display: grid;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.hero-meta span {
  display: inline-block;
  min-width: 6.4rem;
  font-weight: 600;
  color: var(--ink);
}

.hero-photos {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.7rem;
  min-height: 28rem;
}

.hero-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero-photos img:first-child {
  grid-row: span 2;
}

.marquee {
  width: 100%;
  max-width: 100%;
  background: var(--ink);
  color: var(--yellow);
  overflow: hidden;
  padding: 0.7rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: slide 32s linear infinite;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
  gap: 2.2rem;
  padding-right: 2.2rem;
}

.marquee-track span::after {
  content: " · ";
  color: rgba(255, 255, 255, 0.35);
}

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

.about-grid,
.event-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-photos {
  position: relative;
  min-height: 26rem;
}

.about-main {
  width: 78%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-side {
  position: absolute;
  width: 46%;
  right: 0;
  bottom: 1.4rem;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-badge {
  position: absolute;
  left: 6%;
  bottom: -0.6rem;
  background: var(--yellow);
  padding: 0.55rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 10px;
}

.about-badge img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
}

.about-badge p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stats dt {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stats dd {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.activities {
  background: var(--paper-2);
}

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

.activity {
  background: var(--white);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.activity:hover {
  transform: translateY(-4px);
}

.activity img {
  height: 180px;
  object-fit: cover;
}

.activity div {
  padding: 1.1rem 1.15rem 1.3rem;
}

.activity p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.activity-cta {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 500;
  margin: 2rem 0 0;
  color: var(--ink-soft);
}

.meetings {
  background: var(--ink);
  color: var(--white);
}

.meeting-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.meeting {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.25rem;
  min-height: 20rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.meeting:hover {
  transform: translateY(-4px);
}

.meeting::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
}

.m-kolbudy::before { background: var(--kolbudy); }
.m-przyjazn::before { background: var(--przyjazn); }
.m-gdynia::before { background: var(--gdynia); }

.meeting-day {
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0.35rem 0 0.7rem;
}

.meeting h3 {
  font-size: 1.7rem;
  margin-bottom: 0.2em;
}

.meeting-place {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.meeting-tags {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.meeting a {
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.6rem;
}

.meeting a:hover {
  text-decoration: underline;
}

.event {
  background: var(--yellow);
}

.event-copy h2 a {
  text-decoration: none;
}

.event-copy h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.event-kicker {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  opacity: 0.7;
}

.event-lead {
  font-size: 1.1rem;
  margin-top: -0.35rem;
  color: var(--ink-soft);
}

.event-facts {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0;
}

.event-facts li {
  display: flex;
  gap: 1rem;
  border-top: 1px solid rgba(20, 20, 20, 0.12);
  padding: 0.55rem 0;
}

.event-facts span {
  font-weight: 600;
  min-width: 4.5rem;
  font-size: 0.85rem;
}

.event-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.event-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.event-chips li {
  background: var(--ink);
  color: var(--yellow);
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

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

.gallery-grid button {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery-grid button:nth-child(1),
.gallery-grid button:nth-child(7) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-grid button:nth-child(5),
.gallery-grid button:nth-child(10) {
  grid-row: span 2;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-grid button:hover img {
  transform: scale(1.04);
}

.partners h2 {
  margin-bottom: 1.5rem;
}

.partner-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.partner-cols ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.15rem;
}

.partner-cols li {
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
}

.partner-cols a {
  text-decoration: none;
  font-weight: 600;
}

.partner-cols a:hover {
  color: var(--gdynia);
}

.contact {
  background: var(--paper-2);
}

.contact-lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin-top: -0.2rem;
}

address {
  font-style: normal;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem;
}

address a {
  text-decoration: none;
  font-weight: 600;
}

address a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  background: var(--ink);
  padding: 2rem 0;
  color: var(--paper);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-gryf {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  margin-bottom: 0.85rem;
}

.footer-inner p {
  margin: 0;
  font-weight: 500;
}

.footer-made {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(236, 210, 41, 0.22);
  color: #e4c56a;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  width: 100%;
}

.footer-made img {
  display: block;
  width: 1.55rem;
  height: 1.55rem;
  max-width: none;
  flex-shrink: 0;
}

.footer-made:hover,
.footer-made:focus-visible {
  color: #fff8ec;
}

.lightbox {
  border: 0;
  padding: 0;
  background: var(--ink);
  max-width: min(92vw, 980px);
  border-radius: var(--radius);
}

.lightbox::backdrop {
  background: rgba(8, 8, 8, 0.78);
}

.lightbox img {
  max-height: 84vh;
  width: 100%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  right: 0.4rem;
  top: 0.2rem;
  background: var(--yellow);
  border: 0;
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 8px;
}

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .event-grid,
  .contact-grid,
  .activity-grid,
  .meeting-grid,
  .partner-cols {
    grid-template-columns: 1fr;
  }

  .hero-photos {
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .hero-photos img {
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .hero-photos img:first-child {
    grid-row: auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 130px;
  }

  .nav-toggle {
    display: block;
    z-index: 60;
  }

  .site-nav {
    position: fixed;
    inset: 0 0 auto;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 5.2rem 1.4rem 1.4rem;
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }

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

  .nav-cta {
    width: 100%;
  }

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

  .about-photos {
    min-height: 22rem;
  }

  .meeting {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .gallery-grid img { transition: none; }
}
