/*
Theme Name: Borodo Arch
Theme URI: https://borodo-arch.pl
Author: NAAB.pl Agencja Kreatywna
Author URI: https://naab.pl
Description: Skórka dla Pracowni Architektonicznej Agnieszki Borodo. Custom theme — editorial luxury architecture aesthetic.
Version: 1.0.0
License: Proprietary
Text Domain: borodo-arch
Tags: architecture, portfolio, one-page, custom
*/

/* ─── CSS VARIABLES ─────────────────────────────────── */
:root {
  --ink:          #1a1714;
  --ink-soft:     #4a4540;
  --paper:        #f5f2ee;
  --paper-warm:   #ede9e3;
  --accent:       #b8905a;
  --accent-light: #d4b48a;
  --white:        #fdfaf6;
  --line:         rgba(26,23,20,0.12);
  --serif:        'Cormorant Garamond', Georgia, serif;
  --sans:         'DM Sans', system-ui, sans-serif;
}

/* ─── RESET & BASE ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ─── NAVIGATION ─────────────────────────────────────── */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 64px;
  background: rgba(245,242,238,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: padding .3s ease, border-color .3s ease, background .3s ease;
}
#site-nav.scrolled {
  padding: 13px 64px;
  border-color: var(--line);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
}
.nav-logo span {
  display: block;
  font-size: 0.65rem;
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 2px;
}

#primary-nav {
  display: flex; gap: 36px; list-style: none;
}
#primary-nav a {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
  transition: color .2s;
}
#primary-nav a::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .3s ease;
}
#primary-nav a:hover { color: var(--ink); }
#primary-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ink);
  padding: 10px 24px;
  text-decoration: none;
  transition: background .2s;
}
.nav-cta:hover { background: var(--accent); color: var(--white); }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 1.5px;
  background: var(--ink);
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── BUTTONS ────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--ink); color: var(--white);
  padding: 14px 32px; text-decoration: none;
  border: none; cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); color: var(--white); }

.btn-ghost {
  display: inline-block;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); }

.btn-ghost-light {
  display: inline-block;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(245,242,238,0.5); text-decoration: none;
  border-bottom: 1px solid rgba(245,242,238,0.25);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.btn-ghost-light:hover { color: var(--accent-light); border-color: var(--accent-light); }

/* ─── SECTION LABELS & HEADINGS ──────────────────────── */
.section-label {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.section-label--light { color: var(--accent-light); }
.section-label--light::before { background: var(--accent-light); }

.section-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 300; line-height: 1.1;
  color: var(--ink); margin-bottom: 28px;
}
.section-heading em { font-style: italic; }
.section-heading--light { color: var(--paper); }

.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 52px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.section-header--dark { border-color: rgba(245,242,238,0.1); }

/* ─── REVEAL ANIMATIONS ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ─── HERO (front-page) ──────────────────────────────── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 80px;
  overflow: hidden;
}

.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 64px 140px 80px;
  position: relative;
}
.hero-eyebrow {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--accent); }

.hero-name {
  font-family: var(--serif);
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 300; line-height: 1.05;
  color: var(--ink); margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.hero-name em { font-style: italic; color: var(--accent); }

.hero-title {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.7rem);
  font-weight: 300; color: var(--ink-soft);
  letter-spacing: 0.04em; margin-bottom: 36px;
}
.hero-desc {
  font-size: 0.9rem; line-height: 1.85;
  color: var(--ink-soft); max-width: 440px;
  margin-bottom: 44px;
  border-left: 2px solid var(--accent-light);
  padding-left: 20px;
}
.hero-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

.hero-stats {
  position: absolute; bottom: 48px; left: 80px;
  display: flex; gap: 48px;
}
.stat-num {
  font-family: var(--serif); font-size: 2.2rem; font-weight: 300;
  color: var(--ink); line-height: 1;
}
.stat-num sup { font-size: 1rem; color: var(--accent); }
.stat-label {
  font-size: 0.7rem; font-weight: 300; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-soft); margin-top: 4px;
}

.hero-right {
  position: relative; background: var(--ink); overflow: hidden;
}
.hero-geo {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.hero-geo::before {
  content: ''; position: absolute; top: 15%; right: 15%;
  width: 55%; height: 68%;
  border: 1px solid rgba(184,144,90,.2);
}
.hero-geo::after {
  content: ''; position: absolute; top: 23%; right: 23%;
  width: 38%; height: 52%;
  border: 1px solid rgba(184,144,90,.1);
}
.hero-photo {
  position: absolute; inset: 0;
  background-position: center top; background-size: cover; background-repeat: no-repeat;
  background-color: #2a2520;
}
.hero-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(26,23,20,.55) 100%);
}
.hero-photo-caption {
  position: absolute; bottom: 28px; left: 28px;
  color: rgba(245,242,238,.45); font-size: 0.65rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  font-family: var(--sans); font-weight: 300; z-index: 2;
}
.hero-scroll {
  position: absolute; bottom: 28px; right: 28px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(245,242,238,.35);
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px; height: 40px; background: rgba(184,144,90,.4);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ─── ABOUT SECTION (front-page) ─────────────────────── */
#about {
  display: grid; grid-template-columns: 1fr 1fr;
}
.about-image {
  position: relative; overflow: hidden; background: var(--paper-warm);
  min-height: 600px;
}
.about-image img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  filter: grayscale(15%) contrast(1.04);
  transition: transform .8s ease;
}
.about-image:hover img { transform: scale(1.03); }
.about-image-tag {
  position: absolute; bottom: 32px; left: 0;
  background: var(--accent); color: var(--white);
  padding: 10px 22px;
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-family: var(--sans); font-weight: 400;
}
.about-content {
  padding: 88px 80px 80px 72px;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--white);
}
.about-text {
  font-size: 0.92rem; line-height: 1.85;
  color: var(--ink-soft); margin-bottom: 18px;
}

