/* ============ FUNDACJA FIRMA DLA KAŻDEGO — main stylesheet ============ */
:root {
  --cyan: #00bbff;
  --cyan-dark: #0095cc;
  --purple: #4e459d;
  --purple-dark: #3a3480;
  --ink: #1d2340;
  --body-c: #4a5065;
  --soft: #f4f8fc;
  --line: #e3e9f2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(29, 35, 64, 0.08);
  --shadow-lg: 0 18px 44px rgba(29, 35, 64, 0.14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  color: var(--body-c);
  background: #fff;
  line-height: 1.7;
  font-size: 1rem;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 700; line-height: 1.25; }
a { color: var(--purple); }
a:hover { color: var(--cyan-dark); }
:focus-visible { outline: 3px solid rgba(0, 187, 255, 0.55); outline-offset: 2px; border-radius: 4px; }
.container { max-width: 1180px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-nav { padding: 0.55rem 0; }
.site-brand { flex-shrink: 0; margin-right: 1.5rem; }
.site-nav .nav-link {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.93rem;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
}
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--cyan-dark); background: rgba(0, 187, 255, 0.08); }
.site-nav .nav-cta {
  background: var(--cyan);
  color: #06283a !important;
  padding: 0.5rem 1.3rem !important;
  border-radius: 999px;
  margin-left: 0.4rem;
}
.site-nav .nav-cta:hover { background: var(--cyan-dark); color: #fff !important; }
.site-toggler {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.site-toggler .toggler-bar { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; display: block; }
.lang-switch { display: inline-flex; align-items: center; gap: 0.15rem; margin-left: 0.75rem; }
.lang-btn {
  border: 0; background: transparent; color: var(--body-c);
  font-weight: 700; font-size: 0.85rem; padding: 0.35rem 0.45rem; border-radius: 8px; cursor: pointer;
}
.lang-btn:hover { color: var(--cyan-dark); }
.lang-btn.active { background: var(--purple); color: #fff; }
.lang-sep { color: var(--line); font-weight: 600; }
@media (max-width: 991.98px) {
  #mainNav { padding: 0.75rem 0.25rem 1rem; }
  #mainNav .nav-link { padding: 0.55rem 0.5rem; }
  .nav-cta { display: inline-block; margin-top: 0.5rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(120deg, #131a3a 0%, #2a2a68 55%, #0d5f86 100%);
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0.35;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(19, 26, 58, 0.88) 15%, rgba(19, 26, 58, 0.35) 75%);
}
.hero-inner { position: relative; z-index: 2; padding: 5.5rem 0 6.5rem; }
.hero h1 { color: #fff; font-weight: 800; font-size: clamp(1.9rem, 4.2vw, 3.4rem); letter-spacing: -0.5px; }
.hero .hero-rotator { min-height: 1.3em; }
.hero p.lead { color: rgba(255, 255, 255, 0.88); max-width: 620px; margin-top: 1.1rem; font-weight: 500; }
.hero .btn { margin-top: 1.6rem; }
.btn-primary-cta {
  background: var(--cyan); color: #06283a; font-weight: 700;
  border: none; border-radius: 999px; padding: 0.8rem 2.1rem;
  transition: background 0.2s ease, transform 0.2s ease;
  display: inline-block; text-decoration: none;
}
.btn-primary-cta:hover { background: var(--cyan-dark); color: #fff; transform: translateY(-2px); }
.btn-outline-cta {
  border: 2px solid rgba(255, 255, 255, 0.7); color: #fff; font-weight: 700;
  border-radius: 999px; padding: 0.75rem 1.9rem; text-decoration: none; display: inline-block;
  transition: all 0.2s ease;
}
.btn-outline-cta:hover { background: #fff; color: var(--ink); }
.btn-secondary-cta {
  background: var(--purple); color: #fff; font-weight: 700; border: none;
  border-radius: 999px; padding: 0.8rem 2.1rem; text-decoration: none; display: inline-block;
}
.btn-secondary-cta:hover { background: var(--purple-dark); color: #fff; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(120deg, #1d2340 0%, #4e459d 100%);
  color: #fff;
  padding: 3.8rem 0;
}
.page-hero h1 { color: #fff; font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 0.6rem; }
.page-hero p { color: rgba(255, 255, 255, 0.85); max-width: 760px; margin-bottom: 0; font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-soft { background: var(--soft); }
.legal-content h2 { font-size: 1.25rem; font-weight: 700; margin: 1.6rem 0 0.6rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--body-c); }
.section-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 1rem; }
.section-title-sm { font-size: 1.35rem; margin-bottom: 1rem; }
.section-intro { max-width: 800px; margin-inline: auto; text-align: center; color: var(--body-c); }
.text-center .section-intro { margin-left: auto; margin-right: auto; }

/* ---------- Value cards ---------- */
.value-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.6rem; height: 100%; box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.value-icon {
  width: 58px; height: 58px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 187, 255, 0.12); color: var(--cyan-dark); margin-bottom: 1.1rem;
}
.value-icon.purple { background: rgba(78, 69, 157, 0.1); color: var(--purple); }
.value-icon svg { width: 28px; height: 28px; }
.value-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.value-card p { margin-bottom: 0; font-size: 0.95rem; }
.value-tag { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--cyan-dark); background: rgba(0,187,255,0.1); border-radius: 999px; padding: 0.2rem 0.8rem; margin-bottom: 0.9rem; }

/* ---------- Offer list ---------- */
.offer-list { list-style: none; padding: 0; margin: 0; }
.offer-list li {
  position: relative; padding-left: 2.2rem; margin-bottom: 0.85rem;
}
.offer-list li::before {
  content: ""; position: absolute; left: 0; top: 0.35rem;
  width: 20px; height: 20px; border-radius: 50%;
  background-color: rgba(0, 187, 255, 0.18);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%230095cc' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='m4 8.2 2.6 2.6L12 5.4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}
.info-panel {
  background: linear-gradient(120deg, rgba(0,187,255,0.08), rgba(78,69,157,0.08));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow);
}

/* ---------- Blog grid (compiled cards) ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.blog-grid [data-blog-listing], .blog-grid .blog-card { display: flex; }
@media (max-width: 991.98px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none;
  box-shadow: var(--shadow); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-figure { aspect-ratio: 2 / 1; overflow: hidden; }
.blog-card-figure img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 1.3rem 1.3rem 0.6rem; flex: 1 1 auto; }
.blog-card-tags { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--cyan-dark); margin-bottom: 0.45rem; }
.blog-card-title { font-size: 1.08rem; color: var(--ink); margin-bottom: 0.5rem; }
.blog-card-excerpt { font-size: 0.9rem; color: var(--body-c); margin-bottom: 0; }
.blog-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.85rem 1.3rem; border-top: 1px solid var(--line);
  font-size: 0.8rem; color: #8a90a5; font-weight: 600;
}
.blog-card:hover .blog-card-title { color: var(--cyan-dark); }

/* ---------- Team ---------- */
.team-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); height: auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-photo { aspect-ratio: 2 / 3; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.team-card-body { padding: 1.1rem 1.2rem 1.3rem; }
.team-card-body h3 { font-size: 1rem; margin-bottom: 0.15rem; }
.team-card-body p { font-size: 0.83rem; color: var(--cyan-dark); font-weight: 600; margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-accordion .accordion-item { border: 1px solid var(--line); border-radius: var(--radius) !important; margin-bottom: 0.8rem; overflow: hidden; }
.faq-accordion .accordion-button { font-weight: 700; color: var(--ink); background: #fff; padding: 1.05rem 1.3rem; }
.faq-accordion .accordion-button:not(.collapsed) { color: var(--purple); background: var(--soft); box-shadow: none; }
.faq-accordion .accordion-button:focus { box-shadow: none; border-color: var(--line); }
.faq-accordion .accordion-body { padding: 0.4rem 1.3rem 1.2rem; font-size: 0.95rem; }
.faq-accordion .accordion-body ul { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow); margin-bottom: 1.3rem; height: auto;
}
.contact-info-card h2, .contact-info-card h3 { font-size: 1.05rem; margin-bottom: 0.8rem; }
.contact-info-card p { margin-bottom: 0.4rem; font-size: 0.93rem; }
.contact-form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow);
}
.form-label { font-weight: 600; color: var(--ink); font-size: 0.9rem; }
.form-control, .form-select {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 0.65rem 0.9rem;
}
.form-control:focus, .form-select:focus { border-color: var(--cyan); box-shadow: 0 0 0 0.2rem rgba(0, 187, 255, 0.15); }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-frame iframe { display: block; width: 100%; height: 360px; border: 0; }

/* ---------- Post pages ---------- */
.post-main { padding: 2.5rem 0 4.5rem; }
.post-breadcrumb { font-size: 0.85rem; color: #8a90a5; margin-bottom: 1.5rem; }
.post-breadcrumb a { color: #8a90a5; text-decoration: none; }
.post-breadcrumb a:hover { color: var(--cyan-dark); }
.post-head { margin-bottom: 2rem; }
.post-title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: 0.9rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; font-size: 0.85rem; color: #8a90a5; font-weight: 600; }
.post-meta-dot { width: 4px; height: 4px; border-radius: 50%; background: #c6ccd9; }
.post-article { font-size: 1rem; }
.post-article h2 { font-size: 1.35rem; margin: 2.2rem 0 0.9rem; }
.post-article h3 { font-size: 1.12rem; margin: 1.6rem 0 0.7rem; }
.post-article img { border-radius: var(--radius); margin: 1.5rem auto; }
.post-article ul, .post-article ol { padding-left: 1.4rem; }
.post-toc-card, .post-cta-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow); margin-bottom: 1.3rem;
}
.post-toc-title { font-size: 1rem; margin-bottom: 0.8rem; }
[data-blog-toc] a { display: block; padding: 0.3rem 0; font-size: 0.9rem; text-decoration: none; color: var(--body-c); border-left: 3px solid var(--line); padding-left: 0.8rem; }
[data-blog-toc] a:hover { color: var(--cyan-dark); border-left-color: var(--cyan); }
.post-cta-card h2 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.post-cta-card p { font-size: 0.9rem; }
.post-related { margin-top: 3rem; }
.post-related .blog-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 991.98px) { .post-related .blog-grid { grid-template-columns: 1fr; } .post-aside { margin-top: 2rem; } }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--purple) 0%, var(--purple-dark) 100%); color: #fff; padding: 3.4rem 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 1.6rem; }

/* ---------- Footer ---------- */
.site-footer { color: #b9bfd4; }
.footer-main { background: var(--ink); padding: 3.2rem 0 2.4rem; }
.footer-logo { width: 166px; margin-bottom: 1.1rem; }
.footer-desc { font-size: 0.9rem; max-width: 320px; }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.1rem; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.footer-social a:hover { background: var(--cyan); color: var(--ink); }
.footer-heading { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a { color: #b9bfd4; text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--cyan); }
.footer-contact p { font-size: 0.9rem; margin-bottom: 0.7rem; }
.footer-contact a { color: var(--cyan); text-decoration: none; font-weight: 600; }
.footer-reg { color: #8a90a5; }
.footer-bottom { background: #141830; padding: 1.1rem 0; font-size: 0.82rem; }

/* ---------- Misc ---------- */
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-size: 0.8rem; color: var(--cyan-dark); margin-bottom: 0.6rem; display: block; }
.divider-dot { width: 56px; height: 5px; border-radius: 999px; background: var(--cyan); margin: 0 auto 1.4rem; }
.two-col-img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.badge-soft { background: rgba(0,187,255,0.12); color: var(--cyan-dark); font-weight: 700; border-radius: 999px; padding: 0.35rem 1rem; font-size: 0.82rem; display: inline-block; }
.table-plain td, .table-plain th { color: var(--body-c); }
@media (max-width: 575.98px) {
  .hero-inner { padding: 3.6rem 0 4.2rem; }
  .section { padding: 3rem 0; }
  .contact-form-card { padding: 1.4rem; }
}
