/* ===========================================================
   Patrycja Firkowska - Fotografia sportowa
   Paleta: grafit/czerń złamana + biel złamana + akcent C77DA8
   =========================================================== */

:root {
  --bg-main: #0E0F12;
  --bg-section: #17181C;
  --bg-card: #232428;
  --border: #2E2F34;

  --text-primary: #F5F3EF;
  --text-secondary: #C9C7C2;
  --text-muted: #9A9A9E;
  --text-faint: #6B6B70;

  --accent: #C77DA8;
  --accent-hover: #B36996;
  --accent-light: #D9A3C4;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ================= TŁO STRONY GŁÓWNEJ (zdjęcie cz-b zamiast płaskiego koloru) ================= */
/* Warstwa tła leży za całą treścią strony głównej (position:fixed, z-index ujemny),
   żeby treść przewijała się na wierzchu niezależnie od trybu (statyczne/paralaksa). */
.page-bg-photo {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(100%);
  pointer-events: none;
}

.page-bg-photo.is-parallax {
  /* Tło musi być większe niż okno przeglądarki, żeby po przesunięciu (JS) nie odsłonić
     pustego paska na brzegu - rozciągamy w górę i w dół o zapas, wyśrodkowane przez translateY(-N%). */
  top: -15%;
  bottom: -15%;
  height: 130%;
  will-change: transform;
}

.page-bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg-main);
  pointer-events: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 56px;
}

/* ================= HERO / SLIDER ================= */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background: var(--bg-card);
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2.2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Cień wyłącznie za paskiem menu - reszta zdjęcia zostaje czysta, bez żadnego przyciemnienia */
.nav-shade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.4) 70%,
    rgba(0,0,0,0) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* ---- Menu ---- */

.nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 56px;
  max-width: 100%;
  overflow-x: hidden;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #FFFFFF;
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  color: #FFFFFF;
  font-weight: 600;
  padding-bottom: 6px;
  transition: color 0.25s ease;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a.active {
  color: var(--accent);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 4;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 1px;
  background: var(--text-primary);
}

/* X zamykający menu mobilne - domyślnie (desktop) zawsze ukryty, pokazuje się tylko
   w widoku mobilnym gdy menu jest otwarte (patrz media query @ 860px niżej) */
.nav-close {
  display: none;
}

/* ---- Hero text ---- */

.hero-text {
  position: relative;
  z-index: 3;
  height: calc(100% - 84px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding-bottom: 140px;
}

.hero-text .name {
  font-family: var(--font-display);
  font-size: 110px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 6px;
  text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(0,0,0,0.75), 0 2px 8px rgba(0,0,0,0.85);
}

.hero-text .role {
  font-size: 15px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(245,243,239,0.9);
  text-shadow: 0 2px 14px rgba(0,0,0,0.7), 0 1px 4px rgba(0,0,0,0.8);
}

/* ---- dots ---- */

.hero-dots {
  position: absolute;
  bottom: 96px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-dot {
  width: 20px;
  height: 2px;
  background: rgba(245,243,239,0.35);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  padding: 0;
}

.hero-dot.active {
  background: var(--text-primary);
}

/* ================= HERO - PLACEHOLDER (brak slajdów w panelu) ================= */

.hero-slide-placeholder {
  background: var(--bg-card);
}

.hero-slide-placeholder .placeholder-fill {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-section) 100%);
  color: var(--text-faint);
  font-size: 13px;
  letter-spacing: 1px;
  text-align: center;
  padding: 24px;
}

/* ================= PARTNERS STRIP ================= */

.partners {
  padding: 24px 0;
  background: var(--bg-main);
  border-top: 1px solid rgba(255,255,255,0.03);
  width: 100%;
  overflow: hidden;
}

.partners-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 64px;
  width: max-content;
  animation: scroll-partners var(--partners-speed, 32s) linear infinite;
}

.partners:hover .partners-inner {
  animation-play-state: paused;
}

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

.partners-track {
  display: flex;
  align-items: center;
  gap: 64px;
  flex-shrink: 0;
}

.partners-track img {
  height: var(--partners-height, 22px);
  width: auto;
  max-width: 120px;
  opacity: 0.55;
  filter: grayscale(1) brightness(1.4);
}

.partners-track img.partner-award {
  height: 34px;
  opacity: 0.85;
  filter: none;
}

