/* ============================================================
   O FUNDACJI — strona fundacji IWORIS / PFR
   ============================================================ */

/* ── HERO (ciemny gradient jak pozostałe podstrony) ── */
.of-hero {
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #1A1A2E 100%);
  padding: 56px 0 52px;
  position: relative;
  overflow: hidden;
}
.of-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(192,57,43,.18) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(192,57,43,.10) 0%, transparent 60%);
  pointer-events: none;
}

.of-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.of-hero-left { max-width: 620px; }

.of-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #f87171;
  background: rgba(192,57,43,.15);
  border: 1px solid rgba(192,57,43,.35);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 18px;
}
.of-hero h1 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0 0 16px;
}
.of-hero h1 em {
  font-style: italic;
  color: #f87171;
}
.of-hero-sub {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,.8);
  margin: 0 0 8px;
}
.of-hero-tagline {
  font-size: 15px;
  color: rgba(255,255,255,.5);
  margin: 0;
  font-style: italic;
}

/* IWORIS badge — prawa strona hero */
.of-iworis-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 200px;
  text-align: left;
  padding-right: 0;
}
.of-iworis-emblem { width: 200px; height: auto; display: block; object-fit: contain; }
.of-iworis-caption {
  display: flex;
  align-items: flex-start;
  gap: 0;
  border-left: 3px solid #C0392B;
  padding-left: 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
  max-width: 200px;
}

/* ── O FUNDACJI ── */
.of-about {
  background: #f9fafb;
  padding: 64px 0 72px;
}
.of-about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: center;
}
.of-about h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  color: #1a1f3a;
  margin: 0 0 28px;
  line-height: 1.15;
}
.of-about-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.of-about-list li {
  padding-left: 14px;
  border-left: 3px solid #C0392B;
  color: #4b5563;
  font-size: 15.5px;
  line-height: 1.75;
}

/* Karta ze statystykami */
.of-stats-card {
  background: #16213E;
  border-radius: 18px;
  padding: 8px 36px;
  display: flex;
  flex-direction: column;
}
.of-stat-row {
  padding: 24px 0;
}
.of-stat-row strong {
  display: block;
  font-size: clamp(40px, 4vw, 52px);
  font-weight: 900;
  color: #C0392B;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.of-stat-row span {
  font-size: 11.5px;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 500;
}
.of-stat-sep {
  height: 1px;
  background: rgba(255,255,255,.1);
}

