/* ============================================================
   Izabela Dziamska – #BliskoWAS
   Paleta zgodna z banerem kampanii (baner.png):
   czerwień #c32d46 / granat #1e4276 / biel
   ============================================================ */

:root {
  --red:         #c32d46;
  --red-deep:    #a51f37;
  --red-soft:    #e05a6f;
  --navy:        #1e4276;
  --navy-band:   #20407b;
  --navy-deep:   #173156;
  --ink:         #101a2e;
  --slate:       #46536e;
  --slate-light: #8b96ad;
  --paper:       #eef2f8;
  --white:       #ffffff;

  --font-display: "Poppins", "Segoe UI", Verdana, sans-serif;
  --font-body:    "Work Sans", "Segoe UI", Arial, sans-serif;

  --maxw: 1180px;
  --radius: 14px;
  --shadow: 0 18px 50px -18px rgba(30, 66, 118, .28);

  /* ziarno – subtelna tekstura tła (SVG data URI) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
section[id] { scroll-margin-top: 84px; }

/* ---------- animacje wejścia ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-text > * { animation: none !important; opacity: 1 !important; }
  .flourish path { animation: none !important; stroke-dashoffset: 0 !important; }
}

/* ============================================================
   NAGŁÓWEK
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30, 66, 118, .1);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 24px; height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { text-decoration: none; display: flex; align-items: baseline; gap: 12px; }
.brand-name {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.2rem; color: var(--navy); letter-spacing: -.01em;
}
.brand-tag {
  font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  color: var(--red);
}
.site-nav { display: flex; gap: 6px; }
.site-nav a {
  text-decoration: none; color: var(--navy);
  font-weight: 500; font-size: .95rem;
  padding: 9px 14px; border-radius: 999px;
  transition: background .25s, color .25s;
}
.site-nav a:hover { background: var(--navy); color: var(--white); }

.nav-toggle { display: none; }
.nav-burger { display: none; }

@media (max-width: 820px) {
  .nav-burger {
    display: flex; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 10px;
  }
  .nav-burger span {
    width: 24px; height: 2px; background: var(--navy);
    transition: transform .3s, opacity .3s;
  }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--white);
    border-bottom: 1px solid rgba(30, 66, 118, .12);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .site-nav a { border-radius: 0; padding: 14px 28px; }
  .nav-toggle:checked ~ .site-nav { max-height: 320px; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  /* zdjęcie w tle + nakładka od lewej dla czytelności tekstu */
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, .97) 0%,
      rgba(255, 255, 255, .92) 34%,
      rgba(248, 250, 253, .55) 62%,
      rgba(255, 255, 255, .12) 100%),
    url("../img/hero-tlo.jpg") right center / cover no-repeat,
    radial-gradient(1100px 560px at 88% -10%, rgba(195, 45, 70, .09), transparent 60%),
    var(--white);
  min-height: min(86vh, 760px);
  display: flex; align-items: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: .35; pointer-events: none;
}
.hero-inner {
  max-width: var(--maxw); margin: 0 auto; width: 100%;
  padding: clamp(56px, 9vw, 110px) 24px;
  position: relative; z-index: 1;
}
.hero-text { max-width: 620px; }

/* orkiestrowane wejście hero */
.hero-text > * { opacity: 0; animation: rise .7s ease forwards; }
.hero-text > *:nth-child(1) { animation-delay: .05s; }
.hero-text > *:nth-child(2) { animation-delay: .15s; }
.hero-text > *:nth-child(3) { animation-delay: .28s; }
.hero-text > *:nth-child(4) { animation-delay: .4s; }
.hero-text > *:nth-child(5) { animation-delay: .52s; }

.hero-kicker {
  font-size: .85rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 18px;
}
.hero-name {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.8rem, 6.6vw, 4.9rem);
  line-height: 1.04; color: var(--navy);
  letter-spacing: -.02em;
}
.hero-name .fn { color: var(--red); }
.hero-role {
  margin-top: 18px; font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 500; color: var(--slate);
  padding-top: 16px;
  border-top: 3px solid var(--navy);
  display: inline-block;
}
.hero-slogan {
  margin-top: 14px; position: relative; display: table;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  color: var(--navy); letter-spacing: -.01em;
}
.hero-slogan em, .closing-slogan em { font-style: normal; color: var(--red); }
.closing-slogan em { color: var(--red-soft); }

