/*
Theme Name: Aktivo Theme
Theme URI: http://localhost
Author: Aktivo
Author URI: http://localhost
Description: Minimalny motyw WordPress dla biura rachunkowego Aktivo
Version: 1.2
Text Domain: aktivo-theme
*/

:root {
  --bg: #f3f8fb;
  --bg-strong: #e6f2f8;
  --surface: #ffffff;
  --surface-alt: #f7fbfd;
  --text: #102a3d;
  --muted: #5d7284;
  --primary: #2388ba;
  --primary-dark: #146f9b;
  --primary-deep: #0f4d6f;
  --primary-soft: #e0f3fb;
  --accent: #78ccdc;
  --accent-strong: #34a8ce;
  --border: rgba(19, 78, 111, 0.14);
  --shadow: 0 28px 90px rgba(15, 77, 111, 0.13);
  --shadow-soft: 0 14px 42px rgba(15, 77, 111, 0.08);
  --radius: 24px;
  --radius-lg: 34px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(120, 204, 220, 0.26), transparent 30%),
    radial-gradient(circle at 92% 10%, rgba(35, 136, 186, 0.16), transparent 29%),
    radial-gradient(circle at 55% 90%, rgba(120, 204, 220, 0.15), transparent 34%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 45%, #edf6fb 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
::selection { background: var(--primary-soft); color: var(--primary-deep); }

.site-container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.screen-reader-text,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  left: 18px;
  top: 18px;
  z-index: 9999;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--primary-deep);
  color: #fff;
  font-weight: 850;
  box-shadow: var(--shadow);
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 253, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(215, 229, 239, 0.84);
}

.site-header-inner {
  display: flex;
  align-items: center;
  min-height: 86px;
  gap: 28px;
}

.site-brand,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 1;
}

.site-brand-text {
  color: var(--text);
  font-size: 34px;
  font-weight: 950;
  letter-spacing: -0.07em;
}

.site-brand-text span { color: var(--primary); }

.custom-logo,
.site-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.main-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
  padding: 0;
  margin: 0;
}

.main-nav li { margin: 0; }

.main-nav a {
  position: relative;
  color: var(--muted);
  font-size: 15px;
  font-weight: 780;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--primary);
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-page-ancestor > a { color: var(--primary-deep); }

.main-nav a:hover::after,
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after,
.main-nav .current-page-ancestor > a::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
  font-weight: 850;
  box-shadow: 0 14px 32px rgba(15, 77, 111, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.header-cta:hover { transform: translateY(-1px); box-shadow: 0 18px 42px rgba(15, 77, 111, 0.24); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  padding: 0;
  box-shadow: var(--shadow-soft);
}

.nav-toggle span:not(.screen-reader-text) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--primary-deep);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* BUTTONS */
.btn,
.btn-primary,
.entry-content .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover,
.btn-primary:hover { transform: translateY(-1px); }

.btn-primary,
.entry-content .btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
  box-shadow: 0 18px 42px rgba(39, 137, 184, 0.24);
}

.btn-primary:hover { box-shadow: 0 22px 54px rgba(39, 137, 184, 0.30); }

.btn-secondary,
.hero-actions .btn:not(.btn-primary) {
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover,
.hero-actions .btn:not(.btn-primary):hover {
  border-color: rgba(39, 137, 184, 0.36);
  color: var(--primary-deep);
}

/* SECTIONS */
.section-shell { padding: 30px 0; }
.hero.section-shell { padding-top: 50px; }

.section-card,
.hero-main,
.content-card,
.page-hero-card,
.footer-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.97) 0%, rgba(247,251,253,0.94) 56%, rgba(224,243,251,0.70) 100%);
  box-shadow: var(--shadow);
}

.section-card { padding: clamp(28px, 4.8vw, 58px); }
.section-card::before,
.hero-main::before,
.footer-card::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -150px;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(35, 136, 186, 0.16), transparent 68%);
  pointer-events: none;
}
.section-card > *, .hero-main > *, .footer-card > * { position: relative; z-index: 1; }
.section-card-blue { background: linear-gradient(135deg, rgba(235,247,252,0.96), rgba(255,255,255,0.92)); }

.section-header {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-header-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.section-header-row > div { max-width: 720px; }

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(120, 204, 220, 0.16);
}

.section-header h1,
.section-header h2,
.page-hero h1,
.blog-header h1,
.single-header h1,
.hero h1 {
  margin: 0 0 16px;
  line-height: 1.02;
  letter-spacing: -0.055em;
  color: var(--text);
}

