/* BEZPIECZNE RYZYKO — Warm sanctuary for children's minds */
:root {
  --teal: #0d7a7a;
  --teal-dark: #0a5e5e;
  --teal-light: #1a9e9e;
  --coral: #e8826b;
  --coral-light: #f0a595;
  --cream: #faf7f2;
  --cream-dark: #f0ebe2;
  --ink: #2d3436;
  --ink-soft: #5a6366;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(13, 122, 122, 0.08);
  --shadow-lg: 0 8px 40px rgba(13, 122, 122, 0.12);
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: 'DM Sans', Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

a { text-decoration: none; color: var(--teal); transition: var(--transition); }
a:hover { color: var(--coral); }

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(13, 122, 122, 0.08);
  padding: 0.7rem 0;
  transition: var(--transition);
  z-index: 1030;
}
.navbar.scrolled {
  background: rgba(250, 247, 242, 1);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.navbar-brand {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--teal);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-brand:hover { color: var(--teal-dark); }
.navbar-brand .brand-mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--coral));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.1rem; font-weight: 700;
  flex-shrink: 0;
}
.navbar-brand .brand-text { line-height: 1.1; }
.navbar-brand .brand-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem; font-weight: 400;
  color: var(--ink-soft); letter-spacing: 0.1em;
  text-transform: uppercase;
}
.navbar-nav .nav-link {
  color: var(--ink) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--teal) !important;
  background: rgba(13, 122, 122, 0.07);
}
.navbar-toggler {
  border: none; padding: 0.4rem 0.5rem;
}
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230d7a7a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13, 90, 90, 0.65) 0%, rgba(13, 122, 122, 0.45) 50%, rgba(232, 130, 107, 0.35) 100%);
  z-index: 1; pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  padding: 7rem 0 4rem;
  max-width: 720px;
}
.hero h1 {
  color: white;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.hero h1 .accent {
  font-style: italic;
  color: #ffd9c9;
  font-weight: 500;
}
.hero .lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin-bottom: 2rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.2);
  max-width: 560px;
}
.hero .btn-warm {
  background: var(--coral);
  color: white;
  border: 2px solid var(--coral);
}
.hero .btn-warm:hover {
  background: transparent;
  border-color: white;
  color: white;
}
.hero .btn-outline-light {
  border: 2px solid rgba(255,255,255,0.5);
  color: white;
}
.hero .btn-outline-light:hover {
  background: white;
  color: var(--teal);
  border-color: white;
}

/* ===== BUTTONS ===== */
.btn {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 0.7rem 1.8rem;
  font-size: 0.95rem;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: white;
}
.btn-coral {
  background: var(--coral);
  border-color: var(--coral);
  color: white;
}
.btn-coral:hover {
  background: var(--coral-light);
  border-color: var(--coral-light);
  color: white;
}
.btn-outline-teal {
  border: 2px solid var(--teal);
  color: var(--teal);
  background: transparent;
}
.btn-outline-teal:hover {
  background: var(--teal);
  color: white;
}

/* ===== SECTIONS ===== */
section { padding: 5rem 0; }
.section-light { background: var(--cream); }
.section-white { background: var(--white); }
.section-teal { background: var(--teal); color: white; }
.section-teal h2, .section-teal h3 { color: white; }
.section-cream-dark { background: var(--cream-dark); }

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.8rem;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 1.2rem;
  line-height: 1.2;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 0;
}
.section-teal .section-subtitle { color: rgba(255,255,255,0.85); }

/* ===== CARDS ===== */
.card {
  border: none;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.card-body { padding: 2rem; }
.card-title {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--ink);
}
.card-text { color: var(--ink-soft); font-size: 0.95rem; }

.topic-card {
  text-align: center;
  padding: 2.5rem 1.8rem;
  height: 100%;
}
.topic-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
}
.topic-icon svg { width: 30px; height: 30px; }

/* ===== STATS ===== */
.stat-block {
  text-align: center;
  padding: 1.5rem;
}
.stat-number {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--coral);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  height: 100%;
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: 'Fraunces', serif;
  font-size: 4rem;
  color: var(--coral);
  opacity: 0.2;
  position: absolute;
  top: 10px; left: 20px;
  line-height: 1;
}
.testimonial-text {
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.testimonial-author {
  font-weight: 600;
  color: var(--teal);
  font-size: 0.95rem;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--teal), var(--coral));
}
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem; top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--teal);
}
.timeline-item:last-child::before {
  border-color: var(--coral);
}

