/*
Theme Name: AP Deyna
Theme URI: https://apdeyna.pl
Author: AP Deyna
Author URI: https://apdeyna.pl
Description: Motyw WordPress dla Akademii Piłkarskiej im. Kazimierza Deyny. Ciemny motyw z akcentami w kolorach klubu (zielony, czerwony) oddający charakter klubu sportowego.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apdeyna
Tags: sports, football, dark, custom-header, custom-menu, custom-logo, footer-widgets, threaded-comments
*/

/* ========== GLOBAL CSS VARIABLES (na :root żeby były dostępne też dla elementów poza .apd-wrapper — cookie banner w wp_footer, modale itd.) ========== */
:root {
  --black: #0A0A0A;
  --black-light: #1A1A1A;
  --black-card: #141414;
  --green: #006B3F;
  --green-light: #00A35C;
  --green-dark: #004D2C;
  --red: #D4213D;
  --red-dark: #A8192F;
  --white: #FFFFFF;
  --gray-100: #F5F5F5;
  --gray-200: #E5E5E5;
  --gray-300: #C4C4C4;
  --gray-400: #8A8A8A;
  --gray-600: #4A4A4A;
  --gold: #C8A951;
  --font-main: 'Inter', -apple-system, sans-serif;
  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== RESET WITHIN WRAPPER ========== */
.apd-wrapper, .apd-wrapper *, .apd-wrapper *::before, .apd-wrapper *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}
.apd-wrapper {
  font-family: var(--font-main);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
body.apd-body { background: var(--black); margin: 0; }
.apd-wrapper a { text-decoration: none; color: inherit; }
.apd-wrapper img { max-width: 100%; display: block; }
.apd-wrapper button { cursor: pointer; border: none; font-family: var(--font-main); }
.apd-wrapper ul { list-style: none; }
.apd-wrapper h1, .apd-wrapper h2, .apd-wrapper h3, .apd-wrapper h4 {
  margin: 0; padding: 0; color: var(--white);
}

.apd-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ========== TOP BAR ========== */
.apd-top-bar {
  background: var(--green-dark);
  padding: 8px 0;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}
.apd-top-bar .apd-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.apd-top-bar a { color: rgba(255,255,255,0.85); transition: var(--transition); }
.apd-top-bar a:hover { color: var(--white); }
.apd-top-bar-links { display: flex; gap: 20px; align-items: center; }

/* ========== NAVBAR ========== */
.apd-navbar {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 9999;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.apd-navbar .apd-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.apd-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.5px;
}
.apd-logo {
  gap: 8px;
  flex-shrink: 0;
}
/* Bazowe wymiary znaków w navbarze - nadpisywane przez inline-style z Customizera (apdeyna_brand_image_style). */
.apd-logo img.apd-logo-mark,
.apd-logo img.apd-logo-cert,
.apd-logo img.apd-logo-third { object-fit: contain; flex-shrink: 0; }
.apd-logo img.apd-logo-cert,
.apd-logo img.apd-logo-third { margin-left: 3px; }

.apd-nav-links {
  display: flex;
  gap: 0;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
  flex-shrink: 1;
  min-width: 0;
}
.apd-nav-links li { margin: 0; }
.apd-nav-links li a {
  padding: 8px 11px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-300);
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
  display: inline-block;
  letter-spacing: -0.1px;
}
.apd-nav-links li a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}
.apd-nav-links li.current-menu-item > a,
.apd-nav-links li.current_page_item > a,
.apd-nav-links li a.apd-active { color: var(--green-light); }
.apd-nav-cta,
.apd-nav-links li.apd-cta-item > a {
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 8px;
  margin-left: 4px;
}
.apd-nav-cta:hover,
.apd-nav-links li.apd-cta-item > a:hover { background: var(--red-dark); transform: translateY(-1px); }

/* ===== DROPDOWN MENU (desktop) ===== */
.apd-nav-links li {
  position: relative;
}
.apd-nav-links .sub-menu,
.apd-nav-links .children {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: rgba(15,15,15,0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 8px;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 9999;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.apd-nav-links li:hover > .sub-menu,
.apd-nav-links li:hover > .children,
.apd-nav-links li:focus-within > .sub-menu,
.apd-nav-links li:focus-within > .children {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.apd-nav-links .sub-menu li,
.apd-nav-links .children li {
  width: 100%;
  margin: 0;
}
.apd-nav-links .sub-menu li a,
.apd-nav-links .children li a {
  display: block;
  padding: 10px 14px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--gray-200);
  white-space: normal;
  border-radius: 6px;
  line-height: 1.4;
}
.apd-nav-links .sub-menu li a:hover,
.apd-nav-links .children li a:hover {
  background: rgba(0,163,92,0.12);
  color: var(--green-light);
}

/* Submenu level 3 - z prawej strony submenu level 2 */
.apd-nav-links .sub-menu .sub-menu,
.apd-nav-links .sub-menu .children {
  top: -9px;
  left: 100%;
  margin-left: 4px;
}

/* Chevron przy pozycji menu z submenu */
.apd-nav-links li.menu-item-has-children > a::after,
.apd-nav-links .sub-menu li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 4px;
  opacity: 0.7;
  transition: transform 0.2s;
}
.apd-nav-links .sub-menu li.menu-item-has-children > a::after {
  transform: rotate(-45deg);
  margin-left: 8px;
}
.apd-nav-links li.menu-item-has-children:hover > a::after {
  opacity: 1;
}

/* ===== HAMBURGER BUTTON (animowany 3-linie → X) ===== */
.apd-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: rgba(255,255,255,0.04);
  padding: 12px 10px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.apd-hamburger:hover { background: rgba(255,255,255,0.08); }
.apd-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1),
              opacity 0.2s ease,
              background 0.25s ease;
  transform-origin: center;
}
.apd-hamburger.is-active {
  background: rgba(212,33,61,0.12);
  border-color: rgba(212,33,61,0.32);
}
.apd-hamburger.is-active span { background: var(--white); }
.apd-hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.apd-hamburger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.apd-hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MOBILE MENU (fullscreen overlay) =====
   z-index 9998 — pod navbarem (9999), żeby hamburger button zostawał klikalny.
   position: fixed — działa tylko jeśli element NIE jest dzieckiem .apd-navbar
   (backdrop-filter na navbarze tworzy containing block dla potomków). */
.apd-mobile-menu {
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(8, 8, 8, 0.97);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  padding: 96px 0 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.32s ease, transform 0.32s ease, visibility 0.32s ease;
}
.apd-mobile-menu.apd-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* Powyżej 768px top bar jest widoczny (32px) + navbar (72px) = potrzebny większy padding-top. */
@media (min-width: 769px) {
  .apd-mobile-menu { padding-top: 130px; }
}
.apd-mobile-menu::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 90% 40% at 50% 0%, rgba(0,107,63,0.10), transparent 70%),
    radial-gradient(ellipse 70% 30% at 50% 100%, rgba(212,33,61,0.06), transparent 70%);
  pointer-events: none;
}
.apd-mobile-menu-inner {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px;
  z-index: 1;
}

.apd-mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.apd-mobile-menu li {
  margin: 0;
  position: relative;
  opacity: 0;
  transform: translateX(20px);
}
.apd-mobile-menu.apd-open li {
  animation: apd-mobile-slide 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.apd-mobile-menu.apd-open li:nth-child(1)  { animation-delay: 0.06s; }
.apd-mobile-menu.apd-open li:nth-child(2)  { animation-delay: 0.10s; }
.apd-mobile-menu.apd-open li:nth-child(3)  { animation-delay: 0.14s; }
.apd-mobile-menu.apd-open li:nth-child(4)  { animation-delay: 0.18s; }
.apd-mobile-menu.apd-open li:nth-child(5)  { animation-delay: 0.22s; }
.apd-mobile-menu.apd-open li:nth-child(6)  { animation-delay: 0.26s; }
.apd-mobile-menu.apd-open li:nth-child(7)  { animation-delay: 0.30s; }
.apd-mobile-menu.apd-open li:nth-child(8)  { animation-delay: 0.34s; }
.apd-mobile-menu.apd-open li:nth-child(9)  { animation-delay: 0.38s; }
.apd-mobile-menu.apd-open li:nth-child(10) { animation-delay: 0.42s; }
.apd-mobile-menu.apd-open li:nth-child(11) { animation-delay: 0.46s; }
@keyframes apd-mobile-slide {
  0%   { opacity: 0; transform: translateX(20px); }
  100% { opacity: 1; transform: translateX(0); }
}

.apd-mobile-menu li > a {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.2px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.apd-mobile-menu li > a:hover,
.apd-mobile-menu li > a:focus {
  background: rgba(0,163,92,0.10);
  border-color: rgba(0,163,92,0.22);
  color: var(--green-light);
}
.apd-mobile-menu li.current-menu-item > a,
.apd-mobile-menu li.current_page_item > a {
  color: var(--green-light);
}
.apd-mobile-menu li.apd-cta-item > a {
  background: var(--red);
  color: var(--white);
  justify-content: center;
  font-weight: 700;
  margin-top: 12px;
  border-color: var(--red);
}
.apd-mobile-menu li.apd-cta-item > a:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
}

/* Submenu - accordion (rozwijane przyciskiem +) */
.apd-mobile-menu .sub-menu,
.apd-mobile-menu .children {
  list-style: none;
  padding: 0;
  margin: 4px 0 6px 18px;
  display: none;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid rgba(0,163,92,0.30);
  padding-left: 10px;
}
.apd-mobile-menu li.apd-submenu-open > .sub-menu,
.apd-mobile-menu li.apd-submenu-open > .children {
  display: flex;
  animation: apd-submenu-expand 0.3s ease both;
}
@keyframes apd-submenu-expand {
  0%   { opacity: 0; transform: translateY(-4px); }
  100% { opacity: 1; transform: translateY(0); }
}
.apd-mobile-menu .sub-menu li,
.apd-mobile-menu .children li {
  opacity: 1;
  transform: none;
  animation: none;
}
.apd-mobile-menu .sub-menu li > a,
.apd-mobile-menu .children li > a {
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--gray-300);
}

