/* redcert.org.pl — motyw serwisu na bazie Bootstrap 5.3 (lokalnie, bez zewnętrznych fontów).
   Kolory: granat #0F2747/#102C54, zieleń #3B8D47/#4CAF50, turkus #00A3A3/#008C95, tło #F7F9FB. */
:root {
  --navy: #0F2747;
  --navy-2: #102C54;
  --green: #3B8D47;
  --green-2: #4CAF50;
  --teal: #00A3A3;
  --teal-2: #008C95;
  --bg: #F7F9FB;
  --ink: #1B2430;
  --muted: #5B6675;
  --line: #DFE5EC;
  --bs-body-font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: #fff;
  --bs-link-color: #007A80;
  --bs-link-color-rgb: 0, 122, 128;
  --bs-link-hover-color: var(--navy);
  --bs-link-hover-color-rgb: 15, 39, 71;
  --bs-primary: var(--navy);
  --bs-primary-rgb: 15, 39, 71;
  --bs-success: var(--green);
  --bs-success-rgb: 59, 141, 71;
  --bs-border-color: var(--line);
  --bs-secondary-color: var(--muted);
  --bs-emphasis-color: var(--navy);
  --bs-heading-color: var(--navy);
  --bs-border-radius: .25rem;
  --bs-border-radius-lg: .375rem;
  --header-h: 76px;
  /* Nazewnictwo wg specyfikacji: kolor główny (granat), drugorzędny (zieleń), odcienie 100–900 */
  --c-primary: var(--navy);
  --c-secondary: var(--green);
  --c-accent: var(--teal-2);
  --c-ink: var(--ink);
  --c-bg: var(--bg);
  --c-muted: var(--muted);
  --c-primary-100: #E3E9F2; --c-primary-200: #C3CFE0; --c-primary-300: #93A7C4; --c-primary-400: #5F7CA3; --c-primary-500: #345580;
  --c-primary-600: #1F3F68; --c-primary-700: #102C54; --c-primary-800: #0F2747; --c-primary-900: #091A31;
  --c-secondary-100: #E6F3E8; --c-secondary-200: #C6E4CA; --c-secondary-300: #96CD9E; --c-secondary-400: #66B572; --c-secondary-500: #4CAF50;
  --c-secondary-600: #3B8D47; --c-secondary-700: #2F7539; --c-secondary-800: #24592C; --c-secondary-900: #173B1D;
}
html { scroll-padding-top: calc(var(--header-h) + 16px); }
body { font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 700; letter-spacing: -.01em; color: var(--navy); }
.text-muted { color: var(--muted) !important; }
a { text-underline-offset: .18em; }
.bi { display: inline-block; vertical-align: -.125em; flex-shrink: 0; }
.skip-link { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; }