.skills-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: 36px; margin-bottom: 36px;
}
.skill-item {
  padding: 20px 18px;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color .2s, background .2s;
}
.skill-item:hover { border-color: var(--accent); background: var(--white); }
.skill-num {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 300;
  color: var(--accent-light); line-height: 1; margin-bottom: 6px;
}
.skill-name {
  font-size: 0.8rem; font-weight: 500; color: var(--ink);
  margin-bottom: 5px; letter-spacing: 0.02em;
}
.skill-desc { font-size: 0.76rem; color: var(--ink-soft); line-height: 1.55; }

/* ─── PROJECTS SECTION (front-page) ─────────────────── */
#realizacje { padding: 100px 80px; background: var(--paper); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.project-card {
  position: relative; overflow: hidden;
  background: var(--ink);
  aspect-ratio: 3/4; cursor: pointer;
}
.project-card.featured { grid-row: span 2; aspect-ratio: auto; }

.project-thumb {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.82) saturate(.9);
  transition: transform .7s ease, filter .4s ease;
}
.project-card:hover .project-thumb { transform: scale(1.06); filter: brightness(.6) saturate(.8); }

.project-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 32px 28px 28px;
  background: linear-gradient(transparent, rgba(26,23,20,.88));
  transform: translateY(6px);
  transition: transform .4s ease;
}
.project-card:hover .project-info { transform: none; }

.project-cat {
  font-size: 0.63rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-light); font-family: var(--sans); font-weight: 300;
  margin-bottom: 5px;
}
.project-name {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 300;
  color: var(--white); line-height: 1.2;
}
.project-read {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(245,242,238,.55); text-decoration: none;
  margin-top: 12px;
  opacity: 0; transform: translateY(4px);
  transition: opacity .3s, transform .3s, color .2s;
}
.project-card:hover .project-read { opacity: 1; transform: none; }
.project-read:hover { color: var(--accent-light); }
.project-read::after { content: '→'; }

/* ─── GALLERY SECTION (front-page) ──────────────────── */
#galeria { padding: 100px 80px; background: var(--ink); }
#galeria .section-header { border-color: rgba(245,242,238,.1); }

.gallery-masonry { columns: 4; column-gap: 3px; margin-top: 48px; }
.gallery-item {
  break-inside: avoid; display: block;
  margin-bottom: 3px; position: relative;
  overflow: hidden; cursor: pointer;
}
.gallery-item img {
  width: 100%; display: block;
  filter: brightness(.82) saturate(.8);
  transition: filter .4s, transform .6s;
}
.gallery-item:hover img { filter: brightness(.55); transform: scale(1.04); }
.gallery-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay-icon {
  font-family: var(--serif); font-size: 2rem; font-weight: 300;
  color: var(--white);
  width: 52px; height: 52px;
  border: 1px solid rgba(255,255,255,.4);
  display: flex; align-items: center; justify-content: center;
}

/* ─── CONTACT SECTION (front-page) ──────────────────── */
#kontakt { display: grid; grid-template-columns: 1fr 1fr; }

.contact-left {
  background: var(--paper-warm); padding: 88px 72px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.contact-left::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 180px; height: 180px; border: 1px solid rgba(184,144,90,.18);
  transform: rotate(12deg); pointer-events: none;
}
.contact-left::after {
  content: ''; position: absolute; bottom: 60px; right: 60px;
  width: 100px; height: 100px; border: 1px solid rgba(184,144,90,.12);
  transform: rotate(-6deg); pointer-events: none;
}

.contact-items { margin-top: 36px; display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; background: var(--white);
  border-left: 2px solid transparent;
  transition: border-color .2s;
}
.contact-item:hover { border-color: var(--accent); }
.contact-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  background: var(--paper); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.contact-info-label {
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 400; margin-bottom: 2px;
}
.contact-info-val {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 400;
  color: var(--ink); text-decoration: none; display: block;
}
.contact-info-val:hover { color: var(--accent); }

.contact-right {
  background: var(--ink); padding: 88px 72px;
  display: flex; flex-direction: column; justify-content: center;
}
.contact-form { margin-top: 4px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 0.65rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(245,242,238,.35); margin-bottom: 7px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; background: rgba(245,242,238,.07);
  border: 1px solid rgba(245,242,238,.12); color: var(--paper);
  padding: 13px 16px; font-family: var(--sans); font-size: 0.9rem;
  outline: none; resize: vertical;
  transition: border-color .2s, background .2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(245,242,238,.2); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); background: rgba(245,242,238,.1); }
.form-group textarea { min-height: 100px; }
.form-submit {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--accent); color: var(--white);
  border: none; padding: 15px 36px; cursor: pointer;
  transition: background .2s, transform .2s;
}
.form-submit:hover { background: var(--accent-light); transform: translateY(-1px); }