/* Przycisk + przy pozycjach z submenu */
.apd-mobile-menu li.menu-item-has-children { position: relative; }
.apd-mobile-menu li.menu-item-has-children > a { padding-right: 60px; }
.apd-mobile-menu li.menu-item-has-children > .apd-submenu-toggle {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: var(--gray-300);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.3s;
  z-index: 2;
}
.apd-mobile-menu li.menu-item-has-children > .apd-submenu-toggle::before {
  content: '+';
  font-weight: 300;
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
  display: block;
}
.apd-mobile-menu li.menu-item-has-children > .apd-submenu-toggle:hover {
  background: rgba(0,163,92,0.16);
  border-color: rgba(0,163,92,0.28);
  color: var(--green-light);
}
.apd-mobile-menu li.apd-submenu-open > .apd-submenu-toggle {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.apd-mobile-menu li.apd-submenu-open > .apd-submenu-toggle::before {
  transform: rotate(45deg);
}

/* Lock body scroll when mobile menu open */
body.apd-menu-open {
  overflow: hidden;
}

/* ========== HERO ========== */
.apd-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Tło z płynnym przejściem na DOLE — wtopienie w sekcję Nabory (var(--black-light)) */
  background:
    linear-gradient(180deg, transparent 0%, transparent 70%, var(--black-light) 100%),
    linear-gradient(135deg, var(--black) 0%, #0d1f15 50%, var(--black) 100%);
  padding: 90px 0 80px;
}
.apd-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 60% 70% at 80% 30%, rgba(0,107,63,0.22), transparent 60%),
    radial-gradient(ellipse 50% 60% at 20% 80%, rgba(212,33,61,0.10), transparent 60%),
    radial-gradient(circle at 50% 50%, transparent 40%, rgba(0,0,0,0.4) 100%);
  z-index: 1;
}
.apd-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  mask-image: radial-gradient(ellipse 80% 90% at 50% 50%, black 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 50%, black 50%, transparent 100%);
}

/* Dwukolumnowy grid: tekst + visual */
.apd-hero .apd-container {
  position: relative;
  z-index: 2;
}
.apd-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.apd-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.apd-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,163,92,0.12);
  border: 1px solid rgba(0,163,92,0.3);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-light);
  margin-bottom: 28px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.apd-hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--green-light);
  border-radius: 50%;
  animation: apd-pulse 2s ease-in-out infinite;
}
@keyframes apd-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.apd-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.2vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  font-weight: 400;
}
.apd-hero h1 .apd-highlight { color: var(--green-light); }
.apd-hero h1 .apd-highlight-red { color: var(--red); }
.apd-hero-desc {
  font-size: 1.15rem; color: var(--gray-300);
  max-width: 520px; margin-bottom: 40px; line-height: 1.7;
}
.apd-hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.apd-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  letter-spacing: -0.2px;
}
.apd-btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(212,33,61,0.3);
}
.apd-btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212,33,61,0.4);
}
.apd-btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.12);
}
.apd-btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.apd-btn svg { width: 18px; height: 18px; }

/* ========== HERO VISUAL - duże zdjęcie z efektami ========== */
.apd-hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 540px;
  margin-left: auto;
  z-index: 2;
}

/* Wielka liczba "10" jako tło - patron Akademii (Deyna numer 10) */
.apd-hero-visual::before {
  content: '10';
  position: absolute;
  top: -16%;
  right: -10%;
  font-family: var(--font-display);
  font-size: clamp(12rem, 26vw, 24rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 2px rgba(0,163,92,0.22);
  z-index: 0;
  pointer-events: none;
  user-select: none;
  font-weight: 400;
}

/* Czerwony offset frame za zdjęciem */
.apd-hero-visual::after {
  content: '';
  position: absolute;
  inset: 24px -22px -22px 22px;
  border: 2px solid var(--red);
  border-radius: 50%;
  z-index: 0;
  opacity: 0.55;
  animation: apd-float-offset 8s ease-in-out infinite;
}
@keyframes apd-float-offset {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-6px, 6px); }
}

/* Dekoracyjne ringi wokół kuli */
.apd-hero-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(0,163,92,0.35);
  z-index: 1;
  pointer-events: none;
}
.apd-hero-ring::before {
  content: '';
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 1px dashed rgba(0,163,92,0.20);
  animation: apd-rotate 60s linear infinite;
}
.apd-hero-ring::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--green-light);
  border-right-color: var(--green-light);
  opacity: 0.4;
  animation: apd-rotate-reverse 16s linear infinite;
}
@keyframes apd-rotate { to { transform: rotate(360deg); } }
@keyframes apd-rotate-reverse { to { transform: rotate(-360deg); } }

/* Kula ze zdjęciem */
.apd-ball-graphic {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--green-light), var(--green-dark) 60%, var(--black) 100%);
  box-shadow:
    0 0 0 8px rgba(255,255,255,0.025),
    0 30px 80px rgba(0,107,63,0.45),
    0 0 180px rgba(0,107,63,0.35),
    inset 0 0 80px rgba(0,0,0,0.55);
  animation: apd-float 6s ease-in-out infinite;
  overflow: hidden;
  z-index: 2;
}
.apd-ball-graphic::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, transparent 0%, transparent 55%, rgba(212,33,61,0.18) 100%);
  z-index: 3;
  pointer-events: none;
}
.apd-ball-graphic::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 60px rgba(255,255,255,0.06), inset 0 -50px 80px rgba(0,0,0,0.35);
  z-index: 4;
  pointer-events: none;
}
.apd-ball-graphic img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  position: absolute; top: 0; left: 0;
  border-radius: 50%;
  z-index: 1;
}
@keyframes apd-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}

/* Floating badge - "UEFA" przy zdjęciu */
.apd-hero-badge-float {
  position: absolute;
  bottom: 4%;
  left: -6%;
  background: var(--white);
  color: var(--black);
  padding: 14px 22px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 1px;
  line-height: 1;
  z-index: 6;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.06);
  animation: apd-badge-float 4.5s ease-in-out infinite;
}
.apd-hero-badge-float small {
  display: block;
  font-family: var(--font-main);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--green);
  text-transform: uppercase;
  margin-top: 4px;
}
@keyframes apd-badge-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-10px) rotate(-3deg); }
}

/* Floating stat - "500+" zawodników */
.apd-hero-stat-float {
  position: absolute;
  top: 6%;
  right: -2%;
  background: var(--red);
  color: var(--white);
  padding: 14px 20px;
  border-radius: 14px;
  z-index: 6;
  box-shadow: 0 16px 40px rgba(212,33,61,0.4);
  animation: apd-stat-float 5.5s ease-in-out infinite;
  text-align: center;
  line-height: 1;
}
.apd-hero-stat-float strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  display: block;
}
.apd-hero-stat-float small {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.95;
}
@keyframes apd-stat-float {
  0%, 100% { transform: translateY(0) rotate(4deg); }
  50%      { transform: translateY(-12px) rotate(4deg); }
}

.apd-hero-stats {
  display: flex; gap: 40px;
  margin-top: 56px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.apd-hero-stat-value {
  font-family: var(--font-display);
  font-size: 2.4rem; color: var(--white); line-height: 1;
}
.apd-hero-stat-value span { color: var(--green-light); }
.apd-hero-stat-label {
  font-size: 0.82rem; color: var(--gray-400);
  margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px;
}

/* ========== SECTIONS SHARED ========== */
.apd-section { padding: 100px 0; }
.apd-section-header { text-align: center; margin-bottom: 64px; }
.apd-section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600;
  color: var(--green-light);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px;
}
.apd-section-label::before, .apd-section-label::after {
  content: ''; width: 24px; height: 1px;
  background: var(--green-light); opacity: 0.4;
}
.apd-section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  letter-spacing: -0.5px; line-height: 1; margin-bottom: 16px;
  font-weight: 400;
}
.apd-section-subtitle {
  color: var(--gray-400); font-size: 1.05rem;
  max-width: 560px; margin: 0 auto;
}

/* ========== SEKCJA NABORY (po hero) ========== */
.apd-recruitment {
  /* Płynne przejście: zaczynamy od var(--black-light) (gdzie kończy się hero),
     przechodzimy przez var(--black) w środku, kończymy z powrotem var(--black-light) */
  background: linear-gradient(180deg, var(--black-light) 0%, var(--black) 30%, var(--black) 70%, var(--black-light) 100%);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: -1px; /* eliminuje subpiksel-gap między sekcjami przy niektórych zoomach */
}

/* === Animowane gradient blobs pływające w tle === */
.apd-recruitment::before,
.apd-recruitment::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.apd-recruitment::before {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(0,163,92,0.32) 0%, transparent 70%);
  top: -200px; left: -120px;
  animation: apd-rec-blob-1 18s ease-in-out infinite;
}
.apd-recruitment::after {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(212,33,61,0.22) 0%, transparent 70%);
  bottom: -260px; right: -160px;
  animation: apd-rec-blob-2 22s ease-in-out infinite;
}
@keyframes apd-rec-blob-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(80px, 60px) scale(1.1); }
  66%      { transform: translate(40px, 120px) scale(0.95); }
}
@keyframes apd-rec-blob-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-100px, -80px) scale(1.15); }
}

/* === Siatka boiska piłkarskiego (subtle SVG pattern) === */
.apd-recruitment-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.18;
  pointer-events: none;
  background-image:
    /* Linie boiska — pionowe */
    linear-gradient(90deg, transparent 49.9%, rgba(0,163,92,0.18) 50%, transparent 50.1%),
    /* Kropki — pattern */
    radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1.5px);
  background-size: 100% 100%, 32px 32px;
  background-position: center center, 0 0;
}

/* === Pływające piłki / punkty === */
.apd-recruitment-dots {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.apd-recruitment-dot {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-light);
  box-shadow: 0 0 12px rgba(0,163,92,0.8);
  opacity: 0.7;
  animation: apd-rec-dot 8s ease-in-out infinite;
}
.apd-recruitment-dot:nth-child(1) { top: 18%;  left: 12%; animation-delay: 0s;   animation-duration: 9s; }
.apd-recruitment-dot:nth-child(2) { top: 72%;  left: 22%; animation-delay: 1.5s; animation-duration: 11s; background: var(--red); box-shadow: 0 0 12px rgba(212,33,61,0.8); }
.apd-recruitment-dot:nth-child(3) { top: 30%;  left: 85%; animation-delay: 3s;   animation-duration: 10s; }
.apd-recruitment-dot:nth-child(4) { top: 65%;  left: 78%; animation-delay: 4.5s; animation-duration: 12s; }
.apd-recruitment-dot:nth-child(5) { top: 8%;   left: 60%; animation-delay: 2s;   animation-duration: 9.5s; }
.apd-recruitment-dot:nth-child(6) { top: 88%;  left: 50%; animation-delay: 5s;   animation-duration: 11s; background: var(--red); box-shadow: 0 0 12px rgba(212,33,61,0.8); }
@keyframes apd-rec-dot {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  50%      { transform: translate(20px, -30px) scale(1.5); opacity: 1; }
}

.apd-recruitment .apd-container { position: relative; z-index: 1; }