/* Przyciski */
.btn { font-weight: 600; border-radius: .25rem; }
.btn-primary { --bs-btn-bg: var(--navy); --bs-btn-border-color: var(--navy); --bs-btn-hover-bg: var(--navy-2); --bs-btn-hover-border-color: var(--navy-2); --bs-btn-active-bg: #0a1c34; --bs-btn-active-border-color: #0a1c34; --bs-btn-disabled-bg: var(--navy); --bs-btn-disabled-border-color: var(--navy); }
.btn-success { --bs-btn-bg: #2F7A3A; --bs-btn-border-color: #2F7A3A; --bs-btn-color: #fff; --bs-btn-hover-bg: #24592C; --bs-btn-hover-border-color: #24592C; --bs-btn-hover-color: #fff; --bs-btn-active-bg: #286432; --bs-btn-active-border-color: #286432; --bs-btn-disabled-bg: #2F7A3A; --bs-btn-disabled-border-color: #2F7A3A; }
.btn-outline-primary { --bs-btn-color: var(--navy); --bs-btn-border-color: var(--navy); --bs-btn-hover-bg: var(--navy); --bs-btn-hover-border-color: var(--navy); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--navy); --bs-btn-active-border-color: var(--navy); }
.btn-outline-light { --bs-btn-hover-color: var(--navy); }

/* Pasek górny i nagłówek */
.topbar { background: var(--navy); color: #C9D6E6; font-size: .8125rem; padding: .375rem 0; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: #7FE0DF; }
.topbar .list-inline-item:not(:last-child) { margin-right: 1.25rem; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); z-index: 1030; }
.site-header .navbar { min-height: var(--header-h); padding: .5rem 0; }
.navbar-brand img { height: 44px; width: auto; }
.site-header .nav-link { color: var(--ink); font-weight: 600; font-size: .9375rem; padding: .75rem .85rem !important; border: 0; background: none; position: relative; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--navy); }
.site-header .nav-link.active::before, .site-header .nav-link:hover::before { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .25rem; height: 3px; background: var(--green-2); }
.navbar-toggler { border: 1px solid var(--line); font-size: 1.5rem; color: var(--navy); padding: .25rem .6rem; }
.dropdown-mega { position: static; }
.mega-menu { position: absolute; left: 0; right: 0; top: 100%; margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: 0 18px 32px rgba(15, 39, 71, .12); padding: 2rem max(1.5rem, calc((100vw - 1296px) / 2 + 1.5rem)); background: #fff; }
.mega-menu.show { display: block; }
.mega-menu-narrow { left: auto; right: auto; width: 360px; padding: 1.5rem; margin-left: -1rem; position: absolute; }
.dropdown-mega:has(.mega-menu-narrow) { position: relative; }
.mega-heading { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: .75rem; }
.mega-link { display: flex; align-items: center; padding: .4rem 0; color: var(--ink); text-decoration: none; font-weight: 500; }
.mega-link:hover { color: var(--teal-2); }
.mega-link .bi { color: var(--teal); }
.mega-footer { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1rem; display: flex; gap: 2rem; flex-wrap: wrap; }
.mega-footer a { font-weight: 600; text-decoration: none; }
.offcanvas { max-width: 360px; }
.offcanvas.show { visibility: visible; transform: none; }
.mobile-menu > li { border-bottom: 1px solid var(--line); }
.mobile-menu a, .mobile-menu summary { display: block; padding: .7rem 0; color: var(--ink); text-decoration: none; font-weight: 600; cursor: pointer; }
.mobile-menu ul a { font-weight: 500; padding: .4rem 0; }

/* Okruszki */
.breadcrumb-bar { background: var(--bg); border-bottom: 1px solid var(--line); padding: .6rem 0; font-size: .875rem; }
.breadcrumb { --bs-breadcrumb-divider-color: var(--muted); --bs-breadcrumb-item-active-color: var(--muted); }
.breadcrumb a { color: var(--navy); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Hero i nagłówki stron */
.eyebrow { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #00737A; margin-bottom: .75rem; }
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #0B3A5E 100%); color: #fff; padding: 4.5rem 0 4rem; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -10%; top: -30%; width: 60%; height: 160%; background: radial-gradient(closest-side, rgba(0, 163, 163, .25), transparent); }
.hero .container { position: relative; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: #7FE0DF; }
.hero .lead { color: #D9E3EE; font-size: 1.15rem; }
.hero .byline-hero { color: #AFC0D3; }
.hero .byline-hero a { color: #fff; }
.hero-art { width: 100%; height: auto; }
.facts-strip { background: #fff; border-bottom: 1px solid var(--line); padding: 1.25rem 0; font-size: .9375rem; }
.facts-strip .bi { color: var(--green); font-size: 1.25rem; }
.facts-strip strong { color: var(--navy); }
.facts-strip span { color: var(--muted); }
.page-heading { background: var(--bg); border-bottom: 1px solid var(--line); padding: 3rem 0 2.5rem; position: relative; }
.page-heading::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 120px; height: 4px; background: var(--green-2); }
.page-heading h1 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.8rem); }
.lead.answer { font-size: 1.15rem; max-width: 62rem; }
.byline { color: var(--muted); }
.byline a { font-weight: 600; }

/* Karty */
.card { border-color: var(--line); border-radius: .375rem; }
.scheme-card { border-top: 4px solid var(--teal); transition: box-shadow .2s, transform .2s; }
.scheme-card:hover, .article-card:hover, .product-card:hover { box-shadow: 0 12px 28px rgba(15, 39, 71, .12); transform: translateY(-2px); }
.scheme-card a { color: var(--navy); text-decoration: none; }
.scheme-icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(0, 163, 163, .1); color: var(--teal-2); font-size: 1.5rem; }
.article-card, .product-card { transition: box-shadow .2s, transform .2s; overflow: hidden; }
.article-card .card-img-top, .product-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg); }
.article-card a { color: var(--navy); text-decoration: none; }
.service-tile { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: .375rem; text-decoration: none; color: var(--ink); height: 100%; background: #fff; transition: border-color .2s, box-shadow .2s; }
.service-tile:hover { border-color: var(--teal); box-shadow: 0 6px 18px rgba(15, 39, 71, .08); }
.service-tile-icon { font-size: 1.5rem; color: var(--teal-2); margin-top: .15rem; }
.service-tile strong { display: block; color: var(--navy); }
.service-tile small { display: block; color: var(--muted); line-height: 1.45; margin-top: .2rem; }
.client-card { border-left: 4px solid var(--green-2); }
.price { font-weight: 800; color: var(--navy); font-size: 1.25rem; }
.buy-box { border-top: 4px solid var(--green); }
.buy-facts li { display: flex; align-items: flex-start; margin-bottom: .45rem; }
.buy-facts .bi { color: var(--teal-2); margin-top: .2rem; }

/* Treść */
.prose { max-width: 100%; }
.prose h2 { font-size: clamp(1.4rem, 1.1rem + .9vw, 1.75rem); margin: 2.5rem 0 1rem; padding-top: .25rem; }
.prose .content-section:first-child > h2 { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin: 1.75rem 0 .75rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.1rem; }
.prose ul li, .prose ol li { margin-bottom: .35rem; }
.prose ul:not(.list-unstyled) li::marker { color: var(--green); }
.prose ol li::marker { color: var(--teal-2); font-weight: 700; }
.prose .table-responsive { margin: 1.25rem 0 1.5rem; border: 1px solid var(--line); border-radius: .375rem; }
.prose .table { margin: 0; font-size: .9375rem; }
.prose .table thead th { background: var(--navy); color: #fff; font-weight: 600; border: 0; white-space: nowrap; }
.prose .table td { vertical-align: top; }
.prose .table tbody tr:nth-child(even) td { background: var(--bg); }
.formula { font-family: Consolas, "Courier New", monospace; background: var(--bg); border-left: 4px solid var(--teal); padding: .9rem 1.1rem; font-size: 1.05rem; color: var(--navy); overflow-x: auto; }
.figure-illustration { margin: 1.75rem 0; }
.figure-illustration img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: .375rem; background: #fff; }
.article-hero { margin-top: 0; }
.toc { background: var(--bg); border: 1px solid var(--line); border-radius: .375rem; padding: 1.1rem 1.25rem; margin-bottom: 1.5rem; font-size: .9rem; }
.toc-title { font-weight: 700; color: var(--navy); margin-bottom: .5rem; text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; }
.toc ol { padding-left: 1.1rem; margin: 0; }
.toc li { margin-bottom: .3rem; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover, .toc a.active { color: var(--teal-2); font-weight: 600; }
.sidebar-sticky { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.cta-card { background: var(--navy); color: #D9E3EE; border: 0; }
.cta-card .h5 { color: #fff; }
.related a { text-decoration: none; }
.author-box-lg { background: var(--bg); padding: 1.5rem; border-radius: .375rem; margin: 1.5rem 0; }

/* FAQ */
.faq-item { border: 1px solid var(--line); border-radius: .375rem; margin-bottom: .6rem; background: #fff; }
.faq-item summary { list-style: none; cursor: pointer; padding: 1rem 3rem 1rem 1.2rem; font-weight: 600; color: var(--navy); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 1.2rem; top: .8rem; font-size: 1.4rem; line-height: 1; color: var(--teal-2); }
.faq-item[open] summary::after { content: "–"; }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-answer { padding: 1rem 1.2rem .2rem; }

/* Słownik */
.glossary-index { display: flex; flex-wrap: wrap; gap: .4rem; }
.glossary-index .badge { font-weight: 600; font-size: .8rem; color: var(--navy) !important; border: 1px solid var(--line); text-decoration: none; padding: .45em .8em; }
.glossary-entry { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.glossary-entry h2 { margin: 0 0 .35rem !important; }
.glossary-entry dfn { font-style: normal; }

/* Źródła i formularze */
.sources { background: var(--bg); border: 1px solid var(--line); border-radius: .375rem; padding: 1.25rem 1.5rem; margin-top: 2.5rem; }
.sources h2 { margin-top: 0 !important; }
.enquiry { margin-top: 2.5rem; padding: 1.75rem; border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: .375rem; background: #fff; }
.enquiry > h2 { margin-top: 0 !important; }
.form-label { font-weight: 600; font-size: .9375rem; color: var(--navy); }
.form-control, .form-select { border-color: #C6D0DB; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--teal); box-shadow: 0 0 0 .2rem rgba(0, 163, 163, .2); }
.form-check-input:checked { background-color: var(--green); border-color: var(--green); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 65px; }
.form-status:not(:empty) { color: #A12A2A; font-weight: 600; }

/* Pasek CTA */
.cta-band { background: linear-gradient(90deg, var(--navy-2), var(--navy)); padding: 3rem 0; border-top: 4px solid var(--teal); }

/* Stopka */
.site-footer { background: #0B1D36; color: #C2CFDE; font-size: .9375rem; }
.site-footer a, .footer-link-btn { color: #E6EEF7; text-decoration: none; font-size: .9375rem; }
.site-footer a:hover, .footer-link-btn:hover { color: #7FE0DF; text-decoration: underline; }
.footer-title { color: #fff; font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.site-footer li { margin-bottom: .4rem; }
.site-footer address { font-style: normal; }
.social a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid #2A4363; border-radius: 50%; font-size: 1rem; }
.social a:hover { background: var(--teal-2); border-color: var(--teal-2); color: #fff; text-decoration: none; }
.payment-badge { display: inline-flex; align-items: center; background: #13294A; border: 1px solid #2A4363; border-radius: .375rem; padding: .5rem .8rem; color: #E6EEF7; }
.payment-badge .bi { color: var(--green-2); }
.footer-bottom { border-top: 1px solid #1E3657; color: #9FB0C4; }
.footer-bottom .disclaimer { max-width: 40rem; }
.text-white-50 { color: rgba(255, 255, 255, .62) !important; }

/* Baner zgód */
.consent-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1080; background: var(--navy); color: #D9E3EE; padding: 1.1rem 0; box-shadow: 0 -8px 24px rgba(0, 0, 0, .2); }
.consent-banner h2 { color: #fff; }
.consent-banner a { color: #7FE0DF; }
.consent-banner .form-check-label { color: #D9E3EE; }

@media (max-width: 1199.98px) {
  .site-header .navbar-collapse { display: none !important; }
}
@media (min-width: 1200px) {
  .navbar-toggler { display: none; }
}
@media (max-width: 991.98px) {
  .hero { padding: 3rem 0; }
  .sidebar-sticky { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .site-header, .cta-band, .site-footer, .consent-banner, aside, .enquiry { display: none !important; }
}
.sources h2 { font-size: 1.15rem !important; }
.mobile-menu summary { list-style: none; position: relative; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary::after { content: "+"; position: absolute; right: .25rem; color: var(--teal-2); font-size: 1.25rem; line-height: 1.2; }
.mobile-menu details[open] summary::after { content: "–"; }
.summary-box .table td, .summary-box .table th { background: transparent !important; }

/* Dostępność: cele dotykowe ≥ 44 px, maks. szerokość tekstu */
.btn { min-height: 44px; }
.btn-sm { min-height: 36px; }
.site-footer .social a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
@media (max-width: 991.98px) {
  .site-footer li > a, .site-footer li > .js-email a, .footer-link-btn { display: inline-flex; align-items: center; min-height: 44px; }
  .site-footer li { margin-bottom: 0 !important; }
}
.prose > p, .prose > ul, .prose > ol { max-width: 72ch; }
/* Menu rozwijane: na desktopie otwierane także najechaniem */
@media (min-width: 1200px) and (hover: hover) {
  .dropdown-mega:hover > .mega-menu { display: block; }
}
.footer-bottom .social { margin: 0; }
@media (max-width: 767.98px) { .row.g-5, .row.g-4 { --bs-gutter-x: 1.5rem; } }
.footer-bottom .social { display: flex; flex-wrap: nowrap; gap: .25rem; padding: 0; }
.footer-bottom .social .list-inline-item { margin: 0; }
.footer-bottom .back-to-top { white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom .payment-badge { white-space: nowrap; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }

/* Miejsca reklamowe AdSense: oznaczone, między treściami, zarezerwowana wysokość (bez przesunięć układu) */
.ad-slot{margin:2rem 0;padding:.5rem 0 1rem;border-top:1px solid var(--bs-border-color,#dfe5ec);border-bottom:1px solid var(--bs-border-color,#dfe5ec);text-align:center;min-height:300px;contain:layout}
.ad-slot[hidden]{display:none}
.ad-slot .ad-label{font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;color:#5b6675;margin:0 0 .5rem}
.ad-slot ins.adsbygoogle{min-height:250px}
@media (max-width:575.98px){.ad-slot{min-height:330px}}
