:root{
  --bg: #f6f7fb;
  --card: rgba(255,255,255,.75);
  --card2: rgba(255,255,255,.9);
  --text: rgba(10,14,22,.92);
  --muted: rgba(10,14,22,.62);
  --line: rgba(10,14,22,.12);
  --accent: #2f80ff;
  --accent2: #00b4ff;
  --shadow: 0 20px 50px rgba(10,14,22,.12);
  --shadow2: 0 10px 26px rgba(0,0,0,.14);
  --radius: 18px;
  --radius2: 24px;
  --max: 1120px;

  /* panel / form (dla modal/admin) */
  --panel: rgba(255,255,255,.78);
  --panel2: rgba(255,255,255,.92);
}

[data-theme="light"]{
  --bg: #f6f7fb;
  --card: rgba(0,0,0,.05);
  --card2: rgba(0,0,0,.06);
  --text: rgba(0,0,0,.88);
  --muted: rgba(0,0,0,.62);
  --line: rgba(0,0,0,.12);
  --shadow: 0 20px 50px rgba(0,0,0,.12);

  --panel: rgba(255,255,255,.78);
  --panel2: rgba(255,255,255,.92);
}

[data-theme="dark"]{
  --panel: rgba(18,18,22,.72);
  --panel2: rgba(18,18,22,.92);
  --line: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.90);
  --muted: rgba(255,255,255,.60);
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --shadow2: 0 10px 26px rgba(0,0,0,.40);
}

*{ box-sizing: border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: radial-gradient(1200px 800px at 10% -10%, rgba(0,140,255,.35), transparent 60%),
              radial-gradient(900px 700px at 110% 20%, rgba(0,212,255,.18), transparent 60%),
              var(--bg);
  color: var(--text);
  overflow-x:hidden;
}

a{ color: inherit; text-decoration: none; }
code{ background: var(--card); padding: .18rem .42rem; border-radius: 10px; border:1px solid var(--line); }

/* tło/efekty */
.bg-blobs{ position: fixed; inset:0; pointer-events:none; z-index:-1; }
.blob{
  position:absolute;
  width:520px; height:520px;
  filter: blur(60px);
  opacity:.35;
  border-radius: 999px;
}
.b1{ background: radial-gradient(circle, rgba(0,140,255,.35), transparent 70%); }
.b2{ background: radial-gradient(circle, rgba(0,200,255,.30), transparent 70%); }
.b3{ background: radial-gradient(circle, rgba(80,170,255,.30), transparent 70%); }