/* === 3-kolumnowy layout: zdjęcie | content | zdjęcie === */
.apd-recruitment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr) minmax(0, 1.2fr);
  gap: 36px;
  align-items: center;
}
@media (max-width: 1024px) {
  .apd-recruitment-layout {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .apd-recruitment-inner { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 600px) {
  .apd-recruitment-layout { grid-template-columns: 1fr; }
  .apd-recruitment-photo { max-width: 320px; margin: 0 auto; }
}

.apd-recruitment-photo {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transition: var(--transition);
}
.apd-recruitment-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}
.apd-recruitment-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.apd-recruitment-photo:hover img { transform: scale(1.05); }

/* Lekki tilt — zdjęcia "wpadają" lekko w środkową kartę */
.apd-recruitment-photo-left  { transform: rotate(-1.5deg); }
.apd-recruitment-photo-right { transform: rotate(1.5deg); }
.apd-recruitment-photo-left:hover  { transform: rotate(0); }
.apd-recruitment-photo-right:hover { transform: rotate(0); }

.apd-recruitment-inner {
  text-align: center;
  padding: 32px 24px;
  background: linear-gradient(135deg, rgba(20,20,20,0.7) 0%, rgba(10,10,10,0.85) 100%);
  border: 1px solid rgba(0,163,92,0.18);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.04);
}
.apd-recruitment-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 32px; right: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--green-light), var(--green), var(--red));
  border-radius: 0 0 2px 2px;
}
@media (max-width: 600px) {
  .apd-recruitment-inner { padding: 28px 20px; }
}
.apd-recruitment-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.5px;
  margin: 12px 0 20px;
  font-weight: 400;
  color: var(--white);
}
.apd-recruitment-title .apd-green { color: var(--green-light); }
.apd-recruitment-lead {
  color: var(--gray-300);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 36px;
}

.apd-recruitment-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 28px auto 32px;
  max-width: 700px;
  padding: 20px 24px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  position: relative;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04);
}
/* Animowany kolorowy border u góry — efekt "przepływającego światła" */
.apd-recruitment-stats::before {
  content: '';
  position: absolute;
  top: -1px; left: 32px; right: 32px;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--green-light) 20%,
    var(--green) 40%,
    var(--red) 60%,
    var(--green-light) 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  border-radius: 0 0 2px 2px;
  animation: apd-rec-shimmer 4s linear infinite;
}
/* Pulsujący glow ring wokół karty statystyk */
.apd-recruitment-stats::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg,
    rgba(0,163,92,0.30) 0%,
    transparent 30%,
    transparent 70%,
    rgba(212,33,61,0.20) 100%
  );
  z-index: -1;
  opacity: 0;
  animation: apd-rec-glow 5s ease-in-out infinite;
  filter: blur(8px);
}
@keyframes apd-rec-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes apd-rec-glow {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.9; }
}
@media (max-width: 700px) {
  .apd-recruitment-stats { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; padding: 24px 18px; }
}
.apd-recruitment-stat-v {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 400;
  letter-spacing: -0.3px;
  color: var(--green-light);
  line-height: 1;
  margin-bottom: 6px;
}
.apd-recruitment-stat-l {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gray-400);
  line-height: 1.3;
}

.apd-recruitment-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.apd-recruitment-buttons .apd-btn { font-size: 1rem; padding: 16px 32px; }

/* Główny CTA — pulsujący zielony glow wokół przycisku (przyciąga wzrok) */
.apd-recruitment-buttons .apd-btn-primary {
  position: relative;
  animation: apd-rec-btn-pulse 2.4s ease-in-out infinite;
}
@keyframes apd-rec-btn-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(212,33,61,0.30), 0 0 0 0 rgba(212,33,61,0.50); }
  50%      { box-shadow: 0 4px 20px rgba(212,33,61,0.40), 0 0 0 14px rgba(212,33,61,0); }
}

/* Etykieta "OTWARTE ZAPISY" jako live-indicator z migającą kropką */
.apd-recruitment-inner > .apd-section-label {
  position: relative;
  padding-left: 22px;
}
.apd-recruitment-inner > .apd-section-label::before {
  position: static;
  display: inline-block;
  width: 9px; height: 9px;
  background: var(--green-light);
  border-radius: 50%;
  margin-right: 10px;
  margin-left: -22px;
  vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(0,163,92,0.7);
  animation: apd-rec-live 2s ease-out infinite;
  opacity: 1;
}
.apd-recruitment-inner > .apd-section-label::after { display: none; }
@keyframes apd-rec-live {
  0%   { box-shadow: 0 0 0 0 rgba(0,163,92,0.7); }
  70%  { box-shadow: 0 0 0 12px rgba(0,163,92,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,163,92,0); }
}

/* Respect prefers-reduced-motion — wyłącz wszystkie animacje */
@media (prefers-reduced-motion: reduce) {
  .apd-recruitment::before,
  .apd-recruitment::after,
  .apd-recruitment-dot,
  .apd-recruitment-stats::before,
  .apd-recruitment-stats::after,
  .apd-recruitment-buttons .apd-btn-primary,
  .apd-recruitment-inner > .apd-section-label::before {
    animation: none !important;
  }
}

/* ========== SEKCJA O NAS — pełnoekranowe zdjęcie + karta + stats + ticker ========== */
.apd-about {
  background: var(--black);
  position: relative;
  padding: 0;
}

/* Hero z tłem ze zdjęciem */
.apd-about-hero {
  position: relative;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  padding: 100px 0;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.apd-about-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.20) 100%),
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
  z-index: 1;
}
.apd-about-hero .apd-container { position: relative; z-index: 2; }

/* Karta po lewej */
.apd-about-card {
  background: linear-gradient(135deg, rgba(20,20,20,0.92) 0%, rgba(15,15,15,0.96) 100%);
  border: 1px solid rgba(0,163,92,0.30);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  max-width: 580px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
.apd-about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 32px; right: 32px;
  height: 3px;
  background: linear-gradient(90deg, var(--green-light), var(--green), var(--red));
  border-radius: 0 0 3px 3px;
}
@media (max-width: 600px) {
  .apd-about-hero { padding: 72px 0; min-height: auto; }
  .apd-about-card { padding: 32px 24px; }
}

.apd-about-card-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--green-light);
  background: rgba(0,163,92,0.12);
  border: 1px solid rgba(0,163,92,0.28);
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.apd-about-card-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -1px;
  margin: 0 0 22px;
  font-weight: 400;
  color: var(--white);
}
.apd-about-card-title .apd-green { color: var(--green-light); }

.apd-about-card-text {
  color: var(--gray-200);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 28px;
}
.apd-about-card-text p { margin: 0 0 14px; }
.apd-about-card-text p:last-child { margin-bottom: 0; }
.apd-about-card-text strong { color: var(--white); }

.apd-about-card-btn {
  color: var(--white);
  border-bottom: none;
}
.apd-about-card-btn:hover { color: var(--white); }

/* === Pas 3 statystyk === */
.apd-about-stats-strip {
  background: var(--black-light);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 0;
}
.apd-about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: center;
  text-align: center;
}
@media (max-width: 700px) {
  .apd-about-stats { grid-template-columns: 1fr; gap: 24px; }
}
.apd-about-stat {
  padding: 8px 0;
  position: relative;
}
.apd-about-stat + .apd-about-stat::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 60%;
  background: rgba(255,255,255,0.08);
}
@media (max-width: 700px) {
  .apd-about-stat + .apd-about-stat::before { display: none; }
}
.apd-about-stat-v {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -1px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 8px;
}
.apd-about-stat-l {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gray-400);
}

/* === Animowany ticker wartości === */
.apd-about-values {
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
  padding: 26px 0;
  overflow: hidden;
  position: relative;
}
.apd-about-values::before,
.apd-about-values::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.apd-about-values::before {
  left: 0;
  background: linear-gradient(90deg, var(--green) 0%, transparent 100%);
}
.apd-about-values::after {
  right: 0;
  background: linear-gradient(-90deg, var(--green) 0%, transparent 100%);
}
.apd-about-values-track {
  display: flex;
  gap: 48px;
  align-items: center;
  white-space: nowrap;
  animation: apd-values-scroll 40s linear infinite;
  width: max-content;
}
.apd-about-value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.3px;
  line-height: 1;
  flex-shrink: 0;
}
.apd-about-value.is-strong { color: var(--white); }
.apd-about-value.is-muted  { color: rgba(255,255,255,0.32); }
@keyframes apd-values-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .apd-about-values-track { animation: none; }
}

/* ========== FEATURES ========== */
.apd-features { background: linear-gradient(180deg, var(--black) 0%, var(--black-light) 100%); }
.apd-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.apd-feature-card {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: block;
  color: inherit;
  text-decoration: none;
}
.apd-feature-card.apd-feature-card-link { cursor: pointer; }
.apd-feature-cta {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green-light);
}
.apd-feature-cta .arrow { display: inline-block; transition: var(--transition); margin-left: 4px; }
.apd-feature-card:hover .apd-feature-cta .arrow { transform: translateX(4px); }
.apd-feature-card .apd-feature-bg {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover; filter: brightness(0.35);
}
.apd-feature-card .apd-feature-content {
  position: relative; z-index: 1;
  padding: 36px 32px;
}
.apd-feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  opacity: 0; transition: var(--transition);
  z-index: 2;
}
.apd-feature-card:hover {
  border-color: rgba(0,163,92,0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.apd-feature-card:hover::before { opacity: 1; }
.apd-feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 1.5rem;
}
.apd-feature-icon.green { background: rgba(0,163,92,0.2); color: var(--green-light); }
.apd-feature-icon.red { background: rgba(212,33,61,0.2); color: var(--red); }
.apd-feature-icon.white { background: rgba(255,255,255,0.12); color: var(--white); }
.apd-feature-card h3 {
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: 10px; letter-spacing: -0.3px;
}
.apd-feature-card p { color: rgba(255,255,255,0.85); font-size: 0.92rem; line-height: 1.6; }

/* ========== PROGRAMS ========== */
.apd-programs {
  background: var(--black-light);
  position: relative;
}
.apd-programs::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0,107,63,0.06), transparent);
}
.apd-programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px; position: relative;
}
.apd-program-card {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden; transition: var(--transition); cursor: pointer;
  display: block;
}
.apd-program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,163,92,0.25);
}
.apd-program-img {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, var(--green-dark), var(--black-light));
  position: relative; overflow: hidden;
}
.apd-program-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.apd-program-img::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
  background: linear-gradient(transparent, var(--black-card));
  z-index: 1;
}
.apd-program-body { padding: 20px 24px 24px; }
.apd-program-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.apd-program-body p { font-size: 0.85rem; color: var(--gray-400); line-height: 1.5; }
.apd-program-tag {
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px; margin-top: 12px;
}
.apd-program-tag.green { background: rgba(0,163,92,0.12); color: var(--green-light); }
.apd-program-tag.red { background: rgba(212,33,61,0.12); color: var(--red); }

/* Screen-reader only — SEO helper (treść dostępna dla wyszukiwarek i czytników ekranu, niewidoczna wizualnie). */
.apd-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== LOCATIONS ========== */
.apd-locations { background: var(--black); }
.apd-locations-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.apd-location-card {
  border-radius: var(--radius);
  transition: var(--transition);
  padding: 0;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1/1;
  display: block;
  border: 1px solid rgba(255,255,255,0.06);
  background: var(--black-card);
}
.apd-location-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.apd-location-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,107,63,0.30);
}
.apd-location-card:hover img {
  transform: scale(1.06);
}