.hero h1 { font-size: clamp(42px, 6vw, 76px); max-width: 13ch; }
.section-header h1,
.page-hero h1,
.blog-header h1,
.single-header h1 { font-size: clamp(36px, 5.2vw, 58px); }
.section-header h2 { font-size: clamp(30px, 4vw, 46px); }

.section-header p,
.lead,
.page-card p,
.service-card p,
.blog-card p,
.price-card p,
.contact-card p,
.hero-side-box p,
.content-card p,
.page-hero-card p,
.aside-card p {
  color: var(--muted);
  margin: 0;
}

.lead { font-size: clamp(17px, 1.8vw, 20px); max-width: 64ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(224, 243, 251, 0.92);
  color: var(--primary-deep);
  font-size: 14px;
  font-weight: 850;
  border: 1px solid rgba(39, 137, 184, 0.14);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(114, 198, 215, 0.16);
}

.grid-2,
.grid-3 { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* CARDS */
.page-card,
.service-card,
.blog-card,
.price-card,
.contact-card,
.hero-side-box,
.stat-box,
.aside-card,
.entry-content .page-section {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.page-card,
.service-card,
.blog-card,
.price-card,
.contact-card,
.hero-side-box,
.aside-card,
.entry-content .page-section { padding: 30px; }

.service-card,
.blog-card,
.price-card,
.page-card,
.entry-content .page-section,
.aside-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover,
.blog-card:hover,
.price-card:hover,
.entry-content .page-section:hover {
  transform: translateY(-4px);
  border-color: rgba(39, 137, 184, 0.28);
  box-shadow: var(--shadow);
}

.service-card,
.price-card,
.entry-content .page-section { position: relative; overflow: hidden; }
.service-card::before,
.price-card::before,
.entry-content .page-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.page-card h2,
.page-card h3,
.service-card h3,
.blog-card h2,
.blog-card h3,
.price-card h3,
.contact-card h3,
.hero-side-box h3,
.aside-card h2,
.entry-content .page-section h2,
.entry-content .page-section h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--text);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

/* HERO */
.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  padding: clamp(34px, 6vw, 82px) clamp(24px, 6vw, 76px) clamp(30px, 5vw, 58px);
}

.hero-copy { align-self: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-panel {
  position: relative;
  min-height: 330px;
  align-self: stretch;
}

.hero-orbit {
  position: absolute;
  border-radius: 42px;
  border: 1px solid rgba(35, 136, 186, 0.16);
  background: linear-gradient(135deg, rgba(255,255,255,0.62), rgba(224,243,251,0.46));
  box-shadow: 0 24px 70px rgba(15, 77, 111, 0.10);
  animation: aktivoFloat 7s ease-in-out infinite;
}

.hero-orbit-one { width: 210px; height: 210px; right: 26px; top: 18px; transform: rotate(10deg); }
.hero-orbit-two { width: 150px; height: 150px; left: 12px; bottom: 34px; transform: rotate(-12deg); animation-delay: -2s; }

.mini-card {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.86);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  color: var(--primary-deep);
  font-weight: 900;
}
.mini-card-top { top: 70px; left: 0; }
.mini-card-bottom { right: 0; bottom: 72px; }

.hero-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.stat-box {
  padding: 20px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(8px);
}

.stat-box strong {
  display: block;
  font-size: 25px;
  line-height: 1.05;
  margin-bottom: 7px;
  color: var(--primary-deep);
  letter-spacing: -0.04em;
}
.stat-box span { color: var(--muted); font-size: 14px; }

/* LINKS / PRICE */
.service-link,
.blog-link {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  color: var(--primary-dark);
  font-weight: 850;
}
.service-link:hover,
.blog-link:hover { color: var(--primary-deep); }
.blog-card h2 a { color: var(--text); }
.blog-card h2 a:hover { color: var(--primary-deep); }

.price-tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price {
  margin: 18px 0 8px;
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.055em;
  color: var(--primary-deep);
}

.price-button { width: 100%; margin-top: 22px; }
.featured-card { background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(235,247,252,0.92)); }
.meta,
.post-meta { color: var(--muted); font-size: 14px; }

/* PAGES */
.page-hero.section-shell,
.blog-header,
.single-header { padding-top: 44px; }
.page-content.section-shell,
.blog-list,
.single-content { padding-bottom: 70px; }