/* Tło z drukarką 3D (delikatnie) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  background-image: url("images/printer_bg.png");
  background-repeat: no-repeat;
  background-position: right 10% bottom 10%;
  background-size: min(900px, 70vw);
  opacity: 0.10;
  filter: grayscale(15%) blur(0px);
  pointer-events: none;
  z-index: -2;
}

/* topbar */
.topbar{
  position: sticky; top:0; z-index: 50;
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 18px;
  background: rgba(0,0,0,.22);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
[data-theme="light"] .topbar{ background: rgba(255,255,255,.55); }

.brand{ display:flex; align-items:center; gap:10px; font-weight:700; letter-spacing:.2px; }
.brandMark{
  width:14px; height:14px; border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 25px rgba(124,92,255,.35);
}
.brandText{ font-size: 14px; }

.nav{ display:none; gap:16px; }
.nav a{ color: var(--muted); font-weight: 600; font-size: 14px; }
.nav a:hover{ color: var(--text); }

.iconBtn{
  border:1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 14px;
  padding: 8px 10px;
  cursor:pointer;
  box-shadow: none;
}
.iconBtn:hover{ background: var(--card2); }
.icon{ font-size: 15px; }

main{ width: min(var(--max), calc(100% - 36px)); margin: 0 auto; }

/* hero bazowe */
.hero{
  display:grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding: 44px 0 24px;
}

.heroContent h1{
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  margin: 0 0 10px;
  letter-spacing: -0.7px;
}
.heroContent p{
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 64ch;
  font-size: 16px;
  line-height: 1.6;
}
.heroCtas{ display:flex; gap:12px; flex-wrap: wrap; margin-bottom: 18px; }

/* buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  cursor:pointer;
}
.btn:hover{ background: var(--card2); }
.btn.primary{
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: rgba(255,255,255,.95);
  box-shadow: 0 18px 35px rgba(0,0,0,.25);
}
.btn.primary:hover{ filter: brightness(1.04); }
.btn.ghost{ background: transparent; }
.btn.danger{
  border-color: rgba(255,80,80,.40);
  background: rgba(255,80,80,.14);
}

/* hero stats (jeśli używasz) */
.heroStats{ display:flex; gap:12px; flex-wrap: wrap; }
.stat{
  min-width: 140px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: var(--card);
}
.statNum{ font-size: 20px; font-weight: 800; letter-spacing: -0.2px; }
.statLabel{ font-size: 12px; color: var(--muted); margin-top: 2px; }

/* preview (jeśli używasz) */
.heroPreview{
  display:none;
  position: relative;
  min-height: 250px;
}
.previewCard{
  border:1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding: 14px;
  width: 360px;
}
.previewImage{
  height: 150px;
  border-radius: 18px;
  background:
    radial-gradient(400px 220px at 20% 20%, rgba(0,140,255,.45), transparent 60%),
    radial-gradient(320px 220px at 80% 40%, rgba(0,212,255,.28), transparent 60%),
    rgba(255,255,255,.06);
  border:1px solid var(--line);
}
.previewImage.alt{
  height: 120px;
  background:
    radial-gradient(380px 220px at 35% 25%, rgba(0,200,255,.35), transparent 60%),
    radial-gradient(340px 220px at 75% 55%, rgba(80,170,255,.25), transparent 60%),
    rgba(255,255,255,.06);
}
.previewLines{ display:flex; flex-direction:column; gap:8px; padding-top: 12px; }
.previewLines span{
  height: 10px; border-radius: 999px; background: rgba(255,255,255,.08);
  border:1px solid var(--line);
}
.previewLines span:nth-child(1){ width: 70%; }
.previewLines span:nth-child(2){ width: 92%; }
.previewLines span:nth-child(3){ width: 54%; }

/* sections */
.section{ padding: 36px 0; }
.sectionHead h2{ margin:0 0 8px; font-size: 24px; letter-spacing: -0.2px; }
.sectionHead p{ margin:0; color: var(--muted); line-height: 1.6; }

/* controls */
.controls{
  margin-top: 18px;
  display:flex;
  flex-direction: column;
  gap: 12px;
}
.searchWrap{ width: 100%; }
.search{
  width:100%;
  padding: 12px 14px;
  border-radius: 16px;
  border:1px solid var(--line);
  background: var(--card);
  color: var(--text);
  outline:none;
}
.search::placeholder{ color: rgba(255,255,255,.45); }
[data-theme="light"] .search::placeholder{ color: rgba(0,0,0,.4); }

.filters{ display:flex; flex-wrap: wrap; gap: 8px; }
.chip{
  padding: 8px 12px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  cursor:pointer;
}
.chip:hover{ background: var(--card2); color: var(--text); }
.chip.active{
  color: rgba(255,255,255,.95);
  border-color: transparent;
  background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(0,212,255,.85));
}

/* grid/cards */
.grid{
  margin-top: 16px;
  display:grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 12px;
}

.card{
  border:1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius2);
  overflow:hidden;
  box-shadow: var(--shadow);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.card:hover{
  transform: translateY(-2px);
  background: var(--card2);
  box-shadow: 0 18px 55px rgba(0,0,0,.12);
}

.cardBtn{
  display:grid;
  grid-template-columns: 1fr;
  border:0;
  background: transparent;
  color: inherit;
  text-align:left;
  padding:0;
  cursor:pointer;
}

.thumb{
  width:100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display:block;
  background: rgba(255,255,255,.06);
}
.cardBody{ padding: 14px; }
.cardTitle{ margin:0 0 6px; font-size: 16px; letter-spacing: -0.1px; }
.cardDesc{ margin:0 0 10px; color: var(--muted); line-height: 1.5; font-size: 14px; }

.badges{ display:flex; gap: 8px; flex-wrap: wrap; }
.badge{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

.emptyState{
  margin-top: 18px;
  border:1px dashed var(--line);
  border-radius: var(--radius2);
  padding: 18px;
  background: rgba(255,255,255,.04);
}

.hidden{ display:none !important; }

/* about/contact base cards */
.aboutCard, .contactCard{
  margin-top: 16px;
  border:1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius2);
  padding: 16px;
  box-shadow: var(--shadow);
}
.bullets{ margin: 10px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.6; }