/* ─── FOOTER ─────────────────────────────────────────── */
#site-footer {
  background: var(--ink); padding: 28px 80px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(245,242,238,.07);
  flex-wrap: wrap; gap: 12px;
}
.footer-logo {
  font-family: var(--serif); font-size: 0.95rem; font-weight: 300;
  color: rgba(245,242,238,.35);
}
.footer-credit {
  font-size: 0.7rem; color: rgba(245,242,238,.22); letter-spacing: 0.05em;
}
.footer-credit a {
  color: rgba(184,144,90,.55); text-decoration: none;
  transition: color .2s;
}
.footer-credit a:hover { color: var(--accent-light); }
.footer-ig {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(245,242,238,.3); text-decoration: none;
  transition: color .2s;
}
.footer-ig:hover { color: var(--accent-light); }

/* ─── SINGLE POST (realizacje / o mnie) ─────────────── */
.single-hero {
  min-height: 55vh; position: relative;
  display: flex; align-items: flex-end;
  padding: 0; overflow: hidden;
  margin-top: 80px;
}
.single-hero-bg {
  position: absolute; inset: 0;
  background-position: center; background-size: cover;
  background-color: #2a2520;
}
.single-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(transparent 20%, rgba(26,23,20,.75) 100%);
}
.single-hero-content {
  position: relative; z-index: 2;
  padding: 60px 80px 56px;
  width: 100%;
}
.single-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(245,242,238,.45); text-decoration: none;
  margin-bottom: 24px;
  transition: color .2s;
}
.single-back::before { content: '←'; }
.single-back:hover { color: var(--accent-light); }

.single-cat {
  font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-light); font-family: var(--sans); font-weight: 300;
  margin-bottom: 12px;
}
.single-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 300; line-height: 1.08;
  color: var(--white);
}
.single-meta {
  margin-top: 16px; font-size: 0.72rem; letter-spacing: 0.1em;
  color: rgba(245,242,238,.35); font-family: var(--sans);
}

.single-body {
  max-width: 860px; margin: 0 auto;
  padding: 72px 80px 100px;
}
.single-body .entry-content { font-size: 1rem; line-height: 1.85; color: var(--ink-soft); }
.single-body .entry-content p { margin-bottom: 1.4em; }
.single-body .entry-content h2 {
  font-family: var(--serif); font-size: 1.9rem; font-weight: 300;
  color: var(--ink); margin: 2em 0 0.6em;
}
.single-body .entry-content h3 {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 400;
  color: var(--ink); margin: 1.6em 0 0.5em;
}
.single-body .entry-content img {
  width: 100%; margin: 2em 0;
}
.single-body .entry-content ul,
.single-body .entry-content ol {
  margin: 1em 0 1em 1.5em;
}
.single-body .entry-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 24px; margin: 2em 0;
  background: var(--paper-warm);
  font-family: var(--serif); font-size: 1.2rem;
  font-style: italic; color: var(--ink);
}

.single-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 3px; margin: 2.5em 0;
}
.single-gallery img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
}

.single-nav {
  display: flex; justify-content: space-between;
  padding: 40px 80px; background: var(--paper-warm);
  border-top: 1px solid var(--line);
  flex-wrap: wrap; gap: 20px;
}
.single-nav a {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none;
  transition: color .2s;
}
.single-nav a:hover { color: var(--accent); }
.single-nav-next { text-align: right; }
.single-nav span {
  display: block; font-family: var(--serif); font-size: 1.1rem;
  font-weight: 300; color: var(--ink); margin-top: 4px;
}

/* ─── ARCHIVE (all realizacje) ───────────────────────── */
.archive-header {
  margin-top: 80px;
  padding: 80px 80px 56px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.archive-header .section-heading { margin-bottom: 0; }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 2px;
  background: var(--ink);
}
.archive-card {
  position: relative; overflow: hidden;
  aspect-ratio: 3/4; cursor: pointer;
  background: #2a2520;
}
.archive-thumb {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.85) saturate(.85);
  transition: transform .7s ease, filter .4s ease;
}
.archive-card:hover .archive-thumb { transform: scale(1.07); filter: brightness(.55) saturate(.8); }
.archive-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px 24px 24px;
  background: linear-gradient(transparent, rgba(26,23,20,.9));
  transform: translateY(5px);
  transition: transform .4s;
}
.archive-card:hover .archive-info { transform: none; }
.archive-cat {
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-light); margin-bottom: 5px;
}
.archive-title {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 300;
  color: var(--white); line-height: 1.2; text-decoration: none;
  display: block;
}
.archive-read {
  display: inline-flex; gap: 6px;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(245,242,238,.5); text-decoration: none;
  margin-top: 10px;
  opacity: 0; transform: translateY(4px);
  transition: opacity .3s, transform .3s;
}
.archive-card:hover .archive-read { opacity: 1; transform: none; }
.archive-read:hover { color: var(--accent-light); }
.archive-read::after { content: '→'; }