.partners-track img.partner-card {
  height: 46px;
  border-radius: 6px;
  opacity: 1;
}

.partners-track img[alt="Koszalińska Liga Tenisa"] {
  height: 46px;
}

.partners-track img[alt="Baltic Volley"] {
  height: 30px;
}

.partners-track img[alt^="EPA Gold Winner"] {
  height: 48px;
}

/* Placeholder - szkielet bez logo, zanim panel admina doda partnerów */
.partner-placeholder {
  height: 34px;
  min-width: 100px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border);
  border-radius: 4px;
  color: var(--text-faint);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ================= SOCIAL / TELEFON NA STRONIE GŁÓWNEJ ================= */

.homepage-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 16px 40px;
  background: var(--bg-main);
  border-top: 1px solid rgba(255,255,255,0.03);
  font-size: 13px;
}

.homepage-social a,
.homepage-social span {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.homepage-social a:hover {
  color: var(--accent);
}

/* ================= LIGHTBOX GALERII ================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s ease;
}

.lightbox-close:hover {
  color: var(--accent);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lightbox-prev svg,
.lightbox-next svg {
  width: 20px;
  height: 20px;
  display: block;
}

.lightbox-prev svg { margin-right: 2px; }
.lightbox-next svg { margin-left: 2px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(199,125,168,0.2);
  border-color: var(--accent);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

@media (max-width: 640px) {
  .lightbox-prev,
  .lightbox-next { width: 42px; height: 42px; font-size: 24px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { top: 14px; right: 16px; font-size: 30px; }
  .lightbox-img { max-width: 94vw; max-height: 82vh; }
}

/* ================= SUBPAGE NAV (bez hero) ================= */

.nav-sub {
  position: relative;
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
}

.nav-sub .nav-logo {
  font-family: var(--font-display);
}

/* ================= PAGE WRAP / HEADER ================= */

.page-wrap {
  width: 100%;
  padding: 72px 16px 120px;
}

.page-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 48px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

/* Nagłówek wpisu blogowego - wyśrodkowany (tytuł, eyebrow, data), link powrotu zostaje po lewej */
.page-header-center {
  align-items: center;
  text-align: center;
}

.page-header-center .back-link {
  align-self: flex-start;
}

.empty-note {
  font-size: 14px;
  color: var(--text-faint);
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

.back-link {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--accent);
}

.event-meta {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 2px;
}

.page-header h1,
.about-text h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  color: var(--text-primary);
}

/* ================= PORTFOLIO / GALLERY ================= */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

.filter-pill {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.filter-pill:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.filter-pill.active {
  border-color: var(--accent);
  color: var(--text-primary);
}

/* Flex zamiast grid - niepełny ostatni rząd (np. 1 albo 2 kafle) wyśrodkowuje się
   zamiast trzymać się lewej krawędzi, jak byłoby z grid-template-columns. */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  width: 100%;
}

.gallery-item {
  flex: 0 0 calc(25% - 3px);
  aspect-ratio: 1;
  background-color: var(--bg-card);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 12px;
  border: 1px solid var(--border);
  transition: opacity 0.2s ease;
}

.gallery-item[data-full] {
  cursor: pointer;
}

.gallery-item[data-full]:hover {
  opacity: 0.85;
}

.gallery-item:nth-child(even) {
  background-color: #2A2B30;
}

/* Kategorie/wydarzenia - kafle z miniaturką i tytułem na środku */
.event-item {
  position: relative;
  flex: 0 0 calc(25% - 3px);
  aspect-ratio: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--border);
}

.event-item .event-thumb {
  position: absolute;
  inset: 0;
  background: var(--bg-card);
}

.event-item:nth-child(even) .event-thumb {
  background: #2A2B30;
}

.event-item .event-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,15,18,0.15) 0%, rgba(14,15,18,0.55) 100%);
  transition: background 0.25s ease;
}

.event-item:hover .event-overlay {
  background: linear-gradient(180deg, rgba(14,15,18,0.35) 0%, rgba(199,125,168,0.45) 100%);
}

.event-item .event-title {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-primary);
  padding: 0 24px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Placeholder - szkielet kafla wydarzenia zanim panel admina doda galerię */
.event-item-placeholder .event-title {
  color: var(--text-faint);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 1px;
  text-shadow: none;
}

/* ================= O MNIE ================= */