/* ========== PRICING ========== */
.apd-pricing { background: var(--black-light); position: relative; }
.apd-pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px; max-width: 1180px; margin: 0 auto;
}
.apd-pricing-cards-zapisy { margin-top: 48px; }
.apd-pricing-card {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 40px 28px; text-align: center;
  transition: var(--transition); position: relative;
  display: flex; flex-direction: column;
  min-width: 0;
}
.apd-pricing-card.apd-featured {
  border-color: var(--green);
  background: linear-gradient(180deg, rgba(0,107,63,0.08) 0%, var(--black-card) 100%);
}
.apd-pricing-card.apd-featured::before {
  content: 'POPULARNE';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: var(--white);
  font-size: 0.7rem; font-weight: 700;
  padding: 4px 16px; border-radius: 100px; letter-spacing: 1px;
}
.apd-pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.apd-pricing-label {
  font-size: 0.85rem; font-weight: 600; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}
.apd-pricing-value {
  font-family: var(--font-display);
  font-size: 3.5rem; line-height: 1; margin-bottom: 4px;
  font-weight: 400;
}
.apd-pricing-value span { font-size: 1.5rem; color: var(--gray-400); }
.apd-pricing-period { font-size: 0.85rem; color: var(--gray-400); margin-bottom: 28px; }
.apd-pricing-features { list-style: none; text-align: left; margin-bottom: 32px; padding: 0; flex: 1; }
.apd-pricing-features li {
  padding: 8px 0 8px 24px;
  font-size: 0.9rem;
  color: var(--gray-300);
  line-height: 1.55;
  position: relative;
  min-width: 0;
  word-break: normal;
  overflow-wrap: break-word;
}
.apd-pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  background: var(--green-light);
  border-radius: 2px;
  flex-shrink: 0;
}
.apd-pricing-features li strong {
  color: var(--white);
  white-space: nowrap;
}
.apd-btn-pricing { width: 100%; justify-content: center; padding: 14px 28px; }
.apd-btn-green { background: var(--green); color: var(--white); }
.apd-btn-green:hover { background: var(--green-light); transform: translateY(-2px); }

/* ========== DEYNA SECTION ========== */
.apd-deyna-section { background: var(--black); position: relative; overflow: hidden; }
.apd-deyna-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.apd-deyna-visual { position: relative; }
.apd-deyna-visual img {
  width: 100%; border-radius: 20px;
  aspect-ratio: 3/4; object-fit: cover; object-position: top;
  position: relative; z-index: 1;
  border: 1px solid rgba(255,255,255,0.06);
}
.apd-deyna-number {
  font-family: var(--font-display);
  font-size: 18rem; line-height: 0.8;
  color: rgba(255,255,255,0.03);
  position: absolute; top: -40px; left: -20px; z-index: 0;
}
.apd-deyna-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1; margin-bottom: 24px;
  font-weight: 400;
}
.apd-deyna-content h2 .apd-green { color: var(--green-light); }
.apd-deyna-content p { color: var(--gray-300); font-size: 1.05rem; line-height: 1.8; margin-bottom: 16px; }
.apd-deyna-quote {
  border-left: 3px solid var(--green); padding: 16px 24px; margin: 28px 0;
  background: rgba(0,107,63,0.06); border-radius: 0 var(--radius) var(--radius) 0;
}
.apd-deyna-quote p { font-style: italic; color: var(--gray-200); font-size: 1.1rem; margin: 0; }

/* ========== NAJNOWSZE AKTUALNOŚCI (na home page) ========== */
.apd-news {
  background: linear-gradient(180deg, var(--black) 0%, var(--black-light) 100%);
}
.apd-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .apd-news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .apd-news-grid { grid-template-columns: 1fr; } }

.apd-news-card {
  display: flex;
  flex-direction: column;
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  color: inherit;
  position: relative;
}
.apd-news-card:hover {
  border-color: rgba(0,163,92,0.30);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  color: inherit;
}
.apd-news-card-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-dark), var(--black-light));
}
.apd-news-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.apd-news-card:hover .apd-news-card-img img { transform: scale(1.06); }
.apd-news-card-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  color: rgba(0,163,92,0.30);
}
.apd-news-card-cat {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--green);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 100px;
  box-shadow: 0 4px 14px rgba(0,107,63,0.4);
}
.apd-news-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.apd-news-card-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--gray-400);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.apd-news-card-date i { font-size: 0.85rem; color: var(--green-light); }
.apd-news-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.3px;
  line-height: 1.2;
  color: var(--white);
  margin: 0 0 10px;
}
.apd-news-card:hover .apd-news-card-title { color: var(--green-light); }
.apd-news-card-excerpt {
  color: var(--gray-400);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 14px;
  flex: 1;
}
.apd-news-card-cta {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green-light);
}
.apd-news-card-cta .arrow { display: inline-block; transition: var(--transition); margin-left: 4px; }
.apd-news-card:hover .apd-news-card-cta .arrow { transform: translateX(4px); }

/* ========== FOOTER PARTNER (ProTrainUp) ========== */
.apd-footer-partner {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 28px 0 24px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.apd-footer-partner-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gray-400);
}
.apd-footer-partner-link {
  display: inline-block;
  opacity: 0.72;
  transition: opacity 0.25s ease;
}
.apd-footer-partner-link:hover { opacity: 1; }
.apd-footer-partner-link img {
  height: 44px;
  width: auto;
  max-width: 280px;
  display: block;
}

/* ========== CTA BANNER ========== */
.apd-cta-banner {
  background: linear-gradient(135deg, var(--green-dark), var(--green) 50%, var(--green-dark) 100%);
  background-size: cover; background-position: center;
  padding: 80px 0; text-align: center; position: relative; overflow: hidden;
}
.apd-cta-banner::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05), transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0,0,0,0.2), transparent 50%);
}
.apd-cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1; margin-bottom: 16px; position: relative;
  font-weight: 400;
}
.apd-cta-banner p {
  font-size: 1.1rem; opacity: 0.9;
  margin: 0 auto 36px;
  max-width: 720px;
  position: relative;
  text-align: center;
}
.apd-cta-banner .apd-btn { position: relative; font-size: 1.1rem; padding: 18px 40px; color: var(--white); }
.apd-cta-banner .apd-btn:hover { color: var(--white); }

/* ========== FAQ ========== */
.apd-faq { background: var(--black); }
.apd-faq-grid {
  max-width: 800px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px;
}
.apd-faq-item {
  background: transparent;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

/* Cały button pytania - ZIELONY (lepsza widoczność) */
.apd-faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  background: var(--green);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  border: 1px solid rgba(0,163,92,0.6);
  border-radius: var(--radius);
  transition: var(--transition);
  gap: 16px;
  letter-spacing: -0.1px;
  box-shadow: 0 6px 20px rgba(0,107,63,0.25);
}
.apd-faq-question:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,163,92,0.4);
}
.apd-faq-item.apd-open .apd-faq-question {
  background: var(--green-dark);
  border-color: var(--green-dark);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 4px 14px rgba(0,77,44,0.4);
  transform: none;
}

/* Kółko z + — CZARNE z białym + (na zielonym tle wybija się jak akcent) */
.apd-faq-question .apd-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--black);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.apd-faq-question:hover .apd-icon {
  background: var(--black);
  transform: scale(1.08) rotate(90deg);
}
.apd-faq-item.apd-open .apd-faq-question .apd-icon {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--white);
  transform: rotate(45deg);
}

/* Odpowiedź — ciemna karta pod zielonym buttonem */
.apd-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: var(--black-card);
  border: 1px solid rgba(0,163,92,0.30);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}
.apd-faq-item.apd-open .apd-faq-answer {
  border-color: rgba(0,163,92,0.40);
}
.apd-faq-answer-inner {
  padding: 22px 26px;
  color: var(--gray-200);
  font-size: 0.95rem;
  line-height: 1.75;
}
.apd-faq-answer-inner a {
  color: var(--green-light);
  border-bottom: 1px solid rgba(0,163,92,0.4);
}
.apd-faq-answer-inner a:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}
.apd-faq-answer-inner strong { color: var(--white); }

/* ========== FOOTER ========== */
.apd-footer {
  background: var(--black-card);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 64px 0 0;
}
.apd-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.apd-footer-brand p { color: var(--gray-400); font-size: 0.9rem; line-height: 1.7; margin: 16px 0 24px; max-width: 300px; }
.apd-footer-socials { display: flex; gap: 12px; }
.apd-footer-socials a {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  color: var(--white);
  font-size: 1rem;
}
.apd-footer-socials a i { line-height: 1; }
.apd-footer-socials a:hover {
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,107,63,0.35);
}
.apd-footer h4 {
  font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px;
}
.apd-footer ul { list-style: none; padding: 0; margin: 0; }
.apd-footer ul li { margin-bottom: 10px; }
.apd-footer ul li a { font-size: 0.9rem; color: var(--gray-400); transition: var(--transition); }
.apd-footer ul li a:hover { color: var(--green-light); }
.apd-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0; display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: var(--gray-400); flex-wrap: wrap; gap: 12px;
}
.apd-footer-bottom a { color: var(--gray-400); transition: var(--transition); }
.apd-footer-bottom a:hover { color: var(--green-light); }

/* ========== GLOBAL NOTICE - informacja dla rodziców (poniżej hero) ========== */
.apd-notice-wrap {
  background: var(--black);
  padding: 48px 0 32px;
  position: relative;
  z-index: 3;
}
@media (max-width: 768px) {
  .apd-notice-wrap { padding: 32px 0 24px; }
}
.apd-notice {
  position: relative;
  background:
    linear-gradient(135deg, rgba(0,107,63,0.12) 0%, rgba(20,20,20,0.95) 60%, var(--black-card) 100%);
  border: 1px solid rgba(0,163,92,0.28);
  border-radius: var(--radius-lg);
  padding: 44px 48px 40px;
  color: var(--gray-100);
  font-size: 1rem;
  line-height: 1.78;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Lewy pionowy akcent - kolorowy gradient (zielony → czerwony) */
.apd-notice::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--green-light) 0%, var(--green) 50%, var(--red) 100%);
}