.page-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 5vw, 54px);
}
.page-hero-card > div { max-width: 760px; }
.page-hero-card h1 { margin-bottom: 12px; }

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.content-card {
  padding: clamp(24px, 4.6vw, 44px);
}

.page-aside {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 18px;
}

.aside-card .btn { margin-top: 22px; width: 100%; }
.aside-contact { display: grid; gap: 8px; }
.aside-contact strong { color: var(--text); }
.aside-contact span,
.aside-contact a { color: var(--muted); }
.aside-contact a:hover { color: var(--primary-deep); }

/* CONTENT */
.entry-content { font-size: 17px; }
.entry-content p,
.entry-content ul,
.entry-content ol { margin-bottom: 1.2em; }
.entry-content ul,
.entry-content ol { padding-left: 22px; }
.entry-content li { margin-bottom: 0.55em; color: var(--muted); }
.entry-content h2,
.entry-content h3 {
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.entry-content .page-section {
  margin: 0 0 22px;
}
.entry-content .page-section h1,
.entry-content .page-section h2,
.entry-content .page-section h3 { margin-top: 0; }
.entry-content .page-section:last-child { margin-bottom: 0; }
.entry-content a { color: var(--primary-dark); font-weight: 750; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--primary-deep); }
.entry-content .btn-primary { text-decoration: none; }
.entry-content .wp-block-button__link {
  border-radius: 999px;
  background: var(--primary-deep);
  color: #fff;
  text-decoration: none;
  font-weight: 850;
}
.wp-block-quote {
  margin-left: 0;
  padding-left: 22px;
  border-left: 4px solid var(--primary);
  color: var(--text);
}

/* CONTACT */
.contact-list { list-style: none; padding: 0; margin: 18px 0 0; }
.contact-list li { margin-bottom: 10px; color: var(--muted); }

/* FOOTER */
.site-footer { padding: 34px 0 92px; }
.footer-card { padding: clamp(24px, 4vw, 36px); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px minmax(320px, 460px);
  gap: 28px;
  align-items: start;
}
.footer-brand { display: grid; gap: 10px; }
.footer-brand strong { color: var(--text); font-size: 22px; letter-spacing: -0.04em; }
.footer-brand span { color: var(--muted); }
.footer-contact-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; color: var(--muted); }
.footer-contact-list a:hover { color: var(--primary-deep); }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: var(--text); font-weight: 850; }
.footer-links a:hover { color: var(--primary-deep); }
.footer-map iframe {
  width: 100%;
  min-height: 240px;
  border: 0;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}
.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  flex-wrap: wrap;
}
.footer-bottom a { color: var(--primary-deep); font-weight: 900; }

.floating-contact {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--primary-deep);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 18px 48px rgba(15, 77, 111, 0.24);
  transition: transform 0.2s ease, background 0.2s ease;
}
.floating-contact:hover { transform: translateY(-2px); background: var(--primary-dark); }

/* ANIMATIONS */
.will-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--delay, 0ms);
}
.will-animate.is-visible { opacity: 1; transform: translateY(0); }
@keyframes aktivoFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .will-animate { opacity: 1; transform: none; }
}

/* WP CONTENT FIXES */
.wp-block-group,
.wp-block-columns,
.wp-block-column { margin-bottom: 0; }
.wp-block-image img { border-radius: 18px; box-shadow: var(--shadow-soft); }
.alignwide,
.alignfull { max-width: 100%; }

/* RESPONSIVE */
@media (max-width: 1120px) {
  .site-header-inner { gap: 18px; }
  .custom-logo, .site-logo { width: 62px; height: 62px; }
  .header-cta { padding: 0 14px; font-size: 14px; }
  .main-nav ul { gap: 16px; }
}