.about-block {
  display: flex;
  gap: 56px;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

.about-photo {
  flex: 0 0 420px;
  max-width: 100%;
  height: 500px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 12px;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 560px;
}

.about-text h1 {
  line-height: 1.3;
}

.about-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.btn-accent {
  align-self: flex-start;
  margin-top: 4px;
  padding: 12px 32px;
  background: var(--accent);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--bg-main);
  font-weight: 600;
  transition: background 0.2s ease;
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-accent {
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

/* ================= BLOG ================= */

.blog-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  width: 100%;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding-bottom: 16px;
  transition: border-color 0.2s ease;
  flex: 0 0 calc(25% - 3px);
}

.blog-card:hover {
  border-color: var(--accent);
}

.blog-card .blog-thumb {
  height: 220px;
  background: var(--bg-section);
}

.blog-card .blog-date,
.blog-card .blog-title,
.blog-card .blog-excerpt {
  padding-left: 16px;
  padding-right: 16px;
}

.blog-date {
  font-size: 12px;
  color: var(--text-faint);
}

.blog-title {
  font-size: 17px;
  color: var(--text-primary);
  font-weight: 600;
}

.blog-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Placeholder - szkielet karty bloga zanim panel admina doda wpis */
.blog-card-placeholder .blog-date,
.blog-card-placeholder .blog-title,
.blog-card-placeholder .blog-excerpt {
  color: var(--text-faint);
}

/* ================= BLOG - POJEDYNCZY WPIS ================= */

.post-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

.post-cover {
  width: 100%;
  height: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 12px;
}

.post-header {
  margin-bottom: 40px;
}

.post-header-notop {
  margin-top: 8px;
}

.post-gallery-wrap {
  width: 100%;
  margin: 40px 0;
}

.post-header h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.3;
  color: var(--text-primary);
  margin-top: 10px;
}

.post-date {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 12px;
}

.post-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.post-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  color: var(--text-primary);
  margin-top: 16px;
}

.post-body .post-img {
  width: 100%;
  height: 340px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 12px;
  margin: 12px 0;
}

