/*
Theme Name: RD Solutions Pro
Theme URI: https://www.rdsolutions.pl
Author: R&D Solutions sp. z o.o.
Author URI: https://www.rdsolutions.pl
Description: Nowoczesny, biznesowy motyw WordPress dla firmy doradczej specjalizującej się w dotacjach UE (projekty B+R, inwestycyjne, cyfryzacja / Przemysł 4.0, GOZ). Slider na stronie głównej, pełna responsywność (desktop / tablet / telefon), animowane liczniki, sekcja procesu, zespołu i kontaktu.
Version: 1.4.3
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rdsolutions-pro
Tags: business, corporate, one-column, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ==========================================================================
   1. Zmienne / reset
   ========================================================================== */
:root {
  /* Kolorystyka wg brandbooka "RD - kolorystyka i font" */
  --navy: #00286a;        /* #00286a — kolor główny */
  --navy-2: #2b4ca1;      /* #2b4ca1 */
  --navy-3: #3e66cc;      /* #3e66cc */
  --sky: #88aae4;         /* #88aae4 — akcent na ciemnym tle */
  --ink: #1c2733;
  --muted: #5b6b7c;
  --accent: #3e66cc;      /* akcent na jasnym tle */
  --accent-light: #88aae4;
  --blue: #3e66cc;
  --bg: #ffffff;
  --bg-alt: #f4f7fd;
  --line: #e0e7f4;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 40, 106, 0.10);
  --shadow-lg: 0 24px 60px rgba(0, 40, 106, 0.16);
  --container: 1200px;
  /* Font wg brandbooka: Poppins (Ultrabold — nagłówki, Semibold — podnagłówki, Light — tekst) */
  --font-head: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Poppins', 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Blokada poziomego przewijania (wysuwane menu mobilne nie może poszerzać strony).
   "clip" zamiast "hidden", bo nie psuje pozycji sticky nagłówka. */
html, body { overflow-x: hidden; }
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--navy); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1.2em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #dbe6f5; }
.section--navy h2, .section--navy h3 { color: #ffffff; }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-head p { color: var(--muted); }
.section--navy .section-head p { color: #b9c8dd; }

/* Przyciski */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: linear-gradient(120deg, var(--navy-2) 0%, var(--navy-3) 100%); color: #ffffff; box-shadow: 0 8px 24px rgba(43, 76, 161, .35); }
.btn--gold:hover { color: #ffffff; box-shadow: 0 12px 32px rgba(43, 76, 161, .5); }
.btn--ghost { border-color: rgba(255, 255, 255, .6); color: #ffffff; }
.btn--ghost:hover { border-color: #ffffff; background: rgba(255, 255, 255, .1); color: #ffffff; }
.btn--navy { background: var(--navy); color: #ffffff; }
.btn--navy:hover { background: var(--navy-3); color: #ffffff; }

/* Animacja pojawiania się */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   2. Pasek górny + nagłówek
   ========================================================================== */
.topbar {
  background: var(--navy);
  color: #b9c8dd;
  font-size: .82rem;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #dbe6f5; }
.topbar a:hover { color: var(--accent-light); }
.topbar__contact { display: flex; gap: 22px; flex-wrap: wrap; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Bez backdrop-filter: tworzy on blok zawierający dla position:fixed,
     przez co panel menu mobilnego byłby przycięty do wysokości nagłówka. */
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 40, 106, .08); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }

.site-brand { display: flex; align-items: center; flex-shrink: 0; }
.site-brand__logo { display: flex; align-items: center; }
.site-brand__logo img, .site-brand .custom-logo { height: 52px; width: auto; display: block; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav a {
  display: block; padding: 10px 14px; border-radius: 8px;
  font-family: var(--font-head); font-weight: 500; font-size: .9rem;
  color: var(--ink); white-space: nowrap;
}
.main-nav a:hover { color: var(--navy); background: var(--bg-alt); }
.header-cta { white-space: nowrap; }
.header-cta .btn { padding: 11px 24px; font-size: .85rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer; padding: 10px;
}
.nav-toggle span {
  display: block; width: 26px; height: 3px; border-radius: 2px;
  background: var(--navy); margin: 5px 0; transition: transform .3s, opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   3. Slider (hero)
   ========================================================================== */
.hero-slider { position: relative; overflow: hidden; background: var(--navy); }
.hero-slider__track { display: flex; transition: transform .7s cubic-bezier(.77, 0, .18, 1); }
.hero-slide {
  position: relative;
  min-width: 100%;
  min-height: clamp(520px, 72vh, 760px);
  display: flex; align-items: center;
  background-size: cover; background-position: center;
}
.hero-slide::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0, 24, 64, .93) 0%, rgba(0, 40, 106, .72) 48%, rgba(0, 40, 106, .25) 100%);
}
.hero-slide__inner { position: relative; z-index: 2; max-width: 640px; }
.hero-slide__tag {
  display: inline-block;
  background: rgba(136, 170, 228, .14);
  border: 1px solid rgba(136, 170, 228, .55);
  color: var(--accent-light);
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 18px; border-radius: 999px; margin-bottom: 22px;
}
.hero-slide h1, .hero-slide h2.hero-slide__title { color: #ffffff; margin-bottom: 18px; font-size: clamp(2rem, 4.5vw, 3.3rem); font-weight: 800; }
.hero-slide__lead { color: #cdd9ea; font-size: clamp(1rem, 1.6vw, 1.25rem); margin-bottom: 34px; max-width: 540px; }
.hero-slide__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-slider__arrows { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.hero-arrow {
  pointer-events: auto;
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(0, 40, 106, .35);
  color: #ffffff; font-size: 1.3rem; line-height: 1;
  cursor: pointer; transition: background .2s, border-color .2s;
  display: flex; align-items: center; justify-content: center;
}
.hero-arrow:hover { background: var(--accent); border-color: var(--accent); color: #ffffff; }
.hero-arrow--prev { left: 22px; }
.hero-arrow--next { right: 22px; }

.hero-dots {
  position: absolute; bottom: 26px; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: center; gap: 10px;
}
.hero-dots button {
  width: 34px; height: 5px; border-radius: 3px; border: 0; padding: 0;
  background: rgba(255, 255, 255, .35); cursor: pointer; transition: background .25s;
}
.hero-dots button.is-active { background: var(--accent-light); }

/* ==========================================================================
   4. Pasek liczników
   ========================================================================== */
.stats-bar { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%); padding: 54px 0; }
.stats-bar .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { text-align: center; color: #b9c8dd; }
.stat__value { font-family: var(--font-head); font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 800; color: #ffffff; }
.stat__value .stat__suffix { color: var(--accent-light); font-size: .62em; margin-left: 4px; }
.stat__label { font-size: .85rem; letter-spacing: .04em; margin-top: 6px; }

/* ==========================================================================
   5. Usługi (karty)
   ========================================================================== */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__icon {
  width: 58px; height: 58px; border-radius: 14px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  color: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 22px;
}
.card h3 a { color: var(--navy); }
.card h3 a:hover { color: var(--accent); }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card__more { display: inline-block; margin-top: 18px; font-weight: 600; font-size: .88rem; color: var(--accent); }
.card__more:hover { color: var(--navy); }

/* Obszary specjalizacji */
.areas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 44px; }
.area-pill {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 22px;
  font-family: var(--font-head); font-size: .88rem; font-weight: 600; color: var(--navy);
}
.area-pill span { color: var(--accent); margin-right: 8px; }

/* ==========================================================================
   6. Pakiety usług
   ========================================================================== */
.offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.offer {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 34px;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.offer:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.offer--featured { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); border: 0; color: #dbe6f5; }
.offer--featured h3 { color: #ffffff; }
.offer__min { font-family: var(--font-head); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.offer--featured .offer__min { color: #9fb2cc; }
.offer__price { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--accent); margin-bottom: 20px; }
.offer--featured .offer__price { color: var(--accent-light); }
.offer--featured li::before { color: var(--accent-light); }
.offer ul { list-style: none; margin: 0 0 28px; padding: 0; flex: 1; }
.offer li { padding: 9px 0 9px 30px; position: relative; font-size: .93rem; border-bottom: 1px dashed var(--line); }
.offer--featured li { border-bottom-color: rgba(255, 255, 255, .12); }
.offer li::before {
  content: "\2713";
  position: absolute; left: 0; top: 9px;
  color: var(--accent); font-weight: 700;
}
.offer .btn { align-self: flex-start; }

/* ==========================================================================
   7. O firmie
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-media__badge {
  position: absolute; bottom: -26px; right: -18px;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 20px 26px;
  font-family: var(--font-head);
  box-shadow: var(--shadow-lg);
  max-width: 240px;
}
.about-media__badge strong { display: block; font-size: 1.7rem; line-height: 1.1; }
.about-media__badge span { font-size: .82rem; font-weight: 600; }
.about-copy .kicker {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.about-copy p { color: var(--muted); }
.about-list { list-style: none; margin: 26px 0 34px; padding: 0; }
.about-list li { padding: 8px 0 8px 34px; position: relative; font-weight: 500; }
.about-list li::before {
  content: "\2713";
  position: absolute; left: 0; top: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy); color: var(--accent-light);
  font-size: .72rem; display: flex; align-items: center; justify-content: center;
}

/* ==========================================================================
   8. Proces (5 kroków)
   ========================================================================== */
.process { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.step {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: background .25s, transform .25s;
}
.step:hover { background: rgba(255, 255, 255, .1); transform: translateY(-5px); }
.step__num {
  font-family: var(--font-head); font-size: 2.2rem; font-weight: 800;
  color: var(--accent-light); line-height: 1; margin-bottom: 16px;
}
.step h3 { font-size: 1.02rem; color: #ffffff; }
.step p { font-size: .86rem; color: #b9c8dd; margin: 0; }

/* ==========================================================================
   9. Zespół
   ========================================================================== */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.person {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid; grid-template-columns: 240px 1fr;
  transition: transform .25s, box-shadow .25s;
}
.person:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.person__photo { background: var(--bg-alt); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.person__body { padding: 30px 28px; }
.person__role { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.person__body p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ==========================================================================
   10. Pas CTA
   ========================================================================== */
.cta-band {
  background:
    linear-gradient(100deg, rgba(0, 24, 64, .95) 0%, rgba(0, 40, 106, .82) 100%),
    var(--navy) center / cover no-repeat;
  padding: 84px 0;
  text-align: center;
}
.cta-band h2 { color: #ffffff; max-width: 760px; margin: 0 auto 14px; }
.cta-band p { color: #b9c8dd; max-width: 620px; margin: 0 auto 34px; }

/* ==========================================================================
   11. Kontakt
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; }
.contact-info h3 { margin-top: 0; }
.contact-info__item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-info__icon {
  flex: 0 0 46px; height: 46px; border-radius: 12px;
  background: var(--navy); color: var(--accent-light);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.contact-info__item strong { display: block; font-family: var(--font-head); font-size: .92rem; color: var(--navy); }
.contact-info__item span, .contact-info__item a { font-size: .92rem; color: var(--muted); }

.contact-form-wrap {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 42px;
  box-shadow: var(--shadow);
}
.contact-form-wrap label { display: block; font-family: var(--font-head); font-size: .86rem; font-weight: 600; color: var(--navy); margin: 18px 0 6px; }
.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap input[type="tel"],
.contact-form-wrap textarea,
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-alt);
  padding: 13px 16px;
  font-family: var(--font-body); font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form-wrap input:focus, .contact-form-wrap textarea:focus,
.wpcf7 input:focus, .wpcf7 textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(62, 102, 204, .18);
}
.contact-form-wrap textarea { min-height: 140px; resize: vertical; }
.contact-form__consent { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0; font-size: .82rem; color: var(--muted); }
.contact-form__consent input { margin-top: 4px; }

/* przycisk "Wyślij" formularza CF7 — spójny z głównym CTA motywu (.btn--gold) */
.wpcf7 input[type="submit"] {
  display: inline-block;
  padding: 15px 44px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(120deg, var(--navy-2) 0%, var(--navy-3) 100%);
  box-shadow: 0 8px 24px rgba(43, 76, 161, .35);
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.wpcf7 input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(43, 76, 161, .5);
}
.wpcf7 input[type="submit"]:disabled { opacity: .6; cursor: default; transform: none; }

/* ==========================================================================
   12. Stopka
   ========================================================================== */
.site-footer { background: #001a45; color: #9fb2cc; font-size: .9rem; }
.site-footer a { color: #cdd9ea; }
.site-footer a:hover { color: var(--accent-light); }
.footer-main { padding: 70px 0 50px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 44px; }
.footer-col h4 { color: #ffffff; font-size: 1rem; margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding: 5px 0; }
.footer-brand img { height: 54px; margin-bottom: 18px; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: #ffffff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; }

/* ==========================================================================
   13. Wpisy / podstrony (treść)
   ========================================================================== */
.page-hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%);
  padding: 76px 0;
}
.page-hero h1 { color: #ffffff; margin: 0; }
.page-hero__meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  color: var(--accent-light);
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 14px;
}
.page-hero__meta span + span::before { content: "·"; margin-right: 8px; color: rgba(255, 255, 255, .5); }
.entry-content { max-width: 820px; margin: 0 auto; padding: 72px 24px; }

/* Wpis: treść po lewej, pasek boczny (autor + pozostałe wpisy) po prawej */
.single-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px;
  align-items: start;
  padding-top: 64px; padding-bottom: 88px;
}
.single-layout .entry-content { max-width: none; margin: 0; padding: 0; }
.single-content__thumb { border-radius: var(--radius); margin-bottom: 32px; }

.single-sidebar { display: flex; flex-direction: column; gap: 26px; }
.widget {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.widget__title {
  font-family: var(--font-head);
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.widget__title--light { color: var(--accent-light); }

.author-box { text-align: left; }
.author-box__avatar img {
  width: 88px; height: 88px; border-radius: 50%;
  object-fit: cover; margin: 0 0 14px;
  border: 3px solid var(--bg-alt);
  box-shadow: var(--shadow);
}
.author-box__name { font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; color: var(--navy); margin-bottom: 8px; }
.author-box__bio { color: var(--muted); font-size: .88rem; margin: 0 0 14px; }
.author-box__link { font-weight: 600; font-size: .86rem; color: var(--accent); }
.author-box__link:hover { color: var(--navy); }

.mini-post { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.mini-post:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-post__thumb {
  flex: 0 0 62px; height: 62px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
}
.mini-post__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-post__thumb--empty { display: flex; align-items: center; justify-content: center; }
.mini-post__thumb--empty img { width: 55%; height: auto; object-fit: contain; opacity: .9; filter: brightness(0) invert(1); }
.mini-post__body { min-width: 0; }
.mini-post__title { display: block; font-family: var(--font-head); font-weight: 500; font-size: .9rem; line-height: 1.4; color: var(--ink); }
.mini-post:hover .mini-post__title { color: var(--accent); }
.mini-post__date { display: block; font-size: .76rem; color: var(--muted); margin-top: 4px; }

.widget--cta { background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 100%); border: 0; color: #dbe6f5; }
.widget--cta p { font-size: .9rem; margin: 0 0 18px; }
.widget--cta .btn { padding: 12px 26px; font-size: .88rem; }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote {
  border-left: 4px solid var(--accent);
  background: var(--bg-alt);
  margin: 1.5em 0; padding: 18px 26px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.post-card {
  background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.post-card__thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.post-card:hover .post-card__thumb img { transform: scale(1.05); }
.post-card__thumb--empty { display: flex; align-items: center; justify-content: center; }
.post-card__thumb--empty img { width: 46%; height: auto; object-fit: contain; opacity: .9; }
.post-card:hover .post-card__thumb--empty img { transform: none; }
.post-card__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.post-card__body h3 { font-size: 1.08rem; line-height: 1.4; }
.post-card__body h3 a { color: var(--navy); }
.post-card__body h3 a:hover { color: var(--accent); }
.post-card__body p { color: var(--muted); font-size: .92rem; margin: 0 0 16px; }
.post-card__meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.post-card__cat { color: var(--accent); }
.post-card__meta span + span::before { content: "·"; margin-right: 10px; color: var(--muted); }
.post-card__more { margin-top: auto; align-self: flex-start; font-weight: 600; font-size: .88rem; color: var(--accent); }
.post-card__more:hover { color: var(--navy); }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding: 72px 0; }
.posts-grid--front { padding: 0; }
.posts-more { text-align: center; margin-top: 48px; }

/* ==========================================================================
   13a. Podstrony oferty
   ========================================================================== */
.cards-grid--auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.page-intro { max-width: 860px; margin: 0 auto; text-align: center; }
.page-intro p { color: var(--muted); font-size: 1.05rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: #ffffff; }
.rds-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .92rem; }
.rds-table th {
  background: var(--navy); color: #ffffff;
  font-family: var(--font-head); font-weight: 600; font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase;
  text-align: left; padding: 15px 20px;
}
.rds-table td { padding: 15px 20px; border-top: 1px solid var(--line); vertical-align: top; }
.rds-table tbody tr:nth-child(even) td { background: var(--bg-alt); }
.rds-table__amount { font-family: var(--font-head); font-weight: 600; color: var(--accent); white-space: nowrap; }

.big-number { font-family: var(--font-head); font-weight: 800; font-size: clamp(3rem, 7vw, 5rem); color: #ffffff; line-height: 1; }
.big-number small { display: block; font-size: .3em; font-weight: 600; color: var(--accent-light); margin-top: 10px; letter-spacing: .06em; }
.split-grid { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; }
.split-grid p { margin: 0; }

/* ==========================================================================
   14. Responsywność — tablet
   ========================================================================== */
@media (max-width: 1024px) {
  .section { padding: 72px 0; }
  .single-layout { grid-template-columns: 1fr; gap: 44px; }
  .split-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .offers-grid { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-media { max-width: 560px; margin: 0 auto; }
  .team-grid { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }

  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(320px, 84vw);
    background: var(--navy);
    padding: 96px 30px 40px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .35s cubic-bezier(.77, 0, .18, 1), visibility .35s;
    z-index: 99;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: none; visibility: visible; box-shadow: -20px 0 60px rgba(0, 0, 0, .35); }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { color: #dbe6f5; font-size: 1.05rem; padding: 13px 14px; white-space: normal; }
  .main-nav a:hover { background: rgba(255, 255, 255, .08); color: var(--accent-light); }
  .nav-toggle { position: relative; z-index: 101; }
  .nav-toggle[aria-expanded="true"] span { background: #ffffff; }
  body.nav-open { overflow: hidden; }
}

/* ==========================================================================
   15. Responsywność — telefon
   ========================================================================== */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .container { padding: 0 18px; }
  .topbar__contact { gap: 14px; font-size: .78rem; }
  .topbar__hours { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .person { grid-template-columns: 1fr; }
  .person__photo img { max-height: 340px; }
  .footer-main { grid-template-columns: 1fr; gap: 34px; }
  .posts-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }
  .about-media__badge { position: static; margin: 18px auto 0; max-width: none; }
  .hero-slide { min-height: 78vh; }
  .hero-slide__actions .btn { width: 100%; text-align: center; }
  .hero-arrow { width: 42px; height: 42px; }
  .hero-arrow--prev { left: 10px; }
  .hero-arrow--next { right: 10px; }
  .site-brand__logo img, .site-brand .custom-logo { height: 40px; }
}

/* Dostępność */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px; width: 1px;
  overflow: hidden; position: absolute !important;
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ==========================================================================
   Popup po wysłaniu formularza (Contact Form 7)
   ========================================================================== */
/* komunikat sukcesu przejmuje popup; komunikaty błędów zostają pod formularzem */
form.wpcf7-form.sent .wpcf7-response-output { display: none; }

.cf7-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 40, 106, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; transition: opacity .25s ease;
}
.cf7-modal-overlay.is-visible { opacity: 1; }

.cf7-modal {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 36px 40px;
  max-width: 440px; width: 100%;
  text-align: center;
  transform: translateY(14px); transition: transform .25s ease;
}
.cf7-modal-overlay.is-visible .cf7-modal { transform: translateY(0); }

.cf7-modal__icon {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff; font-size: 32px; line-height: 64px;
}
.cf7-modal__title {
  font-family: var(--font-head);
  font-size: 22px; font-weight: 800;
  color: var(--navy);
  margin: 0 0 10px;
}
.cf7-modal__text { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.cf7-modal__btn {
  background: var(--accent); color: #fff;
  border: 0; border-radius: 999px;
  padding: 12px 40px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  cursor: pointer;
  transition: background .2s;
}
.cf7-modal__btn:hover { background: var(--navy-2); }