/* Glow w tle - subtelny zielony radial w prawym górnym rogu */
.apd-notice::after {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(0,163,92,0.14) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* Cała treść powyżej glow */
.apd-notice > * { position: relative; z-index: 1; }

/* "WAŻNE" badge w prawym górnym rogu */
.apd-notice-badge {
  position: absolute;
  top: 24px; right: 28px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--red);
  background: rgba(212,33,61,0.12);
  border: 1px solid rgba(212,33,61,0.32);
  padding: 7px 14px;
  border-radius: 100px;
  text-transform: uppercase;
  z-index: 2;
}
.apd-notice-badge::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(212,33,61,0.7);
  animation: apd-notice-pulse 2s ease-in-out infinite;
}
@keyframes apd-notice-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* Nagłówek - z zielonym akcentem-kropką */
.apd-notice h2, .apd-notice h3, .apd-notice h4 {
  color: var(--white);
  font-family: var(--font-display);
  letter-spacing: -0.5px;
  font-weight: 400;
  margin: 0 0 22px;
  padding-right: 260px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}
.apd-notice h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.apd-notice h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.apd-notice h4 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

.apd-notice h2::before,
.apd-notice h3::before,
.apd-notice h4::before {
  content: '';
  flex-shrink: 0;
  width: 12px; height: 12px;
  background: var(--green-light);
  border-radius: 50%;
  box-shadow:
    0 0 0 6px rgba(0,163,92,0.18),
    0 0 24px rgba(0,163,92,0.55);
  animation: apd-notice-dot 2.4s ease-in-out infinite;
}
@keyframes apd-notice-dot {
  0%, 100% { box-shadow: 0 0 0 6px rgba(0,163,92,0.18), 0 0 24px rgba(0,163,92,0.55); }
  50%      { box-shadow: 0 0 0 10px rgba(0,163,92,0.28), 0 0 32px rgba(0,163,92,0.8); }
}

.apd-notice p {
  color: var(--gray-200);
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.78;
}
.apd-notice p:last-child { margin-bottom: 0; }
.apd-notice strong, .apd-notice b {
  color: var(--white);
  font-weight: 700;
}
.apd-notice a {
  color: var(--green-light);
  font-weight: 600;
  border-bottom: 1px solid rgba(0,163,92,0.4);
  text-decoration: none;
  transition: var(--transition);
}
.apd-notice a:hover {
  color: var(--white);
  border-color: var(--white);
}
.apd-notice ul, .apd-notice ol {
  margin: 0 0 14px 0;
  padding: 0;
  list-style: none;
}
.apd-notice ul li, .apd-notice ol li {
  padding: 6px 0 6px 24px;
  position: relative;
  color: var(--gray-200);
}
.apd-notice ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 14px;
  width: 8px; height: 8px;
  background: var(--green-light);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .apd-notice { padding: 36px 24px 28px; }
  .apd-notice h2, .apd-notice h3, .apd-notice h4 {
    padding-right: 0;
    margin-bottom: 18px;
    font-size: 1.5rem;
  }
  .apd-notice h2::before,
  .apd-notice h3::before,
  .apd-notice h4::before { width: 10px; height: 10px; }
  .apd-notice-badge {
    position: static;
    margin-bottom: 18px;
    display: inline-flex;
  }
}

/* ========== SUB-PAGE HERO (krótki hero dla podstron) ========== */
.apd-subhero {
  position: relative;
  padding: 80px 0 60px;
  background: linear-gradient(135deg, var(--black) 0%, #0d1f15 50%, var(--black) 100%);
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.apd-subhero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(0,107,63,0.12), transparent);
}
.apd-subhero::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}
.apd-subhero > .apd-container { position: relative; z-index: 2; }
.apd-breadcrumbs {
  display: flex; gap: 8px; align-items: center;
  font-size: 0.82rem; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 18px;
}
.apd-breadcrumbs a { color: var(--green-light); transition: var(--transition); }
.apd-breadcrumbs a:hover { color: var(--white); }
.apd-breadcrumbs .sep { opacity: 0.5; }
.apd-subhero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -1px;
  margin: 0 0 14px;
  font-weight: 400;
}
.apd-subhero h1 .apd-green { color: var(--green-light); }
.apd-subhero h1 .apd-red { color: var(--red); }
.apd-subhero-lead {
  color: var(--gray-300);
  font-size: 1.1rem; line-height: 1.7;
  max-width: 720px;
}

/* ========== SUB-PAGE CONTENT ========== */
.apd-sub { background: var(--black); }
.apd-sub-section { padding: 72px 0; }
.apd-sub-section:nth-of-type(even) { background: var(--black-light); }
.apd-sub-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1.05;
  margin: 0 0 24px;
  font-weight: 400;
}
.apd-sub-section h2 .apd-green { color: var(--green-light); }
.apd-sub-section h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: var(--white);
  letter-spacing: -0.3px;
  margin: 24px 0 14px;
  font-weight: 400;
}
.apd-sub-section h4 {
  font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--green-light);
  margin: 20px 0 10px;
}
.apd-sub-section p { color: var(--gray-200); font-size: 1.05rem; line-height: 1.8; margin: 0 0 16px; max-width: 860px; }
.apd-sub-section p:last-child { margin-bottom: 0; }
.apd-sub-section strong { color: var(--white); }
.apd-sub-section a { color: var(--green-light); border-bottom: 1px solid rgba(0,163,92,0.4); transition: var(--transition); }
.apd-sub-section a:hover { color: var(--white); border-color: var(--white); }
.apd-sub-section ul, .apd-sub-section ol { color: var(--gray-200); margin: 0 0 16px 0; padding-left: 24px; max-width: 860px; }
.apd-sub-section ul { list-style: none; padding-left: 0; }
.apd-sub-section ul li { padding: 6px 0; padding-left: 24px; position: relative; line-height: 1.7; }
.apd-sub-section ul li::before {
  content: '';
  position: absolute; left: 0; top: 14px;
  width: 8px; height: 8px;
  background: var(--green-light); border-radius: 2px;
}
.apd-sub-section ol li { padding: 6px 0; line-height: 1.7; color: var(--gray-200); }
.apd-sub-section blockquote {
  border-left: 3px solid var(--green);
  padding: 14px 22px; margin: 24px 0;
  background: rgba(0,107,63,0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--gray-200);
  max-width: 860px;
}

/* ========== CARD GRID (lokalizacje, projekty na listach) ========== */
.apd-card-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
.apd-card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.apd-card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .apd-card-grid, .apd-card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .apd-card-grid, .apd-card-grid.cols-2, .apd-card-grid.cols-4 { grid-template-columns: 1fr; } }

.apd-card {
  display: flex; flex-direction: column;
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  color: var(--white);
}
.apd-card:hover {
  border-color: rgba(0,163,92,0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.apd-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--green-dark), var(--black-light));
}
.apd-card-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.apd-card:hover .apd-card-img img { transform: scale(1.04); }
.apd-card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.apd-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.3px;
  margin: 0 0 8px;
}
.apd-card-body p { color: var(--gray-400); font-size: 0.95rem; line-height: 1.6; margin: 0; flex: 1; }
.apd-card-tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--green-light);
}
.apd-card-tag .arrow { display: inline-block; transition: var(--transition); }
.apd-card:hover .apd-card-tag .arrow { transform: translateX(4px); }

/* ========== SCHEDULE (harmonogram lokalizacji) ========== */
.apd-schedules { display: flex; flex-direction: column; gap: 20px; max-width: 920px; }
.apd-schedule {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  transition: var(--transition);
}
.apd-schedule:hover { border-color: rgba(0,163,92,0.18); }
.apd-schedule-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.3px;
  margin: 0 0 6px;
  font-weight: 400;
  color: var(--white);
}
.apd-schedule-meta {
  color: var(--green-light);
  font-size: 0.92rem; font-weight: 600;
  margin-bottom: 4px;
}
.apd-schedule-loc {
  color: var(--gray-400); font-size: 0.88rem;
  margin-bottom: 20px;
}
.apd-schedule-block { padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.06); margin-top: 18px; }
.apd-schedule-block:first-of-type { padding-top: 0; border-top: none; margin-top: 0; }
.apd-schedule-block h5 {
  font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--gray-300);
  margin: 0 0 12px;
}
.apd-schedule-list { list-style: none; padding: 0; margin: 0; }
.apd-schedule-list li {
  padding: 7px 0; padding-left: 22px;
  color: var(--gray-200); font-size: 0.95rem;
  position: relative; line-height: 1.6;
}
.apd-schedule-list li::before {
  content: '';
  position: absolute; left: 0; top: 14px;
  width: 6px; height: 6px;
  background: var(--green-light); border-radius: 50%;
}

/* ========== CONTACT INFO ========== */
.apd-contact-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (max-width: 768px) { .apd-contact-grid { grid-template-columns: 1fr; } }
.apd-contact-card {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.apd-contact-row { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.apd-contact-row:last-child { border-bottom: none; }
.apd-contact-label { color: var(--gray-400); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 4px; }
.apd-contact-value { color: var(--white); font-size: 1.05rem; font-weight: 500; }
.apd-contact-value a { color: var(--white); border: none; }
.apd-contact-value a:hover { color: var(--green-light); }
.apd-contact-value.apd-mono { font-family: 'Courier New', monospace; font-size: 0.92rem; word-break: break-all; }

/* ========== CONTACT PAGE — split layout (info + form obok siebie) ========== */
.apd-contact-main { position: relative; }
.apd-contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .apd-contact-layout { grid-template-columns: 1fr; gap: 28px; }
}

/* === LEWA KOLUMNA: bloki kontaktowe === */
.apd-contact-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 96px;
}
@media (max-width: 900px) { .apd-contact-side { position: static; } }

.apd-contact-block {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 22px 24px;
  position: relative;
  transition: var(--transition);
}
.apd-contact-block:hover {
  border-color: rgba(0,163,92,0.25);
  transform: translateY(-2px);
}
.apd-contact-block-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,163,92,0.12);
  color: var(--green-light);
  font-size: 1rem;
  margin-bottom: 14px;
}
.apd-contact-block-icon.apd-icon-red {
  background: rgba(212,33,61,0.12);
  color: var(--red);
}
.apd-contact-block-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 6px;
}
.apd-contact-block-value {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.55;
}
.apd-contact-block-value a {
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.apd-contact-block-value a:hover {
  color: var(--green-light);
  border-bottom-color: var(--green-light);
}
.apd-contact-block-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--gray-400);
}

.apd-contact-block-bank {
  background: linear-gradient(135deg, rgba(0,107,63,0.12), var(--black-card) 70%);
  border-color: rgba(0,163,92,0.20);
}
.apd-contact-block-iban {
  font-family: 'Courier New', monospace;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--green-light);
  margin: 4px 0 12px;
  word-break: break-all;
}
.apd-contact-block-meta {
  font-size: 0.78rem;
  color: var(--gray-400);
  letter-spacing: 0.5px;
}