.aboutTags{ display:flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tag{
  padding: 7px 10px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  font-weight: 800;
  font-size: 12px;
  color: var(--muted);
}

.contactRow{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.label{
  font-size: 12px; color: var(--muted);
  margin-bottom: 6px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.link{ color: var(--text); text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); }
[data-theme="light"] .link{ text-decoration-color: rgba(0,0,0,.25); }

.hint{ margin: 14px 0 0; color: var(--muted); line-height: 1.6; }

/* footer */
.footer{
  width: min(var(--max), calc(100% - 36px));
  margin: 28px auto 26px;
  display:flex; gap:10px; align-items:center; justify-content:center;
  color: var(--muted);
  font-size: 13px;
}
.sep{ opacity:.6; }

/* =========================
   PREMIUM HERO "O mnie"
========================= */
.hero.aboutHero{
  display: block;
  padding: 38px 0 26px;
}

.aboutHero{
  padding-top: 110px;
  padding-bottom: 34px;
}

.aboutShell{
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.62);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  overflow: visible;
}

.aboutHeroGrid{
  width: 100%;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 26px;
  padding: 24px;
  align-items: start;
  min-width: 0;
}

.aboutHeroPhoto{
  display:flex;
  gap: 14px;
  align-items: center;
}

.aboutPhoto{
  width: 100%;
  max-width: 260px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(10,14,22,.12);
  background: rgba(255,255,255,.6);
  flex-shrink: 0;
  display:block;
}

.aboutHeroText{
  min-width: 0;
  max-width: none;
  padding: 4px 2px 6px;
}

.aboutTitle{
  margin: 0 0 8px;
  font-size: clamp(24px, 3.2vw, 30px);
  letter-spacing: -0.8px;
  white-space: normal;
  overflow: visible;
  word-break: break-word;
}

/* O mnie – bez dzielenia wyrazów myślnikiem + spójny link */
.aboutLead{
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 85ch;
  font-size: 15px;
  text-align: justify;

  text-wrap: pretty;      /* ładniejsze łamanie (wspierane w nowych przeglądarkach) */
  hyphens: none;          /* <-- usuwa dzielenie wyrazów "-" */
  overflow-wrap: normal;
  word-break: normal;
}

.aboutLead a{
  white-space: nowrap;    /* link jako jeden „kawałek” */
  display: inline-block;
}

.aboutBadges{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pill{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.55);
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
}

/* mobilka */
@media (max-width: 900px){
  .aboutHeroGrid{ grid-template-columns: 1fr; }
  .aboutPhoto{ max-width: 180px; }
}

/* =========================
   "Na czym drukuję"
========================= */
.gearPanel{
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.70);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.centeredGear{
  text-align: center;
  padding: 28px 20px 32px;
}

.gearMainTitle{
  margin: 0 0 22px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 1000;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.printerGrid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 820px;
  margin: 0 auto;
}

.printerCard{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.7);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.printerCard:hover{ transform: translateY(-4px); }

.printerCard img{
  width: 100%;
  height: 280px;
  object-fit: contain;
  background: rgba(255,255,255,.6);
  display: block;
  padding: 14px;
}

.printerLabel{
  padding: 12px;
  font-weight: 900;
  letter-spacing: .3px;
}

@media (min-width: 700px){
  .printerGrid{ grid-template-columns: 1fr 1fr; }
}

/* =========================
   Kontakt – minimalistyczny kafel
========================= */
.contactModern{ padding: 16px; }

.contactGrid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.contactBox{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.55);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.contactBox:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.8);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.contactIcon{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.7);
  flex-shrink: 0;
}

.contactInfo{ min-width: 0; }
.contactLabel{
  font-size: 10px;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.contactValue{
  font-size: 14px;
  font-weight: 800;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contactHint{
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (min-width: 720px){
  .contactGrid{
    grid-template-columns: repeat(3, max-content);
    justify-content: center;
    gap: 14px;
  }
}

/* =========================
   Galeria jako panel
========================= */
.galleryPanel{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.70);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 18px;
  margin-top: 16px;
}

/* =========================
   Hover Preview (overlay)
========================= */
.hoverPreview{
  position: fixed;
  inset: 0;
  z-index: 120;
}
.hoverPreview.hidden{ display:none !important; }

.hoverBackdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
}

.hoverCard{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.98);
  width: min(980px, calc(100% - 28px));
  border-radius: 26px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  box-shadow: 0 30px 90px rgba(0,0,0,.35);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  animation: hpIn .12s ease-out forwards;
}