.flourish {
  position: absolute; left: 0; right: 0; bottom: -14px;
  width: 100%; height: 14px; color: var(--red);
}
.flourish path {
  stroke-dasharray: 230; stroke-dashoffset: 230;
  animation: draw .9s ease .9s forwards;
}

.hero-cta { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none;
  font-weight: 600; font-size: .95rem;
  padding: 14px 28px; border-radius: 999px;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn-solid { background: var(--navy); color: var(--white); box-shadow: var(--shadow); }
.btn-solid::after {
  content: "→"; display: inline-block; margin-left: .5em;
  transition: transform .25s ease;
}
.btn-solid:hover { transform: translateY(-2px); background: var(--navy-deep); }
.btn-solid:hover::after { transform: translateX(4px); }
.btn-ghost { color: var(--navy); border: 1.5px solid rgba(30, 66, 118, .4); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

/* placeholder, gdy brak pliku zdjęcia */
.photo-placeholder, .ph-note { display: none; }
.is-empty img { display: none; }
.is-empty .photo-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  aspect-ratio: 4 / 5; width: 100%;
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(195, 45, 70, .08), rgba(30, 66, 118, .12));
  border: 1.5px dashed var(--navy);
  position: relative; z-index: 2;
}
.ph-initials {
  font-family: var(--font-display); font-weight: 800;
  font-size: 3.4rem; color: var(--navy); opacity: .5;
}
.is-empty .ph-note {
  display: block; font-size: .8rem; color: var(--slate);
  background: rgba(255, 255, 255, .85); padding: 3px 10px; border-radius: 999px;
}

/* ============================================================
   SEKCJE – wspólne
   ============================================================ */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-cream { background: var(--paper); }
.section-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section-inner.narrow { max-width: 820px; }

.section-kicker {
  font-size: .82rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--red); margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px;
}
.section-kicker::before {
  content: ""; width: 34px; height: 2px; background: var(--red);
}
.section-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--navy);
  line-height: 1.12; margin-bottom: 34px; letter-spacing: -.015em;
}
.section-title .accent { color: var(--red); }
.section-title::after {
  content: ""; display: block; width: 72px; height: 3px;
  background: var(--red); margin-top: 18px; border-radius: 2px;
}

.prose p { margin-bottom: 1.2em; color: var(--slate); font-size: 1.05rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--navy); }
.prose .lead { font-size: 1.18rem; }
.prose h3 {
  font-family: var(--font-display); font-weight: 700;
  color: var(--navy); font-size: 1.3rem;
  margin: 1.6em 0 .7em;
}

/* ============================================================
   O MNIE
   ============================================================ */
.about-grid {
  display: grid; grid-template-columns: .8fr 1.2fr;
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
.about-photo { position: sticky; top: 100px; }
.about-photo img {
  border-radius: var(--radius); aspect-ratio: 4 / 5;
  object-fit: cover; width: 100%; box-shadow: var(--shadow);
}
.about-photo.is-empty { position: static; }

.stats {
  margin-top: clamp(48px, 6vw, 72px);
  background: linear-gradient(120deg, var(--navy), var(--navy-band));
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 28px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.stats::after {
  content: ""; position: absolute; inset: 0;
  background-image: var(--grain); opacity: .4; pointer-events: none;
}
.stat { text-align: center; position: relative; z-index: 1; }
.stat + .stat::before {
  content: ""; position: absolute; left: -14px; top: 12%;
  height: 76%; width: 1px; background: rgba(255, 255, 255, .18);
}
.stat-num {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.1rem); color: var(--white);
  line-height: 1; font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block; margin-top: 10px;
  font-size: .88rem; color: rgba(255, 255, 255, .85);
}

/* ============================================================
   PROGRAM
   ============================================================ */
.pillar { margin-top: clamp(44px, 6vw, 64px); }
.pillar-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem); color: var(--navy);
  margin-bottom: 26px; display: flex; align-items: baseline; gap: 4px;
  position: relative; letter-spacing: -.01em;
}
.pillar-title::before {
  content: attr(data-num);
  position: absolute; left: -.35em; top: -.85em; z-index: -1;
  font-size: 2.6em; font-weight: 800; line-height: 1;
  color: rgba(30, 66, 118, .07);
  letter-spacing: 0;
}
.pillar-hash { color: var(--red); font-weight: 800; }