/* === PRAWA KOLUMNA: form wrapper === */
.apd-contact-form-wrap {
  background:
    linear-gradient(135deg, rgba(0,107,63,0.10) 0%, var(--black-card) 60%);
  border: 1px solid rgba(0,163,92,0.18);
  border-radius: var(--radius-lg);
  padding: 40px 44px 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.apd-contact-form-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; bottom: 0;
  background: linear-gradient(180deg, var(--green-light) 0%, var(--green) 50%, var(--red) 100%);
}
.apd-contact-form-wrap::after {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(0,163,92,0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.apd-contact-form-wrap > * { position: relative; z-index: 1; }

.apd-contact-form-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.apd-contact-form-header .apd-section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 10px;
}
.apd-contact-form-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.5px;
  color: var(--white);
  margin: 0 0 12px;
  line-height: 1.05;
}
.apd-contact-form-header p {
  color: var(--gray-300);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
  max-width: 580px;
}

.apd-contact-form {
  max-width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  position: relative;
  overflow: visible;
}
.apd-contact-form::before { display: none; }
.apd-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.apd-form-grid > .apd-form-row { margin-bottom: 0; }

.apd-form-row {
  margin-bottom: 22px;
  position: relative;
}
.apd-form-row label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-200);
  margin-bottom: 8px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.apd-form-row label .apd-req {
  color: var(--red);
  margin-left: 2px;
}

.apd-form-row input[type="text"],
.apd-form-row input[type="tel"],
.apd-form-row input[type="email"],
.apd-form-row textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font-main);
  line-height: 1.5;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.apd-form-row textarea {
  resize: vertical;
  min-height: 160px;
}
.apd-form-row input::placeholder,
.apd-form-row textarea::placeholder {
  color: rgba(255,255,255,0.32);
}
.apd-form-row input:hover,
.apd-form-row textarea:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
}
.apd-form-row input:focus,
.apd-form-row textarea:focus {
  outline: none;
  border-color: var(--green-light);
  background: rgba(0,163,92,0.04);
  box-shadow: 0 0 0 4px rgba(0,163,92,0.12);
}
.apd-form-row input:invalid:not(:placeholder-shown),
.apd-form-row textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(212,33,61,0.5);
}

/* Honeypot — niewidoczne pole-pułapka na boty, schowane też przed screen readerami. */
.apd-form-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.apd-form-recaptcha {
  display: flex;
  justify-content: flex-start;
  margin-top: 8px;
  margin-bottom: 24px;
}
.apd-form-recaptcha .g-recaptcha {
  transform-origin: 0 0;
}

.apd-form-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 20px;
  align-items: center;
  justify-content: space-between;
}
.apd-form-actions .apd-form-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-400);
  font-size: 0.82rem;
  line-height: 1.4;
  max-width: 280px;
}
.apd-form-actions .apd-form-note i {
  color: var(--green-light);
  font-size: 0.95rem;
}
.apd-form-actions .apd-form-submit {
  min-width: 220px;
  justify-content: center;
  color: var(--white);
  border-bottom: none;
}
.apd-form-actions .apd-form-submit:hover { color: var(--white); border-bottom: none; }
.apd-form-actions .apd-form-submit:disabled,
.apd-form-actions .apd-form-submit.is-loading {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 4px 20px rgba(212,33,61,0.2);
}
.apd-form-actions .apd-form-submit.is-loading i.fa-paper-plane {
  animation: apd-plane 1.4s ease-in-out infinite;
}
@keyframes apd-plane {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

.apd-form-status {
  display: none;
  margin-top: 22px;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  align-items: center;
  gap: 12px;
  line-height: 1.5;
}
.apd-form-status i { font-size: 1.4rem; flex-shrink: 0; }
.apd-form-status.is-success {
  display: flex;
  background: rgba(0,163,92,0.10);
  border: 1px solid rgba(0,163,92,0.30);
  color: var(--green-light);
}
.apd-form-status.is-error {
  display: flex;
  background: rgba(212,33,61,0.10);
  border: 1px solid rgba(212,33,61,0.32);
  color: #ff8fa4;
}

@media (max-width: 768px) {
  .apd-contact-form-wrap { padding: 28px 22px 24px; }
  .apd-contact-form { padding: 0; }
  .apd-form-grid { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
  .apd-form-grid > .apd-form-row { margin-bottom: 22px; }
  .apd-form-actions { flex-direction: column; align-items: stretch; }
  .apd-form-actions .apd-form-submit { width: 100%; }
  .apd-form-actions .apd-form-note { max-width: 100%; }
}
@media (max-width: 380px) {
  /* Skala reCAPTCHA na bardzo małych ekranach żeby zmieściła się 304px width. */
  .apd-form-recaptcha .g-recaptcha { transform: scale(0.9); }
}

/* ========== CONTACT — sekcja telefonów (4 cards) ========== */
.apd-contact-phones {
  background: linear-gradient(180deg, var(--black) 0%, var(--black-light) 100%);
  position: relative;
}
.apd-phone-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .apd-phone-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .apd-phone-grid { grid-template-columns: 1fr; } }

.apd-phone-card {
  display: flex;
  flex-direction: column;
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  align-items: center;
  transition: var(--transition);
  color: var(--white);
}
.apd-phone-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,107,63,0.20);
  color: var(--white);
}
.apd-phone-card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,163,92,0.12);
  color: var(--green-light);
  font-size: 1.2rem;
  margin-bottom: 16px;
  transition: var(--transition);
}
.apd-phone-card:hover .apd-phone-card-icon {
  background: var(--green);
  color: var(--white);
  transform: scale(1.05);
}
.apd-phone-card-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 6px;
}
.apd-phone-card-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.5px;
  color: var(--white);
}

/* ========== INLINE CTA (na podstronach) ========== */
.apd-cta-inline {
  background: linear-gradient(135deg, var(--green-dark), var(--green) 50%, var(--green-dark) 100%);
  padding: 48px 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 48px 0;
  position: relative;
  overflow: hidden;
}
.apd-cta-inline::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.06), transparent 50%);
}
.apd-cta-inline > * { position: relative; }
.apd-cta-inline h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  margin: 0 0 10px;
  color: var(--white);
}
.apd-cta-inline p {
  color: rgba(255,255,255,0.92);
  margin: 0 auto 22px;
  font-size: 1rem;
  max-width: 720px;
  text-align: center;
}
/* Override .apd-sub-section a (zielone linki) - przyciski w CTA muszą zachować swoje białe kolory. */
.apd-cta-inline a.apd-btn,
.apd-sub-section .apd-cta-inline a.apd-btn { border-bottom: none; }
.apd-sub-section .apd-btn-primary,
.apd-cta-inline .apd-btn-primary { color: var(--white); border-bottom: none; }
.apd-sub-section .apd-btn-primary:hover,
.apd-cta-inline .apd-btn-primary:hover { color: var(--white); border-bottom: none; }
.apd-sub-section .apd-btn-green,
.apd-cta-inline .apd-btn-green { color: var(--white); border-bottom: none; }
.apd-sub-section .apd-btn-green:hover,
.apd-cta-inline .apd-btn-green:hover { color: var(--white); border-bottom: none; }
.apd-sub-section .apd-btn-secondary,
.apd-cta-inline .apd-btn-secondary { color: var(--white); border-bottom: none; }
.apd-sub-section .apd-btn-secondary:hover,
.apd-cta-inline .apd-btn-secondary:hover { color: var(--white); border-bottom: none; }

/* ========== PROJECT DETAIL feature image (na dole) ========== */
.apd-project-feature {
  padding: 40px 0 72px;
  background: var(--black);
}
.apd-project-feature-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  background: var(--black-card);
}
.apd-project-feature-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.4) 100%);
  z-index: 1;
  pointer-events: none;
}
.apd-project-feature-img {
  width: 100%;
  height: auto;
  max-height: 640px;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (max-width: 768px) {
  .apd-project-feature { padding: 24px 0 56px; }
  .apd-project-feature-img { max-height: 380px; }
}

/* ========== KAZIMIERZ DEYNA bio layout ========== */
.apd-deyna-hero { padding: 80px 0 40px; }
.apd-deyna-hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px; align-items: center;
}
@media (max-width: 900px) { .apd-deyna-hero-grid { grid-template-columns: 1fr; } }
.apd-deyna-hero-grid img {
  width: 100%; aspect-ratio: 3/4;
  object-fit: cover; object-position: top;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.06);
}
.apd-deyna-hero-grid .apd-deyna-portrait { position: relative; }
.apd-deyna-hero-grid .apd-deyna-portrait::after {
  content: '10';
  font-family: var(--font-display);
  position: absolute;
  bottom: -20px; right: -20px;
  font-size: 8rem;
  color: var(--green-light);
  opacity: 0.85;
  line-height: 1;
}
.apd-bio-achievements {
  list-style: none !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  max-width: 900px;
}
@media (max-width: 768px) { .apd-bio-achievements { grid-template-columns: 1fr; } }
.apd-bio-achievements li {
  padding: 12px 16px !important;
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  color: var(--gray-200);
  font-size: 0.92rem;
  line-height: 1.5;
}
.apd-bio-achievements li::before {
  content: '\1F3C6' !important;
  position: static !important;
  background: none !important;
  width: auto !important; height: auto !important;
  margin-right: 8px;
}

