/* === Reset / base === */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: #1f2937;
  background: #fff;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #8b5cf6; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* === Theme variables (aligned with logo palette) === */
:root{
  --brand: #f43f5e;   /* primary – raspberry/carmine */
  --brand-2: #f59e0b; /* accent – amber/yellow */
  --ink: #111827;
  --muted: #6b7280;
  --bg-soft: #f9fafb;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
}

/* === Layout helpers === */
.container { width: min(1120px, 92vw); margin-inline: auto; }
.section--pad { padding: 64px 0; }
.muted { color: var(--muted); }

.skip-link { position: absolute; left: -9999px; top: auto; }
.skip-link:focus { left: 16px; top: 16px; background: #fff; padding: .5rem .75rem; border-radius: 8px; box-shadow: var(--shadow); }

/* === Header / nav === */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid #eef2f7;
  backdrop-filter: saturate(1.2) blur(6px);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }

/* menu */
.site-nav ul { display: flex; gap: 20px; align-items: center; margin: 0; padding: 0; list-style: none; }
.site-nav a { padding: 10px 12px; border-radius: 12px; color: var(--muted); }
/* ważne: hover tylko dla zwykłych linków, nie .btn */
.site-nav a:not(.btn):hover { color: var(--ink); background: #f3f4f6; }

/* Socials w nawigacji (desktop domyślnie) */
.nav-socials { display: flex; gap: 10px; align-items: center; }
.nav-socials .socials__btn { width: 28px; height: 28px; background: transparent; padding: 0; }
.nav-socials .socials__btn svg { width: 22px; height: 22px; display: block; }

/* Mobile toggle */
.nav-toggle { display: none; font-size: 1.25rem; background: transparent; border: 0; padding: 8px; border-radius: 8px; }

/* Akcje w pasku (mobile: ikony + burger przy PRAWEJ krawędzi; ikony po LEWEJ stronie burgera) */
.nav-actions { display: none; align-items: center; gap: 10px; }

@media (max-width: 900px){
  .nav-toggle { display: inline-block; }
  .site-nav { position: absolute; right: 16px; top: 64px; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 10px; box-shadow: var(--shadow); display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }

  /* pokaż blok akcji i dociśnij do prawej */
  .nav-actions{
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    justify-content: flex-end !important;
    flex: initial !important;
  }
  .nav-socials--mobile{ display:flex; gap:8px; }
  .nav-socials--mobile .socials__btn{ width:36px; height:36px; background:transparent; }
  .nav-socials--mobile .socials__btn svg{ width:22px; height:22px; }

  /* ukryj duplikat sociali wewnątrz menu na mobile */
  .site-nav .nav-socials{ display:none !important; }
}

/* === Hero === */
.hero {
  position: relative;
  padding: clamp(64px, 10vw, 120px) 0;
  overflow: clip;
  background:
    radial-gradient(ellipse 700px 400px at 15% 20%, rgba(244,63,94,0.8) 0%, rgba(236,72,153,0.65) 35%, transparent 80%),
    radial-gradient(ellipse 600px 350px at 85% 25%, rgba(245,158,11,0.75) 0%, rgba(251,191,36,0.55) 40%, transparent 85%),
    radial-gradient(ellipse 500px 300px at 40% 80%, rgba(236,72,153,0.5) 0%, transparent 70%),
    #fff;
}
.hero__bg::before {
  content:"";
  position: absolute; inset: -20% -20% auto -20%; height: 80%;
  background: radial-gradient(ellipse 800px 500px at 60% 40%, rgba(244,63,94,0.35), rgba(245,158,11,0.25), transparent 80%);
  filter: blur(90px); opacity: .85; z-index: -1;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
@media (max-width: 1024px){ .hero__grid { grid-template-columns: 1fr; } }
@media (min-width: 1180px){ .hero__grid{ grid-template-columns: 0.85fr 1.15fr; } }

.hero__title {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05; margin: 0 0 12px; letter-spacing: -0.02em; color: var(--ink);
}
.hero__title .accent{
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__subtitle { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); margin: 0 0 20px; }

/* === Buttons (spójne) === */
.btn{
  display:inline-block;
  padding:12px 18px;
  border-radius:14px;
  font-weight:600;
  border:1px solid #e5e7eb;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow); }

/* Primary = gradient */
.btn--primary{
  color:#fff;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border: none;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.btn--primary:hover{ transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.18); }

/* Ghost */
.btn--ghost{ background:#fff; color: var(--ink); border:1px solid #e5e7eb; }

/* Jasny (np. w cookies) */
.btn--light, .cc-btn--light{
  background:#fff7ed; color: var(--ink); border:1px solid #fde68a;
}
.btn--light:hover, .cc-btn--light:hover{ transform: translateY(-1px); box-shadow: var(--shadow); }

/* NAV BUTTON — gradient jak primary, bez zmiany koloru na hover (tylko „podskok”) */
.btn--nav{
  color:#fff !important;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border:none;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  transition: transform .15s ease, box-shadow .15s ease; /* bez przejścia koloru */
}
.btn--nav:hover{ transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.18); }

/* === Hero CTA layout === */
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0 18px; }

/* Hero bullets */
.hero__bullets { margin: 10px 0 0; padding: 0; list-style: none; color: var(--muted); display: grid; gap: 6px; }
.hero__bullets li::before{
  content: "✓"; margin-right: .5rem;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800;
}

/* Hero visual */
.hero__visual{
  border-radius: 24px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--brand), var(--brand-2)) border-box;
  border: 8px solid transparent;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.12), 0 6px 16px rgba(0,0,0,.06);
}
.hero__visual img{ display: block; width: 100%; height: auto; border-radius: 16px; }
@media (min-width: 900px){ .hero__visual{ filter: drop-shadow(0 20px 30px rgba(0,0,0,.08)); } }