.post-footer {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* ================= EDYTOR WPISU ================= */

.editor-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

.page-header-flat {
  margin-top: 8px;
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

.editor-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 6px;
}

.editor-step {
  margin-top: 40px;
}

.editor-step-label {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.format-choice {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.format-card {
  cursor: pointer;
  display: block;
}

.format-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.format-card-inner {
  padding: 20px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-section);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s ease, background 0.2s ease;
  height: 100%;
}

.format-card:hover .format-card-inner {
  border-color: var(--accent-light);
}

.format-card.is-selected .format-card-inner {
  border-color: var(--accent);
  background: var(--bg-card);
}

.format-icon {
  font-size: 20px;
  color: var(--accent);
}

.format-name {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
}

.format-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.editor-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.editor-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.editor-form input,
.editor-form textarea {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  resize: vertical;
}

.editor-form input::placeholder,
.editor-form textarea::placeholder {
  color: var(--text-faint);
}

.editor-form input:focus,
.editor-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.upload-box {
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  background: var(--bg-section);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.upload-box:hover {
  border-color: var(--accent);
}

.upload-box-multi {
  padding: 56px 20px;
}

.upload-box-text {
  font-size: 13px;
  color: var(--text-faint);
}

.editor-actions {
  display: flex;
  gap: 16px;
  margin-top: 48px;
}

.btn-ghost {
  padding: 12px 32px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  font-family: var(--font-body);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.editor-examples {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.editor-examples-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ================= OFERTA ================= */

.no-price-note {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 4px;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}

.offer-card {
  padding: 32px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.offer-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
}

.offer-title {
  font-size: 17px;
  color: var(--text-primary);
  font-weight: 600;
}

.offer-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.offer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 40px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.offer-cta-text {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-primary);
}

/* ================= KONTAKT ================= */

.contact-block {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  margin-bottom: 64px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

.contact-form {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-faint);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form button {
  align-self: flex-start;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.contact-info {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.contact-value {
  font-size: 15px;
  color: var(--text-primary);
}

.contact-social-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.contact-social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.contact-social-link:hover { color: var(--accent); }

.contact-social-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.contact-social-icon svg {
  width: 100%;
  height: 100%;
}

.map-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

.map-placeholder {
  height: 340px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 13px;
  text-align: center;
  padding: 24px;
}

.map-live {
  height: 420px;
  width: 100%;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

/* ================= BLOKI TREŚCI WPISU (wpis.php) ================= */

.blog-post-body {
  max-width: 760px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.block-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  color: var(--text-primary);
  margin-top: 12px;
}

.block-subheading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  color: var(--text-secondary);
}

.block-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.block-image {
  width: 100%;
  max-height: 640px;
  min-height: 220px;
  aspect-ratio: 4 / 3;
  background-color: var(--bg-card);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
}

/* Zdjęcia pionowe (portret) - węższy, wyśrodkowany kontener zamiast rozciągania na całą szerokość kolumny */
.block-image.is-portrait {
  max-width: 420px;
  aspect-ratio: 3 / 4;
  margin-left: auto;
  margin-right: auto;
}

.block-gallery {
  margin: 8px 0;
}

.block-placeholder {
  border: 1px dashed var(--border);
  border-radius: 4px;
  color: var(--text-faint);
  font-size: 13px;
  padding: 20px;
  text-align: center;
}

.block-heading-placeholder {
  font-size: 15px;
  letter-spacing: 1px;
}

.block-text-placeholder {
  line-height: 1.7;
}

.block-image-placeholder {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================= FOOTER ================= */

.site-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 56px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-legal {
  font-size: 11px;
  color: var(--text-faint);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 860px) {
  .container { padding: 0 24px; }
  .nav { padding: 22px 24px; }
  .nav-logo {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 55vw;
  }
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(14,15,18,0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    font-size: 17px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateX(0);
    pointer-events: auto;
  }
  .nav-toggle { display: flex; position: relative; z-index: 4; }

  .nav-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
  }
  .nav-links.open .nav-close { display: flex; }
  /* Przycisk zamknięcia menu jest teraz w <li>, ale pozycjonowany absolutnie (position:absolute
     dziedziczone przez .nav-close) - samo <li> nie może zajmować miejsca w kolumnowym gap:32px,
     inaczej reszta linków menu "zjeżdża" w dół i zaczyna zachodzić na krawędź ekranu. */
  .nav-close-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    margin: 0;
  }
  .hero-text { padding-bottom: 110px; }
  .hero-text .name { font-size: 64px; letter-spacing: 3px; }
  .partners { padding: 20px 0; }
  .partners-track img,
  .partner-placeholder { max-width: 90px; }
  .nav-shade { height: 100px; }

  .page-wrap { padding: 48px 8px 80px; }
  .site-footer { padding: 32px 24px; }
  .page-header,
  .filters,
  .about-block,
  .contact-block,
  .map-section,
  .post-wrap { padding-left: 24px; padding-right: 24px; }
  .post-cover { height: 260px; }
  .post-header h1 { font-size: 26px; }
  .editor-wrap { padding-left: 24px; padding-right: 24px; }
  .format-choice { grid-template-columns: 1fr; }
  .editor-actions { flex-direction: column; }
  .editor-actions .btn-accent,
  .editor-actions .btn-ghost { width: 100%; text-align: center; }
  .gallery-item,
  .event-item { flex-basis: calc(50% - 2px); }
  .blog-card { flex-basis: calc(50% - 2px); }
  .offer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .about-block { gap: 32px; }
  .about-photo { flex: 1 1 100%; height: 360px; }
}

@media (max-width: 480px) {
  .hero { min-height: 560px; }
  /* Na wąskim i wysokim ekranie telefonu object-position:center 30% (ustawione pod
     szerokie kadry desktopowe) przycina zdjęcie za mocno - widać tylko wąski pas na środku.
     Na mobile pokazujemy więcej kadru i trochę wyżej (twarze/sylwetki zwykle w górnej połowie). */
  .hero-slide img { object-position: center 20%; }
  .hero-text .name { font-size: 42px; letter-spacing: 2px; }
  .hero-text .role { font-size: 11px; letter-spacing: 3px; }

  .gallery-item,
  .event-item { flex-basis: 100%; }
  .blog-card { flex-basis: 100%; }
  .offer-grid { grid-template-columns: 1fr; }
  .page-header h1,
  .about-text h1 { font-size: 26px; }
  .site-footer { align-items: center; }
  .partners { padding: 18px 0; }
  .partners-track img,
  .partner-placeholder { max-width: 72px; }
}