/* ========== KADRA TRENERSKA - coach grid ========== */
.apd-coaches-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 768px) {
  .apd-coaches-grid { grid-template-columns: 1fr; }
}
.apd-coach-card {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 32px 32px 28px;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}
.apd-coach-card:hover {
  border-color: rgba(0,163,92,0.25);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.apd-coach-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  opacity: 0; transition: var(--transition);
}
.apd-coach-card:hover::before { opacity: 1; }
.apd-coach-num {
  position: absolute;
  top: 16px; right: 24px;
  font-family: var(--font-display);
  font-size: 3rem;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
}
.apd-coach-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.3px;
  margin: 0 0 4px;
  color: var(--white);
}
.apd-coach-license {
  display: inline-block;
  background: rgba(0,163,92,0.12);
  color: var(--green-light);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.apd-coach-bio {
  color: var(--gray-300);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* ========== PAYMENT / FEE TABLE (waZne) ========== */
.apd-payment-table {
  width: 100%; max-width: 860px;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--black-card);
  border-radius: var(--radius);
  overflow: hidden;
}
.apd-payment-table th, .apd-payment-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.apd-payment-table th {
  background: rgba(0,107,63,0.12);
  color: var(--green-light);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  font-weight: 700;
}

/* ========== COOKIE CONSENT BANNER (Google Consent Mode v2) =====
   UWAGA: banner jest renderowany w wp_footer — czyli POZA .apd-wrapper.
   Musi mieć własny reset (box-sizing), bo nie dziedziczy go z motywu.
   font-family ustawiamy TYLKO na rodzicu — dzieci dziedziczą, a Font Awesome
   ikony zachowują swoje "Font Awesome 6 Free" w pseudo-elementach. */
.apd-cookies,
.apd-cookies *,
.apd-cookies *::before,
.apd-cookies *::after {
  box-sizing: border-box;
}
.apd-cookies {
  font-family: 'Inter', var(--font-main), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.apd-cookies {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 99999;
  max-width: 1120px;
  margin: 0 auto;
  /* Wyraźnie jaśniejsze tło żeby odcinać się od czarnej strony */
  background:
    linear-gradient(135deg, #1d1d1d 0%, #161616 60%, #1a1a1a 100%);
  border: 1px solid rgba(0,163,92,0.45);
  border-radius: 20px;
  padding: 28px 32px;
  color: var(--white);
  font-size: 0.92rem;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  /* Wielowarstwowy cień + zielona poświata + jasny inset = banner "świeci" */
  box-shadow:
    0 30px 80px rgba(0,0,0,0.7),
    0 0 80px rgba(0,163,92,0.22),
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 0 0 1px rgba(255,255,255,0.03);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}
.apd-cookies.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.apd-cookies.is-leaving {
  opacity: 0;
  transform: translateY(24px) scale(0.97);
}

/* Górny gradient akcent jak w innych kartach motywu */
.apd-cookies::before {
  content: '';
  position: absolute;
  top: -1px; left: 32px; right: 32px;
  height: 3px;
  background: linear-gradient(90deg, var(--green-light) 0%, var(--green) 40%, var(--red) 100%);
  border-radius: 0 0 3px 3px;
  box-shadow: 0 0 24px rgba(0,163,92,0.5);
}

/* Subtelny radial glow za bannerem */
.apd-cookies::after {
  content: '';
  position: absolute;
  top: -40%; left: 10%;
  width: 50%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(0,163,92,0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.apd-cookies > * { position: relative; z-index: 1; }

.apd-cookies-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
@media (max-width: 900px) {
  .apd-cookies {
    bottom: 12px; left: 12px; right: 12px;
    padding: 22px 22px 20px;
  }
  .apd-cookies-inner { grid-template-columns: auto 1fr; gap: 16px 18px; }
  .apd-cookies-actions { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .apd-cookies-inner { grid-template-columns: 1fr; }
}

.apd-cookies-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(0,163,92,0.30) 0%, rgba(0,107,63,0.18) 100%);
  border: 1px solid rgba(0,163,92,0.40);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  color: var(--green-light);
  flex-shrink: 0;
  box-shadow:
    0 8px 24px rgba(0,107,63,0.30),
    inset 0 1px 0 rgba(255,255,255,0.10);
  animation: apd-cookie-pulse 3s ease-in-out infinite;
}
@keyframes apd-cookie-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(0,107,63,0.30), inset 0 1px 0 rgba(255,255,255,0.10); }
  50%      { box-shadow: 0 8px 32px rgba(0,163,92,0.50), inset 0 1px 0 rgba(255,255,255,0.10); }
}
@media (max-width: 540px) {
  .apd-cookies-icon { width: 52px; height: 52px; font-size: 1.35rem; }
}

.apd-cookies-text { min-width: 0; }
.apd-cookies .apd-cookies-title {
  font-family: 'Bebas Neue', var(--font-display), 'Impact', sans-serif;
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: -0.3px;
  color: var(--white);
  margin: 0 0 8px;
  padding: 0;
  line-height: 1.15;
}
@media (max-width: 540px) { .apd-cookies-title { font-size: 1.35rem; } }

.apd-cookies-message {
  color: var(--gray-200);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
}
.apd-cookies-message p { margin: 0 0 6px; }
.apd-cookies-message p:last-child { margin-bottom: 0; }
.apd-cookies-message strong { color: var(--white); }
.apd-cookies-message a {
  color: var(--green-light);
  border-bottom: 1px solid rgba(0,163,92,0.4);
  transition: var(--transition);
}
.apd-cookies-message a:hover { color: var(--white); border-bottom-color: var(--white); }

.apd-cookies-policy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--green-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,163,92,0.35);
  transition: var(--transition);
  padding-bottom: 1px;
}
.apd-cookies-policy:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

.apd-cookies-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-items: center;
}
@media (max-width: 900px) {
  .apd-cookies-actions { flex-wrap: wrap; }
}
@media (max-width: 540px) {
  .apd-cookies-actions { flex-direction: column; width: 100%; align-items: stretch; }
}

.apd-cookies .apd-cookies-btn,
.apd-consent-modal .apd-cookies-btn {
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: 'Inter', var(--font-main), -apple-system, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.1px;
  line-height: 1;
  text-decoration: none;
}
.apd-cookies .apd-cookies-btn-accept,
.apd-consent-modal .apd-cookies-btn-accept {
  background: #006B3F;
  background-image: linear-gradient(135deg, #006B3F 0%, #00A35C 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(0,107,63,0.45);
  min-width: 180px;
  border-color: rgba(0,163,92,0.6);
}
.apd-cookies .apd-cookies-btn-accept:hover,
.apd-consent-modal .apd-cookies-btn-accept:hover {
  background-image: linear-gradient(135deg, #00A35C 0%, #00A35C 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,163,92,0.55);
  color: #FFFFFF;
}
.apd-cookies .apd-cookies-btn-decline,
.apd-consent-modal .apd-cookies-btn-decline {
  background: rgba(255,255,255,0.05);
  color: #E5E5E5;
  border-color: rgba(255,255,255,0.12);
}
.apd-cookies .apd-cookies-btn-decline:hover,
.apd-consent-modal .apd-cookies-btn-decline:hover {
  background: rgba(255,255,255,0.10);
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.22);
}
.apd-cookies .apd-cookies-btn-customize {
  background: transparent;
  color: #C4C4C4;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 14px 12px;
}
.apd-cookies .apd-cookies-btn-customize:hover {
  color: #FFFFFF;
}
.apd-consent-modal .apd-cookies-btn-save {
  background: rgba(0,163,92,0.14);
  color: #00A35C;
  border-color: rgba(0,163,92,0.40);
}
.apd-consent-modal .apd-cookies-btn-save:hover {
  background: rgba(0,163,92,0.22);
  color: #FFFFFF;
  border-color: rgba(0,163,92,0.60);
}
@media (max-width: 540px) {
  .apd-cookies-btn { width: 100%; padding: 14px 22px; }
}

/* ========== CONSENT MODAL — granular consent (CMv2) ========== */
.apd-consent-modal,
.apd-consent-modal *,
.apd-consent-modal *::before,
.apd-consent-modal *::after {
  box-sizing: border-box;
}
.apd-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: 'Inter', var(--font-main), -apple-system, sans-serif;
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.apd-consent-modal.is-visible {
  opacity: 1;
  visibility: visible;
}
.apd-consent-modal[hidden] { display: none; }

.apd-consent-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.apd-consent-modal-card {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(135deg, #1d1d1d 0%, #161616 100%);
  border: 1px solid rgba(0,163,92,0.40);
  border-radius: 22px;
  padding: 36px 36px 28px;
  box-shadow:
    0 50px 120px rgba(0,0,0,0.7),
    0 0 100px rgba(0,163,92,0.18),
    inset 0 1px 0 rgba(255,255,255,0.06);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.apd-consent-modal.is-visible .apd-consent-modal-card {
  transform: translateY(0) scale(1);
}
.apd-consent-modal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 32px; right: 32px;
  height: 3px;
  background: linear-gradient(90deg, #00A35C 0%, #006B3F 40%, #D4213D 100%);
  border-radius: 0 0 3px 3px;
}

.apd-consent-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: #C4C4C4;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
}
.apd-consent-modal-close:hover {
  background: rgba(255,255,255,0.12);
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.18);
}

.apd-consent-modal-header { margin-bottom: 24px; padding-right: 40px; }
.apd-consent-modal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #00A35C;
  margin-bottom: 12px;
  padding: 6px 12px;
  background: rgba(0,163,92,0.10);
  border: 1px solid rgba(0,163,92,0.25);
  border-radius: 100px;
}
.apd-consent-modal-header h2 {
  font-family: 'Bebas Neue', var(--font-display), 'Impact', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: #FFFFFF;
  margin: 0 0 10px;
  line-height: 1.1;
}
.apd-consent-modal-header p {
  color: #C4C4C4;
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

.apd-consent-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.apd-consent-category {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.apd-consent-category:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(0,163,92,0.20);
}
.apd-consent-category.is-required { cursor: default; }
.apd-consent-category.is-required:hover { border-color: rgba(255,255,255,0.06); }

.apd-consent-category-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,163,92,0.12);
  border: 1px solid rgba(0,163,92,0.25);
  border-radius: 11px;
  color: #00A35C;
  font-size: 1rem;
  flex-shrink: 0;
}

.apd-consent-category-body { min-width: 0; }
.apd-consent-category-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.apd-consent-category-title {
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.apd-consent-category-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #00A35C;
  background: rgba(0,163,92,0.10);
  border: 1px solid rgba(0,163,92,0.25);
  padding: 3px 8px;
  border-radius: 100px;
}
.apd-consent-category-desc {
  color: #C4C4C4;
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 8px;
}
.apd-consent-category-tags {
  display: inline-block;
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  color: #8A8A8A;
  letter-spacing: 0.3px;
  padding: 4px 8px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
}

/* Toggle switch */
.apd-consent-toggle {
  position: relative;
  flex-shrink: 0;
  align-self: center;
}
.apd-consent-toggle input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}
.apd-consent-toggle input:disabled { cursor: not-allowed; }
.apd-consent-toggle-track {
  display: block;
  width: 48px;
  height: 26px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  position: relative;
  transition: background 0.25s, border-color 0.25s;
}
.apd-consent-toggle-thumb {
  position: absolute;
  top: 50%;
  left: 2px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: #FFFFFF;
  border-radius: 50%;
  transition: left 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.apd-consent-toggle input:checked ~ .apd-consent-toggle-track {
  background: #006B3F;
  border-color: #00A35C;
}
.apd-consent-toggle input:checked ~ .apd-consent-toggle-track .apd-consent-toggle-thumb {
  left: 24px;
  background: #FFFFFF;
}
.apd-consent-toggle input:disabled ~ .apd-consent-toggle-track {
  opacity: 0.55;
}

.apd-consent-modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
  margin-top: 4px;
}
.apd-consent-modal-footer .apd-cookies-btn { flex: 0 0 auto; }

@media (max-width: 600px) {
  .apd-consent-modal-card {
    padding: 28px 22px 22px;
    border-radius: 18px;
  }
  .apd-consent-modal-header h2 { font-size: 1.6rem; }
  .apd-consent-category {
    padding: 16px;
    grid-template-columns: 40px 1fr;
    grid-template-areas:
      "icon body"
      "icon toggle";
  }
  .apd-consent-category-icon { grid-area: icon; }
  .apd-consent-category-body { grid-area: body; }
  .apd-consent-toggle {
    grid-area: toggle;
    justify-self: start;
    margin-top: 8px;
  }
  .apd-consent-modal-footer { flex-direction: column; }
  .apd-consent-modal-footer .apd-cookies-btn { width: 100%; }
}