@media (max-width: 1024px) {
  .grid-3,
  .grid-2,
  .hero-stats,
  .footer-grid,
  .page-layout { grid-template-columns: 1fr; }

  .site-header-inner { min-height: 76px; justify-content: space-between; }
  .custom-logo, .site-logo { width: 56px; height: 56px; }
  .nav-toggle { display: inline-block; }
  .header-cta { display: inline-flex; }

  .main-nav {
    position: fixed;
    left: 20px;
    right: 20px;
    top: 86px;
    display: block;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255,255,255,0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a {
    display: flex;
    padding: 13px 8px;
    border-bottom: 1px solid rgba(15, 77, 111, 0.08);
    font-size: 16px;
  }
  .main-nav li:last-child a { border-bottom: 0; }
  .main-nav a::after { display: none; }

  .hero-main { grid-template-columns: 1fr; }
  .hero h1 { max-width: 100%; }
  .hero-panel { min-height: 230px; }
  .page-aside { position: static; }
  .section-header-row { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 760px) {
  .site-container { width: min(var(--container), calc(100% - 28px)); }
  .section-shell { padding: 18px 0; }
  .hero.section-shell { padding-top: 26px; }
  .section-card,
  .hero-main,
  .page-card,
  .service-card,
  .blog-card,
  .price-card,
  .contact-card,
  .content-card,
  .aside-card,
  .entry-content .page-section { padding: 24px; }
  .hero-main,
  .section-card,
  .content-card,
  .page-hero-card,
  .footer-card { border-radius: 26px; }
  .hero-panel { display: none; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .custom-logo, .site-logo { width: 56px; height: 56px; }
  .header-cta { display: none; }
  .site-header-inner { min-height: 70px; }
  .page-hero-card { align-items: flex-start; flex-direction: column; }
  .page-hero-card .btn { width: 100%; }
  .footer-map iframe { min-height: 220px; }
  .floating-contact { left: 14px; right: 14px; bottom: 14px; }
  .site-footer { padding-bottom: 82px; }
}
/* =========================
   AKTIVO V3 PATCH
   ========================= */

.site-header-inner {
  min-height: 78px;
}

.custom-logo,
.site-logo {
  width: 64px;
  height: 64px;
}

.header-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
}

.hero-main-v3 {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.hero-copy {
  max-width: 720px;
}

.hero-info-card {
  position: relative;
  z-index: 2;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.hero-info-card .mini-label,
.section-kicker,
.price-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.hero-info-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-info-card li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 700;
}

.hero-info-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(114, 198, 215, 0.15);
}

.hero-stats-v3 {
  grid-column: 1 / -1;
}

.hero-main::after {
  display: none;
}

.section-card-wrap {
  padding: 34px 0;
}

.content-panel,
.page-hero-panel,
.page-text-layout {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96) 0%, rgba(245,251,254,0.94) 58%, rgba(223,242,250,0.58) 100%);
  box-shadow: 0 24px 76px rgba(15, 77, 111, 0.10);
}

.content-panel {
  padding: clamp(28px, 5vw, 58px);
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  max-width: none;
}

.section-header-row > div {
  max-width: 760px;
}

.equal-grid {
  align-items: stretch;
}

.equal-grid > * {
  height: 100%;
}

.service-card,
.price-card,
.page-card,
.blog-card {
  display: flex;
  flex-direction: column;
}

.service-link,
.blog-link,
.price-btn {
  margin-top: auto;
}

.price-card {
  min-height: 335px;
}

.price-card .btn {
  width: 100%;
  margin-top: auto;
}

.price-badge {
  margin-bottom: 18px;
}

.step-card span {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-weight: 950;
}

.page-hero-v3 {
  padding: 48px 0 22px;
}

.page-hero-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: clamp(28px, 5vw, 54px);
}

.page-hero-panel h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.page-content-v3 {
  padding: 18px 0 78px;
}

.page-text-layout {
  max-width: none;
  padding: clamp(24px, 4.5vw, 48px);
}

.page-text-layout .page-section {
  padding: clamp(24px, 4vw, 36px);
  margin: 0 0 22px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.page-text-layout .page-section:last-child {
  margin-bottom: 0;
}

.page-text-layout .page-section h1,
.page-text-layout .page-section h2,
.page-text-layout .page-section h3 {
  margin-top: 0;
}

.page-text-layout .page-section h1 {
  font-size: clamp(32px, 4vw, 48px);
}

.page-text-layout .btn-primary,
.page-text-layout .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(39, 137, 184, 0.22);
}

.site-footer {
  padding: 44px 0 28px;
}

.footer-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto minmax(320px, 0.9fr);
  gap: 28px;
  align-items: stretch;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.footer-info strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 20px;
  letter-spacing: -0.04em;
}

.footer-info p {
  max-width: 46ch;
  margin: 0 0 18px;
  color: var(--muted);
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
}

.footer-contact li {
  margin-bottom: 8px;
}

.footer-contact a {
  color: var(--primary-deep);
  font-weight: 800;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 120px;
}

.footer-nav a {
  color: var(--text);
  font-weight: 850;
}

.footer-nav a:hover {
  color: var(--primary-deep);
}