@keyframes hpIn{
  from{ transform: translate(-50%,-50%) scale(.96); opacity: 0; }
  to{ transform: translate(-50%,-50%) scale(1); opacity: 1; }
}

.hoverMedia{
  background: rgba(0,0,0,.04);
  border-bottom: 1px solid var(--line);
}
.hoverMedia img{
  width: 100%;
  height: 320px;
  object-fit: contain;
  background: rgba(255,255,255,.65);
  display:block;
  padding: 14px;
}

.hoverInfo{ padding: 16px; }

.hoverTop{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
}
.hoverTop h3{
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.2px;
}

.hoverMeta{
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.hoverRow{
  border: 1px solid var(--line);
  background: rgba(0,0,0,.03);
  border-radius: 14px;
  padding: 9px 10px;
  font-size: 13px;
  display:flex;
  gap: 8px;
}
.hoverRow .k{
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .4px;
  font-size: 11px;
  min-width: 86px;
}
.hoverRow .v{
  font-weight: 900;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hoverDesc{
  margin: 10px 0 12px;
  color: var(--muted);
  line-height: 1.65;
  text-align: justify;
}

/* =========================
   Modal / admin / form (upewnione domknięcia i brak psucia zmiennych)
========================= */
.modal{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modalBackdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
}

.modalCard{
  position: relative;
  width: min(920px, 100%);
  max-height: min(86vh, 820px);
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  padding: 18px;
}

.modalClose{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.65);
  color: var(--text);
  cursor: pointer;
}
[data-theme="dark"] .modalClose{ background: rgba(30,30,35,.65); }
.modalClose:hover{ transform: translateY(-1px); box-shadow: var(--shadow2); }

.modalCard h3{
  margin: 2px 0 12px;
  font-size: 20px;
  letter-spacing: .2px;
}
.modalCard h4{
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
}

.form{ display: grid; gap: 12px; }
.field{ display: grid; gap: 6px; }
.field > span{
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.field input,
.field textarea{
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  outline: none;
}
.field textarea{ resize: vertical; }
.field input:focus,
.field textarea:focus{
  border-color: rgba(120,120,255,.55);
  box-shadow: 0 0 0 4px rgba(120,120,255,.18);
}

.checkRow{
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  user-select: none;
}
.checkRow input{ width: 16px; height: 16px; }

.row{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.row > *{ flex: 1; min-width: 160px; }

.row2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 720px){
  .row2{ grid-template-columns: 1fr; }
}

.errorText{
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,80,80,.35);
  background: rgba(255,80,80,.12);
  color: var(--text);
}

/* login modal węższy */
#loginModal .modalCard{
  width: min(460px, 100%);
  padding: 18px;
}

/* adminHeader (naprawione – wcześniej u Ciebie ucinało CSS) */
.adminHeader{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}