/* ─── PAGE 404 / NO POSTS ────────────────────────────── */
.empty-state {
  padding: 160px 80px; text-align: center;
}
.empty-state p { color: var(--ink-soft); margin-top: 12px; }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1100px) {
  #site-nav { padding: 16px 36px; }
  #site-nav.scrolled { padding: 12px 36px; }
  #primary-nav { display: none; }
  .nav-toggle { display: flex; }

  .mobile-menu {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--ink); z-index: 199;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 32px; opacity: 0; pointer-events: none;
    transition: opacity .3s;
  }
  .mobile-menu.open { opacity: 1; pointer-events: all; }
  .mobile-menu a {
    font-family: var(--serif); font-size: 2.2rem; font-weight: 300;
    color: var(--paper); text-decoration: none;
    transition: color .2s;
  }
  .mobile-menu a:hover { color: var(--accent); }

  #hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 100px 40px 72px; }
  .hero-right { height: 55vw; min-height: 300px; }
  .hero-stats { left: 40px; bottom: 32px; }

  #about { grid-template-columns: 1fr; }
  .about-image { min-height: 55vw; }
  .about-content { padding: 56px 40px; }

  #realizacje { padding: 72px 36px; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .project-card.featured { grid-row: span 1; aspect-ratio: 3/4; }

  #galeria { padding: 72px 36px; }
  .gallery-masonry { columns: 3; }

  #kontakt { grid-template-columns: 1fr; }
  .contact-left { padding: 64px 40px; }
  .contact-right { padding: 64px 40px; }

  #site-footer { padding: 24px 36px; }

  .single-hero { min-height: 45vh; }
  .single-hero-content { padding: 48px 40px 44px; }
  .single-body { padding: 56px 40px 80px; }
  .single-nav { padding: 32px 40px; }

  .archive-header { padding: 72px 40px 48px; }
  .archive-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero-left { padding: 88px 24px 64px; }
  .hero-right { height: 70vw; }
  .hero-stats { flex-direction: column; gap: 20px; left: 24px; bottom: 24px; }

  #realizacje { padding: 56px 20px; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { aspect-ratio: 3/4; }

  #galeria { padding: 56px 20px; }
  .gallery-masonry { columns: 2; }

  .skills-grid { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 14px; }

  .contact-left, .contact-right { padding: 52px 24px; }
  #site-footer { padding: 20px 24px; flex-direction: column; text-align: center; }

  .single-hero-content { padding: 40px 24px 36px; }
  .single-body { padding: 48px 24px 64px; }
  .single-gallery { grid-template-columns: 1fr; }
  .single-nav { padding: 28px 24px; }

  .archive-header { padding: 60px 24px 40px; }
  .archive-grid { grid-template-columns: 1fr; }
}

/* ─── LIGHTBOX ───────────────────────────────────────── */
#borodo-lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(16,14,12,.96);
  align-items: center; justify-content: center;
}
#borodo-lightbox.lb-open { display: flex; }

.lb-inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  max-width: 90vw; max-height: 90vh;
}
#lb-img {
  max-width: 88vw; max-height: 84vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
}
#lb-counter {
  margin-top: 14px;
  font-size: 0.7rem; letter-spacing: 0.2em;
  color: rgba(245,242,238,.3); font-family: var(--sans);
}

.lb-close {
  position: fixed; top: 24px; right: 32px;
  background: none; border: none; cursor: pointer;
  color: rgba(245,242,238,.5); font-size: 2.2rem; line-height: 1;
  transition: color .2s;
  z-index: 9001;
}
.lb-close:hover { color: var(--accent-light); }

.lb-prev,
.lb-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(245,242,238,.08); border: 1px solid rgba(245,242,238,.12);
  color: rgba(245,242,238,.5); cursor: pointer;
  width: 48px; height: 64px; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
  z-index: 9001;
}
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-prev:hover, .lb-next:hover {
  background: rgba(184,144,90,.15);
  color: var(--accent-light);
}
.lb-prev:disabled, .lb-next:disabled { opacity: .2; cursor: default; }

/* Swipe hint animation on first open */
@keyframes lb-fadein {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}
#lb-img { animation: lb-fadein .25s ease; }

/* ─── SOCIAL SHARE BOX ───────────────────────────────── */
.share-box {
  max-width: 860px; margin: 0 auto;
  padding: 0 80px 48px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}
.share-label {
  font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 16px; font-family: var(--sans);
}
.share-buttons {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 0.75rem; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: var(--white); color: var(--ink-soft);
  text-decoration: none; cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.share-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.share-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--paper); }