.of-about p {
  font-size: 15.5px;
  line-height: 1.75;
  color: #4b5563;
  margin: 0 0 28px;
}
.of-about-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.of-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #C0392B;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.of-btn-primary:hover { background: #96281b; transform: translateY(-1px); }
.of-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: #C0392B;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  border: 2px solid #C0392B;
  transition: background .2s, color .2s, transform .15s;
}
.of-btn-outline:hover { background: #C0392B; color: #fff; transform: translateY(-1px); }

/* ── NASZE MEDIA ── */
.of-media {
  background: #fff;
  padding: 48px 0 56px;
}
.of-media-head { margin-bottom: 20px; }
.of-media-head h2 {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  color: #1a1f3a;
  margin: 0;
}
.of-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.of-media-card {
  background: #fff;
  border: 1.5px solid #e8eaed;
  border-bottom: 3px solid transparent;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .22s, transform .22s, border-bottom-color .22s;
  position: relative;
  overflow: hidden;
}
.of-media-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.11);
  transform: translateY(-3px);
  border-bottom-color: #C0392B;
}
.of-media-card-arrow {
  position: absolute;
  top: 13px;
  right: 13px;
  color: #9ca3af;
  transition: color .2s;
  width: 20px;
  height: 20px;
}
.of-media-card:hover .of-media-card-arrow { color: #C0392B; }

/* Logo strip — górna część karty */
.of-media-logo-strip {
  display: flex;
  align-items: center;
  padding: 18px 20px 16px;
  border-bottom: 1px solid #f0f2f4;
  min-height: 100px;
  background: #fafbfc;
}
.of-media-logo-strip img {
  max-height: 80px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}
.of-media-logo-strip--square img {
  max-height: 80px;
  max-width: 200px;
  object-position: left center;
}

.of-media-body { padding: 14px 20px 16px; padding-right: 32px; }
.of-media-url {
  font-size: 11.5px;
  font-weight: 700;
  color: #C0392B;
  margin: 0 0 1px;
  text-decoration: none;
}
.of-media-title {
  font-size: 13px;
  font-weight: 700;
  color: #1a1f3a;
  margin: 0 0 4px;
  line-height: 1.3;
}
.of-media-desc {
  font-size: 11.5px;
  line-height: 1.55;
  color: #6b7280;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── DÓŁ STRONY: KONTAKT + WSPARCIE OBOK SIEBIE ── */
.of-bottom-section {
  background: #f9fafb;
  padding: 56px 0 64px;
}
.of-bottom {
  display: flex;
  min-height: 380px;
  border-radius: 16px;
  overflow: hidden;
}

/* Panel ciemny — Kontakt (lewy) */
.of-kontakt-panel {
  flex: 1.68;
  background: #1a2240;
  padding: 48px 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.of-kontakt-text h2 {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 20px;
}
.of-kontakt-questions {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.of-kontakt-questions li {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255,255,255,.8);
  padding-left: 16px;
  position: relative;
}
.of-kontakt-questions li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: #C0392B;
  font-weight: 700;
}
.of-kontakt-cta {
  font-size: 17px;
  font-weight: 800;
  color: #C0392B;
  margin: 0;
}

/* Formularz kontaktowy */
.of-contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.of-contact-form input,
.of-contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1f3a;
  background: #fff;
  transition: border-color .2s;
  box-sizing: border-box;
  outline: none;
}
.of-contact-form input::placeholder,
.of-contact-form textarea::placeholder {
  color: #9ca3af;
}
.of-contact-form input:focus,
.of-contact-form textarea:focus {
  border-color: #C0392B;
}
.of-contact-form textarea { min-height: 90px; resize: vertical; }
.of-contact-rodo {
  font-size: 11px;
  line-height: 1.6;
  color: rgba(255,255,255,.4);
  margin: 2px 0 0;
}
.of-contact-rodo a { color: rgba(255,255,255,.6); text-decoration: underline; }
.of-contact-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  background: #C0392B;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 13px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.of-contact-submit:hover { background: #96281b; }
.of-contact-submit:disabled { opacity: .65; cursor: default; }
.of-contact-msg {
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 7px;
  display: none;
}
.of-contact-msg.ok { background: rgba(22,163,74,.2); color: #86efac; display: block; }
.of-contact-msg.err { background: rgba(220,38,38,.2); color: #fca5a5; display: block; }

/* Panel czerwony — Wsparcie (prawy) */
.of-wsparcie-panel {
  flex: 1;
  background: #C0392B;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.of-wsparcie-panel::before,
.of-wsparcie-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: .08;
  background: #fff;
  pointer-events: none;
}
.of-wsparcie-panel::before { width: 220px; height: 220px; right: -60px; top: -60px; }
.of-wsparcie-panel::after  { width: 160px; height: 160px; right: 40px;  bottom: -50px; }
.of-wsparcie-content { flex: 1; display: flex; flex-direction: column; }
.of-wsparcie-panel h2 {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 900;
  margin: 0 0 20px;
  line-height: 1.15;
}
.of-wsparcie-panel p {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255,255,255,.9);
  margin: 0 0 10px;
}
.of-wsparcie-panel p:last-of-type { margin-bottom: 0; }
.of-wsparcie-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #C0392B;
  font-weight: 800;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 9px;
  text-decoration: none;
  margin-top: 32px;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.of-wsparcie-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .of-kontakt-panel { padding: 48px 32px; gap: 28px; }
  .of-wsparcie-panel { padding: 48px 28px; }
}
@media (max-width: 900px) {
  .of-hero-grid { grid-template-columns: 1fr; }
  .of-iworis-badge { flex-direction: row; align-items: center; justify-content: flex-start; }
  .of-about-grid { grid-template-columns: 1fr; }
  .of-stats-card { padding: 8px 28px; }
  .of-bottom { flex-direction: column; }
  .of-kontakt-panel { grid-template-columns: 1fr; gap: 24px; padding: 40px 24px; }
  .of-wsparcie-panel { padding: 40px 24px; }
  .of-media-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .of-hero { padding: 40px 0 40px; }
  .of-about { padding: 44px 0 52px; }
  .of-media { padding: 44px 0 52px; }
  .of-about-btns { flex-direction: column; align-items: flex-start; }
}