.footer-map {
  min-height: 220px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--primary-soft);
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
  display: block;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  padding-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.floating-contact {
  display: none !important;
}

/* Scroll reveal */
[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Naprawa znikającej oferty, gdy JS nie odpali */
html:not(.js-ready) [data-animate] {
  opacity: 1;
  transform: none;
}

@media (max-width: 1024px) {
  .hero-main-v3 {
    grid-template-columns: 1fr;
  }

  .section-header-row,
  .page-hero-panel,
  .footer-panel {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-panel {
    display: grid;
  }

  .page-hero-cta {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .custom-logo,
  .site-logo {
    width: 54px;
    height: 54px;
  }

  .content-panel,
  .page-hero-panel,
  .page-text-layout,
  .hero-info-card {
    border-radius: 24px;
  }

  .section-header-row .btn {
    width: 100%;
  }

  .footer-map {
    min-height: 260px;
  }
}
/* =========================
   AKTIVO V3.1 PATCH
   Oferta + lepszy cennik
   ========================= */

.pricing-panel-v3 {
  position: relative;
  overflow: hidden;
}

.pricing-panel-v3::before {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(114, 198, 215, 0.28), transparent 68%);
  pointer-events: none;
}

.pricing-grid-v3 {
  position: relative;
  z-index: 1;
}

.price-card-v3 {
  position: relative;
  min-height: 360px;
  padding: 28px;
  overflow: hidden;
}

.price-card-v3::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.price-card-v3.is-featured {
  transform: translateY(-8px);
  border-color: rgba(39, 137, 184, 0.35);
  box-shadow: 0 28px 80px rgba(15, 77, 111, 0.16);
}

.price-card-v3 .price {
  margin: 20px 0 18px;
}

.price-list {
  display: grid;
  gap: 10px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.price-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-weight: 700;
}

.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(114, 198, 215, 0.15);
}

.pricing-note {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(223, 242, 250, 0.58);
  color: var(--muted);
  font-weight: 650;
}

.pricing-note strong {
  color: var(--text);
}

.service-grid-v3 {
  margin-top: 28px;
}

.service-card-v3 {
  position: relative;
  min-height: 340px;
  padding: 28px;
  overflow: hidden;
}

.service-card-v3::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.service-card-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.service-card-v3 ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.service-card-v3 li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-weight: 700;
}

.service-card-v3 li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.offer-service-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.offer-service-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.offer-service-item span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.offer-service-item h3 {
  margin: 0 0 10px;
}

.offer-service-item p {
  margin: 0;
}

.text-link {
  color: var(--primary-deep);
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.text-link:hover {
  color: var(--primary);
}

@media (max-width: 900px) {
  .price-card-v3.is-featured {
    transform: none;
  }

  .offer-service-item {
    grid-template-columns: 1fr;
  }

  .text-link {
    white-space: normal;
  }
}
/* =========================
   AKTIVO FIX: buttons + homepage pricing
   ========================= */

/* BUTTONS */
.btn,
.btn-primary,
.btn-secondary,
.header-cta,
.wp-block-button__link,
.entry-content .btn-primary,
.entry-content .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: 999px;
  line-height: 1.2;
  font-size: 15px;
  font-weight: 850;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-primary,
.entry-content .btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 14px 34px rgba(39, 137, 184, 0.22);
}