.share-fb:hover { border-color: #1877f2; color: #1877f2; }
.share-li:hover { border-color: #0a66c2; color: #0a66c2; }

.share-copy.copied,
.share-copy.copied:hover {
  border-color: #2d9b5a; color: #2d9b5a; background: rgba(45,155,90,.05);
}

/* Ukryj natywny share jeśli API niedostępne */
.share-native { display: none; }
.share-native.available { display: inline-flex; }

@media (max-width: 1100px) {
  .share-box { padding: 36px 40px 40px; }
}
@media (max-width: 640px) {
  .share-box { padding: 28px 24px 36px; }
  .share-btn { font-size: 0.7rem; padding: 9px 14px; }
}

/* ─── POPRAWKI v1.2 ──────────────────────────────────── */

/* Share-box WEWNĄTRZ single-body — resetujemy stary padding */
.single-body .share-box {
  max-width: none;
  padding: 36px 0 0;
  margin: 0;
}
.single-body .share-buttons {
  flex-wrap: wrap;
  gap: 8px;
}
.single-body .share-btn {
  flex-shrink: 0;
}

/* About-image placeholder gdy brak zdjęcia */
.about-image-placeholder {
  width: 100%; height: 100%;
  background: var(--paper-warm);
  display: flex; align-items: center; justify-content: center;
  min-height: 500px;
}
.about-image-placeholder span {
  font-family: var(--serif); font-size: 1rem;
  color: var(--accent-light); letter-spacing: .06em;
  text-align: center; padding: 20px;
}

/* Hero-photo gdy brak zdjęcia — geometria zostaje, tło inkowe */
.hero-photo--empty {
  background: linear-gradient(135deg, #2d2520 0%, #1a1714 100%);
}

/* Ukryj stare przyciski Elementora które mogą zostać w DOM */
.e-gallery-container ~ [class*="e-gallery"],
.eael-gallery-navigation,
.eael-load-more-button-wrap,
.elementor-gallery__filters,
/* Przyciski × − − z Elementor Gallery Widget */
.e-gallery-navigation,
.elementor-swiper-button {
  display: none !important;
}

/* Single-hero: upewniamy się że tło jest widoczne */
.single-hero {
  background: var(--ink); /* fallback gdy brak zdjęcia */
}
.single-hero-bg {
  background-color: #2a2520; /* widoczne gdy url nie załaduje */
}

/* Single nav — spójny wygląd */
.single-nav-prev,
.single-nav-next {
  display: flex;
  flex-direction: column;
}
.single-nav a {
  display: inline-flex;
  flex-direction: column;
}
.single-nav span {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--ink);
  margin-top: 4px;
  white-space: normal;
  max-width: 340px;
}

/* Galeria — upewniamy się że gallery-item jest clickable, nie <a> */
.gallery-item {
  cursor: pointer;
}

/* Lightbox — upewniamy się że prev/next nie są disabled wizualnie na 1 zdjęciu */
.lb-prev:disabled,
.lb-next:disabled {
  opacity: 0.15;
  pointer-events: none;
}

/* Poprawka: share-box stary (poza single-body) — na wypadek gdyby zostały stare pliki */
body > .share-box,
.site-footer ~ .share-box {
  display: none;
}

/* About image min-height na desktopie */
@media (min-width: 1024px) {
  .about-image { min-height: 640px; }
  .about-image img { height: 100%; }
}

/* ─── POPRAWKI v1.3 ──────────────────────────────────── */

/* Hero-geo: SVG jako warstwa dekoracyjna zawsze widoczna */
.hero-geo {
  position: absolute; inset: 0;
  overflow: hidden; pointer-events: none; z-index: 1;
}
.hero-geo-svg {
  width: 100%; height: 100%;
  position: absolute; inset: 0;
}

/* Hero-photo: NA WIERZCHU geometrii, przezroczystość od dołu */
.hero-photo {
  position: absolute; inset: 0;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 2;
}
.hero-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(26,23,20,.55) 100%);
}

/* Gdy brak zdjęcia — tło inkowe, geometria zostaje pięknie widoczna */
.hero-photo--empty,
.hero-photo[style*="url('')"],
.hero-photo:not([style]) {
  background-image: none !important;
  background-color: transparent;
  z-index: 0; /* chowamy, geometria zostaje */
}

/* Hero caption i scroll — ponad foto */
.hero-photo-caption,
.hero-scroll { z-index: 3; }

/* Hero right — upewnij się że ma ciemne tło jako bazę */
.hero-right {
  background: #1c1814;
}

/* Project card — klikalne cały obszar */
.project-card { position: relative; }
.project-card-link {
  position: absolute; inset: 0;
  z-index: 1;
}
.project-read { position: relative; z-index: 2; }

/* Admin bar — nie chowamy */

/* ─── POPRAWKI v1.4 — Hero geometria bez zdjęcia ─────── */

/* hero-geo zajmuje cały hero-right jako tło */
.hero-geo {
  position: absolute; inset: 0; z-index: 1;
  overflow: hidden; pointer-events: none;
}
.hero-geo-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

/* hero-photo WYŁĄCZONE z hero-right — zdjęcie jest tylko w about */
/* (element usunięty z front-page.php hero sekcji) */

/* hero-photo-caption — na wierzchu geometrii */
.hero-photo-caption { z-index: 3; position: absolute; }
.hero-scroll        { z-index: 3; position: absolute; }

/* hero-right tło — ciemne, geometria widoczna */
.hero-right { background: #1c1814; position: relative; }

/* Upewnij się że about-image ma zdjęcie na pełną wysokość */
.about-image {
  overflow: hidden;
  position: relative;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ─── POPRAWKI v1.5 — Geometria jako <img> ───────────── */
.hero-geo img.hero-geo-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ─── POPRAWKI v1.6 — Hero geo pełna wysokość ────────── */
.hero-right {
  position: relative;
  overflow: hidden;
  background: #1c1814;
}
.hero-geo {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.hero-geo img.hero-geo-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  /* Lekko rozjaśniamy jeśli przeglądarka renderuje SVG zbyt ciemno */
  filter: brightness(1.15) contrast(1.1);
}

/* ─── POPRAWKI v1.7 — Figruy-Aga.png jako hero ──────── */
.hero-geo img.hero-geo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: none; /* bez rozjaśniania — plik jest wyraźny sam w sobie */
}
/* Usuń stary styl dla .hero-geo-svg jeśli zostaje w cache */
.hero-geo img.hero-geo-svg { display: none; }

/* ─── POPRAWKI v1.8 — Figruy-Aga pełny widok ────────── */
.hero-geo img.hero-geo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;       /* cały obrazek widoczny */
  object-position: center center;
  display: block;
  background: #000;          /* czarne tło tam gdzie nie ma obrazka */
}