/* =========================
   RWD / układy
========================= */
@media (min-width: 720px){
  .nav{ display:flex; }
  .hero{ grid-template-columns: 1.25fr .75fr; align-items:center; }
  .heroPreview{ display:block; }
  .controls{ flex-direction: row; align-items:center; justify-content:space-between; }
  .searchWrap{ max-width: 440px; }
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .contactRow{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .hoverCard{ grid-template-columns: 1.05fr .95fr; }
  .hoverMedia{ border-bottom: 0; border-right: 1px solid var(--line); }
  .hoverMedia img{ height: 100%; min-height: 520px; }
  .hoverMeta{ grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px){
  .grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* ===== O MNIE – FINAL (justify bez myślników + foto na środku) ===== */

/* zdjęcie zawsze w pionowym środku */
.aboutHeroGrid{
  align-items: center !important;
}
.aboutHeroPhoto{
  align-self: center !important;
  display: flex !important;
  justify-content: center !important;
}

/* tekst: ma być wyjustowany, ale BEZ dzielenia wyrazów */
.aboutHeroText .aboutLead{
  text-align: justify !important;
  text-justify: inter-word;
  hyphens: none !important;         /* <- KONIEC myślników */
  word-break: normal !important;
  overflow-wrap: normal !important;
  text-wrap: pretty;
}

/* klasa do trzymania nawiasu+linku jako całości */
.nowrap{ white-space: nowrap; }

/* link w środku ma być spójny */
.aboutHeroText .aboutLead a{
  white-space: nowrap !important;
  display: inline-block;
}
/* ===== O MNIE – responsywne wyrównanie tekstu ===== */



/* Desktop – eleganckie justowanie */
@media (min-width: 900px){
  .aboutHeroText .aboutLead{
    text-align: justify !important;
    text-justify: inter-word;
  }
}
/* ===== O MNIE – mobile typography upgrade ===== */

@media (max-width: 900px){

  .aboutTitle{
    font-size: 26px !important;
    line-height: 1.2;
  }

  .aboutHeroText .aboutLead{
    font-size: 14px !important;
    line-height: 1.65 !important;
    letter-spacing: 0.1px;
  }

  .aboutHeroGrid{
    gap: 18px !important;
  }

  .aboutPhoto{
    max-width: 160px !important;
  }
}
/* ===== MOBILE FINAL POLISH – O MNIE ===== */
@media (max-width: 900px){

  .aboutTitle{
    font-size: 27px !important;
    line-height: 1.2;
  }

  .aboutHeroText .aboutLead{
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: rgba(0,0,0,.82) !important; /* lepszy kontrast */
  }

  .aboutShell{
    padding: 18px !important;
  }

  .aboutHeroGrid{
    gap: 16px !important;
  }
}
/* ===== FORMULARZ KONTAKTOWY ===== */

.contactForm{
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.contactForm .field{
  display: grid;
  gap: 6px;
}

.contactForm label{
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.contactForm input,
.contactForm textarea{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.7);
  font-family: inherit;
  font-size: 14px;
}

.contactForm input:focus,
.contactForm textarea:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47,128,255,.15);
}

.formSuccess{
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0,200,120,.12);
  border: 1px solid rgba(0,200,120,.3);
  font-weight: 600;
  margin-bottom: 14px;
}

.socialFollow{
  margin-top: 28px;
  text-align: center;
}

.fbLink{
  display: inline-block;
  margin-top: 6px;
  font-weight: 700;
  text-decoration: underline;
}
/* ===== Kontakt: minimalistyczny układ 2-kolumnowy ===== */

.contactSplit{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 16px;
  align-items: center;
  margin-top: 10px;
}

/* Formularz bardziej "kompaktowy" */
.contactFormCompact{
  max-width: 520px;         /* ~ 1/2 strony na desktop */
}

.contactFormCompact input,
.contactFormCompact textarea{
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.contactFormCompact label{
  font-size: 12px;
  letter-spacing: .2px;
}

.contactFormCompact .btn{
  padding: 10px 12px;
  border-radius: 12px;
}

/* Prawa kolumna: FB */
.contactSide{
  display: flex;
  justify-content: center;   /* poziomo na środku */
  align-items: center;       /* pionowo na środku formularza */
}
.followCard{
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.55);
  border-radius: 18px;
  padding: 14px;
}

.followTop{
  display: flex;
  gap: 12px;
  align-items: center;
}

.fbIcon{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.7);
  flex-shrink: 0;
}

.followTitle{
  font-weight: 900;
  font-size: 14px;
}

.followSub{
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
  line-height: 1.4;
}

.followLink{
  display: inline-flex;
  margin-top: 12px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Mobile: pod sobą */
@media (max-width: 900px){
  .contactSplit{
    grid-template-columns: 1fr;
  }
  .contactSide{
    justify-content: flex-start;
  }
  .contactFormCompact{
    max-width: none;
  }
}
/* ===== KONTAKT – wersja ultra minimalistyczna ===== */

.contactFormCompact{
  max-width: 460px;
  gap: 10px;
}

.contactFormCompact .field{
  gap: 4px;
}

.contactFormCompact label{
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--muted);
}

/* mniejsze pola */
.contactFormCompact input,
.contactFormCompact textarea{
  padding: 8px 10px;
  font-size: 13.5px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.65);
}

/* delikatny focus */
.contactFormCompact input:focus,
.contactFormCompact textarea:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(47,128,255,.12);
}

/* mniejszy przycisk */
.contactFormCompact .btn{
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 10px;
}

/* karta facebook jeszcze lżejsza */
.followCard{
  background: transparent;
  border: 1px solid rgba(0,0,0,.08);
  padding: 12px;
}