.checklist { list-style: none; max-width: 860px; }
.checklist li {
  position: relative; padding: 12px 0 12px 40px;
  color: var(--slate); font-size: 1.02rem;
  border-bottom: 1px solid rgba(30, 66, 118, .1);
  transition: background .25s;
}
.checklist li:hover { background: rgba(30, 66, 118, .03); }
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "✓"; position: absolute; left: 6px; top: 10px;
  color: var(--red); font-weight: 700; font-size: 1.05rem;
}

.cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white); border-radius: var(--radius);
  padding: 26px 26px 22px;
  border: 1px solid rgba(30, 66, 118, .1);
  box-shadow: 0 8px 26px -14px rgba(30, 66, 118, .2);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -16px rgba(30, 66, 118, .35); }
.card:hover::before { transform: scaleX(1); }
.card h4 {
  font-family: var(--font-display); font-weight: 700;
  color: var(--navy); font-size: 1.08rem; margin-bottom: 12px;
  padding-bottom: 10px; border-bottom: 2px solid rgba(30, 66, 118, .14);
}
.card ul { list-style: none; }
.card li {
  position: relative; padding: 6px 0 6px 20px;
  font-size: .93rem; color: var(--slate);
}
.card li::before {
  content: ""; position: absolute; left: 2px; top: 14px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
}

/* ============================================================
   GALERIA
   ============================================================ */
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.g-item { position: relative; border-radius: var(--radius); overflow: hidden; }
.g-item img {
  aspect-ratio: 4 / 3; object-fit: cover; width: 100%;
  transition: transform .45s ease;
}
.g-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30, 66, 118, .35), transparent 45%);
  opacity: 0; transition: opacity .35s ease;
}
.g-item:hover img { transform: scale(1.04); }
.g-item:hover::after { opacity: 1; }
.g-item.is-empty {
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, rgba(195, 45, 70, .07), rgba(30, 66, 118, .1));
  border: 1.5px dashed var(--navy);
}
.g-item.is-empty::after { display: none; }

/* ============================================================
   ZAMKNIĘCIE + STOPKA
   ============================================================ */
.closing {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(195, 45, 70, .22), transparent 55%),
    linear-gradient(120deg, var(--navy), var(--navy-band));
  padding: clamp(72px, 10vw, 120px) 24px;
  text-align: center;
}
.closing::after {
  content: ""; position: absolute; inset: 0;
  background-image: var(--grain); opacity: .4; pointer-events: none;
}
.closing-inner { position: relative; z-index: 1; }
.closing-slogan {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 3.7rem); color: var(--white);
  letter-spacing: -.015em;
}
.closing-text {
  margin-top: 18px; color: rgba(255, 255, 255, .85);
  font-size: 1.1rem; max-width: 520px; margin-inline: auto;
}
.closing-sign {
  margin-top: 30px; font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 700; color: var(--white);
}

.site-footer { background: var(--navy-deep); padding: 26px 24px; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .85rem; color: rgba(255, 255, 255, .65);
}

/* ============================================================
   RESPONSYWNOŚĆ
   ============================================================ */
@media (max-width: 980px) {
  .cards, .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
}
@media (max-width: 820px) {
  .hero {
    background:
      linear-gradient(180deg,
        rgba(255, 255, 255, .94) 0%,
        rgba(255, 255, 255, .88) 55%,
        rgba(255, 255, 255, .55) 100%),
      url("../img/hero-tlo.jpg") 68% center / cover no-repeat,
      var(--white);
    min-height: 0;
  }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 380px; }
}
@media (max-width: 520px) {
  .brand-name { font-size: 1.05rem; white-space: nowrap; }
  .brand-tag { display: none; }
}
@media (max-width: 620px) {
  .cards, .cards-3, .gallery { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-inner { justify-content: center; text-align: center; }
}