/* ===== TEAM ===== */
.team-card {
  text-align: center;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.team-avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  margin: 2rem auto 1rem;
  background: linear-gradient(135deg, var(--teal-light), var(--coral));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
}
.team-name {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}
.team-role {
  color: var(--coral);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.team-bio {
  text-align: left;
  padding: 0 2rem 2rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.team-bio ul { padding-left: 1.2rem; }
.team-bio li { margin-bottom: 0.4rem; }

/* ===== ACTIVITY CARDS ===== */
.activity-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}
.activity-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.activity-card .card-img-top {
  height: 240px;
  object-fit: cover;
  width: 100%;
}
.activity-card .card-body { padding: 1.8rem; }
.activity-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}
.activity-card p { font-size: 0.93rem; color: var(--ink-soft); margin-bottom: 0; }

/* ===== REFERENCE CARDS ===== */
.reference-card {
  border-left: 4px solid var(--coral);
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  height: 100%;
}
.reference-card .ref-name {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.reference-card .ref-desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ===== FAQ ===== */
.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-question {
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}
.faq-question:hover { color: var(--teal); }
.faq-question .faq-toggle {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(13,122,122,0.1);
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--teal);
  flex-shrink: 0;
  transition: var(--transition);
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 1.2rem;
}
.faq-answer p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* ===== CONTACT FORM ===== */
.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}
.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.form-control, .form-select {
  border: 2px solid #e8e4dc;
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  background: var(--cream);
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,122,122,0.1);
  background: white;
}
.form-check-input:checked {
  background-color: var(--teal);
  border-color: var(--teal);
}
.form-check-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,122,122,0.1);
}

/* ===== INFO BLOCKS ===== */
.info-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  height: 100%;
}
.info-block h4 {
  font-size: 1.1rem;
  color: var(--teal);
  margin-bottom: 1rem;
}
.info-block p, .info-block li {
  font-size: 0.93rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.info-block ul { padding-left: 1.2rem; }

/* ===== PAGE HEADER (subpages) ===== */
.page-header {
  position: relative;
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  color: white;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: -50px; right: -50px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(232,130,107,0.15);
}
.page-header h1 {
  color: white;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 0.8rem;
}
.page-header .breadcrumb {
  margin: 0;
}
.page-header .breadcrumb a {
  color: rgba(255,255,255,0.75);
}
.page-header .breadcrumb a:hover { color: white; }
.page-header .breadcrumb .active { color: rgba(255,255,255,0.9); }
.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.4);
}

/* ===== FOOTER ===== */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}
footer h5 {
  color: white;
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}
footer a { color: rgba(255,255,255,0.7); }
footer a:hover { color: var(--coral); }
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 0.6rem; font-size: 0.9rem; }
.footer-brand {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 10px;
}
.footer-brand .brand-mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-light), var(--coral));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1rem; font-weight: 700;
  flex-shrink: 0;
}
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  margin-right: 8px;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--coral);
  color: white;
}
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  margin-top: 2rem;
  font-size: 0.85rem;
}
.footer-legal {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.5rem;
}

/* ===== UTILITY ===== */
.text-coral { color: var(--coral) !important; }
.text-teal { color: var(--teal) !important; }
.bg-teal { background: var(--teal) !important; }
.bg-coral { background: var(--coral) !important; }
.bg-cream { background: var(--cream) !important; }
.rounded-warm { border-radius: var(--radius) !important; }
.divider {
  width: 60px; height: 4px;
  background: var(--coral);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}
.divider-teal { background: var(--teal); }
.divider-center { margin-left: auto; margin-right: auto; }

.feature-list { list-style: none; padding: 0; }
.feature-list li {
  padding: 0.5rem 0 0.5rem 2rem;
  position: relative;
  font-size: 0.95rem;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.85rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--coral);
}

.image-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.image-frame img { width: 100%; }

.quote-block {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--teal);
  line-height: 1.5;
  padding: 2rem;
  border-left: 4px solid var(--coral);
  background: var(--cream-dark);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.support-method {
  display: flex; gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  align-items: flex-start;
}
.support-number {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
  flex-shrink: 0;
}
.support-method h5 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--ink);
}
.support-method p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

.bank-details {
  background: var(--cream-dark);
  border-radius: var(--radius);
  padding: 1.5rem;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.8;
}
.bank-details strong { color: var(--teal); }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 0.5rem;
    box-shadow: var(--shadow-lg);
  }
  .navbar-nav .nav-link {
    padding: 0.6rem 1rem !important;
  }
  .hero-content { padding-top: 6rem; }
  section { padding: 3.5rem 0; }
}

@media (max-width: 576px) {
  body { font-size: 16px; }
  .card-body { padding: 1.5rem; }
  .topic-card { padding: 1.8rem 1.2rem; }
  .testimonial-card { padding: 1.8rem; }
  .contact-form-wrapper { padding: 1.5rem; }
  .hero-content { padding: 5rem 0 3rem; }
  .navbar-brand { font-size: 1.1rem; }
  .navbar-brand .brand-sub { font-size: 0.55rem; }
}

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; }
  * { transition: none !important; }
}