/* hero-right tło też czarne żeby grało z obrazkiem */
.hero-right {
  background: #000 !important;
}

/* ─── POPRAWKI v1.9 — Figruy-Aga skalowanie przez width ─ */
.hero-geo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}
.hero-geo img.hero-geo-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Obrazek 1000x1000 — skalujemy żeby wypełnić szerokość */
  width: 100%;
  height: auto;
  min-height: 100%;
  /* Ale jeśli kolumna jest wyższa niż szersza — skalujemy przez height */
  object-fit: cover;
  object-position: center center;
  display: block;
}
.hero-right {
  background: #000 !important;
  overflow: hidden;
}

/* ─── POPRAWKI v2.0 — Overlay + scroll hint widoczny ─── */

/* Ciemny overlay na obrazku geometrycznym */
.hero-geo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 12, 0.52);
  z-index: 2;
  pointer-events: none;
}

/* Caption i scroll PONAD overlay */
.hero-photo-caption {
  position: absolute;
  bottom: 28px;
  left: 28px;
  z-index: 10;
  color: rgba(245,242,238,0.45);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--sans);
  font-weight: 300;
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  right: 28px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(245,242,238,0.45);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--sans);
}

/* ─── LOGO SYMBOL W NAWIGACJI ────────────────────────── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-symbol {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  /* Symbol jest ciemny — mix-blend-mode sprawia że działa na jasnym tle */
  mix-blend-mode: multiply;
  /* Fallback: jeśli tło navbaru jest przezroczyste dodajemy lekkie przyciemnienie */
  opacity: 0.85;
  transition: opacity 0.2s;
}
.nav-logo:hover .nav-logo-symbol { opacity: 1; }

.nav-logo-text {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.2;
  display: flex;
  flex-direction: column;
}
.nav-logo-text span {
  display: block;
  font-size: 0.65rem;
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 2px;
}

/* Na mobile — symbol nieco mniejszy */
@media (max-width: 640px) {
  .nav-logo-symbol { width: 28px; height: 28px; }
  .nav-logo-text { font-size: 0.9rem; }
  .nav-logo-text span { display: none; } /* ukryj podtytuł na małym ekranie */
}

/* ─── POPRAWKI MOBILE v2.1 ───────────────────────────── */

/* 1. Logo symbol — fix mix-blend-mode który ukrywał obrazek */
.nav-logo-symbol {
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  width: 32px !important;
  height: 32px !important;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

/* 2. Nav — mniejszy padding na mobile żeby nie ściskać */
@media (max-width: 1100px) {
  #site-nav { padding: 14px 20px !important; }
  #site-nav.scrolled { padding: 10px 20px !important; }

  /* Ukryj "Współpraca" CTA na mobile — jest w menu */
  .nav-cta { display: none; }

  /* Logo tekst — kompaktowy */
  .nav-logo-text { font-size: 0.85rem; }
  .nav-logo-text span { display: none; }
  .nav-logo { gap: 8px; }
}

/* 3. Hero stats — napraw pozycjonowanie na mobile */
@media (max-width: 1024px) {
  .hero-stats {
    position: static !important;
    display: flex;
    flex-direction: row;
    gap: 32px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }

  /* Hero left — więcej miejsca wewnątrz */
  .hero-left {
    padding-bottom: 40px !important;
  }
}

/* 4. Na bardzo małych ekranach stats w kolumnach */
@media (max-width: 400px) {
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 1.8rem; }
}

/* ─── MOBILE COMPREHENSIVE FIX v2.2 ─────────────────── */