/* === Section headings === */
.section h2 { font-size: clamp(28px, 3.2vw, 36px); margin: 0 0 12px; }
.section p { margin: 0; }

/* === Jak pracujemy / Etapy === */
.process{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:clamp(12px,2.4vw,20px);
  margin-top:12px;
}
@media (max-width:900px){ .process{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .process{ grid-template-columns:1fr; } }

.step{
  padding:18px;
  border-radius:24px;
  background:#fff;
  display:flex;
  flex-direction:column;
}
.step h3{ margin:0 0 6px; font-size:1.1rem; }
.step p{ margin:0; color:var(--muted); }

/* Głowa kroku */
.step__header{ display:flex; align-items:center; gap:10px; min-height:44px; margin:0 0 8px; }

/* Numer kroku – badge */
.step__num{
  width:36px; height:36px; border-radius:999px;
  display:inline-flex; align-items:center; justify-content:center;
  font-weight:700; color:#fff; flex-shrink:0;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
  margin:0;
}

/* Przyciski w kartach kroków */
.step__btns{
  margin-top:auto;
  display:flex;
  justify-content:center;
  align-items:center;    /* ikony w osi przycisku */
  gap:16px;              /* odstęp między ikonami a buttonem */
  padding-top:12px;
}
.step__btns .socials__btn{ flex-shrink:0; }

/* === Oferta (kolumny) === */
.offer__grid{ display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.offer__logo{ display: flex; align-items: center; justify-content: center; }
.offer__logo img{ width: 100%; max-width: 520px; height: auto; filter: drop-shadow(0 12px 24px rgba(0,0,0,.08)); }
.offer__text h2{ margin: 0 0 14px; font-size: clamp(28px, 3.2vw, 36px); }
.offer__text p{ margin: 0 0 12px; color: var(--ink); }
.offer__text p + p{ margin-top: 10px; }
@media (max-width: 980px){
  .offer__grid{ grid-template-columns: 1fr; }
  .offer__logo{ order: -1; margin-bottom: 8px; }
  .offer__logo img{ max-width: 420px; }
}
.offer__btn{ margin:24px 0 0; display:block; width:100%; font-size:1rem; padding:16px 28px; border-radius:16px; text-align:center; }

/* === Contact === */
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
.contact__info { display: flex; flex-direction: column; gap: 1rem; }
.contact__item { display: flex; gap: 12px; align-items: flex-start; }
.contact__item .label { font-weight: 600; margin-bottom: 4px; }
.contact__item a { text-decoration: none; }
.contact__item a:hover { text-decoration: underline; }

.icon { width: 24px; height: 24px; flex: 0 0 24px; fill: currentColor; opacity: .9; margin-top: 2px; }

/* Socials „kółka” w treści (nie w nav) */
.socials { display: flex; gap: 12px; margin-top: 6px; }
.socials__btn {
  width: 40px; height: 40px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f3f4f6; transition: transform .12s ease, background .2s ease;
}
.socials__btn:hover { transform: translateY(-1px); background: #e5e7eb; }

.contact__item.social { flex-direction: column; align-items: flex-start; padding-left: calc(24px + 12px); }
.contact__item.social .label { margin-bottom: 6px; }
.contact__item.social .socials { margin-top: 0; }

.contact__form { display: flex; flex-direction: column; gap: 10px; }
.contact__form label { font-weight: 600; }
.contact__form input, .contact__form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #d1d5db; border-radius: 10px; font: inherit; background: #fff;
}
.contact__form input:focus, .contact__form textarea:focus {
  outline: none; border-color: #9ca3af; box-shadow: 0 0 0 4px rgba(0,0,0,.04);
}
.contact__form .btn { align-self: flex-start; margin-top: 6px; }
.form-status { margin-top: 10px; font-size: .95rem; }
.form-status.is-ok { color: #0b7a28; }
.form-status.is-error { color: #b91c1c; }
#contactSubmit[disabled] { opacity: .6; cursor: not-allowed; }

/* === Kontakt: tło jak hero + karta panelu === */
.contact--bg {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(ellipse 700px 400px at 15% 20%, rgba(244,63,94,0.18) 0%, rgba(236,72,153,0.12) 35%, transparent 80%),
    radial-gradient(ellipse 600px 350px at 85% 25%, rgba(245,158,11,0.15) 0%, rgba(251,191,36,0.08) 40%, transparent 85%),
    #fff;
}
.contact--bg::before {
  content:"";
  position: absolute; inset: -20% -20% auto -20%; height: 80%;
  background: radial-gradient(ellipse 800px 500px at 60% 40%, rgba(244,63,94,0.15), rgba(245,158,11,0.12), transparent 80%);
  filter: blur(80px);
  opacity: .9;
  z-index: 0;
}
.contact__panel {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: clamp(16px, 3vw, 28px);
  margin-top: 14px;
}

/* === Footer === */
.site-footer { background: var(--bg-soft); border-top: 1px solid #eef2f7; color: var(--muted); padding: 28px 0; margin-top: 20px; }
.footer__bar{ display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.footer__logo{ justify-self: start; }
.footer__contact{ justify-self: center; text-align: center; }
.footer__socials{ justify-self: end; display: flex; gap: 14px; }
.footer__contact p { margin: 2px 0; font-size: 0.95rem; color: var(--muted); }
.footer__contact a { color: var(--ink); text-decoration: none; }
.footer__contact a:hover { text-decoration: underline; }
.footer__socials a {
  display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center;
  border-radius: 999px; background: #f3f4f6; transition: background .2s ease, transform .15s ease;
}
.footer__socials a:hover { background: #e5e7eb; transform: translateY(-1px); }

/* odstępy i bloki pod stopką */
.footer__spacer { height: 1.2rem; }
.footer__legal{ text-align: center; color: var(--muted); font-size: 0.95rem; }
.footer__legal p{ margin: 4px 0; }
.footer__links{
  display: flex; justify-content: center; align-items: center; gap: 14px; text-align: center; font-size: 0.95rem;
}
.footer__links a{ color: var(--ink); text-decoration: underline; }
.footer__links .dot{ color: var(--muted); }

@media (max-width: 640px){
  .footer__bar{ grid-template-columns: 1fr; row-gap: 10px; }
  .footer__logo, .footer__contact, .footer__socials{ justify-self: center; text-align: center; }
}

/* === Cookie Consent === */
.cc-banner[hidden], .cc-modal[hidden] { display: none !important; }
.cc-banner{
  position: fixed; inset: auto 0 0 0; z-index: 1000;
  background: #fff; border-top: 1px solid #eef2f7; box-shadow: 0 -8px 30px rgba(0,0,0,.08); padding: 16px 0;
}
.cc-inner{ display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
@media (max-width: 800px){ .cc-inner{ grid-template-columns: 1fr; } }
.cc-text p{ margin: 6px 0 0; }
.cc-text a{ color: var(--brand); text-decoration: underline; }
.cc-actions{ display: flex; gap: 10px; justify-self: end; flex-wrap: wrap; }
.cc-btn{ border-color: #e5e7eb; }
.cc-btn--ghost{ background: #fff; color: var(--ink); }
.cc-accept{ white-space: nowrap; }

/* Modal */
.cc-modal__backdrop{ position: fixed; inset: 0; background: rgba(17,24,39,.5); }
.cc-modal__dialog{
  position: fixed; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  width: min(680px, 92vw); background: #fff; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden;
}
.cc-modal__header{ display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #eef2f7; }
.cc-modal__close{ background: transparent; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); }
.cc-modal__content{ padding: 16px 20px; display: grid; gap: 14px; }
.cc-modal__footer{ padding: 14px 20px; border-top: 1px solid #eef2f7; display: flex; gap: 10px; justify-content: flex-end; }

.cc-toggle{
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  padding: 12px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff;
}
.cc-toggle strong{ color: var(--ink); }

/* Switch */
.cc-switch{ position: relative; display: inline-block; width: 52px; height: 30px; }
.cc-switch input{ display:none; }
.cc-switch span{
  position: absolute; inset: 0; background: #e5e7eb; border-radius: 999px; transition: background .2s ease;
}
.cc-switch span::after{
  content:""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.15); transition: transform .2s ease;
}
.cc-switch input:checked + span{ background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.cc-switch input:checked + span::after{ transform: translateX(22px); }

/* Warstwy modala */
.cc-modal { z-index: 1100; }
.cc-modal__dialog { z-index: 1101; }

/* Przyciski w bannerze (zgodne z buttonami) */
.cc-actions .btn { min-height: 44px; padding: 10px 14px; border-radius: 14px; font-weight: 600; }
.cc-btn--ghost { background: #fff; color: var(--ink); border: 1px solid #e5e7eb; }
.cc-banner .cc-accept {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff; border: none; box-shadow: 0 8px 20px rgba(0,0,0,.12);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cc-banner .cc-accept:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.18); }

/* === Realizacje: siatka 3x3 z miniaturami === */
.gallery{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2.4vw, 20px);
}
@media (max-width: 900px){ .gallery{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .gallery{ grid-template-columns: 1fr; } }

/* Ramka jak w .hero__visual */
.frame{
  border-radius: 24px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--brand), var(--brand-2)) border-box;
  border: 8px solid transparent;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.12), 0 6px 16px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.frame:hover{ transform: translateY(-2px); box-shadow: 0 22px 58px rgba(0,0,0,.16), 0 8px 18px rgba(0,0,0,.08); }

/* Obrazek w galerii */
.gallery__item img{
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* Lightbox */
.lb{ position: fixed; inset: 0; z-index: 1200; display: none; }
.lb[aria-hidden="false"]{ display: block; }
.lb__backdrop{ position: absolute; inset: 0; background: rgba(17,24,39,.8); }
.lb__dialog{
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  width: min(92vw, 1100px); max-height: 88vh; background: #000; border-radius: 16px;
  box-shadow: var(--shadow); overflow: hidden;
}
.lb__img{ display: block; width: 100%; height: auto; max-height: 88vh; margin: 0 auto; }
.lb__close{
  position: absolute; right: 10px; top: 10px;
  background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 12px;
  width: 44px; height: 44px; font-size: 26px; line-height: 1; cursor: pointer;
}
.lb__close:focus-visible{ outline: 3px solid #8b5cf6; outline-offset: 2px; }

/* === Back to top button === */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #d1d5db;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all .3s ease;
  z-index: 1500;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--brand); box-shadow: 0 4px 12px rgba(0,0,0,.2); }

/* === HERO: czytelność akcentu na mobile === */
@media (max-width: 640px){
  .hero__title .accent{
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: #fbbf24; /* żółty */
    text-shadow: 0 1px 2px rgba(0,0,0,.25);
  }
}

/* === O nas: drobne ujednolicenia === */
.page-about .offer__grid { align-items: start; }
.page-about .offer__text h2 { margin-top: 0; }
.page-about .hero__bullets { margin-top: 0; }

/* O nas – kroki jak galeria, pełna szerokość + krawędzie równo */
.page-about .process{
  margin-inline: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px){ .page-about .process{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px){ .page-about .process{ grid-template-columns: 1fr; } }
.page-about .process{
  --_pad: clamp(6px, 1vw, 10px);
  padding-inline: var(--_pad);
  margin-inline: calc(-1 * var(--_pad));
}
.page-about .step{ border-radius:24px; height: 100%; }

/* === UV / Technologia (O NAS) === */
.page-about .tech .offer__grid { align-items: center; } /* desktop: wyśrodkowanie w pionie */
.page-about .tech .offer__logo { display:flex; align-items:center; justify-content:center; }

@media (max-width: 980px){
  .page-about .tech .offer__grid { grid-template-columns: 1fr; align-items: start; }
  .page-about .tech .offer__text { order: 1; }
  .page-about .tech .offer__logo { order: 2; margin-top: 10px; }
}

/* Responsywne wideo (iframe/mp4) */
.video-wrapper{
  position: relative; width: 100%; padding-bottom: 56.25%; height: 0;
}
.video-wrapper iframe,
.video-wrapper video{
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; border-radius: 16px; box-shadow: var(--shadow);
}

/* Podtytuł w sekcji UV */
.tech__subtitle{
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 500;
  margin-top: -6px;
  color: var(--muted);
}

/* Oddech po liście UV, zanim kolejny akapit */
.offer__text .hero__bullets { margin-bottom: 16px; }
.offer__text .hero__bullets + p { margin-top: 16px; }

/* === Strony „soon” – blog/visual: szybki formularz bez tła === */
.home-quick-contact__wrap{ max-width: 720px; margin-inline: auto; }
.home-quick-contact__title{ text-align:center; margin: 0 0 8px; }
.home-quick-contact__lead{ text-align:center; margin: 0 0 16px; }
.home-quick-contact .contact__form .btn{ align-self: center; }

/* (pomocnicze) małe odległości po sekcjach UV/blog */
.tech__outro{ margin-top: 14px; }

/* Warstwy podglądu */
.canvas-wall,
.canvas-art{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* Ściana: zwykle na całe tło */
.canvas-wall{ object-fit: cover; }

/* Grafika – pozycjonowana w środku i przesuwana */
.canvas-art{
  left: 50%;
  top: 50%;
  width: auto; height: auto; max-width: 85%; max-height: 85%;
  transform: translate(-50%, -50%) translate(var(--dx, 0px), var(--dy, 0px)) scale(var(--scale, 1));
  transform-origin: center center;
  opacity: var(--opacity, 1);
  cursor: grab;
  pointer-events: auto; /* włącz interakcję tylko na warstwie grafiki */
  user-select: none;
}
.canvas-art:active{ cursor: grabbing; }

/* Ukryj placeholder, gdy są pliki */
.preview.has-content .mock{ display:none; }
/* Nakładki: siatka + linijka */
.grid-overlay,
.ruler-overlay{
  position:absolute; inset:0; z-index:3; pointer-events:none;
}

.grid-overlay{
  background:
    /* drobna co 20px */
    repeating-linear-gradient(to right, rgba(17,24,39,.15) 0 1px, transparent 1px 20px),
    repeating-linear-gradient(to bottom, rgba(17,24,39,.15) 0 1px, transparent 1px 20px),
    /* grubsza co 100px */
    repeating-linear-gradient(to right, rgba(17,24,39,.30) 0 2px, transparent 2px 100px),
    repeating-linear-gradient(to bottom, rgba(17,24,39,.30) 0 2px, transparent 2px 100px);
  mix-blend-mode: multiply;
  opacity: 0; transition: opacity .2s ease;
}
.preview.show-grid .grid-overlay{ opacity: .9; }

.ruler-overlay{ opacity: 0; transition: opacity .2s ease; }
.preview.show-ruler .ruler-overlay{ opacity: 1; }

.canvas-art{
  position:absolute; left:50%; top:50%;
  transform:
    translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px)))
    rotate(var(--rot, 0deg))
    scale(var(--scale, 1));
  transform-origin: center center;
  opacity: var(--opacity, 1);
  z-index:2;
  pointer-events: auto; touch-action: none; user-select: none;
  max-width: 90%; max-height: 90%;
  cursor: grab;
}
.canvas-art:active{ cursor: grabbing; }

.logo-frame{
  display:flex;
  align-items:center;
  justify-content:center;
  width: 500px;   /* szerokość ramki */
  height: 300px;  /* wysokość ramki */
  border-radius:24px;
  background:
    linear-gradient(#fff,#fff) padding-box,
    linear-gradient(135deg,#f43f5e,#f59e0b) border-box;
  border:8px solid transparent;
  box-shadow:0 18px 50px rgba(0,0,0,.12),0 6px 16px rgba(0,0,0,.06);
  margin:auto; /* wyśrodkowanie */
}

.logo-frame img{
  max-width:70%;  /* dopasuj rozmiar logo */
  height:auto;
}

/* kontener centrujący */
.center-wrapper{
  display:flex;
  align-items:center;   /* pionowe wyśrodkowanie */
  justify-content:center; /* poziome wyśrodkowanie */
  min-height:100vh;     /* pełna wysokość ekranu */
}





.post-body > div:last-child {
  display: flex;
  justify-content: flex-end; /* wyrównanie do prawej */
}




/* --- BLOG HERO TOOLBAR (wspólne dla blog.html i jak.html) --- */
.blog-hero h1{ margin:0 0 6px; }
.blog-hero .muted{ margin:0; }

.blog-toolbar{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:12px;
  margin-top:16px;
}
@media (max-width:760px){
  .blog-toolbar{ grid-template-columns:1fr; }
}

.blog-search{
  display:flex; gap:8px; align-items:center;
  background:#fff; border:1px solid #e5e7eb;
  border-radius:12px; padding:10px 12px;
  box-shadow: var(--shadow);
}
.blog-search input{
  border:0; outline:0; width:100%; font:inherit; background:transparent;
}

.blog-tags{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.tag-chip{
  padding:8px 12px; border-radius:999px;
  border:1px solid #e5e7eb; background:#fff;
  font-weight:600; cursor:pointer;
}
.tag-chip[aria-pressed="true"]{
  color:#fff; border-color:transparent;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  box-shadow: 0 6px 16px rgba(0,0,0,.10);
}





/* --- Single: tytuł w treści + zdjęcie z opływaniem --- */
.post-title-inline{
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: -.01em;
  color: var(--ink);
}

.post-float{
  width: min(420px, 45%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.post-float img{ display:block; width:100%; height:auto; }

.post-float.left{ float: left;  margin: 4px 16px 10px 0; }
.post-float.right{ float: right; margin: 4px 0 10px 16px; }

/* żeby kontener artykułu „łapał” floaty */
.article .content::after{ content:""; display:block; clear: both; }

/* Na mobile: zdjęcie na pełną szerokość, bez opływania */
@media (max-width: 720px){
  .post-float.left, .post-float.right{
    float: none; width: 100%; margin: 8px 0 12px;
  }
}


/* 1) Nagłówek listy pośrodku + większy font */
.article-aside .aside-title{
  text-align: center;
  font-size: clamp(1.05rem, 1.2vw + 0.8rem, 1.25rem); /* było ok. 1rem */
  margin-bottom: 10px;
}

/* 2) Miniatury po lewej, tytuł opływa po prawej */
.prev-list { gap: 14px; }

/* Poprzednie artykuły — finalne wyrównanie do środka */
.prev-item {
  display: flex;
  align-items: center;       /* wyśrodkowanie tytułu względem miniatury */
  gap: 12px;
  padding: 6px 2px;
  border-radius: 10px;
}

.prev-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
}

.prev-title {
  line-height: 1.3;
  font-weight: 800;
  flex: 1;                   /* pozwala tytułowi zajmować resztę szerokości */
}

/* Hover – delikatne podbicie tła */
.prev-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  padding: 4px 6px;
}
/* Hover – delikatne podbicie tła w kolorze brzoskwiniowym */
.prev-link:hover {
  background: rgba(255, 173, 117, 0.18); /* półprzezroczysta brzoskwinia */
  transition: background 0.2s ease;
}

.prev-link:hover .prev-title {
  text-decoration: underline;
}


/* Mobile – gdy bardzo wąsko, zostawiamy ten sam układ; 
   jeśli chcesz pod zdjęciem, odklej float w tym breakpoincie */
@media (max-width: 420px){
  /* odkomentuj, jeśli wolisz obrazek nad tytułem na bardzo wąskich ekranach */
  /*
  .prev-thumb{ float:none; margin:0 0 8px 0; width:100%; height:auto; }
  .prev-title{ min-height: 0; }
  */
}




/* --- Stylizacja tytułu artykułu (H1) --- */
.post-title-inline {
  font-size: clamp(2.2rem, 4vw, 2.8rem);  /* większy, elastyczny */
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: clamp(28px, 4vw, 40px);   /* większy odstęp od treści */
  color: var(--text-color, #0f172a);
  text-align: left;
}

/* --- Stylizacja nagłówków w treści (H2) --- */
.article h2 {
  font-size: clamp(1.25rem, 1.8vw, 1.55rem); /* nieco mniejsze niż obecnie */
  font-weight: 800;
  line-height: 1.25;
  margin-top: clamp(24px, 4vw, 36px);
  margin-bottom: 10px;
  color: var(--text-color, #0f172a);
}

/* --- Opcjonalnie: delikatna linia oddzielająca H1 od treści --- */
.post-title-inline::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin-top: 20px;
  background: linear-gradient(90deg, #ffb580 0%, #ff9b63 100%);
  border-radius: 4px;
}


/* Hero – poprawa kontrastu dla podtytułu */
.hero__subtitle {
  color: #374151; /* ciemniejszy, bardziej kontrastowy */
  font-weight: 500;
}

/* Dla lepszej czytelności na zdjęciach – cień tylko w razie potrzeby */
@media (max-width: 800px) {
  .hero__subtitle {
    text-shadow: 0 1px 3px rgba(0,0,0,0.25);
  }
}