.fbIcon{
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.followTitle{
  font-size: 13px;
}

.followSub{
  font-size: 11.5px;
}
/* ===== Subtelna pionowa kreska między formularzem a FB ===== */

@media (min-width: 900px){

  .contactSplit{
    position: relative;
  }

  .contactSplit::after{
    content: "";
    position: absolute;
    top: 10%;
    bottom: 10%;
    left: 50%;
    width: 1px;
    background: rgba(0,0,0,.08); /* bardzo delikatna */
  }

}
/* ===== TOPBAR FINAL (logo lewo / menu środek / toggle prawo) ===== */

.topbar{
  position: sticky;
  top: 0;
  z-index: 50;

  display: flex;
  align-items: center;
  justify-content: center;     /* NAV w środku */

  padding: 12px 18px;
  background: rgba(0,0,0,.22);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);

  /* kotwica dla elementów absolutnych */
  left: 0;
  right: 0;
}

[data-theme="light"] .topbar{ background: rgba(255,255,255,.55); }

.topbar > a.brand{
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

.topbar > button#themeToggle{
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.topbar > nav.nav{
  display: none;
  gap: 16px;
}

@media (min-width: 720px){
  .topbar > nav.nav{ display: flex; }
}

.topbar .custom-logo{
  max-height: 56px;
  width: auto;
  height: auto;
  display: block;
}

.topbar .custom-logo-link{
  display: inline-block;
  line-height: 0;
}
/* ===== TOPBAR FINAL – logo lewo / menu środek / toggle prawo ===== */

header.topbar{
  display: grid !important;
  grid-template-columns: auto 1fr auto !important;
  align-items: center !important;

  position: sticky !important;
  top: 0 !important;
  z-index: 999 !important;

  padding: 12px 18px !important;
}

/* LOGO – lewa kolumna */
header.topbar > a.brand{
  justify-self: start !important;
}

/* MENU – środek */
header.topbar > nav.nav{
  justify-self: center !important;
  display: flex !important;
  gap: 18px !important;
}

/* TOGGLE – prawa kolumna */
header.topbar > button#themeToggle{
  justify-self: end !important;
}

/* ROZMIAR LOGO */
header.topbar .custom-logo{
  max-height: 56px !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
}
/* ===== O MNIE – FINAL: justify także na telefonach + lepsze łamanie ===== */
.aboutHeroText .aboutLead{
  text-align: justify !important;
  text-justify: inter-word;
  line-height: 1.75 !important;

  /* poprawia “rzeki” w justowaniu */
  text-wrap: pretty;

  /* automatyczne dzielenie wyrazów (bez brzydkich odstępów) */
  hyphens: auto;
  overflow-wrap: anywhere;
  word-break: normal;

  /* typograficzne ograniczenie “sierotek” w przeglądarkach które to wspierają */
  widows: 2;
  orphans: 2;
}

/* link/nawias jako całość */
.nowrap{ white-space: nowrap; }
/* ===== O MNIE – mniejsza czcionka tylko na desktop ===== */
@media (min-width: 900px){
  .aboutHeroText .aboutLead{
    font-size: 14px !important;
  }
}
/* ===== FB BUTTON – nowoczesny styl ===== */

.followCard{
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.followCard:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(47,128,255,.15);
  background: rgba(255,255,255,.75);
}

.followLink{
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .3px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(47,128,255,.35);
  background: rgba(47,128,255,.08);
  transition: all .2s ease;
}

.followCard:hover .followLink{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  border-color: transparent;
}
.wpPanel{ padding: 12px !important; }
.wpPanel .wp-block{ margin-top:0; margin-bottom:0; }
.wpPanel .wp-block-image{ margin:0; }
.wpPanel .wp-block-columns{ margin:0; gap:16px; }
.wpPanel .printerLabel{ margin-top:8px; }
/* Centrowanie i normalny rozmiar obrazów drukarek (Gutenberg) */
.printerCard {
  text-align: center;
}

.printerCard .wp-block-image {
  display: flex !important;
  justify-content: center !important;
}

.printerCard img {
  width: auto !important;
  max-width: 80%;
  display: block;
}
/* Centrowanie drukarek w kafelkach */
.printerCard{
  text-align: center;
}

.printerCard img{
  display: block;
  margin: 0 auto;
}
.printerGrid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 768px){
  .printerGrid{
    grid-template-columns: 1fr;
  }
}