@media (max-width: 768px) {

  /* NAV */
  #site-nav { padding: 12px 20px !important; gap: 12px; }
  #site-nav.scrolled { padding: 10px 20px !important; }
  .nav-logo-symbol { width: 28px !important; height: 28px !important; }
  .nav-logo-text { font-size: 0.78rem; }
  .nav-logo-text span { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  /* HERO — stats NIE nakładają się */
  #hero { padding-top: 70px; min-height: auto; }
  .hero-left {
    padding: 48px 24px 32px !important;
    padding-bottom: 32px !important;
  }
  .hero-stats {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 24px !important;
    margin-top: 32px !important;
    padding-top: 20px !important;
    border-top: 1px solid var(--line) !important;
    bottom: auto !important;
    left: auto !important;
  }
  .stat-num { font-size: 1.7rem; }
  .stat-label { font-size: 0.6rem; }

  .hero-name { font-size: 3rem; }
  .hero-desc { margin-bottom: 28px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* HERO RIGHT — geometria widoczna pod hero-left */
  .hero-right { height: 60vw; min-height: 220px; }

  /* ABOUT */
  #about { grid-template-columns: 1fr; }
  .about-image { min-height: 70vw; }
  .about-content { padding: 40px 24px !important; }
  .skills-grid { grid-template-columns: 1fr !important; gap: 12px; }

  /* REALIZACJE */
  #realizacje { padding: 56px 20px !important; }
  .projects-grid { grid-template-columns: 1fr !important; gap: 3px; }
  .project-card.featured { aspect-ratio: 4/3; }
  .project-card { aspect-ratio: 4/3; }

  /* GALERIA */
  #galeria { padding: 56px 20px !important; }
  .gallery-masonry { columns: 2 !important; column-gap: 3px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* KONTAKT */
  #kontakt { grid-template-columns: 1fr; }
  .contact-left { padding: 48px 24px !important; }
  .contact-right { padding: 48px 24px !important; }
  .contact-items { gap: 12px; }

  /* FORMULARZ — nie wyjeżdża poza ekran */
  .contact-form { width: 100%; }
  .form-group input,
  .form-group textarea { width: 100%; box-sizing: border-box; }

  /* SECTION HEADERS */
  .section-heading { font-size: 2.2rem; }

  /* FOOTER */
  #site-footer {
    padding: 20px 20px !important;
    flex-direction: column !important;
    text-align: center !important;
    gap: 8px !important;
  }

  /* SINGLE POST */
  .single-hero { min-height: 40vh; margin-top: 70px; }
  .single-hero-content { padding: 32px 24px 28px !important; }
  .single-title { font-size: 2rem; }
  .single-body { padding: 40px 20px 60px !important; }
  .single-nav { padding: 24px 20px !important; }
  .share-box { padding: 28px 0 0 !important; }
  .share-buttons { gap: 8px; }
  .share-btn { font-size: 0.68rem; padding: 8px 12px; }

  /* ARCHIVE */
  .archive-header { padding: 56px 20px 36px !important; margin-top: 70px; }
  .archive-grid { grid-template-columns: 1fr !important; }
}

/* Bardzo małe ekrany */
@media (max-width: 380px) {
  .hero-name { font-size: 2.5rem; }
  .hero-stats { gap: 16px !important; }
  .stat-num { font-size: 1.5rem; }
  .gallery-masonry { columns: 1 !important; }
}

/* ─── 404 PAGE ───────────────────────────────────────── */
.error-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 80px 80px;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

.error-404-inner {
  max-width: 680px;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* Duże 404 jako element graficzny w tle */
.error-404-number {
  font-family: var(--serif);
  font-size: clamp(140px, 22vw, 260px);
  font-weight: 300;
  color: rgba(26,23,20,0.045);
  line-height: 1;
  position: absolute;
  top: -40px;
  left: -20px;
  letter-spacing: -0.04em;
  user-select: none;
  z-index: 0;
}

.error-404-content {
  position: relative;
  z-index: 2;
}

.error-404-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--ink);
  margin: 16px 0 28px;
}
.error-404-title em { font-style: italic; color: var(--accent); }

.error-404-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 460px;
  margin-bottom: 40px;
}

.error-404-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

/* Dekoracyjny SVG po prawej */
.error-404-deco {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 280px;
  height: 280px;
  opacity: 0.6;
  z-index: 1;
}
.error-404-deco svg { width: 100%; height: 100%; }

@media (max-width: 768px) {
  .error-404 { padding: 100px 24px 60px; }
  .error-404-number { font-size: 120px; top: -20px; left: -10px; }
  .error-404-deco { width: 180px; height: 180px; right: -20px; bottom: -20px; }
  .error-404-actions { flex-direction: column; align-items: flex-start; }
}

/* ─── COOKIE BANNER ──────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--ink);
  border-top: 1px solid rgba(184,144,90,0.2);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
#cookie-banner.cookie-banner--visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-banner-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 300;
  color: var(--paper);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.cookie-banner-text p {
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(245,242,238,0.5);
  margin: 0;
}
.cookie-banner-text p a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-banner-text p a:hover { color: var(--accent); }

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 22px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: var(--accent);
  color: var(--white);
}
.cookie-btn-accept:hover { background: var(--accent-light); }

.cookie-btn-decline {
  background: transparent;
  color: rgba(245,242,238,0.4);
  border: 1px solid rgba(245,242,238,0.15);
}
.cookie-btn-decline:hover {
  color: rgba(245,242,238,0.7);
  border-color: rgba(245,242,238,0.3);
}

@media (max-width: 768px) {
  .cookie-banner-inner {
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .cookie-banner-text { flex-direction: column; gap: 6px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}

/* ─── POPRAWKI v2.3 — Nav logo flex + admin bar ─────── */

/* Fix: nav-logo musi być flex żeby symbol był obok tekstu */
.nav-logo {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none;
  line-height: 1;
}

.nav-logo-symbol {
  display: block !important;
  flex-shrink: 0 !important;
  width: 32px !important;
  height: 32px !important;
  object-fit: contain;
  mix-blend-mode: normal !important;
  opacity: 0.9;
}

.nav-logo-text {
  display: flex !important;
  flex-direction: column !important;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
}
.nav-logo-text span {
  font-size: 0.62rem;
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 2px;
}

/* Admin bar — kompensacja dla hero i nav */
/* WP dodaje margin-top:32px do body gdy admin bar jest widoczny */
/* Musimy skompensować żeby hero wyglądało tak samo jak bez admin bara */
.admin-bar #site-nav {
  top: 32px !important;
}
.admin-bar #hero {
  /* Hero ma padding-top: 80px (wysokość navu) — z admin barem nav jest wyżej */
  /* więc hero-right zaczyna się od właściwego miejsca */
  min-height: calc(100vh - 32px);
}

/* Bez admin bara — wróć do normalnego */
body:not(.admin-bar) #site-nav { top: 0 !important; }
body:not(.admin-bar) #hero { min-height: 100vh; }