/* ========== SINGLE POST (wpis bloga / aktualności) ========== */
.apd-post-hero .apd-breadcrumbs { margin-bottom: 14px; }
.apd-post-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
  text-decoration: none;
  transition: var(--transition);
}
.apd-post-cat:hover { background: var(--green-light); color: var(--white); }
.apd-post-meta-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px;
  color: var(--gray-400);
  font-size: 0.88rem;
}
.apd-post-meta-hero i {
  margin-right: 6px;
  color: var(--green-light);
}

/* Cover image — szeroki banner ze zdjęciem wyróżniającym */
.apd-single-cover {
  background: var(--black);
  padding: 0;
  margin-top: -1px;
}
.apd-single-cover-wrap {
  margin-top: -80px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  position: relative;
  z-index: 2;
}
.apd-single-cover-wrap img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .apd-single-cover-wrap { margin-top: -40px; }
  .apd-single-cover-wrap img { max-height: 320px; }
}

/* Content */
.apd-single .apd-single-content {
  max-width: 820px;
  margin: 0 auto;
  color: var(--gray-200);
  font-size: 1.05rem;
  line-height: 1.85;
}
.apd-single-content > * { margin-bottom: 22px; }
.apd-single-content h2,
.apd-single-content h3,
.apd-single-content h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.3px;
  color: var(--white);
  margin: 36px 0 16px;
}
.apd-single-content h2 { font-size: 2rem; }
.apd-single-content h3 { font-size: 1.6rem; color: var(--green-light); }
.apd-single-content h4 { font-size: 1.3rem; }
.apd-single-content p { margin: 0 0 22px; }
.apd-single-content a {
  color: var(--green-light);
  border-bottom: 1px solid rgba(0,163,92,0.4);
  transition: var(--transition);
}
.apd-single-content a:hover { color: var(--white); border-bottom-color: var(--white); }
.apd-single-content strong, .apd-single-content b { color: var(--white); font-weight: 700; }
.apd-single-content blockquote {
  border-left: 4px solid var(--green);
  padding: 20px 28px;
  margin: 32px 0;
  background: rgba(0,107,63,0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--gray-100);
  font-size: 1.1rem;
}
.apd-single-content ul, .apd-single-content ol {
  margin: 0 0 22px 0;
  padding-left: 0;
  list-style: none;
}
.apd-single-content ul li, .apd-single-content ol li {
  position: relative;
  padding: 6px 0 6px 28px;
  line-height: 1.7;
}
.apd-single-content ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 16px;
  width: 8px; height: 8px;
  background: var(--green-light);
  border-radius: 2px;
}
.apd-single-content ol { counter-reset: apd-ol; }
.apd-single-content ol li::before {
  content: counter(apd-ol);
  counter-increment: apd-ol;
  position: absolute;
  left: 0; top: 5px;
  width: 22px; height: 22px;
  background: rgba(0,163,92,0.15);
  color: var(--green-light);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.apd-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 24px 0;
}
.apd-single-content figure {
  margin: 24px 0;
}
.apd-single-content figcaption {
  font-size: 0.85rem;
  color: var(--gray-400);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}
.apd-single-content pre, .apd-single-content code {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  font-family: 'Courier New', monospace;
  font-size: 0.92rem;
}
.apd-single-content code { padding: 2px 6px; }
.apd-single-content pre { padding: 16px 20px; overflow-x: auto; }

/* Tags */
.apd-single-tags {
  max-width: 820px;
  margin: 40px auto 0;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.apd-single-tags-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-right: 8px;
}
.apd-single-tags-label i { color: var(--green-light); margin-right: 4px; }
.apd-single-tag {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--gray-200);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}
.apd-single-tag:hover {
  background: rgba(0,163,92,0.12);
  border-color: rgba(0,163,92,0.3);
  color: var(--green-light);
}

/* Share buttons */
.apd-single-share {
  max-width: 820px;
  margin: 20px auto 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.apd-single-share-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-400);
}
.apd-single-share-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}
.apd-single-share-btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}

/* Nawigacja prev/next */
.apd-single-nav {
  max-width: 820px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.apd-single-nav-link {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: var(--transition);
}
.apd-single-nav-link:hover {
  border-color: rgba(0,163,92,0.3);
  background: rgba(0,107,63,0.06);
}
.apd-single-nav-next { text-align: right; }
.apd-single-nav-dir {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green-light);
}
.apd-single-nav-title {
  font-size: 1rem;
  color: var(--white);
  font-weight: 600;
  line-height: 1.35;
}
@media (max-width: 600px) {
  .apd-single-nav { grid-template-columns: 1fr; }
  .apd-single-nav-next { text-align: left; }
}

.apd-single-related h2 {
  text-align: center;
  margin-bottom: 32px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.5px;
}

/* ========== GENERIC PAGE / POST ========== */
.apd-page {
  padding: 100px 0 80px;
  background: var(--black);
  min-height: 60vh;
}
.apd-page-header { margin-bottom: 40px; }
.apd-page h1 { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; margin-bottom: 12px; font-weight: 400; }
.apd-page h2 { font-family: var(--font-display); font-size: 2rem; margin: 32px 0 16px; font-weight: 400; }
.apd-page h3 { font-size: 1.4rem; margin: 24px 0 12px; }
.apd-page-content { max-width: 820px; color: var(--gray-200); line-height: 1.8; }
.apd-page-content p { margin-bottom: 18px; }
.apd-page-content a { color: var(--green-light); border-bottom: 1px solid rgba(0,163,92,0.4); }
.apd-page-content a:hover { color: var(--white); border-color: var(--white); }
.apd-page-content ul, .apd-page-content ol { margin: 0 0 18px 24px; }
.apd-page-content ul li, .apd-page-content ol li { margin-bottom: 8px; }
.apd-page-content blockquote {
  border-left: 3px solid var(--green); padding: 16px 24px; margin: 24px 0;
  background: rgba(0,107,63,0.06); border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--gray-200);
}
.apd-page-content img { border-radius: var(--radius); margin: 16px 0; }

.apd-post-meta {
  color: var(--gray-400); font-size: 0.85rem; margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 1px;
}
.apd-post-list { display: grid; gap: 32px; max-width: 820px; }
.apd-post-card {
  background: var(--black-card); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg); padding: 32px;
  transition: var(--transition);
}
.apd-post-card:hover { border-color: rgba(0,163,92,0.25); transform: translateY(-2px); }
.apd-post-card h2 { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.8rem; }
.apd-post-card h2 a { color: var(--white); }
.apd-post-card h2 a:hover { color: var(--green-light); }
.apd-post-excerpt { color: var(--gray-300); margin: 12px 0; }
.apd-readmore { color: var(--green-light); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

.apd-404 { text-align: center; padding: 120px 0; }
.apd-404 h1 { font-size: clamp(5rem, 12vw, 9rem); font-family: var(--font-display); color: var(--green-light); }
.apd-404 p { color: var(--gray-300); margin: 16px 0 32px; }

.apd-pagination {
  display: flex; gap: 8px; justify-content: center; margin-top: 48px;
}
.apd-pagination a, .apd-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 8px; background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--gray-300); font-size: 0.9rem; font-weight: 600;
  transition: var(--transition);
}
.apd-pagination a:hover { background: var(--green); color: var(--white); border-color: var(--green); }
.apd-pagination .current { background: var(--green); color: var(--white); border-color: var(--green); }

.apd-search-form {
  display: flex; gap: 8px; max-width: 480px; margin: 0 0 32px;
}
.apd-search-form input[type="search"] {
  flex: 1; padding: 12px 16px;
  background: var(--black-card); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); color: var(--white); font-size: 0.95rem;
}
.apd-search-form input[type="search"]:focus { outline: none; border-color: var(--green-light); }
.apd-search-form button {
  padding: 12px 20px; background: var(--green); color: var(--white);
  border-radius: var(--radius); font-weight: 600;
}
.apd-search-form button:hover { background: var(--green-light); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1180px) {
  .apd-nav-links { display: none; }
  .apd-hamburger { display: flex; }
}
@media (max-width: 1024px) {
  .apd-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .apd-hero-visual { max-width: 440px; margin: 0 auto; }
  .apd-hero-content { max-width: 100%; }
  .apd-features-grid { grid-template-columns: repeat(2, 1fr); }
  .apd-programs-grid { grid-template-columns: repeat(2, 1fr); }
  .apd-locations-grid { grid-template-columns: repeat(3, 1fr); }
  .apd-deyna-grid { grid-template-columns: 1fr; gap: 40px; }
  .apd-deyna-visual { max-width: 400px; }
  .apd-footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .apd-section { padding: 72px 0; }
  .apd-top-bar { display: none; }
  .apd-hero { min-height: auto; padding: 60px 0 80px; }
  .apd-hero-content { text-align: center; }
  /* H1 jako normalny, ciągły tekst (usunięcie wymuszonych <br>) */
  .apd-hero h1 br { display: none; }
  .apd-hero h1 {
    word-spacing: 0.06em;
    line-height: 1;
  }
  .apd-hero h1 .apd-highlight,
  .apd-hero h1 .apd-highlight-red { display: inline; }
  /* Centruje wszystkie wewnętrzne elementy hero */
  .apd-hero-badge { display: inline-flex; }
  .apd-hero-desc { margin-left: auto; margin-right: auto; }
  .apd-hero-buttons { justify-content: center; }
  /* Statystyki w siatce 2x2 — krócej i równo */
  .apd-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 16px;
    margin-top: 40px;
    padding-top: 28px;
    text-align: center;
    justify-items: center;
  }
  .apd-hero-stats > div { min-width: 0; }
  .apd-hero-stat-value { font-size: 2rem; }
  .apd-hero-visual { max-width: 360px; }
  .apd-hero-badge-float { font-size: 1.2rem; padding: 10px 18px; left: -4%; }
  .apd-hero-badge-float small { font-size: 0.62rem; }
  .apd-hero-stat-float { padding: 10px 14px; right: -2%; }
  .apd-hero-stat-float strong { font-size: 1.4rem; }
  .apd-features-grid { grid-template-columns: 1fr; }
  .apd-programs-grid { grid-template-columns: 1fr; }
  .apd-pricing-cards { grid-template-columns: 1fr; max-width: 440px; }
  .apd-locations-grid { grid-template-columns: repeat(2, 1fr); }
  .apd-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .apd-footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .apd-container { padding: 0 16px; }
  .apd-hero-visual { max-width: 280px; }
  .apd-hero-visual::before { font-size: 8rem; top: -10%; right: -6%; }
  .apd-hero-buttons { flex-direction: column; }
  .apd-hero-buttons .apd-btn { width: 100%; justify-content: center; }
  .apd-locations-grid { grid-template-columns: 1fr; }
  .apd-hero-stats { gap: 18px 12px; }
  .apd-hero-stat-value { font-size: 1.7rem; }
  .apd-hero-stat-label { font-size: 0.72rem; }
}