.btn-secondary,
.hero-actions .btn:not(.btn-primary) {
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.header-cta {
  min-height: 42px;
  padding: 9px 18px;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: 0 12px 28px rgba(15, 77, 111, 0.18);
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.header-cta:hover,
.wp-block-button__link:hover {
  transform: translateY(-1px);
}

/* Przyciski w szerokich sekcjach, np. "Zobacz cennik" */
.section-header-row > .btn {
  flex: 0 0 auto;
  min-width: 156px;
}

/* CTA w treści strony, np. "Napisz e-mail" */
.entry-content .page-section .btn,
.page-text-layout .page-section .btn,
.page-text-layout .wp-block-button__link {
  width: auto;
  min-width: 150px;
}

/* MOBILE BUTTONS */
@media (max-width: 760px) {
  .btn,
  .btn-primary,
  .btn-secondary,
  .wp-block-button__link,
  .entry-content .btn-primary,
  .entry-content .wp-block-button__link {
    width: 100%;
    white-space: normal;
  }

  .header-cta {
    display: none;
  }
}

/* HOMEPAGE PRICING: compact cards */
.pricing-panel-v3 {
  padding-top: clamp(26px, 4vw, 42px);
  padding-bottom: clamp(26px, 4vw, 42px);
}

.pricing-panel-v3 .section-header {
  margin-bottom: 24px;
}

.pricing-grid-v3 {
  gap: 20px;
}

.price-card-v3 {
  min-height: 0;
  height: auto;
  padding: 26px 28px 28px;
  border-radius: 24px;
}

.price-card-v3.is-featured {
  transform: none;
  box-shadow: var(--shadow-soft);
}

.price-card-v3 .price-badge {
  margin-bottom: 18px;
}

.price-card-v3 h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.price-card-v3 p {
  min-height: 52px;
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.55;
}

.price-card-v3 .price {
  margin: 0;
  font-size: clamp(30px, 3vw, 38px);
  line-height: 1;
}

/* Nie wymuszaj sztucznej wysokości kart ceny */
.price-card {
  min-height: 0;
}

/* Na małych ekranach karty cen bez dziwnych pustych przestrzeni */
@media (max-width: 1024px) {
  .price-card-v3 p {
    min-height: 0;
  }
}
.entry-content .page-section .btn-primary,
.page-text-layout .page-section .btn-primary {
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
  box-shadow: 0 12px 28px rgba(15, 77, 111, 0.18);
}
/* =========================
   AKTIVO: services slider
   ========================= */

.services-slider-wrap {
  position: relative;
  margin-top: 28px;
}

.services-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 44px) / 3);
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 12px;
  scrollbar-width: none;
}

.services-slider::-webkit-scrollbar {
  display: none;
}

.services-slider .service-card {
  scroll-snap-align: start;
  min-width: 0;
}

.services-slider-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(39, 137, 184, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--primary-deep);
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(15, 77, 111, 0.16);
  transform: translateY(-50%);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.services-slider-btn:hover {
  background: #fff;
  box-shadow: 0 18px 46px rgba(15, 77, 111, 0.22);
}

.services-slider-prev {
  left: -18px;
}

.services-slider-next {
  right: -18px;
}

@media (max-width: 1024px) {
  .services-slider {
    grid-auto-columns: calc((100% - 22px) / 2);
  }
}

@media (max-width: 760px) {
  .services-slider {
    grid-auto-columns: 88%;
    gap: 16px;
    padding-right: 36px;
  }

  .services-slider-btn {
    display: none;
  }
}
/* =========================
   AKTIVO: service page anchors
   ========================= */

.service-anchor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.service-anchor-grid a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 16px 46px 16px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  font-weight: 850;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.service-anchor-grid a::after {
  content: "→";
  position: absolute;
  right: 18px;
  top: 50%;
  color: var(--primary-deep);
  font-size: 20px;
  font-weight: 950;
  transform: translateY(-50%);
}

.service-anchor-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(39, 137, 184, 0.34);
  box-shadow: 0 18px 46px rgba(15, 77, 111, 0.12);
  color: var(--primary-deep);
}

.service-detail-section {
  scroll-margin-top: 110px;
}

@media (max-width: 760px) {
  .service-anchor-grid {
    grid-template-columns: 1fr;
  }
}
#main-content .wp-block-image,
#main-content .wp-block-gallery,
#main-content .wp-block-shortcode {
  width: min(980px, calc(100% - 40px));
  margin: 28px auto;
}

#main-content .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

#main-content .wp-block-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

#main-content .wp-block-image img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

#main-content .wp-block-image.size-full,
#main-content .wp-block-image.size-large {
  overflow: hidden;
}

@media (max-width: 900px) {
  #main-content .wp-block-gallery {
    grid-template-columns: 1fr;
  }

  #main-content .wp-block-gallery img,
  #main-content .wp-block-image img {
    max-height: none;
    aspect-ratio: auto;
  }
}
.hero-side-stack {
  display: grid;
  gap: 18px;
  align-self: center;
}

.hero-media-card {
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.hero-media-card .metaslider,
.hero-media-card .ml-slider {
  margin: 0 !important;
  max-width: 100% !important;
}

.hero-media-card img {
  display: block;
  width: 100%;
  height: clamp(220px, 26vw, 340px);
  object-fit: cover;
  border-radius: 20px;
}

.hero-side-stack .hero-info-card {
  padding: 24px;
}

@media (max-width: 1024px) {
  .hero-side-stack {
    width: 100%;
  }

  .hero-media-card img {
    height: clamp(220px, 54vw, 360px);
  }
}