@media (max-width: 782px) {
  .admin-bar #site-nav { top: 46px !important; }
  .admin-bar #hero { min-height: calc(100vh - 46px); }
}

/* ─── CONTACT FORM 7 — stylizacja ───────────────────── */
/* Nadpisujemy domyślne style CF7 żeby pasowały do designu */

.cf7-wrapper { margin-top: 8px; }

/* Pola input i textarea */
.cf7-wrapper .wpcf7-form input[type="text"],
.cf7-wrapper .wpcf7-form input[type="email"],
.cf7-wrapper .wpcf7-form input[type="tel"],
.cf7-wrapper .wpcf7-form textarea,
.cf7-wrapper .wpcf7-form select {
  width: 100%;
  background: rgba(245,242,238,0.07);
  border: 1px solid rgba(245,242,238,0.12);
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid rgba(245,242,238,0.25);
  color: var(--paper);
  padding: 13px 0 13px 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  outline: none;
  resize: vertical;
  background: transparent;
  transition: border-color .2s;
  box-shadow: none;
  border-radius: 0;
}

.cf7-wrapper .wpcf7-form input[type="text"]:focus,
.cf7-wrapper .wpcf7-form input[type="email"]:focus,
.cf7-wrapper .wpcf7-form textarea:focus {
  border-bottom-color: var(--accent);
  outline: none;
}

.cf7-wrapper .wpcf7-form input::placeholder,
.cf7-wrapper .wpcf7-form textarea::placeholder {
  color: rgba(245,242,238,0.25);
}

/* Label nad polem */
.cf7-wrapper .wpcf7-form label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,242,238,0.35);
  margin-bottom: 6px;
  font-family: var(--sans);
}

/* Wrapper każdego pola */
.cf7-wrapper .wpcf7-form p {
  margin-bottom: 20px;
}

/* Textarea */
.cf7-wrapper .wpcf7-form textarea {
  min-height: 100px;
}

/* Przycisk submit */
.cf7-wrapper .wpcf7-form input[type="submit"] {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 15px 36px;
  cursor: pointer;
  transition: background .2s, transform .2s;
  width: auto;
  border-radius: 0;
}
.cf7-wrapper .wpcf7-form input[type="submit"]:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

/* Komunikaty błędów i sukcesu */
.cf7-wrapper .wpcf7-not-valid-tip {
  font-size: 0.72rem;
  color: #e07070;
  margin-top: 4px;
  display: block;
}
.cf7-wrapper .wpcf7-response-output {
  margin-top: 16px;
  padding: 12px 16px;
  font-size: 0.8rem;
  border-radius: 0;
  border: none;
}
.cf7-wrapper .wpcf7-mail-sent-ok {
  background: rgba(45,155,90,0.15);
  color: #7dcca0;
  border-left: 2px solid #2d9b5a;
}
.cf7-wrapper .wpcf7-validation-errors,
.cf7-wrapper .wpcf7-mail-sent-ng,
.cf7-wrapper .wpcf7-spam-blocked {
  background: rgba(180,60,60,0.15);
  color: #e08080;
  border-left: 2px solid #b43c3c;
}

/* Spinner ładowania */
.cf7-wrapper .wpcf7-spinner {
  border-color: rgba(245,242,238,0.2);
  border-top-color: var(--accent);
}

/* Ukryj domyślne obramowanie CF7 na całym formularzu */
.cf7-wrapper .wpcf7-form {
  border: none !important;
  padding: 0 !important;
}

/* ─── CF7 KOMUNIKATY — fix czytelności v2.4 ─────────── */

/* Usuń domyślny border CF7 który jest nieczytelny */
.wpcf7-response-output {
  margin: 16px 0 0 !important;
  padding: 14px 20px !important;
  border-radius: 0 !important;
  font-family: var(--sans) !important;
  font-size: 0.82rem !important;
  line-height: 1.6 !important;
  border: none !important;
  border-left: 3px solid !important;
}

/* Sukces — wysłano */
.wpcf7-mail-sent-ok {
  background: rgba(184,144,90,0.15) !important;
  color: var(--accent-light) !important;
  border-color: var(--accent) !important;
}

/* Błąd walidacji */
.wpcf7-validation-errors {
  background: rgba(180,60,60,0.12) !important;
  color: #e09090 !important;
  border-color: #b44040 !important;
}

/* Błąd wysyłki */
.wpcf7-mail-sent-ng,
.wpcf7-acceptance-missing {
  background: rgba(180,60,60,0.12) !important;
  color: #e09090 !important;
  border-color: #b44040 !important;
}

/* Spam */
.wpcf7-spam-blocked {
  background: rgba(180,100,40,0.12) !important;
  color: #e0a070 !important;
  border-color: #b47040 !important;
}

/* Ukryj pusty komunikat (CF7 dodaje go domyślnie) */
.wpcf7-response-output:empty { display: none !important; }
.wpcf7 form.init .wpcf7-response-output { display: none !important; }

/* Pola z błędem walidacji */
.wpcf7-not-valid-tip {
  color: #e09090 !important;
  font-size: 0.72rem !important;
  font-family: var(--sans) !important;
  margin-top: 4px !important;
  display: block !important;
}

.wpcf7-form-control.wpcf7-not-valid {
  border-bottom-color: #b44040 !important;
}
